Re: [PHP] timezone

2013-04-15 Thread Maciek Sokolewicz
On 15-4-2013 22:12, Larry Martell wrote: On Mon, Apr 15, 2013 at 1:59 PM, Lester Caine les...@lsces.co.uk wrote: Larry Martell wrote: No, I don't - this app runs in different locations all over the world. I found some code at php.net that does this:

Re: [PHP] timezone

2013-04-15 Thread Larry Martell
On Mon, Apr 15, 2013 at 2:57 PM, Maciek Sokolewicz maciek.sokolew...@gmail.com wrote: On 15-4-2013 22:12, Larry Martell wrote: On Mon, Apr 15, 2013 at 1:59 PM, Lester Caine les...@lsces.co.uk wrote: Larry Martell wrote: No, I don't - this app runs in different locations all over the world.

Re: [PHP] timezone

2013-04-15 Thread Maciek Sokolewicz
On 15 April 2013 23:06, Larry Martell la...@software-horizons.com wrote: But UCT is not the timezone. When this app runs in New Mexico (where I am) it's Mountain time. When it runs in NY it's Eastern. When it runs in Tokyo it's JST, etc. The user has the option of setting the timezone all

Re: [PHP] timezone

2013-04-15 Thread Stuart Dallas
On Mon, Apr 15, 2013 at 10:06 PM, Larry Martell la...@software-horizons.com=mailto:la...@software-horizons.com; wrote: On Mon, Apr 15, 2013 at 2:57 PM, Maciek Sokolewicz wrote: On 15-4-2013 22:12, Larry Martell wrote: On Mon, Apr 15, 2013 at 1:59 PM, Lester Caine wrote: Larry Martell

Re: [PHP] [ask] convert unknown format Japanese string to readable string

2013-04-14 Thread Morning Star
i want to try something else. korean. i got no luck when I tried with Korean. 'UCS-2BE' to 'UTF-8' encoding conversion didn't work. i also tried with ISO-2022-KR and EUC-KR to 'UTF-8' , but no luck either. How can I do that? Regards, Marco On Fri, Apr 12, 2013 at 8:49 AM, Morning Star

Re: [PHP] Currency name before and after value

2013-04-14 Thread Matijn Woudt
From wikipedia: According to the European Unionhttp://en.wikipedia.org/wiki/European_Union's Publication Office,[5] http://en.wikipedia.org/wiki/ISO_4217#cite_note-5 in English http://en.wikipedia.org/wiki/English_language_in_England, Irishhttp://en.wikipedia.org/wiki/Irish_language , Latvian

Re: [PHP] [ask] convert unknown format Japanese string to readable string

2013-04-14 Thread Morning Star
Hi guys, Does anyone have an idea how to solve that? convert from Korea's encoding to utf8's encoding. Regards, Marco On Sun, Apr 14, 2013 at 6:29 AM, Morning Star morning.star.c...@gmail.com wrote: i want to try something else. korean. i got no luck when I tried with Korean. 'UCS-2BE' to

Re: [PHP] Re: Is BBCode Installed

2013-04-12 Thread shiplu
On Fri, Apr 12, 2013 at 4:24 AM, Stephen stephe...@rogers.com wrote: Now I have to install on my home development machine! You can install it by following command pecl install bbcode Note: root privilege is necessary to install -- Shiplu.Mokadd.im ImgSign.com | A dynamic signature machine

Re: [PHP] [ask] convert unknown format Japanese string to readable string

2013-04-12 Thread Morning Star
It works! Thanks, Koyama! :) On Thu, Apr 11, 2013 at 8:54 AM, KOYAMA Tetsuji koy...@hoge.org wrote: Hi, On Thu, Apr 11, 2013 at 5:39 PM, Morning Star morning.star.c...@gmail.com wrote: Hi guys, i have a string like this: $string = \u3053\u3093\u306b\u3061\u306f\u30ef\u30fc\u30c9

Re: [PHP] Detecting massive web hits

2013-04-12 Thread Samuel Lopes Grigolato
I don't know exactly how search engine spiders work, but just be cautious to not block these users, they aren't customers but they may bring you some =). Again, I don't know if this is your case, but the possibility sparked on my mind anyway. Cheers. On Fri, Apr 12, 2013 at 12:23 PM, Angela

Re: [PHP] Detecting massive web hits

2013-04-12 Thread Sebastian Krebs
Nginx has builtin support for this and I assume, that there is something similar for Apache. I don't think PHP is the right tool. Am 12.04.2013 17:24 schrieb Angela Barone ang...@italian-getaways.com: Does anyone know if there's a ready-made script that detects if someone hits multiple

Re: [PHP] Detecting massive web hits

2013-04-12 Thread Frank Arensmeier
12 apr 2013 kl. 17.23 skrev Angela Barone: Does anyone know if there's a ready-made script that detects if someone hits multiple web pages within seconds of each other and then can temporarily ban them by IP from accessing our site? Looking through the logs, I see

Re: [PHP] Detecting massive web hits

