You are here: PHP Program Execution Problem « PHP Programming Language « IT news, forums, messages
PHP Program Execution Problem

Posted by gojuka on 10/02/01 11:28

Hi All

Im having a minor issue performing a system command with exec(). I
want to use the filenames of files that I uploaded within the command,
but cannot escape once inside the exec() function. For example, lets
say I just uploaded two files, file1.txt and file2.txt. I want to list
the contents of those two files by using the command:

cat file1.txt file2.txt

But I'm having problems using the names of the files uploaded. I used
a for loop to grab each file name and put them in an array, and can
successfully view the array to verify its contents. The problem occurs
when I try this:

exec('cat " . $Array['0'] . " ....blah blah

This is just an example so you can understand what Im trying to
accomplish.

TIA
Rob

 

Navigation:

[Reply to this 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

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