Re: [PHP] Querying a database for 50 users' information: 50 queries or a WHERE array?

2011-09-13 Thread chetan rane
Hi, There are 2 peoblems with subselect 1. You cant use a limit on the nested select 2. Id the number of elements in the in clause exceeds the subselect buffer you will run into performance issues ans eventually you query will be doomed. Inner joins in,this is the best option for this . You can

Re: [PHP] Converting tables into forms

2009-10-27 Thread chetan rane
Hi Ben The quickest way to this is by using a framework. and the best way i could find was using the yiiframework www.yiiframework.com i could create a basic form with validations in less then 15 minutes. On Wed, Oct 28, 2009 at 6:42 AM, ben...@gmail.com ben...@gmail.com wrote: Does anyone

RE: [PHP] Need unrounded precision

2009-10-12 Thread Chetan Rane
May be this will work $elapsed = 28.56018; $elapsed_rel = (int) 28.56018; $elapsed_deci = $elapsed - $elapsed_rel; $deci = ((int) ($elapsed_deci * 10))/10; $final = $elapsed_rel + $deci; With regards, Chetan Dattaram Rane | Software Engineer | Persistent Systems chetan_r...@persistent.co.in  |

Re: [PHP] Something I don't understand about PHP classes

2009-05-09 Thread chetan rane
Hi you can use the following code ?php class Duck { function __construct() { while(1==1) { // This is an infinite loop } } } echo Hello world...; flush();

RE: [PHP] [php] while loop failure

2009-04-06 Thread Chetan Rane
I think its exceeding the max execution time set in PHP.ini Either set yoru cron to run after every 60 seconds, or change the setting in PHP.ini Chetan Dattaram Rane | Software Engineer | Persistent Systems chetan_r...@persistent.co.in | Cell: +91 94033 66714 | Tel: +91 (0832) 30 79014

RE: [PHP] Cookies/Sessions and how they work

2009-03-09 Thread Chetan Rane
Hi I don't think PHP stores Session information in Cookies. However It dose store the sessionId (a unique alphanumeric string) in cookies. This SessionId is used to identify the requests sent from one user. The Session information is by default stored in the /tmp directory on your system in a

RE: [PHP] Assign 2 values from Mysql to an array

2009-03-06 Thread Chetan Rane
Hi this is similar to what Dollah Ihsan had suggested , however I ave tweeked the getPopulationById function a bit. /** * assume your table structure just like this. * table: users * | id | country| name | population | *

RE: [PHP] Re: Question about template systems

2009-03-03 Thread Chetan Rane
Hi I think what you are looking for is static Header Footer and dynamic content. One way of doing this is by having the front controller pattern For example : consider the following list of files in your application 1000.php 2000.php 1001.php 3000.php In the front controller Pattern we usually

[PHP] Strange charecters

2009-03-03 Thread Chetan Rane
Hi gang I am using ob_start() in my application. However I am getting this error about headers already sent. I have put ob_start at the beginning of the script. I think this has to do something with Unicode. Can anyone explain why this happens. And whats the solution for this Chetan

RE: [PHP] Newbie problem: Php script not running in browser.

2008-08-06 Thread Chetan Rane
Hi You need to check if your Apache is up and running do the following Right click on My Computer and select manage Next click on Services and Applications After that Click on Services And check if Apache is running Chetan Dattaram Rane | Software Engineer | Persistent Systems [EMAIL

RE: [PHP] Newbie problem: Php script not running in browser.

2008-08-06 Thread Chetan Rane
Message- From: V S Rawat [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 06, 2008 7:22 PM To: Chetan Rane Subject: Re: [PHP] Newbie problem: Php script not running in browser. On 8/6/2008 4:20 PM India Time, _Chetan Rane_ wrote: Hi You need to check if your Apache is up and running do

RE: [PHP] unset in foreach breaks recrusion

2008-06-30 Thread Chetan Rane
yes Chetan Dattaram Rane | Software Engineer | Persistent Systems [EMAIL PROTECTED] | Cell: +91 94033 66714 | Tel: +91 (0832) 30 79014 Innovation in software product design, development and delivery- www.persistentsys.com -Original Message- From: Per Jessen [mailto:[EMAIL PROTECTED]

RE: [PHP] class as default property

2008-06-23 Thread Chetan Rane
You can use a contructor in this case ?php class Foo { } class Bar { function __construct() { public $f = 'SomeFoo'; } } ? But this does not work: ?php class Foo { } class Bar { function __construct() { public $f = new Foo(); } } ?

RE: [PHP] mysql_pconnect issue

2008-05-12 Thread Chetan Rane
Hi The host name is localhost, username: root, and the password is blank . If you have selected the option to allow anonymous login during installation you can even give the user name and password dboth blank. It will log you in as an anonymous user. Chetan Dattaram Rane Software Engineer

[PHP] tracking Mials Which were bounced.

2008-05-12 Thread Chetan Rane
Hi All I am using a PHP Mailer to send mass mails. How can I Identify how mails have bounced. Chetan Dattaram Rane Software Engineer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Get array as string --Help

2008-05-09 Thread Chetan Rane
What is the format you want it to be You can use JSON_encode(array()); To get into a text like representation Chetan Dattaram Rane Software Engineer -Original Message- From: Shelley [mailto:[EMAIL PROTECTED] Sent: Friday, May 09, 2008 3:11 PM To: PHP General list Subject: [PHP]

RE: [PHP] Get array as string --Help

2008-05-09 Thread Chetan Rane
Yet another option is use serialize(array()) Chetan Dattaram Rane Software Engineer -Original Message- From: Shelley [mailto:[EMAIL PROTECTED] Sent: Friday, May 09, 2008 3:11 PM To: PHP General list Subject: [PHP] Get array as string --Help Hi all, If I have an array like this:

RE: [PHP] Get array as string --Help

2008-05-09 Thread Chetan Rane
Yea but implde will loose the Keys Chetan Dattaram Rane Software Engineer -Original Message- From: Thiago Pojda [mailto:[EMAIL PROTECTED] Sent: Friday, May 09, 2008 5:30 PM To: 'Zoltán Németh'; 'Chetan Rane' Cc: 'Shelley'; 'PHP General list' Subject: RES: [PHP] Get array as string

[PHP] the Y2K38 BUG

2008-05-06 Thread Chetan Rane
Hi all Have guys heard of the the Y2K38 Bug more details are on this link http://www.codeproject.com/KB/bugs/The-Year-2038-Bug.aspx Can there be a possible solution. As the system which I am developing for my client uses Unix timestamp. This might effect my application in the future

[PHP] eval uquestion

2008-03-19 Thread chetan rane
HI All I have the follwoing code function cleanufx($str){ return ucase($str); } $value=xyz; $var =ufx; $fn=clean$var($value); $val =eval($fn;); echo $val; can anyone tell me what is wrong in this as the eval is returning 0 (false); -- Have A pleasant Day Chetan. D. Rane

Re: [PHP] Curl Javascript

2008-03-11 Thread chetan rane
HI i think it is a bit difficult. CURL can actually help you get Response on a cross Domain platform. Javascript dosenot. Espesially Ajax is not cross domain for security reasons. On Wed, Mar 12, 2008 at 3:40 AM, William Piper [EMAIL PROTECTED] wrote: I have been using php's curl for quite a

[PHP] SESSIOn when cookies are disabled

2008-03-07 Thread chetan rane
Hi all how can we manage session variables when cookies are disabled. -- Have A pleasant Day Chetan. D. Rane Location: India Contact: +91-9986057255 other ID: [EMAIL PROTECTED] [EMAIL PROTECTED]

Re: [PHP] SESSIOn when cookies are disabled

2008-03-07 Thread chetan rane
Thank you very much its worked great!!! On Fri, Mar 7, 2008 at 11:50 PM, Bastien Koert [EMAIL PROTECTED] wrote: Date: Fri, 7 Mar 2008 23:45:51 +0530 From: [EMAIL PROTECTED] To: php-general@lists.php.net Subject: [PHP] SESSIOn when cookies are disabled Hi all how can we manage session

Re: [PHP] PHP on Windows

2008-03-01 Thread chetan rane
hi try XAMMP from xampp.org it is packaged with apace PHp mysql and filezilla On Sat, Mar 1, 2008 at 9:51 PM, Andrés Robinet [EMAIL PROTECTED] wrote: -Original Message- From: Erik SJMN [mailto:[EMAIL PROTECTED] Sent: Friday, February 29, 2008 9:41 PM To:

Re: [PHP] dont print echo

2008-02-28 Thread chetan rane
I think that will solve your problem ? if(isset($_POST['submit'])){ $folder = 'pictures; $load = copy($_FILES['file']['tmp_name'] , $folder . '/' . $_FILES ['file']['name']); if ( $load ) { echo Picture upload!; } else {

[PHP] Multiple Inheritance

2008-02-27 Thread chetan rane
Hi All Dose anyone know how to implement multiple inheritance in PHP 5. Interfaces dosent work . I have already Tried it. -- Have A pleasant Day Chetan. D. Rane Location: India Contact: +91-9986057255 other ID: [EMAIL PROTECTED] [EMAIL PROTECTED]

Re: [PHP] Multiple Inheritance

2008-02-27 Thread chetan rane
: On Wed, Feb 27, 2008 at 12:05 PM, chetan rane [EMAIL PROTECTED] wrote: Hi All Dose anyone know how to implement multiple inheritance in PHP 5. Interfaces dosent work . I have already Tried it. the idea in a single inheritance language is to implement 'multiple inheritance

Re: [PHP] Session and Multi Server Architecture

2008-02-11 Thread chetan rane
Hi all can you please let me know where i can find about Mem cache. On Feb 11, 2008 11:11 PM, Nathan Nobbe [EMAIL PROTECTED] wrote: On Feb 11, 2008 12:33 PM, chetan rane [EMAIL PROTECTED] wrote: HI All Can any one tell me what will be the best way to maintain session information

[PHP] Session and Multi Server Architecture

2008-02-11 Thread chetan rane
HI All Can any one tell me what will be the best way to maintain session information on a Multi Server Architecture i.e a Web Cluster. -- Have A pleasant Day Chetan. D. Rane Location: India Contact: +91-9986057255 other ID: [EMAIL PROTECTED] [EMAIL PROTECTED]

Re: [PHP] Resetting a session variable

2008-02-03 Thread chetan rane
Hi there are 2 functions session_unset('Key'); session_destroy(); please find them in the manual. i think they are the 2 used for setting and usetting the session. On Feb 4, 2008 1:14 AM, Feris Thia C. [EMAIL PROTECTED] wrote: Resetting all session variables or one of those session vars ?

Re: [PHP] __sleep() strange behavior with file writting and SESSION using

2007-11-21 Thread chetan rane
__sleep() as session serializes objects before storing them Proof is that done! is echoed. Step by step debugging also prove that , the only thing is that file_put_contents, doesn't execute, but returns a value... 2007/11/20, chetan rane [EMAIL PROTECTED]: This aint a bug because __sleep

Re: [PHP] __sleep() strange behavior with file writting and SESSION using

2007-11-20 Thread chetan rane
This aint a bug because __sleep is called only when you serialize an object and not when you assign it to a session Variable; On Nov 21, 2007 12:21 AM, Julien Pauli [EMAIL PROTECTED] wrote: Consider that very simple code, that runs on PHP 5.2.5 onto a Windows machine : ?php class a {

[PHP] Magis_qoutes + linux + smarty

2007-07-05 Thread chetan rane
Hi Guys I have a Problem wioth Smarty i have set the MAGIC_QOUTES_GPC =ON and the templates are not getting created. however when it is off ther created and everything is working fine. thsi happens only on linux. On windows it has no problem -- Have A plesant Day Chetan. D. Rane Location:

[PHP] Peristent Listen over an HTTP connection

2007-02-04 Thread chetan rane
HI all I have a small issue to be handled here i want to persistently moniter the HTTP stream from a Client Browser. How do i accomplish it -- Have A plesant Day Chetan. D. Rane Location: Pune , India Contact: +91-9890792762 otherID: [EMAIL PROTECTED] [EMAIL PROTECTED]

Re: [PHP] Peristent Listen over an HTTP connection

2007-02-04 Thread chetan rane
connection but use the existing TCP connection. On 2/4/07, Stut [EMAIL PROTECTED] wrote: chetan rane wrote: I have a small issue to be handled here i want to persistently moniter the HTTP stream from a Client Browser. How do i accomplish it I'm not sure what you mean by 'persistently monitor

Re: [PHP] Peristent Listen over an HTTP connection

2007-02-04 Thread chetan rane
it clear. On 2/4/07, Stut [EMAIL PROTECTED] wrote: chetan rane wrote: i want to write a script where , when ny client requests come i read the stream and then process it here is the exact steps when the user first initiates i create a session and establish a TCP connection second: when

[PHP] Jabber conection manager

2007-02-03 Thread chetan rane
HI all i want to develop a Jabber connection manage its role will be 1. accept HTTp request from the Client 2. establish connection with a jabber server using TCp 3. and later start the instant mechanism between them has any one worked on this please let me know how to do it -- Have A

Re: [PHP] is there socket.so file?

2007-02-03 Thread chetan rane
HI Yeni I had similar problems i recommmend using the following fsockopen() instead open_socket() it wprks fine on both On 2/3/7, Yeni Setiawan [EMAIL PROTECTED] wrote: Hi there, I'm currently writing an IRC bot using php (CLI) and get a little problem. For windows version, I need to

[PHP] accepting POST variables using CURL

2007-02-02 Thread chetan rane
HI al i tried curl to access HTTPS pages but how do i get the POST variables been passed to me . here is teh exact thing which i want. i have a HTML page when i submit the form i want ot read all teh POST data using HTTPS. I know its possible using CURL but dont exactly know how to do it --

Re: [PHP] Year

2007-02-02 Thread chetan rane
HI Dan try this this should work 100%; echo select; for ($y=0;$y=10;$y++) { $years=date('Y')+$y; $short_years=date('y')+$y; printf(option value=\%02d\%d/option,$short_years,$years); } echo /select; On 2/2/07, Dan Shirah [EMAIL PROTECTED] wrote: Hello all, I am trying to populate a dropdown

[PHP] Pwersistent Queue

2007-01-31 Thread chetan rane
Hi everyone I aneed top maintain a persisistent Queue can anyone help. -- Have A plesant Day Chetan. D. Rane Location: Pune , India Contact: +91-9890792762 otherID: [EMAIL PROTECTED] [EMAIL PROTECTED]

[PHP] HTTPS

2007-01-28 Thread chetan rane
hi everyone i am writing a progrram for a Jabber COnnection manager. I want to access the client XML using HTTPS. do any one know a way to so it Have any one the -- Have A plesant Day Chetan. D. Rane Location: Pune , India Contact: +91-9890792762 otherID: [EMAIL PROTECTED] [EMAIL