Not sure if this a php error - can someone confirm it?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I have the following in a php file

$filenames = array("fred.pdf", "sid.pdf", "harry.pdf", "wibble.pdf");
for ($i = 0; $i < count($filenames); ++$i)
{
  $command='/usr/bin/zip -9 '.$prog.'.zip ".$filenames[$i];
  exec($command);
}

$prog is just a name.

If I set $prog to be getcwd()."foo", then no zip file is created.
Infact, I can set $prog to anything and nothing is created - with one
exception, $prog="/tmp/foo" - this will create the zip file in tmp, but
I can't then do anything with it as the permissions say it belongs to
apache:apache (copy () won't work, neither will cp or mv).

I cannot chown the file via php either (chown ('/tmp/foo.zip',
'paul:paul');)

Have I hit a bug or is it me needing another lobotomy to remove things
that shouldn't be there?

TTFN

Paul
-- 
"Logic, my dear Zoe, is merely the ability to be wrong with authority" -
Dr Who

-- 
fedora-test-list mailing list
fedora-test-list@xxxxxxxxxx
To unsubscribe: 
https://www.redhat.com/mailman/listinfo/fedora-test-list

[Index of Archives]     [Fedora Desktop]     [Fedora SELinux]     [Photo Sharing]     [Yosemite Forum]     [KDE Users]