Gday Gang,
Just a quick one i cant seem to sort out. I have a php script that echoes information out to my proftpd.conf file.
One of the lines the gets echoed out needs to have quotation marks around it in the proftpd.conf file. But obviously when i put " in there i get parse error, and when i put \ in front of the ", i dont get the quotation marks
Here is the line of code i am trying to use.
exec("echo \"AccessGrantMsg Access Granted For '%u'.\" >> /dir/to/proftpd.conf");
And here is what i actually want to be in the proftpd.conf file
"AccessGrantMsg Access Granted For '%u'."
Including the " marks.
Im sure its just a syntax thing, but being relatively new to php im not quite sure how to conquer it.
Many thanx in advance
Dave