y to do it.
Where do the files come from?
Why do you want to guess their mime type?
PHP can't do much useful with a mime type of an MS Office Document
anyway... Unless you are running PHP on Windows, and want to use
http://php.net/com to open up the document...
On Thu, March 29, 2007 2:29 p
ain everyone. You've all been really helpful.
Nate
On Mar 30, 2007, at 11:50 AM, Nathan Ziarek wrote:
I appreciate everyone's help. I think I may have to throw in the towel
in a second here.
I create a directory /home/www-data. I chown'd, chgrp'd and chmod'd it
to www-
Nate
On 3/30/07, Edward Vermillion <[EMAIL PROTECTED]> wrote:
~ is an alias for /home/USERNAME
so it's probably trying to create it in /home/www-data
On Mar 30, 2007, at 11:20 AM, Nathan Ziarek wrote:
> I'm capturing the output of exec in an array -- exec("command&qu
I'm capturing the output of exec in an array -- exec("command", $array);
Shouldn't $array have the error from bash?
Researching this more, I found this command that returns the error:
exec(gnomevfs-info file.doc 2>&1) --- gives me this:
(gnomevfs-info:27496): libgnomevfs-WARNING **: Unab
Hmmm. This may have nothing to do with it, but, running a command I
know doesn't exist (say "hghswks") at the command line tells me
"-bash: hghswks: command not found"
When I run that same command through exec(), I get nothing back.
The plot thinkens?
On 3/30/
"as you can see..." -- Helps to provide the feedback I am getting:
Array
(
[0] =>
[1] => class.fileSystem.php
[2] => tester.php
[3] =>
[4] => PHP script text
[5] => PHP script text
)
Nate
On 3/30/07, Nat
Ooooh. That would have been likely, too. It is typed in correctly in the script.
Just to test, my entire script is nothing more than:
" . print_r($array, true) . "";
?>
I was using it to test the output, which works on both "ls" and
"file." Running "gnomevfs-info" without a file pumps out "Usag
Good call :-)
Yes, safe mode is turned off.
On 3/29/07, Tijnema ! <[EMAIL PROTECTED]> wrote:
On 3/29/07, Nathan Ziarek <[EMAIL PROTECTED]> wrote:
> /etc/php5/apache2/php.ini has the uncommented line "safe_mode = Off"
>
> Assuming there isn't another fil
auri
www.dwsasia.com - company web site
www.lauri.se - personal web site
www.carbonfree.org.uk - become Carbon Free
> -Original Message-----
> From: Nathan Ziarek [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 29, 2007 9:30 PM
> To: php-general@lists.php.net
> Subject: [PHP]
I'm having a hard time getting solid MIME Types of various files.
On my Ubuntu/Apache2/PHP5 system, I first attempted to install
fileInfo. That didn't go so well (on Safari even running "$finfo =
finfo_open(FILEINFO_MIME);" causes it to complain that it lost the
network connection; Firefox prompt
10 matches
Mail list logo