[PHP] Restoring a mysql database without shell access.

2003-11-26 Thread Jeff Pauls
I'm currently having trouble finding a way to dump an existing mysql database file into a new mysql database. The problem is I don't have shell access to the new server and there is no import database function in the host manager. Is there a way to dump it from a PHP script or any good apps for re

Re: [PHP] Auto Incrementing a Variable name?

2003-02-25 Thread Jeff Pauls
;"; $result_update = mysql_query($query_update) or die("Query failed"); } Thanks for all the help! Jeff - Original Message - From: "Jason k Larson" <[EMAIL PROTECTED]> To: "Jeff Pauls" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]>

Re: [PHP] Auto Incrementing a Variable name?

2003-02-25 Thread Jeff Pauls
d something like $name_1_ff $name_2_ff $name_3_ff neither of these work. $name_$i_ff $name_.$i._ff Having something after causing more of a problem. First of all PHP can't find the value of "$name_" and "_ff" just breaks it more. Jeff - Original Message ----- From: &quo

[PHP] Auto Incrementing a Variable name?

2003-02-25 Thread Jeff Pauls
Hi, I've been playing with this for a while now. Say I had the following variables: $name1 = "joe"; $name2 = "janis"; $name3 = "joanne"; Is there a way in php to increment the variable name not the value? Something like this for ($i = 1; $i <= 3; $i++) { $arr_name[$i] = $name.$i;

Re: [PHP] Directory size

2003-02-11 Thread Jeff Pauls
You can try something like this. $dir = "dir"; function dirsize($checkdir) { $dh = opendir($checkdir); $size = 0; while (($file = readdir($dh)) !== false) if ($file != "." and $file != "..") { $path = $checkdir."/".$file; if (is_dir($path))

Re: [PHP] Html forms

2003-02-03 Thread Jeff Pauls
I wouldn't break it up into 3 lines of code. try: print ""; or echo ''; Jeff - Original Message - From: "Todd Barr" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, February 03, 2003 8:59 AM Subject: [PHP] Html forms I am having difficulty putting results into an form

[PHP] mail() function not working in PHP 4.2.3

2003-01-23 Thread Jeff Pauls
Hi, I have a simple mail script and when I run the script I get the following error: Warning: mail() is not supported in this PHP build in /var/www/htdocs/file.php on line 159 I've checked the php.ini file to see if a setting was turned off, but came up with nothing except for: ; For Unix only