has posted a similar problem please point me in the direction of the post.
Well, basically I want to make a service where I recieve a set of values to fill a form. The form would be in a text file on my server and depending on the
form the user wants to fill the service would read a specific text file. My idea was to have those files prepared for this by inserting the variable names in them.
For example, lets say I had a form where I wanted to put the name of an employee, the form file on the server would start with something like this:
YYYY-MM-DD
Mr. $name
Random text with financial stuff I don't understand
.
.
.
So, I have that text file on the server and I have read it with file_get_contents(), which I understand returns a string, but when I print that string it literally says "$name", instead of the value I sent as a parameter when calling my service. If I concatenate the string: " $name " at the end this string the mention of the variable does get replaced with the value I want, so I don't know what I'm doing wrong. Does the string returned by file_get_contents() have a special format which makes the interpreter overlook mentions of variable names? Thanks in advance, I hope someone can help me with this.