Remote files exits ?

Hello,

I want to check, whether remote files exits or not. Using wildcards.

http://www.xyz.com/*.dat

Any idea? With simple php I didn’t found a solution. Maybe yii has an one …

Thx.

The only way you can do something like that, is only if the remote server has directory listing enabled.

Even with directory listing enabled you cannot use www.domain.com/*.dat to list all .dat files…

If the remore server is your… you can put there a script (PHP) that would accept a parameter like "*.dat" and output all the dat files…

if you don’t have access to the remote server… and if the directory listing is enabled… than you can get the HTML page generated by the server that contains the list of all the files… and then you can parse that file to search for “.dat” files for example…

but you cannot use wildcards in the URL and expect that they are treated like they are on local machines… this just don’t work…