You are here: Re: file_get_contents « All PHP « IT news, forums, messages
Re: file_get_contents

Posted by Danny on 01/08/06 18:38

Thanks,

The thing is, that many tags are still stripped. I need the complete tags in
my database, the output is as follows.

\r\n\r\n\r\n\r\n \r\n\r\n\r\n \r\n\r\n\r\n\r\n\r\n\r\n
\r\n\r\n
sdfsdfsdfsdfs

\r\n\r\n
sdfsdfsdfsdfs sdfsdfsdfsdfs

\r\n\r\n


\r\n\r\n

\r\n\r\n
\r\n\r\n\r\n\r\n\r\n



and the content of the page is:

<html>

<head>
<meta http-equiv=Content-Type content="text/html; charset=windows-1252">
<meta name=Generator content="Microsoft Word 10 (filtered)">
<title>sdfsdfsdfsdfs</title>

<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
@page Section1
{size:595.3pt 841.9pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.Section1
{page:Section1;}
-->
</style>

</head>

<body lang=NL>

<div class=Section1>

<p class=MsoNormal>sdfsdfsdfsdfs</p>

<p class=MsoNormal>sdfsdfsdfsdfs sdfsdfsdfsdfs</p>

<p class=MsoNormal>&nbsp;</p>

<p class=MsoNormal>&nbsp;</p>

</div>

</body>

</html>

Thanks
"Stefan Rybacki" <stefan.rybacki@gmx.net> schreef in bericht
news:42cqr2F1i7hamU1@individual.net...
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Danny wrote:
>> Thanks for the answer. I tried:
>> $par = mysql_real_escape_string($p1);
>> then i want to update this, but it only stored the temp filename of the
>> file
>> nothing else.
>
> yes it should be
>
> $par=mysql_real_escape_string(file_get_contents($p1));
>
> Regards
> Stefan
>
>>
>>...
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.1rc2 (MingW32)
>
> iD8DBQFDwTVjyeCLzp/JKjARAmm7AJ4lg9k+CqJVz8xVYVQIMs2+fxIdrgCeNrEV
> GTyDKSAqDUhgNo3lC2UMNH0=
> =Wv9o
> -----END PGP SIGNATURE-----

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация