[PHP] Re: How to optimize select of random record in DB ?

2004-10-14 Thread Matthew Weier O'Phinney
* -{ Rene Brehmer }- <[EMAIL PROTECTED]>: > I made this code to pick a random record from a changeable number of > records in a given table. > I'm just curious if any of the more awake coders out there can see a way to > optimize this for better performance, since there's several other DB > quer

Re: [PHP] replacing characters in a string

2004-10-14 Thread Robby Russell
On Thu, 2004-10-14 at 21:04 -0500, Mark Hubert wrote: > This should be simple but having never have done it before and at > deadline...help please. > > Need to change: > > [EMAIL PROTECTED] > > to; > > user=domain Did you try searching on the php site or google first? http://www.google.com

[PHP] Problem with MSSQL

2004-10-14 Thread Yusuf Tikupadang
Hi, I'm a new member in this mailing list. I have a problem with large data in mssql (more than 100.000 record in one table). If I want to browse it from record 10 until 19 (like when I press next button), php have to read all data (select * from table). Is it posible to read only the record that

[PHP] How to optimize select of random record in DB ?

2004-10-14 Thread -{ Rene Brehmer }-
I made this code to pick a random record from a changeable number of records in a given table. I'm just curious if any of the more awake coders out there can see a way to optimize this for better performance, since there's several other DB queries on the same page. $records = mysql_query("SEL

Re: [PHP] dbm choices - advice?

2004-10-14 Thread Justin French
On 15/10/2004, at 2:46 AM, Jed R. Brubaker wrote: Hi all - I am looking at using a dbm-style cache system and was wondering if anyone has any recommendations from the plethora of systems listed here: http://us2.php.net/manual/en/ref.dba.php Is there a favorite? I know if probably depends on what

Re: [PHP] throw me a bone for a regexp please.

2004-10-14 Thread Jason Wong
On Friday 15 October 2004 10:35, Robet Carson wrote: > need a regexp to get the contents of this marker or one very simular: > > {!STATISTICS:starbucks!} > > what I am looking for is to get the "STATISTICS" and "starbucks" into > an array() if possible. I believe with the correct regexp this can b

[PHP] PHP 5.0.2 & LDAP SASL Binds (GSSAPI specifically)

2004-10-14 Thread Quanah Gibson-Mount
I see that php 5.0.2 has added the "ldap_sasl_bind" function. I compiled php-5.0.2 against our OpenLDAP w/ SASL support libraries, and went ahead to give it a whirl: #!/usr/local/bin/php However, what I get back is: Warning: ldap_sasl_bind() [function.ldap-sasl-bind]: Unable to bind to serve

Re: [PHP] Ask for help on a mysql problem

2004-10-14 Thread John Nichel
Teng Wang wrote: I wanna setup a tree structure. Each node in this tree is a table. Each table has a "link" field. For each record, the data in this field is a pointer to another table or null. I read mysql manual but don't find any clues that SQL supports such a "link" field. Does anyone has an id

[PHP] throw me a bone for a regexp please.

2004-10-14 Thread Robet Carson
need a regexp to get the contents of this marker or one very simular: {!STATISTICS:starbucks!} what I am looking for is to get the "STATISTICS" and "starbucks" into an array() if possible. I believe with the correct regexp this can be accomplished using preg_split() or by getting the contents of

Re: [PHP] problem with array

2004-10-14 Thread Minuk Choi
$selectedCol=$row["selectedCol"]; echo $selectedCol; $selectedColName=$row[$selectCol]; //<--- PLEASE NOTE THIS SPECIFIC ROW Please give me the output, what do you get from "echo $selectedCol;"? If I had to guess, it looks like you're confusing key and value of an associatative ar

Re: [PHP] problem with array

2004-10-14 Thread Jason Wong
On Friday 15 October 2004 09:58, Dale Hersowitz wrote: > For some reason, on the last row, I am not unable to reference a particular > index in the array using a php variable. This has been working for almost > 12 months and now the coding is breaking all over the place. I don't have > an answer.

Re: [PHP] replacing characters in a string

2004-10-14 Thread Dan Joseph
> This should be simple but having never have done it before and at > deadline...help please. > > Need to change: > > [EMAIL PROTECTED] > > to; > > user=domain str_replace() is what you want... $var = str_replace( "@", "=", $oldvar ); -Dan Joseph -- PHP General Mailing List (http://www.ph

[PHP] replacing characters in a string

2004-10-14 Thread Mark Hubert
This should be simple but having never have done it before and at deadline...help please. Need to change: [EMAIL PROTECTED] to; user=domain Thank you! Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] problem with array

2004-10-14 Thread Dale Hersowitz
Hi guys, Recently, I had to reformat one of the web servers and now I have encountered an unusual problem. I am not sure whether this is an issue which can be fixed in the .ini file or whether its specific to the version of php I am using. Here is the problem: $query="SELECT * FROM customizeVie

Re: [PHP] For how long session exist

2004-10-14 Thread Dan Joseph
> > For what period of time a session can exist? Or session exist as soon > > as browser is open? > > 1. For as long as the user is active > 2. Depends on what page the browser opens I'm gonna elaborate a bit... In your php.ini there is a session idle timeout setting. The inactivity John mentio

[PHP] Ask for help on a mysql problem

2004-10-14 Thread Teng Wang
I wanna setup a tree structure. Each node in this tree is a table. Each table has a "link" field. For each record, the data in this field is a pointer to another table or null. I read mysql manual but don't find any clues that SQL supports such a "link" field. Does anyone has an idea about that?

Re: [PHP] For how long session exist

2004-10-14 Thread John Holmes
Jerry Swanson wrote: For what period of time a session can exist? Or session exist as soon as browser is open? 1. For as long as the user is active 2. Depends on what page the browser opens -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine fo

Re: [PHP] Form Validation

2004-10-14 Thread Jerry Swanson
On what percent browsers Javascript is enabled? On Wed, 13 Oct 2004 15:48:51 -0700, Mattias Thorslund <[EMAIL PROTECTED]> wrote: > There are several JavaScript solutions for validating forms on the > client side. Search on hotscripts.com and google.com. > > Client-side validation (in the browse

[PHP] For how long session exist

2004-10-14 Thread Jerry Swanson
For what period of time a session can exist? Or session exist as soon as browser is open? TH -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Help with sessions problem please

2004-10-14 Thread John Holmes
Chris Shiflett wrote: --- John Holmes <[EMAIL PROTECTED]> wrote: header('Location: http://www.example.org/script2.php?".SID); He is human after all. :-) That's just a "rumour' I started... -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for

Re: [PHP] include()ing into a variable

2004-10-14 Thread Curt Zirzow
* Thus wrote Mag: > Hi Curt, > Thanks for replying. > > > $obSaveFile = new SaveToFile(); > > $obSaveFile->open('/path/to/file.html'); > > ob_start(array(&$obSaveFile, 'save'), 1024); > > > > /* do your stuff here */ > > > > ob_end_flush(); > > $obSaveFile->close(); > > > Problem is, I have n

RE: [PHP] new connection with pg_pconnect

2004-10-14 Thread Pablo Gosse
[snip] I then have the page main.php which has '.$dbconn.'<-'; ?> the scripts just dies whenever I include the pg_connect function... if I change echo '->'.$dbconn.'<-'; to echo '->==='.$dbconn.'<-'; I'll still see -><- on my page if I remove the pg_connect function, I'll see ->===<-;

RE: [PHP] new connection with pg_pconnect

2004-10-14 Thread Jonathan Villa
> [snip] > I'm trying to add some new features to an existing project. The project > uses pg_pconnect and sets it into a global var... > > What I'm trying to do is to create a new database class which connects > to a different database on the same server. By the time my code gets > reached, the p

Re: [PHP] Referring Page

2004-10-14 Thread Matt M.
> >> I am trying to set up a script that will do different things based on > >> the > >> reffering page, without having to include the information in the URL. > >> Does > >> PHP have a built in variable or function that would tell the rest of the > >> script what page the user came from? Any help

Re: [PHP] Referring Page

2004-10-14 Thread Jason Wong
On Friday 15 October 2004 05:03, Jonathan Villa wrote: > > there is $_SERVER['HTTP_REFERER'] > > > > but it is unreliable > > Can I ask why? archives. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Ap

Re: [PHP] Referring Page

2004-10-14 Thread Greg Donald
On Thu, 14 Oct 2004 16:47:08 -0400, John Nichel <[EMAIL PROTECTED]> wrote: > Will return nothing. > > $_SERVER['HTTP_REFERER'] Just an FYI.. Some versions of IE do not report this info. And some of the newer home firewall software applications scrub it out under the guise of privacy, Norton Per

Re: [PHP] Image upload not working correctly

2004-10-14 Thread Jason Wong
Please do not top-post. On Thursday 14 October 2004 23:52, Dave Grant wrote: > Thanks for the reponse. Yes, the destination paths look fine and the PHP > error log displays no errors. Any other ideas? move_uploaded_file() _will_ spit out an error if there are any problems. So if you're _positi

RE: [PHP] Referring Page

2004-10-14 Thread Ben Miller
Thanks all. That did it perfectly. -Original Message- From: Matt M. [mailto:[EMAIL PROTECTED] Sent: Thursday, October 14, 2004 2:21 PM To: Ben Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Referring Page > I am trying to set up a script that will do different things based on the > reffering

Re: [PHP] Referring Page

2004-10-14 Thread Jonathan Villa
*typo > Jonathan Villa wrote: >> $referrer = $_SERVER['REFFERER']; > > Will return nothing. > > $_SERVER['HTTP_REFERER'] > > > -- > John C. Nichel > ÜberGeek > KegWorks.com > 716.856.9675 > [EMAIL PROTECTED] > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://w

Re: [PHP] new connection with pg_pconnect

2004-10-14 Thread Greg Donald
On Thu, 14 Oct 2004 14:30:18 -0500 (CDT), Jonathan Villa <[EMAIL PROTECTED]> wrote: > I'm assuming that I need to close the persistent connection before I can > open a new one, but from my understanding, persistent connections cannot > be closed... That is true for all persistant db connection fun

Re: [PHP] Referring Page

2004-10-14 Thread Jonathan Villa
Can't be put any more plainly than that, thanks... > Ben wrote: >> I am trying to set up a script that will do different things based on >> the >> reffering page, without having to include the information in the URL. >> Does >> PHP have a built in variable or function that would tell the rest o

Re: [PHP] Referring Page

2004-10-14 Thread Jonathan Villa
>> I am trying to set up a script that will do different things based on >> the >> reffering page, without having to include the information in the URL. >> Does >> PHP have a built in variable or function that would tell the rest of the >> script what page the user came from? Any help is much appr

Re: [PHP] include()ing into a variable

2004-10-14 Thread Mag
Hi Curt, Thanks for replying. > class SaveToFile { > function open($file) { > //open file... > } > function write($buf) { > //write to file... > } > function close() { > //close file > } > } > $obSaveFile = new SaveToFile(); > $obSaveFile->open('/path/to/file.html'); > ob

Re: [PHP] Referring Page

2004-10-14 Thread John Nichel
Jonathan Villa wrote: $referrer = $_SERVER['REFFERER']; Will return nothing. $_SERVER['HTTP_REFERER'] -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Referring Page

2004-10-14 Thread John Nichel
Ben wrote: I am trying to set up a script that will do different things based on the reffering page, without having to include the information in the URL. Does PHP have a built in variable or function that would tell the rest of the script what page the user came from? Any help is much appreci

[PHP] PHP 5.02 and Fedora Core 2 Installation question

2004-10-14 Thread Don
Has anyone had any luck installing with the --with-imap configuration option. IMAP doesn't seem to be installed (nor imap-devel) and the c library specified in the docs at php.net does not compile. Don --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.gris

Re: [PHP] Referring Page

2004-10-14 Thread Matt M.
> I am trying to set up a script that will do different things based on the > reffering page, without having to include the information in the URL. Does > PHP have a built in variable or function that would tell the rest of the > script what page the user came from? Any help is much appreciated.

RE: [PHP] new connection with pg_pconnect

2004-10-14 Thread Pablo Gosse
[snip] I'm trying to add some new features to an existing project. The project uses pg_pconnect and sets it into a global var... What I'm trying to do is to create a new database class which connects to a different database on the same server. By the time my code gets reached, the pg_pconnect gl

Re: [PHP] Referring Page

2004-10-14 Thread bbonkosk
Yes, write a script with: and you will find all the wonderous variables at your disposal... -B - Original Message - From: Ben <[EMAIL PROTECTED]> Date: Thursday, October 14, 2004 3:37 pm Subject: [PHP] Referring Page > I am trying to set up a script that will do different things based

Re: [PHP] Referring Page

2004-10-14 Thread Jonathan Villa
$referrer = $_SERVER['REFFERER']; something like that... then you can do something like if ($referrer == 'whatever') $sdaf = "whatever"; I usually do something like if (strpos($referrer,'pagename.php')) //execute code > I am trying to set up a script that will do different things based

RE: [PHP] Referring Page

2004-10-14 Thread Pablo Gosse
[snip] > I am trying to set up a script that will do different things based on > the reffering page, without having to include the information in the > URL. Does PHP have a built in variable or function that would tell > the rest of the script what page the user came from? Any help is > much appr

Re: [PHP] User Defined Forms

2004-10-14 Thread Dan Joseph
> > > I have interviewed a few users and it has become instantly > > > apparent that > > > they all work differently and record slightly different > > > information about > > > their clients making it impossible to produce a general set > > > of forms that > > > would encompass all users. I haven't

Re: [PHP] include()ing into a variable

2004-10-14 Thread Gerard Samuel
Mag wrote: Hi, I have never done this before (but in my first test it seems to work), I am include()ing a file into a variable like this: $a=include("th-file.php"); Will this give me any extra problems later on? or is this resource intensive? I've seen other people do something similar to this, but

Re: [PHP] include()ing into a variable

2004-10-14 Thread Simas Toleikis
ApexEleven wrote: I believe that include() returns true|false, so $a would equal true if the file is included and false if it is not. If you use *return* on global scope in include file that value will be returned to $a. -- test.php -- $test = "Hello"; return $test; - $a = include "test.php";

Re: [PHP] Tutorials for Maintenance of State

2004-10-14 Thread GH
I found it interesting... you did a good job. However I am running confused laps in my brain on what do I do to actually set it up... I know about sessions... but I am even more concerened now about the use of cookies but I am not 100% sure on how to accomplish this when I was dabbling in C

RE: [PHP] intenger

2004-10-14 Thread Jay Blanchard
[snip] Do you mean an integer? As in $i = 5; Print $i; ? [/snip] That would be the one(1) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Referring Page

2004-10-14 Thread Ben
I am trying to set up a script that will do different things based on the reffering page, without having to include the information in the URL. Does PHP have a built in variable or function that would tell the rest of the script what page the user came from? Any help is much appreciated. Ben

[PHP] new connection with pg_pconnect

2004-10-14 Thread Jonathan Villa
I'm trying to add some new features to an existing project. The project uses pg_pconnect and sets it into a global var... What I'm trying to do is to create a new database class which connects to a different database on the same server. By the time my code gets reached, the pg_pconnect global va

Re: [PHP] include()ing into a variable

2004-10-14 Thread Curt Zirzow
* Thus wrote Mag: > Hi, > I have never done this before (but in my first test it > seems to work), I am include()ing a file into a > variable like this: > > $a=include("th-file.php"); > > Will this give me any extra problems later on? or is > this resource intensive? > > The reason I am doing th

RE: [PHP] include()ing into a variable

2004-10-14 Thread Jesse Castro
[snip] $a=include("th-file.php"); [/snip] Mag, I have never seen this approach before. This is the way I would do something like that. $file="./th-file.php"; if (!($fp = fopen($file,"r"))){ echo "Could not open ".$file; exit(); } $a = fread($fp, filesize($file)); fclose($fp);

Re: [PHP] include()ing into a variable

2004-10-14 Thread ApexEleven
I believe that include() returns true|false, so $a would equal true if the file is included and false if it is not. On Thu, 14 Oct 2004 10:35:15 -0700 (PDT), Mag <[EMAIL PROTECTED]> wrote: > Hi, > I have never done this before (but in my first test it > seems to work), I am include()ing a file in

Re: [PHP] User Defined Forms

2004-10-14 Thread Shaun
"Ed Lazor" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > I have interviewed a few users and it has become instantly > > apparent that > > they all work differently and record slightly different > > information about > > their clients making it impossible to produce a general set

RE: [PHP] User Defined Forms

2004-10-14 Thread Graham Cossey
I think the problem here will be in the database design. You certainly could store PDFs or the like, but then someone is going to want to run queries, produce reports, make updates etc etc. The problem (I think) is to come up with a db design that is not fixed to a given form structure. Using the

RE: [PHP] User Defined Forms

2004-10-14 Thread Ed Lazor
> I have interviewed a few users and it has become instantly > apparent that > they all work differently and record slightly different > information about > their clients making it impossible to produce a general set > of forms that > would encompass all users. I haven't done any other forms of

RE: [PHP] intenger

2004-10-14 Thread Ed Lazor
Do you mean an integer? As in $i = 5; Print $i; ? > -Original Message- > From: Juan Pablo Herrera [mailto:[EMAIL PROTECTED] > Sent: Thursday, October 14, 2004 10:19 AM > To: [EMAIL PROTECTED] > Subject: [PHP] intenger > > Please, i need output a intenger, what function can i use f

Re: [PHP] intenger

2004-10-14 Thread Dan Joseph
> Please, i need output a intenger, what function can i use for this?. > Print?, echo? $i = 12; echo $i; -Dan Joseph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] intenger

2004-10-14 Thread ApexEleven
settype($var,int); On Thu, 14 Oct 2004 14:19:28 -0300 (ART), Juan Pablo Herrera <[EMAIL PROTECTED]> wrote: > Please, i need output a intenger, what function can i use for this?. > Print?, echo? > > Thank you. > JP > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit:

[PHP] include()ing into a variable

2004-10-14 Thread Mag
Hi, I have never done this before (but in my first test it seems to work), I am include()ing a file into a variable like this: $a=include("th-file.php"); Will this give me any extra problems later on? or is this resource intensive? The reason I am doing this is because I want to put whole pages

Re: [PHP] intenger

2004-10-14 Thread John Nichel
Juan Pablo Herrera wrote: Please, i need output a intenger, what function can i use for this?. Print?, echo? Thank you. JP Why not try them both, and see which one works. -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsu

Re: [PHP] intenger

2004-10-14 Thread bbonkosk
Start here... http://us2.php.net/manual/en/language.types.php - Original Message - From: Juan Pablo Herrera <[EMAIL PROTECTED]> Date: Thursday, October 14, 2004 1:19 pm Subject: [PHP] intenger > Please, i need output a intenger, what function can i use for this?. > Print?, echo? > > Than

Re: [PHP] Re: Knowledgebase/Troubleshooter

2004-10-14 Thread Lee Standen
Thanks Pete, I've already spent about 45 minutes trying to find a project which does this, to no avail... On Thu, 14 Oct 2004, pete M wrote: goto sourceforge.net there's tons of stuff there.. No need to reinvent the wheel ;-))) pete Lee Standen wrote: Hi Guys, I was wondering if anyone knows of

Re: [PHP] User Defined Forms

2004-10-14 Thread Shaun
"Jay Blanchard" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] [snip] I am creating a site where users record details of their clients and record their progress. The whole point of the system is to reduce the amount of paper work and store everything online. [/snip] How much time ha

Re: [PHP] User Defined Forms

2004-10-14 Thread bbonkosk
Create some format to store the info for the form contents... like off the top of my head... TEXT:Name:20:RADIO:Sex:Option1:Option2:CHECKBOX:State:Option1:Option2:...:PASSWORD:Password:20: Just an example, but doable to store in a database, then you create parsing functions to handle this str

Re: [PHP] User Defined Forms

2004-10-14 Thread Greg Donald
On Thu, 14 Oct 2004 18:01:48 +0100, Shaun <[EMAIL PROTECTED]> wrote: > I am creating a site where users record details of their clients and record > their progress. The whole point of the system is to reduce the amount of > paper work and store everything online. Like project management? Know abo

[PHP] intenger

2004-10-14 Thread Juan Pablo Herrera
Please, i need output a intenger, what function can i use for this?. Print?, echo? Thank you. JP -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] User Defined Forms

2004-10-14 Thread Jay Blanchard
[snip] I am creating a site where users record details of their clients and record their progress. The whole point of the system is to reduce the amount of paper work and store everything online. [/snip] How much time have you spent with the users? How well do you understand their needs? Have you

[PHP] User Defined Forms

2004-10-14 Thread Shaun
Hi, I am creating a site where users record details of their clients and record their progress. The whole point of the system is to reduce the amount of paper work and store everything online. The problem here is that each user will have their own forms to fill in on their clients, some will reco

Re: [PHP] dbm choices - advice?

2004-10-14 Thread Greg Donald
On Thu, 14 Oct 2004 10:46:02 -0600, Jed R. Brubaker <[EMAIL PROTECTED]> wrote: > Hi all - I am looking at using a dbm-style cache system and was wondering if > anyone has any recommendations from the plethora of systems listed here: > http://us2.php.net/manual/en/ref.dba.php > Is there a favorite?

Re: [PHP] Re: Determine variable with the lowest value?

2004-10-14 Thread Greg Donald
On Thu, 14 Oct 2004 10:52:20 -0500, BOOT <[EMAIL PROTECTED]> wrote: > OK thanks but I guess I didn't explain what I am trying to do properly. > > I need to be able to identify the variable name as well as pick the variable > with the lowest value. > > Something like this: > > Whose turn is it to

[PHP] dbm choices - advice?

2004-10-14 Thread Jed R. Brubaker
Hi all - I am looking at using a dbm-style cache system and was wondering if anyone has any recommendations from the plethora of systems listed here: http://us2.php.net/manual/en/ref.dba.php Is there a favorite? I know if probably depends on what I want to do, so in short, I am looking to create

Re: [PHP] Re: Determine variable with the lowest value?

2004-10-14 Thread ApexEleven
/* Untested Code */ $arr[0]['id'] = 3; $arr[0]['name] = 'Mike'; $arr[1]['id'] = 2; $arr[1]['name'] = 'Bob'; $arr[2]['id'] = 5; $arr[2]['name'] = 'Jane'; array_multisort($arr['id'],$arr['name']); print "It's ".$arr[0]['name']."'s Turn To Take Out The Garbage!"; /* End Untested Code */ On Thu,

Re: [PHP] Re: Determine variable with the lowest value?

2004-10-14 Thread Matt M.
On Thu, 14 Oct 2004 10:52:20 -0500, BOOT <[EMAIL PROTECTED]> wrote: > OK thanks but I guess I didn't explain what I am trying to do properly. > > I need to be able to identify the variable name as well as pick the variable > with the lowest value. > > Something like this: > > Whose turn is it to

Re: [PHP] Image upload not working correctly

2004-10-14 Thread Dave Grant
Just to clarify, everything looks like it works fine except for moving the images to the destination path. The images upload, the server recognizes them, but they don't get moved to the destination path. Thanks. "Jason Wong" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Th

Re: [PHP] Image upload not working correctly

2004-10-14 Thread Dave Grant
Thanks for the reponse. Yes, the destination paths look fine and the PHP error log displays no errors. Any other ideas? Thanks. "Jason Wong" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Thursday 14 October 2004 02:40, Dave Grant wrote: > >> echo "Thumb image uploaded to "

[PHP] Re: Determine variable with the lowest value?

2004-10-14 Thread BOOT
OK thanks but I guess I didn't explain what I am trying to do properly. I need to be able to identify the variable name as well as pick the variable with the lowest value. Something like this: Whose turn is it to take out the garbage? Mike has done it 3 times Bob has done it 2 times Jane has do

Re: [PHP] PHP 5 compile time configure options

2004-10-14 Thread Greg Donald
On Thu, 14 Oct 2004 11:24:41 -0400, Don <[EMAIL PROTECTED]> wrote: > The link: HYPERLINK > "http://www.php.net/manual/en/install.configure.php"http://www.php.net/manua > l/en/install.configure.php no longer functions. Where can I get a list of > all the PHP 5 configure options at compile time as w

Re: [PHP] PHP 5 compile time configure options

2004-10-14 Thread Jason Wong
On Thursday 14 October 2004 23:24, Don wrote: > The link: HYPERLINK > "http://www.php.net/manual/en/install.configure.php"http://www.php.net/manu >a l/en/install.configure.php no longer functions. Where can I get a list of > all the PHP 5 configure options at compile time as well as documentation

[PHP] PHP 5 compile time configure options

2004-10-14 Thread Don
The link: HYPERLINK "http://www.php.net/manual/en/install.configure.php"http://www.php.net/manua l/en/install.configure.php no longer functions. Where can I get a list of all the PHP 5 configure options at compile time as well as documentation and what they do? --- Outgoing mail is certified Viru

[PHP] Re: Knowledgebase/Troubleshooter

2004-10-14 Thread pete M
goto sourceforge.net there's tons of stuff there.. No need to reinvent the wheel ;-))) pete Lee Standen wrote: Hi Guys, I was wondering if anyone knows of a project for creating a troubleshooting wizard, much like in the Microsoft help. I've managed to make something which kind of works myself,

Re: [PHP] Security patch from 4.3.8 to 4.3.9

2004-10-14 Thread Curt Zirzow
* Thus wrote Federico Petronio: >... > > Well.. that's why I prefer patching to upgrading. > > Looking in the CVS I found this, but I am not sure if that is ALL the > change needed to fix the security bug. > > http://cvs.php.net/diff.php/php-src/main/php_variables.c?r1=1.45.2.6&r2=1.45.2.7&ty=u

[PHP] Knowledgebase/Troubleshooter

2004-10-14 Thread Lee Standen
Hi Guys, I was wondering if anyone knows of a project for creating a troubleshooting wizard, much like in the Microsoft help. I've managed to make something which kind of works myself, but the problem is writing an interface to add/remove/add/manage the questions and steps. Thanks in advance.

RE: [PHP] Table Creation Time Stamp.....

2004-10-14 Thread Mulley, Nikhil
Yeah I did it, But asked for any specic statement , any way Thanks :) -Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED] Sent: Thursday, October 14, 2004 5:53 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] Table Creation Time Stamp. [snip] How do we get the time_stamp of

