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
>>
>>
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
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
> 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.
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
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:
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
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
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
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
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
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
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
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
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
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
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,
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:
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
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
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
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
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
>
> --
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
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
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
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
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
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
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
ublic double getArea() {
> >return (radius * radius * 3.1415);
> > }
> >
> > }
> >
> > class Square implements Shape {
> > double side;
> >
> > public Square(int double side) {
> >this.side = side;
> > }
> >
> > d
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
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
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
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
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
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
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
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,
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
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
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
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
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)
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
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
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
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.
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
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
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,
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);
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.
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
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.
>
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
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
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
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
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
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;
> > //
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-
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
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
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
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
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
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
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
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
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
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
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:
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
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
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
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
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
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
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
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
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
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
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
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
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'
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
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
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
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
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
> >
> &
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
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
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
#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
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
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
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
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
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 - 100 of 578 matches
Mail list logo