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 6590493
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T17:18:23+00:00 2026-05-25T17:18:23+00:00

If I do something like that: rename(‘ftp://user:password@example.com/pub/file1.txt’,’ftp://user:password@example.com/pub/fileA.txt’); rename(‘ftp://user:password@example.com/pub/file2.txt’,’ftp://user:password@example.com/pub/fileB.txt’); rename(‘ftp://user:password@example.com/pub/file3.txt’,’ftp://user:password@example.com/pub/fileC.txt’); rm(‘ftp://user:password@example.com/pub/fileA.txt’); rm(‘ftp://user:password@example.com/pub/fileB.txt’); rm(‘ftp://user:password@example.com/pub/fileC.txt’); will php

  • 0

If I do something like that:

rename('ftp://user:password@example.com/pub/file1.txt','ftp://user:password@example.com/pub/fileA.txt');
rename('ftp://user:password@example.com/pub/file2.txt','ftp://user:password@example.com/pub/fileB.txt');
rename('ftp://user:password@example.com/pub/file3.txt','ftp://user:password@example.com/pub/fileC.txt');
rm('ftp://user:password@example.com/pub/fileA.txt');
rm('ftp://user:password@example.com/pub/fileB.txt');
rm('ftp://user:password@example.com/pub/fileC.txt');

will php keep ftp connection between different operations on the same server? In other words I wonder if in such case php creates separate connection or keeps it alive? And if it creates separate connections then how could force it to use one when I transfer files using file wrappers. I know I could use different methods instead of ftp wrapper but I want to know how this works with file wrappers.

  • 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-25T17:18:24+00:00Added an answer on May 25, 2026 at 5:18 pm

    Just been looking at it with Wireshark and the answer is definitely No. Tested with PHP/5.2.19-win32.

    As Robik suggests use the PHP FTP extension if you want connection persistence.

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

Sidebar

Related Questions

I would like do something like that. list_of_urls = ['http://www.google.fr/', 'http://www.google.fr/', 'http://www.google.cn/', 'http://www.google.com/', 'http://www.google.fr/',
Usually I was doing something like that (just a example): using (Stream xmlStream =
How can i do something like that: when user starts my C# application if
I'm looking for usage statistics of Apples iOS. Something like that http://www.w3schools.com/browsers/browsers_stats.asp for browser
I have XML that looks something like this: <Root xmlns=http://widgetspecA.com/ns> ...any... <WidgetBox> <A/> <B/>
My entities look something like that (simplified): public class Person { public Guid Id
How do something like that: Class Car: string Name, int year Class SUV:Car; SUV
I have something like that: to_days(now()) < to_days(birth) It work but instead of comparing
I'm using a script that create events with something like that: $data = <entry
I have a list of object that is the data source. Something like that:

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.