How to get a PHP file to be included in the files in different directories?
Currently I have created some web pages in PHP and moved to my hosting a server.It installed.With PHP 5.1.6 that I am able to include only the files that are in the same directory (which work well with require (). If this is not an error message to show some No such file in the directory appears on the page. Want to use them for inclusion in various direcetories.What I do?
|
RE: How to get a PHP file to be included in the files in different directories?
Something along the lines of
PHP Code:
Note: the full url you're looking for should be something like Code:
http://websitename.com/directory/file.php |
RE: How to get a PHP file to be included in the files in different directories?
Quote:
Do a quick search for: php includes relative paths |
RE: How to get a PHP file to be included in the files in different directories?
Quote:
yes i agree with you .... give ralative paths in include function.... |
RE: How to get a PHP file to be included in the files in different directories?
Code:
<?php include('../yourdirectory/yourfile.php'); ?> |
All times are GMT -5. The time now is 11:10 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.