Re: [PHP] Re: Stop PHP execution on client connection closed

2011-09-13 Thread vikash . iitb
On 13 September 2011 13:05, Marco Lanzotti wrote: > Il 12/09/2011 21:32, Al ha scritto: > > See http://us2.php.net/manual/en/function.connection-aborted.php > > As I wrote, PHP doesn't detect that client aborted connection until it > send some data. > During query the script doesn't send any data

Re: [PHP] PHP sessions expiring early

2011-09-07 Thread vikash . iitb
Just confirm once that you are not calling session_destroy somewhere. Thanks, Vikash Kumar -- http://vika.sh On 7 September 2011 16:46, Richard Quadling wrote: > On 7 September 2011 11:20, Paul Waring wrote: > > Can anyone suggest things which I could try? I cannot work out why this > > prob

Re: [PHP] Path question.

2011-07-28 Thread vikash . iitb
On 28 July 2011 18:06, Nilesh Govindarajan wrote: > On 07/28/2011 05:43 PM, Paul Halliday wrote: > > I have a few scripts that use "../location/file" > > > > Is this interpreted differently on some systems? > > > > Thanks. > > > Use __DIR__."../location/file" otherwise files using these script c

Re: [PHP] How to implement Authentication of UNIX users?

2011-06-27 Thread vikash . iitb
This may help: http://php.net/manual/en/book.ssh2.php Thanks, Vikash Kumar -- http://vika.sh On 27 June 2011 21:07, With No Name wrote: > Hello, > > I try to code a Webinterface to access my Server @home which has a > couple of UNIX users. > > However, I like to have only one website where use

Re: [PHP] Ways to attend usergroups meeting

2010-12-21 Thread vikash . iitb
Thanks for the link. I already been through the given link. But, it is filled with inactive and non-responsive groups. I was hoping to get in touch with an active one. Thanks, Vikash Kumar -- http://vika.sh On 21 December 2010 21:00, Daniel Brown wrote: > On Tue, Dec 21, 2010 at 05:35, wrot

[PHP] Ways to attend usergroups meeting

2010-12-21 Thread vikash . iitb
Hi, I want to know if there is a central repo of all the php usergroups and its activities. wiki.php.net page is empty on this topic. Anyone aware of a php group meetings in Mumbai, India? If not, how to go about starting it? Thanks, Vikash Kumar -- http://vika.sh

Re: [PHP] Is there a way to write to the php error log from a php script?

2010-10-22 Thread vikash . iitb
+1 for log4php. (http://logging.apache.org/log4php/index.html) I use it regularly and love it. Thanks, Vikash Kumar -- http://vika.sh On 23 October 2010 08:35, Tommy Pham wrote: > > -Original Message- > > From: Tamara Temple [mailto:tamouse.li...@gmail.com] > > Sent: Friday, October

[PHP] Unit testing in PHP

2010-06-17 Thread vikash . iitb
Hi, What do you use for unit testing in PHP? phpUnit, SimpleTest or any other? Thanks, Vikash Kumar -- http://vika.sh

Re: [PHP] Determining Top # from MySQL

2010-04-10 Thread vikash . iitb
If you want to take top 5: SELECT num, COUNT( num ) as c FROM table GROUP BY num order by c desc limit 5 Thanks, Vikash Kumar -- http://vika.sh On Sun, Apr 11, 2010 at 8:07 AM, Dan Joseph wrote: > Eh, he's off topic, but we've talked plenty SQL on here before... > > SELECT num, COUNT( num ) F

Re: [PHP] GetElementByClass?

2010-04-03 Thread vikash . iitb
If you are open to use javascript then a js library like jQuery may help in selecting all elements from a particular class. $(".clasName") Thanks, Vikash Kumar -- http://vika.sh On Sat, Apr 3, 2010 at 8:46 PM, Piero Steinger wrote: > On 03.04.2010 16:29, tedd wrote: > > Hi gang: > > > > Here

Re: [PHP] GetElementByClass?

2010-04-03 Thread vikash . iitb
I use this: http://simplehtmldom.sourceforge.net/ Check it out. Thanks, Vikash Kumar -- http://vika.sh On Sat, Apr 3, 2010 at 8:28 PM, Ashley Sheridan wrote: > On Sat, 2010-04-03 at 10:29 -0400, tedd wrote: > > > Hi gang: > > > > Here's the problem. > > > > I have 184 HTML pages in a director

Re: [PHP] ssh2_connection for Web service

2010-03-24 Thread vikash . iitb
It may be a permission problem. When you try "php index.php", then its 'your-username' is trying to SSH. But when you run the script through webserver, the user 'apache' is trying to SSH. Can you just check this once. Thanks, Vikash Kumar -- http://vika.sh On Thu, Mar 25, 2010 at 2:28 AM, Le-s

Re: [PHP] how to upload large file ( bigger than 1G) with PHP

2010-03-12 Thread vikash . iitb
Hi, You can always change php.ini settings to allow larger file uploads. *upload_max_filesize = 2M* Increase it to fit your need. You may need to change this as well: *post_max_size = 10M * Let me know if it works for you. :) -- Regards, Vikash Kumar -- http://vika.sh On Fri, Mar 12, 2010 at

Re: [PHP] SMTP Local development to Send email in PHP; Windows Platform/ XP with no IIS

2010-01-15 Thread vikash . iitb
You can install any smtp server on your windows machine and the mail() will work with default settings. You can check this out: http://www.softstack.com/freesmtp.html Thanks, Vikash Kumar http://vika.sh On Fri, Jan 15, 2010 at 5:30 PM, Gaurav Kumar wrote: > Sorry Kim, don't want to use phpmail

Re: [PHP] IDE -> SVN -> dev server -> live server

2010-01-14 Thread vikash . iitb
I do not see the reason why you would need an absolute URL like var base_url = ' http://mysite.com' in your javascript code. If only this is giving you problems, use: *window.location.hostname* to get the hostname in javascript. --- Vikash Kumar http://vika.sh On Thu, Jan 14, 2010 at 9:40 PM, J

Re: [PHP] parse date field

2010-01-14 Thread vikash . iitb
Use strttotime() function. This will work as intended. $mydata->birthday = strtotime("2007-02-13"); #What month is it? echo date("F", $mydata->birthday); #What year is it? echo date("Y", $mydata->birthday); - -- Vikash Kumar http://vika.sh On Thu, Jan 14, 2010 at 3:31 PM, John Taylor-Johnston <

Re: [PHP] php mail() function and ezmlm

2010-01-13 Thread vikash . iitb
Can you send it to other email addresses? -- Vikash Kumar http://vika.sh On Thu, Jan 14, 2010 at 12:16 PM, Bob Strasser wrote: > I'm having trouble sending info from a form to the list-subscr...@domain > Does anyone know why ezmlm doesn't recognize the mail() function? > >