You are here: Re: How to echo content of a file? « PHP Language « IT news, forums, messages
Re: How to echo content of a file?

Posted by <talthen.z-serwera.o2 on 11/20/74 11:25

"Colin McKinnon" <colin.deletethis@andthis.mms3.com>
> If you REALLY can't change the included file to use proper PHP syntax, you
> could try using eval() but I suspect you really just need to add <?= ?>
> tags around the PHP variable. Make sure you understand the security
> implications before using eval() on a production machine, - you're leaving
> your system wide open to PHP injection. Even if you just fix the tags,
> your
> going to be vulnerable to XSS attacks.

Ok, thanks. I already changed the file to a real php file, but I wanted to
know if there is a way to treat plain string as php code :)
Thanks.

Regards,
Talthen

 

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

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