Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SSI call in PHP

Status
Not open for further replies.

oaklanders

Technical User
Dec 9, 2007
38
I need to do an ssi include in my PHP web page located on a Unix web server, but cant seem to get it to work.

<!--#include virtual=" -->


Please advise how I can use SSI to fetch a file in another server that is located on a Windows Web server.
 
If you are using PHP newer than version 4.3.0 I think you can use PHP's include() function to include the file.


Code:
<?php
include("[URL unfurl="true"]http://www.somesite.com/myfile.php");[/URL]
?>

I assume you're using Windows since you are calling an asp page.
I'm not clear as to whether the ASP will be executed on the host machine or on your server. I have a suspicion it will be the latter.

--
Tek-Tips Forums is Member Supported. Click Here to donate

<honk>*:O)</honk>

Tyres: Mine's a pint of the black stuff.
Mike: You can't drink a pint of Bovril.
 
foamcow's suggestion will work provided that you have allow_url_fopen set to on in your php.ini


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top