+ Reply to Thread
Results 1 to 2 of 2

Thread: Check if a URL Exists

  1. #1
    Programming Professional Chan is an unknown quantity at this point
    Join Date
    Jun 2006
    Posts
    205

    Check if a URL Exists

    I can't find a working function which will allow me to check if a url exists?


    Can anyone provide me with one? Or help me create one?

  2. #2
    Programming Expert Crane is on a distinguished road Crane's Avatar
    Join Date
    Nov 2005
    Posts
    399
    You could always just use simple code like:

    Code:
    $content fopen($url);
    if (
    $content) {}
    else {
      
    // URL Does not exist

    Or you could make a connection to port 80 and see if the connection rejects or not.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Check your IP
    By Jaan in forum PHP Tutorials
    Replies: 7
    Last Post: 01-17-2008, 08:29 AM
  2. Check My Blog
    By Deathcry in forum Site Reviews
    Replies: 7
    Last Post: 01-14-2008, 08:57 PM
  3. Check if a file exists?
    By Lop in forum Pascal/Delphi
    Replies: 3
    Last Post: 01-07-2007, 12:54 AM
  4. Check if a file exists
    By Lop in forum C and C++
    Replies: 4
    Last Post: 08-07-2006, 10:03 PM
  5. Check if a File Exists
    By NeedHelp in forum C# Programming
    Replies: 4
    Last Post: 08-07-2006, 05:20 PM

Bookmarks

Bookmarks

     
        Algorithms and Data Structures

        Java tutorials

        Algorithms Forum

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts