Go Back   DaemonForums > Miscellaneous > Programming

Programming C, bash, Python, Perl, PHP, Java, you name it.

Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   (View Single Post)  
Old 20th September 2008
18Googol2's Avatar
18Googol2 18Googol2 is offline
Real Name: whoami
Spam Deminer
Join Date: Apr 2008
Location: pwd
Posts: 283
Default Quick question about PHP script

2 hours ago, I absolutely have no idea how to program in PHP. I took a PHP crash course, because I need to back up my website database. The hosting provider doesnt provide any front end application, so I create a PHP script:

$sqlFile = $dbname . date(".d-m") . '.sql';
$zipFile = $sqlFile . '.zip';

$dumpCommand = "mysqldump -h$host -u$dbuser -p$dbpword $dbname > $sqlFile";

system("zip $zipFile $sqlFile");
I suspect there is something wrong with the last command (the zip one). Somehow it doesnt want to execute.

Pls shed some light. I have spent more than 1 hour, but havent worked out how to fix it
The power of plain text? It can control an entire OS
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
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

All times are GMT. The time now is 09:43 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick