You are here: Re: [PHP] how to post a question? « PHP « IT news, forums, messages
Re: [PHP] how to post a question?

Posted by Edward Vermillion on 07/22/05 19:26

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.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация