Re: how to post a question?

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

 



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@xxxxxxxxxxxx>
To: "Chirantan Ghosh" <cghosh@xxxxxxxxxxxxxxx>
Cc: <php-general@xxxxxxxxxxxxx>
Sent: Friday, July 22, 2005 12:26 PM
Subject: Re:  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.


--
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