Jump to content

Checking if page exists


plznty

Recommended Posts

Seeing as php is server side, the only way to really check is by grabbing the data in the URL and checking the data to see if the pattern "php" was anywhere in the URL.

 

But there is a flaw in the logic, because if the site has friendly urls, then that patentially means as there would be no means of checking.

 

Not sure why you would want to be doing this though...

 

Rw

 

Link to comment
Share on other sites

Seeing as php is server side, the only way to really check is by grabbing the data in the URL and checking the data to see if the pattern "php" was anywhere in the URL.

 

But there is a flaw in the logic, because if the site has friendly urls, then that patentially means as there would be no means of checking.

 

Not sure why you would want to be doing this though...

 

Rw

 

 

It seems to me that he wants to use php to see if a URL actually exsist, not if the URL in question is hosted on a server running php.

Link to comment
Share on other sites

I'm having a part of my script input users websites, if the website does not exist I do not want to put that useless information into the database. I need a script just to see if the URL they provided does exist.

I don't mind if it leads to a soft 404, aslong as it isn't linking to a page that clearly does not exist.

Thanks for help so far.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.