Re: [PHP] Friday's Question

2013-09-20 Thread Matijn Woudt
On Fri, Sep 20, 2013 at 6:51 PM, Tedd Sperling t...@sperling.com wrote: Hi gang: Do you use a Mousepad? My reason for asking is that I've used a Mousepad ever since mice first came out (back when they had one ball). Now that mice are optical (no balls), Mousepads are not really needed --

Re: [PHP] How to send post-variables in a Location header

2013-08-26 Thread Matijn Woudt
On Mon, Aug 26, 2013 at 9:48 PM, Ajay Garg ajaygargn...@gmail.com wrote: Hi all. I have a scenario, wherein I need to do something like this :: ### $original_url = /autologin.php; $username = ajay;

Re: [PHP] files and folders windows permission

2013-08-23 Thread Matijn Woudt
On Fri, Aug 23, 2013 at 4:03 PM, Emiliano Boragina emiliano.borag...@gmail.com wrote: Hi everyone, sorry my ugly english. I did an upload file form. Works very good. Upload the files in the right folder, with the right name. I use chmod 0644, and for try I use 0777. But always the files are

Re: [PHP] How can I submit more than 2000 items of data?

2013-08-19 Thread Matijn Woudt
On Mon, Aug 19, 2013 at 11:54 AM, Stuart Dallas stu...@3ft9.com wrote: On 19 Aug 2013, at 10:49, aesbovis aesbo...@gmail.com wrote: I know Javascript can solve it, but I don't want to use Js. Thank you all the same. I know you've had the right answer, but I think it's worth pointing out

Re: [PHP] How can I submit more than 2000 items of data?

2013-08-19 Thread Matijn Woudt
On Mon, Aug 19, 2013 at 5:20 PM, Stuart Dallas stu...@3ft9.com wrote: On 19 Aug 2013, at 15:56, Matijn Woudt tijn...@gmail.com wrote: On Mon, Aug 19, 2013 at 11:54 AM, Stuart Dallas stu...@3ft9.com wrote: On 19 Aug 2013, at 10:49, aesbovis aesbo...@gmail.com wrote: I know Javascript can

Re: [PHP] Mysqli Extension

2013-08-19 Thread Matijn Woudt
On Mon, Aug 19, 2013 at 8:02 PM, Ethan Rosenberg erosenb...@hygeiabiomedical.com wrote: Dear List - My mysqli extension seems to have gone away. $host = 'localhost'; $user = 'root'; $password = 'SdR3908'; echo hello2br /; var_dump(function_exists('**mysqli_connect'));// this returns

Re: [PHP] Mysqli Extension

2013-08-19 Thread Matijn Woudt
On Mon, Aug 19, 2013 at 8:55 PM, Ashley Sheridan a...@ashleysheridan.co.ukwrote: Curtis Maurand cur...@maurand.com wrote: Ethan Rosenberg wrote: Dear List - My mysqli extension seems to have gone away. $host = 'localhost'; $user = 'root'; $password = 'SdR3908'; echo

Re: [PHP] Mysqli Extension

2013-08-19 Thread Matijn Woudt
On Mon, Aug 19, 2013 at 9:40 PM, Ashley Sheridan a...@ashleysheridan.co.ukwrote: Matijn Woudt tijn...@gmail.com wrote: On Mon, Aug 19, 2013 at 8:55 PM, Ashley Sheridan a...@ashleysheridan.co.ukwrote: Curtis Maurand cur...@maurand.com wrote: Ethan Rosenberg wrote: Dear List

Re: [PHP] Finally....

2013-08-16 Thread Matijn Woudt
On Fri, Aug 16, 2013 at 5:23 PM, Daniel Brown danbr...@php.net wrote: # ezmlm-list ~ezmlm/php-general | grep skynet supp...@skynet.be # ezmlm-unsub ~ezmlm/php-general supp...@skynet.be # ezmlm-list ~ezmlm/php-general | grep skynet # No more of those Your e-mail concerning our

Re: [PHP] how to see all sessions sets in server

2013-08-04 Thread Matijn Woudt
On Sun, Aug 4, 2013 at 11:02 AM, Farzan Dalaee farzan.dal...@gmail.comwrote: hi i want to write online user module for my site and i want to check $_SESSION['userID'] to find all users id who loged in but when i echo this code its return only current user detail how i can see all sessions?

Re: [PHP] how to see all sessions sets in server

2013-08-04 Thread Matijn Woudt
if user close the browser without logout how can i find user is online or not? Sent from my iPhone On Aug 4, 2013, at 14:44, Matijn Woudt tijn...@gmail.com wrote: On Sun, Aug 4, 2013 at 11:02 AM, Farzan Dalaee farzan.dal...@gmail.com wrote: hi i want to write online user

Re: [PHP] Sending headers to server

2013-08-03 Thread Matijn Woudt
On Sat, Aug 3, 2013 at 11:46 AM, Karim Geiger gei...@b1-systems.de wrote: Am 02.08.13 18:03, schrieb Miguel Guedes: This is strange. I've just found out that the headers are sent correctly if I access the website outside of localhost. I don't understand why. I also don't. I've tried the

Re: [PHP] Sending headers to server

2013-08-02 Thread Matijn Woudt
On Thu, Aug 1, 2013 at 4:04 PM, Miguel Guedes miguel.a.gue...@gmail.comwrote: Hello List, I'm running PHP 5.4.9 as CGI (via apache 2.2.22) and can't seem to be able to send headers to the server. Both, header('Status: 500 Internal Server Error'); and, header('HTTP/1.1 500 Internal

Re: [PHP] What wrong am I doing now?

2013-07-24 Thread Matijn Woudt
On Wed, Jul 24, 2013 at 2:19 PM, Karl-Arne Gjersøyen karlar...@gmail.comwrote: mysql SELECT DATE_FORMAT(dato, '%e-%c-%Y') FROM transportdokument WHERE dato = '2013-07-20' AND dato = '2013-07-24' GROUP BY dato DESC; +---+ | DATE_FORMAT(dato, '%e-%c-%Y') |

Re: [PHP] Re: What wrong am I doing now?

2013-07-24 Thread Matijn Woudt
On Wed, Jul 24, 2013 at 2:45 PM, Jim Giner jim.gi...@albanyhandball.comwrote: On 7/24/2013 8:19 AM, Karl-Arne Gjersøyen wrote: mysql SELECT DATE_FORMAT(dato, '%e-%c-%Y') FROM transportdokument WHERE dato = '2013-07-20' AND dato = '2013-07-24' GROUP BY dato DESC;

Re: [PHP] Quick Q.

2013-07-24 Thread Matijn Woudt
On Wed, Jul 24, 2013 at 10:45 PM, Richard Quadling rquadl...@gmail.comwrote: PHP 5.5+ is (from news) - Windows XP and 2003 support dropped. Does that mean no longer executes (as is seemingly what I'm seeing) or just no longer supported/developed? Just going to look into getting to the

Re: [PHP] Quick Q.

2013-07-24 Thread Matijn Woudt
On Wed, Jul 24, 2013 at 10:59 PM, Richard Quadling rquadl...@gmail.comwrote: On 24 July 2013 21:54, Matijn Woudt tijn...@gmail.com wrote: On Wed, Jul 24, 2013 at 10:45 PM, Richard Quadling rquadl...@gmail.comwrote: PHP 5.5+ is (from news) - Windows XP and 2003 support dropped

Re: [PHP] /tmp/directory

2013-07-22 Thread Matijn Woudt
On Mon, Jul 22, 2013 at 5:20 PM, Tedd Sperling t...@sperling.com wrote: Hi gang: I should know this, but I don't. Where is the /tmp/ directory? You see, I have a client where his host has apparently changed the /tmp/ directory permissions such that old php/mysql scripts cannot write to

Re: [PHP] strip_tags

2013-07-21 Thread Matijn Woudt
Op 21 jul. 2013 02:53 schreef Tedd Sperling t...@sperling.com het volgende: On Jul 20, 2013, at 5:34 PM, Frank Arensmeier farensme...@gmail.com wrote: 20 jul 2013 kl. 18:25 skrev Tedd Sperling t...@sperling.com: Hi gang: I've been using $str = strip_tags($str, $allowable)

Re: [PHP] Query regarding temporarily-uploaded files

2013-07-10 Thread Matijn Woudt
On Wed, Jul 10, 2013 at 7:21 PM, Ajay Garg ajaygargn...@gmail.com wrote: Hi all. I have a requirement, wherein I need to allow vanilla uploads of files to a HTTPD server. Any client can upload any number of files (one at a time). Also, there is just one directory, where the files get

Re: [PHP] mongo usage

2013-07-06 Thread Matijn Woudt
On Sat, Jul 6, 2013 at 9:16 PM, Tim Dunphy bluethu...@gmail.com wrote: | You commented out the setting of yhe addresses variable Those were both equivalent ways of stating the same thing. I tried substituting the other statement but there was no change: $db = $connection-jfdb;

Re: [PHP] strlen ?

2013-07-05 Thread Matijn Woudt
On Fri, Jul 5, 2013 at 8:33 PM, Jim Giner jim.gi...@albanyhandball.comwrote: On 7/5/2013 1:32 PM, shiplu wrote: On Fri, Jul 5, 2013 at 11:10 PM, Jim Giner jim.gi...@albanyhandball.com **wrote: Mike Hall comes back as 10, not 9 F.B. comes back as 5, not 4. Doesn't work for me. php

Re: [PHP] strlen ?

2013-07-05 Thread Matijn Woudt
characters. Some characters are just not visible (NUL, CR, LF, ..) On 7/5/2013 2:36 PM, Matijn Woudt wrote: On Fri, Jul 5, 2013 at 8:33 PM, Jim Giner jim.gi...@albanyhandball.comwrote: On 7/5/2013 1:32 PM, shiplu wrote: On Fri, Jul 5, 2013 at 11:10 PM, Jim Giner jim.gi

Re: [PHP] Reseting the auto-increment number in a MySQL database.

2013-06-26 Thread Matijn Woudt
On Wed, Jun 26, 2013 at 7:35 PM, Tedd Sperling tedd.sperl...@gmail.comwrote: On Jun 26, 2013, at 1:32 PM, Jim Giner jim.gi...@albanyhandball.com wrote: But more importantly - don't you need to figure out why it happened?? As well as correcting any inserts with the bogus id? Yes, I would

Re: [PHP] A Strange Problem

2013-06-20 Thread Matijn Woudt
On Thu, Jun 20, 2013 at 7:39 PM, Tedd Sperling t...@sperling.com wrote: Hi gang: I have a very strange problem. I can use this statement in one folder: $fcontents = file('docs/admin-email.txt'); But in a different folder with an exact path having 'docs/admin-email.txt', I get:

Re: [PHP] Enabling the chroot() function in PHP 5.4

2013-06-13 Thread Matijn Woudt
Hi Aaron, It's better if you ask this question on the PHP internals list, there's hardly anyone compiling it's own PHP here. - Matijn On Thu, Jun 13, 2013 at 9:55 AM, Aaron Stephens aaron.t.steph...@gmail.comwrote: Hi All, Does anybody know how to enable the chroot() function in PHP

Re: [PHP] Detect and Redirect Mobile Users

2013-06-13 Thread Matijn Woudt
On Thu, Jun 13, 2013 at 3:17 AM, Paul M Foster pa...@quillandmouse.comwrote: On Wed, Jun 12, 2013 at 04:19:50PM -0700, dealTek wrote: Hi all, I'm curious of a simple, common, universal way to detect a mobile user so I can redirect them to a mobile directory... What is best for this:

Re: [PHP] Detect and Redirect Mobile Users

2013-06-13 Thread Matijn Woudt
On Thu, Jun 13, 2013 at 3:20 PM, Matijn Woudt tijn...@gmail.com wrote: On Thu, Jun 13, 2013 at 3:17 AM, Paul M Foster pa...@quillandmouse.comwrote: On Wed, Jun 12, 2013 at 04:19:50PM -0700, dealTek wrote: Hi all, I'm curious of a simple, common, universal way to detect a mobile user

Re: AW: [PHP] PHP is Zero

2013-06-13 Thread Matijn Woudt
On Thu, Jun 13, 2013 at 1:49 PM, BUSCHKE Daniel daniel.busc...@nextiraone.eu wrote: To be more technical: If intval('8315e839da08e2a7afe6dd12ec58245d') would return NULL instead of 8315 then PHP would be still weak-typed and the developer could know that the conversion failed. Good idea? Of

Re: [PHP] htaccess to make html act as php suffixed files

2013-06-11 Thread Matijn Woudt
On Tue, Jun 11, 2013 at 7:17 PM, Stuart Dallas stu...@3ft9.com wrote: On 11 Jun 2013, at 18:16, Tedd Sperling t...@sperling.com wrote: Hi gang: To get html pages to use php scripts, I've used: RewriteEngine on # handler for phpsuexec. -- this makes these prefixes considered for php

Re: [PHP] Seemingly incorrect strict standard.

2013-06-03 Thread Matijn Woudt
On Mon, Jun 3, 2013 at 7:24 PM, Richard Quadling rquadl...@gmail.comwrote: Hi. I've got an abstract class which requires one of the concrete descendants to implement a static function. The base class will call it using static:: rather than self::. But I'm getting an error at runtime.

Re: [PHP] browser rendering

2013-06-02 Thread Matijn Woudt
On Sun, Jun 2, 2013 at 3:09 PM, georg georg.chamb...@telia.com wrote: Possibly this issue is for other fora, which you might direct me, anyways; I have been dablling making my own little webpages, however having gotten a nice result jon fireforx, I realize picture sizes gets treated very

Re: [PHP] Re: need some regex help to strip out // comments but not http:// urls

2013-05-29 Thread Matijn Woudt
On Wed, May 29, 2013 at 6:08 PM, Sean Greenslade zootboys...@gmail.comwrote: On Wed, May 29, 2013 at 9:57 AM, Jonesy gm...@jonz.net wrote: On Tue, 28 May 2013 14:17:06 -0700, Daevid Vincent wrote: I'm adding some minification to our cache.class.php and am running into an edge case that is

Re: [PHP] Re: need some regex help to strip out // comments but not http:// urls

2013-05-29 Thread Matijn Woudt
On Wed, May 29, 2013 at 7:27 PM, Sean Greenslade zootboys...@gmail.comwrote: It is possible to write a whole parser as a single regex, being it terribly long and complex. That said, there's no other simple syntax that would work, for example in javascript you could to the following:

Re: [PHP] Re: need some regex help to strip out // comments but not http:// urls

2013-05-29 Thread Matijn Woudt
On Wed, May 29, 2013 at 10:51 PM, Sebastian Krebs krebs@gmail.comwrote: 2013/5/29 Matijn Woudt tijn...@gmail.com On Wed, May 29, 2013 at 6:08 PM, Sean Greenslade zootboys...@gmail.com wrote: On Wed, May 29, 2013 at 9:57 AM, Jonesy gm...@jonz.net wrote: On Tue, 28 May 2013 14:17

Re: [PHP] REQUEST

2013-05-29 Thread Matijn Woudt
On Wed, May 29, 2013 at 8:56 PM, Stuart Dallas stu...@3ft9.com wrote: [On which note it has to be said he clearly isn't since he couldn't get lasthacker@ and had to settle for lasthacker1@. Just sayin'.] -Stuart I'm surprised he didn't call himself la5T hax0R alwayZ 0nP01nT :)

Re: [PHP] json_decode mistery

2013-05-25 Thread Matijn Woudt
On Fri, May 24, 2013 at 9:06 AM, Radek Krejča radek.kre...@starnet.czwrote: Hello, I am usin json regulary, but in one script I have mistery: echo($decrypted_data).\n\n; var_dump(json_decode($decrypted_data, true)); echo \n;

Re: [PHP] Simple objective which always seems to make me think I'm doing it wrong.

2013-05-23 Thread Matijn Woudt
On Thu, May 23, 2013 at 4:54 PM, Richard Quadling rquadl...@gmail.comwrote: Hi. I'm building an XML file. It is within an OOP structure and is pretty simple. The method is ... snip Nothing particularly difficult to understand, but I just don't like having the XML embedded this way.

Re: [PHP] Question about session_id() and session_start()

2013-05-20 Thread Matijn Woudt
On Mon, May 20, 2013 at 5:33 AM, 孟远涛 yuantao.m...@gmail.com wrote: I find the Note in PHP document. http://www.php.net/manual/en/function.session-id.php Note: When using session cookies, specifying an id for session_id() will always send a new cookie when session_start() is called,

Re: [PHP] pass parameter via URL

2013-05-20 Thread Matijn Woudt
On Mon, May 20, 2013 at 3:17 PM, iccsi inu...@gmail.com wrote: I would like to know how can I pass a parameter via URL using control value on the form. something like myPage.php?MyID=txtMyID.value I can use myPage.php?MyID=1, but cannot use myPage.php?MyID=txtMyID.value. Your help and

Re: [PHP] Question about session_id() and session_start()

2013-05-20 Thread Matijn Woudt
, 2013 6:24 PM, Matijn Woudt tijn...@gmail.com wrote: On Mon, May 20, 2013 at 5:33 AM, 孟远涛 yuantao.m...@gmail.com wrote: I find the Note in PHP document. http://www.php.net/manual/en/function.session-id.php Note: When using session cookies, specifying an id for session_id

Re: [PHP] Question about session_id() and session_start()

2013-05-20 Thread Matijn Woudt
Op 21 mei 2013 03:59 schreef David OBrien dgobr...@gmail.com het volgende: On May 20, 2013 8:45 PM, Matijn Woudt tijn...@gmail.com wrote: On Mon, May 20, 2013 at 10:46 PM, David OBrien dgobr...@gmail.com wrote: On Mon, May 20, 2013 at 4:14 PM, Tim Schofield t...@weberpafrica.com wrote

Re: [PHP] Moving from mysql functions to mysqli or PDO - which is best?

2013-05-18 Thread Matijn Woudt
On Sat, May 18, 2013 at 8:09 PM, dealTek deal...@gmail.com wrote: Hi folks, [post newbie abilities] - I'm attempting to move away from PHP mysql functions to something newer, either mysqli or PDO. I have read various things about them, but I'm curious at this point which would be best to

Re: [PHP] A Good OOP Tutorial/Read?

2013-05-17 Thread Matijn Woudt
On Fri, May 17, 2013 at 4:04 PM, Tedd Sperling tedd.sperl...@gmail.comwrote: Stuart: You said: An interface does what it says on the tin: it describes an interface that a class can then tell the world it implements. An abstract class provides functionality as well as an interface

Re: [PHP] Saving session to database

2013-05-17 Thread Matijn Woudt
On Thu, May 16, 2013 at 2:49 PM, Lester Caine les...@lsces.co.uk wrote: Matijn Woudt wrote: On Thu, May 16, 2013 at 10:43 AM, Lester Caine les...@lsces.co.uk mailto:les...@lsces.co.uk wrote: I'm having a problem with webtrees ... http://webtrees.net/ My copy is running on http

Re: [PHP] Saving session to database

2013-05-17 Thread Matijn Woudt
On Fri, May 17, 2013 at 8:07 PM, Lester Caine les...@lsces.co.uk wrote: Matijn Woudt wrote: It seems to me the session functions are failing, probably due to problems with the database. Have you checked that there actually is a ##session table in your database? You might want to add some

Re: [PHP] Saving session to database

2013-05-16 Thread Matijn Woudt
On Thu, May 16, 2013 at 10:43 AM, Lester Caine les...@lsces.co.uk wrote: I'm having a problem with webtrees ... http://webtrees.net/ My copy is running on http://webtrees.lsces.org.uk and you will see that it is throwing an error relating to the session handling. Running Apache 2.2.22,

Re: [PHP] php extension about php_stream_fopen_tmpfile()

2013-05-16 Thread Matijn Woudt
On Fri, May 10, 2013 at 3:37 AM, Bleakwind bleakw...@gmail.com wrote: I write a php extension. How can I user Zend API do that? where can I find some doc about file_handle-handle ? There's not really a place to ask questions for writing extensions, but most people here will not be able to

Re: [PHP] IE 10 bug?

2013-04-26 Thread Matijn Woudt
On Wed, Apr 24, 2013 at 6:01 PM, Jim Giner jim.gi...@albanyhandball.comwrote: I know - it sounds OT, but listen. I have a form that has a sign in button which attempts to sent the user to a form in a password-protected folder. In order to get there the user must provide credentials. Once

Re: [PHP] mysql_connect noob question

2013-04-20 Thread Matijn Woudt
On Sat, Apr 20, 2013 at 10:36 AM, tamouse mailing lists tamouse.li...@gmail.com wrote: No, that's for writing safe html output. If the user or password contains special chars, sending them through htmlspecialchars would turn them into html entities. i doubt you want that. I'm at a loss

Re: [PHP] Newbie Question - Parse XML with PHP...

2013-04-20 Thread Matijn Woudt
On Sat, Apr 20, 2013 at 12:51 AM, dealTek deal...@gmail.com wrote: On Apr 19, 2013, at 3:32 PM, tamouse mailing lists tamouse.li...@gmail.com wrote: page1.php is sending out to credit card company - getting processed - then coming back to the *same page1.php* with the XML data listed

Re: [PHP] mysql_connect noob question

2013-04-19 Thread Matijn Woudt
On Fri, Apr 19, 2013 at 10:43 PM, Glob Design Info i...@globdesign.comwrote: I know this has probably been answered already. When I pass a user name and password from a form to my PHP script and then pass those to mysql_connect it doesn't connect. When I paste those exact same values into

Re: [PHP] mysql_connect noob question

2013-04-19 Thread Matijn Woudt
()) On 4/19/13 1:47 PM, Matijn Woudt wrote: On Fri, Apr 19, 2013 at 10:43 PM, Glob Design Info i...@globdesign.com wrote: I know this has probably been answered already. When I pass a user name and password from a form to my PHP script and then pass those to mysql_connect it doesn't connect

Re: [PHP] self operator within a double quoted string

2013-04-17 Thread Matijn Woudt
On Wed, Apr 17, 2013 at 7:47 PM, NaMarPi nama...@yahoo.com wrote: I would like to use self and static operators inside a double quoted string, but do not find the way to accomplish that. Could you give me a right direction? http://3v4l.org/NDkdA class Foo { public static

Re: [PHP] self operator within a double quoted string

2013-04-17 Thread Matijn Woudt
On Wed, Apr 17, 2013 at 10:19 PM, Marco Behnke ma...@behnke.biz wrote: Or use printf which is much more readable. Are you serious about this? How would printf make things more readable? Given a string with some %s %d etc in it, and then at the end you're giving the stuff that replaces them. I

Re: [PHP] Re: self operator within a double quoted string

2013-04-17 Thread Matijn Woudt
On Wed, Apr 17, 2013 at 11:30 PM, NaMarPi nama...@yahoo.com wrote: I found that double quoted strings are more elegant in some situations than single ones, and I like identical solutions for identical problems, so that's why I asked this question. But finally found a reason why use single

Re: [PHP] Need a tool to minimize HTML before storing in memecache

2013-04-17 Thread Matijn Woudt
On Wed, Apr 17, 2013 at 11:52 PM, Daevid Vincent dae...@daevid.com wrote: We do a lot with caching and storing in memecached as well as local copies so as to not hit the cache pool over the network and we have found some great tools to minimize our javascript and our css, and now we'd like to

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] 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] 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] 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 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 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] 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] Re: target question

2013-03-26 Thread Matijn Woudt
On Tue, Mar 26, 2013 at 3:04 PM, Jim Giner jim.gi...@albanyhandball.comwrote: On 3/25/2013 5:45 PM, Tommy Pham wrote: What about onclick='window.open(http://**domain.com/path/to/generated/**pdfhttp://domain.com/path/to/generated/pdf, _blank)' ? Regards, Tommy Appreciate the attempt

Re: [PHP] Re: target question

2013-03-26 Thread Matijn Woudt
On Tue, Mar 26, 2013 at 4:19 PM, Jim Giner jim.gi...@albanyhandball.comwrote: On 3/26/2013 10:35 AM, Matijn Woudt wrote: On Tue, Mar 26, 2013 at 3:04 PM, Jim Giner jim.gi...@albanyhandball.com **wrote: Appreciate the attempt to help, but as I posted earlier I went around and modified

Re: [PHP] target question

2013-03-25 Thread Matijn Woudt
On Mon, Mar 25, 2013 at 7:11 PM, Lester Caine les...@lsces.co.uk wrote: Jim Giner wrote: Thanks for the pointer - but not what I'm looking to do. Trying to make it effortless for the user so having to go and open a pdf would be another pia. Actually it IS worth pointing out that how the

Re: [PHP] significance of escape character in string in PHP

2013-03-18 Thread Matijn Woudt
On Mon, Mar 18, 2013 at 2:19 PM, Sebastian Krebs krebs@gmail.comwrote: 2013/3/18 Ken Robinson kenrb...@rbnsn.com On 18.03.2013 09:10, Norah Jones wrote: I am having an string which was have few ' (single quote) and few (double quotes) and was not able to insert into the mysql

Re: [PHP] Re: [PHP-DEV] feature request : easy shared memory

2013-03-18 Thread Matijn Woudt
On Mon, Mar 18, 2013 at 3:46 AM, Larry Garfield la...@garfieldtech.comwrote: On 03/14/2013 01:21 PM, Bob Weinand wrote: Sharing active memory between processes goes against the shared nothing design of PHP. The lack of the feature you're describing is itself a feature. :-) If you had real

Re: [PHP] significance of escape character in string in PHP

2013-03-18 Thread Matijn Woudt
On Mon, Mar 18, 2013 at 4:20 PM, Stuart Dallas stu...@3ft9.com wrote: On 18 Mar 2013, at 15:08, Matijn Woudt tijn...@gmail.com wrote: On Mon, Mar 18, 2013 at 2:19 PM, Sebastian Krebs krebs@gmail.com wrote: 2013/3/18 Ken Robinson kenrb...@rbnsn.com On 18.03.2013 09:10, Norah

