PHP HELP

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
WaCkO!
-


Joined: 26 Mar 2003
Posts: 4

PostPosted: Wed Mar 26, 2003 5:17 am    Post subject: PHP HELP Reply with quote

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 View user's profile Send private message
vbgunz
-


Joined: 02 Feb 2003
Posts: 615
Location: Florida

PostPosted: Wed Mar 26, 2003 3:45 pm    Post subject: Reply with quote

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 View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
WaCkO!
-


Joined: 26 Mar 2003
Posts: 4

PostPosted: Wed Mar 26, 2003 9:08 pm    Post subject: umm. Reply with quote

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 View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Wed Mar 26, 2003 10:09 pm    Post subject: Re: PHP HELP Reply with quote

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 View user's profile Send private message Send e-mail
WaCkO!
-


Joined: 26 Mar 2003
Posts: 4

PostPosted: Thu Mar 27, 2003 12:21 am    Post subject: See Reply with quote

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 View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Thu Mar 27, 2003 11:25 pm    Post subject: Re: See Reply with quote

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 View user's profile Send private message Send e-mail
WaCkO!
-


Joined: 26 Mar 2003
Posts: 4

PostPosted: Fri Mar 28, 2003 12:47 am    Post subject: Reply with quote

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 View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Sat Mar 29, 2003 1:24 am    Post subject: Reply with quote

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 View user's profile Send private message Send e-mail
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Sat Mar 29, 2003 1:38 am    Post subject: Reply with quote

Set register_gloabls=on in your php.ini file.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group