Re: how to post a question?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux