[PHP] Advantages of declared vs undeclared object properties

2008-05-25 Thread Weston C
In a setup like you've got with a SimpleXML object, where object properties aren't necessarily declared in the class definition but are added on an ad hoc basis, is there any performance hit? If not, other than the ability to mark properties as private, is there any other particular advantage to

Re: [PHP] Re: array recursion from database rows

2008-05-25 Thread Larry Garfield
On Saturday 24 May 2008, Chris W wrote: Bob wrote: Hi. I have a database table I have created for navigation. The table fields are uid, parent_id, menu_name. Each entry is either a top level element with a parent_id of 0 or a child which has a parent_id that relates to the parent

[PHP] Re: Re: Re: Re: A Little Something.

2008-05-25 Thread Michelle Konzack
Am 2008-05-23 14:02:50, schrieb Andrew Ballard: If you have a cell phone, privacy went out the window a while ago anyway. http://news.zdnet.com/2100-1035_22-6140191.html I know, since I was last year victim of an accident in the suveillance because have registered/stored all calls since I

Re: [PHP] Advantages of declared vs undeclared object properties

2008-05-25 Thread Nathan Nobbe
On Sun, May 25, 2008 at 3:51 AM, Weston C [EMAIL PROTECTED] wrote: In a setup like you've got with a SimpleXML object, where object properties aren't necessarily declared in the class definition but are added on an ad hoc basis, is there any performance hit? If not, other than the ability to

RE: [PHP] array recursion from database rows

2008-05-25 Thread Wolf
Bob, Post your failing code and we'l be glad to give you pointers on fixing it. This list doesn't exist to write code for you (unless your dropping coin into our paypal account) but all of us are willing to help with posted code. Wolf -Original Message- From: Bob [EMAIL PROTECTED]

[PHP] Still need help with some kind of memory leak in my php database program. General hints for php would help

2008-05-25 Thread Mary Anderson
Hi, Something in my program is eating up memory. I am running php 5 and hooking into postgres8.3, but I don't think it is a database program. The command in question works fine in psql, the problem comes in loading a php variable. And in the past, unsetting the variable has helped. The

Re: [PHP] PHP + MySQL transactions

2008-05-25 Thread Chris
See http://dev.mysql.com/doc/refman/5.0/en/savepoints.html The situation might not come up but it can't hurt to have it already built in just in case. This doesn't appear deal with *nested transactions.* It appears that it will use a single transaction and you can just save up to a

Re: [PHP] Still need help with some kind of memory leak in my php database program. General hints for php would help

2008-05-25 Thread Chris
// IF I RUN THIS THROUGH A LOOP: // for($j=0;$j20, $j++){ $many_selected[$jj] = fu_bar($pg, $BIG_SELECT_cmd)} THE TEST PROGRAM CRASHES so I think I have more copies of the result of this query than I need. This is just going to create a multi-dimensional array - with each element being one

Re: [PHP] Still need help with some kind of memory leak in my php database program. General hints for php would help

2008-05-25 Thread Chris
Mary Anderson wrote: Thanks for responding. I hadn't realized memory_get_usage was available. That will be an enormous help. And I wasn't too clear in my note. Actually, it did not surprise me that the loop crashed the test code. I expected it to. What does surprise me is that the

Re: [PHP] Still need help with some kind of memory leak in my php database program. General hints for php would help

2008-05-25 Thread Bastien Koert
On Sun, May 25, 2008 at 7:53 PM, Mary Anderson [EMAIL PROTECTED] wrote: Hi, Something in my program is eating up memory. I am running php 5 and hooking into postgres8.3, but I don't think it is a database program. The command in question works fine in psql, the problem comes in loading a

[PHP] Image modifications

2008-05-25 Thread Ronald Wiplinger
I would like to find some samples to start with. We want to upload a picture and the user may apply some filters or instructions to create a new picture, based on the uploaded picture and the available filters and instructions. The idea of it is not really mature, since we have no idea where to

[PHP] scanned in manipulate to a pdf

2008-05-25 Thread Ronald Wiplinger
I got a Windows program, which can scan in a book by scanning in the pages 1,3,5, n turn the book by 180 degrees and scan in from the back side n-1,n-3, ... 2. Then the program made a pdf book of the scanned in pages. I am not sure if a php program is the right way to do, but I thought to do

[PHP] Weird update problem..

2008-05-25 Thread Ryan S
This is really weird... i have tried the same exact code in phpmyadmin and it works like a charm, but when i run the script... no errors then i go to phpmyadmin and nothing has changed :( this is the code:

Re: [PHP] Weird update problem..

2008-05-25 Thread Chris
Ryan S wrote: This is really weird... i have tried the same exact code in phpmyadmin and it works like a charm, but when i run the script... no errors then i go to phpmyadmin and nothing has changed :( this is the code:

Re: [PHP] Image modifications

2008-05-25 Thread Chris
Ronald Wiplinger wrote: I would like to find some samples to start with. We want to upload a picture and the user may apply some filters or instructions to create a new picture, based on the uploaded picture and the available filters and instructions. The idea of it is not really mature,

Re: [PHP] Weird update problem..

2008-05-25 Thread Ryan S
clip $result = mysql_query($sql_1); You're running the wrong query. You're building a query in $update_sql but running something else. /clip DUH!!! Thats what you get for being up all night i guess! Time to hit the sack... pulled an all nighter and its 7:24am now Some of the comments here: