Re: [PHP] Friday's Question

2013-09-20 Thread Mattias Thorslund
40, and no mouse pad atm. Seems that this table top is okay. This is an optical mouse without a ball underneath. However this mac-y-mouse DOES have a ball on top, for scrolling. Go figure. Mattias -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] Friday's Question

2013-09-20 Thread Bastien
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Friday's Question

2013-09-20 Thread Tim Streater
slightly better on the pad (covered in butterfly pix) than it would on the pine desktop. -- Cheers -- Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Friday's Question

2013-09-20 Thread Tim Streater
most of these items are except the toothpaste. -- Cheers -- Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Friday's Question

2013-09-20 Thread Simon J Welsh
Mousepads, or what? So -- please respond with: Age: * Mousepad: Yes/No Thank you, 22 and I entirely use trackpads (inbuilt or bluetooth Magic Trackpad). --- Simon Welsh Admin of http://simon.geek.nz/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Friday's Question

2013-09-20 Thread Daniel
25 network admin and programmer and yes I use a mouse pad - my mouse hates me if I dont use it. -- Regards, Daniel Fenn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

php-general Digest 19 Sep 2013 11:35:54 -0000 Issue 8367

2013-09-19 Thread php-general-digest-help
php-general Digest 19 Sep 2013 11:35:54 - Issue 8367 Topics (messages 322083 through 322092): Re: assign database result to iinput text box 322083 by: Maciek Sokolewicz 322091 by: ITN Network Re: high traffic websites 322084 by: Negin Nickparsa 322086

php-general Digest 20 Sep 2013 05:28:48 -0000 Issue 8368

2013-09-19 Thread php-general-digest-help
php-general Digest 20 Sep 2013 05:28:48 - Issue 8368 Topics (messages 322093 through 322110): Re: Apache's PHP handlers 322093 by: Design in Motion Webdesign 322094 by: Arno Kuhl 322095 by: Arno Kuhl 322096 by: Design in Motion Webdesign 322097

[PHP] Apache's PHP handlers

2013-09-19 Thread Arno Kuhl
For the past week I've been trying to get to the bottom of an exploit, but googling hasn't been much help so far, nor has my service provider. Basically a file was uploaded with the filename xxx.php.pgif which contained nasty php code, and then the file was run directly from a browser. The upload

Re: [PHP] Apache's PHP handlers

2013-09-19 Thread Design in Motion Webdesign
- Original Message - From: Arno Kuhl a...@dotcontent.net To: php-general@lists.php.net Sent: Thursday, September 19, 2013 1:35 PM Subject: [PHP] Apache's PHP handlers For the past week I've been trying to get to the bottom of an exploit, but googling hasn't been much help so far, nor

RE: [PHP] Apache's PHP handlers

2013-09-19 Thread Arno Kuhl
-Original Message- From: Ken Robinson [mailto:kenrb...@rbnsn.com] Sent: 19 September 2013 01:52 PM To: a...@dotcontent.net Cc: php-general@lists.php.net Subject: Re: [PHP] Apache's PHP handlers Check you .htaccess file. The hackers could have modified it to allow that type of file

RE: [PHP] Apache's PHP handlers

2013-09-19 Thread Arno Kuhl
For the past week I've been trying to get to the bottom of an exploit, but googling hasn't been much help so far, nor has my service provider. Basically a file was uploaded with the filename xxx.php.pgif which contained nasty php code, and then the file was run directly from a browser

Re: [PHP] Apache's PHP handlers

2013-09-19 Thread Design in Motion Webdesign
Hi Arno, it has nothing to do with .php in the file name. What the hacker did, was uploading a .gif file with some malicious php code included to your webserver. Then he called the .gif file from his own website by using a php script containing some code like require_once('http

Re: [PHP] Apache's PHP handlers

2013-09-19 Thread Stuart Dallas
On 19 Sep 2013, at 13:58, Design in Motion Webdesign i...@designinmotion.be wrote: it has nothing to do with .php in the file name. What the hacker did, was uploading a .gif file with some malicious php code included to your webserver. Then he called the .gif file from his own website

Re: [PHP] Apache's PHP handlers

2013-09-19 Thread Aziz Saleh
The best way to handle file uploads is to: 1) Store the filename somewhere in the DB, rename the file to a random string without extension and store the mapping in the DB as well. 2) When sending the file, set the header content to the filename and output the content of the file via PHP (ex

Re: [PHP] Apache's PHP handlers

2013-09-19 Thread Stuart Dallas
content to the filename and output the content of the file via PHP (ex: by readfile). Aziz This way even if the file is PHP code, it will be of no issue to you. What you describe it highly inefficient, clunky, and unnecessary. You've managed to get PHP and a database involved in serving

Re: [PHP] Apache's PHP handlers

2013-09-19 Thread Bastien Koert
the mapping in the DB as well. 2) When sending the file, set the header content to the filename and output the content of the file via PHP (ex: by readfile). Aziz This way even if the file is PHP code, it will be of no issue to you. What you describe it highly inefficient, clunky

