Posted By

dosde on 03/05/13


Tagged

url validation concrete5


Versions (?)

URL validation


 / Published in: PHP
 

validate given URL through C5

  1. if (strstr($url, 'http://') == false){
  2. $url = 'http://'.$url;
  3. }
  4.  
  5. Loader::library('3rdparty/Zend/Uri/Http');
  6. if (Zend_Uri_Http::check($url)) { /*... */ }

Report this snippet  

You need to login to post a comment.