You are here: Re: [PHP-DB] Re: Inserting a php file into a mysql database « PHP « IT news, forums, messages
Re: [PHP-DB] Re: Inserting a php file into a mysql database

Posted by John Meyer on 12/26/05 17:31

On Monday 26 December 2005 8:26 am, El Bekko wrote:
>
> Use file_get_contents() I'd say... but you'll have the problem the file
> executes :S

Which is why I told him just to treat the php file like a text file (which is
what it really is) and use fopen to grab the file, read its contents into a
string, and insert that into the database.
--
Dr. Joseph Dolan: Isn't there a children's book about an elephant named Babar?
Fletch: I don't know. I don't have any.
Dr. Joseph Dolan: No children?
Fletch: No, elephant books.

 

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

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