[PHP] PHP 5.5.4 has been released

2013-09-19 Thread Julien Pauli
Hi! The PHP development team announces the immediate availability of PHP 5.5.4. This release fixes several bugs against PHP 5.5.3. All PHP users are encouraged to upgrade to this new version. For source downloads of PHP 5.5.4 please visit our downloads page: http://www.php.net/downloads.php

RE: [PHP] Apache's PHP handlers

2013-09-19 Thread Arno Kuhl
Arno: If you can request that file using a web browser, and it gets executed as PHP on your server then there is an error in the Apache configuration. Easy test: create a file in a text editor containing some PHP (?php phpinfo(); ? would be enough) and upload it to the www root of your site

[PHP] Static methods vs. plain functions

2013-09-19 Thread Simon Dániel
Hi, I am working on an OOP project, and cannot decide which way to follow when I have to write a simple function. For example, I want to write a function which generates a random string. In an OOP environtment, it is a matter of course to create a static class and a static method for that. But

Re: [PHP] high traffic websites

2013-09-19 Thread Negin Nickparsa
halukkaram...@gmail.com wrote: I recommend OPCache, which is already included in PHP 5.5. Camilo, I'm just curious about the disadvantageous aspects of OPcache. My logic says there must be some issues with it otherwise it would have come already enabled. Sent from iPhone

Re: [PHP] Static methods vs. plain functions

2013-09-19 Thread Sebastian Krebs
-oriented programming, what is the best practice to implement such a simple function? In strict-OOP [1] you would choose a static method, because functions are simply forbidden. However, PHP isn't strict about that by itself. So I for myself don't like the dogmatic We use classes and nothing else

Re: [PHP] Static methods vs. plain functions

2013-09-19 Thread Aziz Saleh
method, because functions are simply forbidden. However, PHP isn't strict about that by itself. So I for myself don't like the dogmatic We use classes and nothing else!-approach. If a function fits better, it's OK to be a function. [1] Actually that would end up in a mix of OOP and class-oriented

Re: [PHP] Static methods vs. plain functions

2013-09-19 Thread Paul M Foster
functions. It is definitely something which benefits from OOP code, not flat functions. I've personally found that dates benefit from this same treatment. Paul -- Paul M. Foster http://noferblatz.com http://quillandmouse.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] Static methods vs. plain functions

2013-09-19 Thread Sebastian Krebs
, because functions are simply forbidden. However, PHP isn't strict about that by itself. So I for myself don't like the dogmatic We use classes and nothing else!-approach. If a function fits better, it's OK to be a function. [1] Actually that would end up in a mix of OOP and class-oriented

RE: [PHP] Apache's PHP handlers

2013-09-19 Thread Ashley Sheridan
On Thu, 2013-09-19 at 16:14 +0200, Arno Kuhl wrote: Arno: If you can request that file using a web browser, and it gets executed as PHP on your server then there is an error in the Apache configuration. Easy test: create a file in a text editor containing some PHP (?php phpinfo(); ? would

[PHP] PHP 5.4.20 released!

2013-09-19 Thread Stas Malyshev
Hello! The PHP development team announces the immediate availability of PHP 5.4.20. About 30 bugs were fixed. All users of PHP 5.4 are encouraged to upgrade to this release. For source downloads of PHP 5.4.20 please visit our downloads page: http://www.php.net/downloads.php Windows binaries can

php-general Digest 18 Sep 2013 09:20:48 -0000 Issue 8366

2013-09-18 Thread php-general-digest-help
php-general Digest 18 Sep 2013 09:20:48 - Issue 8366 Topics (messages 322076 through 322082): Re: Resolving a PHP Notice Error 322076 by: Daniel Brown 322077 by: Sebastian Krebs assign database result to iinput text box 322078 by: iccsi high traffic websites

[PHP] high traffic websites

2013-09-18 Thread Negin Nickparsa
In general, what are the best ways to handle high traffic websites? VPS(clouds)? web analyzers? dedicated servers? distributed memory cache? Sincerely Negin Nickparsa

Re: [PHP] high traffic websites

2013-09-18 Thread Sebastian Krebs
2013/9/18 Negin Nickparsa nickpa...@gmail.com In general, what are the best ways to handle high traffic websites? VPS(clouds)? web analyzers? dedicated servers? distributed memory cache? Yes :) But seriously: That is a topic most of us spent much time to get into it. You can explain it

Re: [PHP] high traffic websites

2013-09-18 Thread Negin Nickparsa
Thank you Sebastian..actually I will already have one if qualified for the job. Yes, and I may fail to handle it that's why I asked for guidance. I wanted some tidbits to start over. I have searched through yslow, HTTtrack and others. I have searched through php list in my email too before asking

Re: [PHP] high traffic websites

2013-09-18 Thread Camilo Sperberg
and others. I have searched through php list in my email too before asking this question. it is kind of beneficial for all people and not has been asked directly. Sincerely Negin Nickparsa On Wed, Sep 18, 2013 at 10:45 AM, Sebastian Krebs krebs@gmail.comwrote: 2013/9/18

[PHP] Re: assign database result to iinput text box

2013-09-18 Thread Maciek Sokolewicz
On 18-9-2013 7:33, iccsi wrote: I have following html code to show my input text box and php to connect server and select result from database server. I would like to know how I can I use php to assign the value to my input text. Your help and information is great appreciated, Regards, Hi

Re: [PHP] high traffic websites

2013-09-18 Thread Negin Nickparsa
tidbits to start over. I have searched through yslow, HTTtrack and others. I have searched through php list in my email too before asking this question. it is kind of beneficial for all people and not has been asked directly. Sincerely Negin Nickparsa On Wed, Sep 18, 2013 at 10

[PHP] No MIME-Type in imap_fetch_overview()

2013-09-18 Thread Domain nikha . org
Hello all, im posting this here, because the bug report system of php.net is not right place for my problem. It's not a bug, but a wish - an I found there no wishlist option at all. I'm running my own webmail-client, written in PHP. It is stable, fast and pretty, showing the full power

Re: [PHP] high traffic websites

2013-09-18 Thread Sebastian Krebs
yslow, HTTtrack and others. I have searched through php list in my email too before asking this question. it is kind of beneficial for all people and not has been asked directly. Sincerely Negin Nickparsa On Wed, Sep 18, 2013 at 10:45 AM, Sebastian Krebs krebs@gmail.com

Re: [PHP] high traffic websites

2013-09-18 Thread Stuart Dallas
with bulk of data. Your question is impossible to answer efficiently without profiling. You need to know what PHP is doing in those 200ms before you can target your optimisations for maximum effect. I use xdebug to produce trace files. From there I can see exactly what is taking the most amount

Re: [PHP] high traffic websites

2013-09-18 Thread Negin Nickparsa
for guidance. I wanted some tidbits to start over. I have searched through yslow, HTTtrack and others. I have searched through php list in my email too before asking this question. it is kind of beneficial for all people and not has been asked directly. Sincerely Negin Nickparsa

Re: [PHP] high traffic websites

2013-09-18 Thread Camilo Sperberg
On Sep 18, 2013, at 14:26, Haluk Karamete halukkaram...@gmail.com wrote: I recommend OPCache, which is already included in PHP 5.5. Camilo, I'm just curious about the disadvantageous aspects of OPcache. My logic says there must be some issues with it otherwise it would have come

Re: [PHP] high traffic websites

2013-09-18 Thread Sebastian Krebs
2013/9/18 Camilo Sperberg unrea...@gmail.com On Sep 18, 2013, at 14:26, Haluk Karamete halukkaram...@gmail.com wrote: I recommend OPCache, which is already included in PHP 5.5. Camilo, I'm just curious about the disadvantageous aspects of OPcache. My logic says there must be some

