Re: [PHP] How to know which PHP is used by Apache

2010-04-01 Thread Devendra Jadhav
On Thu, Apr 1, 2010 at 11:30 PM, Nilesh Govindarajan wrote: > On 04/01/10 23:03, Kevin Kinsey wrote: > >> Nilesh Govindarajan wrote: >> >>> libphp5.so doesn't need the php binary. >>> >> >> You're right, and of course not. libphp5.so >> *is* a "PHP binary" :-) >> >> I've confirmed this using a te

RE: [PHP] Apache rule/directive to stop serving PHP pages from /var/www/includes/ [SOLVED]

2010-04-01 Thread Daevid Vincent
> -Original Message- > From: Robert Cummings [mailto:rob...@interjinn.com] > Sent: Thursday, April 01, 2010 7:23 PM > To: Daevid Vincent > Cc: php-general@lists.php.net > Subject: Re: [PHP] Apache rule/directive to stop serving PHP > pages from /var/www/includes/ > > Daevid Vincent wrote

Re: [PHP] Apache rule/directive to stop serving PHP pages from /var/www/includes/

2010-04-01 Thread Robert Cummings
Daevid Vincent wrote: (Sorry if this is a duplicate. I sent one earlier with "OT:" prefixing the subject line and I think this list software kills the message despite being proper netiquette. *sigh*) I have your basic web tree setup. develo...@mypse:/var/www/dart2$ tree -d -I 'CVS' |-- UPDATE

[PHP] Apache rule/directive to stop serving PHP pages from /var/www/includes/

2010-04-01 Thread Daevid Vincent
(Sorry if this is a duplicate. I sent one earlier with "OT:" prefixing the subject line and I think this list software kills the message despite being proper netiquette. *sigh*) I have your basic web tree setup. develo...@mypse:/var/www/dart2$ tree -d -I 'CVS' |-- UPDATES |-- ajax |-- images |

Re: [PHP] File encryption under PHP

2010-04-01 Thread Adam Richardson
> > Then "one-way encryption" would be something no one would do. I must be using > the wrong term. What I mean is that it needs a password, which is used to > encrypt and decrypt the file. *Symmetric* encryption uses the same key to encrypt and decrypt the text (what you're talking about, and ex

Re: [PHP] Re: Tokutek Acquires Oracle

2010-04-01 Thread Tommy Pham
On Thu, Apr 1, 2010 at 1:57 PM, Ashley Sheridan wrote: > On Thu, 2010-04-01 at 21:58 +0100, Nathan Rixham wrote: > >> Daevid Vincent wrote: >> > http://tokutek.com/2010/04/tokutek-acquires-oracle/ >> > >> > April 1, 2010, Totutek, Inc., announced the acquisition of Oracle >> > Corporation. "Tokute

Re: [PHP] Re: Tokutek Acquires Oracle

2010-04-01 Thread Ashley Sheridan
On Thu, 2010-04-01 at 21:58 +0100, Nathan Rixham wrote: > Daevid Vincent wrote: > > http://tokutek.com/2010/04/tokutek-acquires-oracle/ > > > > April 1, 2010, Totutek, Inc., announced the acquisition of Oracle > > Corporation. "Tokutek has long been a supporter of open-source software" > > said J

[PHP] Re: Tokutek Acquires Oracle

2010-04-01 Thread Nathan Rixham
Daevid Vincent wrote: > http://tokutek.com/2010/04/tokutek-acquires-oracle/ > > April 1, 2010, Totutek, Inc., announced the acquisition of Oracle > Corporation. "Tokutek has long been a supporter of open-source software" > said John Partridge, CEO of Tokutek. "Oracle is an innovative small company

[PHP] Tokutek Acquires Oracle

2010-04-01 Thread Daevid Vincent
http://tokutek.com/2010/04/tokutek-acquires-oracle/ April 1, 2010, Totutek, Inc., announced the acquisition of Oracle Corporation. "Tokutek has long been a supporter of open-source software" said John Partridge, CEO of Tokutek. "Oracle is an innovative small company the develops database front end

Re: [PHP] File encryption under PHP

2010-04-01 Thread Kevin Kinsey
Paul M Foster wrote: Folks: If I wanted to encrypt a file in PHP and then write it out to disk (one-way encryption, requiring a password), what PHP built-ins might you recommend to encrypt the contents of the file before writing it out to disk? Paul Here's a very generic mcrypt example. IANA

Re: [PHP] File encryption under PHP

2010-04-01 Thread APseudoUtopia
On Thu, Apr 1, 2010 at 4:05 PM, Ashley Sheridan wrote: > On Thu, 2010-04-01 at 16:04 -0400, Paul M Foster wrote: > >> On Thu, Apr 01, 2010 at 08:45:53PM +0100, Ashley Sheridan wrote: >> >> > On Thu, 2010-04-01 at 15:47 -0400, Paul M Foster wrote: >> > >> >     Folks: >> > >> >     If I wanted to e

Re: [PHP] File encryption under PHP

2010-04-01 Thread Ashley Sheridan
On Thu, 2010-04-01 at 16:04 -0400, Paul M Foster wrote: > On Thu, Apr 01, 2010 at 08:45:53PM +0100, Ashley Sheridan wrote: > > > On Thu, 2010-04-01 at 15:47 -0400, Paul M Foster wrote: > > > > Folks: > > > > If I wanted to encrypt a file in PHP and then write it out to disk > > (one

Re: [PHP] File encryption under PHP

2010-04-01 Thread APseudoUtopia
On Thu, Apr 1, 2010 at 3:47 PM, Paul M Foster wrote: > Folks: > > If I wanted to encrypt a file in PHP and then write it out to disk > (one-way encryption, requiring a password), what PHP built-ins might you > recommend to encrypt the contents of the file before writing it out to > disk? > > Paul

Re: [PHP] File encryption under PHP

2010-04-01 Thread Paul M Foster
On Thu, Apr 01, 2010 at 08:45:53PM +0100, Ashley Sheridan wrote: > On Thu, 2010-04-01 at 15:47 -0400, Paul M Foster wrote: > > Folks: > > If I wanted to encrypt a file in PHP and then write it out to disk > (one-way encryption, requiring a password), what PHP built-ins might you >

Re: [PHP] File encryption under PHP

2010-04-01 Thread Ashley Sheridan
On Thu, 2010-04-01 at 15:47 -0400, Paul M Foster wrote: > Folks: > > If I wanted to encrypt a file in PHP and then write it out to disk > (one-way encryption, requiring a password), what PHP built-ins might you > recommend to encrypt the contents of the file before writing it out to > disk? > >

[PHP] File encryption under PHP

2010-04-01 Thread Paul M Foster
Folks: If I wanted to encrypt a file in PHP and then write it out to disk (one-way encryption, requiring a password), what PHP built-ins might you recommend to encrypt the contents of the file before writing it out to disk? Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.ne

Re: [PHP] How to know which PHP is used by Apache

2010-04-01 Thread Nilesh Govindarajan
On 04/01/10 23:03, Kevin Kinsey wrote: Nilesh Govindarajan wrote: libphp5.so doesn't need the php binary. You're right, and of course not. libphp5.so *is* a "PHP binary" :-) I've confirmed this using a test. My local apache is configured to use libphp5.so I moved /usr/bin/php to /root, the

Re: [PHP] How to know which PHP is used by Apache

2010-04-01 Thread Kevin Kinsey
Nilesh Govindarajan wrote: libphp5.so doesn't need the php binary. You're right, and of course not. libphp5.so *is* a "PHP binary" :-) I've confirmed this using a test. My local apache is configured to use libphp5.so I moved /usr/bin/php to /root, then started apache and ran drupal. It w

