Re: [PHP] Fatal Error Handling

2005-02-10 Thread James Taylor
snip -bash-2.05b$ php test.php Content-type: text/html X-Powered-By: PHP/4.3.10 Memory Limit: 32K Memory Used: 13432 Error (1024) in /www/l-i-e.com/web/test.php:12 - Test -bash-2.05b$ Note a complete lack of Made it nor an error message trapped by my error handler when the RAM runs out. :-(

[PHP] imagettftext color problem

2005-02-10 Thread Anni Hienola
Hello, I want to display TTF text in a png image. I use the following type of code: $font=luxisr; $font_size=16; $img=imagecreate($width, $height); $bg=imagecolorallocate($img, 255, 255, 255); $font_color=imageallocatecolor($img, 0, 0, 0); imagettftext($img, $font_size, 0, $x, $y, $font_color,

AW: [PHP] PHP Development IDE's/Editors

2005-02-10 Thread Mirco Blitz
Hi, Cause as I stared to programm html with Dreamweaver, I stayed with it. Good syntax Hignlighting and no Program switching between Coding and designing. It fits all my needs. Greetings Mirco Blitz -Ursprüngliche Nachricht- Von: Darren Linsley [mailto:[EMAIL PROTECTED] Gesendet:

[PHP] Magic Quotes

2005-02-10 Thread Ben Edwards (lists)
Am I correct in thinking Magic Quotes automatically adds quotes to all posted variables, therefore if you are displaying post variables on a form you have to remove the quotes. They are only needed if you are actually inserting/updating into the database. Whether magic quotes are on or not you

Re: [PHP] Magic Quotes

2005-02-10 Thread Jochem Maas
Ben Edwards (lists) wrote: Am I correct in thinking Magic Quotes automatically adds quotes to all posted variables, therefore if you are displaying post variables on a form you have to remove the quotes. They are only needed if you are actually inserting/updating into the database. Whether

[PHP] Refresh Problem

2005-02-10 Thread Jose Angel Sanchez \(Jone\)
Hi First of all: I'm sorry for writing errors - I don't speak English too much (spanish) I'm building an application which works that way: I use url parameters to set zone (document location), actions and params. I've badly make security part so only registered people ($_session['USER'] -

Re: [PHP] Magic Quotes

2005-02-10 Thread Jeffery Fernandez
Jochem Maas wrote: Ben Edwards (lists) wrote: Am I correct in thinking Magic Quotes automatically adds quotes to all posted variables, therefore if you are displaying post variables on a form you have to remove the quotes. They are only needed if you are actually inserting/updating into the

Re: [PHP] Magic Quotes

2005-02-10 Thread Ben Edwards (lists)
On Thu, 2005-02-10 at 13:28 +0100, Jochem Maas wrote: Ben Edwards (lists) wrote: Am I correct in thinking Magic Quotes automatically adds quotes to all posted variables, therefore if you are displaying post variables on a form you have to remove the quotes. They are only needed if you are

[PHP] looking for an app that does categories/lists...

2005-02-10 Thread bruce
hi... i need a quick/simple app/script the will allow me to create a master directory/list, and then create subcategories of the master categories, as well as the child categories... i'd also like to be able to move nodes/branches of the tree around as needed. i'm basically looking at setting

[PHP] Re: errors not reported

2005-02-10 Thread Sdav
u may try to use ini_set. prepend it to the file and see what happens: ini_set('display_errors', 1); ini_set('error_reporting',E_ALL); may not solve the problem but is a good start to see where u are. ini_set got a good documentation about error displaying on the website, what it does is

Re: [PHP] Re: Weighted Lists

2005-02-10 Thread W Luke
On Wed, 09 Feb 2005 10:56:51 -0800 (PST), Matthew Weier O'Phinney [EMAIL PROTECTED] wrote: * W Luke [EMAIL PROTECTED]: I've been fascinated by Flickr's, del.icio.us and other sites' usage of these Weighted Lists. It's simple but effective and I really want to use it for a project I'm

Re: [PHP] Magic Quotes

2005-02-10 Thread Ben Edwards (lists)
On Thu, 2005-02-10 at 13:45 +0100, Jochem Maas wrote: Ben Edwards (lists) wrote: PS phpsc.net seems to be down, or is the domain wrong? er yes, oops. as Jeffery pointed out it should have been phpsec.org. had a brainfreeze sorry. OK, trying to do a function to remove magic quotes from

Re: [PHP] Student Suspended Over PHP use.

2005-02-10 Thread Steve Buehler
Shouldn't have taken your Cat to school with a bag of catnip. That was asking for trouble. :) Steve At 08:44 PM 2/9/2005, Dotan Cohen wrote: Maybe it's not People Hate Perl after all... Pot, Heroin, Pussy?!? I think I got suspended for at leat two of those on campus grounds at some point or

AW: [PHP] Refresh Problem

2005-02-10 Thread Mirco Blitz
After first authentification of the user i prefere session. I can be sure that this is the user who autht himself to me, caus the session is unique. -Ursprüngliche Nachricht- Von: Jose Angel Sanchez (Jone) [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 9. Februar 2005 14:49 An:

AW: [PHP] Student Suspended Over PHP use.

2005-02-10 Thread Mirco Blitz
To all the cool Americans, ignore my following words. To all the others. You are just dumb asses. There are many occasions where you show it really open. You elect a dumb President, that lies to you in one way. You let your Kids get kriminalized. Your belive in God is as paranoid as the muslimes

RE: [PHP] Student Suspended Over PHP use.[Incredibly OT]

2005-02-10 Thread Jay Blanchard
[snip] To all the cool Americans, ignore my following words. To all the others. You are just dumb asses. There are many occasions where you show it really open. You elect a dumb President, that lies to you in one way. You let your Kids get kriminalized. Your belive in God is as paranoid as the

AW: [PHP] Student Suspended Over PHP use.[Incredibly OT]

2005-02-10 Thread Mirco Blitz
You are really taking me to serious. Ok might be that my english is not good enough to let that sound ironic. BTW. What is STFU? Greetings Mirco -Ursprüngliche Nachricht- Von: Jay Blanchard [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 10. Februar 2005 15:06 An: Mirco Blitz;

RE: [PHP] Student Suspended Over PHP use.[Incredibly OT]

2005-02-10 Thread Alex Hogan
[snip] BTW. What is STFU? [/snip] Ooo.., let me do this one... This is one I can answer. ;-) STFU (Shut the F*%# up!) alex hogan * The contents of this e-mail and any files transmitted with it are

Re: AW: [PHP] Student Suspended Over PHP use.[Incredibly OT]

2005-02-10 Thread Richard Davey
Hello Mirco, Thursday, February 10, 2005, 2:09:21 PM, you wrote: MB BTW. What is STFU? Something you probably should have done before insulting the majority of list members. Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP Development Services I am not young enough to know

AW: AW: [PHP] Student Suspended Over PHP use.[Incredibly OT]

2005-02-10 Thread Mirco Blitz
Oh please hack down on me. I also hear a lot of crap aout us germans every day an I dont get pissed of that as well. You really take yourself to serious. -Ursprüngliche Nachricht- Von: Richard Davey [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 10. Februar 2005 15:23 An:

RE: AW: [PHP] Student Suspended Over PHP use.[Incredibly OT]

2005-02-10 Thread Jay Blanchard
[snip] Oh please hack down on me. I also hear a lot of crap aout us germans every day an I dont get pissed of that as well. You really take yourself to serious. [/snip] I told you soreally you should just STFU now or you might find your PHP questions will go unanswered. If you had said

[PHP] ENOUGH!! RE: AW: [PHP] Student Suspended Over PHP use.

2005-02-10 Thread tg-php
This thread, as relates to PHP, is pointless. If people have issues with what someone else said, please take it up with them privately and/or notify the list admins if you think it was inappropriate enough to warrant administrative action. The joke was cute but all in all, not that funny. It

Re: AW: AW: [PHP] Student Suspended Over PHP use.[Incredibly OT]

2005-02-10 Thread Richard Davey
Hello Mirco, Thursday, February 10, 2005, 2:38:15 PM, you wrote: MB I also hear a lot of crap aout us germans every day an I dont get MB pissed of that as well. MB You really take yourself to serious. Considering this is a technical mailing list dedicated to PHP and not one about world

RE: AW: [PHP] Student Suspended Over PHP use.[Incredibly OT]

2005-02-10 Thread Mike Johnson
From: Mirco Blitz [mailto:[EMAIL PROTECTED] Oh please hack down on me. I also hear a lot of crap aout us germans every day an I dont get pissed of that as well. You really take yourself to serious. Seriously, what do you hear about Germans on this list? I read this list daily and,

Re: AW: AW: [PHP] Student Suspended Over PHP use.[Incredibly OT]

2005-02-10 Thread John Nichel
Mirco Blitz wrote: Oh please hack down on me. I also hear a lot of crap aout us germans every day an I dont get pissed of that as well. You really take yourself to serious. I don't take you at all. Let's hope there's not some problem that you're trying to solve that I have experience in.

Re: AW: [PHP] Student Suspended Over PHP use.

2005-02-10 Thread John Nichel
Mirco Blitz wrote: To all the cool Americans, ignore my following words. To all the others. You are just dumb asses. There are many occasions where you show it really open. You elect a dumb President, that lies to you in one way. You let your Kids get kriminalized. Your belive in God is as

Re: AW: [PHP] Student Suspended Over PHP use.[Incredibly OT]

2005-02-10 Thread Miles Thompson
SNIP ALL Let's end this -- NOW please. Way off topic to start with, and it's gone from a posting of an old joke, through political criticism, to petty bickering. Please end this thread, now. Please don't reply to this, whether you agree or disagree - let's just end it. Cheers - Miles -- PHP

Re: [PHP] Student Suspended Over PHP use.[Incredibly OT]

2005-02-10 Thread John Nichel
Jay Blanchard wrote: snip Are you familiar with the concept 'joke'? As for the rest of the things you say in this post.I hope that you have a flame retardent suit because many will take issue with your judgemental stand. You have demonstrated a fundamental lack of understanding where America

RE: [PHP] Parsing pdf file

2005-02-10 Thread Abiodun Akala
Hi, Please UNSUBSCRIBE me from the php mailing list. I have no interest whatsoever in the bulkmail. Thanks, Biodun Mikey [EMAIL PROTECTED] wrote: Hi, Sorry i don't really find something useful there. That is cos pdflib is for making pdfs and not parsing them. AFAIK you are on your own with

Re: [PHP] Magic Quotes

2005-02-10 Thread Jochem Maas
Ben Edwards (lists) wrote: On Thu, 2005-02-10 at 13:45 +0100, Jochem Maas wrote: Ben Edwards (lists) wrote: PS phpsc.net seems to be down, or is the domain wrong? er yes, oops. as Jeffery pointed out it should have been phpsec.org. had a brainfreeze sorry. OK, trying to do a function to remove

[PHP] fireing function with onChange

2005-02-10 Thread Aaron Todd
I have a loop that is putting the filenames of files in a certain directory into a listbox. I am then using the onChange event of the listbox to fire a function. In this script the onchange event sends the function the path an filename of the chosen file from the list. I have tested what I

[PHP] RE: Student Suspended

2005-02-10 Thread Jack Scott
Its sad too see so many programmers with so much time on their hands. Stop wasting this valuable resource on something which came from a parody site in the first place! post your idiotic commentary somewhere else -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Parsing pdf file

2005-02-10 Thread John Nichel
Abiodun Akala wrote: Hi, Please UNSUBSCRIBE me from the php mailing list. I have no interest whatsoever in the bulkmail. Please read. PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL

Re: [PHP] fireing function with onChange

2005-02-10 Thread Richard Lynch
Aaron Todd wrote: I have a loop that is putting the filenames of files in a certain directory into a listbox. I am then using the onChange event of the listbox to fire a function. In this script the onchange event sends the function the path an filename of the chosen file from the list.

Re: [PHP] fireing function with onChange

2005-02-10 Thread John Nichel
Aaron Todd wrote: I have a loop that is putting the filenames of files in a certain directory into a listbox. I am then using the onChange event of the listbox to fire a function. In this script the onchange event sends the function the path an filename of the chosen file from the list. I

[PHP] Magic Quotes Removal code - almost there

2005-02-10 Thread Ben Edwards (lists)
The following code is passed $_POST to clean magic quotes code out ;_ function remove_magic_quotes( $array ) { foreach( $array as $index = $value ) { if ( is_array( $array[$index] ) ) { remove_magic_quotes( $array[$index] ); } else {

Re: [PHP] Magic Quotes

2005-02-10 Thread Richard Lynch
Ben Edwards (lists) wrote: Am I correct in thinking Magic Quotes automatically adds quotes to all posted variables, therefore if you are displaying post variables on a form you have to remove the quotes. They are only needed if you are actually inserting/updating into the database. Whether

Re: [PHP] Secure system calls -- how

2005-02-10 Thread Jason Wong
On Thursday 10 February 2005 11:58, Niels wrote: Richard Lynch wrote: Perhaps the reason there is no article or tutorial is that it would be a book, not an article or tutorial :-) There are so MANY affected/related software system pieces that you can't do it justice in an article or

Re: [PHP] fireing function with onChange

2005-02-10 Thread Ed Curtis
On Thu, 10 Feb 2005, Richard Lynch wrote: In honor of our recent Super Bowl, here is a slow-motion instant replay: Bob: Well, it's a great day so far for PHP today, isn't it Jim? Jim: You've got that right, Bob! Now let's check out this play. Bob: Watch as the user surfs right to that web

Re: [PHP] Magic Quotes Removal code - almost there

2005-02-10 Thread Jason Wong
On Thursday 10 February 2005 23:36, Ben Edwards (lists) wrote: The cleaning works but magic_quotes_runtime is false even if magic codes are on, any ideas? There are at least two magic_quotes_* settings, make sure you are referring to the correct one(s). -- Jason Wong - Gremlins Associates -

Re: [PHP] fireing function with onChange

2005-02-10 Thread Jason Barnett
Richard Lynch wrote: ... In honor of our recent Super Bowl, here is a slow-motion instant replay: Bob: Well, it's a great day so far for PHP today, isn't it Jim? Jim: You've got that right, Bob! Now let's check out this play. Bob: Watch as the user surfs right to that web page! Jim: Yeah, smooth!

Re: [PHP] Re: [users@httpd] Favorite Linux Distribution

2005-02-10 Thread Richard Lynch
Greg Donald wrote: On Thu, 10 Feb 2005 01:01:18 +0200, Dotan Cohen [EMAIL PROTECTED] wrote: I very much disagree. I am writing this on my Fedora Core 3 box and am very happy with it's 'bloat'. As a new convert form windows I am kinda used to everything being there at my fingertips. And in

Re: [PHP] $GLOBALS, any probolems?

2005-02-10 Thread Richard Lynch
Bruno B B Magalhães wrote: is there any problems using $GLOBALS superglobal to carry all my global classes instances? For example: $GLOBALS['myclass'] = new myclass(); This is exactly the same as: $myclass = new myclass(); as far as I've ever been able to tell, except that $GLOBALS is a

Re: [PHP] Re: stream_set_timeout() stream_get_meta_data() etc...

2005-02-10 Thread Skippy
On Wed, 09 Feb 2005 13:28:47 -0500 Al [EMAIL PROTECTED] wrote: Here is the code I ended up with, I left some test stuff included so anyone who may need it has a good start. Oh, and another thing: if anybody's going to implement this using sockets instead of fopen(), make sure to send the header

[PHP] pdf properties

2005-02-10 Thread Jason Motes
Hello, Is there anyway to retrieve the properties from a pdf file using php? When you right click on a pdf file in windows you can see the title of the file and you can change this property there also. I wrote a php page that lists all files in a certain directory. I want to be able show the

[PHP] avoiding user using back button-need to re-route

2005-02-10 Thread Angelo Zanetti
Hi all. I have a site, the user goes through a few pages inputting info and also making various selections. On the last page they are shown a success page. however if they go back by clicking the back button. they can re process the last step which is undersireable. I can't really use javascript

Re: [PHP] Foreach problem.

2005-02-10 Thread Richard Lynch
Mirco Blitz wrote: HI, I am really confused. I have an array, that looks like this: print_r($elementsarr) = Array ( [0] = knr [1] = subject [2] = title [3] = kat [4] = pages [5] = access [6] = dofile [7] = MAX_FILE_SIZE [8] = pdf [9] = dolink [10] = link [11] = erstam [12] = endless [13] =

Re: [PHP] avoiding user using back button-need to re-route

2005-02-10 Thread Alex Hogan
[snip] is there a way to route from my second last step to my last one with a php page between them that will intercept any back press and also will redirect when the process goes from the second last step to the last step. If the user clicks back from the last page it must then determine that he

[PHP] pdf properties

2005-02-10 Thread Jason Motes
Hello, Is there anyway to retrieve the properties from a pdf file using php? When you right click on a pdf file in windows you can see the title of the file and you can change this property there also. I wrote a php page that lists all files in a certain directory. I want to be able show the

Re: [PHP] fireing function with onChange

2005-02-10 Thread Richard Lynch
Ed Curtis wrote: On Thu, 10 Feb 2005, Richard Lynch wrote: In honor of our recent Super Bowl, here is a slow-motion instant replay: Bob: Well, it's a great day so far for PHP today, isn't it Jim? Jim: You've got that right, Bob! Now let's check out this play. Bob: Watch as the user surfs

Re: [PHP] Secure system calls -- how

2005-02-10 Thread Richard Lynch
Quite true. However, warnings about don't do this or that, an attacker may use this and so on are numerous, but advice on what to do about it is rarer. And this thing with system calls is a good example: I can find many warnings about not doing it, but not a single piece of advice about how

Re: [PHP] avoiding user using back button-need to re-route

2005-02-10 Thread Richard Lynch
Angelo Zanetti wrote: I have a site, the user goes through a few pages inputting info and also making various selections. On the last page they are shown a success page. however if they go back by clicking the back button. they can re We kinda just went through this two days ago, which is why

[PHP] pdf properties

2005-02-10 Thread Jason Motes
Hello, Is there anyway to retrieve the properties from a pdf file using php? When you right click on a pdf file in windows you can see the title of the file and you can change this property there also. I wrote a php page that lists all files in a certain directory. I want to be able show the

[PHP] cancel 20050209205250.83625.qmail@lists.php.net

2005-02-10 Thread php
This message was cancelled from within Mozilla. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] pdf properties

2005-02-10 Thread Richard Lynch
Is there anyway to retrieve the properties from a pdf file using php? When you right click on a pdf file in windows you can see the title of the file and you can change this property there also. I wrote a php page that lists all files in a certain directory. I want to be able show the

[PHP] pdf properties

2005-02-10 Thread Jason Motes
Hello, Is there anyway to retrieve the properties from a pdf file using php? When you right click on a pdf file in windows you can see the title of the file and you can change this property there also. I wrote a php page that lists all files in a certain directory. I want to be able show the

Re: [PHP] pdf properties

2005-02-10 Thread John Nichel
Jason Motes wrote: Hello, Is there anyway to retrieve the properties from a pdf file using php? When you right click on a pdf file in windows you can see the title of the file and you can change this property there also. I wrote a php page that lists all files in a certain directory. I want to

Re: [PHP] pdf properties

2005-02-10 Thread Marek Kilimajer
Jason Motes wrote: Hello, Is there anyway to retrieve the properties from a pdf file using php? When you right click on a pdf file in windows you can see the title of the file and you can change this property there also. I wrote a php page that lists all files in a certain directory. I want to

RE: [PHP] pdf properties

2005-02-10 Thread Brandon Thompson
No. -Original Message- From: Jason Motes [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 09, 2005 4:14 PM To: php-general Subject: [PHP] pdf properties Hello, Is there anyway to retrieve the properties from a pdf file using php? When you right click on a pdf file in

Re: [PHP] fireing function with onChange

2005-02-10 Thread Ed Curtis
On Thu, 10 Feb 2005, Richard Lynch wrote: Ed Curtis wrote: On Thu, 10 Feb 2005, Richard Lynch wrote: In honor of our recent Super Bowl, here is a slow-motion instant replay: Bob: Well, it's a great day so far for PHP today, isn't it Jim? Jim: You've got that right, Bob! Now let's

[PHP] cancel 420A7D1C.30805@imotes.com

2005-02-10 Thread php
This message was cancelled from within Mozilla. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] cancel 420A7D1C.30805@imotes.com

2005-02-10 Thread php
This message was cancelled from within Mozilla. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] pdf properties

2005-02-10 Thread Jason Motes
snip Maybe if you send it 5 more times, someone will answer you. /snip Be kind, i tried sending this yesterday and my post would not show up and they were not bounced back to me. Then i figured out what i did wrong and they all went through. Sorry -- PHP General Mailing List

[PHP] export mysql to csv prob

2005-02-10 Thread Redmond Militante
hi i have a script that exports the result of a mysql query to a csv file suitable for downloading the code looks like $result = mysql_query(select * from user,mjp1,mjp2,mjp3,mjp4); while($row = mysql_fetch_array($result)) { $csv_output .= $row[userid] $row[firstname] $row[lastname]\n }

[PHP] PHP Development IDE's/Editors

2005-02-10 Thread Lancer Emotion 16
I use Zend. The next time you can use the search on the php web page. On Thu, 10 Feb 2005 09:58:01 +0200, Kaspars Bankovskis [EMAIL PROTECTED] wrote: notepad forever. but if you prefer syntax highlighting there is a freeware soft called notepad2. -- PHP General Mailing List

[PHP] php in free() error

2005-02-10 Thread Gerard Samuel
Im playing around with iterators, and Im getting this error - php in free(): warning: chunk is already free Im running php 5.0.3 on FreeBSD 5.3. Any ideas what may be wrong? Thanks ?php $array = array(0 = array('world')); class RecursiveArrayIterator extends ArrayIterator implements

Re: [PHP] Re: Multi-Page Forms

2005-02-10 Thread GH
Question. Does the Tabs and Divs work under Mozilla Based Browsers? On Wed, 09 Feb 2005 23:58:52 -0200, Manuel Lemos [EMAIL PROTECTED] wrote: Hello, on 02/09/2005 01:38 PM [EMAIL PROTECTED] said the following: I have a form which is too long to be useful displayed on one page. I have

AW: [PHP] export mysql to csv prob

2005-02-10 Thread Mirco Blitz
Hi, Probably the Pear Excel_Syltesheet_Writer works for you. http://pear.php.net/package/Spreadsheet_Excel_Writer I found out that it is faster with huge data sets on my system. Greetings Mirco -Ursprüngliche Nachricht- Von: Redmond Militante [mailto:[EMAIL PROTECTED] Gesendet:

Re: [PHP] Re: Multi-Page Forms

2005-02-10 Thread Jason Barnett
Gh wrote: Question. Does the Tabs and Divs work under Mozilla Based Browsers? Generally speaking... if it's a part of a standard / RFC then it will be supported by Mozilla. If not, then probably not. -- Teach a man to fish... NEW? | http://www.catb.org/~esr/faqs/smart-questions.html STFA |

[PHP] Re: php in free() error

2005-02-10 Thread Jason Barnett
Gerard Samuel wrote: ... ?php $array = array(0 = array('world')); class RecursiveArrayIterator extends ArrayIterator implements RecursiveIterator { function hasChildren() { return (is_array($this-current())); } function getChildren() { return new self($this-current());

[PHP] Creating a varable with a name held in a string

2005-02-10 Thread Ben Edwards (lists)
I have the following code;_ $sql = select * from text where id= '$id' ; $row = fetch_row_row( $sql, $db ); $img_loc= $row[img_loc]; $text_type = $row[text_type]; $seq

Re: [PHP] Creating a varable with a name held in a string

2005-02-10 Thread Richard Davey
Hello Ben, Friday, February 11, 2005, 12:36:16 AM, you wrote: BEl So the question is is there a function like create_var which BEl takes a string and a value and creates a variable? $var_name = new_variable; $$var_name = hello world; echo $new_variable; Search for variable variables in the PHP

[PHP] Re: Its me

2005-02-10 Thread schuld
The file is protected with the password ghj001. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] quotemeta() function...

2005-02-10 Thread Steve Kaufman
Why does quotemeta(pat:1$WRW) return pat:1 instead of pat:1\$WRW What am I misunderstanding about the quotemeta function? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] quotemeta() question...

2005-02-10 Thread Steve Kaufman
Why does quotemeta(pat:1$WRW) return pat:1 instead of pat:1\$WRW What am I misunderstanding about quotemeta function? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] quotemeta() question...

2005-02-10 Thread Steve Kaufman
Why does quotemeta(pat:1$WRW) return pat:1 instead of pat:1\$WRW What am I misunderstanding about quotemeta function? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: php in free() error

2005-02-10 Thread Gerard Samuel
Jason Barnett wrote: Gerard Samuel wrote: ... ?php $array = array(0 = array('world')); class RecursiveArrayIterator extends ArrayIterator implements RecursiveIterator { function hasChildren() { return (is_array($this-current())); } function getChildren() { return new

Re: [PHP] Re: [users@httpd] Favorite Linux Distribution

2005-02-10 Thread Greg Donald
On Thu, 10 Feb 2005 11:10:46 -0800 (PST), Richard Lynch [EMAIL PROTECTED] wrote: Believe it or not, I don't *want* to be a Linux guy, or a SysAdmin nor track versions of 100 software packages nor subscribe to a half-dozen security forums, nor ... I enjoy sysadmin work myself. I just want to

Re: [PHP] Foreach problem.

2005-02-10 Thread Marek Kilimajer
Richard Lynch wrote: Mirco Blitz wrote: HI, I am really confused. I have an array, that looks like this: print_r($elementsarr) = Array ( [0] = knr [1] = subject [2] = title [3] = kat [4] = pages [5] = access [6] = dofile [7] = MAX_FILE_SIZE [8] = pdf [9] = dolink [10] = link [11] = erstam [12] =

Re: [PHP] Foreach problem.

2005-02-10 Thread trlists
On 10 Feb 2005 Richard Lynch wrote: Perhaps you need to use http://php.net/reset You see, when you do foreach or each or any of those, there is an internal setting in the array that is altered to keep track of where you are. Kind of like a big You are here arrow inside the guts of the

Re: [PHP] Creating a varable with a name held in a string

2005-02-10 Thread John Holmes
Ben Edwards (lists) wrote: I have the following code;_ $sql = select * from text where id= '$id' ; $row = fetch_row_row( $sql, $db ); $img_loc= $row[img_loc]; $text_type = $row[text_type];

Re: [PHP] Creating a varable with a name held in a string

2005-02-10 Thread Randy Johnson
I like to do this: foreach( $row as $key=$val) { $$key = $row[$key]; } John Holmes wrote: Ben Edwards (lists) wrote: I have the following code;_ $sql = select * from text where id= '$id' ; $row = fetch_row_row( $sql, $db ); $img_loc=

Re: [PHP] Foreach problem.

2005-02-10 Thread Robert Cummings
On Thu, 2005-02-10 at 14:26, Richard Lynch wrote: Mirco Blitz wrote: HI, I am really confused. I have an array, that looks like this: print_r($elementsarr) = Array ( [0] = knr [1] = subject [2] = title [3] = kat [4] = pages [5] = access [6] = dofile [7] = MAX_FILE_SIZE [8] = pdf

Re: [PHP] Creating a varable with a name held in a string

2005-02-10 Thread Randy Johnson
I will read over extract and change my ways ;-) Randy John Holmes wrote: Randy Johnson wrote: I like to do this: foreach( $row as $key=$val) { $$key = $row[$key]; } You're just recreating a slower version of extract()... -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Creating a varable with a name held in a string

2005-02-10 Thread John Holmes
Randy Johnson wrote: I like to do this: foreach( $row as $key=$val) { $$key = $row[$key]; } You're just recreating a slower version of extract()... -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals

Re: [PHP] quotemeta() question...

2005-02-10 Thread Chris
Because it's parsing $WRW as a string, because of the double quotes. so you would need to do it like this: quotemeta('pat:1$WRW') to not let it parse any variables or quotemeta(pat:1\$WRW) to not parse that particular variable Steve Kaufman wrote: Why does quotemeta(pat:1$WRW) return