Re: how to post a question?

From: Date: Fri, 22 Jul 2005 18:06:04 +0000
Subject: Re: how to post a question?
References: 1 2 3 4 5 6  Groups: php.general 
Request: Send a blank email to php-general+get-219234@lists.php.net to get a copy of this message
Hello Edward, I did try your approach in this page http://www.homecare1.biz/public_html/PHPsiteTest01.html with no avail. How would I find out if I have fopen wrappers enabled? This page is remote hosted ( Hosted by Godaddy.com who state I have PHP/MySQL enabled). CODE USED: =========== <table width="778" border="0" cellspacing="0" cellpadding="0"> <tr> <td> <?php print htmlentities(file_get_contents('http://www.dtcc.com/ThoughtLeadership/menu.htm')); ?> </td> </tr> <tr> ============ Thanks for the help, Chirantan ----- Original Message ----- From: "Edward Vermillion" <evermillion@doggydoo.net> To: "Chirantan Ghosh" <cghosh@primarywave.com> Cc: <php-general@lists.php.net> Sent: Friday, July 22, 2005 12:26 PM Subject: Re: [PHP] how to post a question?
Chirantan Ghosh wrote:
Hi Edward, I would simply like to print the remote Menu page( http://www.dtcc.com/ThoughtLeadership/menu.htm ) in a new page. I did the Error report print because I had no idea for what reason my PHP code was working. The menu is used as a header as well(the root file is JS which I can't use as I don't know all the directories of dtcc.com ) I am simply trying to impress a non technical person of the company so I can get a design contract. How can print the menu in different domain html pages? ( I would like to use PHP as server language) Thanks, Chirantan
First try this: <?php print htmlentities(file_get_contents('http://www.dtcc.com/ThoughtLeadership/menu.htm')); ?> That will let you see the HTML in your browser. If you don't get anything then either your request is being blocked by a firewall or you don't have fopen wrappers enabled. I'm betting on the latter though. Are you running a local install of php or through a remote server? You should be generating some kind of errors if your not getting anything back.


« previous php.general (#219234) next »