Debug PHP code snippet

Terminé Publié le May 28, 2009 Paiement à la livraison
Terminé Paiement à la livraison

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

Ingénierie MySQL PHP Architecture Logicielle Tests de Logiciels

Nº du projet : #3910427

À propos du projet

22 propositions Projet à distance Actif Jun 9, 2009

Décerné à:

marekkilimajer

See private message.

%selectedBids___i_sum_sub_7% %project_currencyDetails_sign_sub_8% USD en 2 jours
(66 Commentaires)
5.7

22 freelances font une offre moyenne de 31 $ pour ce travail

stevebryant

See private message.

$25.5 USD en 2 jours
(494 Commentaires)
6.7
kilobytes

See private message.

$29.75 USD en 2 jours
(261 Commentaires)
6.4
lambdasquare

See private message.

$59.5 USD en 2 jours
(109 Commentaires)
6.4
bgeorge

See private message.

$21.25 USD en 2 jours
(242 Commentaires)
6.3
umarmariam

See private message.

$51 USD en 2 jours
(128 Commentaires)
6.1
tiborveres

See private message.

$42.5 USD en 2 jours
(28 Commentaires)
5.5
voltara

See private message.

$51 USD en 2 jours
(45 Commentaires)
5.4
devsparsh

See private message.

$8.5 USD en 2 jours
(25 Commentaires)
5.3
thomasantonyvw

See private message.

$17 USD en 2 jours
(103 Commentaires)
5.2
edreamzinc

See private message.

$21.25 USD en 2 jours
(24 Commentaires)
5.1
cmcs

See private message.

$42.5 USD en 2 jours
(58 Commentaires)
4.9
vertixsystems

See private message.

$42.5 USD en 2 jours
(11 Commentaires)
4.8
chadsmith729

See private message.

$106.25 USD en 2 jours
(21 Commentaires)
4.7
landrum

See private message.

$12.75 USD en 2 jours
(38 Commentaires)
4.4
droasvw

See private message.

$8.5 USD en 2 jours
(18 Commentaires)
3.7
crturboguy

See private message.

$38.25 USD en 2 jours
(6 Commentaires)
3.5
antoniocastellon

See private message.

$12.75 USD en 2 jours
(8 Commentaires)
3.2
bwall9809

See private message.

$21.25 USD en 2 jours
(5 Commentaires)
2.5
slashcat

See private message.

$25.5 USD en 2 jours
(0 Commentaires)
0.0
edwardgoodnow

See private message.

$25.5 USD en 2 jours
(0 Commentaires)
0.0