Re: [PHP] Session variable not persisting

2013-03-18 Thread Matijn Woudt
On Mon, Mar 18, 2013 at 7:46 PM, Éric Oliver Paquette eopaque...@gmail.comwrote: Hi all, I'll be swift in my explanation as I can't find in any way the source of the problem; it seems to be installation-related. At execution, sometimes (randomly it seems at first), variable session aren't

Re: [PHP] Session variable not persisting

2013-03-18 Thread Matijn Woudt
On Mon, Mar 18, 2013 at 8:13 PM, Éric Oliver Paquette eopaque...@gmail.comwrote: On Mon, Mar 18, 2013 at 7:46 PM, Éric Oliver Paquette eopaque...@gmail.com wrote: Hi all, I'll be swift in my explanation as I can't find in any way the source of the problem; it seems to be

Re: [PHP] Session variable not persisting

2013-03-18 Thread Matijn Woudt
On Mon, Mar 18, 2013 at 8:35 PM, Éric Oliver Paquette eopaque...@gmail.comwrote: Le 2013-03-18 à 15:24, Éric Oliver Paquette a écrit : Le 2013-03-18 à 15:20, Matijn Woudt a écrit : On Mon, Mar 18, 2013 at 8:13 PM, Éric Oliver Paquette eopaque...@gmail.com wrote: On Mon, Mar 18

