I am using PHP to display a fileserver path.
What I am getting now:
file:%22////filsrv//logs//Test//D_log1.1.1%22
I am using this method to strip
$rs1 = preg_replace("/%u([0-9a-f]{3,4})/i","",urldecode($row['ResultDirectory']));
but I am not sure If I am using the right one,
The actual Path stored in the DB is :
\\filsrv\logs\Test\D_log1.1.1
missing anything? Thanks,
Ok, resolved with this
echo '<a href=file:'.$rs1.'</>';
to
echo '<a href='.$rs1.'</>';
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.