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

2010-03-19 Thread Nilesh Govindarajan
http://twitter.com/rpjday -- 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 Adminis

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

2010-03-19 Thread Nilesh Govindarajan
MDB2's code along with your program 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 (

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

2010-03-19 Thread Nilesh Govindarajan
suggestions welcome . 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

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.)

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

2010-03-22 Thread Nilesh Govindarajan
__) . '/lib' . PATH_SEPARATOR . get_include_path()); Then I load the autoloader from /lib/autoload.php at the time of bootstrap. /lib contains others /lib/Common, /lib/Util, etc. So when I say "new Common_Form();", it will include /lib/Common/Form.php -- Nilesh Govindar

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

2010-03-24 Thread Nilesh Govindarajan
t, coz quite frankly i have my doubts 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
Even recent PostgreSQL offer much 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. :)

Re: [PHP] Properly handling multiple constructors.

2010-03-24 Thread Nilesh Govindarajan
. 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. Don't give specif

Re: [PHP] Properly handling multiple constructors.

2010-03-24 Thread Nilesh Govindarajan
On 03/24/2010 05:58 PM, Richard Quadling wrote: On 24 March 2010 12:08, 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

Re: [PHP] Top vs. Bottom Posting.

2010-03-24 Thread Nilesh Govindarajan
ow everything about the problem and then answer, instead of just 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] Temporary failure in name resolution - fsockopen()

2010-03-25 Thread Nilesh Govindarajan
address provided it has a static IP (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] Please guide in selection of Framework: according to your experience

2010-03-26 Thread Nilesh Govindarajan
und it a little 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] Adding Time

2010-03-27 Thread Nilesh Govindarajan
as checked by ESET NOD32 Antivirus. http://www.eset.com Add time in Unix Timestamps. Then format 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 Adminis

Re: [PHP] bug tracking system

2010-03-28 Thread Nilesh Govindarajan
p;ie=UTF-8&q=php+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 mailto:li...@itech7.com>> wrote: On 03/28/2010 06:58 PM, Andr

Re: [PHP] Converting funky characters

2010-03-28 Thread Nilesh Govindarajan
ll convert 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
g 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] 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 Evansmailto:s...@bigskypenguin.com>>

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 t

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

2010-03-29 Thread Nilesh Govindarajan
mall apps, but when it comes to complex apps, 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

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

2010-03-31 Thread Nilesh Govindarajan
i and copied this file and "php5ts.dll" to "Windows\System32" > catalog. > This all I can do. > I use Windows XP Services Pack 2 or 3 (2 computers). > > Henryk. I think you need to put the PHPIniDir directive after the LoadModule one. Try it out. -- Nilesh

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

2010-03-31 Thread Nilesh Govindarajan
On 03/31/10 19:14, Tommy Pham wrote: On Wed, Mar 31, 2010 at 3:50 AM, Nilesh Govindarajan wrote: Any replies I send to PHP-INSTALL list, I get the follow response: Any ideas why this is happening ? Original Message Subject:Re: [PHP-INSTALL] installation problem with

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

2010-03-31 Thread Nilesh Govindarajan
On 03/31/10 21:43, Daniel Brown wrote: On Wed, Mar 31, 2010 at 06:50, Nilesh Govindarajan wrote: Any replies I send to PHP-INSTALL list, I get the follow response: Any ideas why this is happening ? Original Message Subject:Re: [PHP-INSTALL] installation problem with

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

2010-03-31 Thread Nilesh Govindarajan
--with-apxs2 --disable-cgi --disable-short-tags --disable-ipv6 --without-sqlite3 --with-mysql --with-pdo-mysql --without-pdo-sqlite --enable-sockets --without-sqlite --with-gnu-ld) Thanks I think you need to check your PATH environment variable. Add the directory to it where your PHP i

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

2010-04-01 Thread Nilesh Govindarajan
te: PHP 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

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

2010-04-01 Thread Nilesh Govindarajan
p5.so with this one. If phpinfo() from apache shows you a different version then libphp5 uses the binary else not. As per common logic, libphp5 embeds the php interpreter into apache, hence it'd not make sense to say that it needs the binary. -- Nilesh Govindarajan Site & S

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

2010-04-01 Thread Nilesh Govindarajan
suggested 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 mo

Re: [PHP] str_replace help

2010-04-02 Thread Nilesh Govindarajan
= str_replace(chr(10),"\n",$value) 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
es; $toemails = (array)$toemails; } 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 मेरा भारत महान ! मम भारत

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

2010-04-02 Thread Nilesh Govindarajan
this" } :) Yeah. But this feature 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 मेरा भारत महान ! मम भारत: महत्तम भवतु ! -- P

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

2010-04-03 Thread Nilesh Govindarajan
ds, Nathan We don't want to decrease the performance, do we ? 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] $_SERVER['PHP_AUTH_USER'] has gone

2010-04-04 Thread Nilesh Govindarajan
d way to access the HTTP Basic Auth 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

Re: [PHP] convert a string into an array

2010-04-05 Thread Nilesh Govindarajan
tter.com/m_elensule -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Virus maybe? Thanks, Ash http://www.ashleysheridan.co.uk Now where does a virus come in here LOL ? -- Nilesh Govindarajan Site & Server Administrator www.i

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

2010-04-06 Thread Nilesh Govindarajan
"/usr/lib/qt-3.3/lib" ["LESSOPEN"]=> string(24) "|/usr/bin/lesspipe.sh %s" ["G_BROKEN_FILENAMES"]=> string(1) "1" ["_"]=> string(15) "/usr/sbin/httpd" On Sun, Apr 4, 2010 at 10:54 PM, Daniel P. Brown wrote: Sorry for the

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 (

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] 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 मेरा भारत महान ! मम भारत: महत्तम

[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

Re: [PHP] Getting root privs

2010-04-29 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

Re: [PHP] A stupid question about classes

2010-05-01 Thread Nilesh Govindarajan
or. Ultimately its the same thing, __construct() is called automatically, 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] Need login suggestions

2010-05-02 Thread Nilesh Govindarajan
e past, and would you be willing to give 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 मेर

Re: [PHP] Need login suggestions

2010-05-02 Thread Nilesh Govindarajan
of front work to get those keys out. For this particular project, we want 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 Govin

Re: [PHP] Need login suggestions

2010-05-03 Thread Nilesh Govindarajan
http://sumoam.sourceforge.net 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 मेरा भारत महान ! मम भारत: महत्तम भव

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.i

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] securing a custom app

2010-05-22 Thread Nilesh Govindarajan
Dave. Since you're 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 (निलेश गोविंदराजन) T

Re: [PHP] securing a custom app

2010-05-23 Thread Nilesh Govindarajan
sly, because it is not done 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] batteling with mod_fcgi in virtualmin virtual host

2010-05-26 Thread Nilesh Govindarajan
c_html/vtigercrm/include/utils/utils.php on line > 1000, referer: > http://www.linuxpro.co.nz/vtigercrm/index.php?action=index&module=Home > > apart from changing logging levels how should I resolve these issues. > > Thanks > > This has nothing to do with mod_fcgid. Its the

Fwd: [PHP] One more time about regexes

2010-05-26 Thread Nilesh Govindarajan
-- Forwarded message -- From: Nilesh Govindarajan Date: Thu, May 27, 2010 at 8:40 AM Subject: Re: [PHP] One more time about regexes To: Andre Polykanine On Thu, May 27, 2010 at 3:33 AM, Andre Polykanine wrote: > Hello everyone, > > Sorry, but I'm asking one mo

Re: [PHP] get classname without namespace

2010-05-29 Thread Nilesh Govindarajan
> You need to extract that using strrpos and substr $name = substr($fullname_with_namespace, strrpos($fullname_with_namespace, '/')); -- Nilesh Govindarajan Facebook: nilesh.gr Twitter: nileshgr Website: www.itech7.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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 Go

Re: [PHP] php accelorator

2010-06-02 Thread Nilesh Govindarajan
n) for malware. > > I'm not sure who's feeding this disinformation to the public sector, but > I could take a few guesses... > > Thanks, > Ash > http://www.ashleysheridan.co.uk > > > Yeah Yeah, I know some such samplepieces. Such people are usually found in very rich households, at least in my country (India). Recently my 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: 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/unsub.php

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

2010-06-03 Thread Nilesh Govindarajan
t; To unsubscribe, visit: http://www.php.net/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 (ht

Re: [PHP] Quick Question

2010-06-13 Thread Nilesh Govindarajan
t; TIA > > 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.m

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

2010-07-19 Thread Nilesh Govindarajan
ou veery much. > > -- > With best regards, > Shelley Shyan > http://phparch.cn > Your set up 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. --

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

2010-07-20 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, Niles

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

2010-07-21 Thread Nilesh Govindarajan
t; > > -- > PHP General Mailing 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 Tw

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

2010-07-21 Thread Nilesh Govindarajan
On Wed, Jul 21, 2010 at 12:39 PM, Tom Sparks wrote: > --- On Wed, 21/7/10, Nilesh Govindarajan wrote: >> On Wed, Jul 21, 2010 at 8:49 AM, Tom >> Sparks >> wrote: >> > How do I take the output from a command line program >> and update a MYSQL database with i

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
base64_decode($file['file']); > > > So, mime looks ok, but still... not working :-( > > > > > -- > mob: + 46 70 044 9432 > web: http://novakovicdusan.com > > Please consider the environment before printing this email. > Are you sure that you need Co

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.co

Re: [PHP] ErrorDocument 500 and PHP

2011-01-03 Thread Nilesh Govindarajan
, so php outputs that error 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

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

2011-01-06 Thread Nilesh Govindarajan
s not seem 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/ni

Re: [PHP] 'make test' failures

2011-01-14 Thread Nilesh Govindarajan
'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 Face

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] which php file is sending emails?

2011-01-15 Thread Nilesh Govindarajan
*.php") 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, v

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

2011-01-15 Thread Nilesh Govindarajan
On 01/15/2011 11:13 PM, Daniel Brown wrote: On Sat, Jan 15, 2011 at 12:21, Nilesh Govindarajan wrote: On 01/15/2011 10:22 PM, Jim Lucas wrote: Um, I use OpenBSD and that command gives me an error or two... $ grep -l mail $(find -name *.php) find: unknown option -- n find: unknown option

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

2011-01-15 Thread Nilesh Govindarajan
On 01/16/2011 12:45 AM, Daniel Brown wrote: On Sat, Jan 15, 2011 at 13:51, Nilesh Govindarajan wrote: hahaha, that command wasn't broken. It works on Linux. But certain commands have to be changed to work on *BSD. For example, chmod u=rwx,g=rwx,o= directory -R will work on linux, but

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 Govindarajan wrote: On 01/15/2011 10:22 PM, Jim Lucas wrote: Um, I use OpenBSD and that command gives me an error or

Re: [PHP] email address syntax checker

2011-01-20 Thread Nilesh Govindarajan
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.

Re: [PHP] email address syntax checker

2011-01-21 Thread Nilesh Govindarajan
address, but I doubt 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/nileshg

Re: [PHP] Installing PEAR

2011-01-25 Thread Nilesh Govindarajan
package as well in the repos. Check for them. -- 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://www.php.net/unsub.php

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

2011-02-13 Thread Nilesh Govindarajan
; > flj > You are probably misspelling something, just tried out the code like this: t.php: require_once "t1.php"; $args = array('f', 'g', 'h'); t1::fn($args); t1.php: class t1 { public static function fn($a) { var_dump($a); } } And this gives

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

2011-06-27 Thread Nilesh Govindarajan
gt; > Any hints are appreciated, > > -G PHP in CGI sucks 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 + suex

Re: [PHP] header function odd behavior

2011-06-27 Thread Nilesh Govindarajan
e I always use setcookie(), but something tells me that this has something to do with output buffering 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
> even help. im 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

Re: [PHP] dependency check

2011-07-22 Thread Nilesh Govindarajan
storing all the files an array/list and then finding 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

Re: [PHP] dependency check

2011-07-22 Thread Nilesh Govindarajan
cripting if your filenames have them, quite rare with self created applications, but you can't say, and hence I suggested python/php script 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] Segmentation Fault

2011-07-23 Thread Nilesh Govindarajan
ew server. Try recompiling php, odbc. You wouldn't be able 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] Path question.

2011-07-28 Thread Nilesh Govindarajan
ve, because it uses backward slashes 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] PHP sessions expiring early

2011-09-07 Thread Nilesh Govindarajan
onds, then this will not work. You need to increase 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

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 To: shahrzad khorrami On Sat 17 Sep 2011 04:54:13 PM IST, shahrzad khorrami wrote

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

2011-09-22 Thread Nilesh Govindarajan
l, but I'm not sure about it): if(preg_match('(.*)^[A-Za-z0-9]+', $_POST['username']) !== 0) { // 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
s off so I wanna ask how I can fix this. Oh damn, I just forgot 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
he key thing to note there is that you can treat the string like it's an > array to loop through it. For more information about this, go here: > > <http://us2.php.net/manual/en/language.types.string.php> > > and search the page for the phrase "String access and modific

Re: [PHP] detect file upload time

2011-10-04 Thread Nilesh Govindarajan
nce after you've saved the file 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] Compile PHP with MySQLi (With MySQL on a remote server)

2011-10-13 Thread Nilesh Govindarajan
nstalled on a different server? > > Can I download a precompile mysqli anywhere? The PHP version is 5.1.49 > as noted earlier. > > Thanks in Advance, > > Nick > You don't need the mysql server to compile mysql{,i} modules, the client library is enough. Any special r

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

2011-10-13 Thread Nilesh Govindarajan
> on the system. And thus we 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. >

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

2011-11-23 Thread Nilesh Govindarajan
? > > Thx and greetings, > Daniel > > > How much did you set 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] Common way to store db-password of open session?

2011-11-29 Thread Nilesh Govindarajan
ata (for mischevious stuff) and check if username & password query works out successfully. If it does, store a session 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

Re: [PHP] Printing

2012-01-05 Thread Nilesh Govindarajan
gt; outdated?  Is there some other chapter in the manual  I should read?  I only > looked in "Printer". > > FWIW - I'm running windows xp on my 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

Re: [PHP] Implicit FTPS

2012-01-05 Thread Nilesh Govindarajan
discuss 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 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

Re: [PHP] Printing

2012-01-05 Thread Nilesh Govindarajan
On Thu, Jan 5, 2012 at 9:16 PM, Jim Giner 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" > > To: "

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

2012-01-06 Thread Nilesh Govindarajan
alled, try: "locate vB_ProfileBlock" > 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' -- Nilesh Govindarajan http://nileshgr.com -- PHP Gen

  1   2   >