Re: [PHP] variable type - conversion/checking

2013-03-17 Thread Matijn Woudt
On Sun, Mar 17, 2013 at 10:20 PM, Maciek Sokolewicz maciek.sokolew...@gmail.com wrote: On 16-3-2013 19:20, Matijn Woudt wrote: On Sat, Mar 16, 2013 at 6:52 PM, Maciek Sokolewicz maciek.sokolew...@gmail.com wrote: Hi, I have tried to find a way to check if a character string

Re: [PHP] variable type - conversion/checking

2013-03-16 Thread Matijn Woudt
On Sat, Mar 16, 2013 at 6:52 PM, Maciek Sokolewicz maciek.sokolew...@gmail.com wrote: Hi, I have tried to find a way to check if a character string is possible to test whether it is convertible to an intger ! any suggestion ? BR georg All responses in this thread have been very nice;

Re: [PHP] variable type - conversion/checking

2013-03-15 Thread Matijn Woudt
On Sat, Mar 16, 2013 at 2:54 AM, Sebastian Krebs krebs@gmail.comwrote: 2013/3/16 Andrew Ballard aball...@gmail.com I suppose one could try something like this: if (is_string($val) $val === (string)(int)$val) If $val is an integer masquerading as a string, it should be

Re: [PHP] variable type - conversion/checking

