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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T22:14:04+00:00 2026-05-28T22:14:04+00:00

My client code is: $Client = new Zend_Http_Client( $url, array( ‘maxredirects’ => 1, ‘timeout’

  • 0

My client code is:

$Client = new Zend_Http_Client(
        $url,
        array(
          'maxredirects' => 1,
          'timeout'      => 5,
          'useragent'    => 'LMS_LiveAccess'
        )
);
$Client->resetParameters();
$Client->setMethod(Zend_Http_Client::POST);
$Client->setFileUpload('/home/itaymoav/outer.xml','outer.xml');
$Client->request();

On my server, when I do var_dump($_FILES) I do see the file name and the correct size.

outer_xml = Array
(
name = outer.xml
type = text/plain
tmp_name = /home/itaymoav/files/phpecWKHK
error = 0
size = 1752
)

But when I go to the temp folder (where the $_FILES tells me it saved the file) it is empty.
I both tried the tmp folder and a different folder with chmod 777. nothing.
What am I missing?

  • 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-28T22:14:05+00:00Added an answer on May 28, 2026 at 10:14 pm

    To save the uploaded file, you must move them to another location, like this.

      move_uploaded_file($_FILES["file"]["tmp_name"],"upload/" . $_FILES["file"]["name"]);
    

    From the manual, it says,

    The file will be deleted from the temporary directory at the end of
    the request if it has not been moved away or renamed.

    Here is an simple example.

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

Sidebar

Related Questions

Given the following code: using (var client = new WebClient()) { string url =
This code works fine: $result = $client->__call(optionalInfo, array( new SoapParam(..., client), new SoapParam(..., add_code))
New day, new problem :-) Code: Client Side: void abw_Closed(object sender, EventArgs e) {
i can establish a connection using HttpUrlConnection. my code below. client = new DefaultHttpClient();
Client code is pretty simple: <form action=DDServlet method=post> <input type=text name=customerText> <select id=customer> <option
I am succesfully calling a REST API with the following code $client = new
GWT client code: DialogBox dialog = new DialogBox(); dialog.setAnimationEnabled(true); SimplePanel panel = new SimplePanel();
This is zend code. How to convert it to generic PHP? $client = New
I have some cross platform DNS client code that I use for doing end
After trying to understand why client code is not rendered in a page (injected

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.