Re: [PHP] Security patch from 4.3.8 to 4.3.9

2004-10-14 Thread Federico Petronio
Steve Brown wrote: Hello, I would like to know if there is a patch just for the security fix from PHP-4.3.8 to PHP-4.3.9 and where can I found it. 4.3.8 -> 4.3.9 is not a security fix, i.e. there are no security holes closed in 4.3.9. From the 4.3.9 announce: "PHP Development Team is proud to ann

Re: [PHP] Security patch from 4.3.8 to 4.3.9

2004-10-14 Thread Federico Petronio
Jason Wong wrote: On Thursday 14 October 2004 00:55, Jay Blanchard wrote: Looking at http://www.php/net/downloads I do not see one. Maybe that's why the OP asked? Anyway I don't see the reason why one would want a patch. Surely bandwidth can't be an issue? And applying a patch would most certain

Re: [PHP] looking for a few php partners/developers....

2004-10-14 Thread Robby Russell
On Thu, 2004-10-14 at 05:55 -0700, bruce wrote: > hi... > > i'm curious.. if i'm putting together a project, and am looking for a few > php developers as sweat equity partners, is this an appropriate place to > post my request..??? > > thanks > > -bruce > [EMAIL PROTECTED] > craigslist.org too

[PHP] Re: Determine variable with the lowest value?

