Posts Tagged ‘url’
vBulletin: change the redirect or the url in the login process
There is a common thing for vBulletin users to want to customize the login box. This can be done by Admin CP -> Styles & Templates -> Style Manager -> « » -> Navigation / Breadcrumb Templates -> navbar (Note for spanish users: Buscar Plantillas de navegación entre las plantillas, y dentro de ella, navbar) [...]
PHP: check if url exists (or file via url)
If you want to check wether a file exists or not, and this file has a public URL, you can use the following PHP code to check its existance. function url_exists($strURL) { $resURL = curl_init(); curl_setopt($resURL, CURLOPT_URL, $strURL); curl_setopt($resURL, CURLOPT_BINARYTRANSFER, 1); curl_setopt($resURL, CURLOPT_HEADERFUNCTION, ‘curlHeaderCallback’); curl_setopt($resURL, CURLOPT_FAILONERROR, 1); curl_exec ($resURL); $intReturnCode = curl_getinfo($resURL, CURLINFO_HTTP_CODE); [...]