I have read some of old posts regarding including the files in virtual paths, got 2 answers, one is add entry in php.ini file, and second is through .htaccess, I need details on both accounts, where can I find php.ini, and what shud I write in .htaccess file.
What exactly do you want to achieve? If you just want to include a fiel then you can stick it in the same directory as the script you wish to include it in and use
in your PHP script. The include_path and so forth are only important if you wish to keep your include files completely seperate from your main scripts (useful if you include a file in a lot of different scripts or for security when storing database connection details in an included file).
I have header and footer files, I dont want to use different header footer files in different directories, lets say in root directory I'll be using include("header.php"), where in root/first directory I'll be using include("../header.php"), but I want to use same string in all directories, some thing like include virtual in ASP, some body else has asked similar question, thats why I didnt explain,
Sorry about that - I didn't read the other thread first. You won't be able to edit the php.ini file unless you arethe server administrator (i.e if you are using a hosting account somewhere it's very unlikely you'll be able to change it) - I'm afraid I haven't the slightest idea if or how you could do it with .htaccess though :confused: