Re: [PHP] Static methods vs. plain functions

2013-09-19 Thread Sebastian Krebs
2013/9/19 Simon Dániel simondan...@gmail.com 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

Re: [PHP] Static methods vs. plain functions

2013-09-19 Thread Sebastian Krebs
making standalone functions unless absolutely necessary. On Thu, Sep 19, 2013 at 12:44 PM, Sebastian Krebs krebs@gmail.comwrote: 2013/9/19 Simon Dániel simondan...@gmail.com Hi, I am working on an OOP project, and cannot decide which way to follow when I have to write a simple

Re: [PHP] high traffic websites

2013-09-18 Thread Sebastian Krebs
traffic ;) I wont say, that you cannot be successfull, but you should start with an effort you can handle. Regards, Sebastian Sincerely Negin Nickparsa -- github.com/KingCrunch

Re: [PHP] high traffic websites

2013-09-18 Thread Sebastian Krebs
...@gmail.comwrote: On Sep 18, 2013, at 09:38, Negin Nickparsa nickpa...@gmail.com wrote: 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

Re: [PHP] high traffic websites

2013-09-18 Thread Sebastian Krebs
issues with it otherwise it would have come already enabled. Sent from iPhone On Sep 18, 2013, at 2:20 AM, Camilo Sperberg unrea...@gmail.com wrote: On Sep 18, 2013, at 09:38, Negin Nickparsa nickpa...@gmail.com wrote: Thank you Sebastian..actually I will already have one

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

Re: [PHP] PHP Dependency Injector

2013-09-05 Thread Juan Sebastian Scatularo
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. https://github.com/abloos/Sofia Regards -- Facebook

Re: [PHP] PHP Dependency Injector

2013-09-05 Thread Juan Sebastian Scatularo
can use it as a stand alone component. On Thu, Sep 5, 2013 at 11:30 PM, Juan Sebastian Scatularo sebastianscatul...@gmail.com wrote: 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

[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

Re: [PHP] Alternate list for eclipse ide support?

2013-08-24 Thread Sebastian Krebs
interest here. Regards, Sebastian -- Lester Caine - G8HFL - Contact - http://lsces.co.uk/wiki/?page=**contacthttp://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital

Re: [PHP] Alternate list for eclipse ide support?

2013-08-24 Thread Sebastian Krebs
2013/8/24 Lester Caine les...@lsces.co.uk Sebastian Krebs wrote: With composer being pushed as the 'in way to go' and not being able to see how to get some code relating to bootstrap and smarty development because the links only show composer I've downloaded a plug-in for eclipse

Re: [PHP] Re: PHP vs JAVA

2013-08-22 Thread Sebastian Krebs
2013/8/22 David Harkness davi...@highgearmedia.com On Wed, Aug 21, 2013 at 7:56 PM, Curtis Maurand cur...@maurand.comwrote: Sebastian Krebs wrote: Actually the problem is, that the dot . is already in use. With $foo.bar() you cannot tell, if you want to call the method bar

Re: [PHP] Re: PHP vs JAVA

2013-08-21 Thread Sebastian Krebs
2013/8/21 georg chambert georg.chamb...@telia.com Hi, my I shake the subject a little; Ive been doing some PHP and found it ok to work with not so much fuss, but that was PHP4, what about PHP5 ? Dont really checked the difference but made a short-scan and found that it had be screwed

Re: [PHP] Re: PHP vs JAVA

2013-08-21 Thread Sebastian Krebs
2013/8/21 Curtis Maurand cur...@maurand.com Sorry in advance for the top post. Use the right tool for the Job. I've use Java, C# and PHP. 1. I hate the Perl-like object calls in PHP. I'd rather use . notation in C# and Java. It saves a lot of wear and tear on my left pinky finger.

Re: [PHP] PHP vs JAVA

2013-08-20 Thread Sebastian Krebs
2013/8/20 Tedd Sperling t...@sperling.com On Aug 20, 2013, at 10:04 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: Is he possibly getting confused with Javascript? Thanks, Ash No, this guy is smarter than that -- he's pretty sharp -- so I listen to what he has to say. Here's

Re: [PHP] PHP vs JAVA

2013-08-20 Thread Sebastian Krebs
2013/8/20 Tedd Sperling t...@sperling.com On Aug 20, 2013, at 10:29 AM, Sebastian Krebs krebs@gmail.com wrote: Just tell your teacher: Java isn't more popular than PHP as _web_-language ;) I think too, that he actually meant javascript, which is indeed a very popular client-side

Re: [PHP] PHP vs JAVA

2013-08-20 Thread Sebastian Krebs
2013/8/20 Lester Caine les...@lsces.co.uk Sebastian Krebs wrote: 1. He's not my teacher -- he is a fellow teacher AND a smart one! He knows the difference between Java and JavaScript. OKOK, sorry -_- But @topic: For example see http://w3techs.com/**technologies/overview

Re: [PHP] PHP vs JAVA

2013-08-20 Thread Sebastian Krebs
2013/8/20 Andy McKenzie amckenz...@gmail.com I'll chime in on this one. I've been job hunting recently, and I can say that while I've seen a lot of people asking for Java experience, I'm not sure I've seen a single posting asking specifically for PHP. There've been a few looking for Drupal,

Re: [PHP] PHP vs JAVA

2013-08-20 Thread Sebastian Krebs
2013/8/20 Andy McKenzie amckenz...@gmail.com On Tue, Aug 20, 2013 at 3:18 PM, Dan Munro d...@danmunro.com wrote: 1. There are no statement terminators. Lose your indentation for ANY reason and your program is well and truly screwed, in ways you can't imagine. 2. Python programs

Re: [PHP] PHP vs JAVA

2013-08-20 Thread Sebastian Krebs
2013/8/20 Steven Staples sstap...@mnsi.net My recent question was simply an attempt to get documentation to support which server-side Web Language is the most popular. Both PHP and Java can be used server-side. I also realize that Java is used for native Android because I also teach

Re: [PHP] how old is this version of PHP?

2013-08-19 Thread Sebastian Krebs
time to time his codebase here. That is nothing new and I am unsure how representative his statements are. Regards, Sebastian (I am also the kind of guy who thinks quality made hand tools from the 1800s are superior to many purchased today at Lowes or Home Depot.) Thanks, Jeff Burcher

Re: [PHP] Class Auto-Assigning to Variable

2013-08-07 Thread Sebastian Krebs
2013/8/7 Brian Smither bhsmit...@gmail.com I have a situation where, for some unknown reason, where each class that finishes its __contruct{} function, that class gets automatically assigned to a variable - other than the variable I specify. Conceptually: class Hello { private $_world =

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

2013-07-24 Thread Sebastian Krebs
Hi, Just want to mention: ext/mysel is deprecated. Use MySQLi, or PDO_MYSQL instead. :) Regards, Sebastian 2013/7/24 Karl-Arne Gjersøyen karlar...@gmail.com http://www.php.net/manual/en/datetime.format.php have the solution. Sorry for asking before I look at php.net!!! Karl

Re: [PHP] I am completely lost and need an advice (beginner)

2013-07-18 Thread Sebastian Krebs
learning the syntax and writing code is just a very minor part. Its more important to know how to solve the problems (in a way, that works tomorrow too ;)) is more important. And as a side effect getting help can prevent frustration, if you are stuck in a problem ;) Regards, Sebastian -- PHP

Re: [PHP] phpdocumentor with PHP5.4

