\r\n",$paragraph_array[$i]); //handle single line breaks
's $paragraphs .= "

".$paragraph."

\n"; } return $paragraphs; } function formatHotParagraphs($text) { $paragraph_array = explode("\r\n\r\n",$text); //split into paragraphs $paragraphs = ""; for($i=0; $i < sizeof($paragraph_array); $i++) { $paragraph = str_replace("\r\n","
\r\n",$paragraph_array[$i]); //handle single line breaks
's $paragraphs .= $paragraph; } return $paragraphs; } function stripslashes_deep($value) { $value = is_array($value) ? array_map('stripslashes_deep', $value) : stripslashes($value); return $value; } function generate_mail($company_name,$company_web,$content){ $email=""; $email.="" . $company_name . " Enquiry"; $email.="
 

"; $email.= $content; $email.="

 
 
 
Copyright © 2009, " . $company_name . " Visit " . $company_name . " →"; $email.= "
 
"; $email.="

Website Designed by Western-Webs, Tuam, County Galway, Ireland

Copyright © 2009, Western Webs

"; return $email; } function remote_file_exists($url) { $curl = curl_init($url); //don't fetch the actual page, you only want to check the connection is ok curl_setopt($curl, CURLOPT_NOBODY, true); //do request $result = curl_exec($curl); $ret = false; //if request did not fail if($result !== false) { //if request was ok, check response code $statusCode = curl_getinfo($curl, CURLINFO_HTTP_CODE); if ($statusCode == 200) { $ret = true; } } curl_close($curl); return $ret; } ?>