| 
	
 | 
 Posted by Rik on 06/05/07 15:17 
On Tue, 05 Jun 2007 11:39:38 +0200, shotokan99 <soft_devjava@yahoo.com>   
wrote: 
> actually this is how i did it: 
> 
> 1. i have a textbox for the user to encode the url 
> 2. by $_POST['x'] ill evaluate the url if valid or not using 
>    file_get_contents(). 
>    if(!file_get_contents($x){ 
>     // do actions here.. 
>    } 
> 
>    however i dont know if what is wrong, file_get_contents() works 
> perfectly on 
>    my local machine but upon loading to our webserver, it doesn't work 
> at all. 
 
allow_url_fopen enabled at home and disabled on the server? 
 
Also, I'd just do a HEAD request using fsockopen(), unless you really need   
the contents of the site in question. 
--  
Rik Wasmus
 
  
Navigation:
[Reply to this message] 
 |