2013-07-07 Thread Sebastian Krebs
You can simply update phpdocumentor Am 07.07.2013 17:10 schrieb Lester Caine les...@lsces.co.uk: Anybody have phpdocumentor running with PHP5.4? I'm convinced that the errors my copy is throwing are due to e_strict, but I've confirmed that I have the right ini file ( all the needed extensions

Re: [PHP] phpdocumentor with PHP5.4

2013-07-07 Thread Sebastian Krebs
I meant: PhpDocumentor 2 Am 07.07.2013 17:44 schrieb les...@lsces.co.uk: It's a clean install via PEAR a couple of hours ago! Sent from my android device. -Original Message- From: Sebastian Krebs krebs@gmail.com To: Lester Caine les...@lsces.co.uk Cc: PHP General List php

Re: [PHP] phpdocumentor with PHP5.4

2013-07-07 Thread Sebastian Krebs
You can submit a pull request for that 2013/7/7 Lester Caine les...@lsces.co.uk Sebastian Krebs wrote: I meant: PhpDocumentor 2 Problem solved ... Notes on https://github.com/**phpDocumentor/phpDocumentor2https://github.com/phpDocumentor/phpDocumentor2need a little update to correct

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

2013-05-30 Thread Sebastian Krebs
2013/5/29 Matijn Woudt tijn...@gmail.com 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

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

2013-05-29 Thread Sebastian Krebs
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:06 -0700, Daevid Vincent wrote: I'm adding some minification to our

Re: [PHP] Header Keep-Alive

2013-05-27 Thread Sebastian Krebs
2013/5/27 Al n...@ridersite.org I'm trying to increase the connection timeout; but can't get it to work. Note: Keep-Alive gets repeated. I'm using: header(Connection: Keep-Alive); header(Keep-Alive: timeout=9, max=100); Set the second optional argument to true See

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

2013-05-17 Thread Sebastian Krebs
concepts of OOP as they are rudimentary. Without that one will never grasp OO Patterns (Gang of Four). Ninus. On 5/16/13, Tedd Sperling tedd.sperl...@gmail.com wrote: Thanks to both Bastien and Sebastian: While I understand that an interface is like an abstract Class, in that you

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

2013-05-16 Thread Sebastian Krebs
this idea works quite fine :D Regards, Sebastian Other than that, from my perspective interfaces are mythicode. So, if you find a good reference, please let me know. Cheers, tedd _ tedd.sperl...@gmail.com http://sperling.com On May 16, 2013, at 11:11 AM

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

2013-05-03 Thread Sebastian Krebs
2013/5/3 Daevid Vincent dae...@daevid.com -Original Message- From: Marco Behnke [mailto:ma...@behnke.biz] Sent: Friday, May 03, 2013 12:01 PM To: Daevid Vincent; php php-general@lists.php.net Subject: Re: [PHP] Need a tool to minimize HTML before storing in memecache If

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

2013-04-19 Thread Sebastian Krebs
A webpage is a file, that (usually) a browser downloads and parses. You'll do exactly the same :-) I don't know exactly, but you can try to pass the URL directly to simplexml_load_file(). If this doesn't work, download the content (for example with file_get_contents()) and pass it to

Re: [PHP] Detecting massive web hits

2013-04-12 Thread Sebastian Krebs
Nginx has builtin support for this and I assume, that there is something similar for Apache. I don't think PHP is the right tool. Am 12.04.2013 17:24 schrieb Angela Barone ang...@italian-getaways.com: Does anyone know if there's a ready-made script that detects if someone hits multiple

Re: [PHP] application level variable file

2013-03-22 Thread Sebastian Krebs
2013/3/22 inu...@gmail.com I am very new to the PHP application and would like to create a new project. I would like to have a file to save my application level variable and functions. I would like to know does PHP have any default file name and file path for this file like Web.config file

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

2013-03-18 Thread Sebastian Krebs
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 database. I have replaced them with \' and \ and everything is fine. Though this

Re: [PHP] Type of a variable in PHP

2013-03-15 Thread Sebastian Krebs
2013/3/15 Kevin Peterson qh.res...@gmail.com Have two questions - 1. How to find type of a variable in PHP. gettype(), or one of the is_*()-functions. But for me more interesting for me: Why do you _need_ this? 2. How to find the type of an array in PHP. An array is of type array :)

Re: [PHP] PHP context editor

2013-03-15 Thread Sebastian Krebs
2013/3/15 Karim Geiger gei...@b1-systems.de Hi Georg, On Thu, 2013-03-14 at 23:10 +0100, georg wrote: hello, annyone knows of some good PHP context editor freeware ? (tired of missing out on trivials like ; ) I don't know exactly what you mean by a context editor but if you want an

Re: [PHP] variable type - conversion/checking

2013-03-15 Thread Sebastian Krebs
2013/3/16 Ashley Sheridan a...@ashleysheridan.co.uk tamouse mailing lists tamouse.li...@gmail.com wrote: On Fri, Mar 15, 2013 at 4:00 PM, Ashley Sheridan a...@ashleysheridan.co.ukwrote: ** On Fri, 2013-03-15 at 04:57 -0500, tamouse mailing lists wrote: On Fri, Mar 15, 2013 at 3:55

Re: [PHP] variable type - conversion/checking

2013-03-15 Thread Sebastian Krebs
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 identical to the original string when cast back to a string, shouldn't it? (I can't try

Re: [PHP] Mystery foreach error

