Debug PHP code snippet

Suoritettu Julkaistu May 28, 2009 Maksettu toimituksen yhteydessä
Suoritettu Maksettu toimituksen yhteydessä

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

tekniikka MySQL PHP Tietojärjestelmäarkkitehtuuri Ohjelmistojen testaus

Projektin tunnus: #3910427

Tietoa projektista

22 ehdotusta Etäprojekti Aktiivinen Jun 9, 2009

Myönnetty käyttäjälle:

marekkilimajer

See private message.

$17 USD 2 päivässä
(66 Arvostelua)
5.7

22 freelanceria on tarjonnut keskimäärin $31 tähän työhön

stevebryant

See private message.

$25.5 USD 2 päivässä
(494 arvostelua)
6.7
kilobytes

See private message.

$29.75 USD 2 päivässä
(261 arvostelua)
6.4
lambdasquare

See private message.

$59.5 USD 2 päivässä
(109 arvostelua)
6.4
bgeorge

See private message.

$21.25 USD 2 päivässä
(242 arvostelua)
6.3
umarmariam

See private message.

$51 USD 2 päivässä
(128 arvostelua)
6.1
tiborveres

See private message.

$42.5 USD 2 päivässä
(28 arvostelua)
5.5
voltara

See private message.

$51 USD 2 päivässä
(45 arvostelua)
5.4
devsparsh

See private message.

$8.5 USD 2 päivässä
(25 arvostelua)
5.3
thomasantonyvw

See private message.

$17 USD 2 päivässä
(103 arvostelua)
5.2
edreamzinc

See private message.

$21.25 USD 2 päivässä
(24 arvostelua)
5.1
cmcs

See private message.

$42.5 USD 2 päivässä
(58 arvostelua)
4.9
vertixsystems

See private message.

$42.5 USD 2 päivässä
(11 arvostelua)
4.8
chadsmith729

See private message.

$106.25 USD 2 päivässä
(21 arvostelua)
4.7
landrum

See private message.

$12.75 USD 2 päivässä
(38 arvostelua)
4.4
droasvw

See private message.

$8.5 USD 2 päivässä
(18 arvostelua)
3.7
crturboguy

See private message.

$38.25 USD 2 päivässä
(6 arvostelua)
3.5
antoniocastellon

See private message.

$12.75 USD 2 päivässä
(8 arvostelua)
3.2
bwall9809

See private message.

$21.25 USD 2 päivässä
(5 arvostelua)
2.5
slashcat

See private message.

$25.5 USD 2 päivässä
(0 arvostelua)
0.0
edwardgoodnow

See private message.

$25.5 USD 2 päivässä
(0 arvostelua)
0.0