Calling php files with no extension

 
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
chase
-


Joined: 16 Oct 2004
Posts: 2

PostPosted: Sat Oct 16, 2004 3:06 pm    Post subject: Calling php files with no extension Reply with quote

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


Joined: 10 Oct 2004
Posts: 45

PostPosted: Sat Oct 16, 2004 4:20 pm    Post subject: Reply with quote

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


Joined: 16 Oct 2004
Posts: 2

PostPosted: Sat Oct 16, 2004 4:53 pm    Post subject: Reply with quote

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


Joined: 02 Dec 2004
Posts: 4

PostPosted: Fri Dec 03, 2004 3:43 am    Post subject: Reply with quote

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


Joined: 03 Mar 2002
Posts: 1332

PostPosted: Sat Dec 04, 2004 1:41 pm    Post subject: Reply with quote

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 View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions 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