Reply to Re: CLI ( command-line ) PHP displaying source code in-line when program is executed

Your name:

Reply:


Posted by rlee0001 on 02/12/06 20:11

Echo Echo,

At the beginning output $file. For some reason the file is reading
itself as input. If you are using:

php myprog.php infile.csv

....on the command line then I think you should be trying to get
"infile.csv" (or whatever) using $argv[1] not $argv[0]. Otherwise you
are passing the files own source to itself and the line

print "$data[$c]<br> \n" ;

Is causing the source to print.

-Robert

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация