Re: [PHP] mysqli bind_param and store_result don't work well together

2006-01-13 Thread anirudh dutt
On 1/5/06, Curt Zirzow <[EMAIL PROTECTED]> wrote: > On Wed, Jan 04, 2006 at 12:31:02AM +0530, anirudh dutt wrote: > > hi > > the subject is pretty much what the problem is. > > > > if i use > > $st1 = $sql->stmt_init(); // $sql is a mysqli obj/conn >

[PHP] mysqli bind_param and store_result don't work well together

2006-01-03 Thread anirudh dutt
if i use an sql var in the prepare/bind case as $st1->prepare("select @ck_num:=`num` from `activity` where `id` = ?"); var_dump($rz) is NULL; otherwise it's int(7) any ideas? anirudh -- ]# Anirudh Dutt ...pilot of the storm who leaves no trace like thoughts inside a dream -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] session cookies, domain (host:port) issues

2005-11-24 Thread anirudh dutt
m the domain...similar behaviour to when it's not specified. a comment was posted about this on the setcookie page (http://php.net/manual/en/function.setcookie.php#36202) which i think should be added to the function docs. anirudh -- ]# Anirudh Dutt pilot of the storm who leaves no trace like thoughts inside a dream -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] multiple OR's

2005-03-17 Thread anirudh dutt
p.net/strtolower) on $name. for general cases of OR... On Thu, 17 Mar 2005 12:32:20 +, eoghan <[EMAIL PROTECTED]> wrote: > can do: > if ($name==andrea || $name==john) > > On 17 Mar 2005, at 11:59, AndreaD wrote: > > if ($name==andrea) OR ($name==john) -- ]# Anirudh Dutt

Re: [PHP] Can't figure mail & post out

2005-03-07 Thread anirudh dutt
On Tue, 8 Mar 2005 10:28:32 +0530, Zareef Ahmed <[EMAIL PROTECTED]> wrote: > On Mon, 7 Mar 2005 10:02:32 +0530, anirudh dutt <[EMAIL PROTECTED]> wrote: > > On Mon, 7 Mar 2005 08:37:52 +0530, Zareef Ahmed <[EMAIL PROTECTED]> wrote: > > > Again you are sendi

Re: [PHP] Can't figure mail & post out

2005-03-06 Thread anirudh dutt
that the mail() function is not suitable for larger volumes of email in a loop. This function opens and closes an SMTP socket for each email, which is not very efficient. For the sending of large amounts of email, see the PEAR::Mail, and PEAR::Mail_Queue packages. [/quote] u could also open a pi

Re: [PHP] which class it is?

2005-03-04 Thread anirudh dutt
On Fri, 04 Mar 2005 14:23:29 +0100, Jochem Maas <[EMAIL PROTECTED]> wrote: > anirudh dutt wrote: > > On Fri, 04 Mar 2005 12:37:55 +0100, Jochem Maas <[EMAIL PROTECTED]> wrote: > > > >>anirudh dutt wrote: > >> > >> > >>won't debug

Re: [PHP] which class it is?

2005-03-04 Thread anirudh dutt
trace provides. -- ]# Anirudh Dutt ...pilot of the storm who leaves no trace like thoughts inside a dream -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] which class it is?

2005-03-04 Thread anirudh dutt
On Fri, 04 Mar 2005 12:37:55 +0100, Jochem Maas <[EMAIL PROTECTED]> wrote: > anirudh dutt wrote: > > create a debug function (public) and use get_class. call that in the > > if you are using the 'public' keyword then you have to use php5,. i meant a function li

Re: [PHP] which class it is?

2005-03-04 Thread anirudh dutt
e class, otherwise, use the object aka class instance variable. u may wanna pass by reference and make it const (won't have to use more memory for it...since it's task with it is small and read-only) from http://php.net/get_class [quote] Example 1. Using get_class() name(); ?> The abov

Re: [PHP] Supporting "Cancel"

2005-03-01 Thread anirudh dutt
(whether u keep fetching data from the db or store it in two places: one for the forms, the other in the db as data...i leave to u to decide). modularity: create functions or use classes handle all the tasks. since each page only has to understand/use a subset of those vars (which would usually be

Re: [PHP] problems with several JPEGs in GD2

2005-03-01 Thread anirudh dutt
On Tue, 1 Mar 2005 10:40:59 +, AdamT <[EMAIL PROTECTED]> wrote: > On Tue, 1 Mar 2005 16:06:56 +0530, anirudh dutt <[EMAIL PROTECTED]> wrote: > > i just opened 4 jpg files...dunno about where the header is...coz i > > didn't find anything common at the beg

Re: [PHP] problems with several JPEGs in GD2

2005-03-01 Thread anirudh dutt
are in the file header (eg BM for Bitmap, Gif89a for > GIFs, JFIF for JPEGs...) -- ]# Anirudh Dutt ...pilot of the storm who leaves no trace like thoughts inside a dream -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Like ternary but without the else.

2005-02-28 Thread anirudh dutt
$something && $this = $that; > > ?> this seems to do the trick as per "Like ternary but without the else". for those who want to know, u can even use: $a && print "this only prints if 'a' is non false" but not echo since it doesn't retu

Re: [PHP] getting mac id

2005-02-27 Thread anirudh dutt
cially since u've "been on this mailing list for quite a while" -- ]# Anirudh Dutt ...pilot of the storm who leaves no trace like thoughts inside a dream -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Javascript & PHP

2005-02-27 Thread anirudh dutt
use php to output the javascript code just as u'd do it for html (since the javascript code is IN the html). if ur js is ready: JS_TEXT; ?> the

Re: [PHP] Uploading a File

2005-02-27 Thread anirudh dutt
age I get is: > > Notice: Undefined index: myfile in /www/htdocs/upload.php on line 6 > No Upload. > > I've checked $_FILES['myfile']['error'] and its empty. The whole > $_FILES array is empty. In my php.ini file I have the following: > > ; Whet

Re: [PHP] file upload

2005-01-20 Thread anirudh dutt
On Thu, 20 Jan 2005 13:30:35 +0100, M. Sokolewicz <[EMAIL PROTECTED]> wrote: > what you're doing is server => server > What the akshay wants is server => client > The only not yet posted other options are client => client (which is > essentially impossible with PHP, unless you use the server=>serve

Re: [PHP] file upload

2005-01-20 Thread anirudh dutt
On Thu, 20 Jan 2005 12:26:07 +0100, Marek Kilimajer <[EMAIL PROTECTED]> wrote: > akshay wrote: > > Hi all, > > I hv problem while file upload. > > I hv one server and multiple client. > > I want to upload a file from Server to client. > > how this is possible in PHP > > This is usualy called downl