Previous Thread
Next Thread
Print Thread
Rate Thread
#104743 03/21/2003 6:51 PM
Joined: Nov 2001
Posts: 1,704
CTM
Offline
Moderator / Da Masta
Moderator / Da Masta
Offline
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? laugh

Sponsored Links
#104744 03/23/2003 3:30 AM
Joined: Feb 2001
Posts: 18
Junior Member
Junior Member
Offline
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?

#104745 03/23/2003 9:38 AM
Joined: Nov 2001
Posts: 1,704
CTM
Offline
Moderator / Da Masta
Moderator / Da Masta
Offline
Joined: Nov 2001
Posts: 1,704
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...

#104746 03/23/2003 9:56 AM
Joined: Dec 2000
Posts: 730
deutscher moderator / v5 specialist
deutscher moderator / v5 specialist
Offline
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.

#104747 03/25/2003 12:57 PM
Joined: Nov 2001
Posts: 1,704
CTM
Offline
Moderator / Da Masta
Moderator / Da Masta
Offline
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
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

Sponsored Links
#104748 03/25/2003 4:08 PM
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?


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
#104749 03/25/2003 4:22 PM
Joined: Nov 2001
Posts: 1,704
CTM
Offline
Moderator / Da Masta
Moderator / Da Masta
Offline
Joined: Nov 2001
Posts: 1,704
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 ]

#104750 03/25/2003 4:29 PM
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...


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
#104751 03/25/2003 8:16 PM
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?


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
#104752 03/26/2003 12:52 PM
Joined: Nov 2001
Posts: 1,704
CTM
Offline
Moderator / Da Masta
Moderator / Da Masta
Offline
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 frown It should be up and running again tomorrow...

Sponsored Links
#104753 03/27/2003 6:37 PM
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)...


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
#104754 03/28/2003 2:34 PM
Joined: Nov 2001
Posts: 1,704
CTM
Offline
Moderator / Da Masta
Moderator / Da Masta
Offline
Joined: Nov 2001
Posts: 1,704
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

#104755 03/28/2003 3:04 PM
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 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.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts

Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)