Adjust simple PHP list/get code to allow PUT (upload)

Slutfört Publicerat 6 år sedan Betalades vid leverans
Slutfört Betalades vid leverans

Background:

We have an existing very simple php api file list/get setup. The API currently provided does two things:

1) List the files (with an option to specify how many)

2) Get a given file (by name)

This is used to pass simple text files (containing json formatted data - mind you, the format is not relivant). This is part of a basic accounting/billing system back-end.

We want this expanded for the system to also accept a file (via an upload). It is indended for this to be run via commandline/script - so there is no real html to be created - however there will need to be PHP code to receive the form submission.

Other important information:

- We are using light httpd, php7.

- We have two existing security features:

1) An option to limit reads from a list of remote hosts (from environment variables passed from the webserver)

OR

2) An option to limit reads from a list of remote hosts (based on a header name, if we use a SSL front-end system).

We need to be able to select which one to enable (ie, enabling '2' is dangerous if there is not a front-end proxy/ssl-offload infront of it)

- We need to add another security feature, specficially adding a separate option of a list of remote hosts to allow uploads from (either via environment variables, or via headers) - this is to be separate from the read list (so we can allow some sites to read only, and others to write).

- We will provide the existing code (not many lines, around 50-100 lines only - this code is not tied into a massive system, it is stand-alone - simple!). We want the additional/new code to be fit in with what has been previously done.

Please provide an example of the upload using curl.

PHP Programvaruarkitektur

Projekt-id: #16273448

About the project

15 offerter Distansprojekt Aktivt 6 år sedan

Tilldelades:

liangjongai

I am a full time developer and have high skills in php so I can complete this project. My price and time is negotiable. Let's discuss details via chat. I'll provide best service.

$155 AUD inom 3 dagar
(329 omdömen)
8.0

15 frilansare har lagt bud på i genomsnitt $148 för det här jobbet

malviyamanish

Dear Client , We gone through project description We are Really intrested to do work with you , We are Web & Mobile Software development company having more than 8 year experience in Software development we tota Mer

$250 AUD inom 3 dagar
(221 omdömen)
7.7
aramgz

hi, I read carefully requirements, You'll get new features running under light httpd with php7, with ssl.

$250 AUD inom 2 dagar
(19 omdömen)
6.6
rupanaskar

Hello Sir/Madam, I am an experienced PHP developer with over 6 years of experience in web development. I have expertise in this kind of works. Here is a php curl code to upload file if (function_exists('curl_f Mer

$88 AUD inom 1 dag
(35 omdömen)
5.8
tiwariraushan71

Hello there, Please give us an opportunity to show our expertise in the same. I would love to discuss the work with you. we can proceed ahead for a long term relationship with best outputs always. Laravel:3yrs Mer

$77 AUD inom 3 dagar
(106 omdömen)
6.0
webDevsolutionz

Hello Sir, Expert PHP Developer here, I will assure you that i will provide 100% Satisfaction Guarantee. 100% Quality Guaranteed Happy to show you previous work completed. Thank you

$99 AUD inom 3 dagar
(52 omdömen)
5.5
zMinion

Hi, I'm Andrei, 30y old, a senior full-stack web developer, and I want to build this new feature (api upload) for you. I have very good skills/experience with php, custom coding. Let's chat some details and start work Mer

$150 AUD inom 3 dagar
(41 omdömen)
5.7
Brijrajs76

Adayr, ChennaiI am a Professional Freelancer with experience of more than 7+ years with specializing in Web-Development & Designing (Wordpress ,Woocommerce, eCommerce , PHP, Bitcoin,Webservices,PaymentGetway, Mysql,Css Mer

$55 AUD inom 3 dagar
(91 omdömen)
6.0
rabhardwaj

i have been in this field for more than 7 years. i have experience in c#,php,perl,wordpress,Html,postgress ,Web Services, Rest Api, Zend ,YIi,Mysql. Relevant Skills and Experience so i am right candidate for your p Mer

$155 AUD inom 3 dagar
(19 omdömen)
5.2