RE: [PHP] one-liner with strtolower and array_walk()?

2006-03-29 Thread Shaunak Kashyap
Yes, it is possible. You just need a slight modification to your code.
Try this:

[code]

$uppercase = array(ONE, TWO);
$uppercase = array_map(strtolower, $uppercase);
print_r($uppercase);

[/code]

Shaunak Kashyap
 
Senior Web Developer
WPT Enterprises, Inc.
5700 Wilshire Blvd., Suite 350
Los Angeles, CA 90036
 
Direct: 323.330.9870
Main: 323.330.9900
 
www.worldpokertour.com
 
Confidentiality Notice:  This e-mail transmission (and/or the
attachments accompanying) it may contain confidential information
belonging to the sender which is protected.  The information is intended
only for the use of the intended recipient.  If you are not the intended
recipient, you are hereby notified that any disclosure, copying,
distribution or taking of any action in reliance on the contents of this
information is prohibited. If you have received this transmission in
error, please notify the sender by reply e-mail and destroy all copies
of this transmission.

 -Original Message-
 From: Marten Lehmann [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, March 29, 2006 9:36 AM
 To: php-general@lists.php.net
 Subject: [PHP] one-liner with strtolower and array_walk()?
 
 Hello,
 
 is it possible to write a one-liner like this:
 
 $uppercase = array(ONE, TWO);
 array_walk($uppercase, strtolower);
 print_r($uppercase);
 
 I don't want to do a foreach-loop on each element, putting the
lowercase
 in a new array and returning this. Is there a nicer way?
 
 Regards
 Marten
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] PHP installation determination

2006-03-28 Thread Shaunak Kashyap
Try using phpinfo().

http://us2.php.net/manual/en/function.phpinfo.php

In particular you want to pay attention to the $_SERVER variables
(search for PHP Variables in the phpinfo() output).

Shaunak Kashyap
 
Senior Web Developer
WPT Enterprises, Inc.
5700 Wilshire Blvd., Suite 350
Los Angeles, CA 90036
 
Direct: 323.330.9870
Main: 323.330.9900
 
www.worldpokertour.com
 
Confidentiality Notice:  This e-mail transmission (and/or the
attachments accompanying) it may contain confidential information
belonging to the sender which is protected.  The information is intended
only for the use of the intended recipient.  If you are not the intended
recipient, you are hereby notified that any disclosure, copying,
distribution or taking of any action in reliance on the contents of this
information is prohibited. If you have received this transmission in
error, please notify the sender by reply e-mail and destroy all copies
of this transmission.


 -Original Message-
 From: Bronislav Klucka [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 28, 2006 10:08 AM
 To: php-general@lists.php.net
 Subject: [PHP] PHP installation determination
 
 Hi,
 I'm using 2 copies of PHP
 1/ on local computer for developing
 2/ on web server regular running webs
 
 Is there any way to determine what PHP i'm using? Where am I?. Can I
 somehow define my own constant in php.ini?
 
 Brona
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] word matrix

2006-03-28 Thread Shaunak Kashyap
Would you also want the following combinations?

word1 word3 word2
word2 word1 word3
word2 word3 word1
word3 word1 word2
word3 word2 word1

Shaunak Kashyap
 
Senior Web Developer
WPT Enterprises, Inc.
5700 Wilshire Blvd., Suite 350
Los Angeles, CA 90036
 
Direct: 323.330.9870
Main: 323.330.9900
 
www.worldpokertour.com
 
Confidentiality Notice:  This e-mail transmission (and/or the
attachments accompanying) it may contain confidential information
belonging to the sender which is protected.  The information is intended
only for the use of the intended recipient.  If you are not the intended
recipient, you are hereby notified that any disclosure, copying,
distribution or taking of any action in reliance on the contents of this
information is prohibited. If you have received this transmission in
error, please notify the sender by reply e-mail and destroy all copies
of this transmission.


 -Original Message-
 From: Mike Dunlop [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 28, 2006 11:36 AM
 To: Chris
 Cc: php-general@lists.php.net
 Subject: Re: [PHP] word matrix
 
 Sure Chris.
 
 $words = array(word1,word2,word3);
 
 I want this:
 
 $result = array(
   word1,
   word2,
   word3,
   word1 word2,
   word1 word3,
   word2 word1,
   word2 word3,
   word3 word1,
   word3 word2,
   word1,word2,word3
 );
 
 
 Thanks - MD
 
 
 
 
 On Mar 27, 2006, at 5:55 PM, Chris wrote:
 
  Mike Dunlop wrote:
  i have an array of various words and am looking to create a
  result  array of every possible combination of words from the orig
  array. I'm  not sure how to accomplish this elegantly within a for
  loop. Anyone  have any ideas?
 
  Could you post a sample of what you have and what you want to end
  up with?
 
  It'll be easier for us to work out rather than guess at what you're
  trying to do.
 
  --
  Postgresql  php tutorials
  http://www.designmagick.com/
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] word matrix

2006-03-28 Thread Shaunak Kashyap
Here is my first cut at the problem. It is probably not the most optimal
solution in terms of algorithmic complexity and it could also do without
the use of global vars and such, but it should give you some ideas.

[code]

$arr = array('word1', 'word2', 'word3');

$lowerBound = 1;
$upperBound = pow(2, count($arr)) - 1;

for ($index = $lowerBound; $index = $upperBound; ++$index) {

$bitString = str_pad(decbin($index), count($arr), 0,
STR_PAD_LEFT);

echo showValues($bitString) . br;

}

function showValues($bitString) {

global $arr;

$outputStringArray = array();

for ($pos = 0; $pos  strlen($bitString); ++$pos) {

if ($bitString[$pos]) {

$outputStringArray[] = $arr[$pos];
}

}

return implode(' ', $outputStringArray);


}
[/code]

Shaunak Kashyap
 
Senior Web Developer
WPT Enterprises, Inc.
5700 Wilshire Blvd., Suite 350
Los Angeles, CA 90036
 
Direct: 323.330.9870
Main: 323.330.9900
 
www.worldpokertour.com
 
