Home Community Mys-Script Creative Off-Topic |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
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?
|
#2
|
|||
|
|||
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 |
#3
|
|||
|
|||
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 |
#4
|
|||
|
|||
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.... |
#5
|
|||
|
|||
RE: How to get a PHP file to be included in the files in different directories?
Code:
<?php include('../yourdirectory/yourfile.php'); ?> |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
The Official Mysidia site directories list | Hall of Famer | Mysidia Adoptables Official Announcement | 22 | 02-22-2016 09:35 PM |
Javascript included in PHP? | Aasixx | Questions and Supports | 2 | 10-30-2012 03:46 AM |
css files | superdude44 | Questions and Supports | 5 | 05-06-2012 06:46 PM |
Updates to files. | Bloodrun | Suggestions and Feature Requests | 11 | 01-18-2011 06:58 PM |
lang.php not included in forgotpass.php [ANSWERED] | arlecchina | Questions and Supports | 4 | 07-14-2009 07:42 PM |
What's New? |
What's Hot? |
What's Popular? |