2004-10-14 Thread Eric McGrane
Why use the min function? Just sort the array and then grab the first element in the sorted array. No random picking required. E "Paul" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Thanks guys. Yes I figured using an array and the MIN function would be a > start. > > Now the ra

[PHP] looking for a few php partners/developers....

2004-10-14 Thread bruce
Hi. We're currently working on a project and need a few php developers to really ramp up the creation of the application/system. We're building an overall system to allow college students to buy/sell used books online. The systems to support this effort have a number of components that have to b

Re: [PHP] .htaccess and .htpasswd

2004-10-14 Thread Afan Pasalic
Thanks but problem is already solved :) -afan Mulley, Nikhil wrote: Can I know the platform on which you are running apache. -Original Message- From: Matthew Sims [mailto:[EMAIL PROTECTED] Sent: Thursday, October 14, 2004 1:57 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] .htaccess and .htpas

RE: [PHP] looking for a few php partners/developers....

2004-10-14 Thread Jay Blanchard
[snip] i'm curious.. if i'm putting together a project, and am looking for a few php developers as sweat equity partners, is this an appropriate place to post my request..??? [/snip] This is one place, you can also go to http://www.phpcommunity.org -- PHP General Mailing List (http://www.php.net

[PHP] looking for a few php partners/developers....

