Re: [PHP] How to find where class is used?

2012-01-06 Thread Nilesh Govindarajan
This works if vBulletin was installed as a system package. No other package directly installs in php include paths. OP should try this: grep -ir 'class vb_profileblock' path to root of vBulletin installation -- Nilesh Govindarajan http://nileshgr.com -- PHP General Mailing List (http://www.php.net

Re: [PHP] Printing

2012-01-05 Thread Nilesh Govindarajan
client.  My host runs Apache and 2.2.21 and PHP 5.3.6. My question is:  Is there something I (me!) have to do to get printing to function in my domain's PHP install? It is PECL extension not bundled by default - www.php.net/manual/en/printer.installation.php -- Nilesh Govindarajan http

Re: [PHP] Implicit FTPS

2012-01-05 Thread Nilesh Govindarajan
if this has already been considered and offer assistance if desired.  Thank you. http://www.php.net/manual/en/function.ftp-ssl-connect.php -- Nilesh Govindarajan http://nileshgr.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Printing

2012-01-05 Thread Nilesh Govindarajan
On Thu, Jan 5, 2012 at 9:05 PM, Jim Giner jim.gi...@albanyhandball.com wrote: Add extension=php_printer.dll in php.ini? Will adding that line install the extension? It will enable the extension. Install = compile + enable. It will not work if you don't have the DLL. -- Nilesh Govindarajan

Re: [PHP] Printing

2012-01-05 Thread Nilesh Govindarajan
On Thu, Jan 5, 2012 at 9:16 PM, Jim Giner jim.gi...@albanyhandball.com wrote: and where do I get the dll?  That was my original question.  The documentation didn't tell me anything other than it had to be enabled. - Original Message - From: Nilesh Govindarajan cont...@nileshgr.com

Re: [PHP] Common way to store db-password of open session?

2011-11-29 Thread Nilesh Govindarajan
variable login=true and let the user work on the private parts of the site. The cookie essentially, contains just the session id. I never use cookies to store data, only sessions. I also add ip and user-agent filtering to my auth systems. -- Nilesh Govindarajan http://nileshgr.com -- PHP

Re: [PHP] Question about PHP FPM and shared memory

2011-11-23 Thread Nilesh Govindarajan
it and were those changes applied? -- Nilesh Govindarajan http://nileshgr.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Compile PHP with MySQLi (With MySQL on a remote server)

2011-10-13 Thread Nilesh Govindarajan
to compile mysql{,i} modules, the client library is enough. Any special reason for not using mysqlnd, which will compile without needing the mysql client library? Or I guess it's not there in php 5.1 -- Nilesh Govindarajan http://nileshgr.com -- PHP General Mailing List (http://www.php.net

Re: [PHP] Compile PHP with MySQLi (With MySQL on a remote server)

2011-10-13 Thread Nilesh Govindarajan
are recieving the fatal call to undefined function mysql_connect() error. As for the mysql native library, I am guessing it's no longer included in the php tree for copyright reasons? Thanks in Advance, Nick. On Thu, Oct 13, 2011 at 9:13 AM, Nilesh Govindarajan cont...@nileshgr.com mailto:cont

Re: [PHP] detect file upload time

2011-10-04 Thread Nilesh Govindarajan
on the server. Or, the php script echoes something out. -- Nilesh Govindarajan http://nileshgr.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How can I check for characters in a $_POST[] variable?

2011-09-22 Thread Nilesh Govindarajan
) { // string contains other characters, write the code } -- Nilesh Govindarajan http://nileshgr.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] RE: How can I check for characters in a $_POST[] variable?

2011-09-22 Thread Nilesh Govindarajan
that the pattern is to be enclosed between delimiters. Glad that you found the fix using ctype_alnum though. A new learning for me. -- Nilesh Govindarajan http://nileshgr.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How can I check for characters in a $_POST[] variable?

2011-09-22 Thread Nilesh Govindarajan
and modification by character. And if you want to go the loop way, you could use range() to fill values in $validCharacters. $validCharacters = array_merge(range('A', 'Z'), range('a', 'z')); -- Nilesh Govindarajan http://nileshgr.com -- PHP General Mailing List (http://www.php.net

Fwd: Re: [PHP] mysql adapter and DAL

2011-09-17 Thread Nilesh Govindarajan
Sorry, I clicked the 'reply' button instead of reply to all. Original Message Subject: Re: [PHP] mysql adapter and DAL Date: Sat, 17 Sep 2011 19:07:48 +0530 From: Nilesh Govindarajan cont...@nileshgr.com To: shahrzad khorrami shahrzad.khorr...@gmail.com On Sat 17 Sep 2011 04:54

Re: [PHP] PHP sessions expiring early

2011-09-07 Thread Nilesh Govindarajan
gc_maxlifetime. For the other case, I'm clueless. -- Nilesh Govindarajan http://nileshgr.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Path question.

2011-07-28 Thread Nilesh Govindarajan
instead of forward which are used in *nix (incl mac) -- Regards, Nilesh Govindarajan @nileshgr on twitter/identica -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Segmentation Fault

2011-07-23 Thread Nilesh Govindarajan
to compile libc, unless you're using a source based distribution like gentoo. -- Regards, Nilesh Govindarajan @nileshgr on twitter/identica -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] dependency check

2011-07-22 Thread Nilesh Govindarajan
files (regex) which are not included in any of the php files. Of course, this applies if and only if you haven't used __autoload() magic. -- Regards, Nilesh Govindarajan @nileshgr on twitter/identica -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] dependency check

2011-07-22 Thread Nilesh Govindarajan
method. -- Regards, Nilesh Govindarajan @nileshgr on twitter/identica -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP as CGI-CLI on FreeBSD/Apache22

2011-06-27 Thread Nilesh Govindarajan
at performance, you should give a thought to fastcgi + php + suexec as in here: http://forum.linode.com/viewtopic.php?t=2982 Though its written for ubuntu, you can derive some tricks from there. I don't know if php-fpm + suexec is possible. php-fpm is best for fastcgi. -- Regards, Nilesh Govindarajan @nileshgr

Re: [PHP] header function odd behavior

2011-06-27 Thread Nilesh Govindarajan
and friends. -- Regards, Nilesh Govindarajan @nileshgr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] caching problem

2011-06-27 Thread Nilesh Govindarajan
running apache 2.2.19, php ts 5.3.6 on windows 2003 r2 any ideas how to avoid this situation? thanks Fatih It seems you have a wrongly configured opcode cache runnning about which you're not aware of. -- Regards, Nilesh Govindarajan @nileshgr on twitter/identica -- PHP General Mailing List

Re: [PHP] PHP arguments getting lost in call!?

2011-02-13 Thread Nilesh Govindarajan
'); t1::fn($args); t1.php: class t1 { public static function fn($a) { var_dump($a); } } And this gives me: array(3) { [0]= string(1) f [1]= string(1) g [2]= string(1) h } which is as expected -- Regards, Nilesh Govindarajan Facebook: http://www.facebook.com/nilesh.gr Twitter: http

Re: [PHP] Installing PEAR

2011-01-25 Thread Nilesh Govindarajan
, Nilesh Govindarajan Facebook: http://www.facebook.com/nilesh.gr Twitter: http://twitter.com/nileshgr Website: http://www.itech7.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] email address syntax checker

2011-01-21 Thread Nilesh Govindarajan
very much if any provider in the universe gives such an address? It has been coded partially according to RFC and partially according to common sense. [[NO FLAMES]] -- Regards, Nilesh Govindarajan Facebook: http://www.facebook.com/nilesh.gr Twitter: http://twitter.com/nileshgr Website: http

Re: [PHP] email address syntax checker

2011-01-20 Thread Nilesh Govindarajan
) or !preg_match($userNameRegex2, $username) or preg_match($domainRegex1, $domain) or !preg_match($domainRegex2, $domain) or !checkdnsrr($domain, 'MX')) { return false; } else { return true; } } -- Regards, Nilesh Govindarajan Facebook: http://www.facebook.com/nilesh.gr

Re: [PHP] which php file is sending emails?

2011-01-15 Thread Nilesh Govindarajan
) Output a big long list of files... So the second one is right. -- Regards, Nilesh Govindarajan Facebook: http://www.facebook.com/nilesh.gr Twitter: http://twitter.com/nileshgr Website: http://www.itech7.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] which php file is sending emails?

2011-01-15 Thread Nilesh Govindarajan
-R will work on linux, but will not on FreeBSD. It has to be changed to chmod -R u=rwx,g=rwx,o= directory. -- Regards, Nilesh Govindarajan Facebook: http://www.facebook.com/nilesh.gr Twitter: http://twitter.com/nileshgr Website: http://www.itech7.com -- PHP General Mailing List (http

Re: [PHP] which php file is sending emails?

2011-01-15 Thread Nilesh Govindarajan
explanation, right? And yes, I know it works on Linux. I'm just messing with you. ;-P Okay now this is turning into a war :D We're deviating from the original topic. Anyways, I'm not a regular *BSD user :D So some commands may be broken :D :D -- Regards, Nilesh Govindarajan Facebook: http

Re: [PHP] which php file is sending emails?

2011-01-15 Thread Nilesh Govindarajan
On 01/16/2011 12:33 PM, Jim Lucas wrote: On 1/15/2011 10:51 AM, Nilesh Govindarajan wrote: On 01/15/2011 11:13 PM, Daniel Brown wrote: On Sat, Jan 15, 2011 at 12:21, Nilesh Govindarajannil...@itech7.com wrote: On 01/15/2011 10:22 PM, Jim Lucas wrote: Um, I use OpenBSD and that command

Re: [PHP] 'make test' failures

2011-01-14 Thread Nilesh Govindarajan
the 'make test' command it fails with something like this: They never gave 100% success for me, I use php without running make test and it works fine for me. No problems yet, its been more than two years like that (of course different php versions). -- Regards, Nilesh Govindarajan Facebook: http

Re: [PHP] which php file is sending emails?

2011-01-14 Thread Nilesh Govindarajan
*.php) There can be nothing more simpler than this!!! Seriously man, you need to revise your sysadmin skills! -- Regards, Nilesh Govindarajan Facebook: http://www.facebook.com/nilesh.gr Twitter: http://twitter.com/nileshgr Website: http://www.itech7.com -- PHP General Mailing List (http

Re: [PHP] unable to allocate memory for pool (php 5.2.16)

2011-01-06 Thread Nilesh Govindarajan
to occur with a specific pattern, i.e sometimes the same page works sometimes doesn't. Any idea or similar results? Which SAPI are you using? Give us some more details, get [debug] messages if any from the log. -- Regards, Nilesh Govindarajan Facebook: http://www.facebook.com/nilesh.gr Twitter

Re: [PHP] ErrorDocument 500 and PHP

2011-01-03 Thread Nilesh Govindarajan
to the client. This is actually a successful request when you see from the apache's eye. -- Regards, Nilesh Govindarajan Facebook: http://www.facebook.com/nilesh.gr Twitter: http://twitter.com/nileshgr Website: http://www.itech7.com VPS Hosting: http://www.itech7.com/a/vps -- PHP General Mailing List

Re: [PHP] storing files in database and retriving them

2010-07-27 Thread Nilesh Govindarajan
Have you checked the headers? Its mostly a mime time issue I feel. What do you see in Content-Type? It should be application/pdf (or application/x-pdf, unsure) for PDF files. -- Regards, Nilesh Govindarajan Facebook: http://www.facebook.com/nilesh.gr Twitter: http://twitter.com/nileshgr Website

Re: [PHP] storing files in database and retriving them

2010-07-27 Thread Nilesh Govindarajan
). -- Regards, Nilesh Govindarajan Facebook: http://www.facebook.com/nilesh.gr Twitter: http://twitter.com/nileshgr Website: http://www.itech7.com VPS Hosting: http://www.itech7.com/a/vps -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] storing files in database and retriving them

2010-07-27 Thread Nilesh Govindarajan
Dude! I found the bug probably, you're using fopen() in 'r' mode which is meant to read ASCII text. Since PDF is a binary file (probably?), you should use binary mode. Try with mode = 'rb' in fopen(). -- Regards, Nilesh Govindarajan Facebook: http://www.facebook.com/nilesh.gr Twitter: http

Re: [PHP] exec output to mySQL, How?

2010-07-21 Thread Nilesh Govindarajan
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php $cmdop=shell_exec('cmd'); $con=new mysqli(...); // Check connection error // Refer to php.net/mysqli $con-multi_query($cmdop); -- Regards, Nilesh Govindarajan Facebook: http://www.facebook.com

