DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   PHP (http://www.daniweb.com/forums/forum17.html)
-   -   using php to check for filenames (http://www.daniweb.com/forums/thread39856.html)

fogofogo Feb 20th, 2006 6:16 am
using php to check for filenames
 
Hello folks.

I have a question about using php to select a file according to date. I am working on a project that uses xml to display horoscopes on a website. The xml feeds are ftp'd onto our server and have a different file name depending on the date. Unfortunetly this is the only way the xml is available.

The filenaming is:

Feed_name_YYYYMMDDHHMMSS_$storyid.xml

For example:
TMG_Horoscopes_Daily_Virgo_media_20060216100017_985313.xml


I'll be using php to do this, and as I'm fairly new to it, I'm not sure where to go from here. Does anyone have any advice, scripts or tutorials that might be able to help me?

Thanks guys,

John

DanceInstructor Feb 20th, 2006 2:41 pm
Re: using php to check for filenames
 
If I need info about PHP I always check php.net first. The function reference is great. There are usually some code examples and user discussion at the bottom of each page.

Other places to find articles, tutorials, and code snippets are:

DaniWeb PHP Code Snippets :)

phpbuilder

PHP section at Spoono

Good luck :cool:

fogofogo Feb 21st, 2006 5:52 am
Re: using php to check for filenames
 
Thanks man - I'll check those


All times are GMT -4. The time now is 9:25 am.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC