Php check whether file xml




















Active 8 years, 4 months ago. Viewed 28k times. I can't seem to figure this one out. I'd appreciate some help! Improve this question. Stefan Gehrig Add a comment. Active Oldest Votes.

Improve this answer. Stefan Gehrig Stefan Gehrig Otherwise, thanks for the great code — D. Okay, looks like XPath was what I wanted. Dimitre Novatchev Dimitre Novatchev k 26 26 gold badges silver badges bronze badges.

Add a comment. Active Oldest Votes. Improve this answer. Mob Mob Abbas Abbas Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. With PHP 7. NB: This function expects the full server-related pathname to work. Note on openspecies entry excellent btw, thanks! Replace the extensions net com PHP under a web server i.

This results in files that appear to NOT exist on a symbolic link, even though they are very much in existance and indeed are readable by the web server.

I wrote this little handy function to check if an image exists in a directory, and if so, return a filename which doesnt exists e. It works fine at my place. Ofcourse you can use it also for other filetypes than images.

This is at least the case on this Windows system running php 5. Older php v4. So I made this one and working.



0コメント

  • 1000 / 1000