RE: [PHP] Searching a file

From: Date: Wed, 23 Apr 2003 01:51:44 +0000
Subject: RE: [PHP] Searching a file
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-144938@lists.php.net to get a copy of this message
> Those are good suggestions but I doubt they'd know how, no offense of some > of the people on here are hosted by the people I work for.. ;-) > > I still have one more question aside from the extenstions thing. I got to > thinking, I have these hosted sites on something like 3 different servers. > How can I open the root directory for all of them from one of those > servers > only? I tried just putting their web address with the trailing slash and > got > a > > Warning: opendir(http://www.slicerhq.com/) [function.opendir]: failed to > open dir: not implemented in c:\inetpub\wwwroot\dodb.php on line 31 Couldn't you just do: $fp = fopen('http://www.slicerhq.com','r'); and read the output? That'll give you the actual HTML source of their index page, whether it's .html or .php doesn't matter, and then you can search that for your "ad". ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/

« previous php.general (#144938) next »