This might do
function checkLink($link){
flush();
$fp = @fopen($link, "r");
@fclose($fp);
if (!$fp){
return "link is not active";
}else{
return "link is active";
}
}
More Related Contents:
- html graphs from database [closed]
- Submit a form using Shift + Enter [duplicate]
- Calling a function on click of button in HTML/PHP [closed]
- php How to save post and save show to php file like this [closed]
- Save the data into a database and return another value from database using PHP
- Is the following code valid? [closed]
- Call php function from JavaScript
- Form inside of $.load not posting correctly
- Keep values selected after form submission
- How do I run PHP code when a user clicks on a link?
- First drop down menu to auto change the options of a second dropdown
- Execute javascript in PHP
- jQuery AJAX form using mail() PHP script sends email, but POST data from HTML form is undefined
- How can we open a link in private browsing mode
- How to preview an image before and after upload?
- How to dynamically populate options on dropdown lists based on selection in another dropdown?
- How to save webpage as a image file using PHP?
- Javascript function post and call php script
- How to add anchor tag to a URL from text input
- Multiple javascript/css files: best practices?
- onbeforeprint() and onafterprint() equivalent for non IE browsers
- How to I send data from JavaScript to PHP and vice versa? [duplicate]
- Data transfer from JavaScript to PHP
- How to keep form values after post [duplicate]
- How to handle newlines in Javascript? (from PHP)
- Detect Ajax calling URL
- jQuery Multiple Forms Submit
- displaying a message after redirecting the user to another web page [duplicate]
- How to assign Php variable value to Javascript variable? [duplicate]
- Output text file with line breaks in PHP