note 20318 rejected from ref.url by alindeman

From: Date: Fri, 29 Mar 2002 19:24:15 +0000
Subject: note 20318 rejected from ref.url by alindeman
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-28395@lists.php.net to get a copy of this message
I have some PHP code that get's a dynamic URL that a user inputs in a form. Before I go any further, I would like PHP to check the URL and make sure it is an actual page. In other words, if I can actually go to the URL in a browser, than I want the URL to pass. But, if the URL is put into a browser and an error or forward comes up, I want to ignore the URL. I have tried to use the fopen() command but it passes URL's that still error out in a browser. Basically, if the URL has HTML on the other end of it, I want it to be accepted, else, buh bye! John R Craig

« previous php.notes (#28395) next »