Debug PHP code snippet

Completed Posted May 28, 2009 Paid on delivery
Completed Paid on delivery

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

Engineering MySQL PHP Software Architecture Software Testing

Project ID: #3910427

About the project

22 proposals Remote project Active Jun 9, 2009

Awarded to:

marekkilimajer

See private message.

$17 USD in 2 days
(66 Reviews)
5.7

22 freelancers are bidding on average $31 for this job

stevebryant

See private message.

$25.5 USD in 2 days
(494 Reviews)
6.7
kilobytes

See private message.

$29.75 USD in 2 days
(261 Reviews)
6.4
lambdasquare

See private message.

$59.5 USD in 2 days
(109 Reviews)
6.4
bgeorge

See private message.

$21.25 USD in 2 days
(242 Reviews)
6.3
umarmariam

See private message.

$51 USD in 2 days
(128 Reviews)
6.1
tiborveres

See private message.

$42.5 USD in 2 days
(28 Reviews)
5.5
voltara

See private message.

$51 USD in 2 days
(45 Reviews)
5.4
devsparsh

See private message.

$8.5 USD in 2 days
(25 Reviews)
5.3
thomasantonyvw

See private message.

$17 USD in 2 days
(103 Reviews)
5.2
edreamzinc

See private message.

$21.25 USD in 2 days
(24 Reviews)
5.1
cmcs

See private message.

$42.5 USD in 2 days
(58 Reviews)
4.9
vertixsystems

See private message.

$42.5 USD in 2 days
(11 Reviews)
4.8
chadsmith729

See private message.

$106.25 USD in 2 days
(21 Reviews)
4.7
landrum

See private message.

$12.75 USD in 2 days
(38 Reviews)
4.4
droasvw

See private message.

$8.5 USD in 2 days
(18 Reviews)
3.7
crturboguy

See private message.

$38.25 USD in 2 days
(6 Reviews)
3.5
antoniocastellon

See private message.

$12.75 USD in 2 days
(8 Reviews)
3.2
bwall9809

See private message.

$21.25 USD in 2 days
(5 Reviews)
2.5
slashcat

See private message.

$25.5 USD in 2 days
(0 Reviews)
0.0
edwardgoodnow

See private message.

$25.5 USD in 2 days
(0 Reviews)
0.0