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

 

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.

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.