Debug PHP code snippet

Đã hoàn thành Đã đăng vào May 28, 2009 Thanh toán khi bàn giao
Đã hoàn thành Thanh toán khi bàn giao

Hi, we have a script that downloads a file from an ftp site using file_get_contents. But recently this stopped working for some reason. We get "Cannot open stream..." error. We can download the file with wget just fine, for example. Or we can enter the ftp:// string in a browser and it will also get the filr. Also if you have any ideas why this might stop working all of a sudden, that would be great. We are hoping this code can be rewritten to use another method to get the file, such as using the PHP ftp functions. Basically the file needs to be saved as a string to a variable. It is a big file (about 1MB) Here is the code. function mygetfile($fname){ $surl = 'ftp://'.$fname.''; $f = file_get_contents($surl); return $f; }

## Deliverables

1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.

2) Deliverables must be in ready-to-run condition, as follows? (depending on the nature? of the deliverables):

a)? For web sites or? other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.

b) For all others including desktop software or software the buyer intends to distribute: A software? installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.

3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).

## Platform

Windows

Kĩ thuật MySQL PHP Kiến trúc phần mềm Kiểm tra phần mềm

ID dự án: #3910427

Về dự án

22 đề xuất Dự án từ xa Jun 9, 2009 đang mở

Được trao cho:

marekkilimajer

See private message.

$17 USD trong 2 ngày
(66 Đánh Giá)
5.7

22 freelancer chào giá trung bình$31 cho công việc này

stevebryant

See private message.

$25.5 USD trong 2 ngày
(494 Nhận xét)
6.7
kilobytes

See private message.

$29.75 USD trong 2 ngày
(261 Nhận xét)
6.4
lambdasquare

See private message.

$59.5 USD trong 2 ngày
(109 Nhận xét)
6.4
bgeorge

See private message.

$21.25 USD trong 2 ngày
(242 Nhận xét)
6.3
umarmariam

See private message.

$51 USD trong 2 ngày
(128 Nhận xét)
6.1
tiborveres

See private message.

$42.5 USD trong 2 ngày
(28 Nhận xét)
5.5
voltara

See private message.

$51 USD trong 2 ngày
(45 Nhận xét)
5.4
devsparsh

See private message.

$8.5 USD trong 2 ngày
(25 Nhận xét)
5.3
thomasantonyvw

See private message.

$17 USD trong 2 ngày
(103 Nhận xét)
5.2
edreamzinc

See private message.

$21.25 USD trong 2 ngày
(24 Nhận xét)
5.1
cmcs

See private message.

$42.5 USD trong 2 ngày
(58 Nhận xét)
4.9
vertixsystems

See private message.

$42.5 USD trong 2 ngày
(11 Nhận xét)
4.8
chadsmith729

See private message.

$106.25 USD trong 2 ngày
(21 Nhận xét)
4.7
landrum

See private message.

$12.75 USD trong 2 ngày
(38 Nhận xét)
4.4
droasvw

See private message.

$8.5 USD trong 2 ngày
(18 Nhận xét)
3.7
crturboguy

See private message.

$38.25 USD trong 2 ngày
(6 Nhận xét)
3.5
antoniocastellon

See private message.

$12.75 USD trong 2 ngày
(8 Nhận xét)
3.2
bwall9809

See private message.

$21.25 USD trong 2 ngày
(5 Nhận xét)
2.5
slashcat

See private message.

$25.5 USD trong 2 ngày
(0 Nhận xét)
0.0
edwardgoodnow

See private message.

$25.5 USD trong 2 ngày
(0 Nhận xét)
0.0