Re: [PHP] json_encode confusion

2011-11-10 Thread Matijn Woudt
On Thu, Nov 10, 2011 at 5:42 PM, Jim Lucas li...@cmsws.com wrote: On 11/10/2011 6:45 AM, Bastien Koert wrote: Morning all, I've been having some fun with converting a text data file import into a json object for storage. I have a text file that is pipe delimited coming in via an upload. The

Re: [PHP] RSS Feed

2011-11-15 Thread Matijn Woudt
Hi, Have you tried google? I tried and top hit was this one: http://stackoverflow.com/questions/1501394/writing-an-rss-feed-to-mysql-using-php I guess that's all you need. Matijn On Tue, Nov 15, 2011 at 9:30 PM, Christopher Lee ct...@ucensys.com wrote: Hello All, I am interested in

Re: [PHP] Safari and PDF

2011-11-15 Thread Matijn Woudt
On Tue, Nov 15, 2011 at 11:08 PM, HallMarc Websites m...@hallmarcwebsites.com wrote: I'm sure everyone here is aware that the latest Mac OS and Safari 5.1.x do not support opening PDFs in the browser window with Acrobat Reader plugin anymore. It is now necessary to open them with Preview

Re: [PHP] Impossibility of reading php.ini

2011-11-19 Thread Matijn Woudt
On Sat, Nov 19, 2011 at 7:23 PM, Alain Chautar achau...@nerim.net wrote: Hello I am a newbie of this list. So if this topic as a known answer, I apologize. I use a brand new Debian Squeeze with PHP5.3.3-7+Squeeze3 as a web server. All my web sites are OK. For my needs I have to change values

Re: [PHP] Auto CRUD Generator Xataface

2011-11-29 Thread Matijn Woudt
On Tue, Nov 29, 2011 at 9:44 PM, Daevid Vincent dae...@daevid.com wrote: -Original Message- Search Google for Xataface.  It's a full frontend which dynamically changes with database structure changes. http://xataface.com/videos is broken and therefore we can't view the demo, and

Re: [PHP] Auto CRUD Generator Xataface