2013-03-13 Thread Sebastian Krebs
2013/3/14 David Harkness davi...@highgearmedia.com On Wed, Mar 13, 2013 at 4:44 PM, Angela Barone ang...@italian-getaways.comwrote: I ran across if(array_key_exists) and it seems to work. How does that differ from if(isset($states[$state]))? Hi Angela, isset() will return false for

Re: [PHP] Mystery foreach error

2013-03-13 Thread Sebastian Krebs
2013/3/14 David Harkness davi...@highgearmedia.com On Wed, Mar 13, 2013 at 5:10 PM, Sebastian Krebs krebs@gmail.comwrote: Because 'null' is the representation of nothing array_key_exists() and isset() can be treated as semantically equivalent. As I said, these functions return

Re: [PHP] Re: UNLESS Statement Equivalent

2013-03-12 Thread Sebastian Krebs
2013/3/12 Ford, Mike m.f...@leedsmet.ac.uk -Original Message- From: Maciek Sokolewicz [mailto:tula...@gmail.com] On Behalf Of Maciek Sokolewicz Sent: 11 March 2013 22:44 unless ( $a and $b ) = if ( ! ($a and $b) ) So in simple terms, just stick a ! (or the keyword

Re: [PHP] Holding datetimes in a DB.

2013-03-01 Thread Sebastian Krebs
it silently to UTC is always data-loss. So in most cases it is OK, but not in every :) You can still convert from entity-TZ to UTC to user-TZ later. Its just one additional step. Regards, Sebastian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Stupid question

2013-02-27 Thread Sebastian Krebs
2013/2/27 tamouse mailing lists tamouse.li...@gmail.com On Tue, Feb 26, 2013 at 4:41 PM, Jim Lucas li...@cmsws.com wrote: On 02/26/2013 01:27 PM, Curtis Maurand wrote: I have the following: $dsn = mysqli://$username:$password@$hostname2/$database; $options = array( 'debug' = 3,

Re: [PHP] Very Large File Splatter

2013-02-22 Thread Sebastian Krebs
in the fs-table, which could be an explanation for the behaviour you described. Regards, Sebastian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- github.com/KingCrunch

Re: [PHP] same php file, different day...worked 3-4 times in the past in the past

2013-01-20 Thread Sebastian Krebs
2013/1/20 Fred Silsbee fredsils...@yahoo.com Fatal error: Call to undefined function mysqli__connect() in /var/www/html/log_book_MySQLnew_i.php on line 116 There is an underscore _ to much: 'mysqli_connect()' phpinfo.php shows mysqli Additional .ini files parsed /etc/php.d/curl.ini,

Re: [PHP] Expansion of Apache definitions

2013-01-10 Thread Sebastian Krebs
2013/1/10 John Iliffe john.ili...@iliffe.ca I recently made a posting on the Apache users group regarding recovering the client IP address using the $_SESSION['REMOTE_ADDR'] function in PHP. I received the following caveat from another developer: -start quote

Re: [PHP] Some date() oddities

2013-01-08 Thread Sebastian Krebs
Hi, Workaround for what? The 31st of december is the first week of the ISO8601-year 2013. That has nothing to do with PHP, date(), or any warnings somebody left in the comments. Thats the way ISO8601 is defined: http://en.wikipedia.org/wiki/ISO_8601#Week_dates Regards, Sebastian 2013/1/8 Arno

Re: [PHP] Boolean type forced on string assignment inside if statement

2013-01-04 Thread Sebastian Krebs
2013/1/4 tamouse mailing lists tamouse.li...@gmail.com On Fri, Jan 4, 2013 at 1:56 AM, Sebastian Krebs krebs@gmail.com wrote: 2013/1/4 tamouse mailing lists tamouse.li...@gmail.com Bit operators are not comparing values, they're COMBINING values. Technically spoken they're comparing

Re: [PHP] Boolean type forced on string assignment inside if statement

