PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
hi guys...got a q....here is the code
as you can see, i work mostly on a mac...the .DS_Store and ._.DS_Store are not read by the PHP (yeah!)...however, i still get files such as ._0.jpg, ._1.jpg, etc...what am i missing. SHouldn't the $file !="." prevent that?
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
hi jamiel...really, i am using my brain here, and it is starting to hurt....i understand what the preg_match does, but not sure how to use it in my particular place.
All you should do is verify if the first character of the http://www.php.net/string equals a dot (read the 'String access and modification by character' section). With http://www.php.net/strpos you can also determine the position of a dot in a given string... Imho, there are easy (presuming that regulare expressions aren't easy) options too....