Debug PHP code snippet

Completado Publicado May 28, 2009 Pagado a la entrega
Completado Pagado a la entrega

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

Ingeniería MySQL PHP Arquitectura de software Verificación de software

Nº del proyecto: #3910427

Sobre el proyecto

22 propuestas Proyecto remoto Activo Jun 9, 2009

Adjudicado a:

marekkilimajer

See private message.

$17 USD en 2 días
(66 comentarios)
5.7

22 freelancers están ofertando un promedio de $31 por este trabajo

stevebryant

See private message.

$25.5 USD en 2 días
(494 comentarios)
6.7
kilobytes

See private message.

$29.75 USD en 2 días
(261 comentarios)
6.4
lambdasquare

See private message.

$59.5 USD en 2 días
(109 comentarios)
6.4
bgeorge

See private message.

$21.25 USD en 2 días
(242 comentarios)
6.3
umarmariam

See private message.

$51 USD en 2 días
(128 comentarios)
6.1
tiborveres

See private message.

$42.5 USD en 2 días
(28 comentarios)
5.5
voltara

See private message.

$51 USD en 2 días
(45 comentarios)
5.4
devsparsh

See private message.

$8.5 USD en 2 días
(25 comentarios)
5.3
thomasantonyvw

See private message.

$17 USD en 2 días
(103 comentarios)
5.2
edreamzinc

See private message.

$21.25 USD en 2 días
(24 comentarios)
5.1
cmcs

See private message.

$42.5 USD en 2 días
(58 comentarios)
4.9
vertixsystems

See private message.

$42.5 USD en 2 días
(11 comentarios)
4.8
chadsmith729

See private message.

$106.25 USD en 2 días
(21 comentarios)
4.7
landrum

See private message.

$12.75 USD en 2 días
(38 comentarios)
4.4
droasvw

See private message.

$8.5 USD en 2 días
(18 comentarios)
3.7
crturboguy

See private message.

$38.25 USD en 2 días
(6 comentarios)
3.5
antoniocastellon

See private message.

$12.75 USD en 2 días
(8 comentarios)
3.2
bwall9809

See private message.

$21.25 USD en 2 días
(5 comentarios)
2.5
slashcat

See private message.

$25.5 USD en 2 días
(0 comentarios)
0.0
edwardgoodnow

See private message.

$25.5 USD en 2 días
(0 comentarios)
0.0