apitto Posted April 27, 2006 Share Posted April 27, 2006 hai... could you help me with this problem. i just want to make a PHP script that could backing up mysql remotely. i dont want to access my server directly just to do this task.. please.also any suggestion on how to upload file larger than 8MB using php..i can only upload about 6MB only...please. Quote Link to comment Share on other sites More sharing options...
koencalliauw Posted April 27, 2006 Share Posted April 27, 2006 for backing up your MySQL db, you should check out the console command for mysqldump (or mysql_dump, I forgot) in combination with the exec() function.for uploading bigger files, check the followingin php.inipost_max_size = 8M; (set this to a higher number)file_uploads = On; (make sure this is 'On')upload_max_filesize = 8M (set this to a higher number)memory_limit = 10M (set this somewhat higher than post_max_size) max_execution_time (depending on the upload speed of client, you might want to set this to several minutes)in httpd.conf (or whatever your apache config file is)limitrequestbody = XXX (set this to your convenience)Koen. Quote Link to comment Share on other sites More sharing options...
apitto Posted April 27, 2006 Author Share Posted April 27, 2006 i sorry, but i didn't work. only the upload is work but backup is not..please...if you could post the code for backp... Quote Link to comment Share on other sites More sharing options...
koencalliauw Posted April 27, 2006 Share Posted April 27, 2006 if you do not want to write the code yourself, take a look at this:[a href=\"http://www.phpclasses.org/browse/package/2779.html\" target=\"_blank\"]http://www.phpclasses.org/browse/package/2779.html[/a] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.