tags:

views:

53

answers:

1

Hi,

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,

A: 

Ok, resolved with this

echo '<a href=file:'.$rs1.'</>';

to

echo '<a href='.$rs1.'</>';
JPro