2013-03-14 Thread Matijn Woudt
On Thu, Mar 14, 2013 at 7:02 PM, georg georg.chamb...@telia.com wrote: Hi, I have tried to find a way to check if a character string is possible to test whether it is convertible to an intger ! any suggestion ? BR georg You could use is_numeric for that, though it also accepts floats.

Re: [PHP] variable type - conversion/checking

2013-03-14 Thread Matijn Woudt
On Thu, Mar 14, 2013 at 11:44 PM, Jim Lucas li...@cmsws.com wrote: On 03/14/2013 11:50 AM, Samuel Lopes Grigolato wrote: Something like if (is_numeric($var) $var == floor($var)) will do the trick. I don't know if there's a better (more elegant) way. On Thu, Mar 14, 2013 at 3:09 PM,

Re: [PHP] Mystery foreach error

2013-03-13 Thread Matijn Woudt
On Wed, Mar 13, 2013 at 5:07 PM, Jim Giner jim.gi...@albanyhandball.comwrote: On 3/12/2013 9:04 PM, Angela Barone wrote: On Mar 12, 2013, at 5:16 PM, David Robley wrote: Presumably there is a fixed list of State - those are US states? - so why not provide a drop down list of the possible

Re: [PHP] Mystery foreach error

2013-03-13 Thread Matijn Woudt
On Thu, Mar 14, 2013 at 12:18 AM, Angela Barone ang...@italian-getaways.com wrote: On Mar 13, 2013, at 9:07 AM, Jim Giner wrote: Why not just check if the $state exists as a key of the array $states before doing this? Jim, Are you thinking about the in_array function? Angela

Re: [PHP] PHP Web Developer Opportunity

2013-03-05 Thread Matijn Woudt
On Wed, Mar 6, 2013 at 1:16 AM, Tedd Sperling t...@sperling.com wrote: On Mar 4, 2013, at 3:10 PM, Allison Garcia agar...@smallworldlabs.com wrote: *SMALL WORLD LABS is looking for a PHP WEB DEVELOPER * Small World Labs is looking for a PHP Web Developer to be a part of our team. The

Re: [PHP] PHP Web Developer Opportunity

2013-03-05 Thread Matijn Woudt
On Wed, Mar 6, 2013 at 1:34 AM, Tedd Sperling t...@sperling.com wrote: On Mar 5, 2013, at 7:18 PM, Matijn Woudt tijn...@gmail.com wrote: On Wed, Mar 6, 2013 at 1:16 AM, Tedd Sperling t...@sperling.com wrote: On Mar 4, 2013, at 3:10 PM, Allison Garcia agar...@smallworldlabs.com wrote

Re: [PHP] Re: Open form in new window

2013-03-04 Thread Matijn Woudt
On Mon, Mar 4, 2013 at 6:10 PM, John Taylor-Johnston john.taylor-johns...@cegepsherbrooke.qc.ca wrote: You could echo HTML code e.g. Which is still purely HTML and has nothing whatsoever to do with PHP. form action=result.php method=post Number: input id=quantity

Re: [PHP] Holding datetimes in a DB.

