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

<    1   2   3   4