Re: [PHP] Re: assign database result to iinput text box

2013-09-18 Thread ITN Network
?php $username = root; $password = myPassword; $hostname = localhost; //connection to the database $dbhandle = mysql_connect($hostname, $username, $password) or die(Unable to connect to MySQL); echo Connected to MySQLbr; //select a database to work with $selected = mysql_select_db(iccsimd

php-general Digest 17 Sep 2013 19:38:29 -0000 Issue 8365

2013-09-17 Thread php-general-digest-help
php-general Digest 17 Sep 2013 19:38:29 - Issue 8365 Topics (messages 322075 through 322075): Resolving a PHP Notice Error 322075 by: Ron Piggott Administrivia: To subscribe to the digest, e-mail: php-general-digest-subscr...@lists.php.net To unsubscribe from the digest

Re: [PHP] Resolving a PHP Notice Error

2013-09-17 Thread Daniel Brown
On Tue, Sep 17, 2013 at 3:38 PM, Ron Piggott ron.pigg...@actsministries.org wrote: I am wanting to establish a default sort by preference when the user hasn’t specified one. I setup to test this with: ?php if ( !is_set( $sort_by_preference ) ) { Did you create a function is_set

[PHP] Resolving a PHP Notice Error

2013-09-17 Thread Ron Piggott
I am wanting to establish a default sort by preference when the user hasn’t specified one. I setup to test this with: ?php if ( !is_set( $sort_by_preference ) ) { $sort_by_preference = government_wording; } ? But I am receiving a Notice error: Notice: Undefined variable

Re: [PHP] Resolving a PHP Notice Error

2013-09-17 Thread Sebastian Krebs
2013/9/17 Ron Piggott ron.pigg...@actsministries.org I am wanting to establish a default sort by preference when the user hasn’t specified one. I setup to test this with: ?php if ( !is_set( $sort_by_preference ) ) { $sort_by_preference = government_wording; } ? But I am

[PHP] assign database result to iinput text box

2013-09-17 Thread iccsi
I have following html code to show my input text box and php to connect server and select result from database server. I would like to know how I can I use php to assign the value to my input text. Your help and information is great appreciated, Regards, Iccsi, INPUT type=text name=Mytxt id

php-general Digest 15 Sep 2013 21:41:11 -0000 Issue 8364

2013-09-15 Thread php-general-digest-help
php-general Digest 15 Sep 2013 21:41:11 - Issue 8364 Topics (messages 322074 through 322074): Re: PHP Dependency Injector 322074 by: marco.behnke.biz Administrivia: To subscribe to the digest, e-mail: php-general-digest-subscr...@lists.php.net To unsubscribe from

Re: [PHP] PHP Dependency Injector

2013-09-15 Thread ma...@behnke.biz
Twitter: www.twitter.com/js_scatularo Web: www.sebastianscatularo.com.ar -- Marco Behnke Dipl. Informatiker (FH), SAE Audio Engineer Diploma Zend Certified Engineer PHP 5.3 Tel.: 0174 / 9722336 e-Mail: ma...@behnke.biz Softwaretechnik Behnke Heinrich-Heine-Str. 7D 21218 Seevetal http://www.behnke.biz

php-general Digest 14 Sep 2013 11:42:33 -0000 Issue 8363

2013-09-14 Thread php-general-digest-help
php-general Digest 14 Sep 2013 11:42:33 - Issue 8363 Topics (messages 322072 through 322073): Re: Ini files for CLI only on non Win32 platform 322072 by: Kevin Kinsey 322073 by: Richard Quadling Administrivia: To subscribe to the digest, e-mail: php-general-digest

Re: [PHP] Ini files for CLI only on non Win32 platform

2013-09-14 Thread Richard Quadling
On 13 September 2013 20:06, Kevin Kinsey k...@daleco.biz wrote: Date: Fri, 13 Sep 2013 11:40:27 +0100 From: Richard Quadling rquadl...@gmail.com To: PHP General list php-general@lists.php.net Subject: [PHP] Ini files for CLI only on non Win32 platform. I've got an instance of PHP

php-general Digest 13 Sep 2013 10:40:53 -0000 Issue 8362

2013-09-13 Thread php-general-digest-help
php-general Digest 13 Sep 2013 10:40:53 - Issue 8362 Topics (messages 322069 through 322071): Re: PHP CLI setting cooked terminal mode 322069 by: Stuart Dallas 322070 by: Alain Williams Ini files for CLI only on non Win32 platform. 322071 by: Richard Quadling

[PHP] Ini files for CLI only on non Win32 platform.

2013-09-13 Thread Richard Quadling
Hi. I've got an instance of PHP that is looking for additional ini files in /etc/php.d This seems to work well. I now need to make one of the ini files only accessible if the SAPI is CGI. So, I renamed the file ... mv /etc/php.d/my.ini /etc/php.d/my-cgi.ini If I do a ... php --ini I still

Re: [PHP] Ini files for CLI only on non Win32 platform

2013-09-13 Thread Kevin Kinsey
Date: Fri, 13 Sep 2013 11:40:27 +0100 From: Richard Quadling rquadl...@gmail.com To: PHP General list php-general@lists.php.net Subject: [PHP] Ini files for CLI only on non Win32 platform. I've got an instance of PHP that is looking for additional ini files in /etc/php.d This seems to work well

php-general Digest 11 Sep 2013 16:37:45 -0000 Issue 8361

2013-09-11 Thread php-general-digest-help
php-general Digest 11 Sep 2013 16:37:45 - Issue 8361 Topics (messages 322066 through 322068): Hey, I have a full time PHP developer position in Chicago! 322066 by: Steve Gadlin 322067 by: Matt Giddings PHP CLI setting cooked terminal mode 322068 by: Alain Williams

[PHP] PHP CLI setting cooked terminal mode

2013-09-11 Thread Alain Williams
Hi, I am running a PHP script at the command line and piping the output through less: ./myScript | less Since less is an interactive program it puts the terminal into 'raw' mode so that it can read characters one at a time. However, when I do the above I find that the commands that I type

Re: [PHP] PHP CLI setting cooked terminal mode

2013-09-11 Thread Alain Williams
. -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 668 0256 http://www.phcomp.co.uk/ Parliament Hill Computers Ltd. Registration Information: http://www.phcomp.co.uk/contact.php #include std_disclaimer.h -- PHP General Mailing

Re: [PHP] PHP CLI setting cooked terminal mode

2013-09-11 Thread Stuart Dallas
On 11 Sep 2013, at 17:37, Alain Williams a...@phcomp.co.uk wrote: Hi, I am running a PHP script at the command line and piping the output through less: ./myScript | less Since less is an interactive program it puts the terminal into 'raw' mode so that it can read characters one

php-general Digest 10 Sep 2013 13:17:10 -0000 Issue 8360

2013-09-10 Thread php-general-digest-help
php-general Digest 10 Sep 2013 13:17:10 - Issue 8360 Topics (messages 322061 through 322065): Re: Which function returns a correct ISO8601 date? 322061 by: Alessandro Pellizzari 322064 by: Simon Schick char set ? 322062 by: georg chambert 322063 by: Ashley

[PHP] transferring iis7, php5, mysql project to another server

2013-09-10 Thread Harrison, Roberto
applicationHost.config redirection.config Arachnophilia folder MySQL folder php folder phpdebug folder wwwroot folder Thanks in advance. Roberto Harrison, MLIS Technology Support Librarian Medical College of Wisconsin Libraries Link.Learn.Lead . On 9/3/13 8:31 AM, Stuart Dallas stu...@3ft9.com

Re: [PHP] Hey, I have a full time PHP developer position in Chicago!

2013-09-10 Thread Matt Giddings
Sorry I can't relocate at the time. Thanks for sending me the notification though. : ) Matt On Tue, Sep 10, 2013 at 10:41 AM, Steve Gadlin st...@blewt.com wrote: Howdy. My name is Steve, and I run the web department for Weigel Broadcasting in Chicago. We're looking for a senior-level PHP

[PHP] Hey, I have a full time PHP developer position in Chicago!

2013-09-10 Thread Steve Gadlin
Howdy. My name is Steve, and I run the web department for Weigel Broadcasting in Chicago. We're looking for a senior-level PHP developer to add to our team. This is a full time gig with benefits. As it's an in-house thing, we're happy to meet with people outside Chicago if they're willing

php-general Digest 7 Sep 2013 12:47:05 -0000 Issue 8359

2013-09-07 Thread php-general-digest-help
php-general Digest 7 Sep 2013 12:47:05 - Issue 8359 Topics (messages 322060 through 322060): Which function returns a correct ISO8601 date? 322060 by: Simon Schick Administrivia: To subscribe to the digest, e-mail: php-general-digest-subscr...@lists.php.net To unsubscribe

[PHP] Which function returns a correct ISO8601 date?

2013-09-07 Thread Simon Schick
formats (with and without colon) valid for ISO8601, or is the documentation for the method date() wrong? Bye, Simon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Which function returns a correct ISO8601 date?

2013-09-07 Thread Alessandro Pellizzari
://en.wikipedia.org/wiki/ISO_8601#Time_zone_designators Bye. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] char set ?

2013-09-07 Thread georg chambert
This Q is possibly rather HTML (is there a good list for that...) anyways; Im in Sweden, and have done som pages with Swedish text, however our special (weird) characters åäö comes out wrong when displayd in browser, would be nice if I could tag the text and keep the file as is rather than

Re: [PHP] char set ?

2013-09-07 Thread Ashley Sheridan
if I could tag the text and keep the file as is rather than changing the file format of the text (and encode the characters with some double/prefix notation, which I guess would be the main stream anyone ? regards Georg Save PHP script as UTF8, and make sure you output UTF8 headers

Re: [PHP] Re: Which function returns a correct ISO8601 date?

2013-09-07 Thread Simon Schick
, fitting to the format defined in the constant DateTime::ATOM. Are both formats (with and without colon) valid for ISO8601, or is the documentation for the method date() wrong? Yes: http://en.wikipedia.org/wiki/ISO_8601#Time_zone_designators Bye. -- PHP General Mailing List (http

php-general Digest 6 Sep 2013 07:24:11 -0000 Issue 8358

2013-09-06 Thread php-general-digest-help
php-general Digest 6 Sep 2013 07:24:11 - Issue 8358 Topics (messages 322047 through 322059): Re: Static utility class? 322047 by: Micky Hulse 322048 by: Robert Cummings 322049 by: Micky Hulse PHP Dependency Injector 322050 by: Juan Sebastian Scatularo

[PHP] Re: PHP-5.5.2 +opcache segfaults with Piwik

2013-09-06 Thread Jan Ehrhardt
Grant in php.general (Thu, 5 Sep 2013 03:47:55 -0700): I've tried php-5.5.2 and 5.5.3 but both segfault with piwik unless the opcache is disabled. Someone filed a piwik bug but was told it's a php bug: http://dev.piwik.org/trac/ticket/4093 Is this a known issue? Is there anything I can do

php-general Digest 5 Sep 2013 10:48:00 -0000 Issue 8357

2013-09-05 Thread php-general-digest-help
php-general Digest 5 Sep 2013 10:48:00 - Issue 8357 Topics (messages 322039 through 322046): Re: Static utility class? 322039 by: Stephen 322040 by: Micky Hulse 322043 by: Rodrigo Santos 322044 by: Micky Hulse 322045 by: Robert Cummings Re: message

Re: [PHP] Static utility class?

2013-09-05 Thread Robert Cummings
explore the use of static methods/properties/variables/other. A part of me just wants to learn more about PHP OOP, and using static members is something I've not explored much. Seems like a simple functional utility class would be a good time to play and learn more. :D Just be careful to organize your

[PHP] Re: PHP-5.5.2 +opcache segfaults with Piwik

2013-09-05 Thread Grant
I've tried php-5.5.2 and 5.5.3 but both segfault with piwik unless the opcache is disabled. Someone filed a piwik bug but was told it's a php bug: http://dev.piwik.org/trac/ticket/4093 - Grant Is this a known issue? - Grant Is there anything I can do? - Grant -- PHP General Mailing

Re: [PHP] Static utility class?

2013-09-05 Thread Micky Hulse
the pattern name: https://gist.github.com/mhulse/6441525 Much appreciated. :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Static utility class?

2013-09-05 Thread Micky Hulse
. :) Cheers, Micky -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Dependency Injector

2013-09-05 Thread Bastien Koert
Jee, that should have been a friday comment...how does your dic standout On Thu, Sep 5, 2013 at 4:06 PM, Sorin Badea sorin.bade...@gmail.com wrote: There are few tutorials about home made dic. How does your dic stand out from the crowd ? Regards. On Thu, Sep 5, 2013 at 10:56 PM, Juan

Re: [PHP] PHP Dependency Injector

2013-09-05 Thread Juan Sebastian Scatularo
Sorry guys if disturbed. 2013/9/5 Bastien Koert phps...@gmail.com Jee, that should have been a friday comment...how does your dic standout On Thu, Sep 5, 2013 at 4:06 PM, Sorin Badea sorin.bade...@gmail.comwrote: There are few tutorials about home made dic. How does your dic stand out

Re: [PHP] PHP Dependency Injector

2013-09-05 Thread Marc Guay
Thanks Sorin, I will do that and I will have more care the next time. You have no reason to apologize. You shared a project you made by yourself, way to go. Marc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Dependency Injector

2013-09-05 Thread David Harkness
On Thu, Sep 5, 2013 at 1:40 PM, Juan Sebastian Scatularo sebastianscatul...@gmail.com wrote: Thanks Sorin, I will do that and I will have more care the next time. You can also check out Pimple [1] by the creator of the Symfony Framework. Peace, David [1] http://pimple.sensiolabs.org/

Re: [PHP] PHP Dependency Injector

2013-09-05 Thread Sorin Badea
There are few tutorials about home made dic. How does your dic stand out from the crowd ? Regards. On Thu, Sep 5, 2013 at 10:56 PM, Juan Sebastian Scatularo sebastianscatul...@gmail.com wrote: Hello people, I want to share with you a simple and small Dependency Injector made for me.

Re: [PHP] PHP Dependency Injector

2013-09-05 Thread Sorin Badea
Juan, the problem with this list is that that there are too damn many dumb questions. You did something nice but it doesn't stand out. You can check Symfony2 DiC. You can use it as a stand alone component. On Thu, Sep 5, 2013 at 11:30 PM, Juan Sebastian Scatularo sebastianscatul...@gmail.com

Re: [PHP] Static utility class?

2013-09-05 Thread Robert Cummings
contained in this message and any attached documents is considered confidential and legally protected. This message is intended solely for the addressee(s). Disclosure, copying, and distribution are prohibited unless authorized. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] PHP Dependency Injector