2011-11-29 Thread Matijn Woudt
On Tue, Nov 29, 2011 at 9:54 PM, Daevid Vincent dae...@daevid.com wrote: I think your PC is broken.. I can watch the videos just fine ;) I tried it in FF 3.6.24 as well as Chrome 15.0.874.121 m (is that really necessary Google?!) and lastly IE 8.0.7601.17514 (is that really necessary

Re: [PHP] mcrypt_encrypt help needed

2011-11-30 Thread Matijn Woudt
On Wed, Nov 30, 2011 at 9:57 PM, Rick Dwyer rpdw...@earthlink.net wrote: Hello all. I am using the following function to encrypt a string: define('SALT', 'myvalueforsalthere'); function encrypt($text) {    return trim(base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, SALT, $text,

Re: [PHP] mcrypt_encrypt help needed

2011-11-30 Thread Matijn Woudt
On Wed, Nov 30, 2011 at 10:18 PM, Adam Richardson simples...@gmail.com wrote: On Wed, Nov 30, 2011 at 4:14 PM, Matijn Woudt tijn...@gmail.com wrote: On Wed, Nov 30, 2011 at 9:57 PM, Rick Dwyer rpdw...@earthlink.net wrote: Hello all. I am using the following function to encrypt a string

Re: [PHP] mcrypt_encrypt help needed

2011-11-30 Thread Matijn Woudt
On Wed, Nov 30, 2011 at 10:34 PM, Adam Richardson simples...@gmail.com wrote: On Wed, Nov 30, 2011 at 4:25 PM, Matijn Woudt tijn...@gmail.com wrote: On Wed, Nov 30, 2011 at 10:18 PM, Adam Richardson simples...@gmail.com wrote: On Wed, Nov 30, 2011 at 4:14 PM, Matijn Woudt tijn...@gmail.com

Re: [PHP] compare dates

2011-11-30 Thread Matijn Woudt
On Wed, Nov 30, 2011 at 11:00 PM, Marc Fromm marc.fr...@wwu.edu wrote: I'm puzzled why the if statement executes as true when the first date (job_closedate) is not less than the second date (now). The if statement claims that 12/02/2011 is less than 11/30/2011.                if

Re: [PHP] mcrypt_encrypt help needed

2011-11-30 Thread Matijn Woudt
On Wed, Nov 30, 2011 at 10:57 PM, Rick Dwyer rpdw...@earthlink.net wrote: My decrypt is below: $myval=$_GET[myval]; // let the encryption begin define('SALT', 'myvalueforsalthere'); function decrypt($text) {    return trim(mcrypt_decrypt(MCRYPT_RIJNDAEL_256, SALT,

Re: [PHP] mcrypt_encrypt help needed

2011-11-30 Thread Matijn Woudt
On Thu, Dec 1, 2011 at 1:14 AM, Rick Dwyer rpdw...@earthlink.net wrote: On Nov 30, 2011, at 5:13 PM, Matijn Woudt wrote: Your decrypt function seems fine, and the encrypt/decrypt functions work fine both in the same file for me. Now you say you use $_GET[myval], which means you get them from

Re: [PHP] Question about performance between for iteration and extension function

2011-12-09 Thread Matijn Woudt
On Fri, Dec 9, 2011 at 5:04 PM, Lin Yo-An cornelius.h...@gmail.com wrote: Hi folks, I am in doubt of this, I thought pure php iteration is slower than calling join or other extension functions. but the result shows:  https://gist.github.com/b2a94c94ca66a55814d4 Using Pure PHP for iteration

Re: [PHP] PHP 5.3.6 Dates

2011-12-12 Thread Matijn Woudt
On Mon, Dec 12, 2011 at 5:56 PM, Floyd Resler fres...@adex-intl.com wrote: If this was already discussed I apologize for the duplicate question.  For some reason dates of -00-00 get converted to 11/30/-0001 with the date function.  Is this be design or a bug? Thanks! Floyd It might

Re: [PHP] Unique items in an array

2011-12-13 Thread Matijn Woudt
On Tue, Dec 13, 2011 at 10:15 PM, Marc Guay marc.g...@gmail.com wrote: Hi folks, Let's say that I have the following array:  [0]=  array(35) {    [contact_id]=    string(3) 356    [contact_first_name]=    string(4) Marc  }  [1]=  array(35) {    [contact_id]=    string(3) 247    

Re: [PHP] Question about socket_select

2011-12-13 Thread Matijn Woudt
On Wed, Dec 14, 2011 at 12:11 AM, Mihai Anghel mihaigrim1...@gmail.com wrote: Hello, It appears to me that something is strange with the socket_select function. From what I understand the value of the fourth parameter, tv_sec, should block the execution of the script for that number of

Re: [PHP] Problems with CURL using an HTTP Proxy on PHP5

2011-12-21 Thread Matijn Woudt
On Fri, Dec 16, 2011 at 10:09 PM, Francisco M. Marzoa Alonso franci...@marzoa.com wrote: I know it is NOT a problem with the website, because if I comment out the line curl_setopt ($ch, CURLOPT_HTTPPROXYTUNNEL, 1) disabling the use of a proxy, it works fine. I know the proxy is working fine,

Re: [PHP] Question about date calculations

2012-01-01 Thread Matijn Woudt
On Fri, Dec 30, 2011 at 5:33 PM, Eric Lommatsch er...@pivotaldata.net wrote: When I try this method: $interval = $dteStartDate[$intCnt]-diff($dteEndDate[$intCnt]); I get the following error when I run the page: Fatal error : Call to undefined method DateTime::diff() in

Re: [PHP] PHP 5.3.2 max_execution_time

2012-01-02 Thread Matijn Woudt
On Mon, Jan 2, 2012 at 10:21 AM, Chris Tapp opensou...@keylevel.com wrote: This really does seem to be an execution time issue, as shown by the Apache error log entry. Chris Are you sure you've checked every possible place for Apache config files? Most distro's have /etc/apache2/httpd.conf,

Re: [PHP] PHP 5.3.2 max_execution_time

2012-01-02 Thread Matijn Woudt
On Mon, Jan 2, 2012 at 4:52 PM, Chris Tapp opensou...@keylevel.com wrote: Yes, I don't think there is anything I haven't checked. The configuration under CentOS 6 is more the 'old way' - i.e. a conf/ and conf.d/. All the php configuration is in /etc/php.ini with conf.d/php.conf enabling Apache

Re: [PHP] debugging PHP memory corruption

2012-01-04 Thread Matijn Woudt
On Wed, Jan 4, 2012 at 3:34 PM, Andrew Morum amo...@brendata.co.uk wrote: We've got a problem with PHP 5.3.8 and a third party (open source) library (WSo2 SOAP). At some point during the request to the PHP script, some structures seem to be getting corrupted causing PHP to crash.

Re: [PHP] Implicit FTPS

2012-01-05 Thread Matijn Woudt
On Thu, Jan 5, 2012 at 4:01 PM, Todd Nelson tnel...@mail.unomaha.edu wrote: My apologies if I'm in the wrong place, but I'm looking to discuss having PHP support implicit FTPS (currently only supports explicit.)  I'd like to find the author(s) of the 'ftp_ssl_connect' function to discuss if

Re: [PHP] Strange foreach reference issue

2012-01-07 Thread Matijn Woudt
On Sun, Jan 8, 2012 at 12:29 AM, Tim Behrendsen t...@behrendsen.com wrote: Hello, This sure looks like a bug, but maybe there's some subtlety going on that I don't understand, so I would appreciate some insight. After much debugging, I tracked down a bug in my code to this test program. My

Re: [PHP] Re: php sendmail_from

2012-01-09 Thread Matijn Woudt
On Mon, Jan 9, 2012 at 8:50 PM, alexus ale...@gmail.com wrote: using Drupal If you're using Drupal to send the mail, or any module installed in Drupal, than there are most likely settings in Drupal (module) that allow you to set the from address. If these functions call the mail command with a

Re: [PHP] passing variables to php script

2012-01-10 Thread Matijn Woudt
On Tue, Jan 10, 2012 at 9:57 PM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Tue, 2012-01-10 at 21:43 +0100, Marco Behnke wrote: Am 10.01.12 21:28, schrieb Mike Mackintosh: On Jan 10, 2012, at 15:12, Marco Behnke ma...@behnke.biz wrote: Am 10.01.12 21:07, schrieb Donovan Brooke:

Re: [PHP] Curl problems

2012-01-11 Thread Matijn Woudt
On Thu, Jan 12, 2012 at 12:20 AM, Rick Dwyer rpdw...@earthlink.net wrote: Hello all. I use curl to make a call to another page on my site... but it operates erroneously sometimes working... sometimes not.  The page it calls creates an email and I can see on the server the email in the

Re: [PHP] differences in between these env. variables

2012-01-11 Thread Matijn Woudt
On Thu, Jan 12, 2012 at 12:26 AM, Haluk Karamete halukkaram...@gmail.com wrote: I've grouped these env variables, each group returns the same values is there a difference? which ones do you use? which ones should I not use for the purposes listed below You can find the answers here:

Re: [PHP] Curl problems

2012-01-11 Thread Matijn Woudt
On Thu, Jan 12, 2012 at 12:44 AM, Rick Dwyer rpdw...@earthlink.net wrote: On Jan 11, 2012, at 6:29 PM, Matijn Woudt wrote: On Thu, Jan 12, 2012 at 12:20 AM, Rick Dwyer rpdw...@earthlink.net wrote: Hello all. I use curl to make a call to another page on my site... but it operates

Re: [PHP] passing variables to php script

2012-01-12 Thread Matijn Woudt
On Thu, Jan 12, 2012 at 7:51 PM, David Savage dsav...@cytelcom.com wrote: Installed apache onto a win2K server, and have the html file php file in the same folder (Q:\ASTERISK\) on the Q: drive (which is just another drive in this same server).  I opened the html file using IE 6.0.   What

Re: [PHP] Bug 51860

2012-01-18 Thread Matijn Woudt
On Wed, Jan 18, 2012 at 1:06 AM, Christian Grobmeier grobme...@gmail.com wrote: Hello folks, any chance this one is ever fixed? https://bugs.php.net/bug.php?id=51860 I am a customer of 11. They told me they will not upgrade until this one is fixed. Imagine that there are thousands of

Re: [PHP] Reading only RGB portion of an image, file_get_conents minus file headers etc

2012-01-23 Thread Matijn Woudt
On Mon, Jan 23, 2012 at 1:51 PM, Nicholas Cooper nicho...@twpagency.com wrote: Hi everyone, I've created an image in RGB from ImageMagick, it's 4 by 4 so I'm expecting 48 numbers (4*4*3). [width*height*(R,G,B)] When I read the file with PHP and unpack it I get between 330 and 333, I guess

Re: [PHP] Reading only RGB portion of an image, file_get_conents minus file headers etc

2012-01-23 Thread Matijn Woudt
On Mon, Jan 23, 2012 at 3:26 PM, Nicholas Cooper nicho...@twpagency.com wrote: On 23 January 2012 13:26, Matijn Woudt tijn...@gmail.com wrote: On Mon, Jan 23, 2012 at 1:51 PM, Nicholas Cooper nicho...@twpagency.com wrote: Hi everyone, I've created an image in RGB from ImageMagick, it's 4

Re: [PHP] differences in between these env. variables

2012-01-27 Thread Matijn Woudt
On Fri, Jan 27, 2012 at 6:09 PM, Tedd Sperling tedd.sperl...@gmail.com wrote: On Jan 11, 2012, at 9:24 PM, tamouse mailing lists wrote: Is there ever a case where SCRIPT_NAME does not equal PHP_SELF? Was this every answered? I would like to know. Cheers, tedd I don't think it was

Re: [PHP] differences in between these env. variables

2012-01-29 Thread Matijn Woudt
On Sun, Jan 29, 2012 at 5:38 PM, Tedd Sperling tedd.sperl...@gmail.com wrote: On Jan 27, 2012, at 12:45 PM, Adam Richardson wrote: On Fri, Jan 27, 2012 at 12:09 PM, Tedd Sperling tedd.sperl...@gmail.com wrote: On Jan 11, 2012, at 9:24 PM, tamouse mailing lists wrote: Is there ever a case

Re: [PHP] Re: Time zone in date function

2012-01-31 Thread Matijn Woudt
On Tue, Jan 31, 2012 at 4:22 PM, Jonesy gm...@jonz.net wrote: On Tue, 31 Jan 2012 14:57:41 +1300, Simon J Welsh wrote: On 31/01/2012, at 2:55 PM, Ron Piggott wrote: On my clients account when I use ?echo date(?D, d M Y H:i:s');? the output is 5 hours ahead of us.  How do I change it to my

Re: [PHP] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/php_pdo_mysql' ....

2012-02-01 Thread Matijn Woudt
On Wed, Feb 1, 2012 at 6:56 PM, Darryle Steplight dstepli...@gmail.com wrote: Hello Everyone,    My name is Darryle. I've installed PHP 5.3.9 on my CentOs box and some numerous modules via yum. Some of those modules are  PDO, PDO_MYSQL and PDO_SQLITE. However, my PHP configuration is not

Re: [PHP] Looking for the string functions

2012-02-01 Thread Matijn Woudt
On Thu, Feb 2, 2012 at 12:17 AM, Tim Streater t...@clothears.org.uk wrote: I'm keen to look at the C source of such as substr_replace() and stripos(). I've downloaded the 5.3.9 PHP source, but am having difficulty locating the string functions. Could someone point me at the right directory or

Re: [PHP] Function links on error and warningmessages

2012-02-03 Thread Matijn Woudt
On Fri, Feb 3, 2012 at 4:35 PM, Ford, Mike m.f...@leedsmet.ac.uk wrote: -Original Message- From: Florian Müller [mailto:florip...@hotmail.com] Sent: 03 February 2012 14:36 Hi guys, I was wondering some time ago, why the links which are shown on error or warning (E_WARNING etc.)

Re: [PHP] Re: Long Live GOTO

2012-02-06 Thread Matijn Woudt
On Mon, Feb 6, 2012 at 11:34 PM, Tim Streater t...@clothears.org.uk wrote: On 06 Feb 2012 at 20:51, Simon J Welsh si...@welsh.co.nz wrote: On 7/02/2012, at 9:44 AM, Marco Behnke wrote: Am 06.02.12 17:23, schrieb Alain Williams: However: a few GOTOs can make things clearer. Think of a

Re: [PHP] What is the mnemonic for date()'s Day format?

2012-02-13 Thread Matijn Woudt
On Mon, Feb 13, 2012 at 7:52 PM, Dotan Cohen dotanco...@gmail.com wrote: From the fine manual [1]: l (lowercase 'L') A full textual representation of the day of the week I can never remember this one, and I use it occasionally. What is the mnemonic for l? How did this letter come to be

Re: [PHP] handle file_get_contents timeout including dns lookup time

2012-02-14 Thread Matijn Woudt
On Tue, Feb 14, 2012 at 1:28 PM, nik600 nik...@gmail.com wrote: Dear all i'm trying to handle a max timeout into a file_get_contents request, this is my code: *** client.php *** placed on http://test.foo.com/client.php ?php ini_set('default_socket_timeout',10); $ctx =

Re: [PHP] Can php be configured to browse through a proxy?

2012-02-14 Thread Matijn Woudt
On Tue, Feb 14, 2012 at 5:41 PM, Joan aseq...@gmail.com wrote: There is some information about configuring php to use a proxy when connecting to external urls. According to some sources the proper setup option is by using the stream-context-set-default function (

Re: [PHP] Form Post to different domain

2012-02-16 Thread Matijn Woudt
On Thu, Feb 16, 2012 at 4:09 PM, Daniel Brown danbr...@php.net wrote: On Thu, Feb 16, 2012 at 09:53, Tedd Sperling tedd.sperl...@gmail.com wrote:    This means you can rest assured that the newlines will be appropriate for the system on which PHP is running.  While it makes little difference

Re: [PHP] Form Post to different domain

2012-02-16 Thread Matijn Woudt
On Thu, Feb 16, 2012 at 5:02 PM, Daniel Brown danbr...@php.net wrote: On Thu, Feb 16, 2012 at 10:57, Matijn Woudt tijn...@gmail.com wrote: What if the system PHP is running on not the same one as the one that is going to read the plain-text/CSV/.. files? I don't think it is good practice

Re: [PHP] Connect to Google

2012-02-16 Thread Matijn Woudt
2012/2/16 John Taylor-Johnston jt.johns...@usherbrooke.ca: Can I use PHP to interface with Google? Any possible examples of this? There's Google Custom Search API: http://code.google.com/intl/nl-NL/apis/customsearch/v1/overview.html It interfaces in JSON, and PHP has json functions included

Re: [PHP] Turning a string into a condition

2012-02-16 Thread Matijn Woudt
On Thu, Feb 16, 2012 at 9:49 PM, Marc Guay marc.g...@gmail.com wrote: I just added the return statement and the semicolon, because the error was complaining about it not being a proper PHP statement basically. That's beautiful, thanks.  I just stumbled across a forum post that said it wasn't

Re: [PHP] Re: Connect to Google

2012-02-16 Thread Matijn Woudt
On Thu, Feb 16, 2012 at 10:56 PM, Maciek Sokolewicz maciek.sokolew...@gmail.com wrote: On 16-02-2012 03:56, John Taylor-Johnston wrote: I'm a teacher. I want to use PHP to interface with Google and see if a student has plagiarized. I don't see many open-source projects on the subject, so I

Re: [PHP] Turning a string into a condition

2012-02-16 Thread Matijn Woudt
On Thu, Feb 16, 2012 at 10:37 PM, Marc Guay marc.g...@gmail.com wrote: It shouldn't be that hard to parse this type of expressions. I appreciate your concern, and will do my best to validate the input, but there are two things: 1)  The application will only be used by selected users. and

Re: [PHP] html_entity_decode is trying to kill me

2012-02-17 Thread Matijn Woudt
On Fri, Feb 17, 2012 at 5:00 PM, Marc Guay marc.g...@gmail.com wrote: Hi, So I decided to give one of those PHP math classes a go and have come across a joyful character encoding problem.  He's the deal: $rule = 1 lt; 2; $rule = html_entity_decode($rule, ENT_QUOTES, 'UTF-8'); echo $rule;

Re: [PHP] Wrong POSTFIELDS Posted

2012-02-18 Thread Matijn Woudt
On Sat, Feb 18, 2012 at 1:54 AM, Brian Smither bhsmit...@gmail.com wrote: I have a script that accepts four POST variables. Three are used and five more are added for a total of eight keys and their urlencode() values all strung together in the proper format. Then cURL is initialized with

Re: [PHP] Race Condition In PHP Session Handler

2012-02-20 Thread Matijn Woudt
On Mon, Feb 20, 2012 at 7:21 PM, Adam Tauno Williams awill...@whitemice.org wrote: php-5.3.3-3.el6_2.6.x86_64 2.6.32-220.4.2.el6.x86_64 After some testing we moved our production PHP intranet site from an old server to a new CentOS 6.2 instance running the mentioned versions.  At first it

Re: [PHP] Test

2012-02-20 Thread Matijn Woudt
Nooo, It's DEAD! On Mon, Feb 20, 2012 at 9:45 PM, Camilo Sperberg unrea...@gmail.com wrote: It's alvvve!!! Sent from my iPhone 5 Beta [Confidential use only] On 20 feb. 2012, at 21:08, Jason Pruim li...@pruimphotography.com wrote: Someone finally got off their butt and got some

Re: [PHP] Selecting checkboxes based on SQL query

2012-02-23 Thread Matijn Woudt
On Thu, Feb 23, 2012 at 7:49 PM, Rick Dwyer rpdw...@earthlink.net wrote: Hello all. I perform a SQL query like the following: $sql = 'select * from my_table where id=10 It returns the the following array for 3 records: Array ( [0] = Array ( [cb] = 2 ) [1] = Array ( [cb] = 6 ) [2] = Array

Re: [PHP] Selecting checkboxes based on SQL query

2012-02-23 Thread Matijn Woudt
On Thu, Feb 23, 2012 at 8:07 PM, Matijn Woudt tijn...@gmail.com wrote: On Thu, Feb 23, 2012 at 7:49 PM, Rick Dwyer rpdw...@earthlink.net wrote: Hello all. I perform a SQL query like the following: $sql = 'select * from my_table where id=10 It returns the the following array for 3 records

Re: [PHP] Custom PHP extension: Invalid library (maybe not a PHP library)

2012-02-29 Thread Matijn Woudt
The code compiles well with these commands: $ ./configure --enable-hello2 $ make -j5 # make install It's a long time since I built PHP extensions, but aren't you supposed to run phpize before configure? But after I execute the command: $ php5 -dextension=hello2.so -v I get the following

Re: [PHP] Little Info...

2012-02-29 Thread Matijn Woudt
On Wed, Feb 29, 2012 at 7:01 PM, Don Wieland d...@pointmade.net wrote: This is a bit related to PHP but mostly mySQL (is there a similar list for this stuff? Let me know please) In my mySQL query editor, I am trying to return a value of 0 when there is no related rows from this query:

Re: [PHP] Website preview script

2012-02-29 Thread Matijn Woudt
On Wed, Feb 29, 2012 at 7:07 PM, Nibin V M nibi...@gmail.com wrote: Hello, I am very new to PHP coding. I am trying to achieve a task via PHP, regarding which I have been googling around for a few days and now come up with emtpy hands! Ok, what I need to write is a website preview script.

Re: [PHP] curl equivalent in PHP

2012-03-02 Thread Matijn Woudt
On Fri, Mar 2, 2012 at 6:09 PM, Nibin V M nibi...@gmail.com wrote: Hmm..I am a php newbie ( just started learning it )... what my need is to display website from my server always for a non-registered domain.This is the code I use now to display the website ?php $opts = array(  

Re: [PHP] problem about PHP-FPM in TCP socket and Unix socket

2012-03-02 Thread Matijn Woudt
On Fri, Mar 2, 2012 at 5:56 PM, Yuchen Wang phob...@gmail.com wrote: Hello all, I am trying to config some new server All of my servers are using TCP Socket(127.0.0.1:9000) between nginx and php-fpm before But, I run ab(ab -n 2 -c50 http://192.168.74.130:81/) to test the performance

Re: [PHP] Function mktime() documentation question

2012-03-10 Thread Matijn Woudt
On Sat, Mar 10, 2012 at 6:20 PM, Maciek Sokolewicz maciek.sokolew...@gmail.com wrote: On 09-03-2012 14:11, Daniel Brown wrote:     (To the list, as well.  First day with my new fingers, apparently) On Fri, Mar 9, 2012 at 08:09, Daniel Browndanbr...@php.net  wrote: On Thu, Mar 8, 2012 at

Re: [PHP] Function mktime() documentation question

2012-03-10 Thread Matijn Woudt
On Sat, Mar 10, 2012 at 9:47 PM, tamouse mailing lists tamouse.li...@gmail.com wrote: I'm just a bit baffled why this isn't a standard library function. Good question, but I think the problem here is that there are tons of these small functions, and you got to make a choice on what to implement

Re: [PHP] Function mktime() documentation question

2012-03-11 Thread Matijn Woudt
On Sun, Mar 11, 2012 at 7:33 PM, Tedd Sperling tedd.sperl...@gmail.com wrote: On Mar 11, 2012, at 6:12 AM, Ashley Sheridan wrote: I still don't see what's wrong with date(t); -- Thanks, Ash Ash: It's just too damn simple -- we need to make things complicated. :-) Actually, this

Re: [PHP] Have little enough hair as it is ...

2012-03-11 Thread Matijn Woudt
On Mon, Mar 12, 2012 at 12:11 AM, Simon Schick simonsimc...@googlemail.com wrote: 2012/3/11 Lester Caine les...@lsces.co.uk: ( Been down London over night ;) ) ... and was not awake enough to change email address ... http://piwik.medw.org.uk/phpinfo.php has http://piwik.medw.org.uk/ working

Re: [PHP] questions about $_SERVER

2012-03-13 Thread Matijn Woudt
On Tue, Mar 13, 2012 at 4:59 PM, Tedd Sperling tedd.sperl...@gmail.com wrote: On Mar 12, 2012, at 7:12 PM, Tim Streater wrote: ?php function yes ($a)     {     global $x;     if  ($a)  $x = yes\n;     } first (true); echo $x; ? but I haven't looked into $GLOBALS enough to know

Re: [PHP] class method visibility

2012-03-15 Thread Matijn Woudt
2012/3/15 Jeremy Wei shuimuqing...@gmail.com: I read the manual about  method visibility, but i can't understand the code below: ?php class Bar {    public function test() {        $this-testPrivate();        $this-testPublic();    }    public function testPublic() {        echo

Re: [PHP] Variables are empty only in fwrite

2012-03-15 Thread Matijn Woudt
On Thu, Mar 15, 2012 at 4:59 PM, Larry lrr...@gmail.com wrote: On Thu, Mar 15, 2012 at 11:53 AM, Daniel P. Brown daniel.br...@parasane.net wrote: On Thu, Mar 15, 2012 at 11:30, Larry lrr...@gmail.com wrote: Hello, when I pass a variable whose value originally came from $_GET or $_REQUEST to

Re: [PHP] Re: $POST and $_SESSION

2012-03-15 Thread Matijn Woudt
On Thu, Mar 15, 2012 at 5:25 PM, Michael Clark mcl...@insidesales.com wrote: On 3/15/2012 9:04 AM, Tedd Sperling wrote: What's a better/shorter way to write this? $first_name = $_SESSION['first_name'] ? $_SESSION['first_name'] : null; $first_name = isset($_POST['first_name']) ?

Re: [PHP] fgetcsv doesn't return an array?

2012-03-15 Thread Matijn Woudt
On Thu, Mar 15, 2012 at 6:09 PM, Jay Blanchard jay.blanch...@sigmaphinothing.org wrote: I thought that fgetcsv returned an array. I can work with it like an array but I get the following warning when using it |Warning:  implode(): Invalid arguments passed on line 155 154     $csvCurrentLine

Re: [PHP] fgetcsv doesn't return an array?

2012-03-15 Thread Matijn Woudt
On Thu, Mar 15, 2012 at 6:40 PM, Andrew Ballard aball...@gmail.com wrote: On Thu, Mar 15, 2012 at 1:29 PM, Jay Blanchard jay.blanch...@sigmaphinothing.org wrote: On 3/15/2012 12:23 PM, Matijn Woudt wrote: On Thu, Mar 15, 2012 at 6:09 PM, Jay Blanchard jay.blanch...@sigmaphinothing.org  wrote

Re: [PHP] Variables are empty only in fwrite

2012-03-15 Thread Matijn Woudt
On Thu, Mar 15, 2012 at 7:51 PM, Larry lrr...@gmail.com wrote: On Thu, Mar 15, 2012 at 12:21 PM, Matijn Woudt tijn...@gmail.com wrote: On Thu, Mar 15, 2012 at 4:59 PM, Larry lrr...@gmail.com wrote: On Thu, Mar 15, 2012 at 11:53 AM, Daniel P. Brown daniel.br...@parasane.net wrote: On Thu, Mar

Re: [PHP] Variables are empty only in fwrite

2012-03-15 Thread Matijn Woudt
On Thu, Mar 15, 2012 at 8:41 PM, Larry lrr...@gmail.com wrote: On Thu, Mar 15, 2012 at 2:57 PM, Matijn Woudt tijn...@gmail.com wrote: On Thu, Mar 15, 2012 at 7:51 PM, Larry lrr...@gmail.com wrote: On Thu, Mar 15, 2012 at 12:21 PM, Matijn Woudt tijn...@gmail.com wrote: On Thu, Mar 15, 2012 at 4

Re: [PHP] php upload does not work proper, [tmp_name] and other are missing in $_FILES

2012-03-20 Thread Matijn Woudt
On Tue, Mar 20, 2012 at 4:33 PM, Meike Stone meike.st...@googlemail.com wrote: Hello, I try the upload files, but in tmp_name and other variables are missing in $_FILES. I use php 5.3.8 on SLES11SP2 I can repeat this with: === ?php

Re: [PHP] php upload does not work proper, [tmp_name] and other are missing in $_FILES

2012-03-21 Thread Matijn Woudt
On Wed, Mar 21, 2012 at 3:32 PM, Meike Stone meike.st...@googlemail.com wrote: But what is the reason, that the module not work properly? Which next step can I do? I figured out, that the new mod_php5.so is not linked against libmm.so.14. Can this be the problem? Thanks Meike # ldd

Re: [PHP] foreach weirdness

2012-03-25 Thread Matijn Woudt
On Sun, Mar 25, 2012 at 4:11 PM, Arno Kuhl a...@dotcontent.net wrote: From: Simon Schick [mailto:simonsimc...@googlemail.com] Sent: 24 March 2012 12:30 AM To: Robert Cummings Cc: a...@dotcontent.net; php-general@lists.php.net Subject: Re: [PHP] foreach weirdness 2012/3/23 Robert Cummings

Re: [PHP] Re: updating code asap to multiple domains, windows to unix, with source control software (was: Re: [PHP] including PHP code from another server..)

2012-03-27 Thread Matijn Woudt
On Tue, Mar 27, 2012 at 12:31 PM, rene7705 rene7...@gmail.com wrote: On Tue, Mar 27, 2012 at 12:22 PM, ma...@behnke.biz ma...@behnke.biz wrote: rene7705 rene7...@gmail.com hat am 27. März 2012 um 12:16 geschrieben: On Tue, Mar 27, 2012 at 12:08 PM, rene7705 rene7...@gmail.com wrote:

Re: [PHP] Re: updating code asap to multiple domains, windows to unix, with source control software (was: Re: [PHP] including PHP code from another server..)

2012-03-27 Thread Matijn Woudt
On Tue, Mar 27, 2012 at 12:47 PM, rene7705 rene7...@gmail.com wrote: On Tue, Mar 27, 2012 at 12:45 PM, Matijn Woudt tijn...@gmail.com wrote: On Tue, Mar 27, 2012 at 12:31 PM, rene7705 rene7...@gmail.com wrote: On Tue, Mar 27, 2012 at 12:22 PM, ma...@behnke.biz ma...@behnke.biz wrote

Re: [PHP] Re: List working?

2012-03-27 Thread Matijn Woudt
On Tue, Mar 27, 2012 at 11:32 PM, Shawn McKenzie nos...@mckenzies.net wrote: On 03/27/2012 04:23 PM, Jay Blanchard wrote: Seems unusual not to have any traffic on it all day long. i put in my codes but i only get blank page... List seems to be working fine, last message was at 3:11 PM GMT.

Re: [PHP] Websocket using php

2012-03-31 Thread Matijn Woudt
On Sat, Mar 31, 2012 at 5:14 PM, Leandro Dardini ldard...@gmail.com wrote: Hello, I have the need to use websockets for the server part of an application I am developing and I found with a big surprise no websocket class or procedure is available on the net. Have I missed looking in some

Re: [PHP] Command line has no network access

2012-04-01 Thread Matijn Woudt
On Sun, Apr 1, 2012 at 6:10 PM, Lester Caine les...@lsces.co.uk wrote: OK I probably know how to do this 10 years ago, but I'm not finding any prompts to remind me. Windows 2000, PHP5.2.10 cli ... I'm trying to set up a simple dump to run from scheduler. The code runs perfectly via the

Re: [PHP] Thinking out loud - a continuation...

2012-04-02 Thread Matijn Woudt
On Mon, Apr 2, 2012 at 10:36 PM, Jay Blanchard jay.blanch...@sigmaphinothing.org wrote: [snip] function getTiersJson( $company ) {    $tiers = getTiers( $company );    $json = JSON_encode( $tiers ); } $tiersJson = getTiersJson( 1 ); ? This will output JSON with the following structure:

Re: [PHP] php in windows

2012-04-10 Thread Matijn Woudt
On Tue, Apr 10, 2012 at 4:05 AM, Kirk Bailey kbai...@howlermonkey.net wrote: The edition of php for windows I instaklled does not work. Which flavor of windows php DOES work properly in windows? It does work, you just didn't take the time to read the manual on how to set it up. If you want to

Re: [PHP] Re: Script failing on extension_dir

2012-04-10 Thread Matijn Woudt
On Tue, Apr 10, 2012 at 5:18 PM, Shawn McKenzie nos...@mckenzies.net wrote: On 04/09/2012 03:16 PM, George R Smith wrote: EXTDIR=`php -i 2 /dev/null | grep -i extension_dir | cut -d -f3` Error message follows, what does the no mean ? get the directory where PHP extension are stored

Re: [PHP] Re: Script failing on extension_dir

2012-04-10 Thread Matijn Woudt
of php -I and the build script. Thanks again George -Original Message- From: Matijn Woudt Sent: Tuesday, April 10, 2012 11:05 AM To: Shawn McKenzie Cc: George R Smith ; php-general@lists.php.net Subject: Re: [PHP] Re: Script failing on extension_dir On Tue, Apr 10, 2012 at 5:18

Re: [PHP] tempnam() not working as expected...

2012-04-13 Thread Matijn Woudt
On Sat, Apr 14, 2012 at 12:05 AM, tamouse mailing lists tamouse.li...@gmail.com wrote: Can someone explain the following to me: ?php $d=tempnam(.,dir);          /* create a temp named file */ unlink($d);                     /* unlink it because we're going to make it a directory */

Re: [PHP] sms class

2012-04-18 Thread Matijn Woudt
On Tue, Apr 17, 2012 at 9:50 PM, Lester Caine les...@lsces.co.uk wrote: DZvonko Nikolov wrote: I need a class that sends sms messages to list of numbers. I'm quite new to that issue, so I need to know what I need more. Thanks in advance. Ignoring the wallies Simply sending an SMS

Re: [PHP] sms class

2012-04-18 Thread Matijn Woudt
On Wed, Apr 18, 2012 at 9:53 PM, Lester Caine les...@lsces.co.uk wrote: Matijn Woudt wrote: It should be possible to hack up an android phone and write some software that sends messages from there, though using one of the provided services is much simpler. I have the phone already

Re: [PHP] tempnam() not working as expected...

2012-04-19 Thread Matijn Woudt
On Thu, Apr 19, 2012 at 9:03 AM, ma...@behnke.biz ma...@behnke.biz wrote: tamouse mailing lists tamouse.li...@gmail.com hat am 19. April 2012 um 07:10 geschrieben: On Mon, Apr 16, 2012 at 3:09 AM, ma...@behnke.biz ma...@behnke.biz wrote: mkdir($d,777,true);                /* make the

Re: [PHP] Re: Email Antispam

2012-04-19 Thread Matijn Woudt
On Thu, Apr 19, 2012 at 1:01 PM, Bastien phps...@gmail.com wrote: Bastien Koert On 2012-04-19, at 1:54 AM, tamouse mailing lists tamouse.li...@gmail.com wrote: On Wed, Apr 18, 2012 at 8:47 PM, Ross McKay ro...@zeta.org.au wrote: On Wed, 18 Apr 2012 11:08:00 -0400, Jim Giner wrote: He

Re: [PHP] sms class

2012-04-19 Thread Matijn Woudt
On Wed, Apr 18, 2012 at 10:31 PM, Matijn Woudt tijn...@gmail.com wrote: On Wed, Apr 18, 2012 at 9:53 PM, Lester Caine les...@lsces.co.uk wrote: Matijn Woudt wrote: It should be possible to hack up an android phone and write some software that sends messages from there, though using one

Re: [PHP] NULL Problem

2012-04-24 Thread Matijn Woudt
On Tue, Apr 24, 2012 at 7:29 PM, David Stoltz dsto...@shh.org wrote: Here's my code (using MSSQL): $conn = new COM (ADODB.Connection)or die(Cannot start ADO); $conn-open($connStr); $query = SELECT * FROM TABLE WHERE id = .$id; $rs = $conn-execute($query); This code works fine, and I

Re: [PHP] Sort question..

2012-04-25 Thread Matijn Woudt
On Wed, Apr 25, 2012 at 3:16 PM, Karl-Arne Gjersøyen karlar...@gmail.com wrote: Hello again. I have a photo album that show all images in a specified directory. but I like to sort them by filename as one possibillity and random sort the photos as another feature. I don't know how to do this..

Re: [PHP] Find/count different word in a text

2012-04-25 Thread Matijn Woudt
On Wed, Apr 25, 2012 at 6:59 PM, Karl-Arne Gjersøyen karlar...@gmail.com wrote: Hello again. I am looking for a way to find and count different word in a text.. I am thinking on save the text as array and iterate through the array. Then I like to register all different words in the text. For

Re: [PHP] Serving a .dmg via readfile?

2012-04-27 Thread Matijn Woudt
On Thu, Apr 26, 2012 at 8:20 PM, Brian Dunning br...@briandunning.com wrote: Thanks, this suggestion from Dante completely solved the problem. Replaced: readfile('/var/www/mypath/My Cool Image.dmg'); With: $fd = fopen ('/var/www/mypath/My Cool Image.dmg', r); while(!feof($fd)) {    

Re: [PHP] mb_encode_mimeheader function can't deal with long non-English strings?

2012-04-30 Thread Matijn Woudt
On Mon, Apr 30, 2012 at 1:04 AM, Coiby Xu coiby...@gmail.com wrote: Hi all, I wonder why mb_encode_mimeheader function can't deal with long non-english strings. Here are the codes: function util_encode_mimeheader($headername,$str,$charset) { if (function_exists('mb_internal_encoding')

Re: [PHP] date conversion/extraction issues

2012-05-02 Thread Matijn Woudt
On Wed, May 2, 2012 at 11:36 PM, Haluk Karamete halukkaram...@gmail.com wrote: This is my code and the output is right after that... $PDate = $row['PDate']; //row is tapping into ms-sql date field. //and the ms-sql data field has a value like this for the PDate; //07/12/2001 $PDate =

Re: [PHP] PHP Database Problems -- Code Snippets

2012-05-02 Thread Matijn Woudt
On Wed, May 2, 2012 at 11:43 PM, Ethan Rosenberg eth...@earthlink.net wrote: Dear list - Sorry for the attachment.  Here are code snippets --- Ethan, I don't want to sound rude, but it appears to me you don't have any understanding of what you're doing. It might help if you understand what

Re: [PHP] PHP Database Problems -- Code Snippets

2012-05-05 Thread Matijn Woudt
On Thu, May 3, 2012 at 4:20 PM, Ethan Rosenberg eth...@earthlink.net wrote: At 06:47 PM 5/2/2012, Matijn Woudt wrote: On Wed, May 2, 2012 at 11:43 PM, Ethan Rosenberg eth...@earthlink.net wrote: Dear list - Sorry for the attachment. Â Here are code snippets --- Ethan, I don't want to sound

Re: [PHP] I'm missing something

2012-05-05 Thread Matijn Woudt
On Sun, May 6, 2012 at 12:38 AM, Jim Giner jim.gi...@albanyhandball.com wrote: I have a discrepancy in the number of elements in my arrays and can't see why. Here is some code: Note the lines with the *** *** $plyrs = 0;  unset($plyrnames_ar);  unset($js_names);  unset($js_seeds); ***

Re: [PHP] I'm missing something

2012-05-05 Thread Matijn Woudt
On Sun, May 6, 2012 at 12:53 AM, Jim Giner jim.gi...@albanyhandball.com wrote: Yup that was it!  Something I knew would happen during my design, but forgot to code for now. Jim Giner jim.gi...@albanyhandball.com wrote in message news:e2.dc.30075.c6ea5...@pb1.pair.com... My guess would be

Re: [PHP] How to send XML requests from PHP?

2012-05-08 Thread Matijn Woudt
On Tue, May 8, 2012 at 7:50 PM, Michelle Konzack linux4miche...@tamay-dogan.net wrote: Hello *, I have to implement an interface which must access a Domain-Registration API.  From the manual I have for example: 8-- Example

  1   2   3   4   >