Including SSI in PHP pages - again...

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


Joined: 27 Apr 2003
Posts: 1

PostPosted: Thu Jul 22, 2004 10:51 pm    Post subject: Including SSI in PHP pages - again... Reply with quote

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


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

PostPosted: Fri Jul 23, 2004 12:44 am    Post subject: Reply with quote

Only include() and require() is supported in PHP.
Back to top View user's profile Send private message Visit poster's website
aprelium-beta
-


Joined: 24 Jun 2004
Posts: 383

PostPosted: Fri Jul 23, 2004 1:56 pm    Post subject: Re: Including SSI in PHP pages - again... Reply with quote

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