Re: PHP upload script needed (291 Views)
Reply
Frequent Advisor
Piet Timmers_1
Posts: 94
Registered: ‎08-19-2004
Message 1 of 3 (337 Views)

PHP upload script needed

I use CSWS V2.2 and PHP V2.20 and want to upload a file to the CSWS server.

 

The examples found on the internet I cannot get them to work.

 

Has anyone a working example.

 

Thanks.

 

Piet Timmers

 

 

Honored Contributor
Hoff
Posts: 4,962
Registered: ‎01-29-2006
Message 2 of 3 (329 Views)

Re: PHP upload script needed

What php script were you working and testing with?

 

What errors did the script output to the user and to the logs?

 

Consider running Mark Berryman's more secure and more current php port.

 

With that information, we can have a look at what went off the rails, or (with Mark's port) the upload might well work with the newer php bits.

 

And FWIW, if that box is Internet-facing, that version of Apache is vulnerable to the killapache script.  (There are work-arounds available.)

Valued Contributor
Ph Vouters
Posts: 198
Registered: ‎10-29-2010
Message 3 of 3 (291 Views)

Re: PHP upload script needed

As an actual pure PHP example  tested under both Linux and Windows and in production on a Windows server, refer to anhj article of mine at http://vouters.dyndns.org/tima/All-OS-Apache-PHP-Uploading_Excel_csv_formatted_file_and_updating_MyS... Because this html filename contains All-OS and PHP this solution for the exact same need should also be applicable unchanged running OpenVMS/Apache/PHP..

 

In the hope this can help you.

 

In the future, I do suggest you to give more work to public Web search engines rather than you requesting someone's help without digging on Internet first.

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.