Sig problem

Ask questions, request features, or just complement us about our software and services.
User avatar
Jay
Will work for food (Administrator)
Posts: 3029
Joined: Mon Jan 14, 2002 12:48 am
Location: Next Door
Contact:

Post by Jay »

yes this is correct. place that code in an appropriate location so that you can call it via a browser.
- Jay
PCRadio
Posts: 29
Joined: Mon Jun 23, 2003 12:17 pm
Location: Mechanicsburg, PA
Contact:

Post by PCRadio »

I did that. i craeted a whatimplayin.php file and uploaded it. When I went to that page on the site, I got that code printed on the page and still nothing on my main page except the empty box.
User avatar
Jay
Will work for food (Administrator)
Posts: 3029
Joined: Mon Jan 14, 2002 12:48 am
Location: Next Door
Contact:

Post by Jay »

check to make sure you put the right code up and have not included any errors in the code.
- Jay
PCRadio
Posts: 29
Joined: Mon Jun 23, 2003 12:17 pm
Location: Mechanicsburg, PA
Contact:

Post by PCRadio »

I don't understand why it wouldn't be right. I copied, pasted and uploaded it the way it was
Click the sig to visit the website for The PC Radio Network:

Image

The PC Radio Network gives you more in 2004!

PC
User avatar
Jay
Will work for food (Administrator)
Posts: 3029
Joined: Mon Jan 14, 2002 12:48 am
Location: Next Door
Contact:

Post by Jay »

well did you copy it from the browser or did you view the source. If you copied it from source it's incorrect, it just needs to be copied straight from the browser view to your local file.
- Jay
PCRadio
Posts: 29
Joined: Mon Jun 23, 2003 12:17 pm
Location: Mechanicsburg, PA
Contact:

Post by PCRadio »

I saved it from the browser. I went to the site, lelected all, copied and pasted it into notepad and saved it as a php file. I then uploaded it to the server. As far as checking with the includes file, the only thing written in that script is <!-- Song stats Generated by Radio ToolBox written by Jay Krivanek -->
Click the sig to visit the website for The PC Radio Network:

Image

The PC Radio Network gives you more in 2004!

PC
User avatar
Jay
Will work for food (Administrator)
Posts: 3029
Joined: Mon Jan 14, 2002 12:48 am
Location: Next Door
Contact:

Post by Jay »

well if you copied it from the browser output and pasted and see php code in the notepad view and then uploaded that and see code then something is misconfigured in your server.
- Jay
PCRadio
Posts: 29
Joined: Mon Jun 23, 2003 12:17 pm
Location: Mechanicsburg, PA
Contact:

Post by PCRadio »

So, what do I have to check? The Cofig file is is the only file I changed anything in and that was adding my userame and password. The whatimplayin file was only copied exactly as it was. Nothing was changed in that. If anything else needs to be done, then let me know. What's the defualt colr it's rinted in? Perhaps that's the reason t's not displaying, or am I calling the wrong thing to display. I'm trying to call up the songband png. Is this correct?The code I use to call it is apparently below. I can't even get the pic to show up here in the forum.

I'm beginning to get frustrated. I haven't slept since Tuesday. I've been trying to figure this out since Tuesday morning.
Click the sig to visit the website for The PC Radio Network:

Image

The PC Radio Network gives you more in 2004!

PC
PCRadio
Posts: 29
Joined: Mon Jun 23, 2003 12:17 pm
Location: Mechanicsburg, PA
Contact:

Post by PCRadio »

Ok, nevermind the help as far as getting the picture to show up. I figured out what I did wrng there, but the problem still remains as far as getting the info printed into the box. I read a post in another frum about running this on a windows server. Does it run on a windows server?
Click the sig to visit the website for The PC Radio Network:

Image

The PC Radio Network gives you more in 2004!

PC
User avatar
Jay
Will work for food (Administrator)
Posts: 3029
Joined: Mon Jan 14, 2002 12:48 am
Location: Next Door
Contact:

Post by Jay »

You will want to link to the whatimplayin.php script in your image tags, the songband is only there as a resource of that script.
- Jay
PCRadio
Posts: 29
Joined: Mon Jun 23, 2003 12:17 pm
Location: Mechanicsburg, PA
Contact:

Post by PCRadio »

That's my problem. The Whatimplayin script isn't working. Here's what it looks like:

php
include(includes.php);
header(Content-Type imagepng);
$im = imagecreatefrompng(songband1.png);

if ($im)
{
ImageString($im, 1, 17, 4, Playing .$current_song, 2);
ImageString($im, 1, 17, 17, There are .$listeners, 2);

ImagePNG($im);
}
Click the sig to visit the website for The PC Radio Network:

Image

The PC Radio Network gives you more in 2004!

PC
User avatar
Jay
Will work for food (Administrator)
Posts: 3029
Joined: Mon Jan 14, 2002 12:48 am
Location: Next Door
Contact:

Post by Jay »

you are missing the <? and ?> tags at the beginning and end of the script.
- Jay
PCRadio
Posts: 29
Joined: Mon Jun 23, 2003 12:17 pm
Location: Mechanicsburg, PA
Contact:

Post by PCRadio »

I put them in, now I'm getting Parse error: parse error in /home/httpd/vhosts/freepgs.com/httpdocs/patcook/whatimplayin.php on line 3
Click the sig to visit the website for The PC Radio Network:

Image

The PC Radio Network gives you more in 2004!

PC
User avatar
Jay
Will work for food (Administrator)
Posts: 3029
Joined: Mon Jan 14, 2002 12:48 am
Location: Next Door
Contact:

Post by Jay »

yea you are missing a bunch of quotes, recopy it from the code bin and make sure you get exactly what you see there.
- Jay
PCRadio
Posts: 29
Joined: Mon Jun 23, 2003 12:17 pm
Location: Mechanicsburg, PA
Contact:

Post by PCRadio »

Great! Now, I'm getting all this:


Warning: Cannot add header information - headers already sent by (output started at /home/httpd/vhosts/freepgs.com/httpdocs/patcook/includes.php:1) in /home/httpd/vhosts/freepgs.com/httpdocs/patcook/whatimplayin.php on line 3
‰PNG IHDR,Põ‘m±PLTEÿÿÿ’’……
Click the sig to visit the website for The PC Radio Network:

Image

The PC Radio Network gives you more in 2004!

PC
Post Reply