virtual path to .php --> will not parse

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


Joined: 11 Sep 2004
Posts: 32
Location: Canada

PostPosted: Tue Feb 01, 2005 10:42 pm    Post subject: virtual path to .php --> will not parse Reply with quote

Okay, so I set up a virtual path called /stats pointing towards a file called stats.php. When I type in the virtual path in browser, the .php file is not parsed by the compiler. As a result, Firefox will pop up a download box to download the stats file (without extension), and in IE, the stats.php do show up, but it is not compiled by the PHP compiler and you can still see the code with the <? ?> tags.

So what's the problem here? Is virtual path in Abyss not supporting other file type than .htm? Please help, thank you.
Back to top View user's profile Send private message Visit poster's website
Systemsoft
-


Joined: 06 Jun 2003
Posts: 59
Location: Krakow, Poland

PostPosted: Tue Feb 01, 2005 11:10 pm    Post subject: Aliases Reply with quote

I, of course, can be wrong, but...

Alias can redirect to directory, not to a file.

For example from virtual path (images) to (web/artwork).

Navigating to localhost/images/logo.gif will redirect to localhost/web/artwork/logo.gif

You can't set alias to redirect from localhost/stats/ to localhost/stats.php.
Back to top View user's profile Send private message Send e-mail
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Tue Feb 01, 2005 11:28 pm    Post subject: Reply with quote

This is perfectly normal , PHP only executes files which have .php extension
so when you add an aliases to a PHP file , it no longer carries that .php file
extension so you have to add /alias_name to the CGI Paths for it to work.

Note: You can also add an Aliases Virtual Path as a non existing PHP file
so you don't have to add the aliases name to the CGI Paths , sweet!

Virtual Path: /test.php
Real Path: C:\file_name.php
Back to top View user's profile Send private message Visit poster's website
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