Forward slash, slash conversion, browser compatibility etc..
Posted: Tue Sep 01, 2009 7:07 pm
Sorry for the vague subject, but I am soo confused right now.
Here is the necessary code -
//Storing the path of an html file
//retrieving the path and making a link
THe problem now is that the link thus formed doesn't works (in opera/firefox), it ends up like -
instead of being
The weird part, is that in internet explorer the link magically sets itself right. the slash automatically convert themselves to forward slashes and the link points to the right place .
Even weirder in firefox the slash to forward slash conversion did work a while back. Not sure what affected this
what is happening ?
Help please
I am running the site on netserver (localhost)
Here is the necessary code -
//Storing the path of an html file
Code: Select all
$newfile = "categories\books\\".$newfile1 ;
fwrite($fp, $title."||".$description."||".$email."||".$newfile."••\n");Code: Select all
echo $data[$k][3] ; // this outputs categories\video\14a9d9f6b13130.html
echo "<tr><td> <a href=".$data[$k][3]." >".$data[$k][0]."</a> </td></tr>"; // making a linkCode: Select all
http://localhost/categories\books\14a9988973938a.html (note the slash)Code: Select all
http://localhost/categories/books/14a9988973938a.html (note the slash)Even weirder in firefox the slash to forward slash conversion did work a while back. Not sure what affected this
what is happening ?
Help please
I am running the site on netserver (localhost)