View previous topic :: View next topic |
Author |
Message |
Guest
|
Posted: Tue Jan 14, 2003 8:40 pm Post subject: php simple error i think?!? |
|
|
:?:
hi my name is josh,
any way i have every thing set up so that my content on my web page will be displayed in http://yourdomain.com/main.php?done=affiliation.html
but when i check the site after all has been dont i get
Notice: Undefined variable: done in C:\Program Files\Abyss Web Server\htdocs\main.php on line 97
Warning: main() [function.main]: Failed opening '' for inclusion (include_path='.;c:\php4\pear') in C:\Program Files\Abyss Web Server\htdocs\main.php on line 97
and yes i have followed the steps for installing php and have downloaded and installed the php from php.net :?:
please help! |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Wed Jan 15, 2003 12:08 am Post subject: Re: php simple error i think?!? |
|
|
Anonymous wrote: | :?:
hi my name is josh,
any way i have every thing set up so that my content on my web page will be displayed in http://yourdomain.com/main.php?done=affiliation.html
but when i check the site after all has been dont i get
Notice: Undefined variable: done in C:\Program Files\Abyss Web Server\htdocs\main.php on line 97
Warning: main() [function.main]: Failed opening '' for inclusion (include_path='.;c:\php4\pear') in C:\Program Files\Abyss Web Server\htdocs\main.php on line 97
and yes i have followed the steps for installing php and have downloaded and installed the php from php.net :?:
please help! |
"Undefined Variable" error is not related to the web server. This behavior is caused by the new release of PHP which do not automatically register GET and POST variables as global.
Anyway, instead of using $done use $_GET['done'] or $_POST['done'] (depending on the method of the request).
If you still want to use the old PHP variable naming convention, edit PHP.ini and locate the line:
Code: | register_globals = Off |
and change it to:
Code: | register_globals = On |
_________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
Guest
|
Posted: Wed Jan 15, 2003 12:42 am Post subject: Thanks |
|
|
thank you very much for your time my site now works proply :D |
|
Back to top |
|
|
raven -
Joined: 16 Jun 2003 Posts: 2
|
Posted: Mon Jun 16, 2003 8:47 pm Post subject: |
|
|
hey aprelium what version of php do u think that guest is using cause thats what i wanna do?? |
|
Back to top |
|
|
os17fan -
Joined: 21 Mar 2003 Posts: 531 Location: USA
|
Posted: Tue Jun 17, 2003 12:53 am Post subject: |
|
|
Hey Guest this has nothing to do with your problem but my name's Josh also lol :D _________________ This web server is the best ! |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Thu Jun 19, 2003 2:22 pm Post subject: |
|
|
raven wrote: | hey aprelium what version of php do u think that guest is using cause thats what i wanna do?? |
Every PHP whose version >= 4 needs this. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
Daniel -
Joined: 24 Jun 2003 Posts: 12 Location: Concord, NC
|
Posted: Tue Jun 24, 2003 11:35 pm Post subject: |
|
|
Where is the php.ini file located? |
|
Back to top |
|
|
os17fan -
Joined: 21 Mar 2003 Posts: 531 Location: USA
|
Posted: Wed Jun 25, 2003 12:37 am Post subject: |
|
|
The php.ini is located in your c:\windows directory , you need to go to c:\windows and look for a file in that directory called php or on a windows 98 php.ini and thats your config file for PHP 8) _________________ This web server is the best ! |
|
Back to top |
|
|
Daniel -
Joined: 24 Jun 2003 Posts: 12 Location: Concord, NC
|
Posted: Wed Jun 25, 2003 2:06 am Post subject: |
|
|
Thanks! My scripts work now... |
|
Back to top |
|
|
|