Re: [PHP] How to know which PHP is used by Apache

2010-04-01 Thread Nilesh Govindarajan
libphp5.so doesn't need the php binary. I've confirmed this using a test. My local apache is configured to use libphp5.so I moved /usr/bin/php to /root, then started apache and ran drupal. It worked. This confirms that libphp5.so is independent of the php binary in /usr/bin as I suggested e

Re: [PHP] Re: php 5.3.2 Unable to fork

2010-04-01 Thread Eduardo Nunes
I would try your setenv path idea while compiling php without mysql, however I don't get why compiling php with mysql does not fork nor execute even running the php cli as root... Thanks for the reply Nilesh! "Nilesh Govindarajan" escreveu na mensagem news:4bb3fca7.4030...@itech7.com... O

Re: [PHP] How to know which PHP is used by Apache

2010-04-01 Thread Kevin Kinsey
Devendra Jadhav wrote: I am still confused. As per Nilesh php's binary is not required and as per Ashley it is required. Which one is correct? And I am not able to find which php's binary is used by using phpinfo(). Anyone confident about either of the two answers? Pretty confident about al

[PHP] Re: php 5.3.2 Unable to fork

2010-04-01 Thread Eduardo Nunes
Hi, thanks for the reply, just tried without any db bases and the scenario did not change (besides for mysql). With and without pear.. nothing changed from the initial scene. "Nathan Rixham" escreveu na mensagem news:4bb3eb75.4020...@gmail.com... Eduardo Nunes wrote: Compiling without mysql

Re: [PHP] How to know which PHP is used by Apache

2010-04-01 Thread Nilesh Govindarajan
On 04/01/10 20:30, Devendra Jadhav wrote: On Thu, Apr 1, 2010 at 7:22 PM, Devendra Jadhavwrote: On Thu, Apr 1, 2010 at 7:13 PM, Teus Benschopwrote: On Thu, 2010-04-01 at 19:07 +0530, Devendra Jadhav wrote: With my case both installation of PHP has version 5.x, so how to know which PHP is b

