Click to See Complete Forum and Search --> : [RESOLVED] <?include ('filename.html')?> not working


kazuki
02-05-2007, 09:11 AM
<?include ('filename.html')?> doesn't seem to be working in my new website...

But I remember adding something to .htaccess or something else in my old website...
Can someone let me know what it is?

LeeU
02-05-2007, 09:27 AM
In the php.ini file there is a place to designate the path to the includes.

kazuki
02-05-2007, 09:31 AM
In the php.ini file there is a place to designate the path to the includes.

it looks too brief... LeeU, Can you please explain elaborately?

Where can I find this file and how to designate the path????

LeeU
02-05-2007, 09:42 AM
There is a section in the php.ini file title "Paths and Directories." It should have something that looks like this:

include_path = ".:/php/includes"

Here you can put any additional paths you want. For instance, if the path to your includes is "/htdocs/includes", just add the following (be sure to use the ";" to separate the paths.)

include_path = ".:/php/includes;/htdocs/includes"

kazuki
02-05-2007, 09:46 AM
But then, I haven;t found my php.ini file yet! :-(

There is a section in the php.ini file title "Paths and Directories." It should have something that looks like this:

include_path = ".:/php/includes"

Here you can put any additional paths you want. For instance, if the path to your includes is "/htdocs/includes", just add the following (be sure to use the ";" to separate the paths.)

include_path = ".:/php/includes;/htdocs/includes"

kazuki
02-05-2007, 10:22 AM
Thanks for the help!

Actually I had to add this to my .htaccess file to make it work....

AddType application/x-httpd-php .htm .html

LeeU
02-05-2007, 02:46 PM
Ah, I just fighured that was there already. Glad you got it working ...