Re: [PHP] exec output to mySQL, How?

2010-07-21 Thread Nilesh Govindarajan
List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php I don't think this is what he needs? Otherwise why would he post on a PHP list lol. -- Regards, Nilesh Govindarajan Facebook: http://www.facebook.com/nilesh.gr Twitter: http://twitter.com/nileshgr Website: http

Re: [PHP] exec output to mySQL, How?

2010-07-21 Thread Nilesh Govindarajan
On Wed, Jul 21, 2010 at 12:39 PM, Tom Sparks tom_a_spa...@yahoo.com.au wrote: --- On Wed, 21/7/10, Nilesh Govindarajan li...@itech7.com wrote: On Wed, Jul 21, 2010 at 8:49 AM, Tom Sparks tom_a_spa...@yahoo.com.au wrote: How do I take the output from a command line program and update a MYSQL

Re: [PHP] function exists in command line but not in browser

2010-07-19 Thread Nilesh Govindarajan
is using two different INI files for command line and web. In the phpinfo(), see Parsed Configuration File (something similar), its at the top of the page, some four-five lines down. -- Regards, Nilesh Govindarajan Facebook: http://www.facebook.com/nilesh.gr Twitter: http://twitter.com/nileshgr

Re: [PHP] Quick Question

2010-06-13 Thread Nilesh Govindarajan
Karl DeSaulniers Design Drumm http://designdrumm.com I don't know about MLs, but you can look for some user groups on google and yahoo. -- Nilesh Govindarajan Facebook: nilesh.gr Twitter: nileshgr Website: www.itech7.com Cheap and Reliable VPS Hosting: http://j.mp/arHk5e -- PHP General

Re: [PHP] PHP Form submitting to MySQL not working...

2010-06-03 Thread Nilesh Govindarajan
/unsub.php 1. Did you do any upgrades recently ? 2. What is your code ? -- Nilesh Govindarajan Facebook: nilesh.gr Twitter: nileshgr Website: www.itech7.com Cheap and Reliable VPS Hosting: http://j.mp/arHk5e -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] php accelorator

2010-06-02 Thread Nilesh Govindarajan
If you're looking out for an accelerator then it means that you have a custom server. Then I suggest, you use mod_fcgid with php-fcgi. mod_fcgid uses the fastcgi protocol and also it serves the caching part (that's the biggest difference between mod_fcgid and mod_fastcgi). -- Nilesh Govindarajan

Re: [PHP] php accelorator

2010-06-02 Thread Nilesh Govindarajan
friend's dad's computer was infected with virus it seems, and he was using QuickHeal antivirus which is worst ! And he says, he doesn't trust free products when I suggested use of Avast one of the best ! That was big OMG for me !! -- Nilesh Govindarajan Facebook: nilesh.gr Twitter: nileshgr Website

Re: [PHP] get classname without namespace

2010-05-29 Thread Nilesh Govindarajan
if only static method is called? Br Tanel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php You need to extract that using strrpos and substr $name = substr($fullname_with_namespace, strrpos($fullname_with_namespace, '/')); -- Nilesh

Re: [PHP] batteling with mod_fcgi in virtualmin virtual host

2010-05-26 Thread Nilesh Govindarajan
=indexmodule=Home apart from changing logging levels how should I resolve these issues. Thanks This has nothing to do with mod_fcgid. Its the errors in code. -- Nilesh Govindarajan Facebook: nilesh.gr Twitter: nileshgr Website: www.itech7.com -- PHP General Mailing List (http://www.php.net

Fwd: [PHP] One more time about regexes

2010-05-26 Thread Nilesh Govindarajan
-- Forwarded message -- From: Nilesh Govindarajan li...@itech7.com Date: Thu, May 27, 2010 at 8:40 AM Subject: Re: [PHP] One more time about regexes To: Andre Polykanine an...@oire.org On Thu, May 27, 2010 at 3:33 AM, Andre Polykanine an...@oire.org wrote: Hello everyone

Re: [PHP] securing a custom app

2010-05-23 Thread Nilesh Govindarajan
by PHP but managed by the server ! ;) -- Nilesh Govindarajan (निलेश गोविंदराजन) Twitter: nileshgr Facebook: nilesh.gr Website: www.itech7.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] securing a custom app

