View previous topic :: View next topic |
Author |
Message |
chase -
Joined: 16 Oct 2004 Posts: 2
|
Posted: Sat Oct 16, 2004 3:06 pm Post subject: Calling php files with no extension |
|
|
Hi,
Does anybody know if it is possible to call php files with no extension with Abyss?
I know how to do it in Apache but i can't get it running with this.
Thanks _________________ knowledge is Power |
|
Back to top |
|
 |
amonia -
Joined: 10 Oct 2004 Posts: 45
|
Posted: Sat Oct 16, 2004 4:20 pm Post subject: |
|
|
You can try to set php to process all html and htm files and rename all .php -> .htm. Probably it will work.
But with no extension - I have no idea. |
|
Back to top |
|
 |
chase -
Joined: 16 Oct 2004 Posts: 2
|
Posted: Sat Oct 16, 2004 4:53 pm Post subject: |
|
|
Thanks amonia but i worked it out another way.
Go into the Abyss Console => Server Configuration => Advanced
then CGI Parameters:
Change this value to YES >>> "Resolve interpreter using the script's #! line"
Then Add #! c:/PHP/php.exe to the first line of your PHP files before the
<?php. (If that is where your PHP is installed)
Then remove the php extension from your files and you can call them without an extension.
The first line tells the webserver which interpreter to use to deal with the file. _________________ knowledge is Power |
|
Back to top |
|
 |
acidicx -
Joined: 02 Dec 2004 Posts: 4
|
Posted: Fri Dec 03, 2004 3:43 am Post subject: |
|
|
I done extactly what you said, then created a file called test with the following:
#! c:/PHP/php-cgi.exe
<?php
echo "test";
?>
After I restarted the server I ran it and it just shows the code instead of executing it. |
|
Back to top |
|
 |
admin Site Admin
Joined: 03 Mar 2002 Posts: 1332
|
Posted: Sat Dec 04, 2004 1:41 pm Post subject: |
|
|
First of all, remove the space between #! and c:\... . Second put this file in a CGI paths table (or update the CGI paths accordingly) and set "Resolve the interpreter using the #! line" to Yes.
If it is still not work, please send your abyss.conf, your php file to support@aprelium.com . Tell us also where is the physical location on your hard drive of the php file (its full path.) |
|
Back to top |
|
 |
|