[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

[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

[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

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? >

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 wh

[PHP] Namespace issues

2004-06-15 Thread Shaunak Kashyap
aused 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
e d.php to look like this: > > > > > > include "a.php"; > > include "b.php"; > > > > > > This does NOT cause the same fatal error. When I called foo > from d.php, it > > called the foo defined in a.php > > > > > > Ca

RE: [PHP] encrypt and decrypt in php

2006-03-07 Thread Shaunak Kashyap
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 Deve

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

RE: [PHP] What am I missing?

2006-03-07 Thread Shaunak Kashyap
rom 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

RE: [PHP] class constants

2006-03-07 Thread Shaunak Kashyap
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-ma

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() WHERE = to figure out the next primary key. Shaunak Kashyap Senior Web Developer WPT Enterprises, Inc. 5700

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

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

2006-03-15 Thread Shaunak Kashyap
tween } 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

[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

RE: [PHP] Converting a string

2006-03-17 Thread Shaunak Kashyap
n 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 conta

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

RE: [PHP] Re: session vars

2006-03-21 Thread Shaunak Kashyap
ally, 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 transm

RE: [PHP] Re: session vars

2006-03-21 Thread Shaunak Kashyap
rovide 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 S

RE: [PHP] file_get_contents / url wrappers

2006-03-27 Thread Shaunak Kashyap
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

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 L

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

RE: [PHP] word matrix

2006-03-28 Thread Shaunak Kashyap
$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.w

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.

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 th

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

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

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

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 app

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 sy

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] [/code] What you probably want to do instead is something like this: [code] // close loop [/code] This will create the f

[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:

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

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 scr

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 PROTECTE

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 * > > > H

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,

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 p

RE: [PHP] Obtaing the URL of current page

2004-02-26 Thread Shaunak Kashyap
TTP_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

[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 f

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

2004-03-10 Thread Shaunak Kashyap
TECTED] > 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 bro

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. Sh

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

RE: [PHP] Last Sunday in September?

2006-02-17 Thread Shaunak Kashyap
/ 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

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

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.9