<?php $url = 'http://a.com/php/abcpdf/'; $url_data = parse_url($url); if(strpos(trim($url_data['path'],'/') . "/","php/") !== false){ echo "exists"; // your task }
You have javascript disabled. You will not be able to edit any code.