View previous topic :: View next topic |
Author |
Message |
dotten -
Joined: 09 Aug 2003 Posts: 5
|
Posted: Sat Aug 09, 2003 1:35 pm Post subject: Cannot run php docs at all with abyss websrv... please help! |
|
|
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 |
|
 |
dotten -
Joined: 09 Aug 2003 Posts: 5
|
Posted: Sun Aug 10, 2003 2:54 am Post subject: Problem has been fixed!! |
|
|
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 |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Sun Aug 10, 2003 4:19 pm Post subject: Re: Problem has been fixed!! |
|
|
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 |
|
 |
dotten -
Joined: 09 Aug 2003 Posts: 5
|
Posted: Mon Aug 11, 2003 11:09 pm Post subject: re |
|
|
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 |
|
 |
dotten -
Joined: 09 Aug 2003 Posts: 5
|
Posted: Mon Aug 11, 2003 11:13 pm Post subject: re |
|
|
Ps. The same commands works just fine with php version 4.2.2 and linux... I don't get it...
DotteN |
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Tue Aug 12, 2003 2:49 pm Post subject: Re: re |
|
|
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 |
|
 |
dotten -
Joined: 09 Aug 2003 Posts: 5
|
Posted: Tue Aug 12, 2003 3:28 pm Post subject: re |
|
|
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 |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Wed Aug 13, 2003 1:25 pm Post subject: Re: re |
|
|
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 |
|
 |
|