Reply to Re: help pls on taking url value

Your name:

Reply:


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

[Back to original 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

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