2004-10-14 Thread bruce
hi... i'm curious.. if i'm putting together a project, and am looking for a few php developers as sweat equity partners, is this an appropriate place to post my request..??? thanks -bruce [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php

RE: [PHP] Table Creation Time Stamp.....

2004-10-14 Thread Jay Blanchard
[snip] How do we get the time_stamp of a Table creation , I know something like this would work ... SHOW TABLE STATUS LIKE 'table name' ; But How do I get only the column of time stamp column. [/snip] There is no specific way to get that column using just a query (just ask a SQL list). Bu

[PHP] Table Creation Time Stamp.....

2004-10-14 Thread Mulley, Nikhil
Hi Guys , How do we get the time_stamp of a Table creation , I know something like this would work ... SHOW TABLE STATUS LIKE 'table name' ; But How do I get only the column of time stamp column. Thanks, Nikhil.

RE: [PHP] Quick imageSize question

2004-10-14 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 13 October 2004 16:12, Mag wrote: > Hey, > > Dont worry about talking crap, I took that risk when I > started this thread :-) I was hopeing that maybe the > image would have the

RE: [PHP] Help with sessions problem please [SOLVED]

2004-10-14 Thread Graham Cossey
Thanks guys for the help, adding SID to my iframe src solved my immediate problem. Am I correct in thinking then that the SID is automatically passed on relative URLs only within the same browser/[i]frame/window when use_trans_sid is enabled? Graham > -Original Message- > From: Chris Shi

