Jump to content

castor_troy

Members
  • Posts

    11
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

castor_troy's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. http://www.php.net/manual/en/function.in-array.php
  2. any way to fix the script? btw, my script has set_time_limit(0); in the first line.
  3. I have a PHP script that creates a tar file of an entire directory. It works for most directories. However, when I tried running the script on a really large directory, It stopped working after tar file reached (1 958 010 880) in size. And apparently, it doesn't go to the next line which is supposed to gzip the tar file. Question: Is this a limitation of the system? Can it be overriden?
  4. I see. So that will make it impossible for me since I doubt if they'll let PHP be modded or even allow me to use Flash.
  5. ayt. so really, there's no other way? Not even with the help of Perl? anyways, I'm just trying my luck maybe someone knows. Thanks guys.
  6. Is it possible to display a progress bar to indicate when will the php script will finish executing? as of now I'm only using Ajax spinners. TIA, Archie
  7. yup. it actually runs properly when extracted in windows and I do the mysql restore in command prompt. it also runs properly in php if not for the corrupted sql file.
  8. I backed up my database using this code: exec("mysqldump --opt --host=$db_host --user=$db_user --password=$db_pass '$db_name' > $filename.sql"); exec("tar czvf $filename.tar.gz $filename.sql"); now I'm trying to restore my database by uploading the file and then run this code exec("tar -zxvf $filename", $file); exec("mysql --verbose --user=$db_user --password=$db_pass $db_name < ".$db_name."-db-globackup.sql", $result, $response); now my sql file is extracted successfully but the content has lots of special characters, words misspelled etc. what could be the problem with my script? TIA
  9. oh I see. So I'll just append the success message at the next line after the curl_close?
  10. I have a script that sends a file to the client's website through ftp_put. This file is then executed on the client's website using curl. Now, how will I know if that file has already done it's part so I can print out a success message or something? here's my sample code: ftp_put($fh, '/httpdocs/temp.php', 'temp.php', FTP_ASCII); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "http://clientdomain.com/temp.php?action=do_something"); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); curl_exec($ch); curl_close($ch); TIA
×
×
  • 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.