2013-01-03 Thread Sebastian Krebs
2013/1/4 tamouse mailing lists tamouse.li...@gmail.com Bit operators and | are NOT and should NEVER be confused with Logical operators and ||: ?php /** * Bit operators in PHP */ $format = Decimal: %2d Binary: %4b\n; $a = 4; $b = 6; echo Variable \$a:\n; printf($format, $a,

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

2012-12-16 Thread Sebastian Krebs
2012/12/16 dealTek deal...@gmail.com 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 the id of the new record and

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

2012-12-16 Thread Sebastian Krebs
2012/12/17 dealTek deal...@gmail.com On Dec 16, 2012, at 10:08 AM, Sebastian Krebs krebs@gmail.com wrote: 2012/12/16 dealTek deal...@gmail.com Hi all, Noobie starting to learn oop for databases from here: https://github.com/JeffreyWay/PHP-MySQL-Database-Class/blob/master

Re: [PHP] Compile APC in PHP 5.2

2012-12-12 Thread Sebastian Krebs
Hi, You should definitely not use PHP5.2 anymore. Regards, Sebastian 2012/12/12 Alexander Diedler adied...@tecracer.de Hello, I try to get APC working for a compiled PHP 5.2.17. On this Ubuntu, we have an PHP 5.3 installed with APT-GET and a PHP 5.2 as CGI module compiled with make etc

Re: [PHP] Unset and __destruct

2012-12-07 Thread Sebastian Krebs
2012/12/6 Pierre du Plessis pie...@pcservice.co.za Hi all I searched the internet (probably not hard enough), and couldn't find a decent answer. I was wondering why, when calling unset on an object, it doesn't automatically call the __destruct method (if it exists) on the object. Thats

Re: [PHP] Session ?

2012-12-07 Thread Sebastian Krebs
2012/12/7 Jim Giner jim.gi...@albanyhandball.com On 12/7/2012 2:41 PM, Daniel Brown wrote: On Fri, Dec 7, 2012 at 2:38 PM, Jim Giner jim.gi...@albanyhandball.com wrote: On 12/7/2012 2:36 PM, Daniel Brown wrote: On Fri, Dec 7, 2012 at 2:33 PM, Jim Giner jim.gi...@albanyhandball.com

Re: [PHP] Session ?

2012-12-07 Thread Sebastian Krebs
had the same problem with a missing session var. Is there a corresponding line I need in the 'called' script? And does it matter where this line is place within the script? From your response to Sebastian, I'm not sure it will work. They need to be subdomains of the same domain

Re: [PHP] Re: shared memory on php servers?

2012-12-04 Thread Sebastian Krebs
Hi, Why don't you use a database? Seems more appropiate here. At least SQLite should fit ;) Regards, Sebastian 2012/12/4 rene7705 rene7...@gmail.com I would also like to hear any thoughts on how to efficiently add, delete and edit data in this large and deep array structure from multiple

Re: [PHP] Re: shared memory on php servers?

2012-12-04 Thread Sebastian Krebs
memcached and redis are separate daemons so you can access them from multiple servers. Also, as Sebastian says, a database is another option unless you have a good reason to want the data in shared memory rather than a DB. Beside that you can have Databases in memory too, like SQLite on a tmpfs-mount

Re: [PHP] Re: Switch - Case Statement Questions

2012-11-19 Thread Sebastian Krebs
2012/11/19 Tim Streater t...@clothears.org.uk On 18 Nov 2012 at 14:44, Jim Giner jim.gi...@albanyhandball.com wrote: 2. Using Switch {ALWAYS FIRST CASE!!!} //$boxes = 1; //switch ($count) { //case ($count 14): //$boxes = 3; //

Re: [PHP] Re: Switch - Case Statement Questions

2012-11-17 Thread Sebastian Krebs
2012/11/17 Tim Streater t...@clothears.org.uk On 17 Nov 2012 at 01:33, Iñigo Medina imed...@grosshat.com wrote: On Fri, 16 Nov 2012, Jim Giner wrote: Maybe I'm way out of touch, but when I look at php.net for the syntax of the switch statement I see: switch($var){ case (value):

Re: [PHP] Re: Switch - Case Statement Questions

2012-11-17 Thread Sebastian Krebs
2012/11/17 Andrew Ballard aball...@gmail.com On Nov 16, 2012 10:24 PM, tamouse mailing lists tamouse.li...@gmail.com wrote: On Fri, Nov 16, 2012 at 12:41 PM, Sebastian Krebs krebs@gmail.com wrote: Beside this it can be rewritten as switch ((int) (($count-1) / 7) { case 0

Re: [PHP] Re: Switch - Case Statement Questions

2012-11-16 Thread Sebastian Krebs
this it can be rewritten as switch ((int) (($count-1) / 7) { case 0: // 1-7 case 1: // 8 - 14 default: // above 15 } Regards, Sebastian -- Cheers -- Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- github.com/KingCrunch

Re: [PHP] base64_decode

2012-10-02 Thread Sebastian Krebs
Am 02.10.2012 19:27, schrieb John Taylor-Johnston: Without anyone infecting their machines, can someone tell me what this is? I found a phishing site on my DreamHost server. DreamHost has been very helpful. We found a file containing this code. What is it? What does it contain? ?php

Re: [PHP] Basic Statistics

2012-10-01 Thread Sebastian Krebs
Hi, Something like http://php.net/ref.stats ? Regards, Sebastian Am 01.10.2012 18:37, schrieb George R Smith: Can anyone recommend a basic php stat package, easy to install and use. Just basic stuff like mean, median, range std dev etc thanks george -- PHP General Mailing List (http

Re: [PHP] Static constructor support

2012-09-27 Thread Sebastian Krebs
2012/9/27 Yves Goergen nospam.l...@unclassified.de On 26.09.2012 23:38 CE(S)T, Stuart Dallas wrote: On 26 Sep 2012, at 22:29, Yves Goergen nospam.l...@unclassified.de wrote: My class is a debug helper class, that can write trace messages and so on. I have added a random per-request tag

Re: [PHP] Static constructor support

2012-09-27 Thread Sebastian Krebs
2012/9/26 Stuart Dallas stu...@3ft9.com On 26 Sep 2012, at 22:29, Yves Goergen nospam.l...@unclassified.de wrote: On 26.09.2012 23:20 CE(S)T, Stuart Dallas wrote: If you mean what C# calls a static constructor, no that does not exist in PHP, but you can fake it. Okay, thank you for

Re: [PHP] Re: PHP as Application Server

2012-09-27 Thread Sebastian Krebs
it :) On the other side someone must maintain it and someone must make sure, that it is secure and efficient. This resources should not taken from the core-team. Regards, Sebastian 2012/9/27 Alessandro Pellizzari a...@amiran.it Il Thu, 27 Sep 2012 12:28:00 +0200, Maciej Liżewski ha scritto: Sure

Re: [PHP] about PHP's filter_var function

2012-09-21 Thread Sebastian Krebs
Am 20.09.2012 19:54, schrieb Jim Lucas: On 09/20/2012 10:00 AM, Matijn Woudt wrote: On Thu, Sep 20, 2012 at 6:03 PM, Jim Lucasli...@cmsws.com wrote: On 09/20/2012 02:35 AM, Sebastian Krebs wrote: Plaseplease update... 5.1.6 is from 2006! I read the it's required, but I can't imagine

Re: [PHP] about PHP's filter_var function

2012-09-20 Thread Sebastian Krebs
and 5.4). However: Regarding your concrete problem I guess you can use ip2long() if (ip2long($ip)) { } else { } Regards, Sebastian Am 20.09.2012 11:14, schrieb lx: Hello: I want to use filter_var function by this way: $ip = 192.168.0.1

Re: [PHP] about PHP's filter_var function

2012-09-20 Thread Sebastian Krebs
Am 20.09.2012 18:03, schrieb Jim Lucas: On 09/20/2012 02:35 AM, Sebastian Krebs wrote: Plaseplease update... 5.1.6 is from 2006! I read the it's required, but I can't imagine _anything_ that it's worth it to use such an extremely outdated, unsupported and therefore insecure and inefficient

Re: [PHP] about PHP's filter_var function

2012-09-20 Thread Sebastian Krebs
Am 20.09.2012 18:17, schrieb Maciek Sokolewicz: On 20-09-2012 18:03, Jim Lucas wrote: On 09/20/2012 02:35 AM, Sebastian Krebs wrote: Plaseplease update... 5.1.6 is from 2006! I read the it's required, but I can't imagine _anything_ that it's worth it to use such an extremely outdated

Re: [PHP] PHP array unions

2012-09-12 Thread Sebastian Krebs
to go. Regards, Sebastian Am 12.09.2012 17:10, schrieb Adam Richardson: Hi! So, PHP has the '+' array operator, which forms the union of arrays, but it does so by key. What I'm looking for is a function that forms the union of arrays based on value. Currently, I use code like the following

Re: [PHP] away from Fedora linux for a while and now this ...HELP

2012-08-25 Thread Sebastian Krebs
Am 25.08.2012 13:04, schrieb Matijn Woudt: On Sat, Aug 25, 2012 at 1:54 AM, Sebastian Krebs krebs@gmail.com wrote: Am 25.08.2012 01:41, schrieb Fred Silsbee: Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0 Fatal error: Unknown: Failed opening required

Re: [PHP] A quick ereg translation

2012-08-25 Thread Sebastian Krebs
Am 25.08.2012 23:06, schrieb Lester Caine: ereg('body(.*)/body', $phpinfo, $regs); Pulls the body of phpinfo() to use with a tidy header of other system information, but I'm struggling to get a pcre alternative. Anybody already cracked this one? usually it's just fine to wrap the pattern

Re: [PHP] away from Fedora linux for a while and now this ...HELP

2012-08-24 Thread Sebastian Krebs
it can be done in Fedora. Debian uses usermod, but as far as I know it's a debian tool(?). Regards, Sebastian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Cost of redirect and site domain switch? Good Practice/ Bad Practice / Terrible Practice

2012-08-20 Thread Sebastian Krebs
2012/8/20 Jim Giner jim.gi...@albanyhandball.com On 8/20/2012 12:19 AM, Jim Lucas wrote: On 8/17/2012 6:35 PM, Jim Giner wrote: On 8/17/2012 7:16 PM, Jim Lucas wrote: You could simply remove all full domain+path URL links and replace them with absolute path urls only. turn

Re: [PHP] Cost of redirect and site domain switch? Good Practice / Bad Practice / Terrible Practice

2012-08-17 Thread Sebastian Krebs
, Sebastian Am 17.08.2012 21:35, schrieb Tristan: So, I need to change from somedomain.com to somenewdomain.com I was thinking of doing this 1) create an alias to the site somenewdomain.com to point to current server 2) run permanent 301 redirect from somedomain.com to somenewdomain.com I

Re: [PHP] Two ways to obtain an object property

2012-08-15 Thread Sebastian Krebs
). $this-isASubscriber = !empty($subscriptions); // or something like that Regards, Sebastian While this is last night's specific example, I seem to face the method-setting-variable or the method-returning-result-**directly decision quite often. Is either of these approaches preferable, or does

