Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Apache: Users

Include Files

 

 

Apache users RSS feed   Index | Next | Previous | View Threaded


sdsheeks at isdponline

Dec 13, 2001, 3:06 PM

Post #1 of 2 (116 views)
Permalink
Include Files

I am familiar with .ASP setups, but I am trying to learn PHP. One area I am having trouble in is with the include files. Under asp I would do:

<!--#include file=../includes/foo.asp-->

I attempted to include a file under PHP and it error with a message similar to "please setup your include path"

Any ideas?

--
--Powered By Linux--

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd


slawrence at seveninteractive

Dec 13, 2001, 3:08 PM

Post #2 of 2 (99 views)
Permalink
RE: Include Files [In reply to]

try this

<?php include ('../includes/foo.inc'); ?>

you migh need to put some info in the header like:
<!--#includ virtual="../includes/foo.inc" -->

-----Original Message-----
From: David Sheeks [mailto:sdsheeks [at] isdponline]
Sent: Thursday, December 13, 2001 4:07 PM
To: users [at] httpd
Subject: Include Files


I am familiar with .ASP setups, but I am trying to learn PHP. One area I am
having trouble in is with the include files. Under asp I would do:

<!--#include file=../includes/foo.asp-->

I attempted to include a file under PHP and it error with a message similar
to "please setup your include path"

Any ideas?

--
--Powered By Linux--

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd

Apache users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.