Problem with virtual includes

carlgale

Verified User
Joined
Oct 12, 2006
Messages
34
Wondering if anyone could give me a few pointers on this please. My server skills are limited, at best, and i have come to a halt.

I am trying to include the content of one file on my server inside another file. I know it can be done as i have it working here http://digitalcatwalk.co.uk/test.shtml the code for that is <HTML>
<BODY>
Testing...
<!--#include virtual="/sec/accessories/stuffer.pl"-->
</BODY>
</HTML>

However, I cannot get it to work if I use the php version (I have to use the php to fully merge what I am trying to do)

The supplied code for that is <? virtual('/sec/accessories/stuffer.pl') ?> however when I output this to a page I see nothing, please see http://digitalcatwalk.co.uk/test.php in the code of that page I see
<? virtual('/sec/accessories/stuffer.pl') ?>

I am at a complete loss as to why this isn't working. I have disabled open base and php safe mode, I have restarted apache etc but just will not work.

I wish to include the content on a php page so I need the php version to work.


Any advice offered would be greatly appreciated

thanks
Carl
 
Hello,

What error do you get there when trying to include file in shtml file? What is there in apache error log for the virtual host?

What you see with

Code:
cat /etc/httpd/conf/extra/httpd-directories.conf
?
 
Back
Top