Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7762583
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T14:26:39+00:00 2026-06-01T14:26:39+00:00

i have only ftp credentials in which i am using this script $r=mysqldump $dbuser

  • 0

i have only ftp credentials in which i am using this script

$r="mysqldump $dbuser $dbpass $dbname wp_posts > table1.sql";

system($r);

but unfortunatly m getting a blank result in table1.sql

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T14:26:40+00:00Added an answer on June 1, 2026 at 2:26 pm

    finally i got the solution, here is my code:

    <?php
    $username = "abc";
    $password = "xyz";
    $hostname = "domain.com";
    $database = "test_db";
    $username =escapeshellcmd($username);
    $password =escapeshellcmd($password);
    $hostname =escapeshellcmd($hostname);
    $database =escapeshellcmd($database);
    $backupFile='url'.date("Y-m-d-H-i-s").$database.'.sql.tgz';
    
     $command = "mysqldump -u$username -p$password -h$hostname $database wp_posts > $backupFile";
    system($command, $result);
    echo $result;
    ?>
    

    thnx for your support, really appreciate it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to upload (using only ftp) to my server only changes. I have
I have this function to make a directory on a remote server using ftp,
I have only recently started working with the MVC approach, so I suppose this
I have only this in my mxml source code: <?xml version=1.0 encoding=utf-8?> <mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml
Notice, this is a remote server, I don't have access to it, only to
I have a script partially based on the one here: Upload files with FTP
I have implemented the MOD 10 check digit algorithm using SQL, for the US
How would I go about this? I have a mostly static site, which is
Can I put a SQLite database on a host that I only have FTP
i have a Problem using FTP connection on Android 2.2 devices. My app uses

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.