Re: [PHP] Disclaimer

2009-06-17 Thread Ashley Sheridan
On Wed, 2009-06-17 at 21:44 -0400, Daniel Brown wrote: > On Wed, Jun 17, 2009 at 20:15, Stuart wrote: > > 2009/6/18 Ashley Sheridan : > >> On Thu, 2009-06-18 at 01:06 +0100, Stuart wrote: > >>> 2009/6/17 Daniel Brown : > >>> > On Wed, Jun 17, 2009 at 10:37, Jay Blanchard > >>> > wrote: > >>> >> >

Re: [PHP] Multi-Sort -- how to do this?

2009-06-17 Thread Paul M Foster
On Wed, Jun 17, 2009 at 10:31:18PM -0400, Robert Cummings wrote: > > > function tedd_sort( &$arrays ) > { > $master = null; > $followers = array(); > > $first = true; > foreach( array_keys( $arrays ) as $key ) > { > if( $first ) > { > $first = fa

Re: [PHP] Multi-Sort -- how to do this?

2009-06-17 Thread Robert Cummings
tedd wrote: Hi gang: Here's the problem. Let's say you have a collection of arrays, such as: $a = array(); $b = array(); $c = array(); $d = array(); And then you populate the arrays like so: while(...) { $a[] = ... $b[] = ... $c[] = ... $d[] = ... } Now, let's say you want

Re: [PHP] Re: sloppiness & stupidity

2009-06-17 Thread Robert Cummings
Michael A. Peters wrote: Robert Cummings wrote: Ash: As I understand it and is my experience, that is true -- a stand-alone HTML attribute should be equal to itself, such as selected="selected", or more specifically selected="SELECTED". How is that MORE specific? XHTML is like a cross-se

Re: [PHP] Multi-Sort -- how to do this?

2009-06-17 Thread Daniel Brown
On Wed, Jun 17, 2009 at 17:11, tedd wrote: > Hi gang: > [snip!] > > Is there a slick way to do that? Hacked together in the two minutes before I go to bed, so don't complain about its inelegance. ;-P -- daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/ || http://w

Re: [PHP] Re: sloppiness & stupidity

2009-06-17 Thread Michael A. Peters
Robert Cummings wrote: Ash: As I understand it and is my experience, that is true -- a stand-alone HTML attribute should be equal to itself, such as selected="selected", or more specifically selected="SELECTED". How is that MORE specific? XHTML is like a cross-section of XML and HTML. It i

Re: [PHP] Disclaimer

2009-06-17 Thread Daniel Brown
On Wed, Jun 17, 2009 at 20:15, Stuart wrote: > 2009/6/18 Ashley Sheridan : >> On Thu, 2009-06-18 at 01:06 +0100, Stuart wrote: >>> 2009/6/17 Daniel Brown : >>> > On Wed, Jun 17, 2009 at 10:37, Jay Blanchard wrote: >>> >> >>> >> Whoa! Totally unintentional dude! >>> > >>> >    DON'T PANIC! >>> >>> M

Re: [PHP] populate form input option dropdown box from existing data

2009-06-17 Thread Stuart
2009/6/18 PJ : > I snipped to make it short... continue at bottom... >> Step back from the code and consider the steps you need to perform... >> >> 1) Get an array of the categories, ideally in the form $cats[] >> = categoryname. >> >> 2) Get an array of the category IDs that should be selected, i.

Re: [PHP] Re: sloppiness & stupidity

2009-06-17 Thread Robert Cummings
tedd wrote: At 10:51 PM +0100 6/17/09, Ashley Sheridan wrote: On Wed, 2009-06-17 at 23:05 +0200, Nisse Engström wrote: On Wed, 17 Jun 2009 10:18:09 +0100, "Ford, Mike" wrote: > This is very true -- but XHTML requires *all* attributes to have a > value, so an XHTML conformant page will use

Re: [PHP] populate form input option dropdown box from existing data

2009-06-17 Thread PJ
I snipped to make it short... continue at bottom... > Step back from the code and consider the steps you need to perform... > > 1) Get an array of the categories, ideally in the form $cats[] > = categoryname. > > 2) Get an array of the category IDs that should be selected, i.e. > $selectedcats = ar

Re: [PHP] Disclaimer