2013-09-05 Thread Paul M Foster
://quillandmouse.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Dependency Injector

2013-09-05 Thread Juan Sebastian Scatularo
Thanks Sorin, I will do that and I will have more care the next time. Regards 2013/9/5 Sorin Badea sorin.bade...@gmail.com Juan, the problem with this list is that that there are too damn many dumb questions. You did something nice but it doesn't stand out. You can check Symfony2 DiC. You

[PHP] PHP Dependency Injector

2013-09-05 Thread Juan Sebastian Scatularo
Hello people, I want to share with you a simple and small Dependency Injector made for me. https://github.com/abloos/Sofia Regards -- Facebook: www.facebook.com/JuanSebastianScatularo Twitter: www.twitter.com/js_scatularo Web: www.sebastianscatularo.com.ar

php-general Digest 4 Sep 2013 09:21:22 -0000 Issue 8355

2013-09-04 Thread php-general-digest-help
php-general Digest 4 Sep 2013 09:21:22 - Issue 8355 Topics (messages 322028 through 322033): Re: refernces, arrays, and why does it take up so much memory? [SOLVED] 322028 by: Daevid Vincent 322029 by: Stuart Dallas 322030 by: Daevid Vincent 322031 by: Daevid

php-general Digest 4 Sep 2013 22:25:25 -0000 Issue 8356

