Reply to PHP 5 upgrade breaks $do?

Your name:

Reply:


Posted by Russell Wallace on 11/23/05 04:30

A friend of mine has a set of pages at:

http://ipa.buffalostate.edu/~skablah/7thSea/?do=Hideout

that use PHP; recently the server company upgraded to PHP 5, which
breaks the site; clicking on the Crew, Navigation etc links at the top
left of the above page just brings you back to the main page.

The PHP code is in a file called index.php, it's 200 lines which is
sometimes considered excessive for posting on Usenet, but I can post it
if need be; the relevant code appears to be:

if($do == "Hideout"){ include("home.html"); }
elseif($do == "Crew") {include("characters.htm"); }
elseif($do == "Navigation") {include("story.htm"); }

etc, and it seems that the variable $do isn't being set correctly with
the new version. Anyone have any idea what might be wrong?

(I myself know not one line of PHP, and the author of the site is by his
own admission no expert on it, so quite possibly we're not asking the
right questions; please let me know if we're going about this the wrong
way. I tried Google, but it doesn't appear to accept keywords like $do
that contain punctuation.)

Thanks,

--
"Always look on the bright side of life."
To reply by email, replace no.spam with my last name.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация