Cannot run php docs at all with abyss websrv... please help!

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


Joined: 09 Aug 2003
Posts: 5

PostPosted: Sat Aug 09, 2003 1:35 pm    Post subject: Cannot run php docs at all with abyss websrv... please help! Reply with quote

Hello.

I installed Abyss Web server, and that works fine. Then i went to the help pages and installed php acording to the instalation instructs, but it wont work. I have gone througt the instalation again, but cant seem to find the problem. I am running Win 98se and php v.4.3.2. When i try to run a php document all i get back is a 404 error, and it isn't even the 404 i have told it to show. It doesn't load the right document, and it doesn't show any php type errors... why can this be?? (ps. 127.0.0.1/index.htm works fine)

Dotten
Back to top View user's profile Send private message
dotten
-


Joined: 09 Aug 2003
Posts: 5

PostPosted: Sun Aug 10, 2003 2:54 am    Post subject: Problem has been fixed!! Reply with quote

I have found a cure for my problem! finaly.
someone else in this forum had the answer, in an already existing topic:

http://www.aprelium.com/forum/viewtopic.php?t=2119
"When i try to run php file, it say PAGE NOT FOUND"

Here lies the secret.

great.
DotteN
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Sun Aug 10, 2003 4:19 pm    Post subject: Re: Problem has been fixed!! Reply with quote

dotten wrote:
I have found a cure for my problem! finaly.
someone else in this forum had the answer, in an already existing topic:

http://www.aprelium.com/forum/viewtopic.php?t=2119
"When i try to run php file, it say PAGE NOT FOUND"

Here lies the secret.

great.
DotteN

Are you getting this error with Abyss 1.1.6??
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
dotten
-


Joined: 09 Aug 2003
Posts: 5

PostPosted: Mon Aug 11, 2003 11:09 pm    Post subject: re Reply with quote

I haven't tryed the 1.1.6 version op abyweb. I am still running the aby version found at tucows.com. (asuming it is the 1.0 version) I am still yet to find out how you check the version of this program :)

Please Read This Everyone:
But I am experiencing other problem. with php 4.3.2 installed with the aby server, and win98. The commands $REMOTE_ADDR; $REMOTE_HOST; $PHP_SELF; if you or anybody know about this problem, please giv me an answer!

Thanks!
DotteN


Last edited by dotten on Mon Aug 11, 2003 11:13 pm; edited 1 time in total
Back to top View user's profile Send private message
dotten
-


Joined: 09 Aug 2003
Posts: 5

PostPosted: Mon Aug 11, 2003 11:13 pm    Post subject: re Reply with quote

Ps. The same commands works just fine with php version 4.2.2 and linux... I don't get it...

DotteN
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Tue Aug 12, 2003 2:49 pm    Post subject: Re: re Reply with quote

dotten wrote:
Ps. The same commands works just fine with php version 4.2.2 and linux... I don't get it...

DotteN

First of all, download the program from http://www.aprelium.com/abyssws/ to get the lastest version. The version is displayed in the main window of Abyss Web Server or in its about menu.

$REMOTE_HOST and the rest of varaibles will work if you set the parameter register_globals in php.ini to on. This is a PHP issue related to their modification of the way variables should be called.

Please search for "Undefined variable" in this forum for more information.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
dotten
-


Joined: 09 Aug 2003
Posts: 5

PostPosted: Tue Aug 12, 2003 3:28 pm    Post subject: re Reply with quote

The $REMOTE_ADDR and $php_self is now vorking, but the $REMOTE_HOST isn't. I think I will install the php v.4.2.2 insteed. I like the way that works with the variables better...

Where can i read about the changes between the different php versions.

Thanks
dotten
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Wed Aug 13, 2003 1:25 pm    Post subject: Re: re Reply with quote

You should use $REMOTE_ADDR instead of $REMOTE_HOST ($REMOTE_HOST is only available if reverse lookup is enabled in the web server. Abyss Web Server doesn't have such a feature because it adds a huge overload. Even in Apache, it isn't set by default). If you want to do the reverse lookup in your script (to get the DNS name from the IP), you can use the following code:

Code:
$hostname = gethostbyaddr($REMOTE_ADDR);


In The PHP documentation, go to chapter "Language Reference", section "Variables", sub-section "Predefined variables".
_________________
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