|
Joined: Nov 2001
Posts: 1,704
Moderator / Da Masta
|
Moderator / Da Masta
Joined: Nov 2001
Posts: 1,704 |
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?
|
|
|
|
Joined: Feb 2001
Posts: 18
Junior Member
|
Junior Member
Joined: Feb 2001
Posts: 18 |
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?
|
|
|
|
Joined: Nov 2001
Posts: 1,704
Moderator / Da Masta
|
Moderator / Da Masta
Joined: Nov 2001
Posts: 1,704 |
Thanks for replying, Steven 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...
|
|
|
|
Joined: Dec 2000
Posts: 730
deutscher moderator / v5 specialist
|
deutscher moderator / v5 specialist
Joined: Dec 2000
Posts: 730 |
AFAIK you must communicate to the server by using .phtml that PHP is implemented. With SSI you must mark the side with .shtml.
|
|
|
|
Joined: Nov 2001
Posts: 1,704
Moderator / Da Masta
|
Moderator / Da Masta
Joined: Nov 2001
Posts: 1,704 |
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:
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?
|
|
|
|
Joined: Jan 2000
Posts: 5,833 Likes: 20
UBBDev / UBBWiki Owner Time Lord
|
UBBDev / UBBWiki Owner Time Lord
Joined: Jan 2000
Posts: 5,833 Likes: 20 |
What do your includes look like?
|
|
|
|
Joined: Nov 2001
Posts: 1,704
Moderator / Da Masta
|
Moderator / Da Masta
Joined: Nov 2001
Posts: 1,704 |
Bear with me a sec Gizzy, Apache's messing me around [EDIT: Okay, since no server will let me post the script, I'll send it via AIM... Thanks for putting up with me ]
|
|
|
|
Joined: Jan 2000
Posts: 5,833 Likes: 20
UBBDev / UBBWiki Owner Time Lord
|
UBBDev / UBBWiki Owner Time Lord
Joined: Jan 2000
Posts: 5,833 Likes: 20 |
Chris, sometimes I swear it that you have the most odd coding for PHP ;x...
|
|
|
|
Joined: Jan 2000
Posts: 5,833 Likes: 20
UBBDev / UBBWiki Owner Time Lord
|
UBBDev / UBBWiki Owner Time Lord
Joined: Jan 2000
Posts: 5,833 Likes: 20 |
Chris, how am i supposed to help recode it when you have it down?
|
|
|
|
Joined: Nov 2001
Posts: 1,704
Moderator / Da Masta
|
Moderator / Da Masta
Joined: Nov 2001
Posts: 1,704 |
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 It should be up and running again tomorrow...
|
|
|
|
Joined: Jan 2000
Posts: 5,833 Likes: 20
UBBDev / UBBWiki Owner Time Lord
|
UBBDev / UBBWiki Owner Time Lord
Joined: Jan 2000
Posts: 5,833 Likes: 20 |
Lol ok, come find me when its fixed? Wedding is next weekend (we like things to go fast, what can i say)...
|
|
|
|
Joined: Nov 2001
Posts: 1,704
Moderator / Da Masta
|
Moderator / Da Masta
Joined: Nov 2001
Posts: 1,704 |
Everything's nice and fixed, I'll probably end up catching you on AIM... Cheers And if I don't see you before, enjoy the wedding
|
|
|
|
Joined: Jan 2000
Posts: 5,833 Likes: 20
UBBDev / UBBWiki Owner Time Lord
|
UBBDev / UBBWiki Owner Time Lord
Joined: Jan 2000
Posts: 5,833 Likes: 20 |
Hehe, thanks , 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...
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 1,157
Joined: July 2001
|
|
Forums63
Topics37,573
Posts293,925
Members13,849
|
Most Online5,166 Sep 15th, 2019
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|