FRESHERSHOME![]() |
This is a discussion on How to get a PHP file to be included across files in different directories? within the PHP forums, part of the Languages category; Currently I have created some php based webpages and uploaded them to my web hosting server.It has a PHP 5.1.6 ...
| |||||||
| Notices |
| PHP PHP Discussion Forum, PHP Configuration, PHP help, etc |
![]() |
| | Thread Tools | Display Modes |
|
#1
| |||
| |||
| Currently I have created some php based webpages and uploaded them to my web hosting server.It has a PHP 5.1.6 installed.With this I am able to include files only that are in the same directory(they work well using require() fn).If not an error message displaying some "no such file" in directory appears in the page.I would like to use them to be included in different direcetories.What should I do?
__________________ Powered by Yahoo! |
|
#2
| |||
| |||
| create the directories and include the names when using the require() function. example : your index.php is in the root directory /index.php and you have a directory with your other php files in /lib/other.php so in index.php you will have require("lib/other.php");
__________________ Powered by Yahoo! |
![]() |
| Tags |
| php |
| Thread Tools | |
| Display Modes | |
|
|
Sitemap
Jobs by Location: Advertising and Marketing Jobs - IT Software Jobs - Walk-in Jobs - BPO Jobs - Government Jobs - Sales / BD Jobs - Tele Communication Jobs App Programming - Network Admin
Jobs By Location: Jobs in Bangalore - Jobs In India - Jobs in Delhi - Jobs in Hyderabad - Jobs in Kochi - Jobs in Mumbai - Jobs in Trivandrum - Jobs in pune - Jobs in Jonida - Jobs in Chennai - Jobs in Coimbator
Jobs Type: Full Time Jobs - Part Time Jobs
Latest Jobs - Accounting Jobs - Engineering Jobs - IT Jobs - Walkins - How to Face Interview - HR Round Tips - Career Info - Guide For Freshers - Apply for Jobs - Future Studies - Jobs Forums - Freshers IT Software Salary Details