Get files on PHP web service (SOAP) - php

I have .Net client that sends files.
How can i use PHP web service to get those files and return them after some changes back to client??
I didn't found code to GET those files, maybe someone have a code example...

You can send the file data encoded in Base64 from the client to your PHP web service, and handle them with the $_FILES superglobal. There is a similar topic here : PHP SOAP Transfering Files

Related

How to upload files from ruby client(its not a web client or a web form) to server (php handler) using http post?

I want to upload files from ruby client(this is not a web form) to server(webhosting) [via a php backend file to store the files sent to server], need help in from where to start.
I have done the same using Java (using httpurlconnection). Need to know how it is done in ruby.
Awaiting a hint.
Thanks in advance.

Android + PHP: How to protect my server side image file location when passing to the android through JSON

Normally, we need to pass the full path of the image (e.g. htt://xxxx/xxx.jpg), through JSON or XML, to android device. Then loading it to imageView. Yet, I wish that only authorized user can access the file. How can I do so (e.g. hide the path)?
Thanks
You can protect your downloads with auth token. But exact solution depends on what you're using to serve static files.
If your php app is doing that directly, then you should apply auth on the controller responsible for serving files.
In case you have Apache for statics, then take a look here https://code.google.com/p/mod-auth-token/
I believe there are the same solutions for other servers like nginx.

3-tier file upload architecture (Browser/ PHP/ API)

We're currently facing a design challenge about dealing with large (>30 MB) file uploads. Our system is currently as follows:
Browser <---AJAX---> PHP <---OAUTH---> REST API
PHP and API are on different servers/domains.
Uploading a file from browser to PHP and then from PHP to API sounds like a waste of bandwidth to me.
So the idea we had in mind is to use the following sequence:
PHP request upload-URL from the API
API creates nonce and sends it back as upload-URL
Browser uploads the file directly to the API using the upload-URL.
So we only transfer the file data once.
Would there be anything wrong with this?
Thanks,
pepijn
If the PHP needs no further processing to do with the file, then it should be fine.

Javascript IPhone Application send request or information to server PHP file

Hello i have iphone app now i want to send request or data to server or PHP file.
Please note: the php file is on another server not on the same server.
How can i send data to server using javascript ?
The fastest and easiest solution would be including jQuery and use it's post method; http://api.jquery.com/jQuery.post/

file sending using php

can we use php to send a file to another like in MSN Messenger? I am working on a chat script and was wondering if its possible or not to send a file to the other person during chat?
i am using jquery/mysql/textfiles/php for this script
How is the communication between your clients done?
You cannot send a file from a client directly to another client using PHP, as it's a server side language.
You could however upload the file to your server, and then send a link to the recieving client for download.

Categories