[PHP] question about $_GET, etc

2002-09-11 Thread swade
On my laptop i still have 4.11 apache,linux on it but its just for development. I must be confused about get and post handling. I've been referrencing them in $_GET, etc but I was just working on something and linked to a script by using ?section=duh in the query string,etc Now i thought $duh

Re: [PHP] Query result to an array

2002-09-11 Thread Zak Greant
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On September 12, 2002 01:55, Christian Ista wrote: > > $result = mysql_query(...); > > while( $t = mysql_fetch_row($result) ){ > > $array[] = $t; > > } > > No. I need a 2 dimensions arrays, each line of this array, is the result > of one row

[PHP] what is wrong?

2002-09-11 Thread Meltem Demirkus
Hi, I want to understand what is wrong with this code?I am trying to understand when an empty inputs come from form and I will then give a warning message.. if($_POST[new_password1] == " ") echo "empty input"; thanks.. meltem -- PHP General Mailing List (http://www.php.net/) To unsubscr

[PHP] Date-format

2002-09-11 Thread Tommi Virtanen
Hi! I have web-form, which has field (10 chars), there I enter date (format dd.mm.). Then data saves to database (date-field type is date). So everything works, but not fine. When I enter date in format ex. 31.12.2002 and save form, then I'll check what are in db (there are 2031-12-20). I

RE: [PHP] frame

2002-09-11 Thread Martin Towell
Sorry, can't help you there. I'm not familiar with swf_* functions Martin -Original Message- From: dinnie [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 4:59 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] frame anyway thanks before mr martin..^_^ i know to use it if use htm

RE: [PHP] Query result to an array

2002-09-11 Thread Martin Towell
> > $result = mysql_query(...); > while( $t = mysql_fetch_row($result) ){ > $array[] = $t; > } > > No. I need a 2 dimensions arrays, each line of this array, is the result > of one row of the query and each cell of this row is a field from the > select. > > Example, the query return

Re: [PHP] Query result to an array

2002-09-11 Thread Christian Ista
> $result = mysql_query(...); > while( $t = mysql_fetch_row($result) ){ > $array[] = $t; > } No. I need a 2 dimensions arrays, each line of this array, is the result of one row of the query and each cell of this row is a field from the select. Example, the query return 2 row and 3 f

Re: [PHP] PreCaching Db into Variables Slows it down?!??

2002-09-11 Thread Peter J. Schoenster
On 12 Sep 2002 at 1:35, M1tch wrote: > Just spent ages (well, 2hours) on a precaching system for my PHP code > that didn't work out! Hang on, I'll backtrack a bit... > > My website is using a php engine that picks at snippets of html from the > database, and builds them up to form the page. A ty

Re: [PHP] Query result to an array

2002-09-11 Thread Zak Greant
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On September 12, 2002 00:56, Christian Ista wrote: > > array( > > array( $temp[0], $temp[1] ), > > array( $temp[1], $temp[2] ) > > ) > > I thinks it's not the right way. > > I have a query, this query can return 1,5,20, 200, ... rows, each

Re: [PHP] XML Parser Question

2002-09-11 Thread OrangeHairedBoy
Hmmm...hadn't thought of that... I guess I could use that if there's no alternative... What I really need is the ability to do this: I'm convinced that there just has to be a way! :) But thanks though...I'm writing that down now... Lewis "Peter J. Schoenster" <[EMAIL PROTECTED]> wrote in

Re: [PHP] Using HTTP Referer

2002-09-11 Thread Henrik Hudson
Since you're checking to see if people are logged in and then sending them to the login page if they're not...I would pass, via GET, the page they are on when they were checked for being logged in and then the script on your login page would take that GET and embed it into the POST form. When t

Re: [PHP] XML Parser Question

2002-09-11 Thread Peter J. Schoenster
On 12 Sep 2002 at 0:13, OrangeHairedBoy wrote: > Yeah...i should have mentioned I had thought of that...but I really > don't want to :) > > It just doesn't look right when it's a math expression. Know a permenant > solution? > I want to be able to handle the tag , but the parser > keeps tel

Re: [PHP] Query result to an array

2002-09-11 Thread OrangeHairedBoy
Here's a function I wrote...feel free to use it. It will convert anything into a 2D array. Sample Table: ID Name 1Bob 2Joe 3Eric 4Cody $query="select * from sampletable"; $result=mysql_query($query); $wholetable=ResultToArray($r

RE: [PHP] Query result to an array

2002-09-11 Thread Martin Towell
I'm not totally familiar with mySql, but if I remember correctly, you can get each row (one at a time) back as an (1D) array. All you need to do is append that array onto the end of your dataset array and, bob's your uncle, you have a 2D array full with your dataset HTH Martin -Original Mess

Re: [PHP] Query result to an array

2002-09-11 Thread Christian Ista
> array( > array( $temp[0], $temp[1] ), > array( $temp[1], $temp[2] ) > ) I thinks it's not the right way. I have a query, this query can return 1,5,20, 200, ... rows, each row has 5 fields (or more or less). I'd like a 2 dimensions array, one line by row and each cell is a fie

[PHP] Re: How do I upgrade my version of PHP?

2002-09-11 Thread Monty
Could you explain what "man patch" does or is? I haven't updated using a patch before. Thanks. > From: [EMAIL PROTECTED] > Newsgroups: php.general > Date: Wed, 11 Sep 2002 23:14:55 +0200 > To: [EMAIL PROTECTED] > Subject: Re: How do I upgrade my version of PHP? > > You should use the patch comma

[PHP] Re: how can I return several query results per table row?

2002-09-11 Thread OrangeHairedBoy
well, hope about this: $count=0; print ""; while (list($FirstName,$LastName)=mysql_fetch_row($result)) { $count++; if ($count == 4) { $count=0; print "\n"; } print "$FirstName $LastName\n"; } print "\n"; Or something like that...you get the ide

RE: [PHP] how can I return several query results per table row?

2002-09-11 Thread Martin Towell
basing my code on yours: $i = 0; $cols = 3; while (list($FirstName, $LastName) = mysql_fetch_row($result)) { if ($i % $cols == 0) echo ""; echo "$FirstName $LastName"; if ($i % $cols == $cols - 1) echo ""; $i++; } // clean up table... if

RE: [PHP] Using HTTP Referer

2002-09-11 Thread Craig Vincent
The problem I'm having right now is that after the user is logged in, the login.php can never send it back to the page the user came from, it will just redraw the login.php page. Obviously, $_SERVER['HTTP_REFERER'] contains the location of itself instead of the location of the page sent the user

RE: [PHP] Using HTTP Referer

2002-09-11 Thread Martin Towell
set a hidden form element to be the referring page url, then use that to redirect the user eg: then use: header("location: $myReferer"); remember, also, that $_SERVER['HTTP_REFERER'] is not always set, so you'll need to cater for that Martin -Original Message- From: Jiaqing Wang [mail

[PHP] Re: Using HTTP Referer

2002-09-11 Thread OrangeHairedBoy
The variable name is just $HTTP_REFERER. Some others are: $HTTP_USER_AGENT, $REMOTE_ADDR, $REMOTE_HOST, $QUERY_STRING, and $PATH_INFO. There's more which you can find by looping through the globals array: foreach ($GLOBALS as $key=>$value) { print "\$GLOBALS[\"$key\"] == $value\n"; } Hope this

[PHP] how can I return several query results per table row?

2002-09-11 Thread Brian Tully
I'm trying to figure out how I can format the results from a MySQL query so that I can display several records per row, i.e., I'd like to be able to format the results in a table with 3 columns, and as many rows as needed. Please excuse my inability to be concise - my brain seems to be fried from

[PHP] Using HTTP Referer

2002-09-11 Thread Jiaqing Wang
Hello, All, I'm currently working on a problem which is in need of HTTP referer or the similar technique, but I couldn't seem to find any article or links which illustrate the idea, I tried $_SERVER['HTTP_REFERER'] but somehow it didn't work for me. Let me breifly explain what I did here: I have

Re: [PHP] refresh function?

2002-09-11 Thread Chris Shiflett
The Refresh HTTP header is not an official part of the HTTP specification, so be very wary using it. Chris Paul Nicholson wrote: >There sure is!:) >/* 60 = Time in seconds */ >header("Refresh: 60; URL=http://www.php.net";); > -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] refresh function?