2009-06-17 Thread Stuart
2009/6/18 Ashley Sheridan : > On Thu, 2009-06-18 at 01:06 +0100, Stuart wrote: >> 2009/6/17 Daniel Brown : >> > On Wed, Jun 17, 2009 at 10:37, Jay Blanchard wrote: >> >> >> >> Whoa! Totally unintentional dude! >> > >> >    DON'T PANIC! >> >> Mr Mannering! >> >> What do you mean it's the wrong refer

Re: [PHP] Disclaimer

2009-06-17 Thread Ashley Sheridan
On Thu, 2009-06-18 at 01:06 +0100, Stuart wrote: > 2009/6/17 Daniel Brown : > > On Wed, Jun 17, 2009 at 10:37, Jay Blanchard wrote: > >> > >> Whoa! Totally unintentional dude! > > > >DON'T PANIC! > > Mr Mannering! > > What do you mean it's the wrong reference? > > &Mr Mannering! > > Better?

Re: [PHP] Re: sloppiness & stupidity

2009-06-17 Thread Michael A. Peters
Ford, Mike wrote: On 17 June 2009 02:11, Shawn McKenzie advised: PJ wrote: I'm sorry, guys, but I am really getting po'd. The irresponsible sloppiness and stupidity is just getting to me. In my quest for a way to populate a multiple option select box I have run across so many errors that it's

Re: [PHP] Disclaimer

