Results 1 to 6 of 6
-
17th Sep 2012, 12:09 PM #1OPMember
Another PHP little question
Hello guys,
Maybe someone can help me again with a PHP question.
I have WEBSITE A and WEBSITE B
In WEBSITE A I created a php file and I display the content on my index.php using this code:
PHP Code:<?php include 'block/content.php'; ?>
PHP Code:<?php include '/home/username_website_a/public_html/block/content.php'; ?>
Code:Warning: include(/home/username_website_a/public_html/block/content.php) [function.include]: failed to open stream: Permission denied in /home/username_website_b/public_html/index.php on line 45 Warning: include() [function.include]: Failed opening '/home/username_website_a/public_html/block/content.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/username_website_b/public_html/index.php on line 45
But Im a newbie and I dont know If this is possible.
Can someone help me please? :-)
Thanks!!Divvy Reviewed by Divvy on . Another PHP little question Hello guys, Maybe someone can help me again with a PHP question. I have WEBSITE A and WEBSITE B In WEBSITE A I created a php file and I display the content on my index.php using this code: <?php include 'block/content.php'; ?> Now I want to display the exactly same file/content in WEBSITE B, for that I'm using this code: Rating: 5
-
17th Sep 2012, 07:17 PM #2MemberWebsite's:
GigaServers.net InterWAP.roCHMOD your /home/username_website_a/public_html/block/content.php file in order to have read access from all users.
-
18th Sep 2012, 03:58 PM #3Respected Member
You will have to change the owner or group to allow the other website (group) to access it..
-
18th Sep 2012, 04:05 PM #4Banned
Why not do something like:
Code:<?php include 'http://websitea.com/block/content.php'; ?>
-
18th Sep 2012, 04:08 PM #5MemberWebsite's:
sborg.us^^ You can't do this. It is a PHP file
V3g3ta | Halcyon | Abhi
-
18th Sep 2012, 04:43 PM #6MemberWebsite's:
GigaServers.net InterWAP.royou can't include URL's, only in case that you activate allow_url_include in your php.ini file
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
<?php tag question
By Porsche_maniak in forum Web Development AreaReplies: 7Last Post: 1st Feb 2012, 10:35 PM -
DLE question
By Divvy in forum Webmaster DiscussionReplies: 4Last Post: 2nd Apr 2011, 03:00 PM -
question about windows server before i buy and question about wrzhost
By priviet02 in forum Hosting DiscussionReplies: 5Last Post: 3rd Jan 2010, 05:23 PM -
question
By priviet02 in forum Hosting DiscussionReplies: 2Last Post: 24th Sep 2009, 02:07 PM -
Question!
By Luke in forum General DiscussionReplies: 8Last Post: 23rd Sep 2009, 03:30 PM
themaCreator - create posts from...
Version 3.24 released. Open older version (or...