Forum Moderators: phranque

Message Too Old, No Replies

Can SSI pull files from above public_html?

Just curious ;)

         

j4mes

7:19 pm on Oct 1, 2004 (gmt 0)

10+ Year Member



I was wondering whether or not Server Side Includes can pull the contents of a file in the (absolute) root (i.e. above public_html), using include or cmd or otherwise.

Thanks.

coopster

9:36 pm on Oct 1, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Not with include [httpd.apache.org], but you could use exec [httpd.apache.org] to process a cgi script that could.

j4mes

9:52 pm on Oct 1, 2004 (gmt 0)

10+ Year Member



Thanks. Do you have a snippet of CGI code that would read the file, and could this be read from public_ftp?

J.

coopster

10:46 pm on Oct 1, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



You'll want to look into server-side processing. Perl and PHP are both popular and can do what you are asking. SSI can still be a useful tool, but to really do some server-side work I would recommend learning a scripting language -- much, much more power.