2010-05-22 Thread Nilesh Govindarajan
not going to go over SSL, then nothing you can do will be stronger since it all flies out in plaintext over the internet. Cheers, Rob. Yeah I also agree with it. If you really want the things to be secure then use SSL. -- Nilesh Govindarajan (निलेश गोविंदराजन) Twitter: nileshgr Facebook

Re: [PHP] Displaying errors

2010-05-16 Thread Nilesh Govindarajan
= On Note if you override that somewhere, then change it at the overriding point. Also, there may be some application specific setting, like in Drupal, you can configure whether the errors are written to the dblog or dblog and screen. -- Nilesh Govindarajan Site Server Administrator www.itech7.com

Re: [PHP] Displaying errors

2010-05-16 Thread Nilesh Govindarajan
On 05/16/2010 05:21 PM, Nilesh Govindarajan wrote: On 05/16/2010 05:09 PM, Malka Cymbalista wrote: Hi all, we are running Apache 2.2.6 and PHP 5.2.6 on a Linux machine. If someone gets an error when displaying a php web page, he does not get any error message on the screen. The arror is written

Re: [PHP] Need login suggestions

2010-05-03 Thread Nilesh Govindarajan
Thanks, Ash http://www.ashleysheridan.co.uk You could also use Zend_Acl for that if you needed a framework. I personally don't like to use frameworks. -- Nilesh Govindarajan Site Server Administrator www.itech7.com मेरा भारत महान ! मम भारत: महत्तम भवतु ! -- PHP General Mailing List (http

Re: [PHP] Need login suggestions

2010-05-02 Thread Nilesh Govindarajan
me some ideas of what you did? Thanks! Its a very bad idea to allow public registration for parents, instead the school IT department should give accounts to students and parents. -- Nilesh Govindarajan Site Server Administrator www.itech7.com मेरा भारत महान ! मम भारत: महत्तम भवतु ! -- PHP

Re: [PHP] Need login suggestions

2010-05-02 Thread Nilesh Govindarajan
to make it as painless as possible, but the more I think about it, the more I'm accepting the impossible nature of it. Ugh that's what I had suggested, but you turned it into a big fight LOL. -- Nilesh Govindarajan Site Server Administrator www.itech7.com मेरा भारत महान ! मम भारत: महत्तम भवतु

Re: [PHP] A stupid question about classes

2010-05-01 Thread Nilesh Govindarajan
, only that's the difference. -- Nilesh Govindarajan Site Server Administrator www.itech7.com मेरा भारत महान ! मम भारत: महत्तम भवतु ! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Getting root privs

2010-04-30 Thread Nilesh Govindarajan
On 04/30/2010 11:26 AM, Jim Lucas wrote: Nilesh Govindarajan wrote: Hi, As you know there are lot of control panels lying around like Cpanel, Lxadmin, most of them based on PHP. The control panels allow editing of system files which requires root privileges, can somebody tell me how to gain

Re: [PHP] Getting root privs

2010-04-30 Thread Nilesh Govindarajan
On 04/30/2010 08:10 PM, Paul M Foster wrote: On Fri, Apr 30, 2010 at 12:11:17PM +0530, Nilesh Govindarajan wrote: On 04/30/2010 11:26 AM, Jim Lucas wrote: Nilesh Govindarajan wrote: Hi, As you know there are lot of control panels lying around like Cpanel, Lxadmin, most of them based on PHP

Re: [PHP] Getting root privs

2010-04-30 Thread Nilesh Govindarajan
On 04/30/2010 08:12 PM, Ashley Sheridan wrote: On Fri, 2010-04-30 at 10:40 -0400, Paul M Foster wrote: On Fri, Apr 30, 2010 at 12:11:17PM +0530, Nilesh Govindarajan wrote: On 04/30/2010 11:26 AM, Jim Lucas wrote: Nilesh Govindarajan wrote: Hi, As you know there are lot of control panels

[PHP] Getting root privs

2010-04-29 Thread Nilesh Govindarajan
to give my users a DNS editing interface instead of loading a big bloated control panel. -- Nilesh Govindarajan Site Server Administrator www.itech7.com मेरा भारत महान ! मम भारत: महत्तम भवतु ! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP MYSQL sorting

2010-04-11 Thread Nilesh Govindarajan
button when they have located the correct number. The trick is to make the checkbox trigger a new Select statement. Thanks. Use jquery, trigger an ajax request onclick of that checkbox. -- Nilesh Govindarajan Site Server Administrator www.itech7.com मेरा भारत महान ! मम भारत: महत्तम भवतु

Re: [PHP] another useless message.

2010-04-09 Thread Nilesh Govindarajan
Somebody ban this person. He/she is creating nuisance here. ^) -- Nilesh Govindarajan Site Server Administrator www.itech7.com मेरा भारत महान ! मम भारत: महत्तम भवतु ! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Greate day for you,

2010-04-07 Thread Nilesh Govindarajan
On 04/07/10 21:41, Chris G wrote: http://sites.google.com/site/vfgbyuhoi6/kewe2w Bloody asshole spammer. Is there no spam filter at lists.php.net ? -- Nilesh Govindarajan Site Server Administrator www.itech7.com मेरा भारत महान ! मम भारत: महत्तम भवतु ! -- PHP General Mailing List (http

Re: [PHP] Re: $_SERVER['PHP_AUTH_USER'] has gone

2010-04-06 Thread Nilesh Govindarajan
headers properly. Do you get the auth box in the latest browser, and are you sure that you're using basic and not digest auth ? -- Nilesh Govindarajan Site Server Administrator www.itech7.com मेरा भारत महान ! मम भारत: महत्तम भवतु ! -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] $_SERVER['PHP_AUTH_USER'] has gone

2010-04-04 Thread Nilesh Govindarajan
username and password? Why not dump the $_SERVER array and check it out ? -- Nilesh Govindarajan Site Server Administrator www.itech7.com मेरा भारत महान ! मम भारत: महत्तम भवतु ! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Collections / Static typing - was array or list of objects of different types

2010-04-03 Thread Nilesh Govindarajan
? Best is to use the is_* functions :P -- Nilesh Govindarajan Site Server Administrator www.itech7.com मेरा भारत महान ! मम भारत: महत्तम भवतु ! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] str_replace help

2010-04-02 Thread Nilesh Govindarajan
) What am I doing wrong? Thanks! Use nl2br. -- Nilesh Govindarajan Site Server Administrator www.itech7.com मेरा भारत महान ! मम भारत: महत्तम भवतु ! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: convert a string into an array

2010-04-02 Thread Nilesh Govindarajan
; } type juggling is a wonderful thing ;) Yeah this i the best. It will allow the users to enter a string or an array without affecting processing of your function. -- Nilesh Govindarajan Site Server Administrator www.itech7.com मेरा भारत महान ! मम भारत: महत्तम भवतु ! -- PHP General Mailing

Re: [PHP] Re: array or list of objects of different types

2010-04-02 Thread Nilesh Govindarajan
of PHP is a boon if used carefully and a curse if careless. You can get AMAZING results if you're not careful to check the data types ;) -- Nilesh Govindarajan Site Server Administrator www.itech7.com मेरा भारत महान ! मम भारत: महत्तम भवतु ! -- PHP General Mailing List (http://www.php.net

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

2010-04-01 Thread Nilesh Govindarajan
is configured as module under Apache. Appreciate your thoughts. First of all, libphp5.so is created during the php compilation process. So it will use version of php with which it was compiled. Also, I don't think php's binary is needed for execution of php scripts is needed. -- Nilesh

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

2010-04-01 Thread Nilesh Govindarajan
. -- Nilesh Govindarajan Site Server Administrator www.itech7.com मेरा भारत महान ! मम भारत: महत्तम भवतु ! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2010-04-01 Thread Nilesh Govindarajan
earlier. -- Nilesh Govindarajan Site Server Administrator www.itech7.com मेरा भारत महान ! मम भारत: महत्तम भवतु ! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

[PHP] Something wrong with the PHP-INSTALL list ?

2010-03-31 Thread Nilesh Govindarajan
Abuse Department * Discussion Thread* * Customer (Nilesh Govindarajan)* 03/31/2010 06:48 AM On 03/31/2010 01:41 PM, Henryk Cichy wrote: Dear Sir, I would like to start programming using PHP,Apatche and MySql but I couldn't start PHP. I installed Apache v.2.2.15 ( directory c

Re: [PHP] Something wrong with the PHP-INSTALL list ?

2010-03-31 Thread Nilesh Govindarajan
inconvenience this may have caused and appreciate you bringing this matter to our attention. Regards, The Email Abuse Department * Discussion Thread* * Customer (Nilesh Govindarajan)* 03/31/2010 06:48 AM On 03/31/2010 01:41 PM, Henryk Cichy wrote: Dear Sir, I would like to start

Re: [PHP] Something wrong with the PHP-INSTALL list ?

2010-03-31 Thread Nilesh Govindarajan
to unsubscribe. They forward messages to an abuse address instead. It's happened a few times over the years, and it's a severe pain in the butt for legitimate subscribers. Damn those idiots. -- Nilesh Govindarajan Site Server Administrator www.itech7.com मेरा भारत महान ! मम भारत: महत्तम भवतु ! -- PHP

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

2010-03-31 Thread Nilesh Govindarajan
. -- Nilesh Govindarajan Site Server Administrator www.itech7.com मेरा भारत महान ! मम भारत: महत्तम भवतु ! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Converting funky characters

2010-03-29 Thread Nilesh Govindarajan
On 03/29/2010 01:22 PM, Ashley Sheridan wrote: On Mon, 2010-03-29 at 07:24 +0530, Nilesh Govindarajan wrote: On 03/29/2010 07:22 AM, solo hsi wrote: i think you just need function urldecode() On Mon, Mar 29, 2010 at 8:05 AM, Skip Evanss...@bigskypenguin.com mailto:s

Re: [PHP] Converting funky characters

2010-03-29 Thread Nilesh Govindarajan
On 03/29/2010 02:21 PM, Ashley Sheridan wrote: On Mon, 2010-03-29 at 14:25 +0530, Nilesh Govindarajan wrote: On 03/29/2010 01:22 PM, Ashley Sheridan wrote: On Mon, 2010-03-29 at 07:24 +0530, Nilesh Govindarajan wrote: On 03/29/2010 07:22 AM, solo hsi wrote: i think you just need

Re: [PHP] Please guide in selection of Framework: according to your experience

2010-03-29 Thread Nilesh Govindarajan
, it becomes to understand our own code itself ! -- Nilesh Govindarajan Site Server Administrator www.itech7.com मेरा भारत महान ! मम भारत: महत्तम भवतु ! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] bug tracking system

2010-03-28 Thread Nilesh Govindarajan
+bug+tracker -- Nilesh Govindarajan Site Server Administrator www.itech7.com मेरा भारत महान ! मम भारत: महत्तम भवतु ! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] bug tracking system

2010-03-28 Thread Nilesh Govindarajan
On 03/28/2010 07:25 PM, ebhakt wrote: Use drupal with the bug tracking system http://drupal.org/project/project_issue http://drupal.org/project/project_issue On Sun, Mar 28, 2010 at 7:22 PM, Nilesh Govindarajan li...@itech7.com mailto:li...@itech7.com wrote: On 03/28/2010 06:58 PM, Andre

Re: [PHP] Converting funky characters

2010-03-28 Thread Nilesh Govindarajan
them to web friendly chars? Thanks, Skip PCRE is your best friend for such problems. -- Nilesh Govindarajan Site Server Administrator www.itech7.com मेरा भारत महान ! मम भारत: महत्तम भवतु ! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Converting funky characters

2010-03-28 Thread Nilesh Govindarajan
the long spaces and quotes, etc. -- Nilesh Govindarajan Site Server Administrator www.itech7.com मेरा भारत महान ! मम भारत: महत्तम भवतु ! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Adding Time

2010-03-27 Thread Nilesh Govindarajan
it using strftime. Also to format inputted date time in the form, check in php manual, to convert dates to timestamps (i forgot the func. name). -- Nilesh Govindarajan Site Server Administrator www.itech7.com मेरा भारत महान ! मम भारत: महत्तम भवतु ! -- PHP General Mailing List (http://www.php.net

Re: [PHP] Please guide in selection of Framework: according to your experience

2010-03-26 Thread Nilesh Govindarajan
tougher to start with. -- Nilesh Govindarajan Site Server Administrator www.itech7.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Temporary failure in name resolution - fsockopen()

2010-03-25 Thread Nilesh Govindarajan
(99.9% it has) to your /etc/hosts file. It should not give trouble then. -- Nilesh Govindarajan Site Server Administrator www.itech7.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Temporary failure in name resolution - fsockopen()

2010-03-25 Thread Nilesh Govindarajan
On 03/25/2010 07:01 PM, David Lidstone wrote: Nilesh Govindarajan wrote: On 03/25/2010 03:51 PM, David Lidstone wrote: We recently para-virtualised a Xen / CentOS box which is running script which uses fsockopen() to get a connection to an SMTP server. Since the server changes it fails approx

Re: [PHP] how to do cloud computing with php

2010-03-24 Thread Nilesh Govindarajan
about php's ability to scale to cloud computing. Isn't multiple php processing servers possible using FastCGI protocol ? -- Nilesh Govindarajan Site Server Administrator www.itech7.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] how to do cloud computing with php

2010-03-24 Thread Nilesh Govindarajan
more better speed and performance as compared to MySQL. No I'm not joking about it or telling this just by reading articles on the web. Its my experience. I moved my drupal site from MySQL to PostgreSQL (all latest) to see a huge performance boost. :) -- Nilesh Govindarajan Site Server

Re: [PHP] Properly handling multiple constructors.

2010-03-24 Thread Nilesh Govindarajan
call_user_func_array with parameters. A sample: public function __construct() { switch(count(func_get_args())) { case 1: call_user_func_array(array($this, '_helper1'), func_get_args()); break; // and so on } } -- Nilesh Govindarajan Site Server Administrator www.itech7.com -- PHP General Mailing List (http

Re: [PHP] Properly handling multiple constructors.

2010-03-24 Thread Nilesh Govindarajan
On 03/24/2010 05:38 PM, Nilesh Govindarajan wrote: On 03/24/2010 05:31 PM, Richard Quadling wrote: Hi. I have a scenario where I would _like_ to have multiple constructors for a class. Each constructor has a greater number of parameters than the previous one. e.g. ?php class myClass

Re: [PHP] Properly handling multiple constructors.

2010-03-24 Thread Nilesh Govindarajan
; // and so on } } -- Nilesh Govindarajan Site Server Administrator www.itech7.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php And how would you docblock that? Documentation is important as that describes the intent to the users of the code

Re: [PHP] Top vs. Bottom Posting.

2010-03-24 Thread Nilesh Govindarajan
popping up What is this thread about? -- Nilesh Govindarajan Site Server Administrator www.itech7.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] another question on setting include paths for a project

2010-03-22 Thread Nilesh Govindarajan
. /lib contains others /lib/Common, /lib/Util, etc. So when I say new Common_Form();, it will include /lib/Common/Form.php -- Nilesh Govindarajan Site Server Administrator www.itech7.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] any reason *not* to use PEAR DB module when accessing mysql?

2010-03-19 Thread Nilesh Govindarajan
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Adodb is the same one that is available in Visual Basic. I suggest PDO. Easy to use and portable. -- Nilesh Govindarajan Site Server Administrator

Fwd: Re: [PHP] any reason *not* to use PEAR DB module when accessing mysql?

2010-03-19 Thread Nilesh Govindarajan
logic. Whereas PDO is already compiled one, so it will do the job much much faster. -- Nilesh Govindarajan Site Server Administrator www.itech7.com -- Nilesh Govindarajan Site Server Administrator www.itech7.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Fwd: Re: [PHP] php compile / configure options

2010-03-19 Thread Nilesh Govindarajan
. Thank you. Its unclear what you want. This mailing list is not get ready made things, but to get already made things fixed so that they do not produce errors. -- Nilesh Govindarajan Site Server Administrator www.itech7.com -- Nilesh Govindarajan Site Server Administrator www.itech7.com

Re: Fwd: Re: [PHP] any reason *not* to use PEAR DB module when accessing mysql?

2010-03-19 Thread Nilesh Govindarajan
On 03/20/2010 07:50 AM, Michael A. Peters wrote: Nilesh Govindarajan wrote: On 03/20/2010 02:31 AM, Michael A. Peters wrote: Mattias Thorslund wrote: Robert P. J. Day wrote: (just a warning -- as a relative newbie to PHP, i'll probably have the occasional dumb question. just humour me.) i'm