omar K
omar K

Reputation: 245

Renaming a file in php with the date at the end

I'm trying to rename a file with a specific date attached to the end of the file name. For example: vertices_dly_jrnl_automation_25_June_2013.csv.

The date must be 1 day prior to the current date.

This is the error I'm receiving: Invalid Argument

Upvotes: 0

Views: 177

Answers (1)

faffaffaff
faffaffaff

Reputation: 3549

You need to escape your backslashes, so use \\ instead of \ everywhere

Upvotes: 2

Related Questions