UBB.Dev
Posted By: CTM [PHP] Silly includes! - 03/22/2003 1:51 AM
Okay, so I finally got round to making a site for my ShoutCast station, and I found a PHP XML parser (yay!). The problem comes when I try to use the SSI call more than once on a page.

http://radio.iphq.co.uk/radio/index.html

"Currently Playing" is the first called, and always works. However, when I call the second instance of the script ("Already Played") it calls the ENTIRE script into the HTML file.

Uhh, little help please? laugh
Posted By: Steven B. Re: [PHP] Silly includes! - 03/23/2003 10:30 AM
Looking at your link, you seem to be trying to include PHP code in a static HTML page. Change the pages extension from .html to .php.

Also, why are you using SSI?
Posted By: CTM Re: [PHP] Silly includes! - 03/23/2003 4:38 PM
Thanks for replying, Steven smile

I'm using SSI to call the results from a PHP script into a HTML page - Looking at it now, it does seem like a rather stupid thing to do; I might as well code the whole thing in PHP...
Posted By: joking-down Re: [PHP] Silly includes! - 03/23/2003 4:56 PM
AFAIK you must communicate to the server by using .phtml that PHP is implemented.
With SSI you must mark the side with .shtml.
Posted By: CTM Re: [PHP] Silly includes! - 03/25/2003 7:57 PM
Okay, I went with the option of coding the whole thing in PHP, and it's made the process much easier. But every time I access a page, this appears in my Apache error log:

Quote
quote:

PHP Notice: Undefined variable: sp_data in D:webradioincludesscxml-obj.php on line 74
PHP Notice: Undefined offset: 3 in D:webradioincludesscxml-obj.php on line 53
PHP Notice: Undefined offset: 4 in D:webradioincludesscxml-obj.php on line 53
PHP Notice: Undefined offset: 6 in D:webradioincludesscxml-obj.php on line 53
PHP Notice: Undefined offset: 8 in D:webradioincludesscxml-obj.php on line 53
PHP Notice: Undefined offset: 9 in D:webradioincludesscxml-obj.php on line 53
PHP Notice: Undefined offset: 10 in D:webradioincludesscxml-obj.php on line 53
PHP Notice: Undefined offset: 12 in D:webradioincludesscxml-obj.php on line 53
PHP Notice: Undefined offset: 13 in D:webradioincludesscxml-obj.php on line 53
PHP Notice: Undefined offset: 14 in D:webradioincludesscxml-obj.php on line 53
PHP Notice: Undefined offset: 15 in D:webradioincludesscxml-obj.php on line 53
PHP Notice: Undefined offset: 16 in D:webradioincludesscxml-obj.php on line 53
PHP Notice: Undefined offset: 18 in D:webradioincludesscxml-obj.php on line 53
PHP Notice: Undefined offset: 20 in D:webradioincludesscxml-obj.php on line 53
PHP Notice: Undefined offset: 21 in D:webradioincludesscxml-obj.php on line 53
PHP Notice: Undefined offset: 25 in D:webradioincludesscxml-obj.php on line 53
PHP Notice: Undefined offset: 28 in D:webradioincludesscxml-obj.php on line 53
PHP Notice: Undefined offset: 37 in D:webradioincludesscxml-obj.php on line 53
PHP Notice: Undefined offset: 43 in D:webradioincludesscxml-obj.php on line 53
PHP Notice: Undefined offset: 44 in D:webradioincludesscxml-obj.php on line 53
PHP Notice: Undefined offset: 46 in D:webradioincludesscxml-obj.php on line 53
PHP Notice: Undefined offset: 47 in D:webradioincludesscxml-obj.php on line 53
PHP Notice: Undefined offset: 49 in D:webradioincludesscxml-obj.php on line 53
PHP Notice: Undefined offset: 50 in D:webradioincludesscxml-obj.php on line 53
PHP Notice: Undefined offset: 52 in D:webradioincludesscxml-obj.php on line 53
PHP Notice: Undefined offset: 53 in D:webradioincludesscxml-obj.php on line 53
PHP Notice: Undefined offset: 55 in D:webradioincludesscxml-obj.php on line 53
PHP Notice: Undefined offset: 56 in D:webradioincludesscxml-obj.php on line 53
PHP Notice: Undefined offset: 58 in D:webradioincludesscxml-obj.php on line 53
PHP Notice: Undefined offset: 59 in D:webradioincludesscxml-obj.php on line 53
PHP Notice: Undefined offset: 61 in D:webradioincludesscxml-obj.php on line 53
PHP Notice: Undefined offset: 62 in D:webradioincludesscxml-obj.php on line 53
PHP Notice: Undefined offset: 64 in D:webradioincludesscxml-obj.php on line 53
PHP Notice: Undefined offset: 65 in D:webradioincludesscxml-obj.php on line 53
PHP Notice: Undefined offset: 67 in D:webradioincludesscxml-obj.php on line 53
PHP Notice: Undefined offset: 68 in D:webradioincludesscxml-obj.php on line 53
PHP Notice: Undefined offset: 70 in D:webradioincludesscxml-obj.php on line 53
PHP Notice: Undefined offset: 71 in D:webradioincludesscxml-obj.php on line 53
PHP Notice: Undefined offset: 73 in D:webradioincludesscxml-obj.php on line 53
PHP Notice: Undefined offset: 74 in D:webradioincludesscxml-obj.php on line 53
PHP Notice: Undefined offset: 76 in D:webradioincludesscxml-obj.php on line 53
PHP Notice: Undefined offset: 77 in D:webradioincludesscxml-obj.php on line 53
PHP Notice: Undefined offset: 79 in D:webradioincludesscxml-obj.php on line 53
PHP Notice: Undefined offset: 80 in D:webradioincludesscxml-obj.php on line 53
PHP Notice: Undefined offset: 82 in D:webradioincludesscxml-obj.php on line 53
PHP Notice: Undefined offset: 83 in D:webradioincludesscxml-obj.php on line 53
PHP Notice: Undefined offset: 85 in D:webradioincludesscxml-obj.php on line 53
PHP Notice: Undefined offset: 86 in D:webradioincludesscxml-obj.php on line 53
PHP Notice: Undefined offset: 88 in D:webradioincludesscxml-obj.php on line 53
PHP Notice: Undefined offset: 89 in D:webradioincludesscxml-obj.php on line 53
PHP Notice: Undefined offset: 91 in D:webradioincludesscxml-obj.php on line 53
PHP Notice: Undefined offset: 92 in D:webradioincludesscxml-obj.php on line 53
PHP Notice: Undefined offset: 94 in D:webradioincludesscxml-obj.php on line 53
PHP Notice: Undefined offset: 95 in D:webradioincludesscxml-obj.php on line 53
PHP Notice: Undefined offset: 97 in D:webradioincludesscxml-obj.php on line 53
PHP Notice: Undefined offset: 98 in D:webradioincludesscxml-obj.php on line 53
PHP Notice: Undefined offset: 100 in D:webradioincludesscxml-obj.php on line 53
PHP Notice: Undefined offset: 101 in D:webradioincludesscxml-obj.php on line 53
...And obviously I don't want it there.