Re: [PHP] PHP Stats

2012-07-31 Thread Sebastian Krebs
Hi, http://w3techs.com/technologies/details/pl-php/all/all For example. Click around, nice stats there. Regards, Sebastian Am 31.07.2012 20:31, schrieb Tedd Sperling: Hi gang: Do we have anything a bit more up to date than this? http://php.net/usage.php That's five years out of date

Re: [PHP] Regex

2012-07-27 Thread Sebastian Krebs
Hi, Am 27.07.2012 19:07, schrieb Ethan Rosenberg: Dear list - I've tried everything and am still stuck. A regex that will accept numbers, letters, comma, period and no other characters This? /^[0-9a-zA-Z,.]$/ Regards, Sebastian Thanks. Ethan Rosenberg -- PHP General Mailing

Re: [PHP] Regex

2012-07-27 Thread Sebastian Krebs
Am 27.07.2012 19:54, schrieb shiplu: #[0-9a-zA-Z,\.]# You should escape out that period as it will match any character otherwise. Thanks, Ash Ash, Thats not true. In character class only meta-characters are \ ^ - [ And the dash only when it's not the first, or the last in the class.

Re: [PHP] E_STRICT safe PEAR

2012-07-24 Thread Sebastian Krebs
Hi, I'm using Ubuntu, but here you can update the system packages with the pear executable too $ sudo pear update-channels sudo pear upgrade --alldeps Regards, Sebastian Am 24.07.2012 17:05, schrieb Lester Caine: Not sure the best place to ask this ... I've worked through all of my own