2013-09-04 Thread php-general-digest-help
php-general Digest 4 Sep 2013 22:25:25 - Issue 8356 Topics (messages 322034 through 322038): Static utility class? 322034 by: Micky Hulse 322035 by: Stephen 322036 by: David Harkness 322037 by: Micky Hulse message to user after complete POST 322038

Re: [PHP] refernces, arrays, and why does it take up so much memory? [SOLVED]

2013-09-04 Thread Stuart Dallas
On 4 Sep 2013, at 00:03, Daevid Vincent dae...@daevid.com wrote: -Original Message- From: Stuart Dallas [mailto:stu...@3ft9.com] Sent: Tuesday, September 03, 2013 2:37 PM To: Daevid Vincent Cc: php-general@lists.php.net; 'Jim Giner' Subject: Re: [PHP] refernces, arrays, and why does

[PHP] Static utility class?

2013-09-04 Thread Micky Hulse
Hi all! Example code: https://gist.github.com/mhulse/6441525 Goal: I want to have a utility class that contain utility methods which should have the option of being called multiple times on a page. I think my main goal is to avoid having to new things ... I don't really need to create an

Re: [PHP] Static utility class?

2013-09-04 Thread Stephen
in your various PHP source files so you only deal with loading the library file in the first file in which it is needed. It would not be loaded from other files. Instantiate your static variables in the library file. Again, so that only happens once. -- Stephen -- PHP General Mailing List

