Not Valid URL
am 23.02.2009 21:42:48 von Kamil Walas
Hi,
I stuck with something like this. I have two file test.html with only
'' and main.php with
'
echo file_get_contents('test.html').'
';
echo '';
?>'
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
AAAAAAAAaaa
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
Re: Not Valid URL
am 23.02.2009 22:28:51 von Niel Archer
> Hi,
>
> I stuck with something like this. I have two file test.html with only
> '' and main.php with
> '
>
> echo file_get_contents('test.html').'
';
> echo '';
>
> ?>'
> 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
> AAAAAAAAaaa
>
> 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
Re: Not Valid URL
am 23.02.2009 22:44:10 von Kamil Walas
Yes, it is \". But in my file i have only
href="../index.php">AAAAAAAAaaa. 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
>> '' and main.php with
>> '
>>
>> echo file_get_contents('test.html').'
';
>> echo '';
>>
>> ?>'
>> 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
>> AAAAAAAAaaa
>>
>> 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