Re: [PHP] How to know which PHP is used by Apache

2010-04-01 Thread Devendra Jadhav
On Thu, Apr 1, 2010 at 7:22 PM, Devendra Jadhav wrote: > On Thu, Apr 1, 2010 at 7:13 PM, Teus Benschop wrote: > >> On Thu, 2010-04-01 at 19:07 +0530, Devendra Jadhav wrote: >> > With my case both installation of PHP has version 5.x, so how to know >> which >> > PHP is being used? >> > >> Running t

Re: [PHP] How to know which PHP is used by Apache

2010-04-01 Thread Devendra Jadhav
On Thu, Apr 1, 2010 at 7:13 PM, Teus Benschop wrote: > On Thu, 2010-04-01 at 19:07 +0530, Devendra Jadhav wrote: > > With my case both installation of PHP has version 5.x, so how to know > which > > PHP is being used? > > > Running this page through Apache could do it: > > phpinfo (); > ?> > > Te

Re: [PHP] How to know which PHP is used by Apache

2010-04-01 Thread Teus Benschop
On Thu, 2010-04-01 at 19:07 +0530, Devendra Jadhav wrote: > With my case both installation of PHP has version 5.x, so how to know which > PHP is being used? > Running this page through Apache could do it: Teus. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://ww

Re: [PHP] How to know which PHP is used by Apache

2010-04-01 Thread Nilesh Govindarajan
On 04/01/10 19:00, Devendra Jadhav wrote: Hi All, In the situation if there are two PHP's installed on the Linux box. How to know which PHP is used by Apache? Another question is do Apache need PHP's binary to execute PHP Scripts? If yes what is the role of libphp5.so in Apache? Note: PHP is c

Re: [PHP] How to know which PHP is used by Apache

2010-04-01 Thread Richard
Hi, > In the situation if there are two PHP's installed on the Linux box. > How to know which PHP is used by Apache? > > Another question is do Apache need PHP's binary to execute PHP Scripts? If > yes what is the role of libphp5.so in Apache? > > Note: PHP is configured as module under Apache. T

Re: [PHP] How to know which PHP is used by Apache

2010-04-01 Thread Devendra Jadhav
On Thu, Apr 1, 2010 at 6:59 PM, Ashley Sheridan wrote: > On Thu, 2010-04-01 at 19:00 +0530, Devendra Jadhav wrote: > > Hi All, > > In the situation if there are two PHP's installed on the Linux box. > How to know which PHP is used by Apache? > > Another question is do Apache need PHP's binary to

Re: [PHP] How to know which PHP is used by Apache

2010-04-01 Thread Ashley Sheridan
On Thu, 2010-04-01 at 19:00 +0530, Devendra Jadhav wrote: > Hi All, > > In the situation if there are two PHP's installed on the Linux box. > How to know which PHP is used by Apache? > > Another question is do Apache need PHP's binary to execute PHP Scripts? If > yes what is the role of libphp5.

[PHP] How to know which PHP is used by Apache

2010-04-01 Thread Devendra Jadhav
Hi All, In the situation if there are two PHP's installed on the Linux box. How to know which PHP is used by Apache? Another question is do Apache need PHP's binary to execute PHP Scripts? If yes what is the role of libphp5.so in Apache? Note: PHP is configured as module under Apache. Appreciat

Re: [PHP] image upload keeps file name ?

2010-04-01 Thread Midhun Girish
I use the follwing function for moving files: public function moveFile($file,$targetdir="../uploads/images/") { $fileName = $file['name']; $ext = substr($fileName, strrpos($fileName, '.') + 1); do { $targetfilename=md5(date("m.d.y.h.i.s").basename($fileName)).

Re: [PHP] image upload keeps file name ?

2010-04-01 Thread Ashley Sheridan
On Thu, 2010-04-01 at 10:51 +0100, Matthew Croud wrote: > Hi Guys, > > Can someone confirm for me that the code below will move an uploaded > file and give it the same name as the original image file name ? > > > $file_dir = "/home/uploads"; > foreach($_FILES as $file_name => $file_array) { >

[PHP] image upload keeps file name ?

2010-04-01 Thread Matthew Croud
Hi Guys, Can someone confirm for me that the code below will move an uploaded file and give it the same name as the original image file name ? $file_dir = "/home/uploads"; foreach($_FILES as $file_name => $file_array) { echo "path: ".$file_array["tmp_name"]."\n"; echo "name:

Re: Re[2]: [PHP] Still searching for a bugtracking system

2010-04-01 Thread Jan G.B.
2010/3/30 Andre Polykanine : > Hello Jan, > > And what do you use then?) > Sadly, I'm bound to use what I dislike. Mantis. ;) It's not my decision and in our business model there's no major benefit in switching the software, at this point. I can live with it. Regards > -- > With best regards fro