Re: [PHP] timezone

2013-04-15 Thread Larry Martell
On Mon, Apr 15, 2013 at 11:33 AM, Ashley Sheridan wrote: > You don't know which timezone the server is in? That's what it wants. No, I don't - this app runs in different locations all over the world. > Larry Martell wrote: >> >> On Mon, Apr 15, 2013 at 11:17 AM, Jonathan Sundquist >> wrote: >

Re: [PHP] timezone

2013-04-15 Thread Ashley Sheridan
You don't know which timezone the server is in? That's what it wants. Larry Martell wrote: >On Mon, Apr 15, 2013 at 11:17 AM, Jonathan Sundquist > wrote: >> >> >> >> On Mon, Apr 15, 2013 at 12:14 PM, Larry Martell > >> wrote: >>> >>> I have a client that has an app the runs with PHP 5.1.6. They

Re: [PHP] timezone

2013-04-15 Thread Larry Martell
On Mon, Apr 15, 2013 at 11:17 AM, Jonathan Sundquist wrote: > > > > On Mon, Apr 15, 2013 at 12:14 PM, Larry Martell > wrote: >> >> I have a client that has an app the runs with PHP 5.1.6. They want to >> upgrade to 5.3.3. First issue I ran into, they have a line of code >> that is: >> >> $deftz =

Re: [PHP] timezone

2013-04-15 Thread Jonathan Sundquist
On Mon, Apr 15, 2013 at 12:14 PM, Larry Martell wrote: > I have a client that has an app the runs with PHP 5.1.6. They want to > upgrade to 5.3.3. First issue I ran into, they have a line of code > that is: > > $deftz = date("T"); > > I'm getting this for that line: > > [Mon Apr 15 10:44:16 2013]

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 wrote: > i want to try something else. korean. i got no luck when I tried with > Korean. 'UCS-2BE' to 'UTF-8' encoding conversion d

Re: [PHP] Currency name before and after value

2013-04-14 Thread Matijn Woudt
>From wikipedia: "According to the European Union's Publication Office,[5] in English , Irish , Lat

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

2013-04-13 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 wrote:

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 > 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 Thank you.

Re: [PHP] Detecting massive web hits

2013-04-12 Thread Matijn Woudt
On Fri, Apr 12, 2013 at 5:23 PM, Angela Barone wrote: > 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

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 someone/

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" : > Does anyone know if there's a ready-made script that detects if > someone hits multiple web pages within seconds

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 B

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 wrote: > Hi, > > On Thu, Apr 11, 2013 at 5:39 PM, Morning Star > wrote: >> Hi guys, >> >> i have a string like this: >> $string = \u3053\u3093\u306b\u3061\u306f\u30ef\u30fc\u30c9 >> (Japanese words that say "hello world

Re: [PHP] Re: Is BBCode Installed

2013-04-11 Thread shiplu
On Fri, Apr 12, 2013 at 4:24 AM, Stephen 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 Innovation distingu

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 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 n

Re: [PHP] search array

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

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 ... (so based on its I

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 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 ... (so based on its ID and tagname) and inside it to insert

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

2013-04-11 Thread tamouse mailing lists
On Apr 11, 2013 6:35 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 ... (so based on its ID and tagname) and inside it to insert my PHP/HTML code. > >

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 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 should be こんにちは世界 I fo

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 o

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 http://www.bbcod

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 just

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] 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... wrote: > you probe command system()? > > > > 2013/4/9 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 commu

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

2013-04-09 Thread El Ale...
you probe command system()? 2013/4/9 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 ) and willing to help. >

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 ) and willing to help. On Tue, Apr 9, 2013 at 3:05 PM, Ken Kixmoeller wrote: > Yes -

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 wrote: > > > > On Tue, Apr 9, 2013 at 9:11 PM, Ken Kixmoeller wrote: > >> Hi -- - >> >> Strange problem. One of my app

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 back

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 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 error log is

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 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 error log is

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 think

Re: [PHP] htaccess question

2013-04-09 Thread Daniel Brown
On Tue, Apr 9, 2013 at 2:07 PM, Al 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 > > Rewrit

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 t

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" 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: > $planbar = new GanttBa

Re: [PHP] webform spam prevention

2013-04-06 Thread Tedd Sperling
On Apr 4, 2013, at 5:02 AM, Ashley Sheridan 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 hear this one clear e

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 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] 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 wrote: > > > > On Thu, Apr 4, 2013 at 10:27 PM, Jose Nobile wrote: > >> How? >> >> If is required set the website path to PHP-FPM, from Apache Wiki: >> >>

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 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 vhost. If

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 wrote: > On Wed, Apr 3, 2013 at 10:27 PM, Jose Nobile > wrote: > > > Hi, > > > > In Apache

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 wrote: > Hi, > > In Apache 2.2 forward all request that > point to phisical .php file to PHP-FPM is as follow: > > LoadModule fastcgi_module modules/mod_fastcgi.so > >

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 wrote: > Hi. > > I've been tasked to inte

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] 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 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 has

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" 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 problem, where the numbers ar

Re: [PHP] Empty $_POST after submit.

2013-04-04 Thread ma...@behnke.biz
> Ninad 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 the output of

Re: [PHP] Empty $_POST after submit.

2013-04-04 Thread ma...@behnke.biz
> Ashley Sheridan 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']) && isset($_POST['lastname']))

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

2013-04-04 Thread Jose Nobile
: 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, forward all request for all > virtual host > > > Sorry, in all of that, I don't see what the question is? > > On

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 http://www.ash

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 ge

Re: [PHP] webform spam prevention

2013-04-04 Thread tamouse mailing lists
On Apr 4, 2013 3:57 AM, "Ashley Sheridan" 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 can't see at all) then

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 & restar

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

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

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 cod

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

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 P

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 > wrote: Hi, I am using httpd as a web

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 wrote: > > > Hi, > > > > I am using httpd as a web server with default configuration

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 wrote: > Hi, > > I am using httpd as a web server with default configuration. > > Regards, > Ninad. > > > On 04/04/2013 04:11 PM, Sorin Badea wrote:

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=test&lastname=111&submit=Submit| Regards, Ninad On 04/04/2013 04:14 PM, Ashley Sheridan wrote:

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 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 wrote: > Hello, > > Thanks for such a fast response. > > Yes I tried bellow things but result is same ---

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 0

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 var_du

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 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 on fedora10 wit

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 wrote: > > On Wed, Apr 3, 2013 at 7:33 PM, tamouse mailing lists > > wrote: > >> > >> These folks might have direction for you: http://te

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 wrote: > On Wed, Apr 3, 2013 at 7:33 PM, tamouse mailing lists > wrote: >> >> These folks might have direction for you: http://textcaptcha.com/really >> >> (And my apologies for top posting. It seems Google h

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 ed

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] 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 wrote: > Hi, > > In Apache 2.2 forward all request that > point to phisical .php file to PHP-FPM is as follow: > > LoadModule fastcgi_modu

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] Is there a PHP based authentication library?

2013-04-02 Thread Nathan Nobbe
On Tue, Apr 2, 2013 at 3:35 PM, Mark 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, so YMMV. -nat

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 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 PM, Mark

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 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. Depends on how you

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 a

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 wrote: > Can someone recommend a best practice for blocking spam on web forms (aside > from captcha) ? > > > > I've been for the mos

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 wrote: > On 2 Apr 2013, at 15:11, So

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 great

Re: [PHP] Set process custom identifier

2013-04-02 Thread Stuart Dallas
On 2 Apr 2013, at 15:11, Sorin Badea 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 -thread_id=`). This

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=`). This way when I'm trying to see which are my threads I don't h

Re: [PHP] Set process custom identifier

2013-04-02 Thread Stuart Dallas
On 2 Apr 2013, at 14:50, Sorin Badea 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 method, and is certainly

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 u

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 wrote: > Hi, > > pcntl_fork will return the pid of the fork, what is wrong with using that > pid t

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 wrote: > Hi guys, > I'm trying to find a solution to identify a php process that is spawned > with pnctl_fork. I've tried to set a cu

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] 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 try

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 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 > https://github.com/mozill

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 wrote: > > > > On Mon, Apr 1, 2013 at 5:26 PM, Mark 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 deve

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

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 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 payment pro

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 wha

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 value

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 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] Re: 4/1/2013 3:46:37 AM

2013-03-31 Thread Sorin Badea
No spam filters for this list ? On Mon, Apr 1, 2013 at 5:46 AM, Adil Adil 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] 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 (!isset($mydat

Re: [PHP] Date weirdness

2013-03-28 Thread Larry Martell
On Thu, Mar 28, 2013 at 4:55 PM, Maciek Sokolewicz wrote: > On 28-3-2013 22:40, Larry Martell wrote: >> >> On Thu, Mar 28, 2013 at 2:44 PM, Steven Staples wrote: I think I am losing my mind. I have some time zone converting code, and I just don't understand what I am seeing. A

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