Re: Not Valid URL
| From: | Kamil Walas | Date: | Mon, 23 Feb 2009 21:44:10 +0000 |
| Subject: | Re: Not Valid URL | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-46002@lists.php.net to get a copy of this message | ||
Yes, it is \". But in my file i have only <a href="../index.php">AAAAAAAAaaa</a>. There is no '. I figured out that:
echo stripslashes( file_get_contents('test.html') );
works for the link but it didn't work when I try to print entire website.
So I'm stuck, again.
Regards,
Kamil Walas
Niel Archer pisze:
Hi, I stuck with something like this. I have two file test.html with only '<a href="../index.php">AAAAAAAAaaa</a>' and main.php with '<?phpCheck the file containing the first link again. '%5c%22' is the characters '\"'. Seems you have escaped the double quotes in a single quoted stringecho file_get_contents('test.html').'<br>'; echo '<a href="../index.php">AAAAAAAAaaa</a>';?>' The problem is tak this two links are different. First is http://localhost/game/php/%5C%22../index.php%5C%22 Second is http://localhost/game/index.php Paste from FireFox: AAAAAAAAaaa <http://localhost/game/php/%5C%22../index.php%5C%22> AAAAAAAAaaa <http://localhost/game/index.php> I copy file to remote serwer at work and school and both are the same. Problem is somewhere in my computer. I think in my php configuration, but I don't know where to look. Would appreciate it greatly if anyone can help. Regards, Kamil Walas-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php-- Niel Archer