2013-03-01 Thread Matijn Woudt
On Fri, Mar 1, 2013 at 11:49 AM, Richard Quadling rquadl...@gmail.comwrote: Hi. My heads trying to remember something I may or may not have known to start with. If I hold datetimes in a DB in UTC and can represent a date to a user based upon a user preference Timezone (not an offset, but a

Re: [PHP] stripped \n

2013-02-20 Thread Matijn Woudt
On Wed, Feb 20, 2013 at 7:16 PM, John Taylor-Johnston john.taylor-johns...@cegepsherbrooke.qc.ca wrote: Hi, I have a textarea when submitted creates a new form with the textarea data in a hidden field: input name=DPRnarration type=text hidden form=DPRform value=Enter call narration here.

Re: [PHP] Undefined Variables

2013-02-14 Thread Matijn Woudt
On Thu, Feb 14, 2013 at 7:04 PM, Roman Gelfand rgelfa...@gmail.com wrote: Is there a performance hit when a variable is undefined? or, perhaps, aside from the obvious uncontrolled conditions, are there other impacts? Thanks in advance There might be a little performance hit because the

Re: [PHP] Tokyo Cabinet or Kyoto Cabinet support

2013-02-12 Thread Matijn Woudt
On Tue, Feb 12, 2013 at 7:06 PM, Chris MacPherson ch...@kombine.co.ukwrote: Hi, Just wondering if anyone can tell me if Kyoto Cabinet support will be added to the DBM extension in the near future at all. I noticed this thread (

Re: [PHP] Random 404 screens

2013-02-10 Thread Matijn Woudt
On Sun, Feb 10, 2013 at 6:53 PM, Jim Giner jim.gi...@albanyhandball.comwrote: On 2/10/2013 12:45 PM, Andy McKenzie wrote: On Sat, Feb 9, 2013 at 11:51 AM, Geoff Shang ge...@quitelikely.com wrote: On Sat, 9 Feb 2013, Jim Giner wrote: Lately, my web pages are giving me some problems. Once

Re: [PHP] Is header() malfunction due to PHP5.3.3 - 5.4.11 transition?

2013-02-09 Thread Matijn Woudt
On Sat, Feb 9, 2013 at 8:00 PM, Jonathan Eagle jeo...@attglobal.net wrote: I'm having a problem with a very straightforward routine; one that works in one PHP installation but not on the other. The only difference that I can see between the working version and the non-working version is that

Re: [PHP] Is header() malfunction due to PHP5.3.3 - 5.4.11 transition?

2013-02-09 Thread Matijn Woudt
On Sat, Feb 9, 2013 at 9:59 PM, Tedd Sperling t...@sperling.com wrote: On Feb 9, 2013, at 2:00 PM, Jonathan Eagle jeo...@attglobal.net wrote: I'm having a problem with a very straightforward routine; Jonathan: No offense to your routine, but you may want to review this:

Re: [PHP] Is header() malfunction due to PHP5.3.3 - 5.4.11 transition?

2013-02-09 Thread Matijn Woudt
On Sat, Feb 9, 2013 at 10:08 PM, Jonathan Eagle jeo...@attglobal.netwrote: My 'display_errors' is ON and my 'error_reporting' is 22517. I'm not sure what that means but it looks as if I should be getting error messages somewhere. Jonathan Most likely they end up in the logs instead of the

Re: [PHP] Is header() malfunction due to PHP5.3.3 - 5.4.11 transition?

2013-02-09 Thread Matijn Woudt
On Sun, Feb 10, 2013 at 12:19 AM, Stephen stephe...@rogers.com wrote: On 13-02-09 04:11 PM, Matijn Woudt wrote: On Sat, Feb 9, 2013 at 9:59 PM, Tedd Sperling t...@sperling.com wrote: Jonathan: No offense to your routine, but you may want to review this: http://sperling.com/php

Re: [PHP] Patch: Specify temp directory

2013-01-18 Thread Matijn Woudt
On Fri, Jan 18, 2013 at 12:03 PM, ALeX lists@tx0.eu wrote: Hi, some time ago I created a small patch to make it possible to specify the temp dir by the php.ini. It can be found here: https://bugs.php.net/bug.php?id=60524 (my latest patch (against 5.4.3) also works for 5.4.11 and

Re: [PHP] how to build multilingual e-commerce website

2012-12-28 Thread Matijn Woudt
Op 28 dec. 2012 12:20 schreef Sachin Raut imsachinr...@gmail.com het volgende: Dear Friends, I have to develop multilingual e-commerce (clothing) website. Could anyone who has developed these kind of sites before guide me on how to start the development or recommend any tutorial / book for

Re: [PHP] Nested loopa

2012-12-27 Thread Matijn Woudt
On Thu, Dec 27, 2012 at 4:42 PM, Tedd Sperling t...@sperling.com wrote: On Dec 26, 2012, at 10:09 AM, Jim Giner jim.gi...@albanyhandball.com wrote: While I fully understand the purpose of the do...while construct, I just never get used to seeing it used. (in other langs I had to deal with a

Re: [PHP] Serial Comm problem

2012-12-26 Thread Matijn Woudt
On Tue, Dec 25, 2012 at 8:36 PM, Ken Arck ah...@ah6le.net wrote: I'm pretty much a php newbie but have been programming for years in other languages Anyway... Using /dev/ttyS0. I need to set the serial port to 9600, send one command to an embedded processor board, then change the baud rate

Re: [PHP] Noobie starting to learn OOP for databases needs help

2012-12-16 Thread Matijn Woudt
On Sun, Dec 16, 2012 at 4:38 PM, dealTek deal...@gmail.com wrote: Hi all, Noobie starting to learn oop for databases from here: https://github.com/JeffreyWay/PHP-MySQL-Database-Class/blob/master/MysqlDb.php I've got lots working but have a few issues: 1 - after an insert I'd like to get

Re: [PHP] storing searching docs

2012-12-13 Thread Matijn Woudt
On Thu, Dec 13, 2012 at 3:10 PM, Jim Giner jim.gi...@albanyhandball.comwrote: Thanks for the input gentlemen. Two opposing viewpoints! I understand the concept of using files for the docs and a table to locate them and id them. But I am of the opinion that modern dbs are capable of

Re: [PHP] storing searching docs

2012-12-13 Thread Matijn Woudt
On Thu, Dec 13, 2012 at 3:32 PM, Jim Giner jim.gi...@albanyhandball.comwrote: On 12/13/2012 9:19 AM, Matijn Woudt wrote: On Thu, Dec 13, 2012 at 3:10 PM, Jim Giner jim.gi...@albanyhandball.com **wrote: I'm not sure if there's much difference between large text fields and blobs, but I

  1   2   3   4   >