2009-06-17 Thread Stuart
2009/6/17 Daniel Brown : > On Wed, Jun 17, 2009 at 10:37, Jay Blanchard wrote: >> >> Whoa! Totally unintentional dude! > >    DON'T PANIC! Mr Mannering! What do you mean it's the wrong reference? &Mr Mannering! Better? (sorry, it's late!) -Stuart -- http://stut.net/ -- PHP General Mailing

Re: [PHP] populate form input option dropdown box from existing data

2009-06-17 Thread Stuart
Oops, hit reply instead of reply to all. Sorry for the duplicate PJ. 2009/6/17 PJ : > Shawn McKenzie wrote: >> PJ wrote: >>> Ashley Sheridan wrote: On Wed, 2009-06-17 at 10:01 -0400, PJ wrote: > Ford, Mike wrote: > >> On 16 June 2009 20:48, PJ advised: >> >> >>> N

Re: [PHP] Re: sloppiness & stupidity

2009-06-17 Thread LinuxManMikeC
I don't know what validator you're using, but according to http://validator.w3.org/ (as official as it gets) the following fragment is correct in HTML 4.01, HTML 5, XHTML 1.0 Strict, and XHTML 1.1: test Thus sayeth the W3C, so let it be written, so let it be done. Go read a tutorial on the t

Re: [PHP] Multi-Sort -- how to do this?

2009-06-17 Thread Ashley Sheridan
On Wed, 2009-06-17 at 19:27 -0400, tedd wrote: > At 10:54 PM +0100 6/17/09, Ashley Sheridan wrote: > >I'd probably go with some sort of custom bubble sorting function. Base > >the sorting on your $d array, and then update the other arrays as > >necessary. Should be OK if they all have the same inde

Re: [PHP] Re: sloppiness & stupidity

2009-06-17 Thread Ashley Sheridan
On Wed, 2009-06-17 at 18:59 -0400, tedd wrote: > At 10:51 PM +0100 6/17/09, Ashley Sheridan wrote: > >On Wed, 2009-06-17 at 23:05 +0200, Nisse Engström wrote: > >> On Wed, 17 Jun 2009 10:18:09 +0100, "Ford, Mike" wrote: > >> > >> > This is very true -- but XHTML requires *all* attributes to have

Re: [PHP] Multi-Sort -- how to do this?

2009-06-17 Thread tedd
At 10:54 PM +0100 6/17/09, Ashley Sheridan wrote: I'd probably go with some sort of custom bubble sorting function. Base the sorting on your $d array, and then update the other arrays as necessary. Should be OK if they all have the same index, like in your example. If you were using keys, could y

Re: [PHP] Re: sloppiness & stupidity

2009-06-17 Thread tedd
At 10:51 PM +0100 6/17/09, Ashley Sheridan wrote: On Wed, 2009-06-17 at 23:05 +0200, Nisse Engström wrote: On Wed, 17 Jun 2009 10:18:09 +0100, "Ford, Mike" wrote: > This is very true -- but XHTML requires *all* attributes to have a > value, so an XHTML conformant page will use name="selecto

Re: [PHP] sloppiness & stupidity

2009-06-17 Thread PJ
:-* Matty Sarro wrote: > *hug* > I think that's what you were really asking for. > > -Matty > > On Tue, Jun 16, 2009 at 8:43 PM, PJ > wrote: > > I'm sorry, guys, but I am really getting po'd. > The irresponsible sloppiness and stupidity is just getting to

Re: [PHP] Re: sloppiness & stupidity

2009-06-17 Thread PJ
Nisse Engström wrote: > On Wed, 17 Jun 2009 10:18:09 +0100, "Ford, Mike" wrote: > > >> This is very true -- but XHTML requires *all* attributes to have a >> value, so an XHTML conformant page will use > name="selector"> (or something similar such as > name="selector">). The only inconsistency he

Re: [PHP] Using large multi dimenstional arrays in js

2009-06-17 Thread Björn Bartels
Hi... you can use 'json_encode'... http://de2.php.net/manual/de/function.json-encode.php like this... var my_js_array = ; YT BB Am 18.06.2009 um 00:32 schrieb Sancar Saran: Hello all, My new project needs to use large multi dimenstional php arrays in j

[PHP] Using large multi dimenstional arrays in js

2009-06-17 Thread Sancar Saran
Hello all, My new project needs to use large multi dimenstional php arrays in javascript. I'm not sure how to do it. Is there any lead or any one give a clue. Regards Sancar -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] populate form input option dropdown box from existing data

2009-06-17 Thread PJ
Shawn McKenzie wrote: > PJ wrote: >> Ashley Sheridan wrote: >>> On Wed, 2009-06-17 at 10:01 -0400, PJ wrote: >>> Ford, Mike wrote: > On 16 June 2009 20:48, PJ advised: > > >> Now, I was happy to learn that it is simpler to populate the >> insert new >> books page d

Re: [PHP] populate form input option dropdown box from existing data

2009-06-17 Thread PJ
Yuri Yarlei wrote: > sorry, maybe I have been lazy in that comment, I admit, whem wrote that > solution I was in a such hurry and without time. I dont really read what I > wrote, but now I think this solution is good. > > > > $sql = "SELECT id,name FROM categories"; > if ( ( $results = mysql_

Re: [PHP] Multi-Sort -- how to do this?

2009-06-17 Thread Ashley Sheridan
On Wed, 2009-06-17 at 22:54 +0100, Douglas Temple wrote: > ...Sticking my neck out playing with the big boys (and girls) now... > > I assume you've looked at array_multisort() for this, I would think you > could have multiple arrays being sorted with it (I've only ever used it for > 2-array sorts)

Re: [PHP] Multi-Sort -- how to do this?

2009-06-17 Thread Douglas Temple
...Sticking my neck out playing with the big boys (and girls) now... I assume you've looked at array_multisort() for this, I would think you could have multiple arrays being sorted with it (I've only ever used it for 2-array sorts). The other option would be to pop all those arrays into a single a

Re: [PHP] Multi-Sort -- how to do this?

2009-06-17 Thread Ashley Sheridan
On Wed, 2009-06-17 at 17:11 -0400, tedd wrote: > Hi gang: > > Here's the problem. Let's say you have a collection of arrays, such as: > > $a = array(); > $b = array(); > $c = array(); > $d = array(); > > And then you populate the arrays like so: > > while(...) > { > $a[] = ... > $b[

Re: [PHP] Re: sloppiness & stupidity

2009-06-17 Thread Ashley Sheridan
On Wed, 2009-06-17 at 23:05 +0200, Nisse Engström wrote: > On Wed, 17 Jun 2009 10:18:09 +0100, "Ford, Mike" wrote: > > > This is very true -- but XHTML requires *all* attributes to have a > > value, so an XHTML conformant page will use > name="selector"> (or something similar such as > name="sel

Re: [PHP] populate form input option dropdown box from existing data

2009-06-17 Thread Ashley Sheridan
On Wed, 2009-06-17 at 16:29 -0400, PJ wrote: > Ashley Sheridan wrote: > > On Wed, 2009-06-17 at 10:01 -0400, PJ wrote: > > > >> Ford, Mike wrote: > >> > >>> On 16 June 2009 20:48, PJ advised: > >>> > >>> > Now, I was happy to learn that it is simpler to populate the > inser

[PHP] Multi-Sort -- how to do this?

2009-06-17 Thread tedd
Hi gang: Here's the problem. Let's say you have a collection of arrays, such as: $a = array(); $b = array(); $c = array(); $d = array(); And then you populate the arrays like so: while(...) { $a[] = ... $b[] = ... $c[] = ... $d[] = ... } Now, let's say you want to sort the $

Re: [PHP] Re: sloppiness & stupidity

2009-06-17 Thread Nisse Engström
On Wed, 17 Jun 2009 10:18:09 +0100, "Ford, Mike" wrote: > This is very true -- but XHTML requires *all* attributes to have a > value, so an XHTML conformant page will use name="selector"> (or something similar such as name="selector">). The only inconsistency here is that different people > have

Re: [PHP] populate form input option dropdown box from existing data

2009-06-17 Thread Shawn McKenzie
PJ wrote: > Ashley Sheridan wrote: >> On Wed, 2009-06-17 at 10:01 -0400, PJ wrote: >> >>> Ford, Mike wrote: >>> On 16 June 2009 20:48, PJ advised: > Now, I was happy to learn that it is simpler to populate the > insert new > books page dynamically from the

Re: [PHP] Re: Help: PHP version not up to date after "apt-get install php5-dev"

2009-06-17 Thread Eddie Drapkin
Why not just compile it yourself? On Wed, Jun 17, 2009 at 3:34 PM, Shawn McKenzie wrote: > Philipp Schaffner wrote: >> Dear PHP [hard]core expert >> >> After  "apt-get install php5-dev" on Linux (Debian, Ubuntu, Hardy Heron) >> with an already existing and functioning PHP5 interpreter "phpinfo()"

Re: [PHP] populate form input option dropdown box from existing data

2009-06-17 Thread PJ
Ashley Sheridan wrote: > On Wed, 2009-06-17 at 10:01 -0400, PJ wrote: > >> Ford, Mike wrote: >> >>> On 16 June 2009 20:48, PJ advised: >>> >>> Now, I was happy to learn that it is simpler to populate the insert new books page dynamically from the db. Much shorter & nea

[PHP] Re: Help: PHP version not up to date after "apt-get install php5-dev"

2009-06-17 Thread Shawn McKenzie
Philipp Schaffner wrote: > Dear PHP [hard]core expert > > After "apt-get install php5-dev" on Linux (Debian, Ubuntu, Hardy Heron) > with an already existing and functioning PHP5 interpreter "phpinfo()" > still shows "PHP Version 5.2.4-2ubuntu5.6". BUT at the same time > phpinfo() shows "Build Dat

[PHP] Re: inserting blobs into mysql

2009-06-17 Thread Tom Worster
false alarm. the error was in my mysql abstraction class. some time ago i put a function in there to clean up invalid utf8 strings and it was doing a nice job on my binary strings. On 6/17/09 1:24 PM, "Tom Worster" wrote: > i'm having trouble getting binary data into blobs in mysql. > > to he

[PHP] Help: PHP version not up to date after "apt-get install php5-dev"

2009-06-17 Thread Philipp Schaffner
Dear PHP [hard]core expert After "apt-get install php5-dev" on Linux (Debian, Ubuntu, Hardy Heron) with an already existing and functioning PHP5 interpreter "phpinfo()" still shows "PHP Version 5.2.4-2ubuntu5.6". BUT at the same time phpinfo() shows "Build Date: April 17 2009"! This seems i

Re: [PHP] populate form input option dropdown box from existing data

2009-06-17 Thread Shawn McKenzie
PJ wrote: > It does, indeed. This confirms my inexperienced conclusion that > in_array() does not work on associative arrays per se; it works on > simple arrays and I just don't have the experience to think of > extracting only the id fields. > I actually am using a slightly more complicated if els

Re: [PHP] populate form input option dropdown box from existing data

2009-06-17 Thread Ashley Sheridan
On Wed, 2009-06-17 at 10:01 -0400, PJ wrote: > Ford, Mike wrote: > > On 16 June 2009 20:48, PJ advised: > > > >> Now, I was happy to learn that it is simpler to populate the > >> insert new > >> books page dynamically from the db. Much shorter & neater. > >> It looks to me like the best solution fo

Re: [PHP] Totally weird behavior trying to download a Mac DMG file

2009-06-17 Thread Tom Worster
On 6/16/09 1:40 PM, "Brian Dunning" wrote: > However, when I complete a test purchase and download using the above > code, the DMG file downloads, but then it mounts; the contents are > copied into the Downloads folder; the image unmounts; and then > deletes. All the contents are delivered, but n

[PHP] inserting blobs into mysql

2009-06-17 Thread Tom Worster
i'm having trouble getting binary data into blobs in mysql. to help debug, i set up a test db and discovered that when i insert a binary string encoded using mysql_real_escape_string (according to the php manual: "If binary data is to be inserted, this function must be used."), only byte values lo

Re: [PHP] sloppiness & stupidity

2009-06-17 Thread tedd
At 8:43 PM -0400 6/16/09, PJ wrote: I'm sorry, guys, but I am really getting po'd. The irresponsible sloppiness and stupidity is just getting to me. Then stop doing it. You appear to be mixing apples and oranges in your questions. I find your questions not well thought-out nor to the point. F

Re: [PHP] sloppiness & stupidity

2009-06-17 Thread Bastien Koert
On Wed, Jun 17, 2009 at 8:57 AM, Yuri Yarlei wrote: > > I agree, this list is to learn and improve skills in php laguage. not to > discriminate the others when they try to help someone or trying to learn > somethings > >> Date: Tue, 16 Jun 2009 20:50:57 -0400 >> From: asny...@noloh.com >> To: af.

Re: [PHP] Disclaimer

2009-06-17 Thread Bastien Koert
On Wed, Jun 17, 2009 at 10:40 AM, Daniel Brown wrote: > On Wed, Jun 17, 2009 at 10:37, Jay Blanchard wrote: >> >> Whoa! Totally unintentional dude! > >    DON'T PANIC! > > -- > > daniel.br...@parasane.net || danbr...@php.net > http://www.parasane.net/ || http://www.pilotpig.net/ > 50% Off All Shar

Re: [PHP] Php and regex help or advice

2009-06-17 Thread Martin Scotta
HTML usually change very often. Especially properties. A link can change from: Home to: Home So, your regex must avoid using the properties to match elements So, I think this should be a better expresion preg_match_all( '#]*>]*>(.+)(.+)(.+)Critical Violations Found:#imsU', $html, // <-- y

[PHP] Php and regex help or advice

2009-06-17 Thread Miller, Terion
Hi Everyone, Ok, so I've been plunged further into using php by being tasked to use it with regex (yes tylenol extra strength needed please) So far I have my code that grabs a full block of text by paragraphs, now I have to somehow write a snippet that goes inside this block and pulls out each lin

Re: [PHP] Disclaimer

2009-06-17 Thread Daniel Brown
On Wed, Jun 17, 2009 at 10:37, Jay Blanchard wrote: > > Whoa! Totally unintentional dude! DON'T PANIC! -- daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/ || http://www.pilotpig.net/ 50% Off All Shared Hosting Plans at PilotPig: Use Coupon DOW1 -- PHP General Mai

RE: [PHP] Disclaimer

2009-06-17 Thread Jay Blanchard
[snip!] > > P.S. I though about typing a missive long enough to make this a number > of lines of code divisible by 42, but I got over it. I wonder if all of > this could be squeezed into 42 lines of code (and not those really long > lines either)? That would be something, wouldn't it? Coincid

Re: [PHP] Disclaimer

2009-06-17 Thread Daniel Brown
On Wed, Jun 17, 2009 at 10:24, Jay Blanchard wrote: [snip!] > > P.S. I though about typing a missive long enough to make this a number > of lines of code divisible by 42, but I got over it. I wonder if all of > this could be squeezed into 42 lines of code (and not those really long > lines either)?

RE: [PHP] Disclaimer

2009-06-17 Thread Jay Blanchard
[snip] -Original Message- From: tedd [mailto:t...@sperling.com] Sent: Wednesday, June 17, 2009 9:07 AM To: php-general@lists.php.net Subject: [PHP] Disclaimer Daniel: At 2:27 PM -0400 6/16/09, Daniel Brown wrote: > You can change the hidden field to a regular text field (even >disab

[PHP] Disclaimer

2009-06-17 Thread tedd
Daniel: At 2:27 PM -0400 6/16/09, Daniel Brown wrote: You can change the hidden field to a regular text field (even disable it from editing), a div, or whatever. Just don't use the price as a hidden field on the production site. The above code is for example only. Take with food. Batteri

Re: [PHP] populate form input option dropdown box from existing data

2009-06-17 Thread PJ
Ford, Mike wrote: > On 16 June 2009 20:48, PJ advised: > >> Now, I was happy to learn that it is simpler to populate the >> insert new >> books page dynamically from the db. Much shorter & neater. >> It looks to me like the best solution for the edit page is >> close to what >> Yuri suggests. >> Si

Re: [PHP] populate form input option dropdown box from existing data

2009-06-17 Thread PJ
Ashley Sheridan wrote: > On Tue, 2009-06-16 at 20:46 -0400, PJ wrote: > >> Ashley Sheridan wrote: >> >>> On Tue, 2009-06-16 at 18:19 -0400, PJ wrote: >>> >>> Ashley Sheridan wrote: > On Tue, 2009-06-16 at 15:48 -0400, PJ wrote: > >

RE: [PHP] sloppiness & stupidity

2009-06-17 Thread Yuri Yarlei
I agree, this list is to learn and improve skills in php laguage. not to discriminate the others when they try to help someone or trying to learn somethings > Date: Tue, 16 Jun 2009 20:50:57 -0400 > From: asny...@noloh.com > To: af.gour...@videotron.ca; php-general@lists.php.net > Subject: RE:

RE: [PHP] populate form input option dropdown box from existing data

2009-06-17 Thread Yuri Yarlei
sorry, maybe I have been lazy in that comment, I admit, whem wrote that solution i was in a such hurry and without time. I dont really read what i wrote, but now i think this solution is good ".$row['name'].""; } } ?> > Date: Tue, 16 Jun 2009 20:46:29 -0400 > From: af.gour...@videotron.ca

RE: [PHP] populate form input option dropdown box from existing data

2009-06-17 Thread Yuri Yarlei
sorry, maybe I have been lazy in that comment, I admit, whem wrote that solution I was in a such hurry and without time. I dont really read what I wrote, but now I think this solution is good. ".$row['name'].""; } } ?> > Date: Wed, 17 Jun 2009 10:16:15 +0100 > From: m.f...@leedsm

RE: [PHP] sloppiness & stupidity

2009-06-17 Thread Jay Blanchard
[snip] Excrement [/snip] Indeed. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problems with apc extension on wamp server.

2009-06-17 Thread Valentinas Bakaitis
Found the problem: must always be before file input in the form. 2009/6/17 Valentinas Bakaitis : > Hi. > > Yes, as it turned out, the extension was not loaded. While following > some tutorial i added only "apc.rfc1867 = 1" to php.ini. Turns out > that this particular line turns on one of apc fu

Re: [PHP] sloppiness & stupidity

2009-06-17 Thread Stuart
2009/6/17 PJ : > I'm sorry, guys, but I am really getting po'd. > The irresponsible sloppiness and stupidity is just getting to me. > In my quest for a way to populate a multiple option select box I have > run across so many errors that it's beyond belief... such nonsense as > "select for select or

RE: [PHP] Re: sloppiness & stupidity

2009-06-17 Thread Ford, Mike
On 17 June 2009 02:11, Shawn McKenzie advised: > PJ wrote: >> I'm sorry, guys, but I am really getting po'd. >> The irresponsible sloppiness and stupidity is just getting to me. >> In my quest for a way to populate a multiple option select box I have >> run across so many errors that it's beyond b

RE: [PHP] populate form input option dropdown box from existing data

2009-06-17 Thread Ford, Mike
On 16 June 2009 20:48, PJ advised: > Now, I was happy to learn that it is simpler to populate the > insert new > books page dynamically from the db. Much shorter & neater. > It looks to me like the best solution for the edit page is > close to what > Yuri suggests. > Since the edit page is very si

Re: [PHP] Persistent data between two executions

2009-06-17 Thread LinuxManMikeC
(Man, this reply-all takes some getting used to...) As long as your objects don't contain any reference variables (see manual) you can just assign the object to an element of $_SESSION and leave it at that. The session management code takes care of the serialization. So you're just duplicating w

Re: [PHP] Link to .php page with session

2009-06-17 Thread santel
Stuart wrote: 2009/6/16 santel : Hi, I have a .php page that use sessions and shows a file .FLV by transcoding, on the fly, from any format video to FLV using a shell command [ system("/usr/bin/ffmpeg -re -i ./file.wmv -f flv -an -sameq -") ]. In a .php page: case 1): if j put a link to an

Re: [PHP] Problems with apc extension on wamp server.

2009-06-17 Thread Valentinas Bakaitis
Hi. Yes, as it turned out, the extension was not loaded. While following some tutorial i added only "apc.rfc1867 = 1" to php.ini. Turns out that this particular line turns on one of apc functions (file tracking), but not the apc itself. However, now when i have apc turned on i still have a proble