Re: Not Valid URL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
'<?php
echo 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

Check the file containing the first link again.   '%5c%22' is the
characters '\"'.  Seems you have escaped the double quotes in a single
quoted string


--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--
Niel Archer





--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux