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

2012-03-31 Thread Stuart Dallas
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 your answer. >> >> On 31 March 2012 09:50, Stuart Dallas wrote: >> On 31 Mar 2012, at 02:33, Simon wrote: >> >> > Or: Why doesn

Re: [PHP] Websocket using php

2012-03-31 Thread Matijn Woudt
On Sat, Mar 31, 2012 at 5:14 PM, 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 rea

Re: [PHP] some good deals on good books

2012-03-31 Thread Daniel Brown
On Sat, Mar 31, 2012 at 03:02, tamouse mailing lists wrote: > I know there are quite a few people here who are just beginning to > learn how to write programs as they also learn about PHP. O'Reilly has > a deal on some pretty important books available electronically, save > 50%. If this appeals to

Re: [PHP] Node.PHP

2012-03-31 Thread Daniel Brown
On Fri, Mar 30, 2012 at 21:33, Michael Save wrote: > Because "normal" PHP is not asynchronous. > > Also, I kind of doubt you can outperform node.js with standard PHP. Your doubts are indeed well-grounded. Using node.js (indeed, V8-based apps in general) are compiled as native machine code, w

Re: [PHP] Thinking out loud - a continuation...

2012-03-31 Thread Jay Blanchard
[snip] On 3/30/2012 1:14 PM, Robert Cummings wrote: On 12-03-27 11:11 AM, Jay Blanchard wrote: [snip]On 3/27/2012 12:21 AM, Robert Cummings wrote: >> [-- SNIP --] Essentially, entries at the root and entries for the children are just auto indexed array items but the actual entries in those arr

[PHP] Websocket using php

2012-03-31 Thread Leandro Dardini
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 interested in using this protocol with PHP, I start from the clo

Re: [PHP] Watch out for automatic type casting

2012-03-31 Thread Maciek Sokolewicz
On 30-03-2012 09:47, Arno Kuhl wrote: -Original Message- From: Simon Schick [mailto:simonsimc...@googlemail.com] Sent: 29 March 2012 07:19 PM To: a...@dotcontent.net Cc: php-general@lists.php.net Subject: Re: [PHP] Watch out for automatic type casting Hi, Arno FYI: I found a page in the

Re: [PHP] whats wrong

2012-03-31 Thread Maciek Sokolewicz
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 you actually run code in a browser, check your syntax with php -l (for "lint", the old

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

2012-03-31 Thread Stuart Dallas
On 31 Mar 2012, at 02:33, Simon wrote: > Or: Why doesn't PHP have Applications variables like ASP.NET (and node.js) > ? > > Hi, > > I'm working on optimising a php application (Drupal). > > The best optimisation I've found so far is to use APC to store various bits > of Drupal data in RAM. >

Re: [PHP] whats wrong

2012-03-31 Thread tamouse mailing lists
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 you actually run code in a browser, check your syntax with php -l (for "lint", the old command to check C syntax on unixy systems) on a c

[PHP] Att: saeed ahmed

2012-03-31 Thread Karl-Arne Gjersøyen
Try this: mysql> CREATE DATABASE addressbook; Query OK, 1 row affected (0.00 sec) mysql> USE addressbook; Database changed mysql> CREATE TABLE userData(id INT(4) NOT NULL AUTO_INCREMENT PRIMARY KEY, firstName VARCHAR(50) NOT NULL, lastName VARCHAR(50) NOT NULL, telephone INT(12) NOT NULL, em

Re: [PHP] whats wrong

2012-03-31 Thread Duken Marga
Please check this line: > $result=mysql_query("select("SELECT*FROM COLLEAGUE"); I think it should be: > $result=mysql_query("SELECT * FROM COLLEAGUE"); On Sat, Mar 31, 2012 at 1:45 PM, saeed ahmed wrote: > i have made a php script with a tutorial helpi dont know where is a > error.please ha

Re: [PHP] securing a script that exec()s

2012-03-31 Thread tamouse mailing lists
On Sat, Mar 31, 2012 at 1:37 AM, rene7705 wrote: > escapeshellcmd() seems simplest. It might be if all you care about are shell meta characters, and admittedly it will save you from someone entering "& rm -rf / &" in your input field. But dealing with generic user input, even escaped, can still b

Re: [PHP] some good deals on good books

2012-03-31 Thread Tommy Pham
On Sat, Mar 31, 2012 at 12:02 AM, tamouse mailing lists wrote: > > ( I apologize if this offends anyone's sensibilities. I am not in the > employ of O'Reilly, nor is this going to make me any scratch. I just > think this is a good chance to pick up some pretty useful books. ) > Makes a lot of sen

Re: [PHP] whats wrong

2012-03-31 Thread Tommy Pham
On Fri, Mar 30, 2012 at 11:45 PM, saeed ahmed wrote: > i have made a php script with a tutorial helpi dont know where is a > error.please have a look > Your code below assumes that everything is perfect in your world. IE: no network connectivity issue, all firewall related are properly conf