View previous topic :: View next topic |
Author |
Message |
WaCkO! -
Joined: 26 Mar 2003 Posts: 4
|
Posted: Wed Mar 26, 2003 5:17 am Post subject: PHP HELP |
|
|
Ok, I LOVE Abyss Web Server. but only one problem.. :( When I upload .php files and go to the site it says:::
Notice: Undefined variable: id in C:\Program Files\Abyss Web Server\htdocs\~bboyingonline\main.php on line 121
and the links dont work :(
Anybody have any ideas? |
|
Back to top |
|
|
vbgunz -
Joined: 02 Feb 2003 Posts: 615 Location: Florida
|
Posted: Wed Mar 26, 2003 3:45 pm Post subject: |
|
|
Chances are the problem lies in either your script or the php.ini file. What script and version of php are using? What version of the php.ini file are you using the recommended or the dist version? _________________ Victor B. Gonzalez
http://aeonserv.com |
|
Back to top |
|
|
WaCkO! -
Joined: 26 Mar 2003 Posts: 4
|
Posted: Wed Mar 26, 2003 9:08 pm Post subject: umm. |
|
|
I dont even know where the php.ini is ,... Do I have to download it?
I have the lates PHP, the one thats on the main page on link of the PHP Help page..
WaCko! |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Wed Mar 26, 2003 10:09 pm Post subject: Re: PHP HELP |
|
|
WaCkO! wrote: | Ok, I LOVE Abyss Web Server. but only one problem.. :( When I upload .php files and go to the site it says:::
Notice: Undefined variable: id in C:\Program Files\Abyss Web Server\htdocs\~bboyingonline\main.php on line 121
and the links dont work :(
Anybody have any ideas? |
Php.ini is a file located in your Windows directory. Open it, and locate the line:
Code: | register_globals=no |
and change it to:
Code: | register_globals=yes |
_________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
WaCkO! -
Joined: 26 Mar 2003 Posts: 4
|
Posted: Thu Mar 27, 2003 12:21 am Post subject: See |
|
|
Thank you, now the links work....
But I still get this error on the top...
Notice: Undefined variable: id in C:\Program Files\Abyss Web Server\htdocs\~bboyingonline\main.php on line 121
WaCkO! |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Thu Mar 27, 2003 11:25 pm Post subject: Re: See |
|
|
WaCkO! wrote: | Thank you, now the links work....
But I still get this error on the top...
Notice: Undefined variable: id in C:\Program Files\Abyss Web Server\htdocs\~bboyingonline\main.php on line 121
WaCkO! |
Review your PHP code and fix it in that case. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
WaCkO! -
Joined: 26 Mar 2003 Posts: 4
|
Posted: Fri Mar 28, 2003 12:47 am Post subject: |
|
|
hmm...
the only thing that has php code on it is:;
<?php
$default = "other/updates";
if($id == ""){$id = $default;}elseif(isset($id)){$id = $id;} ?>
<?php include ("$id.html") ?>
so I dont know ??? Is it with that? Or what do I have to look for? |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Sat Mar 29, 2003 1:24 am Post subject: |
|
|
WaCkO! wrote: | hmm...
the only thing that has php code on it is:;
<?php
$default = "other/updates";
if($id == ""){$id = $default;}elseif(isset($id)){$id = $id;} ?>
<?php include ("$id.html") ?>
so I dont know ??? Is it with that? Or what do I have to look for? |
It is difficult to know what's wrong about that when cited out from its context. It seems that this is a purely PHP issue, apart from the register_globals modification, we cannot see what can help without debugging the code. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Sat Mar 29, 2003 1:38 am Post subject: |
|
|
Set register_gloabls=on in your php.ini file. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
|