Re: [PHP] E_STRICT safe PEAR

2012-07-24 Thread Sebastian Krebs
Am 24.07.2012 18:46, schrieb Lester Caine: Sebastian Krebs wrote: Hi, I'm using Ubuntu, but here you can update the system packages with the pear executable too $ sudo pear update-channels sudo pear upgrade --alldeps The question is - Is the result E_STRICT safe? Would say: Depends

Re: [PHP] E_STRICT safe PEAR

2012-07-24 Thread Sebastian Krebs
Am 24.07.2012 22:41, schrieb Lester Caine: Sebastian Krebs wrote: The question is - Is the result E_STRICT safe? Would say: Depends on the package you use. I don't use PEAR-packages myself, thus I don't really know. I would say: Try it out :) Test it on your dev-machine, or within a vm

[PHP] magic getter

2012-07-19 Thread Sebastian
Hi all, is this a bug, or a feature? class Foo { private $data; public function __get($name) { return $this-data[$name]; } } $foo = new Foo(); $foo-color = 'red'; echo $foo-color; I would expect an error, or a least a notice, but it prints out red ... -- PHP General Mailing

[PHP] magic getter

2012-07-19 Thread Sebastian
Hi all, is this a bug, or a feature? class Foo { private $data; public function __get($name) { return $this-data[$name]; } } $foo = new Foo(); $foo-color = 'red'; echo $foo-color; I would expect an error, or a least a notice, but it prints out red ... -- PHP General Mailing

