php-general Digest 14 Nov 2009 21:30:26 -0000 Issue 6442

2009-11-14 Thread php-general-digest-help
php-general Digest 14 Nov 2009 21:30:26 - Issue 6442 Topics (messages 299815 through 299822): Re: is Aptana taking a crap on the face of PHP? 299815 by: Daevid Vincent Re: creating combobox in excel sheet? 299816 by: Kim Madsen Re: RIGHT Function? 299817 by:

[PHP] exec() problem

2009-11-14 Thread A. Mannini
Hi all, i've a problem using exec() on a Linux server with PHP 5.2.9 on Apache 2.2.13. Safe mode is OFF and Apache isn't chrooted. I would run /usr/lib/mailman/bin/find_member -l list email so i used exec(sudo run /usr/lib/mailman/bin/find_member -l list email,$output) and set /etc/sudoers

Re: [PHP] exec() problem

2009-11-14 Thread Ashley Sheridan
On Sat, 2009-11-14 at 22:20 +0100, A. Mannini wrote: Hi all, i've a problem using exec() on a Linux server with PHP 5.2.9 on Apache 2.2.13. Safe mode is OFF and Apache isn't chrooted. I would run /usr/lib/mailman/bin/find_member -l list email so i used exec(sudo run

[PHP] exec() problem

2009-11-14 Thread A. Mannini
Hi all, i've a problem using exec() on a Linux server with PHP 5.2.9 on Apache 2.2.13. Safe mode is OFF and Apache isn't chrooted. I would run /usr/lib/mailman/bin/find_member -l list email so i used exec(sudo run /usr/lib/mailman/bin/find_member -l list email,$output) and set /etc/sudoers

Re: [PHP] exec() problem

2009-11-14 Thread A. Mannini
Ashley Sheridan ha scritto: Have you checked to ensure that the exec is actually running at all? Check the error logs to see what they say. There may be a problem with the string argument for exec(), like an unescaped character that is causing an issue Thanks, Ash

Re: [PHP] exec() problem

2009-11-14 Thread Ashley Sheridan
On Sun, 2009-11-15 at 00:06 +0100, A. Mannini wrote: Ashley Sheridan ha scritto: Have you checked to ensure that the exec is actually running at all? Check the error logs to see what they say. There may be a problem with the string argument for exec(), like an unescaped character that

Re: [PHP] exec() problem

2009-11-14 Thread A. Mannini
Ashley Sheridan ha scritto: On Sun, 2009-11-15 at 00:06 +0100, A. Mannini wrote: Ashley Sheridan ha scritto: Have you checked to ensure that the exec is actually running at all? Check the error logs to see what they say. There may be a problem with the string argument for exec(), like an

Re: [PHP] exec() problem

2009-11-14 Thread Ashley Sheridan
On Sun, 2009-11-15 at 00:25 +0100, A. Mannini wrote: Ashley Sheridan ha scritto: On Sun, 2009-11-15 at 00:06 +0100, A. Mannini wrote: Ashley Sheridan ha scritto: Have you checked to ensure that the exec is actually running at all? Check the error logs to see what they say. There may

Re: [PHP] exec() problem

2009-11-14 Thread Kim Madsen
Ashley Sheridan wrote on 2009-11-15 00:23: Looked to all log...nothing! :-( What other logs did you look at? Then do this from a command line: su - the user apache runs as copy the command from the ph script and run it from commandline and let us see the error you recieve... -- Kind

Re: [PHP] exec() problem

2009-11-14 Thread A. Mannini
Ashley Sheridan ha scritto: On Sun, 2009-11-15 at 00:06 +0100, A. Mannini wrote: Ashley Sheridan ha scritto: Have you checked to ensure that the exec is actually running at all? Check the error logs to see what they say. There may be a problem with the string argument for exec(), like an

Re: [PHP] exec() problem [SOLVED]

2009-11-14 Thread A. Mannini
Ashley Sheridan ha scritto: On Sun, 2009-11-15 at 00:06 +0100, A. Mannini wrote: Ashley Sheridan ha scritto: Have you checked to ensure that the exec is actually running at all? Check the error logs to see what they say. There may be a problem with the string argument for exec(), like an

Re: [PHP] RIGHT Function?

2009-11-14 Thread sono-io
On Nov 13, 2009, at 6:34 PM, Jim Lucas wrote: You basic problem with the PHP_EOL is that when echo'ed out, it represents a \n character. The value you are working with might be \n\r or just \r I read the links you sent, plus some others. It took me awhile, but I get it now. If the

[PHP] File To Blob Corruption

2009-11-14 Thread Don Wieland
Hello, I am trying to create an UPLOAD page to Update a Images and PDFs into a BLOB field in mySQL. The image keeps getting corrupted (it draws a portion of the image and the rest is GRAY) We tried it with Safari and Firefox with bad results. Here is the form that is used to browse and

Re: [PHP] File To Blob Corruption

2009-11-14 Thread German Geek
Hi, Could it have something to do with an eof character being encoded or something like that? Do you really need to store the files in the DB? It uses more processing power if stored in the DB because on retrieval, you have to unescape the string and return it. Modern filesystems are optimised

Re: [PHP] uniqid() and repetition of numbers generated

2009-11-14 Thread German Geek
2009/11/14 tedd tedd.sperl...@gmail.com A Interesting thought. My idea on this is to use the approach used when replicating a DB. It is similar to the namespace idea if not the same: Say you have 3 databases, you could use mod 3 numbers for A=0, B=1 and C=2 So on A you would have 0, 3, 6, 9,

Re: [PHP] What method is best for generating thumbnails in PHP from PDF's?

2009-11-14 Thread German Geek
Hi, I've spent ages trying to figure out a good way for this. Ghostscript and ImageMagick were slow and not giving satisfactory results because the colors were wrong in some instances. The solution for me was to use ImageMagick with X-PDF. You can install xpdf in any linux distro or even on

Re: [PHP] Re: Need suggestions on PHP frameworks

2009-11-14 Thread German Geek
Which framework to use is more of a religious war than anything, but I would recommend Symfony. It has a nice architechture and is very extendable. ++Tim Hinnerk Heuer++ http://www.ihostnz.com 2009/11/13 Sudheer Satyanarayana sudhee...@sudheer.net I doubt you'll get a reasoned bunch of