|
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>
Navigation:
[Reply to this message]
|