Reply to Re: a (posibly) simple questions...

Your name:

Reply:


Posted by Domestos on 09/29/65 11:29

> Sure you could use a regular expression, but perhaps it's more convenient
> to
> try to fetch the content instead:
>
> $url = strpos($url, 'http://') === 0 ? $url : "http://$url";
> if (@file_get_contents($url)) {
> // URL is valid
> }


okay I am pretty new to PHP can you please explain the following...

what do the three '=' signs mean?

what does the '?' mark do?

and what is ' $url : http://$url ' doing?

[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

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