Re: [PHP-DB] Re: Inserting a php file into a mysql database

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux