Re: [PHP] Static methods vs. plain functions

2013-09-19 Thread Sebastian Krebs
thod > > Personally in my projects - specifically if I use a framework, I try to > stay away from making standalone functions unless absolutely necessary. > > > > On Thu, Sep 19, 2013 at 12:44 PM, Sebastian Krebs wrote: > >> 2013/9/19 Simon Dániel >> >>

Re: [PHP] Static methods vs. plain functions

2013-09-19 Thread Sebastian Krebs
2013/9/19 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

Re: [PHP] high traffic websites

2013-09-18 Thread Sebastian Krebs
ogic says there must be some issues with it otherwise it would have > come already enabled. > > > > Sent from iPhone > > > > > > On Sep 18, 2013, at 2:20 AM, Camilo Sperberg wrote: > > > >> > >> On Sep 18, 2013, at 09:38, Negin Nickparsa wrot

Re: [PHP] high traffic websites

2013-09-18 Thread Sebastian Krebs
> Negin Nickparsa > > > On Wed, Sep 18, 2013 at 12:50 PM, Camilo Sperberg wrote: > >> >> On Sep 18, 2013, at 09:38, Negin Nickparsa wrote: >> >> > Thank you Sebastian..actually I will already have one if qualified for >> the >> > job.

Re: [PHP] high traffic websites

2013-09-18 Thread Sebastian Krebs
ot; and at the end it wasn't that high 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] Resolving a PHP Notice Error

2013-09-17 Thread Sebastian Krebs
2013/9/17 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: > > > if ( !is_set( $sort_by_preference ) ) { > > $sort_by_preference = "government_wording"; > > } > > ?> > > But I am receiving a Notice error:

[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] PHP Dependency Injector

2013-09-05 Thread Juan Sebastian Scatularo
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 >> >>> Jee, that should have been a f

Re: [PHP] PHP Dependency Injector

2013-09-05 Thread Juan Sebastian Scatularo
t;> 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 ma

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

2013-08-24 Thread Sebastian Krebs
2013/8/24 Lester Caine > 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 com

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

2013-08-24 Thread Sebastian Krebs
Eclipse/PDT anymore, but I fear you wont find much interest here. Regards, Sebastian > > -- > Lester Caine - G8HFL > - > Contact - > http://lsces.co.uk/wiki/?page=**contact<http://lsces.co.uk/wiki/?page=contact> > L.S.Caine Electronic Se

Re: [PHP] Re: PHP vs JAVA

2013-08-22 Thread Sebastian Krebs
2013/8/22 David Harkness > On Wed, Aug 21, 2013 at 7:56 PM, Curtis Maurand wrote: > >> 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 "b

Re: [PHP] Re: PHP vs JAVA

2013-08-21 Thread Sebastian Krebs
2013/8/21 Curtis Maurand > > > > 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. > A

Re: [PHP] Re: PHP vs JAVA

2013-08-21 Thread Sebastian Krebs
2013/8/21 georg chambert > 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 around with ? > > A

Re: [PHP] PHP vs JAVA

2013-08-20 Thread Sebastian Krebs
2013/8/20 Steven Staples > > 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 > > Mobile

Re: [PHP] PHP vs JAVA

2013-08-20 Thread Sebastian Krebs
2013/8/20 Andy McKenzie > On Tue, Aug 20, 2013 at 3:18 PM, Dan Munro 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 fail in the most ungra

Re: [PHP] PHP vs JAVA

2013-08-20 Thread Sebastian Krebs
2013/8/20 Andy McKenzie > 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, or > Wordpress,

Re: [PHP] PHP vs JAVA

2013-08-20 Thread Sebastian Krebs
2013/8/20 Lester Caine > 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:

Re: [PHP] PHP vs JAVA

2013-08-20 Thread Sebastian Krebs
2013/8/20 Tedd Sperling > On Aug 20, 2013, at 10:29 AM, Sebastian Krebs 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 langua

Re: [PHP] PHP vs JAVA

2013-08-20 Thread Sebastian Krebs
2013/8/20 Tedd Sperling > On Aug 20, 2013, at 10:04 AM, Ashley Sheridan > 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 an interesting link: > > htt

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

2013-08-19 Thread Sebastian Krebs
It wasn't complicated, but only an afternoon time to invest). Caine complaints from 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 th

Re: [PHP] Class Auto-Assigning to Variable

2013-08-07 Thread Sebastian Krebs
2013/8/7 Brian Smither > 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 = 'World'; __cons

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 > 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
ence 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 General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- github.com/KingCrunch

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 > Sebastian Krebs wrote: > >> I meant: PhpDocumentor 2 >> > Problem solved ... > Notes on > https://github.com/**phpDocumentor/phpDocumentor2<https://github.com/phpDocumentor/phpDocumentor2>need

Re: [PHP] phpdocumentor with PHP5.4

2013-07-07 Thread Sebastian Krebs
I meant: PhpDocumentor 2 Am 07.07.2013 17:44 schrieb : > It's a clean install via PEAR a couple of hours ago! > > Sent from my android device. > > -Original Message----- > From: Sebastian Krebs > To: Lester Caine > Cc: PHP General List > Sent: Sun, 07 Ju

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" : > 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 > load ) and I

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 > > > On Wed, May 29, 2013 at 10:51 PM, Sebastian Krebs wrote: > >> >> >> >> 2013/5/29 Matijn Woudt >> >>> On Wed, May 29, 2013 at 6:08 PM, Sean Greenslade >> >wrote: >>> >>> > On Wed, M

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 > On Wed, May 29, 2013 at 6:08 PM, Sean Greenslade >wrote: > > > On Wed, May 29, 2013 at 9:57 AM, Jonesy wrote: > > > On Tue, 28 May 2013 14:17:06 -0700, Daevid Vincent wrote: > > >> I'm adding some minification to our cache.class.php and am running > into > > an > > >> e

Re: [PHP] Header Keep-Alive

2013-05-27 Thread Sebastian Krebs
2013/5/27 Al > 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 http://de.php.net/manual/en/fu

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

2013-05-17 Thread Sebastian Krebs
ublic double getArea() { > >return (radius * radius * 3.1415); > > } > > > > } > > > > class Square implements Shape { > > double side; > > > > public Square(int double side) { > >this.side = side; > > } > > > > d

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

2013-05-16 Thread Sebastian Krebs
opinion never such a strict contract, like an interface, especially because you can always leave the "contract-only"-restriction by implementing something into the class, what is then directly inherited by the subclasses. My 2 cent :) But for me this "idea" works quite fine

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

2013-05-03 Thread Sebastian Krebs
2013/5/3 Daevid Vincent > > > -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 simplexml_lo

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" : > Does anyone know if there's a ready-made script that detects if > someone hits multiple web pages within seconds

Re: [PHP] application level variable file

2013-03-22 Thread Sebastian Krebs
2013/3/22 > 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 for ASP.N

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

2013-03-18 Thread Sebastian Krebs
2013/3/18 Ken Robinson > > > 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 are fi

Re: [PHP] variable type - conversion/checking

2013-03-15 Thread Sebastian Krebs
2013/3/16 Andrew Ballard > 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 > it right

Re: [PHP] variable type - conversion/checking

2013-03-15 Thread Sebastian Krebs
2013/3/16 Ashley Sheridan > > > tamouse mailing lists wrote: > > >On Fri, Mar 15, 2013 at 4:00 PM, Ashley Sheridan > >wrote: > > > >> ** > >> On Fri, 2013-03-15 at 04:57 -0500, tamouse mailing lists wrote: > >> > >> On Fri, Mar 15, 2013 at 3:55 AM, Peter Ford > >wrote: > >> > On 15/03/13 06:21,

Re: [PHP] PHP context editor

2013-03-15 Thread Sebastian Krebs
2013/3/15 Karim Geiger > 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 editor with

Re: [PHP] Type of a variable in PHP

2013-03-15 Thread Sebastian Krebs
2013/3/15 Kevin Peterson > 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 :) is_array() or again

Re: [PHP] Mystery foreach error

2013-03-13 Thread Sebastian Krebs
2013/3/14 David Harkness > > On Wed, Mar 13, 2013 at 5:10 PM, Sebastian Krebs wrote: > >> Because 'null' is the representation of "nothing" array_key_exists() and >> isset() can be treated as semantically equivalent. > > > As I said, these func

Re: [PHP] Mystery foreach error

2013-03-13 Thread Sebastian Krebs
2013/3/14 David Harkness > On Wed, Mar 13, 2013 at 4:44 PM, Angela Barone > wrote: > > > 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 an array key 'foo' mapped to a null value

Re: [PHP] Re: UNLESS Statement Equivalent

2013-03-12 Thread Sebastian Krebs
2013/3/12 Ford, Mike > > -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 not)

Re: [PHP] Holding "datetimes" in a DB.

2013-03-01 Thread Sebastian Krebs
where it is interesting to know, when from the users point of view they have created the entity (like a blog post, a comment, or something like that). The TZ is part of the data and converting it silently to UTC is always data-loss. So in most cases it is OK, but not in every :) You can still conv

Re: [PHP] Stupid question

2013-02-27 Thread Sebastian Krebs
2013/2/27 tamouse mailing lists > On Tue, Feb 26, 2013 at 4:41 PM, Jim Lucas 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, > >> 'result_buffe

Re: [PHP] Very Large File Splatter

2013-02-22 Thread Sebastian Krebs
I can imagine, that this "repair process" associated the broken data with the wrong file-entries 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 > 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, > /etc/php.

Re: [PHP] Expansion of Apache definitions

2013-01-10 Thread Sebastian Krebs
2013/1/10 John Iliffe > 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 > You may want

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 > On Fri, Jan 4, 2013 at 1:56 AM, Sebastian Krebs > wrote: > > 2013/1/4 tamouse mailing lists > >> Bit operators are not comparing values, they're COMBINING values. > > > > Technically spoken they're comparing bits,

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

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

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

2012-12-16 Thread Sebastian Krebs
2012/12/17 dealTek > > On Dec 16, 2012, at 10:08 AM, Sebastian Krebs wrote: > > > 2012/12/16 dealTek > > > >> Hi all, > >> > >> Noobie starting to learn oop for databases from here: > >> > >> > >> > https://github.

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

2012-12-16 Thread Sebastian Krebs
2012/12/16 dealTek > 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 I'm not

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

Re: [PHP] Session ?

2012-12-07 Thread Sebastian Krebs
2012/12/7 Jim Giner > On 12/7/2012 2:41 PM, Daniel Brown wrote: > >> On Fri, Dec 7, 2012 at 2:38 PM, Jim Giner >> wrote: >> >>> On 12/7/2012 2:36 PM, Daniel Brown wrote: >>> On Fri, Dec 7, 2012 at 2:33 PM, Jim Giner >>> > wrote: > > Something new for me - working with

Re: [PHP] Unset and __destruct

2012-12-07 Thread Sebastian Krebs
2012/12/6 Pierre du Plessis > 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 because it was n

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

2012-12-04 Thread Sebastian Krebs
is a PHP extension so you can > only access the shared memory from one machine, whereas 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

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 > 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 > multip

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