2013-04-12 Thread Matijn Woudt
On Fri, Apr 12, 2013 at 5:23 PM, Angela Barone ang...@italian-getaways.comwrote: Does anyone know if there's a ready-made script that detects if someone hits multiple web pages within seconds of each other and then can temporarily ban them by IP from accessing our site?

Re: [PHP] Re: Is BBCode Installed

2013-04-12 Thread Stephen
On 13-04-12 02:28 AM, shiplu wrote: On Fri, Apr 12, 2013 at 4:24 AM, Stephen stephe...@rogers.com mailto:stephe...@rogers.com wrote: Now I have to install on my home development machine! You can install it by following command pecl install bbcode Note: root privilege is necessary to

Re: [PHP] [ask] convert unknown format Japanese string to readable string

2013-04-11 Thread KOYAMA Tetsuji
Hi, On Thu, Apr 11, 2013 at 5:39 PM, Morning Star morning.star.c...@gmail.com wrote: Hi guys, i have a string like this: $string = \u3053\u3093\u306b\u3061\u306f\u30ef\u30fc\u30c9 (Japanese words that say hello world in English) How can I convert that $string to Japanese character? It

Re: [PHP] how to insert html code with PHP

2013-04-11 Thread tamouse mailing lists
On Apr 11, 2013 6:35 AM, Rafnews raf.n...@gmail.com wrote: Hi, I would like to insert a piece of HTML code inside several pages. all pages are differently named. i need in each page to find a particular tag, let's say div id=#submenu.../div (so based on its ID and tagname) and inside it to

Re: [PHP] Re: how to insert html code with PHP

2013-04-11 Thread Rafnews
On 11.04.2013 14:14, Jim Giner wrote: On 4/11/2013 7:34 AM, Rafnews wrote: Hi, I would like to insert a piece of HTML code inside several pages. all pages are differently named. i need in each page to find a particular tag, let's say div id=#submenu.../div (so based on its ID and tagname) and

Re: [PHP] Re: Is BBCode Installed

2013-04-11 Thread David Harkness
Hi Stephen, I just tried installing the PECL extension, but it failed to build on PHP 5.4.6-1ubuntu1.2. I see Xdebug in the phpinfo output, and I assume other PECL extensions will show up there once installed. Good luck! David

Re: [PHP] Re: how to insert html code with PHP

2013-04-11 Thread Rafnews
On 11.04.2013 19:19, Jim Giner wrote: On 4/11/2013 10:48 AM, Rafnews wrote: On 11.04.2013 13:34, Rafnews wrote: Hi, I would like to insert a piece of HTML code inside several pages. all pages are differently named. i need in each page to find a particular tag, let's say div

Re: [PHP] search array

2013-04-11 Thread tamouse mailing lists
On Thu, Apr 11, 2013 at 1:37 PM, Russell Brackett rbrack...@capitolabs.com wrote: I need help with this code to echo all items in the general database and not just the fields I'm searching for. ?php // filter function function cleanInput($input) { $search = array('OEM

Re: [PHP] Re: how to insert html code with PHP

2013-04-11 Thread tamouse mailing lists
On Thu, Apr 11, 2013 at 1:12 PM, Rafnews raf.n...@gmail.com wrote: On 11.04.2013 19:19, Jim Giner wrote: On 4/11/2013 10:48 AM, Rafnews wrote: On 11.04.2013 13:34, Rafnews wrote: Hi, I would like to insert a piece of HTML code inside several pages. all pages are differently named. i

Re: [PHP] Lasting syntax error when there's none

2013-04-10 Thread Filip Zrůst
It seems the problem was caused by shared folder between host and guest systems, respectively by files’ owner and group. When I copied file to designated folder, everything started to work. However permissions and other things are the same from the point of readability and writability. It’s

Re: [PHP] Re: Is BBCode Installed

2013-04-10 Thread Stephen
On 13-04-10 10:59 PM, David Robley wrote: I ran phpinfo() on my host and searched for BBCode. Not found. Does this mean that the extension is not installed? If not, how can I tell? Thanks BBCode isn't a php extension, but may be implemented using php or other languages. See

Re: [PHP] Re: Is BBCode Installed

2013-04-10 Thread David Robley
Stephen wrote: On 13-04-10 10:59 PM, David Robley wrote: I ran phpinfo() on my host and searched for BBCode. Not found. Does this mean that the extension is not installed? If not, how can I tell? Thanks BBCode isn't a php extension, but may be implemented using php or other languages.

Re: [PHP] JPGraph new GanttBar ... bar caption on left, right side

2013-04-09 Thread Stuart Dallas
On 9 Apr 2013, at 11:23, Meli Marco marco.m...@gknsintermetals.com wrote: Hello, I would like to know how to print captions (normally used for percentage completion) on the left (start date) and right (end date) side of the bar, instead just on the right. Below the method for bar creation:

Re: [PHP] Lasting syntax error when there's none

2013-04-09 Thread Stephen
You first step is to check the log files. No matter how sure we are that there is no syntax error, always start with the logs. It could be a file permission problem. Stephen On 13-04-09 11:00 AM, fr...@me.com wrote: Hi everyone, I have some weird problem with PHP compiler or something of

Re: [PHP] htaccess question

2013-04-09 Thread Daniel Brown
On Tue, Apr 9, 2013 at 2:07 PM, Al n...@ridersite.org wrote: I know it's not a php question, but I can't readily find the answer elsewhere. I want to make this directive universal. Put htaccess file on any host in any folder. This works RewriteEngine On RewriteCond %{SERVER_PORT} !=443

Re: [PHP] Lasting syntax error when there's none

2013-04-09 Thread Marco Behnke
Am 09.04.2013 17:00, schrieb fr...@me.com: Hi everyone, I have some weird problem with PHP compiler or something of this sort of things. We have some PHP files which are generated during the first request to the site. These files are normally executed via PHP then. For some reason PHP

Re: [PHP] Commands which call exec() or shell_exec() ??

2013-04-09 Thread Daniel Brown
On Tue, Apr 9, 2013 at 3:11 PM, Ken Kixmoeller phph...@comcast.net wrote: Hi -- - Strange problem. One of my applications was just moved to a new server. The new server has php configured to blacklist some functions (using disable_functions=). One of the banned functions is exec(). The

Re: [PHP] Commands which call exec() or shell_exec() ??

2013-04-09 Thread Matijn Woudt
On Tue, Apr 9, 2013 at 9:11 PM, Ken Kixmoeller phph...@comcast.net wrote: Hi -- - Strange problem. One of my applications was just moved to a new server. The new server has php configured to blacklist some functions (using disable_functions=). One of the banned functions is exec(). The

Re: [PHP] Commands which call exec() or shell_exec() ??

2013-04-09 Thread Ken Kixmoeller
Thanks, Daniel - -- I do use passthru() -- in an entirely different part of the application (a place where it runs a mysqldump to do a manual backup). Of course, I have millions of backticks delimiting SQL fields and tables. The error log is reporting specifically shell_exec(). Would a stray

Re: [PHP] Commands which call exec() or shell_exec() ??

2013-04-09 Thread Ken Kixmoeller
Yes -- Thanks Matjen and Daniel --- There *was* a stray backtick in there. Weird that we haven't run into it before. Testing now. On Tue, Apr 9, 2013 at 2:41 PM, Matijn Woudt tijn...@gmail.com wrote: On Tue, Apr 9, 2013 at 9:11 PM, Ken Kixmoeller phph...@comcast.netwrote: Hi -- -

Re: [PHP] Commands which call exec() or shell_exec() ??

2013-04-09 Thread Ken Kixmoeller
Yes --- it worked. Thank you so very much. I had searched the heck out of this to no avail. This is why I think developer communities are so great -- always someone smarter than me (not that it is a high bar s) and willing to help. On Tue, Apr 9, 2013 at 3:05 PM, Ken Kixmoeller

Re: [PHP] Commands which call exec() or shell_exec() ??

2013-04-09 Thread El Ale...
you probe command system()? 2013/4/9 Ken Kixmoeller phph...@comcast.net Yes --- it worked. Thank you so very much. I had searched the heck out of this to no avail. This is why I think developer communities are so great -- always someone smarter than me (not that it is a high bar s) and

Re: [PHP] Commands which call exec() or shell_exec() ??

2013-04-09 Thread Ken Kixmoeller
Yes, but no further need. Problem solved. On Tue, Apr 9, 2013 at 4:06 PM, El Ale... alexissauc...@gmail.com wrote: you probe command system()? 2013/4/9 Ken Kixmoeller phph...@comcast.net Yes --- it worked. Thank you so very much. I had searched the heck out of this to no avail. This

Re: [PHP] Lasting syntax error when there's none

2013-04-09 Thread Filip Zrůst
Hi Stephen, I looked there before but I’ve increased debug level after you suggestion and there’s still nothing helpful I guess. But just to be sure: Reverse proxy (“load balancer”): - error log: nothing - access log: 192.168.60.2 - - [09/Apr/2013:15:25:08 −0700] GET /offer/create HTTP/1.1

Re: [PHP] webform spam prevention

2013-04-06 Thread Tedd Sperling
On Apr 4, 2013, at 5:02 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: or you can't see at all) then you have to fall back to the audio replacement offered by the captcha. I've tried listening to some, and they are awful. Thanks, Ash Ash: How about the second one down? Can you

Re: [PHP] webform spam prevention

2013-04-04 Thread Ashley Sheridan
On Wed, 2013-04-03 at 20:32 -0500, tamouse mailing lists wrote: I'd love to learn how to do that WITHOUT A MOUSE On Wed, Apr 3, 2013 at 8:10 PM, jomali jomali3...@gmail.com wrote: On Wed, Apr 3, 2013 at 7:33 PM, tamouse mailing lists tamouse.li...@gmail.com wrote: These folks might

Re: [PHP] Empty $_POST after submit.

2013-04-04 Thread Sorin Badea
Hi, Did you tried a print_r($_POST) or a var_dump ? On Thu, Apr 4, 2013 at 1:10 PM, Ninad ninadsh...@iitb.ac.in wrote: Dear all, I am having 2 servers. One is running fedora 10 with php 5.2.6-5 and second one is running fedora17 with php 5.4.13. Below given code is working absolutely fine

Re: [PHP] Empty $_POST after submit.

2013-04-04 Thread Ninad
Hello, Thanks for such a fast response. Yes I tried bellow things but result is same --- no output.. $postdata = file_get_contents('php://input'); var_dump($postdata); var_dump($_POST); Regards, Ninad. On 04/04/2013 03:50 PM, Sorin Badea wrote: Hi, Did you tried a print_r($_POST) or a

Re: [PHP] Empty $_POST after submit.

2013-04-04 Thread Ashley Sheridan
On Thu, 2013-04-04 at 15:55 +0530, Ninad wrote: Hello, Thanks for such a fast response. Yes I tried bellow things but result is same --- no output.. $postdata = file_get_contents('php://input'); var_dump($postdata); var_dump($_POST); Regards, Ninad. On 04/04/2013 03:50 PM,

Re: [PHP] Empty $_POST after submit.

2013-04-04 Thread Sorin Badea
What are you using on the server for http ? nginx or apache ? can you give us more details about your configuration (mods, configuration, htaccess ) ? On Thu, Apr 4, 2013 at 1:25 PM, Ninad ninadsh...@iitb.ac.in wrote: Hello, Thanks for such a fast response. Yes I tried bellow things but

Re: [PHP] Empty $_POST after submit.

2013-04-04 Thread Ninad
Hi, I am using httpd as a web server with default configuration. Regards, Ninad. On 04/04/2013 04:11 PM, Sorin Badea wrote: What are you using on the server for http ? nginx or apache ? can you give us more details about your configuration (mods, configuration, htaccess ) ? On Thu, Apr 4,

Re: [PHP] Empty $_POST after submit.

2013-04-04 Thread Ninad
Hi, I tried using Firebug got below response. Parametersapplication/x-www-form-urlencoded firstname |test| lastname|111| submit |Submit| Source |firstname=testlastname=111submit=Submit| Regards, Ninad On 04/04/2013 04:14 PM, Ashley Sheridan wrote:

Re: [PHP] Empty $_POST after submit.

2013-04-04 Thread Sorin Badea
So you have a single php file with the code from the first email and the $_POST var is empty. Am I right ? On Thu, Apr 4, 2013 at 1:49 PM, Ninad ninadsh...@iitb.ac.in wrote: Hi, I am using httpd as a web server with default configuration. Regards, Ninad. On 04/04/2013 04:11 PM, Sorin

Re: [PHP] Empty $_POST after submit.

2013-04-04 Thread Ashley Sheridan
On Thu, 2013-04-04 at 13:53 +0300, Sorin Badea wrote: So you have a single php file with the code from the first email and the $_POST var is empty. Am I right ? On Thu, Apr 4, 2013 at 1:49 PM, Ninad ninadsh...@iitb.ac.in wrote: Hi, I am using httpd as a web server with default

Re: [PHP] Empty $_POST after submit.

2013-04-04 Thread Ninad
yes you are right On 04/04/2013 04:23 PM, Sorin Badea wrote: So you have a single php file with the code from the first email and the $_POST var is empty. Am I right ? On Thu, Apr 4, 2013 at 1:49 PM, Ninad ninadsh...@iitb.ac.in mailto:ninadsh...@iitb.ac.in wrote: Hi, I am

Re: [PHP] Empty $_POST after submit.

2013-04-04 Thread Ninad
I tried that already but same result ... no output... On 04/04/2013 04:32 PM, Ashley Sheridan wrote: On Thu, 2013-04-04 at 13:53 +0300, Sorin Badea wrote: So you have a single php file with the code from the first email and the $_POST var is empty. Am I right ? On Thu, Apr 4, 2013 at 1:49

Re: [PHP] Empty $_POST after submit.

2013-04-04 Thread Ashley Sheridan
On Thu, 2013-04-04 at 16:33 +0530, Ninad wrote: I tried that already but same result ... no output... On 04/04/2013 04:32 PM, Ashley Sheridan wrote: On Thu, 2013-04-04 at 13:53 +0300, Sorin Badea wrote: So you have a single php file with the code from the first email and the $_POST

Re: [PHP] Empty $_POST after submit.

2013-04-04 Thread Sorin Badea
I've tried the same code on a instance with fedora 17 and php 5.4.13. It seems to work fine. Can you provide us a link with the url to your page ? On 04/04/2013 01:59 PM, Ninad wrote: yes you are right On 04/04/2013 04:23 PM, Sorin Badea wrote: So you have a single php file with the

Re: [PHP] Empty $_POST after submit.

2013-04-04 Thread Ninad
yes yes I tried that also... I have restarted apache as well as my entire system also... again I have cleared all the cache of my browser restarted it also. but I am getting same result Regards, Ninad. On 04/04/2013 04:41 PM, Ashley Sheridan wrote: On Thu, 2013-04-04 at 16:33 +0530,

Re: [PHP] Empty $_POST after submit.

2013-04-04 Thread Ashley Sheridan
On Thu, 2013-04-04 at 16:41 +0530, Ninad wrote: yes yes I tried that also... I have restarted apache as well as my entire system also... again I have cleared all the cache of my browser restarted it also. but I am getting same result Regards, Ninad. On 04/04/2013 04:41 PM,

Re: [PHP] Empty $_POST after submit.

2013-04-04 Thread Ninad
yes I tried on Firefox 3.5 firefox 19 chrome. On 04/04/2013 04:49 PM, Ashley Sheridan wrote: On Thu, 2013-04-04 at 16:41 +0530, Ninad wrote: yes yes I tried that also... I have restarted apache as well as my entire system also... again I have cleared all the cache of my browser

Re: [PHP] webform spam prevention

2013-04-04 Thread tamouse mailing lists
On Apr 4, 2013 3:57 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: Captchas are not very accessible. Not only do you often need a near super-human ability to identify the scrawl that's displayed, but if you can't actually see very well to start with (maybe your vision isn't perfect or you

Re: [PHP] Empty $_POST after submit.

2013-04-04 Thread Carsten Jensen
On 04/04/2013 01:19 PM, Ashley Sheridan wrote: On Thu, 2013-04-04 at 16:41 +0530, Ninad wrote: Have you tried a different browser? Just thinking of anything which might narrow down the location of the problem. Thanks, Ash http://www.ashleysheridan.co.uk does PHP work at all? what do you

Re: [PHP] Empty $_POST after submit.

2013-04-04 Thread Jim Giner
On 4/4/2013 7:02 AM, Ashley Sheridan wrote: I've noticed the first line looks a little odd. It might be valid, just probably not the way I've ever done it. For my own sanity, could you try changing it to: if (isset($_POST['lastname']) isset($_POST['lastname'])) Thanks, Ash

Re: [PHP] PHP-FPM with Apache 2.4, forward all request for all virtual host

2013-04-04 Thread Jose Nobile
, 6:35 PM Para: Jose Nobile Cc: php-general@lists.php.net Asunto: Re: [PHP] PHP-FPM with Apache 2.4, forward all request for all virtual host Sorry, in all of that, I don't see what the question is? On Wed, Apr 3, 2013 at 3:27 PM, Jose Nobile jose.nob...@gmail.com wrote: Hi

Re: [PHP] Empty $_POST after submit.

2013-04-04 Thread ma...@behnke.biz
Ashley Sheridan a...@ashleysheridan.co.uk hat am 4. April 2013 um 13:02 geschrieben: I've noticed the first line looks a little odd. It might be valid, just probably not the way I've ever done it. For my own sanity, could you try changing it to: if (isset($_POST['lastname'])

Re: [PHP] Empty $_POST after submit.

2013-04-04 Thread ma...@behnke.biz
Ninad ninadsh...@iitb.ac.in hat am 4. April 2013 um 13:11 geschrieben: yes yes I tried that also... I have restarted apache as well as my entire system also... again I have cleared all the cache of my browser restarted it also. but I am getting same result Could you take a look at

Re: [PHP] webform spam prevention

2013-04-04 Thread Maciek Sokolewicz
On 4-4-2013 14:27, tamouse mailing lists wrote: On Apr 4, 2013 3:57 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: One type I've seen (and use myself) which is gaining traction is that of asking for a human type of response to a question, or have them perform a simple mathematical

Re: [PHP] webform spam prevention

2013-04-04 Thread Terry Ally (Gmail)
I am running captcha but the problem that I am having is that fly-by-night SEO marketeers are using the form to send marketing messages anyway. We get so many spam messages that I put up in red letters on the form that we do not want cold-calling SEO marketing messages. Since that message there

Re: [PHP] webform spam prevention

2013-04-04 Thread Ashley Sheridan
On Thu, 2013-04-04 at 19:29 +0100, Terry Ally (Gmail) wrote: I am running captcha but the problem that I am having is that fly-by-night SEO marketeers are using the form to send marketing messages anyway. We get so many spam messages that I put up in red letters on the form that we do not

Re: [PHP] webform spam prevention

2013-04-04 Thread Paul M Foster
On Thu, Apr 04, 2013 at 07:29:12PM +0100, Terry Ally (Gmail) wrote: I am running captcha but the problem that I am having is that fly-by-night SEO marketeers are using the form to send marketing messages anyway. We get so many spam messages that I put up in red letters on the form that we do

Re: [PHP] OAuth test server and help my slow brain understand what I'm doing.

2013-04-04 Thread Matijn Woudt
Hi, Have you tried Google? https://code.google.com/p/oauth-php/wiki/ConsumerHowTo http://developer.yahoo.com/blogs/ydn/two-legged-oauth-client-server-example-7922.html Seems both do the trick. - Matijn On Thu, Apr 4, 2013 at 3:49 PM, Richard Quadling rquadl...@gmail.comwrote: Hi. I've

Re: [PHP] PHP-FPM with Apache 2.4, forward all request for all virtual host

2013-04-04 Thread Matijn Woudt
On Wed, Apr 3, 2013 at 10:27 PM, Jose Nobile jose.nob...@gmail.com wrote: Hi, In Apache 2.2 http://httpd.apache.org/docs/2.2/ forward all request that point to phisical .php file to PHP-FPM http://php-fpm.org/ is as follow: LoadModule fastcgi_module http://www.fastcgi.com/

Re: [PHP] PHP-FPM with Apache 2.4, forward all request for all virtual host

2013-04-04 Thread Jose Nobile
How? If is required set the website path to PHP-FPM, from Apache Wiki: ProxyPassMatch ^/(.*\.php)$ fcgi://127.0.0.1:9000/var/www/$1 Saludos, José Nobile On Thu, Apr 4, 2013 at 3:15 PM, Matijn Woudt tijn...@gmail.com wrote: On Wed, Apr 3, 2013 at 10:27 PM, Jose Nobile

Re: [PHP] PHP-FPM with Apache 2.4, forward all request for all virtual host

2013-04-04 Thread Matijn Woudt
On Thu, Apr 4, 2013 at 10:27 PM, Jose Nobile jose.nob...@gmail.com wrote: How? If is required set the website path to PHP-FPM, from Apache Wiki: ProxyPassMatch ^/(.*\.php)$ fcgi://127.0.0.1:9000/var/www/$1 Saludos, José Nobile with mod_proxy_fcgi you indeed need this line in each

Re: [PHP] PHP-FPM with Apache 2.4, forward all request for all virtual host

2013-04-04 Thread Jose Nobile
But we have two process manager, in Apache with mod_fastcgi and PHP-FPM? Saludos, José Nobile On Thu, Apr 4, 2013 at 4:27 PM, Matijn Woudt tijn...@gmail.com wrote: On Thu, Apr 4, 2013 at 10:27 PM, Jose Nobile jose.nob...@gmail.comwrote: How? If is required set the website path to

Re: [PHP] PHP-FPM with Apache 2.4, forward all request for all virtual host

2013-04-04 Thread Matijn Woudt
On Thu, Apr 4, 2013 at 11:58 PM, Jose Nobile jose.nob...@gmail.com wrote: But we have two process manager, in Apache with mod_fastcgi and PHP-FPM? Saludos, José Nobile I'm not that familiar with PHP-FPM, but how would that be different from your Apache 2.2 setup?

Re: [PHP] webform spam prevention

2013-04-03 Thread tamouse mailing lists
These folks might have direction for you: http://textcaptcha.com/really (And my apologies for top posting. It seems Google has forced their new mail compose widget upon me. I can no longer use my own editor to smoothly and easily edit message, and Google forces the top post.) On Tue, Apr 2, 2013

Re: [PHP] PHP-FPM with Apache 2.4, forward all request for all virtual host

2013-04-03 Thread tamouse mailing lists
Sorry, in all of that, I don't see what the question is? On Wed, Apr 3, 2013 at 3:27 PM, Jose Nobile jose.nob...@gmail.com wrote: Hi, In Apache 2.2 http://httpd.apache.org/docs/2.2/ forward all request that point to phisical .php file to PHP-FPM http://php-fpm.org/ is as follow: LoadModule

RE: [PHP] PHP-FPM with Apache 2.4, forward all request for all virtual host

2013-04-03 Thread Jose Antonio Nobile Rendon
How to forward all request to files .php of any virtual host to PHP-FPM in Apache 2.4? Not each one. Saludos, Jose Nobile -Mensaje original- De: tamouse mailing lists Enviado: 03/04/2013, 6:35 PM Para: Jose Nobile Cc: php-general@lists.php.net Asunto: Re: [PHP] PHP-FPM with Apache 2.4

Re: [PHP] webform spam prevention

2013-04-03 Thread jomali
On Wed, Apr 3, 2013 at 7:33 PM, tamouse mailing lists tamouse.li...@gmail.com wrote: These folks might have direction for you: http://textcaptcha.com/really (And my apologies for top posting. It seems Google has forced their new mail compose widget upon me. I can no longer use my own editor

Re: [PHP] webform spam prevention

2013-04-03 Thread tamouse mailing lists
I'd love to learn how to do that WITHOUT A MOUSE On Wed, Apr 3, 2013 at 8:10 PM, jomali jomali3...@gmail.com wrote: On Wed, Apr 3, 2013 at 7:33 PM, tamouse mailing lists tamouse.li...@gmail.com wrote: These folks might have direction for you: http://textcaptcha.com/really (And my apologies

Re: [PHP] mysqli nested queries - maybe I'm rusty...

2013-04-02 Thread Jay Blanchard
Anyone? I have not been able to find a solution online. On 4/1/2013 11:33 AM, Jay Blanchard wrote: I am putting together an application where we are almost exclusively using stored procedures in MySQL because most of the heavy lifting (as it should be) is done in the database. I have exactly

Re: [PHP] Set process custom identifier

2013-04-02 Thread Matijn Woudt
Hi, pcntl_fork will return the pid of the fork, what is wrong with using that pid to identify the process? - Matijn On Tue, Apr 2, 2013 at 3:38 PM, Sorin Badea sorin.bade...@gmail.com wrote: Hi guys, I'm trying to find a solution to identify a php process that is spawned with pnctl_fork.

Re: [PHP] Set process custom identifier

2013-04-02 Thread Sorin Badea
I don't want to wait for it and surely I don't want to safe that pid in same place. I just want to use `ps` with a pattern to return my forked process. On Tue, Apr 2, 2013 at 4:48 PM, Matijn Woudt tijn...@gmail.com wrote: Hi, pcntl_fork will return the pid of the fork, what is wrong with

Re: [PHP] {SOLVED] mysqli nested queries - maybe I'm rusty...

2013-04-02 Thread Jay Blanchard
[snip] ...stuff... [/snip] I rewrote everything so that I could get the data in a single query and then performed some manipulation with PHP to get the proper output. No need to call multiple queries in this case, just had to sleep on it. -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Set process custom identifier

2013-04-02 Thread Stuart Dallas
On 2 Apr 2013, at 14:50, Sorin Badea sorin.bade...@gmail.com wrote: I don't want to wait for it and surely I don't want to safe that pid in same place. I just want to use `ps` with a pattern to return my forked process. Storing the PID of a process you need to monitor is the established

Re: [PHP] Set process custom identifier

2013-04-02 Thread Sorin Badea
I'm trying to implement a standalone threading component, and in current implementation I'm using `popen` to run a separate process with some arguments that I'm using to identify them (for example `php some_dummy_file.php -thread_id=some_hash`). This way when I'm trying to see which are my threads

Re: [PHP] Set process custom identifier

2013-04-02 Thread Stuart Dallas
On 2 Apr 2013, at 15:11, Sorin Badea sorin.bade...@gmail.com wrote: I'm trying to implement a standalone threading component, and in current implementation I'm using `popen` to run a separate process with some arguments that I'm using to identify them (for example `php some_dummy_file.php

Re: [PHP] {SOLVED] mysqli nested queries - maybe I'm rusty...

2013-04-02 Thread Lester Caine
Jay Blanchard wrote: [snip] ...stuff... [/snip] I rewrote everything so that I could get the data in a single query and then performed some manipulation with PHP to get the proper output. No need to call multiple queries in this case, just had to sleep on it. In Firebird, CTE queries are

Re: [PHP] Set process custom identifier

2013-04-02 Thread Sorin Badea
I'm not storing the hashes, just generate them when starting the thread. I think that storing the thread pid in a local file (pids/threadx.pid) is the only way but I don't think is the best. Thanks anyway Stuard! On Tue, Apr 2, 2013 at 5:18 PM, Stuart Dallas stu...@3ft9.com wrote: On 2 Apr

Re: [PHP] webform spam prevention

2013-04-02 Thread Sorin Badea
You can take a look at this article http://coding.smashingmagazine.com/2011/03/04/in-search-of-the-perfect-captcha/ On Tue, Apr 2, 2013 at 10:13 PM, Jen Rasmussen j...@cetaceasound.com wrote: Can someone recommend a best practice for blocking spam on web forms (aside from captcha) ? I've

Re: [PHP] Is there a PHP based authentication library?

2013-04-02 Thread Mark
Hi Andy, To be honest, that's also not what i'm looking for, but might be a good starting point to extend on. Depends on how you made it :) I cant promise that i'ill be working on it. I might be for some future project in my company but it might very well not happen as well. On Tue, Apr 2, 2013

Re: [PHP] Is there a PHP based authentication library?

2013-04-02 Thread Bastien
Check out http://philsturgeon.co.uk/blog/2011/09/ninjauth-social-integration-php from Phil sturgeon. Bastien Koert On 2013-04-02, at 3:41 PM, Mark mark...@gmail.com wrote: Hi Andy, To be honest, that's also not what i'm looking for, but might be a good starting point to extend on.

Re: [PHP] Is there a PHP based authentication library?

2013-04-02 Thread Mark
Hi Bastien, That is indeed getting very close to what i was looking for. Thanks a lot! On Tue, Apr 2, 2013 at 9:46 PM, Bastien phps...@gmail.com wrote: Check out http://philsturgeon.co.uk/blog/2011/09/ninjauth-social-integration-php from Phil sturgeon. Bastien Koert On 2013-04-02, at 3:41

Re: [PHP] Is there a PHP based authentication library?

2013-04-02 Thread Nathan Nobbe
On Tue, Apr 2, 2013 at 3:35 PM, Mark mark...@gmail.com wrote: Hi Bastien, That is indeed getting very close to what i was looking for. Thanks a lot! I've just finished up a project using simpleSamlPhp. http://simplesamlphp.org/ There's quite a few modules, but I've only used the SAML one,

Re: [PHP] Re: 4/1/2013 3:46:37 AM

2013-04-01 Thread Sorin Badea
No spam filters for this list ? On Mon, Apr 1, 2013 at 5:46 AM, Adil Adil adil.dri...@yahoo.com wrote: http://www.siamphotographer.com/clvrcng/nikoffbkvvnjjcgwapmay.xmhpwcbrd -- Badea Sorin (unu.sorin) sorin.bade...@gmail.com unu_so...@yahoo.com Pagina personala: http://badeasorin.com

Re: [PHP] A relative date puzzle

2013-04-01 Thread Mattias Thorslund
On 4/1/13 11:05 AM, Jim Giner wrote: I'm looking for some ideas on how to handle the following get a datetime value that is relative to a specific future date when presented with a partial day time value. Specifically, I have an appl that requires some lengthy input involving days and times.

Re: [PHP] A relative date puzzle

2013-04-01 Thread Mattias Thorslund
On 4/1/13 11:15 AM, Mattias Thorslund wrote: On 4/1/13 11:05 AM, Jim Giner wrote: I'm looking for some ideas on how to handle the following get a datetime value that is relative to a specific future date when presented with a partial day time value. Specifically, I have an appl that requires

Re: [PHP] A relative date puzzle

2013-04-01 Thread Jim Giner
On 4/1/2013 2:32 PM, Mattias Thorslund wrote: On 4/1/13 11:15 AM, Mattias Thorslund wrote: On 4/1/13 11:05 AM, Jim Giner wrote: I'm looking for some ideas on how to handle the following get a datetime value that is relative to a specific future date when presented with a partial day time

RE: [PHP] A relative date puzzle

2013-04-01 Thread Steven Staples
Thanks for this - I'll experiment and see if I have it. Basically I never read the strtotime doc close enough to get past the word now in the syntax. Obviously it is EXACTLY what I needed. $var = strtotime('now'); Is the same as $var = time(); Unless of course, I didn't understand what

Re: [PHP] Is there a PHP based authentication library?

2013-04-01 Thread David OBrien
On Mon, Apr 1, 2013 at 5:26 PM, Mark mark...@gmail.com wrote: Hi, I stumbled upon this payment library: http://ci-merchant.org/ which abstracts the different payment backends away and exposes a new easy to use interface for the app developer to use. Thus making it very easy to use different

Re: [PHP] Is there a PHP based authentication library?

2013-04-01 Thread Sorin Badea
Hi Mark, I think a simple Google search would be faster. Anyway, an unified way for 3rd party authentication doesn't exist from my knowledge, but for Persona you could use the sample from mozilla github account https://github.com/mozilla/browserid-cookbook . Good luck, Sorin! On Tue, Apr 2,

Re: [PHP] Is there a PHP based authentication library?

2013-04-01 Thread Mark
On Tue, Apr 2, 2013 at 12:25 AM, David OBrien dgobr...@gmail.com wrote: On Mon, Apr 1, 2013 at 5:26 PM, Mark mark...@gmail.com wrote: Hi, I stumbled upon this payment library: http://ci-merchant.org/ which abstracts the different payment backends away and exposes a new easy to use

Re: [PHP] Is there a PHP based authentication library?

2013-04-01 Thread Mark
On Tue, Apr 2, 2013 at 12:27 AM, Sorin Badea sorin.bade...@gmail.com wrote: Hi Mark, I think a simple Google search would be faster. Anyway, an unified way for 3rd party authentication doesn't exist from my knowledge, but for Persona you could use the sample from mozilla github account

Re: [PHP] Is there a PHP based authentication library?

2013-04-01 Thread Andy McKenzie
I started building one at my last job, though it was part of a framework I was developing. I knew I was going to need to authenticate against both LDAP and old-fashioned database username/md5-password columns. (Ah, legacy user databases.) If it would be useful, I could dig out what I had and

Re: [PHP] isset empty or ...?

2013-03-31 Thread Александр Меньщиков
http://www.php.net/manual/en/types.comparisons.php Maybe first table PHP functions comparison (including 'isset' and 'empty') could help you. 31.03.2013 в 8:53, John Taylor-Johnston написал(а): I'm using if($mydata-DPRresponselocationaddress1 != ) is this the same as if

Re: [PHP] php, openssl and GOST ciphers

2013-03-28 Thread Eugene M. Zheganin
Hi. On 28.03.2013 11:43, czir...@gmail.com wrote: My suggestion is to ensure all the paths to what you use are valid This should help: var_dump('file://'.realpath('./p12.pem')); Does that and the rest of the files Exists? I do hope these files are not in your document root Thanks for your

<    7   8   9   10   11   12   13   14   15   16   >