Re: [PHP] Static utility class?

2013-09-04 Thread David Harkness
the above code? The main problem caused by static methods is testability. Mocking or stubbing a static method requires using a PHP extension and ensuring that the original is reset whether the test passes or fails. As long as your utility methods don't perform actions you want to avoid during tests

Re: [PHP] Static utility class?

2013-09-04 Thread Micky Hulse
too far down the rabbit hole (though, this is for some simple utility functions, so refactoring things should be easy later on). I'll be sure to post real code for any follow up questions. For now, thanks to you guys, I have a ton to work with. Thanks again for the pro advice! Cheers, M -- PHP

[PHP] message to user after complete POST

2013-09-04 Thread iccsi
to users. If not, it seems that the only solution is jQuery, since it has success function that jQuery call after POST. Your help and information is great appreciated, Regards, Iccsi, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Static utility class?

2013-09-04 Thread Stephen
with the design concepts of OOP. But as a first step in moving from procedural code to OOP, which is learning the syntax, go for it. -- Stephen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Static utility class?

2013-09-04 Thread Micky Hulse
Thanks Stephen! I really appreciate the help! :) In my PHP ventures over the years, I haven't made much use of static variables/methods/properties ... I was thinking they might be useful for this one bit of code, but based on your feedback (and David's) I think I'll be heading down a different

