Re: [PHP] Function with Optional Arguments

2004-07-21 Thread Geethanandh Kandasamy
check this link simple example http://perl.about.com/library/weekly/aa121002c.htm On Wed, 21 Jul 2004 13:39:32 -0500, Alex Hogan <[EMAIL PROTECTED]> wrote: > Hi All, > > How do I write a function with optional arguments? Is it possible in > php? > > function myfunc($First, $Second,[$Third, $F

Re: [PHP] PHP on MAC

2004-07-14 Thread Geethanandh Kandasamy
You should not comment, if you do so you cant start apache at all I wonder why the tutorial say that -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] $_POST v4.3 to v5.0

2004-07-14 Thread Geethanandh Kandasamy
I wonder why do you need try without that On Wed, 14 Jul 2004 23:17:01 +1000, Michael Purdy <[EMAIL PROTECTED]> wrote: > Folks > > I appreciate the answers received previously in relation to my 4,3 to 5.0 question > regarding $_REQUEST $_POST etc.. > > Unfortunately I am still no further ad

Re: [PHP] MYSQL Query results in pages

2004-06-25 Thread Geethanandh Kandasamy
No other way. Use one query to count the total record and then another query for limiting -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] word count on record insertion

2004-06-25 Thread Geethanandh Kandasamy
Did you try calling the word counter function in the onChange event of textbox and truncate the characters/words -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Finding duplicates in arrays

2004-06-24 Thread Geethanandh Kandasamy
use array_unique http://us4.php.net/manual/en/function.array-unique.php On Thu, 24 Jun 2004 10:33:04 -0800, Chris Lott <[EMAIL PROTECTED]> wrote: > > Given two arrays, I want to find the "records" which are duplicates. > What is the simplest approach? And should I use a different approach > to

Re: [PHP] Filesize

2004-06-23 Thread Geethanandh Kandasamy
while(($theFile = readdir($theDir)) !== FALSE){ != not !== On Wed, 23 Jun 2004 15:06:52 -0500, Jay Blanchard <[EMAIL PROTECTED]> wrote: > > Boy you'd think that this would be simple, but I get no filesize with > the following > > for($i = 4; $i < count($arrDirectory); $i++){ >if(is_dir

Re: [PHP] Filesize

2004-06-23 Thread Geethanandh Kandasamy
the file should be in he same folder as that of the php script, otherwise you have to mention the absolute/relative path Geethanandh On Wed, 23 Jun 2004 15:06:52 -0500, Jay Blanchard <[EMAIL PROTECTED]> wrote: > > Boy you'd think that this would be simple, but I get no filesize with > the follow