Struggling to replace the backslash with another character, such as '.-.' just to indicate the position of the backslashes, since I could not send a string such as 'C \ xampp \ etc.' via url as a GET variable, so I decided to first replace the backslash in this line with another character, then send the URL, and then replace them back with backslashes in the PHP file that processes it. Although there would be a better way to send such strings via url? Because when I try to use a script, for example:
$tmp_name = preg_replace("\", ".-.", $_FILES['uploadfile']['tmp_name']);
Turns out to be a php error since \ is used as a delimiter.
Can someone help me with this?
Thanks in advance!
Btw, if I could send the full array to the URL, all this problem would be solved, but I don’t think it is possible?
Skyfe source
share