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


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)


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.

Beceriler: PHP, Yazılım Mimarisi

Daha fazlasını gör: php move_uploaded_file error, move uploaded file to folder in php, $_files 'file' 'tmp_name', php $_files empty, move_uploaded_file not working, how to use put method in php, file upload in php example code demo, php file upload example, simple php forum code, simple php form code hotel reservation, simple php rsvp code, simple php microblog code, simple php design code pres, simple php speedtest code, php script wont allow video upload, facebook app code allow users upload images, simple php proxy code, html code allow users upload files website, simple php twitter code example, simple php video upload view code

İşveren Hakkında:
( 13 değerlendirme ) Kingston, Australia

Proje NO: #16273448



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.

%selectedBids___i_period_sub_7% gün içinde 155%project_currencyDetails_sign_sub_9% %project_currencyDetails_code_sub_10%
(178 Değerlendirme)

Bu iş için 16 freelancer ortalamada $145 teklif veriyor


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 Daha Fazla

in %bids___i_period_sub_35% gün içinde250%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(189 Değerlendirme)

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

in %bids___i_period_sub_35% gün içinde250%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(16 Değerlendirme)

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

in %bids___i_period_sub_35% gün içinde99%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(52 Değerlendirme)

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 Daha Fazla

in %bids___i_period_sub_35% gün içinde55%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(84 Değerlendirme)

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 Daha Fazla

in %bids___i_period_sub_35% gün içinde150%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(28 Değerlendirme)
in %bids___i_period_sub_35% gün içinde155%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(67 Değerlendirme)
in %bids___i_period_sub_35% gün içinde66%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(33 Değerlendirme)
in %bids___i_period_sub_35% gün içinde200%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(25 Değerlendirme)

Greetings. Thank you for your job posting. I'm a expert php developer. I've studied your requirements and understood clearly. I feel confident because it is not so difficult for me. I can do your job with in a day Daha Fazla

in %bids___i_period_sub_35% gün içinde111%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(26 Değerlendirme)

Hello Sir, I have read your job description to add another security feature and other changes to an existing PHP API , I am perfectly able to do this job as per the need and available to start work now. Here are Daha Fazla

in %bids___i_period_sub_35% gün içinde250%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(27 Değerlendirme)

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 Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% AUD
(11 Değerlendirme)

Hello, Interested! I have 9 yrs of development experience with PHP, Java, Codeigniter, Struts, JMS, database and UI technologies.  We specialize in PHP & PHP frameworks, WordPress & E-commerce, Woocommerce, Openc Daha Fazla

in %bids___i_period_sub_35% gün içinde155%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(17 Değerlendirme)

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 Daha Fazla

in %bids___i_period_sub_35% gün içinde77%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(10 Değerlendirme)

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 Daha Fazla

in %bids___i_period_sub_35% gün içinde155%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(8 Değerlendirme)

Greeting!! I have gone through your post very carefully and I am confident and exceed your expectations. I will complete your project within the allocated time with best of my efforts. I did lot of project using magen Daha Fazla

in %bids___i_period_sub_35% gün içinde111%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(4 Değerlendirme)