Re: [PHP-DB] Execute a mySql sript file directly from PHP

2003-06-10 Thread Jason Wong
On Wednesday 11 June 2003 04:21, Gustavo Del Castillo Meza wrote:

> I need to execute a very large script file on my hosting server, i dont
> have shell access and the file is too large to execute using phpMyAdmin. I
> wonder if i could upload the file by FTP and then execute it with a php
> script directly, without opening the file and go thru every line.

You can try:

  upload file
  chmod so it is executable
  then exec() it from another php page

May not work if your host has safe mode enabled.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-db
--
/*
How much does it cost to entice a dope-smoking UNIX system guru to Dayton?
-- Brian Boyle, UNIX/WORLD's First Annual Salary Survey
*/


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



[PHP-DB] Execute a mySql sript file directly from PHP

2003-06-10 Thread Gustavo Del Castillo Meza
Hi,
I need to execute a very large script file on my hosting server, i dont
have shell access and the file is too large to execute using phpMyAdmin. I
wonder if i could upload the file by FTP and then execute it with a php
script directly, without opening the file and go thru every line.





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