2002-09-11 Thread Paul Nicholson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hey, There sure is!:) /* 60 = Time in  seconds */ header("Refresh: 60; URL=http://www.php.net";); (http://php.net/header) ~Pauly On Wednesday 11 September 2002 11:56 pm, Peter wrote: > Hi, > Is there a function that will auto refresh a page? > > Th

php-general Digest 12 Sep 2002 04:13:05 -0000 Issue 1580

2002-09-11 Thread php-general-digest-help
php-general Digest 12 Sep 2002 04:13:05 - Issue 1580 Topics (messages 116010 through 116077): Re: IPlanet Webserver 116010 by: Henrik Hudson 116066 by: Justin French PHP And Apache 116011 by: Glenn 116012 by: Rasmus Lerdorf 116015 by: Glenn Need PHP

Re: [PHP] XML Parser Question

2002-09-11 Thread OrangeHairedBoy
Yeah...i should have mentioned I had thought of that...but I really don't want to :) It just doesn't look right when it's a math expression. Know a permenant solution? Lewis "Martin Towell" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > could you change t

RE: [PHP] XML Parser Question

2002-09-11 Thread Martin Towell
could you change the "<" to "<" or "%3C" or something similar? -Original Message- From: OrangeHairedBoy [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 1:59 PM To: [EMAIL PROTECTED] Subject: [PHP] XML Parser Question I've been reading the XML parser documention, and I'm no

RE: [PHP] frame

2002-09-11 Thread Martin Towell
this is more of an HTML question. You'll probably be wanting to look at and -Original Message- From: dinnie [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 12:59 PM To: Milist PHP Subject: [PHP] frame hi all, sorry for disturb all of u for a while... there's anyone can

RE: [PHP] refresh function?

2002-09-11 Thread Peter Houchin
yeah have a look at ur meta tags.. ie meta refreash > -Original Message- > From: Peter [mailto:[EMAIL PROTECTED]] > Sent: Thursday, 12 September 2002 1:56 PM > To: [EMAIL PROTECTED] > Subject: [PHP] refresh function? > > > Hi, > Is there a function that will auto refresh a page? > >

Re: [PHP] Mail() function problem

2002-09-11 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Hi, > > does that mean I can do nothing about it? > > Alva > > "Pekka Saarinen" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > At 9/10/2002, you wrote: > > >Hi Everyone, > > > > > >I did a simp

[PHP] Re: refresh function?

2002-09-11 Thread OrangeHairedBoy
That's actually an HTML function. Just insert this in the ... tags: If you want it to refresh itself, use: In either case, replace "2" with the number of seconds to wait from the time the page finishes loading before refreshing. Lewis "Peter" <[EMAIL PROTECTED]> wrote in message [EMAIL P

[PHP] XML Parser Question

2002-09-11 Thread OrangeHairedBoy
I've been reading the XML parser documention, and I'm not having much luck. I want to be able to handle the tag , but the parser keeps telling me that it's not formed correctly (because of the "<" in the quotes). But shouldn't it ignore that as a tag-opening "<" since it's inside quotes?? Anyway,

[PHP] refresh function?

2002-09-11 Thread Peter
Hi, Is there a function that will auto refresh a page? Thanks in advance, -Peter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] frame

2002-09-11 Thread dinnie
hi all, sorry for disturb all of u for a while... there's anyone can hel me...?? i'm a beginner in PHPer... right now... i'm trying to make 2 frames in one file... example.. setup.php as main program with 2 frame then i want to call dispsetup.php and display it in second frame... how the way

Re: [PHP] strtolower -> strtoupper

2002-09-11 Thread Michael Sims
On Thu, 12 Sep 2002 05:21:01 +0300, you wrote: [...] >$name = "mattson-hedman" # correct format is Mattson-Hedman, but user >can write in many ways. $name came from db. > >so how I can convert this $name format "Mattson-Hedman". [...] Try this: function uc_all ($str) { $temp = preg_split('/(

[PHP] strtolower -> strtoupper

2002-09-11 Thread Tommi Virtanen
Hi! Again, problem to convert chars. example: $name = "mattson-hedman" # correct format is Mattson-Hedman, but user can write in many ways. $name came from db. so how I can convert this $name format "Mattson-Hedman". First name first-letter is easy, but how about second-name first-letter H. T

Re: [PHP] IPlanet Webserver

2002-09-11 Thread Justin French
Instead of $myformvalue, try $_POST['myformvalue'] or $_GET['myformvalue']. Then slap yourself on the forhead for not looking in the manual and seeing what changes have been made to newer versions, or for not checking this lists' archives first, because this questions is asked DAILY, if not more f

RE: [PHP] Need 2-way encryption

2002-09-11 Thread Bob Bowker
Maybe "reversible hashing of a tar file" is a better way to describe what I need ... I want to make a tar file unreadable (at least can't be uncompressed) by anyone who doesn't know the key. Bob. At 10:43 AM 9/12/2002 +1000, Martin Towell wrote: >something to do with private and public keys -

[PHP] Need 2-way encryption

2002-09-11 Thread Bob Bowker
Is there a way to encrypt a large tar file (60+ megs) in a way that it can be decrypted ...? RH Linux 7.2, PHP 4.06 TIA -- Bob. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PreCaching Db into Variables Slows it down?!??

2002-09-11 Thread M1tch
Grrr! Just spent ages (well, 2hours) on a precaching system for my PHP code that didn't work out! Hang on, I'll backtrack a bit... My website is using a php engine that picks at snippets of html from the database, and builds them up to form the page. A typical page may use 5 of these html sn

[PHP] Re: mysql_insert_id

2002-09-11 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Hi guys, > > I never can get mysql_insert_id? > Is this broken with PHP4? > Please let me know if you can get it to work. or work around. > > Thanks. I have had no problem with it - perhaps if you could show the list your code someon

Re: [PHP] Session example at OSCON2002

2002-09-11 Thread Chris Shiflett
http://conf.php.net/oscon2002 Happy hacking. Chris [EMAIL PROTECTED] wrote: >A friend of mine took a tutorial at OSCON 2002 (he thinks it was "Intorduction >to PHP") and said that Rasmus had provided a full working version of a class >to handle sessions. While I was at the conference I did n

Re: [PHP] Re: LDAP (NDS) authentication example...

2002-09-11 Thread joshua
i'm not sure if i follow you. i have never used ldap to write authentication scripts as i've only used the .htaccess method. to retrieve data you need to bind using a username/password combination that is valid. i guess you could test your user's username/password by using it to attempt a bind

[PHP] html tables, php, other URL's...

2002-09-11 Thread Anthony Ritter
I'm trying to take a certain string from a USGS site that gives real time water levels and water heights for a certain location and insert it into a table using php. I'd like to open and read some of the lines in the USGS table - but not all. The output from the script - which doesn't have the f

Re: [PHP] header question

2002-09-11 Thread Chris Shiflett
You should always use a full URL in a Location header. Though browsers may handle improper uses of this header, it is still a bad practice. Happy hacking. Chris Krzysztof Dziekiewicz wrote: >>On Wed, 11 Sep 2002, Meltem Demirkus wrote: >> >> >>>I want to know if there is any way to send d

Re: [PHP] Extracting Numbers from a string.

2002-09-11 Thread Zak Greant
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On September 11, 2002 16:31, Jason Caldwell wrote: > I need to extract the numbers only from a field. > > For example: I have an AMOUNT field and so that I can filter out any user > typo's I would like to extract the numbers only. > > If the user ent

Re: [PHP] Extracting Numbers from a string.

2002-09-11 Thread Dan Ostrowski
A simple: eregi_replace("[^0-9]", "", $myvar); should do it. it says.. replace everything that is not a number ( character class "[^0-9]" which means Character class "[" NOT "^" of Decimal "0-9" end character class "]" ) with a NULL string, thereby ripping out all non-numeric components and l

[PHP] Session example at OSCON2002

2002-09-11 Thread jacob
A friend of mine took a tutorial at OSCON 2002 (he thinks it was "Intorduction to PHP") and said that Rasmus had provided a full working version of a class to handle sessions. While I was at the conference I did not go to that tutorial (or was it a session?) and so I did not see it. I am wonder

Re: [PHP] Re: Extracting Numbers from a string.

2002-09-11 Thread Brad Bonkoski
Of course they may not always know that the user would insert a '$' or a '.' which is what you are keying off of. I am not all that familiar with ereg* functions, I might attack it with stepping through charater by charater and is is_numeric($c) returns true, place it applend it to another variab

[PHP] Re: Extracting Numbers from a string.

2002-09-11 Thread M1tch
it doesn't use ereg, but it (should) would work: $mystring = "I have $56.55 dollars, don't you know"; $mystring = substr($mystring, strpos($mystring, "$"));//strip out after the $ sign $mystring = substr($mystring, 0, strpos($mystring, " "));//keep only till first space //mystring now co

Re: Fw: [PHP] Re:[PHP]question

2002-09-11 Thread timo stamm
Hi Meltem, the second one was a better description of your problem. Attached is the most convenient approach can come up with for this problem. It is not optimized, but should be easy to understand. Timo '.$f_a_err.' '.$f_b_err.' '.$f_c_err.'

[PHP] Extracting Numbers from a string.

2002-09-11 Thread Jason Caldwell
I need to extract the numbers only from a field. For example: I have an AMOUNT field and so that I can filter out any user typo's I would like to extract the numbers only. If the user enters $56.55 for example or just $56 then I would like to be able to remove the "$" and the "." keeping just t

Re: [PHP] Will return break loop?

2002-09-11 Thread Kevin Stone
Thanks for really quick replies to my really quick question, everyone. Much appreciated. :) -Kevin - Original Message - From: "David Buerer" <[EMAIL PROTECTED]> To: "'Kevin Stone'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, September 11, 2002 3:42 PM Subject: RE: [PHP] Wi

Re: [PHP] Will return break loop?

2002-09-11 Thread Zak Greant
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On September 11, 2002 15:57, Kevin Stone wrote: > Really quick question. Will "return" break a loop inside a function? > > Example.. > myfunc() > { > while($val=0) > { > if ($i=128) > { > return true; //<-break or

RE: [PHP] Will return break loop?

2002-09-11 Thread David Buerer
really quik answer... yes. really long answer... from php manual: "the return() statement immediately ends execution of the current function, and returns its argument as the value of the function call." -Original Message- From: Kevin Stone [mailto:[EMAIL PROTECTED]] Sent: Wednesday, S

RE: [PHP] Will return break loop?

2002-09-11 Thread SHEETS,JASON (Non-HP-Boise,ex1)
I tested this on PHP 4.2.3 and in my case return does break a while loop. Jason -Original Message- From: Kevin Stone [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 11, 2002 3:57 PM To: [EMAIL PROTECTED] Subject: [PHP] Will return break loop? Really quick question. Will "return"

[PHP] Variable Variables

2002-09-11 Thread Mike Smith
I am stumped on a project for a receiving system. I'm not sure how to handle receiving more than one line item. I can UPDATE ... WHERE id=$detid when I have 1 item, but how would I get the SQL to fire X times depending on the number of line items I have AND UPDATE the appropriate record. Currentl

[PHP] Will return break loop?

2002-09-11 Thread Kevin Stone
Really quick question. Will "return" break a loop inside a function? Example.. myfunc() { while($val=0) { if ($i=128) { return true; //<-break or no? } } } I know I could easily figure this out my own but I do not have the means to test it right

Re: [PHP] Query result to an array

2002-09-11 Thread Zak Greant
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On September 11, 2002 15:21, Christian Ista wrote: > > while( $temp = mysql_fetch_row($mysql_result_handle) ) { > > $array[] = array( > > 'key0' => array( > > 'keya' => $temp[0], > > 'keyb' => $t

[PHP] Re: Text from web form

2002-09-11 Thread nicos
Hi, If you have register global off on your php.ini, you should do: $name = $_POST['name']; $message = $_POST['message']; at the top of your script to enable the variables. -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet "Rick King" <[EMAIL PROTEC

[PHP] Re: Text from web form

2002-09-11 Thread Jome
> Hello PHP Guru's! > > After successfully installing PHP and viewing the phpinfo page, I decided to > create a simple web-form. Just a basic "Name" "Message" web-form, when the > form is complete it is emailed to an account. Everything works, except I > don't see the filled in contents in the ema

[PHP] Re: PHP help needed

2002-09-11 Thread nicos
Hi, is it a free assistance or a non-free one? -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet "Michael Plasse" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > Hello, > > I need a PHP programmer to assist me with updates

[PHP] Re: is php-4.2.3 a stable version?

2002-09-11 Thread nicos
Sure 4.2.3 is a stable and portable version, feel free to upgrade. -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet "Anil Garg" <[EMAIL PROTECTED]> a écrit dans le message de news: 018701c259c3$83778c60$[EMAIL PROTECTED] > Hi, > > i am using freebsd

[PHP] Text from web form

2002-09-11 Thread Rick King
Apache: 1.3.26 PHP: 4.2.3 OS: HPUX-11 Hello PHP Guru's! After successfully installing PHP and viewing the phpinfo page, I decided to create a simple web-form. Just a basic "Name" "Message" web-form, when the form is complete it is emailed to an account. Everything works, except I don't see the f

Re: [PHP] installing php-4.2.3

2002-09-11 Thread Brad Bonkoski
unzip that and cd into it and read the INSTALL file tar -xzvf php-4.2.3.tar.gz cd php-4.2.3 less INSTALL HTH -Brad Anil Garg wrote: > > hi, > > i am a newbie to php... > i have downloaded php-4.2.3.tar.gz from http://www.php.net/downloads.php > can someone please point me to the right document

[PHP] installing php-4.2.3

2002-09-11 Thread Anil Garg
hi, i am a newbie to php... i have downloaded php-4.2.3.tar.gz from http://www.php.net/downloads.php can someone please point me to the right documentaion from where i can know what to do next.. I am using FreeBSD-4.2. thanx and regards anil -- PHP General Mailing List (http://www.php.net/)

RE: [PHP] Query result to an array

2002-09-11 Thread Christian Ista
> while( $temp = mysql_fetch_row($mysql_result_handle) ) { > $array[] = array( > 'key0' => array( > 'keya' => $temp[0], > 'keyb' => $temp[1] > ), > 'key1' => array( > 'keya' => $temp[2

Re: [PHP] open_basedir without safe mode?

2002-09-11 Thread Rasmus Lerdorf
safe mode and open_basedir are completely separate. On Thu, 12 Sep 2002, Ville Mattila wrote: > Hi there, > > I was wondering if there is a possibility to get open_basedir preferences > (also set via .htaccess) active in a server running not PHP in open_basedir. > I should create a small home si

Re: [PHP] Query result to an array

2002-09-11 Thread Zak Greant
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On September 11, 2002 15:05, Christian Ista wrote: > > while( $temp = mysql_fetch_row($mysql_result_handle) ) { > > $array[] = array( > > 'key0' = array( > > 'keya' => $temp[0], > > 'keyb' => $te

[PHP] Re: How do I upgrade my version of PHP?

2002-09-11 Thread nicos
You should use the patch command, feel free to "man patch". -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet "Monty" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > I've downloaded the patch file for 4.2.2 to 4.2.3 from the

[PHP] open_basedir without safe mode?

2002-09-11 Thread Ville Mattila
Hi there, I was wondering if there is a possibility to get open_basedir preferences (also set via .htaccess) active in a server running not PHP in open_basedir. I should create a small home site space for some users with PHP equipped, but I don't like to put safe mode on as there are some other a

RE: [PHP] Query result to an array

2002-09-11 Thread Christian Ista
> while( $temp = mysql_fetch_row($mysql_result_handle) ) { > $array[] = array( > 'key0' = array( > 'keya' => $temp[0], > 'keyb' => $temp[1], > ), > 'key1' = array( > 'keya' => $temp[2]

Re: [PHP] ucwords()? and åäö

2002-09-11 Thread Zak Greant
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Here is a quick replacement script* for ucwords() that can be made to handle accented characters or interesting casing rules. It is a bit uppercase happy - - uppercasing any letter that comes after a non-letter character. *(Taken from the PHP Funct

[PHP] cookie problem...

2002-09-11 Thread rtrt
we are using apache 1.3.12 server, php 4.2.3 on linux. Before, we didn't write cookies.txt on harddisk. We changed some configuration in httpd.conf like. We disabled mod_proxy module and then cookie had been wrote. But now, we are not reading cookie variables from cookies.txt (Netscape). I konw p

Re: [PHP] Displaying value different from actual value

2002-09-11 Thread Zak Greant
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On September 11, 2002 07:57, Dave Rosenberg wrote: > I'm not sure this is possible, but here's what I'd like to do: > I know that in order for a set of records from MySQL to display in > numerical order on a web page, you need to make the column type

Re: [PHP] Query result to an array

2002-09-11 Thread Zak Greant
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On September 11, 2002 14:12, Christian Ista wrote: > Hello, > > A query return x rows, by rows there are 4 fields. I'd like to put the > result in an array, a 2 dimensions array. Could you tell me how to do > that ? Something like this may work for

[PHP] Query result to an array

2002-09-11 Thread Christian Ista
Hello, A query return x rows, by rows there are 4 fields. I'd like to put the result in an array, a 2 dimensions array. Could you tell me how to do that ? Bye -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] help with making an xslt class

2002-09-11 Thread Geoff
I am using the sablotron xslt library I just want to make a class to minimize the code I need to write and make it easier to maintain. When I do it like so: // create XSLT processor $xh = xslt_create(); // call xslt processor // Process the document $result = xs

Re: [PHP] Mail system with folders?

2002-09-11 Thread Leonid Mamtchenkov
Dear Leif K-Brooks, Once you wrote about "[PHP] Mail system with folders?": > I'm designing a site, and I want to put mail with folders on it. Fairly > simply, but I'm not sure what to do for the default folders. I want to > have three precreated folders: inbox, trash, and sent. I'm not sure

[PHP] How do I upgrade my version of PHP?

2002-09-11 Thread Monty
I've downloaded the patch file for 4.2.2 to 4.2.3 from the PHP website, but, not sure what to do with this file. I have a Linux 7.x server. Can anyone tell me how to patch my version of PHP or point me to a source that explains how this is done? Thanks! -- PHP General Mailing List (http://www.

RE: [PHP] help with making an xslt class

2002-09-11 Thread Brian V Bonini
Isn't this what the salbatron library is for? > -Original Message- > From: Geoff [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, September 11, 2002 2:52 PM > To: php list > Subject: [PHP] help with making an xslt class > > > I am trying to make a class to process xslt transformations. >

RE: [PHP] is php-4.2.3 a stable version?

2002-09-11 Thread MET
PHP 4.2.3 is mainly fixes to 4.2.2 but yes it is stable and a suggested update. ~ Matthew -Original Message- From: Anil Garg [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 11, 2002 2:46 PM To: [EMAIL PROTECTED] Subject: [PHP] is php-4.2.3 a stable version? Hi, i am using freeb

[PHP] help with making an xslt class

2002-09-11 Thread Geoff
I am trying to make a class to process xslt transformations. Here is the class: class xslTransformer extends makexml{ var $xh; function xslTransformer($xslfile) { $this->xh = xslt_create(); $result=xslt_process($this->xh,$this->xmlstr,$xslfile); //errors

[PHP] is php-4.2.3 a stable version?

2002-09-11 Thread Anil Garg
Hi, i am using freebsd4.2 I couldnt find if the latest php-versiono 4.2.3 a stable version ?? i mean shall i use 4.2.2 or 4.2.3 ? thanx and regards anil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP and Special Characters

2002-09-11 Thread Adam Williams
use stripslashes() or turn on magic quotes in php.ini On Wed, 11 Sep 2002, Rick King wrote: > Apache: 1.3.23 > PHP: 4.1.2 > > Hello PHP Guru's! > > I have created a simple web form. When the form is complete and submitted, > the results are emailed to an email account. But I have noticed that th

[PHP] PHP and Special Characters

2002-09-11 Thread Rick King
Apache: 1.3.23 PHP: 4.1.2 Hello PHP Guru's! I have created a simple web form. When the form is complete and submitted, the results are emailed to an email account. But I have noticed that the ' character is escaped. Example: John O\ 'Connor, instead of getting John O'Connor. Is this a problem w

[PHP] Re: Sending Attachements through php email form

2002-09-11 Thread Manuel Lemos
Hello, On 09/10/2002 11:07 AM, Heidi Belal wrote: > Hi, > > I was wondering if anybody could tell me the best way and how to code sending an >attachement with an email form. I want the user to be able to browse and select the >file he wants to attach, and i want the reciepent to be able to se

Re: [PHP] PHP And Apache

2002-09-11 Thread Glenn
ok then... thanks "Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Use the latest Apache 1.3.x and the latest PHP. Works just fine. Apache > 2.0.x is a completely different beast. > > -Rasmus > > On Wed, 11 Sep 2002, Glenn wrote: > > > Can an

[PHP] PHP help needed

2002-09-11 Thread Michael Plasse
Hello, I need a PHP programmer to assist me with updates to childrens website. Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Need PHP programmer ASAP..

2002-09-11 Thread Michael Plasse
Hello, I need a PHP programmer ASAP to help with site updates on large childrens webiste. Please reply to: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP And Apache

2002-09-11 Thread Rasmus Lerdorf
Use the latest Apache 1.3.x and the latest PHP. Works just fine. Apache 2.0.x is a completely different beast. -Rasmus On Wed, 11 Sep 2002, Glenn wrote: > Can anyone tell me if the latest version of PHP works with the latest Apache > web server? When I try to build the server it says its not

[PHP] PHP And Apache

2002-09-11 Thread Glenn
Can anyone tell me if the latest version of PHP works with the latest Apache web server? When I try to build the server it says its not, but I wondered if there were any patches or changes I could make for them to work properly? Thanks, glenn -- PHP General Mailing List (http://www.php.net/

Re: [PHP] IPlanet Webserver

2002-09-11 Thread Henrik Hudson
Make sure you're accessing your variables correctly as well. Remember, register_globals is now off by default, so you can't just access POST and GET vars by variable name, but insterad use $_POST[varname] or $_GET[varname] On Wednesday 11 September 2002 10:42, Chris Boget wrote: > Do any of you

Re: [PHP] Mail() function problem

2002-09-11 Thread Alva Chew
Hi, does that mean I can do nothing about it? Alva "Pekka Saarinen" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > At 9/10/2002, you wrote: > >Hi Everyone, > > > >I did a simple test with this script: > > > > >mail("[EMAIL PROTECTED]", "test", "this is a tes

[PHP] Re: IPlanet Webserver

2002-09-11 Thread Neophyte
If PHP is setup and working fine and simply not getting POST or GET vars, it can depend on the PHP version you have installed. but the $HTTP_POST_VARS and $HTTP_GET_VARS should work on any version of PHP4. If your still having trouble and using those arrays then im unsure as to what else could b

Re: [PHP] question

2002-09-11 Thread Adam Williams
I just wanted to chime in here and say that Julie Meloni's books are awesome. I have PHP Essentials and her Teach yourself PHP in 24 hours book. I plan to buy her PHP Fast and Easy 2nd edition very soon. Adam On Wed, 11 Sep 2002, Miles Thompson wrote: > Julie Meloni to

[PHP] Session Vars problem

2002-09-11 Thread Krispi
Hi, I have a problem when registering Session variables. Let me describe. I have 2 files. In the first one initialization is done and some session registering. The second one is my main application. If I call a method from the first file in my main file , variables are not registered. I use sess

[PHP] Illegal characters in HTML form element names.

2002-09-11 Thread Jared Williams
Hi, The HTML standard defines the set of characters that are valid in form element names. It does not include [ or ] and yet this seems to be the only way to get a set of form elements grouped into an array for server side processing. Why doesnt PHP do (Perl/ASP) automatically create an array

RE: [PHP] is php4.2 supported on freebsd-4.2

2002-09-11 Thread MET
I'm guessing that pages requiring passing data isn't working correctly right? If so here's what you do. cd php-4.2.2 ./configure (whatever options you want here) make && make install && make clean (add the appropriate lines to your httpd.conf file, the ones you have from 4.1.2 should be

  1   2   >