Hi,
I'm using this snippet to strip/replace the & sign (i mostly get that error in my page if theres that sign in a string their but i dont like the result coz it shows & instead of & that wont give errors. Can anyone have a better one.
& & & // POST RESULT No error on page
if its possible to post a result of:
& & & //No error
and sometimes, in a directory list (wapbuddy) if the filename is 1_&.jpg the snippet will rename the download link as 1_&.jpg which is not valid download already and will result to file not found.
I'm using this snippet to strip/replace the & sign (i mostly get that error in my page if theres that sign in a string their but i dont like the result coz it shows & instead of & that wont give errors. Can anyone have a better one.
Code:
$search = array('&', '&'); $replace = array('&', '&'); $output = & & & $result = str_replace($search, $replace, $output); echo '$result';
if its possible to post a result of:
& & & //No error
and sometimes, in a directory list (wapbuddy) if the filename is 1_&.jpg the snippet will rename the download link as 1_&.jpg which is not valid download already and will result to file not found.
Comment