Jump to content

sonny

Members
  • Posts

    30
  • Joined

  • Last visited

    Never

Everything posted by sonny

  1. Guess again. We don't care if you "lose it". We're volunteers here. We don't get paid a cent for helping. If you get an attitude, there are hundreds of other people who need our help, and will show a grain of respect. Have a nice day. Just think about this for a moment, why even add your 2 cents then? other then to be a wise guy, I never asked you or anone in purticular for anything, I simply posted a tread for some minor help thats all, Guess what, I guessed wrong I guess, I'll speak in your native tongue maybe it will sink in deeper. what a smart ... you are man
  2. The code above is still not working right This is the reason I was asking for help my way, I need to have a 0 in the file to start Plus every time the number is updated it pushws it to the right with a space in front, something is not right with this code. I figured someone might have a fresh way to do this the whole basics behind this is so that I can have a setting for limiting emails, I am not a pro not even close, just trying but I cannot stand someone trying to make a fool out of me thats why I lost it, I don't think anyone on here would want that.
  3. Ok, $n = 0; $fh = @fopen('count.txt', 'r+') or die('Error in opening file for read & write'); $n = fread($fh); if ($n < 3) { ftruncate($fh, 0); @fwrite($fh, ++$n) or die ('Unable to write to file!'); } else { print "Limit Reached\n"; } fclose($fh); This is giving me Warning: Wrong parameter count for fread() error
  4. You didn't put nothing together for me, stop it, your just trying to get the last word in, and look good, you two guys where just trying to to make a fool out of me. People like you are ruining this forum.
  5. What? no one will delete my account, I never read anything about signing up, was a lifetime thing? you make it sound like that was a privilege or something, there should be a delete button in profile its a commonsense and fair thing to have. You and that other guy are punk wise guys, this forum is useless because of people like you! go write yourself some code on politeness when you get some time, and share that with your bro above.
  6. Does anyone know how I can delete my account on here? if there is no way, please can a admin remove me, I do not need wise a@# remarks like that, what would have been the big deal anyway. Ive seen people on here ask for 100 times more help on writing code then this.
  7. I am converting perl scripts over to php does anyone know how to convert this code below over to php code? { my $n = 0; open (FH, "<", 'count.txt') or die "$!"; $n = <FH>; close FH; if ($n < 10) { open (FH, ">", 'count.txt') or die "$!"; print FH ++$n; close FH; } else { print "Limit reached\n"; exit(0); } @mail('$to, $subject, $message, headers'); Thanks Sonny
  8. Do you know another simple way to do this?, if so, can you show me? phpMyBackupPro works so I know it can be done Thanks Sonny
  9. Hi I am trying to backup a single complete database using a simple php script I currently use phpMyBackupPro it works fine but is a little to powerful for what I need. I have tried to implement the following but cannot get it to work, it appears to connect and it creates the backup .gz file but it contains nothing inside it. can someone please see what I am doing wrong. <?php $dbhost = 'testdb.hostedresource.com'; $dbname = 'testname'; $dbuser = 'testuser'; $dbpass = 'MyPassword'; $conn = mysql_connect($dbhost, $dbuser, $dbpass) or die ('Error connecting to mysql'); mysql_select_db($dbname); $backupFile = $dbname . date("Y-m-d-H-i-s") . '.gz'; $command = "mysqldump --opt -h $dbhost -u$dbuser -p$dbpass $dbname | gzip > $backupFile"; system($command); mysql_close($conn); ?> Thanks Sonny
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.