php-general Digest 31 Mar 2012 11:36:52 -0000 Issue 7754

2012-03-31 Thread php-general-digest-help
php-general Digest 31 Mar 2012 11:36:52 - Issue 7754 Topics (messages 317381 through 317395): Re: Node.PHP 317381 by: German Geek 317382 by: Michael Save Could apc_fetch return a pointer to data in shared memory ? 317383 by: Simon 317394 by: Stuart Dallas

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

2012-03-31 Thread tamouse mailing lists
On Fri, Mar 30, 2012 at 7:05 AM, David OBrien dgobr...@gmail.com wrote: Find a way to do it using PHP's imagemagick extensions http://php.net/manual/en/book.imagick.php On Fri, Mar 30, 2012 at 5:56 AM, rene7705 rene7...@gmail.com wrote: Hi. I have a script that uses imagemagick's convert

Re: [PHP] whats wrong

2012-03-31 Thread Tommy Pham
On Fri, Mar 30, 2012 at 11:45 PM, saeed ahmed mycomputerbo...@gmail.com 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

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 tamouse.li...@gmail.com 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. )

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 rene7...@gmail.com 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

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 mycomputerbo...@gmail.comwrote: i have made a php script with a tutorial helpi dont know where is a

[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,

Re: [PHP] whats wrong

2012-03-31 Thread tamouse mailing lists
On Sat, Mar 31, 2012 at 1:45 AM, saeed ahmed mycomputerbo...@gmail.com 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

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. 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 ahmedmycomputerbo...@gmail.com 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

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

[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

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

Re: [PHP] Node.PHP

2012-03-31 Thread Daniel Brown
On Fri, Mar 30, 2012 at 21:33, Michael Save savetheinter...@omegasdg.com 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

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 tamouse.li...@gmail.com 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

Re: [PHP] Websocket using php

2012-03-31 Thread Matijn Woudt
On Sat, Mar 31, 2012 at 5:14 PM, Leandro Dardini ldard...@gmail.com 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

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 stu...@3ft9.com wrote: On 31 March 2012 11:19, Simon slg...@gmail.com wrote: Thanks for your answer. On 31 March 2012 09:50, Stuart Dallas stu...@3ft9.com wrote: On 31 Mar 2012, at 02:33,