...stuff... $path = 'C:\HLserver\cstrike'; ...stuff... // DO NOT EDIT $cstrike = $path . '\\';
That is part of my config file for a program I'm making.
Is there any way that the user can just put the path with the \ on the end of it in the $path var? Or is there mayb a way that I could invisibly do the "$cstrike = $path . '\\';"
Sorry, I should have said what I wanted $path to turn out to be.
C:\HLserver\cstrike\
Php doesnt like having a \ at the end of a variable, so I had to use the \, to cancle the \. get it?
The code I have to add the final \ works, but I want to know any ideas to hide it somewhere so that the config file is just variables and descriptions.