Re: [PHP] message to user after complete POST

2013-09-04 Thread Rodrigo Santos
to users. If not, it seems that the only solution is jQuery, since it has success function that jQuery call after POST. Your help and information is great appreciated, Regards, Iccsi, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] message to user after complete POST

2013-09-04 Thread iccsi
solution is jQuery, since it has success function that jQuery call after POST. Your help and information is great appreciated, Regards, Iccsi, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net

Re: [PHP] Static utility class?

2013-09-04 Thread Rodrigo Santos
Hi, first, sorry for the bad English. Yes, at least, as far as I know, this is the perfect way to do what you want to do. Think like this: when you instanciate a class, you are allocating memory. If you don't need any information stored, then you don't need to allocate memory, right? So, it's is

Re: [PHP] Static utility class?

2013-09-04 Thread Micky Hulse
/variables/other. A part of me just wants to learn more about PHP OOP, and using static members is something I've not explored much. Seems like a simple functional utility class would be a good time to play and learn more. :D Just be careful to organize your utility methods by by meaning. Don't put

php-general Digest 3 Sep 2013 13:31:21 -0000 Issue 8354

2013-09-03 Thread php-general-digest-help
php-general Digest 3 Sep 2013 13:31:21 - Issue 8354 Topics (messages 322024 through 322027): Re: refernces, arrays, and why does it take up so much memory? 322024 by: Jim Giner 322025 by: Daevid Vincent 322026 by: Jim Giner 322027 by: Stuart Dallas

Re: [PHP] Re: refernces, arrays, and why does it take up so much memory?

2013-09-03 Thread Jim Giner
On 9/3/2013 1:09 AM, Daevid Vincent wrote: -Original Message- From: Jim Giner [mailto:jim.gi...@albanyhandball.com] Sent: Monday, September 02, 2013 8:14 PM To: php-general@lists.php.net Subject: [PHP] Re: refernces, arrays, and why does it take up so much memory? On 9/2/2013 9:30 PM

<    1   2   3   4   5   6   7   8   9   10   >