This is the file scxml-obj.php: http://chris.iphq.co.uk/ubbdev/scxml-obj.txt

Could anyone help me to blast those errors please? smash
Posted By: Gizmo Re: [PHP] Silly includes! - 03/25/2003 11:08 PM
What do your includes look like?
Posted By: CTM Re: [PHP] Silly includes! - 03/25/2003 11:22 PM
Bear with me a sec Gizzy, Apache's messing me around frown

[EDIT: Okay, since no server will let me post the script, I'll send it via AIM... Thanks for putting up with me smile ]
Posted By: Gizmo Re: [PHP] Silly includes! - 03/25/2003 11:29 PM
Chris, sometimes I swear it that you have the most odd coding for PHP ;x...
Posted By: Gizmo Re: [PHP] Silly includes! - 03/26/2003 3:16 AM
Chris, how am i supposed to help recode it when you have it down?
Posted By: CTM Re: [PHP] Silly includes! - 03/26/2003 7:52 PM
Sorry, sorry, sorry... My IP address did it's standard once-every-three-month change, which meant the server's been offline for a day frown It should be up and running again tomorrow...
Posted By: Gizmo Re: [PHP] Silly includes! - 03/28/2003 1:37 AM
Lol ok, come find me when its fixed? Wedding is next weekend (we like things to go fast, what can i say)...
Posted By: CTM Re: [PHP] Silly includes! - 03/28/2003 9:34 PM
Everything's nice and fixed, I'll probably end up catching you on AIM... Cheers smile And if I don't see you before, enjoy the wedding wink smile
Posted By: Gizmo Re: [PHP] Silly includes! - 03/28/2003 10:04 PM
Hehe, thanks smile , i've been swamped lately with the lil lady and wedding plans.. gotta love getting eloped :x... the whole point of not planning is to plan to not plan! lol...
© UBB.Developers