View previous topic :: View next topic |
Author |
Message |
eyn -
Joined: 11 Sep 2004 Posts: 32 Location: Canada
|
Posted: Tue Feb 01, 2005 10:42 pm Post subject: virtual path to .php --> will not parse |
|
|
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 |
|
 |
Systemsoft -
Joined: 06 Jun 2003 Posts: 59 Location: Krakow, Poland
|
Posted: Tue Feb 01, 2005 11:10 pm Post subject: Aliases |
|
|
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 |
|
 |
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Tue Feb 01, 2005 11:28 pm Post subject: |
|
|
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 |
|
 |
|