2012-11-19 Thread Sebastian Krebs
2012/11/19 Tim Streater > On 18 Nov 2012 at 14:44, Jim Giner 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 Andrew Ballard > On Nov 16, 2012 10:24 PM, "tamouse mailing lists" > wrote: > > > > On Fri, Nov 16, 2012 at 12:41 PM, Sebastian Krebs > wrote: > > > Beside this it can be rewritten as > > > > > > switch ((int) (($count-

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

2012-11-17 Thread Sebastian Krebs
2012/11/17 Tim Streater > On 17 Nov 2012 at 01:33, Iñigo Medina 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): > >> (do s

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

2012-11-16 Thread Sebastian Krebs
construct, where the interpreter should select one of multiple similar cases. This one seems legit, because they are very similar ;) It says "In case of $count look like X do this, or $count look like Y do that, or $count look like Z do something else (and so on)". For such I find the

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? http://codep

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] Re: PHP as Application Server

2012-09-27 Thread Sebastian Krebs
ently don't miss 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 > Il Thu, 27 Sep 2012 12:28:00 +0200, Maciej Liżewski

Re: [PHP] Static constructor support

2012-09-26 Thread Sebastian Krebs
2012/9/26 Stuart Dallas > On 26 Sep 2012, at 22:29, Yves Goergen > 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 the quick info. > > > > How d

Re: [PHP] Static constructor support

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

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

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 s

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

Re: [PHP] about PHP's filter_var function

2012-09-20 Thread Sebastian Krebs
able right now (5.2, 5.3 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:

Re: [PHP] PHP array unions

2012-09-12 Thread Sebastian Krebs
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 lik

Re: [PHP] A quick ereg translation

2012-08-25 Thread Sebastian Krebs
Am 25.08.2012 23:06, schrieb Lester Caine: ereg('(.*)', $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 into delimite

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 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 '/var/www

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

2012-08-24 Thread Sebastian Krebs
the group www-data. Don't know, how 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 > > 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 h

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

2012-08-17 Thread Sebastian Krebs
07-redirect from somenewdomain.com to somedomain.com is more appropiate, but that depends. Regards, 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 somenew

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

2012-08-15 Thread Sebastian Krebs
r example set the property right after instanciation, or during instanciation (constructor). $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

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

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. an

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 Ma

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 withi

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 saf

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'

[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 Mailin

[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 Mailin

[PHP] Bazar behavior w/ private member variables

2012-07-13 Thread Sebastian Krebs
Should go to the mailinlist :> -- Forwarded message -- From: Sebastian Krebs Date: 2012/7/13 Subject: Re: [PHP] Bazar behavior w/ private member variables To: Nathan Nobbe Hi, Private properties are only accessable from within an object of the class, where it's def

Re: [PHP] Contribute to PHP

2012-07-12 Thread Sebastian Krebs
milar documents. Regards, Sebastian [1] https://github.com/zendframework/zf2/ 2012/7/12 Ziad Jammal > 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

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

2012-07-04 Thread Sebastian Krebs
x27;s even already solveable via Twitter ;) Regards, Sebastian 2012/7/4 Andy McKenzie > On Wed, Jul 4, 2012 at 6:04 AM, RGraph.net support > wrote: > > Hi, > > > >> > https://docs.google.com/spreadsheet/ccc?key=0Ak1QF0ijPYbedDNvb19SQl80MHcxUWhhbTZOYm5FUlE > > > &

Re: [PHP] Searching IDE.

2012-06-13 Thread Sebastian Krebs
Hi, 2012/6/13 David Arroyo > 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: http://www.php

Re: [PHP] Re: Function size

2012-05-30 Thread Sebastian Krebs
ot;substr()" appeared? When you see a method "loadFromFile()" and the IDE tells you, that it expects a $filename as parameter, why should you jump there just to make sure, that the method loads something from a file by the filename given as first parameter? > > I will only

[PHP] Unit Tests for Cache Class

2011-01-26 Thread Sebastian Detert
ate/delete? I'm 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
#x27;a', 'b'); ? Something 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 Single

[PHP] Model View Concepts

2010-10-22 Thread Sebastian Detert
ut 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
f, # > 0x80, 0x, 0, 0x, ); $oct_string = mb_encode_numericentity($test, $convmap, 'UTF-8'); I try to get all entity encodings with htmlentities $entity_string = htmlentities($test, ENT_QUOTES, 'UTF-8'); But that fails for some characters like Đ. Is there a better way to g

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 calcu

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 up

Re: [PHP] Text messaging from the web

2010-10-14 Thread Sebastian Detert
Larry Martell schrieb: On Thu, Oct 14, 2010 at 10:01 AM, Sebastian Detert wrote: Larry Martell schrieb: On Thu, Oct 14, 2010 at 9:45 AM, Paul M Foster wrote: Folks: Being fairly geezerly, I know almost nothing about this, so be gentle. Assuming someone entered information in a form on

  1   2   3   4   5   6   >