Jump to content

Check string url is valid?


EchoFool

Recommended Posts

Is there a pre-made function for doing something like:

 

Say a variable had 'testfolder/test.php' or just 'test.php' (as a string).

 

Then you use that variable to check your server to see if that page exists? And if the function cannot find it then it errors ? Is such a function in existance? I did some searching but kept finding functions to check if image locations were valid but never scripts...

Link to comment
https://forums.phpfreaks.com/topic/113646-check-string-url-is-valid/
Share on other sites

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.