i have two files rss-direct.php and rsslib.php on the server http://d488096.u37.royaltyservers.com/sunday/
i want to include the file rsslib.php in the file rss-direct.php
is this not the pertaining code?
include("http://d488096.u37.royaltyservers.com/sunday/rsslib.php");
i have tried require,require_once,include_once also.but it doesnt get included.
Moreover it works on my localhost where i included it as include("rsslib.php");
Can someone help??what might be the problem?
Thanks
ashy01
include a file
Moderator: General Moderators
Re: include a file
If there's an html and body in rsslib.php try and remove it.
- AbraCadaver
- DevNet Master
- Posts: 2572
- Joined: Mon Feb 24, 2003 10:12 am
- Location: The Republic of Texas
- Contact:
Re: include a file
Code: Select all
include("rsslib.php");mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.
-
lunarnet76
- Forum Commoner
- Posts: 67
- Joined: Sun Apr 04, 2010 2:07 pm
- Location: Edinburgh
Re: include a file
yes you are always including LOCAL file, you CANNOT include distant file (actually you can but it's if you need it!)
http://php.net/manual/en/function.include.php
http://php.net/manual/en/function.include.php