[prev in list] [next in list] [prev in thread] [next in thread] 

List:       php-db
Subject:    Re: [PHP-DB] Not Valid URL
From:       Kamil Walas <kamilwalas85 () gmail ! com>
Date:       2009-02-23 21:44:10
Message-ID: 49A318AA.2080705 () gmail ! com
[Download RAW message or body]

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic