Jump to content

imanewbe

Members
  • Posts

    14
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

imanewbe's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Disregard my previous comment. That worked perfectly. Thanks for that. Should I change between FTP_ASCII and FTP_BINARY depending if I am downloading a text file or image?
  2. I tried both FTP_ASCII and FTP_BINARY and both have the same effect. This is what the file should look like: and this is what it looks like when I download it using ftp_get with either FTP_ASCII or FTP_BINARY
  3. I am using ftp_get to download files but sometimes when it downloads an image it downloads it but the image is damaged. So it seems like it is only downloading part of the image then closing the connection to that file. The ftp_get still returns true. here is what I am doing public function download_single_file($file, $dest_file){ return ftp_get($this->ftp_conn, $dest_file, $file, FTP_ASCII); } Any ideas on why this may be happening? Thanks in advance for any assistance.
  4. I found the answer here: http://www.php.net/m...var.soapvar.php in the first comment I needed to do this: $params = array( 'FareSearchRQ' => array( "Date" => array("Qualifier" => "DEPARTURE", "_" => "2013-12-07") ) );
  5. I am working with a soap client. What I need to do is create the xml <soapenv:Body> <req:FareSearchRQ> <req:Date req:Qualifier="DEPARTURE">2013-12-07</req:Date> </req:FareSearchRQ> </soapenv:Body> but I am having trouble. I can either get <req:Date>2013-12-07</req:Date> or <req:Date req:Qualifier="DEPARTURE"/> In my php code to get this I create an array with like this $params = array( 'FareSearchRQ' => array( "Date" => array("Qualifier" => "DEPARTURE") ) ); //This creates the first $params = array( 'FareSearchRQ' => array( "Date" => "2013-12-07" ) ); //This creates the second How would I create an array to create the xml shown above?
  6. I have seemed to figure it out. The issue I had was I need to put the whole url not just the local file path.
  7. I click on a link which opens a window which then displays a whole lot of order information. I want an easy way to send everything that is displayed to an email address. I am using the mail function. That part works fine. But getting that information from the page is the part I am having trouble with. I was using file_get_contents to try and get the information from the page.
  8. Hi I have a page which has information generated by using a variable in the $_GET array. I need to send the contents of the page to an email. Is there a way to do this? I have tried using file_get_contents but have had trouble. Any help would be much appreciated.
  9. How would i be able to do this for say a whole folder of images.
  10. What i want to do is move a file from one server to another.
  11. Its not the same file again and again. It is multiple files multiple times.
  12. What i want to do is copy the file to 13 servers. this is very time consuming if i have to manually connect to all 13 servers then upload the file. I want to run a script that copies it to all servers.
  13. Hey. I am wanting to move a couple of files from my current server to another. If i am uploading the file this is fine but if it is already on the server then im not sure how to move it. When uploading I can just use ftp_put($conn_id, $destination_file, $myFile, FTP_BINARY); What i need to do is figure out how to get a hold of the file and store it in $myFile then this would work fine. Is this possible? Cheers
×
×
  • 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.