![]() |
|
| |||||||
| Notices |
| mySQL & PHP Discussions, information and help with mySQL and PHP. |
![]() |
| | LinkBack | Thread Tools |
|
#1
| |||
| |||
| what i'm doing wrong... just not understand this <?php include('http://www.xxxxx.xxx/cgi-bin/news/ex...h/procura.html); ?> is not equal to <?php include('/home/xxxxxxx/public_html/cgi-bin/news/exec/search.cgi?search=1&perpage=5&cat=3&template=searc h/procura.html') I canīt use the first because fopen = false and the second don't get the data Can someone help Best Regards |
|
#2
| |||
| |||
| i start to get it i want to call a file from the server root and now is this statement i'm calling the file from inside the directory where the file resides. can someone help me to make the statement include from the root (server root) Best Regards |
|
#3
| ||||
| ||||
| Well first you have to use the closing ?> parameter and then you need to remove the /cgi-bin if you want it at the root or move it to the cgi bin/news etc Karen
__________________ KMAC Enterprise Granny's Country Nook 10%Off, your code: Forum Discounts Charming Noveltees~Sports Logos Charms, Jewelry, Collectibles- 10% off, your code: VodaHost ![]() |
|
#4
| ||||
| ||||
| <?php include('/home/username/public_html/cgi-bin/news/exec/search.cgi?search=1&perpage=5&cat=3&template=searc h/procura.html'); ?> Remove the white space at the end: search/procura.html . Add ; at the end before the closing tag.
__________________ Navaldesign Logger Lite: Low Cost, Customizable, multifeatured Login script Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more.... Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA! |
|
#5
| ||||
| ||||
| And the reason that this didn't work was for several reasons <?php include('http://www.xxxxx.xxx/cgi-bin/news/ex...h/procura.html); ?> First, you didn't close the end of it with a ', before the ); Secondly, you can't use a full http:// link with a php include. Rather, you need to use a relative link. If you have say.. www.yoursite.com/index.php www.yoursite.com/sub_directory/index.php www.yoursite.com/include_directory/header.php If on www.yoursite.com/index.php you would use <? include("include_directory/header.php"); ?> If on www.yoursite.com/sub_directory/index.php you would use <? include("../include_directory/header.php"); ?>
__________________ Register/Login Script Do you use a Password Protected Directory? Need a way to allow users to make their own account, try my .htaccess Login Script |