Re: [PHP] Could apc_fetch return a pointer to data in shared memory ?

2012-04-01 Thread Simon Schick
2012/4/1 Simon > > Another thing that's possible in .NET is the Singleton design pattern. > (Application variables are an implementation of this pattern) > > This makes it possible to instantiate a static class so that a single > instance of the object is available to all threads (ie requests) acr

Re: [PHP] Variable representation

2012-04-01 Thread tamouse mailing lists
On Mon, Apr 2, 2012 at 12:20 AM, tamouse mailing lists wrote: > Ugh, gmail mangled the code there. Here's a pastebin of the response > which is better formatted: http://pastie.org/3712761 Sweet. I spent so long on my reply, two others snuck in before me. :) -- PHP General Mailing List (http://w

Re: [PHP] Variable representation

2012-04-01 Thread tamouse mailing lists
Ugh, gmail mangled the code there. Here's a pastebin of the response which is better formatted: http://pastie.org/3712761 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Variable representation

2012-04-01 Thread tamouse mailing lists
On Sun, Apr 1, 2012 at 10:52 PM, Ron Piggott wrote: > Hi Everyone: > > I am assigning the value of 4 images to variables following a database query: > > $image_1 = stripslashes( $row['image_1'] ); > $image_2 = stripslashes( $row['image_2'] ); > $image_3 = stripslashes( $row['image_3'] ); > $image_

Re: [PHP] Variable representation

2012-04-01 Thread Mihamina Rakotomandimby
On 04/02/2012 07:46 AM, Adam Randall wrote: $images[] = stripslashes( $row['image_1'] ); $images[] = stripslashes( $row['image_2'] ); $images[] = stripslashes( $row['image_3'] ); $images[] = stripslashes( $row['image_4'] ); $images[1] = stripslashes( $row['image_1'] ); $images[2] = strips

Re: [PHP] Variable representation

2012-04-01 Thread Mihamina Rakotomandimby
On 04/02/2012 06:52 AM, Ron Piggott wrote: $image_1 = stripslashes( $row['image_1'] ); $image_2 = stripslashes( $row['image_2'] ); $image_3 = stripslashes( $row['image_3'] ); $image_4 = stripslashes( $row['image_4'] ); [...] (Not all 4 variables have an image.) How is it meant in the database?

Re: [PHP] Variable representation

2012-04-01 Thread Adam Randall
It would better to just use an array, and then iterate through that. $images[] = stripslashes( $row['image_1'] ); $images[] = stripslashes( $row['image_2'] ); $images[] = stripslashes( $row['image_3'] ); $images[] = stripslashes( $row['image_4'] ); foreach( $images as $k => $v ) { $k++; /

Re: [PHP] PHP ISSUE!!!

2012-04-01 Thread tamouse mailing lists
On Sun, Apr 1, 2012 at 11:03 PM, Karl James wrote: > Is anyone online at the moment. > > I need help with a phpmyadmin table issue. > > I get a critical error when I try to upload images > > From the web portal admin page. > > I can send you a screen shot and allow you access to > > The database t

[PHP] PHP ISSUE!!!

2012-04-01 Thread Karl James
Is anyone online at the moment. I need help with a phpmyadmin table issue. I get a critical error when I try to upload images >From the web portal admin page. I can send you a screen shot and allow you access to The database to help out. Some have told me this is A Auto_increment issue, but

[PHP] Variable representation

2012-04-01 Thread Ron Piggott
Hi Everyone: I am assigning the value of 4 images to variables following a database query: $image_1 = stripslashes( $row['image_1'] ); $image_2 = stripslashes( $row['image_2'] ); $image_3 = stripslashes( $row['image_3'] ); $image_4 = stripslashes( $row['image_4'] ); What I need help with is how

Re: [PHP] whats wrong

2012-04-01 Thread tamouse mailing lists
On Sat, Mar 31, 2012 at 6:36 AM, Maciek Sokolewicz wrote: > On 31-03-2012 10:29, tamouse mailing lists wrote: >> >> On Sat, Mar 31, 2012 at 1:45 AM, saeed ahmed >>  wrote: >>> >>> i have made a php script with a tutorial helpi dont know where is a >>> error.please have a look >> >> >> Before y

Re: [PHP] Command line has no network access

2012-04-01 Thread Lester Caine
Matijn Woudt wrote: This is usually because of security settings. You might want to check under which user the scheduler starts the php script. Runs as administrator, it's on a secure internal network so it's not locked down. There aren't any other users on the machine anyway. wget has solved

Re: [PHP] Command line has no network access

2012-04-01 Thread Matijn Woudt
On Sun, Apr 1, 2012 at 6:10 PM, Lester Caine wrote: > OK I probably know how to do this 10 years ago, but I'm not finding any > prompts to remind me. > > Windows 2000, PHP5.2.10 cli ... > I'm trying to set up a simple dump to run from scheduler. The code runs > perfectly via the browser so I'm man

Re: [PHP] Command line has no network access

2012-04-01 Thread David OBrien
On Apr 1, 2012 12:11 PM, "Lester Caine" wrote: > > OK I probably know how to do this 10 years ago, but I'm not finding any prompts to remind me. > > Windows 2000, PHP5.2.10 cli ... > I'm trying to set up a simple dump to run from scheduler. The code runs perfectly via the browser so I'm manually h

Re: [PHP] Could apc_fetch return a pointer to data in shared memory ?

2012-04-01 Thread Simon
> > On 1 April 2012 13:52, Simon wrote: > >> >> >> On 31 March 2012 20:44, Stuart Dallas wrote: >> >>> On 31 Mar 2012, at 13:14, Simon wrote: >>> >>> > Thanks again Stuart. >>> > >>> > On 31 March 2012 12:50, Stuart Dallas wrote: >>> >> On 31 March 2012 11:19, Simon wrote: >>> >> Thanks for you

[PHP] Command line has no network access

2012-04-01 Thread Lester Caine
OK I probably know how to do this 10 years ago, but I'm not finding any prompts to remind me. Windows 2000, PHP5.2.10 cli ... I'm trying to set up a simple dump to run from scheduler. The code runs perfectly via the browser so I'm manually having to log in each day to run it. I've got an entry

Re: [PHP] Websocket using php

2012-04-01 Thread Tim Streater
On 31 Mar 2012 at 16:14, Leandro Dardini wrote: > Hello, > I have the need to use websockets for the server part of an application I > am developing and I found with a big surprise no websocket class or > procedure is available on the net. Have I missed looking in some place? > > Being really in