PDA

View Full Version : Simple PHP and flash problem (I think), PHP/Flash working... but displays extra code



awade
April 27th, 2005, 07:32 PM
I'm creating an art/design portfolio for myself and have worked out the basic structure and I had thought that i figured out how I was going to populate a flash movie with dynamic images. It worked fine on my local computer. When I uploaded it to my hosting server it had a few problems. It seems to work but it also shows extra code and I'm not sure where it is coming from.
Here's the link...

http://www.awade.com/portfolio

The extra code is the garbled text that seems out of place.

The image to the right is called through the URL and generated in flash. The main content is also determined by the URL (through PHP) and generated. I'm not sure if it's showing an error or if it's something else.

I'm using <?php print $_GET['value'];?> to pull the "value" from the URL and feed it to flash which pulls in the appropriate movie. I'm also using php to pull in the main content which is also determined by the URL.

Any help would be appreciated.

abcdefg
April 27th, 2005, 09:01 PM
The image isn't loading for me. If you print the variable does it display the proper image name?

Post some code.

999
April 27th, 2005, 10:07 PM
Image loads for me. Is your local version of php you tested with the same on the host your uploading to? Have you tried including a line in your php to disable error reporting if its on and see if the garbled text still shows up?

awade
April 28th, 2005, 08:20 AM
Thanks for your reply's... I believe it is the same version of PHP on my home computer and the server I am publishing to. I will check when I get home from work to make sure. Here is the link I should have originally given you

http://www.awade.com/portfolio/index.php?category=paintings&value=img%2Ftortuga

Also if you click on the links in the middle they will work. So I think the code is working fine. It's just all the extra junk... Every instance of PHP I put in the page results in extra code being displayed.

I am pulling the variable from the URL with

<?php print $_GET['value'];?>

The variable does print correctly.

I will also look into finding code that will disable error reporting and let you know if it works.

Thanks -

awade
April 28th, 2005, 08:35 AM
I think I figured it out. I logged into the site through the hosting company control panel and opened the file that resided on the server in the browser and the garbled text was actually in the page. So somehow when I uploaded the file the server added the extra text. It only happened on the PHP pages. The PHP pages on my personal computer do not contain the text. I'm not sure why it's happening - but at least I can fix it. (I can delete the extra text through the online interface) Thanks to everyone that replied to my plea for help.