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

  • SEARCH
  • Home
  • 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 6576197
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T15:28:52+00:00 2026-05-25T15:28:52+00:00

Variation of my question on Ubuntu.SE: This is (basically) what I’m doing when I

  • 0

Variation of my question on Ubuntu.SE:

This is (basically) what I’m doing when I log into a FTP:

ftp user:password@server
ftp: user:password@server: Unknown host
ftp> echo HELLO WORLD!
ftp> quit

Is it possible to “echo” over ftp in PHP?

<?php
$ftp_server = "server";
$ftp_user_name = "user";
$ftp_user_pass = "SuperSecretPassword";
$message = "Hello World!";

// connect
$conn_id = ftp_connect($ftp_server); 

// login with username and password
$login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass); 

// Echo Message
$upload = ftp_echo($conn_id, $message); 

// close the FTP stream 
ftp_close($conn_id); 
?>

Maybe I’m an idiot, but all the commands I see are for pushing, pulling or doing stuff locally. Does something else act as ‘ftp> echo “Hello World!”‘ and am I’m looking right at it without realizing it?

  • 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-05-25T15:28:53+00:00Added an answer on May 25, 2026 at 3:28 pm

    I think you want ftp_raw. You’d use this to put an arbitrary command to your ftp server.

    <?php
    $fp = ftp_connect("ftp.example.com");
    
    /* This is the same as: 
       ftp_login($fp, "joeblow", "secret"); */
    ftp_raw($fp, "USER joeblow");
    ftp_raw($fp, "PASS secret");
    ?>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

(I asked a variation of this question on comp.std.c++ but didn't get an answer.)
This is a variation on a previous question as I am having tons of
A variation of this question... <div id=viewContainerTop> <div class=row1></div> <div class=NotRow1></div> <div class=row2></div> <div
Following this question Generate a fictitious stock option price variation I wish to simulate
As mentioned in this Meta Question , Facebook accepts the exact opposite case variation
This is a variation on a question that has been asked here several times.
I'm sure some variation of this question has been asked before but all other,
I have a variation of the benefits-of-async/await-on-ASP.NET from this question . My understanding is
This is similar to a previous question that I asked, with one variation. I
This question relates to: PHP Version 5.3.6 Microsoft Drivers for PHP for SQL Server

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.