![]() |
|
Programming C, bash, Python, Perl, PHP, Java, you name it. |
![]() |
|
Thread Tools | Display Modes |
|
||||
![]()
for one thing, you might actually try checking for errors....
You've said nothing about your webhost, so there is nothing that anyone here can assume about the execution environment. system() returns the last line of output on success, false on error. Also because of being a (server side) web scripting language, it has security that can be set up --- safe mode ! When safe mode is enabled, the command is escaped, killing shell specials (e.g. > becomes \>). Safe mode can also be used to restrict the commands that can be executed by PHP scripts. If zip is failing, it's quite possible that either: A.) zip/mysqldump is not installed, B.) zip/mysqldump is not in your search path (or safe_mode_exec_dir), C.) You do not have permission to execute the program(s), D.) the arguments are wrong (e..g you can execute zip, but mysqldump args \> file failed) I don't know MySQL enough to know what access controls may be placed on a user trying to mysqldump their own data, but if it's possible to restrict that, it could be set that way on your host. When it comes to learning PHP, if you go to the documentation and read the 'Language Reference' section, you've learned most anything you need to know.
__________________
My Journal Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''. Last edited by TerryP; 20th September 2008 at 06:26 PM. |
|
||||
![]()
You are right, Terry. Looks like the zip function is disabled in my hosting server
http://www.w3schools.com/php/php_ref_zip.asp
__________________
The power of plain text? It can control an entire OS |
![]() |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Quick, simple tcsh tips for beginners | anomie | Guides | 9 | 6th November 2014 03:55 PM |
external drive partition question + fdisk question | gosha | OpenBSD General | 15 | 15th June 2009 02:00 PM |
Quick Ant Question | disappearedng | FreeBSD General | 0 | 27th October 2008 06:20 AM |
Networking: CLI quick reference | anomie | Other BSD and UNIX/UNIX-like | 0 | 2nd October 2008 01:21 AM |
quick question about optimizations in /etc/make.conf | thevirtuesofxen | FreeBSD Installation and Upgrading | 7 | 15th July 2008 10:29 AM |