Reply to Re: PHP problem for redhat 9

Your name:

Reply:


Posted by Kimmo Laine on 12/05/05 06:52

"Simon Lee" <simon@yahoo.com> kirjoitti
viestissδ:dn0gdq$gk7$1@nnews.pacific.net.hk...
> Dear all,
>
> My php webpages can be ruun normally, However, when they are moved to the
> other server with Redhat 9, some following problems about php will occur,
>
> 1. when the webpage is linked to other page
> http://www.xxx.com/index.php?item=Aboutus,
> the "item" variable "Aboutus" is no longer valid, Why? How to tackle such
> problem them?
> Does the new version of php no longer support such function,
>


This is by far the most common question about php. It is asked on daily
basis in php-related forums. The thing is, as you suspected, that they've
changed the functionality of that feature. The variables no longer exist by
default, but you use $_REQUEST, $_POST and $_GET to read them. so instead of
$item, you'd use $_GET['item'] in your code. to read more about it, see
http://fi.php.net/register_globals and to change it back the way it worked
in the old server, edit the register_globals setting in your php.ini...

--
SETI @ Home - Donate your cpu's idle time to science.
Further reading at <http://setiweb.ssl.berkeley.edu/>
Kimmo Laine <antaatulla.sikanautaa@gmail.com.NOSPAM.invalid>

[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

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация