Reply to Re: Changed servers; odd problem

Your name:

Reply:


Posted by Gordon Burditt on 10/14/06 23:53

>I recently switched hosts, and now my main controller page for my
>website isn't working correctly anymore. It worked fine on the old
>host. The new host uses 5.0.4 whereas the old host used PHP 4.*.
>
>I used switch statements to swap out text and graphics depending on the
>parameters defined in the URL. Now it looks like the controller page is
>ignoring them.
>
>Here's the page:
>
>http://www.purple-pony.com/main.php?ID=0&S=0
>
>When you click "Work" or "Links" you should get different content as
>well as different images, but it seems to be defaulting to the "About"
>page all the time.
>
>Here is a sample of the switch statement I used:
>
><?php
>switch ($S)

Register-globals is evil. Newer versions default it off, and
hopefully they will get rid of it entirely.

Use $_GET['S'], not $S.

[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

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