[PHP] Bazar behavior w/ private member variables

2012-07-13 Thread Sebastian Krebs
Should go to the mailinlist : -- Forwarded message -- From: Sebastian Krebs krebs@gmail.com Date: 2012/7/13 Subject: Re: [PHP] Bazar behavior w/ private member variables To: Nathan Nobbe quickshif...@gmail.com Hi, Private properties are only accessable from within an object

Re: [PHP] Contribute to PHP

2012-07-12 Thread Sebastian Krebs
documents. Regards, Sebastian [1] https://github.com/zendframework/zf2/ 2012/7/12 Ziad Jammal z...@eljammal.com Deal all phpiers, It took me a while before I hit the send key. I have been a php developer for some time and I got certified beginning of this year. I have always wanted

Re: [PHP] Is this list less busy than it used to be?

2012-07-04 Thread Sebastian Krebs
already solveable via Twitter ;) Regards, Sebastian 2012/7/4 Andy McKenzie amckenz...@gmail.com On Wed, Jul 4, 2012 at 6:04 AM, RGraph.net support supp...@rgraph.net wrote: Hi, https://docs.google.com/spreadsheet/ccc?key=0Ak1QF0ijPYbedDNvb19SQl80MHcxUWhhbTZOYm5FUlE Yikes. That's a littled

Re: [PHP] Searching IDE.

2012-06-13 Thread Sebastian Krebs
Hi, 2012/6/13 David Arroyo darr...@gmail.com Hi Folks, I am searching an IDE for php and web development, my options are Aptana or Eclipse+PDT. What is your opinion? PhpStorm Thanks. Regards. -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Re: Function size

2012-05-30 Thread Sebastian Krebs
to read code monsters. Compared to a book it's a kind of One chapter in a single sentence. Regards, Sebastian -- Tony Marston http://www.tonymarston.net http://www.radicore.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Unit Tests for Cache Class

2011-01-26 Thread Sebastian Detert
looking forward to your suggestions, Sebastian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Singleton with variable parameters

2010-12-15 Thread Sebastian Detert
like self::$instance = call_user_func (array(static , __construct), func_get_args()); instead of self::$instance = new self; doesn't work and an eval() is too slow. I hope you can help me. Thanks, Sebastian class Singleton { static private $instance = null; static public function getInstance

[PHP] Model View Concepts

2010-10-22 Thread Sebastian Detert
of that pool of data. Do you have any urls or own experience you could share? Thanks, Sebastian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Unicode - Entitiy Encoding

2010-10-20 Thread Sebastian Detert
? Thanks, Sebastian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Execute a php page and don't wait for it to finish

2010-10-19 Thread Sebastian Detert
Ferdi schrieb: Hi List, I have a php page that updates data from one database to another when it is run. My query is, how can I trigger the execution of this update page from another php / javascript without the calling page having to wait for the update page to finish? Basically, I think the

Re: [PHP] Firs Day Of Week UNIX

2010-10-19 Thread Sebastian Detert
Don Wieland schrieb: Hi gang, I need a bailout. I have a fields called sys_first_day_of_week and the user can select one value which will be from a menu with these options: Monday Tuesday Wednesday Thursday Friday Saturday Sunday Based on this Preference and TODAYS DATE, I want to

Re: [PHP] References in Sessions

2010-10-14 Thread Sebastian Detert
Alexander Schrijver schrieb: Is my message unclear? or didn't anyone ran into this problem? If you want an atomic solution, you need to save the session to your database. How often do you need to delete data? Isn't it better to delete at night when noone is online, or logout all users for

  1   2   3   4   5   6   >