| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| NamePros Regular Join Date: Mar 2004 Location: North West England
Posts: 626
![]() ![]() ![]() | PHP Include <? include("usersonline/users.php"); ?> = a working include, on the same domain <? include("http://www.usavioservices.com/usersonline/users.php"); ?> = external include, doesnt work, no errors How can i get it to work?
__________________ Christopher Adam Reilly 'I will follow my dream, Until the dream decides to follow me' Chris Reilly - 05 |
| |
| | #2 (permalink) |
| Senior Member Join Date: Aug 2002
Posts: 1,255
![]() ![]() | In order to include remote files you need to have the allow_url_fopen setting in your php.ini enabled. If you don't have root access, then you'd have to ask your host to enable it. You can see whether or not it is enabled by looking at your phpinfo(). |
| |
| | #3 (permalink) |
| NamePros Expert Join Date: Nov 2003 Location: Scotland
Posts: 5,074
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | also the internal include would include the contents before parsing the script the external 1 would be after it parsed the script so depending on what the script was would depend on wether either would work. |
| |
| | #4 (permalink) |
| Senior Member Join Date: Aug 2002
Posts: 1,255
![]() ![]() | Yea what filth said. To make it a little more clear, the remote include is going to include the output of the script. If you're trying to include some configuration file or something from a remote domain it's not going to work. |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Tutorial: Getting started with PHP (The Basics) | deadserious | Webmaster Tutorials | 60 | 11-17-2007 11:35 AM |
| Googlism - What does google think of you? | deadserious | The Break Room | 55 | 12-15-2005 09:09 AM |
| PHP Include Shop | GHOwner | For Sale / Advertising Board | 0 | 10-18-2004 05:13 PM |