You are here: Re: Screen dumping dynamically generated PHP web pages????? « All PHP « IT news, forums, messages
Re: Screen dumping dynamically generated PHP web pages?????

Posted by J.O. Aho on 10/13/58 11:31

Gary wrote:
> In fact would this work???? I get the impression that the / just before
> the quote on the first line is necessary.

You need to tell that it's something else than the local filesystem, so you
need the http:// ftp://, everything else is considered as to bing on the local
filesystem.


> $url = "www.MySite.com/OnePageinParticular.php/"

php will look for the directory named www.MySite.com and there try to find
another directory named OnePageinParticular.php.

I think you want to access the OnePageinParticular.php on the host
www.MySite.com, then it's

$url = "http://www.MySite.com/OnePageinParticular.php"

> $fp = fopen($url, "r") or die("OPEN");
> while (! feof($fp))
> {
> fread($fp, 1024) or die("READ");
> }
> fclose($fp) or die("CLOSE");

For more info on fopen and user comments, see
http://www.php.net/manual/en/function.fopen.php


//Aho

 

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

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