Jump to content

Jamesonp

New Members
  • Posts

    3
  • Joined

  • Last visited

Jamesonp's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. No, I was just trying to have php generate the current date in the format of yyyy-mm-dd. I have a bash script that creates the folder on a daily basis and syncs the necessary files there using lftp.
  2. Thanks for the reply. Basically all it needs to do is fill in the current date for the folder.
  3. Hey all, Thanks for this great forum. I've learned a lot. What I'm trying to do is create a php script that will select a folder based on the date. For example, this is the original code: $file = '/var/www/html/public_html/svsshc/'.$_REQUEST['id'].'.png'; the folder the .png files will be in, for example, is: /var/www/html/public_html/svsshc/2014-01-07 I tried doing this but it did not work properly: $file = '/var/www/html/public_html/svsshc/'$_date'/'.$_REQUEST['id'].'.png'; I apparently don't have a very good grasp on how the php date function works. Any suggestions on what to do? Thank you!
×
×
  • 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.