Jump to content

if remote url string is a file or directory?


XpertWorlock

Recommended Posts

This one stumped me, but maybe someone has figured it out. 

I'm trying to write a script that is able to decide whether a remote url is a directory or a file, this is fine until it comes to mod_rewrite(rewritten?)  urls.

 

ex.

http://www.example.com/test

 

Now this could be test.php,test.html etc., but in the rare case, it could also be a folder (example.com/test/index.php).

 

Anyone have any ideas? :shrug:

 

 

 

 

 

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.