View previous topic :: View next topic |
Author |
Message |
LedZled -
Joined: 27 Apr 2003 Posts: 1
|
Posted: Thu Jul 22, 2004 10:51 pm Post subject: Including SSI in PHP pages - again... |
|
|
I know what you say, Anything that can be done with SSI can also be done with PHP. Nevertheless; on Apache you can include an SSI-file using the command virtual() instead of include() as you would with a normal HTML-file - or any other file.
I tried using that function on my Abyss server and this is what i get:
Quote: | PHP Fatal error: Call to undefined function: virtual() in d:\NyRuin\hoho.php on line 2
|
Is there any way to make virtual() work on Abyss? Or any function like it? |
|
Back to top |
|
 |
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Fri Jul 23, 2004 12:44 am Post subject: |
|
|
Only include() and require() is supported in PHP. |
|
Back to top |
|
 |
aprelium-beta -
Joined: 24 Jun 2004 Posts: 383
|
Posted: Fri Jul 23, 2004 1:56 pm Post subject: Re: Including SSI in PHP pages - again... |
|
|
LedZled,
Instead of virtual('/dir1/dir2/file.txt') use:
Code: | include('http://127.0.0.1/dir1/dir2/file.txt') |
You should always use 127.0.0.1 here (even if you know the external IP of your server.) If the web port of Abyss is not 80, you should use (for example if it is 8080):
Code: | include('http://127.0.0.1:8080/dir1/dir2/file.txt') |
[/b][/code] _________________ Beta Testing Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
 |
|