Jump to content

flipping slashes?


bcoffin

Recommended Posts

I noticed on safari, file fields are shown with forward slashes, whereas on a PC, file fields show backslashes.

IE: on my pc, i browse to a file:
path\to\my\file.jpg

on my mac, i browse to the same file:
path/to/my/file.jpg

I'd like to alert the "file.jpg" to the user, but have to either split at the forward slash or the backslash.. can you suggest how to do both?


thanks,
benny
Link to comment
https://forums.phpfreaks.com/topic/4408-flipping-slashes/
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.