Confidentiality Notice:  This e-mail transmission (and/or the
attachments accompanying) it may contain confidential information
belonging to the sender which is protected.  The information is intended
only for the use of the intended recipient.  If you are not the intended
recipient, you are hereby notified that any disclosure, copying,
distribution or taking of any action in reliance on the contents of this
information is prohibited. If you have received this transmission in
error, please notify the sender by reply e-mail and destroy all copies
of this transmission.


 -Original Message-
 From: Mike Dunlop [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 28, 2006 11:57 AM
 To: Shaunak Kashyap
 Cc: php-general@lists.php.net
 Subject: Re: [PHP] word matrix
 
 no, just all the unique combinations. Thanks!
 
 ...
 Mike Dunlop
 Director of Technology Development
 [ e ] [EMAIL PROTECTED]
 [ p ] 323.644.7808
 
 
 On Mar 28, 2006, at 11:42 AM, Shaunak Kashyap wrote:
 
  Would you also want the following combinations?
 
  word1 word3 word2
  word2 word1 word3
  word2 word3 word1
  word3 word1 word2
  word3 word2 word1
 
  Shaunak Kashyap
 
  Senior Web Developer
  WPT Enterprises, Inc.
  5700 Wilshire Blvd., Suite 350
  Los Angeles, CA 90036
 
  Direct: 323.330.9870
  Main: 323.330.9900
 
  www.worldpokertour.com
 
  Confidentiality Notice:  This e-mail transmission (and/or the
  attachments accompanying) it may contain confidential information
  belonging to the sender which is protected.  The information is
  intended
  only for the use of the intended recipient.  If you are not the
  intended
  recipient, you are hereby notified that any disclosure, copying,
  distribution or taking of any action in reliance on the contents of
  this
  information is prohibited. If you have received this transmission in
  error, please notify the sender by reply e-mail and destroy all
copies
  of this transmission.
 
 
  -Original Message-
  From: Mike Dunlop [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, March 28, 2006 11:36 AM
  To: Chris
  Cc: php-general@lists.php.net
  Subject: Re: [PHP] word matrix
 
  Sure Chris.
 
  $words = array(word1,word2,word3);
 
  I want this:
 
  $result = array(
 word1,
 word2,
 word3,
 word1 word2,
 word1 word3,
 word2 word1,
 word2 word3,
 word3 word1,
 word3 word2,
 word1,word2,word3
  );
 
 
  Thanks - MD
 
 
 
 
  On Mar 27, 2006, at 5:55 PM, Chris wrote:
 
  Mike Dunlop wrote:
  i have an array of various words and am looking to create a
  result  array of every possible combination of words from the
orig
  array. I'm  not sure how to accomplish this elegantly within a
for
  loop. Anyone  have any ideas?
 
  Could you post a sample of what you have and what you want to end
  up with?
 
  It'll be easier for us to work out rather than guess at what
you're
  trying to do.
 
  --
  Postgresql  php tutorials
  http://www.designmagick.com/
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] file_get_contents / url wrappers

2006-03-27 Thread Shaunak Kashyap
It is possible that the site is rejecting the script since it is not a
browser. You can fake a browser by using the User-Agent header.

I am also going to take the liberty to suggest an alternate means to the
same end. If you are on a *nix system you can run the wget command to
connect to the site and retrieve the data. With the right options to
wget the user agent can be faked and the output be sent to stdout. Then
using output buffering you can capture the output to a string.

Shaunak Kashyap
 
Senior Web Developer
WPT Enterprises, Inc.
5700 Wilshire Blvd., Suite 350
Los Angeles, CA 90036
 
Direct: 323.330.9870
Main: 323.330.9900
 
www.worldpokertour.com
 
Confidentiality Notice:  This e-mail transmission (and/or the
attachments accompanying) it may contain confidential information
belonging to the sender which is protected.  The information is intended
only for the use of the intended recipient.  If you are not the intended
recipient, you are hereby notified that any disclosure, copying,
distribution or taking of any action in reliance on the contents of this
information is prohibited. If you have received this transmission in
error, please notify the sender by reply e-mail and destroy all copies
of this transmission.


 -Original Message-
 From: Mike Dunlop [mailto:[EMAIL PROTECTED]
 Sent: Monday, March 27, 2006 2:15 PM
 To: php-general@lists.php.net
 Subject: [PHP] file_get_contents / url wrappers
 
 Hi gang,
 
 If i am trying to read the contents of url into a string and I am
 getting 403 errors yet the page will load perfectly through a normal
 browser, do u think the site is looking at the http request headers
 and determining it's not a browser and thus blocking access? If
 something like that was happening, does anyone know what headers i
 should put into a request to simulate a browser?
 
 error msg :: ... failed to open stream: HTTP request failed! HTTP/
 1.1 403 Forbidden in ...
 
 Any info is much appreciated.
 
 Thanks - MD
 
 ...
 Mike Dunlop
 Director of Technology Development
 [ e ] [EMAIL PROTECTED]
 [ p ] 323.644.7808
 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Re: session vars

2006-03-21 Thread Shaunak Kashyap
Where and how is $_SESSION[root] being initialized?

Try outputting it's value right after it is initialized and see if that works 
successfully.

Then try and output it's value right before the include(top.php) statement 
and see if that works successfully.

Finally, try and output it inside top.php and see if that works.

Shaunak Kashyap
 
Senior Web Developer
WPT Enterprises, Inc.
5700 Wilshire Blvd., Suite 350
Los Angeles, CA 90036
 
Direct: 323.330.9870
Main: 323.330.9900
 
www.worldpokertour.com
 
Confidentiality Notice:  This e-mail transmission (and/or the attachments 
accompanying) it may contain confidential information belonging to the sender 
which is protected.  The information is intended only for the use of the 
intended recipient.  If you are not the intended recipient, you are hereby 
notified that any disclosure, copying, distribution or taking of any action in 
reliance on the contents of this information is prohibited. If you have 
received this transmission in error, please notify the sender by reply e-mail 
and destroy all copies of this transmission.


 -Original Message-
 From: João Cândido de Souza Neto [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 21, 2006 9:38 AM
 To: php-general@lists.php.net
 Subject: [PHP] Re: session vars
 
 João Cândido de Souza Neto wrote:
 
  Hipeople.
 
  I've a system where i use session and all is working fine. But has
  something that don't work and i can't to find the cause.
 
  When a use the include function, the file included don't see the session
  vars.
 
  Anyone knows why it's happen?
 
  Thanks.
 
 
 I'll try to explain better my problem.
 
 After start the session and setting all of session variables.
 
 I have a file named top.php that has the follow code in:
 
 a href=? echo $_SESSION[root]; ?/about.php
 About system
 /a
 
 I've too a file named page.php that has the follow code in:
 
 ? session_start(); ?
 ... Some codes ...
 ? include(top.php); ?
 ... some codes ...
 
 By this way, the file top.php ought to see the $_SESSION[root] variable,
 but it isn't happening.
 
 Just to remember, my register_global is defined to off.
 
 Thanks for your tips.
 
 --
 ---
 João Cândido de Souza Neto
 Web Developer
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Re: session vars

2006-03-21 Thread Shaunak Kashyap
 -Original Message-
 From: João Cândido de Souza Neto [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 21, 2006 11:26 AM
 To: php-general@lists.php.net
 Subject: Re: [PHP] Re: session vars
 
 This code's exactly the one that produce the error.
 
 That is, in the line:
 
 a href=? echo $_SESSION[root]; ?/about.php
 
 ought to write a href=http://localhost/buffets/about.php;
 
 Did you understand?
 
 --
 ---
 João Cândido de Souza Neto
 Web Developer
 

Can you please provide the simplest example starting from where 
$_SESSION[root] is initialized to where it is first unsuccessfully used, in 
the following format:

top.php:
(insert example code here)

page.php:
(insert example code here)

... and any other relevant files ...


Shaunak Kashyap
 
Senior Web Developer
WPT Enterprises, Inc.
5700 Wilshire Blvd., Suite 350
Los Angeles, CA 90036
 
Direct: 323.330.9870
Main: 323.330.9900
 
www.worldpokertour.com
 
Confidentiality Notice:  This e-mail transmission (and/or the attachments 
accompanying) it may contain confidential information belonging to the sender 
which is protected.  The information is intended only for the use of the 
intended recipient.  If you are not the intended recipient, you are hereby 
notified that any disclosure, copying, distribution or taking of any action in 
reliance on the contents of this information is prohibited. If you have 
received this transmission in error, please notify the sender by reply e-mail 
and destroy all copies of this transmission.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Converting a string

2006-03-17 Thread Shaunak Kashyap
Try using preg_match_all with this pattern:

/([A-Z].*[^A-Z])/U

While this pattern does not get you exactly what you want, I think it
serves as a starting point. I am not too good with regular expressions
so I'll let the more accomplished regex people on the list jump in at
this point.

Shaunak Kashyap
 
Senior Web Developer
WPT Enterprises, Inc.
5700 Wilshire Blvd., Suite 350
Los Angeles, CA 90036
 
Direct: 323.330.9870
Main: 323.330.9900
 
www.worldpokertour.com
 
Confidentiality Notice:  This e-mail transmission (and/or the
attachments accompanying) it may contain confidential information
belonging to the sender which is protected.  The information is intended
only for the use of the intended recipient.  If you are not the intended
recipient, you are hereby notified that any disclosure, copying,
distribution or taking of any action in reliance on the contents of this
information is prohibited. If you have received this transmission in
error, please notify the sender by reply e-mail and destroy all copies
of this transmission.


 -Original Message-
 From: Jay Blanchard [mailto:[EMAIL PROTECTED]
 Sent: Friday, March 17, 2006 10:24 AM
 To: Dave Goodchild
 Cc: php-general@lists.php.net
 Subject: RE: [PHP] Converting a string
 
 [snip]
 
 If you have similar element names in $_POST, comething like:
 
 $human_friendly = array(psFirstName = First Name);
 
 foreach ($_POST as $ key = value) {
 
 echo Cannot leave {$human_friendly[$key]} blank;
 
 }
 
 [/snip]
 
 But I don't want to create another array, and should'nt have to

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Converting a string

2006-03-17 Thread Shaunak Kashyap
I think I got the correct regex pattern:

/[A-Z].*.[^A-Z]/U

Again, I am not too good with regex so I can't explain why that pattern
works and also if it will work in all cases.

HTH,

Shaunak Kashyap
 
Senior Web Developer
WPT Enterprises, Inc.
5700 Wilshire Blvd., Suite 350
Los Angeles, CA 90036
 
Direct: 323.330.9870
Main: 323.330.9900
 
www.worldpokertour.com
 
Confidentiality Notice:  This e-mail transmission (and/or the
attachments accompanying) it may contain confidential information
belonging to the sender which is protected.  The information is intended
only for the use of the intended recipient.  If you are not the intended
recipient, you are hereby notified that any disclosure, copying,
distribution or taking of any action in reliance on the contents of this
information is prohibited. If you have received this transmission in
error, please notify the sender by reply e-mail and destroy all copies
of this transmission.


 -Original Message-
 From: Shaunak Kashyap [mailto:[EMAIL PROTECTED]
 Sent: Friday, March 17, 2006 10:49 AM
 To: Jay Blanchard; Dave Goodchild
 Cc: php-general@lists.php.net
 Subject: RE: [PHP] Converting a string
 
 Try using preg_match_all with this pattern:
 
   /([A-Z].*[^A-Z])/U
 
 While this pattern does not get you exactly what you want, I think it
 serves as a starting point. I am not too good with regular expressions
 so I'll let the more accomplished regex people on the list jump in at
 this point.
 
 Shaunak Kashyap
 
 Senior Web Developer
 WPT Enterprises, Inc.
 5700 Wilshire Blvd., Suite 350
 Los Angeles, CA 90036
 
 Direct: 323.330.9870
 Main: 323.330.9900
 
 www.worldpokertour.com
 
 Confidentiality Notice:  This e-mail transmission (and/or the
 attachments accompanying) it may contain confidential information
 belonging to the sender which is protected.  The information is
intended
 only for the use of the intended recipient.  If you are not the
intended
 recipient, you are hereby notified that any disclosure, copying,
 distribution or taking of any action in reliance on the contents of
this
 information is prohibited. If you have received this transmission in
 error, please notify the sender by reply e-mail and destroy all copies
 of this transmission.
 
 
  -Original Message-
  From: Jay Blanchard [mailto:[EMAIL PROTECTED]
  Sent: Friday, March 17, 2006 10:24 AM
  To: Dave Goodchild
  Cc: php-general@lists.php.net
  Subject: RE: [PHP] Converting a string
 
  [snip]
 
  If you have similar element names in $_POST, comething like:
 
  $human_friendly = array(psFirstName = First Name);
 
  foreach ($_POST as $ key = value) {
 
  echo Cannot leave {$human_friendly[$key]} blank;
 
  }
 
  [/snip]
 
  But I don't want to create another array, and should'nt have to
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] date from YYYY-MM-DD to current date

2006-03-15 Thread Shaunak Kashyap
// $pastDateStr = string representation of past date
$pastDateTS = strtotime($pastDateStr);

For ($currentDateTS = $pastDateTS;
$currentDateTS = strtotime(now);
$currentDateTS += (60 * 60 * 24)) {

// use date() and $currentDateTS to format the dates in between

}

HTH,

Shaunak Kashyap
 
Senior Web Developer
WPT Enterprises, Inc.
5700 Wilshire Blvd., Suite 350
Los Angeles, CA 90036
 
Direct: 323.330.9870
Main: 323.330.9900
 
www.worldpokertour.com
 
Confidentiality Notice:  This e-mail transmission (and/or the
attachments accompanying) it may contain confidential information
belonging to the sender which is protected.  The information is intended
only for the use of the intended recipient.  If you are not the intended
recipient, you are hereby notified that any disclosure, copying,
distribution or taking of any action in reliance on the contents of this
information is prohibited. If you have received this transmission in
error, please notify the sender by reply e-mail and destroy all copies
of this transmission.


 -Original Message-
 From: Dan McCullough [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, March 15, 2006 9:58 AM
 To: php-general@lists.php.net
 Subject: [PHP] date from -MM-DD to current date
 
 I need to loop from a date in the past to current date getting all
 dates in between.  Anyone have an idea on how to do that?
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] RE: [SOLVED] [PHP] date from YYYY-MM-DD to current date

2006-03-15 Thread Shaunak Kashyap
In the future, please reply to the list. Also, I assume this question
has been answered and am, therefore, marking it with [SOLVED].

Shaunak Kashyap
 
Senior Web Developer
WPT Enterprises, Inc.
5700 Wilshire Blvd., Suite 350
Los Angeles, CA 90036
 
Direct: 323.330.9870
Main: 323.330.9900
 
www.worldpokertour.com
 
Confidentiality Notice:  This e-mail transmission (and/or the
attachments accompanying) it may contain confidential information
belonging to the sender which is protected.  The information is intended
only for the use of the intended recipient.  If you are not the intended
recipient, you are hereby notified that any disclosure, copying,
distribution or taking of any action in reliance on the contents of this
information is prohibited. If you have received this transmission in
error, please notify the sender by reply e-mail and destroy all copies
of this transmission.

 -Original Message-
 From: Dan McCullough [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, March 15, 2006 10:22 AM
 To: Shaunak Kashyap
 Subject: Re: [PHP] date from -MM-DD to current date
 
 excellent, I was getting close, was getting hung up on a couple of
things
 
 On 3/15/06, Shaunak Kashyap [EMAIL PROTECTED] wrote:
  // $pastDateStr = string representation of past date
  $pastDateTS = strtotime($pastDateStr);
 
  For ($currentDateTS = $pastDateTS;
 $currentDateTS = strtotime(now);
 $currentDateTS += (60 * 60 * 24)) {
 
 // use date() and $currentDateTS to format the dates in
between
 
  }
 
  HTH,
 
  Shaunak Kashyap
 
  Senior Web Developer
  WPT Enterprises, Inc.
  5700 Wilshire Blvd., Suite 350
  Los Angeles, CA 90036
 
  Direct: 323.330.9870
  Main: 323.330.9900
 
  www.worldpokertour.com
 
  Confidentiality Notice:  This e-mail transmission (and/or the
  attachments accompanying) it may contain confidential information
  belonging to the sender which is protected.  The information is
intended
  only for the use of the intended recipient.  If you are not the
intended
  recipient, you are hereby notified that any disclosure, copying,
  distribution or taking of any action in reliance on the contents of
this
  information is prohibited. If you have received this transmission in
  error, please notify the sender by reply e-mail and destroy all
copies
  of this transmission.
 
 
   -Original Message-
   From: Dan McCullough [mailto:[EMAIL PROTECTED]
   Sent: Wednesday, March 15, 2006 9:58 AM
   To: php-general@lists.php.net
   Subject: [PHP] date from -MM-DD to current date
  
   I need to loop from a date in the past to current date getting all
   dates in between.  Anyone have an idea on how to do that?
  
   --
   PHP General Mailing List (http://www.php.net/)
   To unsubscribe, visit: http://www.php.net/unsub.php
 
 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] large file transfers

2006-03-09 Thread Shaunak Kashyap
Try: http://www.heylove.de/

It walks you through creating your own file upload class and in the end
gives an example of how to use that class.

Shaunak Kashyap
 
Senior Web Developer
WPT Enterprises, Inc.
5700 Wilshire Blvd., Suite 350
Los Angeles, CA 90036
 
Direct: 323.330.9870
Main: 323.330.9900
 
www.worldpokertour.com
 
Confidentiality Notice:  This e-mail transmission (and/or the
attachments accompanying) it may contain confidential information
belonging to the sender which is protected.  The information is intended
only for the use of the intended recipient.  If you are not the intended
recipient, you are hereby notified that any disclosure, copying,
distribution or taking of any action in reliance on the contents of this
information is prohibited. If you have received this transmission in
error, please notify the sender by reply e-mail and destroy all copies
of this transmission.


 -Original Message-
 From: Christopher Taylor [mailto:[EMAIL PROTECTED]
 Sent: Thursday, March 09, 2006 4:29 PM
 To: php-general@lists.php.net
 Subject: [PHP] large file transfers
 
 Has anyone seen a script or class that can handle file uploads of
large
 files (greater than 20 meg)?  Any direction as to where to look would
be
 appreciated.
 
 Chris

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] encrypt and decrypt in php

2006-03-07 Thread Shaunak Kashyap
When you say that it is not working properly, what exactly is the
problem? Are you getting any error messages? What version of PHP are you
using? What platform is PHP installed on?

The reason I ask those questions is that
http://us2.php.net/manual/en/ref.mcrypt.php states that the mcrypt
functions need the mcrypt libraries to work. Perhaps the reason your
functions are not working is because those libraries are not installed
on your system.

Of course, you could just use Barry's suggestion of using the session
since it seems to meet your end goals.


Shaunak Kashyap
 
Senior Web Developer
WPT Enterprises, Inc.
5700 Wilshire Blvd., Suite 350
Los Angeles, CA 90036
 
Direct: 323.330.9870
Main: 323.330.9900
 
www.worldpokertour.com
 
Confidentiality Notice:  This e-mail transmission (and/or the
attachments accompanying) it may contain confidential information
belonging to the sender which is protected.  The information is intended
only for the use of the intended recipient.  If you are not the intended
recipient, you are hereby notified that any disclosure, copying,
distribution or taking of any action in reliance on the contents of this
information is prohibited. If you have received this transmission in
error, please notify the sender by reply e-mail and destroy all copies
of this transmission.

 -Original Message-
 From: suresh kumar [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 07, 2006 12:45 AM
 To: php-general@lists.php.net
 Subject: [PHP] encrypt and decrypt in php
 
 I searched google,weberdev and php.net sites. i implemented the 2
encrypt
 and decrypt functions  mcrypt_encrypt(),mcrypt_decrypt() and
mcrypt_ecb()
 functions.but it not working properly.i dont need more complicated
encrypt
 and decrypt functionality.just i want to encrypt my user id when i
pass
 from page1 to page2 and i want to decrypt  it in page2.i am looking
 forward reply from u
 
  A.suresh
 
 
 -
  Jiyo cricket on Yahoo! India cricket
 Yahoo! Messenger Mobile Stay in touch with your buddies all the time.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] LDAP and Single Sign On

2006-03-07 Thread Shaunak Kashyap
Maybe this will help: http://us2.php.net/manual/en/ref.ldap.php

Shaunak Kashyap
 
Senior Web Developer
WPT Enterprises, Inc.
5700 Wilshire Blvd., Suite 350
Los Angeles, CA 90036
 
Direct: 323.330.9870
Main: 323.330.9900
 
www.worldpokertour.com
 
Confidentiality Notice:  This e-mail transmission (and/or the
attachments accompanying) it may contain confidential information
belonging to the sender which is protected.  The information is intended
only for the use of the intended recipient.  If you are not the intended
recipient, you are hereby notified that any disclosure, copying,
distribution or taking of any action in reliance on the contents of this
information is prohibited. If you have received this transmission in
error, please notify the sender by reply e-mail and destroy all copies
of this transmission.


 -Original Message-
 From: Justin Cook [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 07, 2006 9:55 AM
 To: php-general@lists.php.net
 Subject: [PHP] LDAP and Single Sign On
 
 We are developing an intranet for my company. I would like to
implement a
 single sign on service. We have Active Directory on one server and the
 intranet is being housed on a Redhat Linux server. When the internal
user
 pulls up the intranet, I would like it to check to see if they
 successfully joined the domain when they logged into their personal
 machine, if so they do not need to log on to the intranet. Does
anybody
 have any links to tutorials on this? Thanks!

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] What am I missing?

2006-03-07 Thread Shaunak Kashyap
It is more of an HTML/HTTP question than PHP but here's my shot at a
possible explanation:

The file containing the form code seems to live in the
/mobilkamera/admin/ directory. Therefore action=admin/phpfunctions...
implies that the form is to be submitted to that path starting from the
current directory (i.e. /mobilkamera/admin/), which resolves to
/mobilkamera/admin/admin/phpfunctions...

One solution would be remove the admin/ from the action. Another (and
probably better solution) would be to use absolute paths, as Joe Henry
suggests.

Shaunak Kashyap
 
Senior Web Developer
WPT Enterprises, Inc.
5700 Wilshire Blvd., Suite 350
Los Angeles, CA 90036
 
Direct: 323.330.9870
Main: 323.330.9900
 
www.worldpokertour.com
 
Confidentiality Notice:  This e-mail transmission (and/or the
attachments accompanying) it may contain confidential information
belonging to the sender which is protected.  The information is intended
only for the use of the intended recipient.  If you are not the intended
recipient, you are hereby notified that any disclosure, copying,
distribution or taking of any action in reliance on the contents of this
information is prohibited. If you have received this transmission in
error, please notify the sender by reply e-mail and destroy all copies
of this transmission.


 -Original Message-
 From: Gustav Wiberg [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 07, 2006 10:45 AM
 To: PHP General
 Subject: [PHP] What am I missing?
 
 Hi there!
 
 Why...
 
 I have this code:
 
 bAdd manufacturer:/bbr
 form name=frmMan

action=admin/phpfunctions/addnewmanufacturer.php?frmManufacturer=?php
 echo
 $frmIDManufacturer;?frmModel=?php echo $frmIDModel;?
method=post
 input type=text size=30 name=frmManufacturerName
 input type=submit value=ok
 /form
 
 When i press the submit - button, I get this error:
 
 Not Found
 The requested URL
 /mobilkamera/admin/admin/phpfunctions/addnewmanufacturer.php was not
found
 on this server.
 
 Apache/2.0.53 (Win32) Server at 192.168.0.3 Port 80
 
 Why is there TWO admins? Why isn't the path like this...?
 The requested URL
/mobilkamera/admin/phpfunctions/addnewmanufacturer.php
 was
 not found on this server.
 
 ???
 
 If this is not a question that suits the list, please guide me tips
where
 to
 look...
 
 Best regards
 /Gustav Wiberg
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] class constants

2006-03-07 Thread Shaunak Kashyap
 
 Constants aren't per class, they are per system. Whether you define
them
 in a class or not won't change this.
 
 You can list all constants using
 http://www.php.net/manual/en/function.get-defined-constants.php
 
 

Actually, PHP5 allows constants per class, aka class constants. I think
that's what the OP is referring to.

Shaunak Kashyap
 
Senior Web Developer
WPT Enterprises, Inc.
5700 Wilshire Blvd., Suite 350
Los Angeles, CA 90036
 
Direct: 323.330.9870
Main: 323.330.9900
 
www.worldpokertour.com
 
Confidentiality Notice:  This e-mail transmission (and/or the
attachments accompanying) it may contain confidential information
belonging to the sender which is protected.  The information is intended
only for the use of the intended recipient.  If you are not the intended
recipient, you are hereby notified that any disclosure, copying,
distribution or taking of any action in reliance on the contents of this
information is prohibited. If you have received this transmission in
error, please notify the sender by reply e-mail and destroy all copies
of this transmission.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Re: Incremental Date Based ID

2006-03-07 Thread Shaunak Kashyap
A possible solution:

Make a composite primary key where the first field is the date and the
second field would be of type enumeration (A..Z, in ascending order).
Then use MAX(second field) WHERE first field = today's date to
figure out the next primary key.

Shaunak Kashyap
 
Senior Web Developer
WPT Enterprises, Inc.
5700 Wilshire Blvd., Suite 350
Los Angeles, CA 90036
 
Direct: 323.330.9870
Main: 323.330.9900
 
www.worldpokertour.com
 
Confidentiality Notice:  This e-mail transmission (and/or the
attachments accompanying) it may contain confidential information
belonging to the sender which is protected.  The information is intended
only for the use of the intended recipient.  If you are not the intended
recipient, you are hereby notified that any disclosure, copying,
distribution or taking of any action in reliance on the contents of this
information is prohibited. If you have received this transmission in
error, please notify the sender by reply e-mail and destroy all copies
of this transmission.


 -Original Message-
 From: Kevin Murphy [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 07, 2006 5:06 PM
 To: php-general@lists.php.net
 Subject: Re: [PHP] Re: Incremental Date Based ID
 
 Well, part of the issue is that I want to be able to use this as part
 of the link:
 
 /news.php?article=2006-03-05a
 /news.php?article=2006-03-05b
 
 which i will eventually do a htacess rewrite to make it look like
 
 /news/2006-03-05a.php
 /news/2006-03-05a.php
 
 I don't think I can do that with just the Unix timestamp.
 
 On Mar 7, 2006, at 4:56 PM, Al wrote:
 
  Kevin Murphy wrote:
  I'm trying to set up an ID field that works like this for news
  articles that are posted to a website.
  2006-03-05a
  2006-03-05b
  I know how to generate the date, and I am pretty sure I can
  generate the letter code based on counting the number of rows and
  then assigning the next letter (we will never have more than 26 in
  a day... usually its closer to 1 or 2 per day).
  The problem is if there has been something deleted.
  2006-03-05a
  2006-03-05c
  If I then Count the rows with this date I get an answer of 2, and
  so the next letter should be c but there already is a c
  because b got deleted.
  So, is there any way of generating this style ID number
  automatically?
  --Kevin Murphy
  Webmaster - Information and Marketing Services
  Western Nevada Community College
  www.wncc.edu
  (775) 445-3326
 
 
  Why not simply use the Unix time stamp. time() If more than one can
  arrive within the same second, append a letter.
 
  If users need to see the key, use date() to decode it for them
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Last Sunday in September?

2006-02-17 Thread Shaunak Kashyap
$currentTS = strtotime(now);
$currentYear = date(Y);
$nextYear = $currentYear + 1;

$lastSundayInSepCurrentYearTS = strtotime(last Sunday,
strtotime(10/1/$currentYear));

$firstDayNextYearTS = strtotime(1/1/$nextYear);

//
// So your psuedocode becomes...
//
if (($currentTS  $lastSundayInSepCurrentYearTS) 
($currentTS  $firstDayNextYearTS)) {

$year++;

}

Shaunak Kashyap
 
Senior Web Developer
WPT Enterprises, Inc.
5700 Wilshire Blvd., Suite 350
Los Angeles, CA 90036
 
Main: 323.330.9900
 
www.worldpokertour.com
 
Confidentiality Notice:  This e-mail transmission (and/or the 
attachments accompanying) it may contain confidential information 
belonging to the sender which is protected.  The information is 
intended only for the use of the intended recipient.  If your are not 
the intended recipient, you are hereby notified that any disclosure, 
copying, distribution or taking of any action in reliance on the 
contents of this information is prohibited. If you have received this 
transmission in error, please notify the sender by reply e-mail and 
destroy all copies of this transmission.
-Original Message-
From: Jay Paulson [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 17, 2006 10:07 AM
To: php-general@lists.php.net
Subject: [PHP] Last Sunday in September?

Hi,

I'm building a program and I need to find the last Sunday in September
for
every year because the following Monday is the start of a new year for
us.
So 2006 ends on September 24th 2006 and the new year (2007) starts on
September 25th 2006.  I was thinking that using the strtotime() would
get me
this information possibly?  Is there an easy way to get this
information?

Pseudo code:

If ((date  last Sunday in September this year) 
(date  Jan 1 of next year)) {
year++
}

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] What does a ? represent

2006-02-17 Thread Shaunak Kashyap
I'm not sure if these completely answer your question but they might get
you started:

http://dev.mysql.com/doc/refman/4.1/en/mysql-stmt-prepare.html
http://dev.mysql.com/doc/refman/4.1/en/mysql-stmt-execute.html

Shaunak Kashyap
 
Senior Web Developer
WPT Enterprises, Inc.
5700 Wilshire Blvd., Suite 350
Los Angeles, CA 90036
 
Main: 323.330.9900
 
www.worldpokertour.com
 
Confidentiality Notice:  This e-mail transmission (and/or the 
attachments accompanying) it may contain confidential information 
belonging to the sender which is protected.  The information is 
intended only for the use of the intended recipient.  If your are not 
the intended recipient, you are hereby notified that any disclosure, 
copying, distribution or taking of any action in reliance on the 
contents of this information is prohibited. If you have received this 
transmission in error, please notify the sender by reply e-mail and 
destroy all copies of this transmission.

-Original Message-
From: Jeff [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 17, 2006 11:54 AM
To: php-general@lists.php.net
Subject: [PHP] What does a ? represent

In the some code I'm working with I see many database queries using the
PEAR DB class where  ? is used for a value in the SQL.  What is the
rule for using ? in this way what value does it take.

Example code.   

 $ticket=$db-getRow(
SELECT id,department,`from`, cc, bcc FROM tickets WHERE
id=?,
array($tid)
);

Jeff

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] URL problem

2006-02-17 Thread Shaunak Kashyap
If you are in a *nix environment, make a symlink from site_folder/index.php - 
site_folder/example_folder/index.php and that should do it.

Shaunak Kashyap
 
Senior Web Developer
WPT Enterprises, Inc.
5700 Wilshire Blvd., Suite 350
Los Angeles, CA 90036
 
Main: 323.330.9900
 
www.worldpokertour.com
 
Confidentiality Notice:  This e-mail transmission (and/or the 
attachments accompanying) it may contain confidential information 
belonging to the sender which is protected.  The information is 
intended only for the use of the intended recipient.  If your are not 
the intended recipient, you are hereby notified that any disclosure, 
copying, distribution or taking of any action in reliance on the 
contents of this information is prohibited. If you have received this 
transmission in error, please notify the sender by reply e-mail and 
destroy all copies of this transmission.

-Original Message-
From: Jesús Alain Rodríguez Santos [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 17, 2006 2:49 PM
To: php-general@lists.php.net
Subject: [PHP] URL problem

I have a following directory:
- folder (site)
   index.php
   - folder (example)
 index.php

the url to this directory will be: http://www.example.com/site/index.php
but I need redirect with: header() function to the index.php inside the folder 
example without the url change
I mean, I want to keep the same url but diferent directory
-- 
Este mensaje ha sido analizado por MailScanner
en busca de virus y otros contenidos peligrosos,
y se considera que está limpio.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Routing downloads through PHP

2006-02-14 Thread Shaunak Kashyap
Try putting an ob_start(); at the top of the script. This will start
output buffering and buffer all output until the end of the script. You
can read more about ob_start() and output control in general at
http://us3.php.net/manual/en/function.ob-start.php.

Shaunak Kashyap
 
Senior Web Developer
WPT Enterprises, Inc.
5700 Wilshire Blvd., Suite 350
Los Angeles, CA 90036
 
Main: 323.330.9900
 
www.worldpokertour.com
 
Confidentiality Notice:  This e-mail transmission (and/or the 
attachments accompanying) it may contain confidential information 
belonging to the sender which is protected.  The information is 
intended only for the use of the intended recipient.  If your are not 
the intended recipient, you are hereby notified that any disclosure, 
copying, distribution or taking of any action in reliance on the 
contents of this information is prohibited. If you have received this 
transmission in error, please notify the sender by reply e-mail and 
destroy all copies of this transmission.

-Original Message-
From: J_K9 [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 14, 2006 1:42 PM
To: php-general@lists.php.net
Subject: Re: [PHP] Routing downloads through PHP

Hi,

Thanks for replying. Here's the code I put into download.php:

-
?

$fileid = $_GET['file_id'];

$filearray = array(
a0=data/download1.zip,
a1=data/download2.zip);

$location = $filearray['a'.$fileid];

if($location!='') {

header(LOCATION: $location);

}

?


But when I send it: http://example.com/download.php?file_id=0 , I get 
the following error-


Warning: Cannot modify header information - headers already sent by 
(output started at /public_html/download.php:6) in 
/public_html/download.php on line 18


Any idea what's going wrong?

Thanks,

J_K9


Russell Jones wrote:
 ?
 
 $fileid = $_GET['file_id'];
 
 $filearray = array(
a0=filename.zip,
a1=filename2.zip,
a2=filename3.zip);
 
 $location = $filearray['a'.$fileid];
 
 if($location!='') {
 
header(LOCATION: $location);
 
 }
 
 ?
 
 ?
 
 
 
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] [HS] IDE PHP on Linux...

2006-02-13 Thread Shaunak Kashyap
Assuming you are open to commercial (non-freeware) IDEs and are looking
for a GUI IDE, I would strongly suggest Zend Studio. It's JAVA-based so
it works across multiple OSes, including Linux. 

It supports auto-completion and has a file explorer in addition to other
nifty features.

Shaunak Kashyap
 
Senior Web Developer
WPT Enterprises, Inc.
5700 Wilshire Blvd., Suite 350
Los Angeles, CA 90036
 
Main: 323.330.9900
 
www.worldpokertour.com
 
Confidentiality Notice:  This e-mail transmission (and/or the 
attachments accompanying) it may contain confidential information 
belonging to the sender which is protected.  The information is 
intended only for the use of the intended recipient.  If your are not 
the intended recipient, you are hereby notified that any disclosure, 
copying, distribution or taking of any action in reliance on the 
contents of this information is prohibited. If you have received this 
transmission in error, please notify the sender by reply e-mail and 
destroy all copies of this transmission.

-Original Message-
From: David BERCOT [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 13, 2006 12:26 PM
To: php-general@lists.php.net
Subject: [PHP] [HS] IDE PHP on Linux...

Hi,

I'm looking for a good IDE on Linux to code my php files... I'd like
auto-completion (in php and html) and a file explorer...
I've tested Eclipse (with PHP Eclipse) and Komodo but I couldn't have
auto-completion on php commands !!!
Do you have any idea ?

Thank you very much.

David.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Namespace issues

2004-06-15 Thread Shaunak Kashyap
Hi,

Facts:

1. I have the following four scripts: a.php, b.php, c.php and d.php
2. a.php defines a function named foo.
3. b.php includes c.php
4. c.php defines a function named foo


Case I: d.php looks like this:

code
include b.php;
include a.php;
/code

This causes a fatal error that says that foo cannot be redeclared.

Case II: I change d.php to look like this:

code
include a.php;
include b.php;
/code

This does NOT cause the same fatal error. When I called foo from d.php, it
called the foo defined in a.php


Can anyone explain why a fatal error wasnt caused in Case II? I am using PHP
version 4.2.3

Thank you,

Shaunak Kashyap

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] RE: [SOLVED] Namespace issues

2004-06-15 Thread Shaunak Kashyap
Yes, thank you Justin. I DID have a function exists which I somehow did not
notice earlier.

Shaunak

 -Original Message-
 From: Justin Patrin [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, June 15, 2004 4:49 PM
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP] Namespace issues


 Shaunak Kashyap wrote:

  Hi,
 
  Facts:
 
  1. I have the following four scripts: a.php, b.php, c.php and d.php
  2. a.php defines a function named foo.
  3. b.php includes c.php
  4. c.php defines a function named foo
 
 
  Case I: d.php looks like this:
 
  code
  include b.php;
  include a.php;
  /code
 
  This causes a fatal error that says that foo cannot be redeclared.
 
  Case II: I change d.php to look like this:
 
  code
  include a.php;
  include b.php;
  /code
 
  This does NOT cause the same fatal error. When I called foo
 from d.php, it
  called the foo defined in a.php
 
 
  Can anyone explain why a fatal error wasnt caused in Case II? I
 am using PHP
  version 4.2.3
 
  Thank you,
 
  Shaunak Kashyap

 Perhaps you have a function_exists() (or similar) call wrapping the
 declaration of foo() in c.php?

 If you're using this same function in multiple files and it's the same
 funciton, you ought to put it in its own file and require_once() the
 file in the places where you need it. That way, you don't get this
 problem. You could also wrap all of the declarations in
 funciton_exists() calls.

 --
 paperCrane Justin Patrin

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] TRUE or true?

2004-04-23 Thread Shaunak Kashyap
lowercase

 -Original Message-
 From: Richard Davey [mailto:[EMAIL PROTECTED]
 Sent: Thursday, April 22, 2004 7:52 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] TRUE or true?
 
 
 Hi all,
 
 I know from a code point of view it makes no difference at all (i.e.
 they both work), but which format do you all use for booleans?
 
 TRUE / FALSE
 
 or
 
 true / false
 
 The PHP manual uses both :) Zend Studio tries to auto-complete to the
 lower-case variant.
 
 I'm not seeking a big debate on this, more of an overall poll-count
 (and any sound arguments for A vs. B, or should I say T vs. t)
 
 -- 
 Best regards,
  Richard Davey
  http://www.phpcommunity.org/wiki/296.html
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Resizing Pictures

2004-04-20 Thread Shaunak Kashyap
What OS are you running?

Shaunak

 -Original Message-
 From: Ryan Schefke [mailto:[EMAIL PROTECTED]
 Sent: Monday, April 19, 2004 8:01 PM
 To: Php-General-Help; 'Ryan Schefke'
 Subject: [PHP] Resizing Pictures
 
 
 How do you resize pictures once they're in a certain directory?  
 I have the
 script to upload a picture, that's working fine.  I just need 
 some help with
 resizing it.  Can someone help?
 
  
 
 Thanks!
 
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] get_browser() - browscap.ini for Linux

2004-03-10 Thread Shaunak Kashyap
I am running Apache 1.3.29 on a Linux platform. I am trying to use PHP's
get_browser function which needs a file called browscap.ini on the server.
It *seems* that there is no such file available for Linux (I have checked
the manual and the link that it mentions).

Can anyone point me to a source for a working, up-to-date Linux version of
browscap.ini

Thanks in advance,

Shaunak

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] get_browser() - browscap.ini for Linux

2004-03-10 Thread Shaunak Kashyap
Thanks for the prompt reply.

I downloaded the file from www.GaryKeith.com and set up the php.ini entry to
point to it. Then I called get_browser() and it returned nothing.

Once again, my configuration is as under:

OS: Linux Red Hat Enterprise WS
PHP: 4.2.3
Web server: Apache 1.3.29

Have you tried using PHP's get_browser function? If that worked for you,
could you please let me know what your system configuration is?

Thanks,

Shaunak

 -Original Message-
 From: James Kaufman [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, March 10, 2004 3:31 PM
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP] get_browser() - browscap.ini for Linux


 On Wed, Mar 10, 2004 at 02:21:19PM -0500, Shaunak Kashyap wrote:
  I am running Apache 1.3.29 on a Linux platform. I am trying to use PHP's
  get_browser function which needs a file called browscap.ini on
 the server.
  It *seems* that there is no such file available for Linux (I
 have checked
  the manual and the link that it mentions).
 
  Can anyone point me to a source for a working, up-to-date Linux
 version of
  browscap.ini
 
  Thanks in advance,
 
  Shaunak
 

 I pick up mine from http://www.GaryKeith.com and use it fine under Linux.

 --
 Jim Kaufman
 Linux Evangelist
 public key 0x6D802619
 http://www.linuxforbusiness.net

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Obtaing the URL of current page

2004-02-26 Thread Shaunak Kashyap
url: $PHP_SELF
get variables: $QUERY_STRING

Shaunak

 -Original Message-
 From: Shaun [mailto:[EMAIL PROTECTED]
 Sent: Thursday, February 26, 2004 10:31 AM
 To: [EMAIL PROTECTED]
 Subject: [PHP] Obtaing the URL of current page
 
 
 Hi,
 
 How can i obtain the URL of the current page including any $_GET 
 variables?
 
 Thanks for your help
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Obtaing the URL of current page

2004-02-26 Thread Shaunak Kashyap
To be totally accurate --

1. $QUERY_STRING would only work with register_globals on. If
register_globals is off, use $_SERVER[QUERY_STRING].

2. I suppose you would also need the hostname. This can be obtained form
$_SERVER[HTTP_HOST]. Again, with register_globals on $HTTP_HOST may be
used.

Shaunak

 -Original Message-
 From: Shaunak Kashyap [mailto:[EMAIL PROTECTED]
 Sent: Thursday, February 26, 2004 10:29 AM
 To: [EMAIL PROTECTED]
 Subject: RE: [PHP] Obtaing the URL of current page


 url: $PHP_SELF
 get variables: $QUERY_STRING

 Shaunak

  -Original Message-
  From: Shaun [mailto:[EMAIL PROTECTED]
  Sent: Thursday, February 26, 2004 10:31 AM
  To: [EMAIL PROTECTED]
  Subject: [PHP] Obtaing the URL of current page
 
 
  Hi,
 
  How can i obtain the URL of the current page including any $_GET
  variables?
 
  Thanks for your help
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Resource id #1

2004-02-16 Thread Shaunak Kashyap
It's probably a database result set or a connection object or something
similar.

Shaunak

 -Original Message-
 From: Mike Mapsnac [mailto:[EMAIL PROTECTED]
 Sent: Monday, February 16, 2004 11:53 AM
 To: [EMAIL PROTECTED]
 Subject: [PHP] Resource id #1


 I print variable to the screen and get the result Resource id #1. Any
 ideas waht Resource id #1 is?
 Thanks

 _
 Plan your next US getaway to one of the super destinations here.
 http://special.msn.com/local/hotdestinations.armx

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] File input in form

2004-02-16 Thread Shaunak Kashyap
Sounds like a scope problem. I suggest using $_FILES['fichier'] inside the
function since $_FILES is a superglobal and is accessible everywhere. If you
use this method, you won't need to pass anything to the function.

Shaunak

 -Original Message-
 From: marc serra [mailto:[EMAIL PROTECTED]
 Sent: Monday, February 16, 2004 12:47 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] File input in form


 Hi,



 I'm designing a form with an file upload process.



 So I've wrote something like this:



 form ENCTYPE=multipart/form-data action=valid_form.php method=POST

  input type=file name=fichier/

  input type=submit value=submit/

 /form





 This work perfectly and now I got my file valid_form.php which receive the
 data:



 In that page I want to call a function to store file like this

 storeFile($fichier);

 ps :when I write : echo $fichier_name the name of the file is displayed.



 My problem is that in the function storeFile when I want to save
 data I got
 an error and when I write:

 echo $fichier_name; nothing appear like if it
 doesn't know my
 file..



 So can you please tell me how to call a function with file in parameter to
 store it.



 Thx in advance,



 Marc.





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] * populate menu from directory *

2004-02-16 Thread Shaunak Kashyap
Yes, it is possible. Use PHP's filesystem functions
(http://us2.php.net/manual/en/ref.filesystem.php).

Shaunak

 -Original Message-
 From: Dustin Krysak [mailto:[EMAIL PROTECTED]
 Sent: Monday, February 16, 2004 2:33 PM
 To: PHP
 Subject: [PHP] * populate menu from directory *


 Hi there - I am a REAL new PHP coder (yeah I mostly use dreamweaver). I
 was wondering if anyone could point me in the right direction... What I
 want to do is have a generic template page for say a bunch of quicktime
 movies... it would have a movie embedded, and a drop down menu below to
 select the movie you want to watch.. what I was hoping to do was have
 the menu populated by pulling the file names from the movies in the
 directory on the server. I want to be able to simply FTP a new movie
 onto the server, and then have the menu update itself. possible? I
 would also be looking to do something similar with JPGS.


 d

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] An HTML alternative to submit button to look like anchor??

2004-02-16 Thread Shaunak Kashyap
Yes, you can use elementary javascript to achieve that goal.

Just make a link (anchor) as you normally would and make the value of its
href attribute javascript:document.formName.submit() where formName is the
name of the form you wish to submit. As with a lot of client-side scripting
languages, I cannot guarantee that this solution is cross-browser
compatible.

Shaunak

 -Original Message-
 From: Scott Fletcher [mailto:[EMAIL PROTECTED]
 Sent: Monday, February 16, 2004 4:41 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] An HTML alternative to submit button to look like
 anchor??


 Hi!

 I'm wondering if there is such a thing as an alternative to the HTML
 submit button that would instead look like an anchor and yet act like a
 submit with POST action.  Just wondering...

 Scott F.

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] array data

2004-02-11 Thread Shaunak Kashyap
It is not the correct way because $colors being an array, the HTML code for
the hidden input element will look like this (once the HTML has been
generated by PHP):

[code]
input type=hidden name=colors value=Array
[/code]

What you probably want to do instead is something like this:

[code]
?

foreach ($colors as $color) {

?
input type=hidden name=colors[] value=?= $color ?
?

}

? // close loop
[/code]

This will create the following HTML (for the given example)...

[code]
input type=hidden name=colors[] value=red
input type=hidden name=colors[] value=blue
input type=hidden name=colors[] value=green
input type=hidden name=colors[] value=yellow
[/code]

... and File2.php will do its job as desired.

Shaunak

 -Original Message-
 From: Imran Asghar [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, February 11, 2004 3:17 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] array data


 Hi,

 Is not working, is it correct way

 File1.php
? $colors = array('red','blue','green','yellow'); ?
form action=file2.php method=post
   input type=hidden type name=colors value=?=$colors?
   /fomr

 File2.php

 ?
  echo $colors[0];
  echo $colors[1];
  echo $colors[2];
  echo $colors[4];
 ?



 imee


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Getting image size for a compressed flash movie

2004-02-11 Thread Shaunak Kashyap
Is there any way in PHP to get the height and width attributes of a
compressed flash movie? I have tried getimagesize() which seems to work for
uncompressed flash movies but will not work for compressed movies.

TIA

Shaunak

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] [Q]PHP not taking input values from forms

2004-02-11 Thread Shaunak Kashyap
Please post your code. It makes it easier to understand the problem.

Shaunak

 -Original Message-
 From: Dan Aloma [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, February 11, 2004 12:47 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] [Q]PHP not taking input values from forms
 
 
 Can anyone tell me why PHP is not taking any values I give it? In other 
 words, if I post something it doesn't accept any of those values. 
 I have set 
 register_globals to on, which is the only thing I could think of 
 that would 
 be doing this. I'm a newbie to php, and I've scoured the net for 
 an answer 
 to no avail. Thanks in advance.
 
 _
 Click here for a FREE online computer virus scan from McAfee. 
 http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] php with mysql COUNT, DISTINCT syntax, might be a bit 0T

2004-02-09 Thread Shaunak Kashyap
Try this:

SELECT COUNT(*), order_number FROM  . $prefix . _purchases GROUP BY
order_number

as your query.

Shaunak

- Original Message - 
From: Ryan A [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, February 09, 2004 8:36 PM
Subject: [PHP] php with mysql COUNT, DISTINCT syntax, might be a bit 0T


 Hi,
 I have a table where a users details are entered for the products he
bought,
 the only part that is repeated is the order_id,
 I basically need to only get the order per person, and paginate for all
the
 customers

 eg:
 if user tom bought 3 items in the database it would be entered as:
 order_id  item_name
 023 soap
 023 brush
 023 towel

 So i am trying this:
 $num_rows = mysql_result(mysql_query(SELECT COUNT(*),
 DISTINCT(order_number)   FROM .$prefix._purchases),0);

 (the idea being taht $num_rows will give my paginating part of the program
 the total number of records
 that match my search.)


 which gives me the most pretty error of:
 Warning: mysql_result(): supplied argument is not a valid MySQL result
 resource in \www\p\admin\show_purc.php on line 9

 I''m pretty sure the problem is in my SQL statement, but have had no luck
 searching and reading in the mysql manual for
 count with distinct but am pretty sure it can be done as i have not
 found anything saying the opposite...any ideas?

 Thanks,
 -Ryan

 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Application-level variables

2004-02-08 Thread Shaunak Kashyap
I haven't worked with ColdFusion much so I'm not quite sure what
application-level variables are. However, I did do some quick research and I
believe they are basically variables that are available to all scripts
running on the server (correct me if I'm wrong).

Assuming the above definition of application variables, I would say that I
don't know of any PHP mechanism that allows such functionality. However, I
did find an article that talks about alternatives. Here it is:
http://php.weblogs.com/php_application_variables

HTH,

Shaunak

- Original Message - 
From: Lloyd Bayley [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, February 08, 2004 5:54 AM
Subject: [PHP] Application-level variables


 Greetings Everyone,

 I am still new to PHP but am progressing nicely. I has helped a lot that I
 have had vast experience with ColdFusion (sorry) but have seen the light
 and am now doing rather nicely in PHP.

 My question is as follows...

 I have certain functions, variables etc that I would like to be active in
 an application-wide state.
 CF has an application.cfm file that is read in (if it exists in the
 directory) which is used for this purpose.

 Is there a similar creature in PHP? If not, how is it best to define
 application-level stuff?


 Many Thanks In Advance,


 Lloyd. :-)

 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PhP to work with ftp

2004-02-06 Thread Shaunak Kashyap
What version of PHP have you installed? What OS are you running?

http://us2.php.net/manual/en/ref.ftp.php says:

QUOTE
In order to use FTP functions with your PHP configuration, you should add
the --enable-ftp option when installing PHP 4 or --with-ftp when using PHP
3.
The windows version of PHP has built in support for this extension. You do
not need to load any additional extension in order to use these functions.
UNQUOTE

Also, try running phpinfo() on your system and see what it has to say about
ftp.

HTH,

Shaunak

- Original Message - 
From: Mrs. Geeta Thanu [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, February 06, 2004 8:48 PM
Subject: [PHP] PhP to work with ftp


 Hi all,

 I have installed PHP to work with apache and is working fine.
 Now I want to upgrade this PHP to support FTP also.
 Should I have to Install now from the begining.

 configure --with-mysql --with-apxs=/users/apache/bin/apxs

 I have configured PHP with the above parameters.

 Now should I have to again redo it with including
 --enable-ftp also.

 Pls help
 Thanks
 Geetha

 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] beginner question about while loops

2004-02-06 Thread Shaunak Kashyap
1. Using [] creates a new array element. Hence the error. You can try this
piece of code inside the loop

[code]
if (strstr ($file, '.jpg')){

$refPictures =  $pictures[];

$refPictures = $file;
  print $refPictures;
}
[/code]

$refPictures holds a reference to the newly created element of the $pictures
array. Therefore, by assigning $file to $refPictures, $file is actually
getting assigned to the newly created element of the $pictures array. The
same logic applies in the print statement

2. Again, using [] in the var_dump indicates that you are trying to create a
new element of the $pictures array. If dumping the contents of the entire
array along with their data types and such is what you are trying to
achieve, the correct syntax is

[code]
var_dump($pictures);
[/code]

 -Original Message-
 From: Paul Furman [mailto:[EMAIL PROTECTED]
 Sent: Friday, February 06, 2004 3:09 PM
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP] beginner question about while loops


 Eric Gorr wrote:
 
  the while function knows to just go through those and fills in array
  numbers accordingly?
 
 
  The while function has nothing to do with it. Using the syntax $array[]
  simply adds an element onto the _end_ of the array and PHP picks the
  next logical, numerical index.


 OK thanks guys, I got the missing curly brace  some other messes.

 So when assigning values to an array inside a loop, it knows to advance
 to the next but then if I want to print those out at the same time, it's
 complaining

while ($file = readdir($fh)){
if (strstr ($file, '.jpg')){
$pictures[] = $file;
#print $pictures[];  #Fatal error: Cannot use [] for reading
}
var_dump ($pictures[]); #Fatal error: Cannot use [] for reading
}



 This one works but complains about Undefined variable: pictures NULL
 array (but it dumps the contents of $pictures[]:

while ($file = readdir($fh)){
if (strstr ($file, '.jpg')){
$pictures[] = $file;
}
var_dump ($pictures);
}

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] multilingual website

2004-02-05 Thread Shaunak Kashyap
 My inclination would be to just use the DB, have linked tables with
 languages and pieces of text in various languages. A single query could
 get a full language preference setting for a site, and a little array
 munging could turn it into a usable set of key/value pairs, where the key
 is the context of the text, and the value if the text itself.

 (Been thinking about this alot, since I'm being asked to develop a hybrid
 flash/html site that needs to be in Spanish and English)


Yes, I would also recommend the DB approach. The tables in your DB that
contain language-sensitive information would probably have a languageId
field which you could use to limit your result set to a specific language.

HTH,

Shaunak

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Website Architecture

2004-02-05 Thread Shaunak Kashyap
The best way, IMHO, is to use absolute paths (from docroot, of course)
whenever you include or require files. The same logic can be applied to the
related problem of links.

Shaunak

 -Original Message-
 From: Eric Gorr [mailto:[EMAIL PROTECTED]
 Sent: Thursday, February 05, 2004 4:35 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] Website Architecture


 I've got a directory structure similar to this:

 SiteRootDir

index.php

dirA
  index.php

dirB
  funcs.php

otherfuncs.php

 In the SiteRootDir/index.php, I've got:

require_once( dirB/funcs.php );

 in funcs.php, I've got:

require_once( otherfuncs.php );

 which works because SiteRootDir/index.php is the location from which files
 are looked for.


 However, in dirA/index.php, I've got:

require_once( ../dirB/funcs.php );

 and require_once( otherfuncs.php ) in funcs.php cannot be
 found.

 A solution I found was in dirA/index.php, to chdir( .. ); before
 the require_once, which moves the current directory to SiteRootDir
 and allows otherfuncs.php to be found ... is this the best way to
 solve this problem?

 A seperate, but related question

 funcs.php contains statements of the form:

echo a href=\directoryname\linkname/abr;

 forming a relative URL. Again, this would point to a different
 location depending on whether dirA/index.php or SiteRootDir/index.php
 called the function containing this relative URL and I want them to
 point to the same location.

 I was able to find a solution by doing the following:

 function AFunction( $toRoot )
 {
$location = $toRoot . locationFromSiteRootDir;
echo a href=\$location\linkname/abr;
 }

 So, from dirA/index.php, I would call AFunction like:

AFunction( .. );

 Is this the best way to solve this problem?

 Thank you.

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: CGI Timeout

2003-07-29 Thread Shaunak Kashyap
This *might* work:

At the top of your script that processes the uploaded file try adding this
line:

set_time_limit(0);

This essentially removes any restrictions on the maximum execution time for
a script. For more information visit:
http://www.php.net/manual/en/function.set-time-limit.php

Hope this helps.

Shaunak

Imran [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi,
i facing a error during uploading a big size file (abt 200 MB). i incred =
upload file size in php.ini and also incred connection time in IIS (web =
server), but i getting again this below written error msg.

any one known abt this...

CGI Timeout
The specified CGI application exceeded the allowed time for processing. The
server has deleted the process.


thnx

gnome








-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: small request

2003-07-27 Thread Shaunak Kashyap
 I want to find out if this is my browsers fault or the settings in my
 php.ini, can you goto http://bestwebhosters.com/my.login.php then look at
 the page source and tell me if there is a hidden variable after the form
tag
 with the name PHPSESSID


Yes.

Shaunak



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Sorting algorithm(s) used by PHP's sort function

2003-07-24 Thread Shaunak Kashyap
Does anyone know what sorting algorithm(s) -- quicksort, mergesort,
radix sort, etc. -- does PHP use internally in its sort function?



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php