Re: how to post a question?

From: Date: Fri, 22 Jul 2005 16:26:55 +0000
Subject: Re: how to post a question?
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-219231@lists.php.net to get a copy of this message
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 (#219231) next »