Re: [PHP] Help with sessions problem please

2004-10-14 Thread Chris Dowell
No I think it's more likely that one of his tentacles slipped Chris Shiflett wrote: --- John Holmes <[EMAIL PROTECTED]> wrote: header('Location: http://www.example.org/script2.php?".SID); He is human after all. :-) Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly HTTP

Re: [PHP] Help with sessions problem please

2004-10-14 Thread Chris Shiflett
--- John Holmes <[EMAIL PROTECTED]> wrote: > header('Location: http://www.example.org/script2.php?".SID); He is human after all. :-) Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly HTTP Developer's Handbook - Sams Coming December 2004http://httphandbook.org

Re: [PHP] Help with sessions problem please

2004-10-14 Thread Chris Shiflett
--- Jason Wong <[EMAIL PROTECTED]> wrote: > Use an absolute URL for header redirects. Glad to see someone else preaching the good HTTP gospel. :-) > You're passing the session id (SID) onto script2 but not to > script3, if that's the only method by which you're propagating > the session id then

Re: [PHP] Help with sessions problem please

2004-10-14 Thread John Holmes
Graham Cossey wrote: I'm having a bad day with sessions which hopefully someone can help me with. A user logs in to my 'site' (script1.php) and I store relevant details in a session, all fine. I redirect to another page (script2.php) which checks and retrieves certain session values, all fine. My p

Re: [PHP] Help with sessions problem please

2004-10-14 Thread Jason Wong
On Thursday 14 October 2004 17:35, Graham Cossey wrote: > A user logs in to my 'site' (script1.php) and I store relevant details in a > session, all fine. I redirect to another page (script2.php) which checks > and retrieves certain session values, all fine. My problem is with > script3.php which

[PHP] Help with sessions problem please

2004-10-14 Thread Graham Cossey
I'm having a bad day with sessions which hopefully someone can help me with. A user logs in to my 'site' (script1.php) and I store relevant details in a session, all fine. I redirect to another page (script2.php) which checks and retrieves certain session values, all fine. My problem is with scri

  1   2   >