On Wed, Sep 25, 2013 at 4:31 PM, Daevid Vincent dae...@daevid.com wrote:
Then I randomly stumbled upon this PHPDoc @ method tag and my whole world
is brighter today than it has been for the past, oh let's say DECADE!
Yes, @method and @property are very handy. Out of curiosity, since you're
On Thu, Sep 5, 2013 at 1:40 PM, Juan Sebastian Scatularo
sebastianscatul...@gmail.com wrote:
Thanks Sorin, I will do that and I will have more care the next time.
You can also check out Pimple [1] by the creator of the Symfony Framework.
Peace,
David
[1] http://pimple.sensiolabs.org/
On Wed, Sep 4, 2013 at 12:25 PM, Micky Hulse mickyhulse.li...@gmail.comwrote:
I want to have a utility class that contain utility methods which should
have the option of being called multiple times on a page.
...
To put it another way, is there any reason why I would not want to use the
On Thu, Aug 22, 2013 at 12:29 AM, Sebastian Krebs krebs@gmail.comwrote:
Actually I think .. is quite error-prone, because it is hard to
distinguish from . or _ on the _first_ glance, which makes the get
quickly through the code. [1]
I surround all operators except member access (. and -)
On Wed, Aug 21, 2013 at 7:56 PM, Curtis Maurand cur...@maurand.com 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 bar() on the
object $foo, or if you want to concatenate the value of
There's no way to bypass an overridden method using parent, but you could
add an abstract method that Child would implement.
class Parent
function __construct() {
$this-foo = $this-getFoo();
}
abstract function getFoo();
}
David
Hi Richard,
On Thu, Jun 13, 2013 at 10:16 AM, Richard Quadling rquadl...@gmail.comwrote:
I'm building a class which needs to have certain methods called by the
subclass, but the subclass can extend but not obscure/override the
behaviour.
This is the Template Method pattern, though in this
On Fri, May 31, 2013 at 10:54 AM, Nathaniel Higgins n...@nath.is wrote:
Is it possible to bind an instance to a static closure, or to create a
non-static closure inside of a static class method?
PHP doesn't have a method to do this. In JavaScript you can use jQuery's
var func =
Thanks Nathaniel for the clarification about 5.4. We are still on 5.3 (and
that only recently), so 5.4 is a ways off in our production systems.
However, I'll read up on this since it may be useful in offline tools.
On Fri, May 31, 2013 at 11:52 AM, Nick Whiting nwhit...@xstudiosinc.comwrote:
On Wed, May 29, 2013 at 10:20 AM, Matijn Woudt tijn...@gmail.com wrote:
It is possible to write a whole parser as a single regex, being it terribly
long and complex.
While regular expressions are often used in the lexer--the part that scans
the input stream and breaks it up into meaningful
Hi Daevid,
On Tue, May 28, 2013 at 2:17 PM, Daevid Vincent dae...@daevid.com wrote:
I'm adding some minification to our cache.class.php . . .
We have been using a native jsmin extension [1] which does a lot more
without any trouble for over two years now. It's much faster than the
equivalent
Hi Daevid,
On Tue, May 28, 2013 at 2:40 PM, Daevid Vincent dae...@daevid.com wrote:
I appreciate the pointer, but our files, like many people, is a mixture of
HTML, PHP and JS in one file. This jsmin appears to only work on .js files
right? Also, everything else works great in our minifing
On Fri, May 17, 2013 at 7:04 AM, Tedd Sperling tedd.sperl...@gmail.comwrote:
To me there is no difference between an abstract class (without method
declarations) and an interface.
The key difference in OO languages that do not allow multiple inheritance
is that you can always add an interface
Hi Stephen,
I just tried installing the PECL extension, but it failed to build on PHP
5.4.6-1ubuntu1.2. I see Xdebug in the phpinfo output, and I assume other
PECL extensions will show up there once installed.
Good luck!
David
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 an array key 'foo' mapped to a null value
whereas
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 different results for null values. It
won't matter for Angela
Hi Eric,
On Sun, Mar 10, 2013 at 8:21 PM, Eric James Michael Ritz
lobbyjo...@gmail.com wrote:
I have a question about the `parent` keyword: is there any valid
situation where it can appear without the `::` operator following?
I wouldn't have thought it possible, but I just found one case
Hi Keven,
First, I don't see any late static binding being used here. LSB only
applies when you access a static member using the static keyword within a
class method. This code uses static properties but accesses them directly
without going through class methods. Here's an example of LSB:
On Wed, Sep 26, 2012 at 2:29 PM, Yves Goergen
nospam.l...@unclassified.dewrote:
How do other languages than C# call that? :-)
Java has static initializers which work the same way: they are executed
when the class is first loaded and before any code can make use of the
class.
David
On Tue, Aug 28, 2012 at 4:39 AM, Matijn Woudt tijn...@gmail.com wrote:
First of all, I believe [A] PHP is smart enough to not generate bytecode
for functions that are not used in the current file. Think about the
fact that you can write a function with errors, which will run fine
until you
On Tue, Aug 28, 2012 at 12:11 PM, Matijn Woudt tijn...@gmail.com wrote:
On Tue, Aug 28, 2012 at 6:55 PM, David Harkness
davi...@highgearmedia.com wrote:
On Tue, Aug 28, 2012 at 4:39 AM, Matijn Woudt tijn...@gmail.com wrote:
First of all, I believe [A] PHP is smart enough to not generate
On Wed, Aug 15, 2012 at 1:28 AM, phplist phpl...@myword.co.uk wrote:
I can have a User object method getSubscriberStatus() which sets
$this-isASubscriber. But to use this I would have to run the method just
before the if statement.
Or I could have a method isASubscriber() which returns the
On Wed, Aug 8, 2012 at 8:24 AM, Ansry User 01 yrsna.res...@gmail.comwrote:
I am setting the _SESSION variables in one of my file, but whenever I
leave the php page session variables are not accessible.
As always, post some code demonstrating what you're doing. Help us help
you! :)
David
On Fri, Jul 27, 2012 at 10:16 AM, Ashley Sheridan
a...@ashleysheridan.co.ukwrote:
Simon Dániel simondan...@gmail.com wrote:
#[0-9a-zA-Z,\.]#
You should escape out that period as it will match any character otherwise
The dot only matches a period inside a character class [...].
David
On Fri, Jul 27, 2012 at 11:43 AM, Al n...@ridersite.org wrote:
%[\w\d,.]%
\w will match digits so \d isn't necessary, but it will also match
underscores which isn't desired.
David
If you want to block setting of public properties on your class, implement
the magic setter.
class Foo {
private $data = array();
function __get($name) {
return $this-data[$name];
}
function __set($name, $value) {
if ($name != 'foo') {
On Sat, Jan 7, 2012 at 5:01 PM, Tim Behrendsen t...@behrendsen.com wrote:
The first loop is leaving a reference to the final element. But then the
second foreach is doing a straight assignment to the $row variable, but
$row is a reference to the final element. So the foreach is assigning its
Each *value* in the array must be a reference to an existing variable--they
cannot be null or direct values. I didn't try this with bind_param(), but I
create a function that takes reference arguments and got it to work with
call_user_func_array():
function foo($x, $y) { $x *= 2; $y *= 3; }
On Wed, Dec 14, 2011 at 4:59 AM, Rick Dwyer rpdw...@earthlink.net wrote:
Can someone tell me which of the following is preferred and why?
echo a style='text-align:left;size:**14;font-weight:bold'
href='/mypage.php/$page_id'$**page_name/abr;
echo a
On Mon, Dec 12, 2011 at 1:06 PM, David Savage dsav...@cytelcom.com wrote:
Would ksort($sortarr,SORT_STRING) on a 1 dimensional array with a key
comprised of
a person's name,
-, and
time stamp
I..E. (key: david savage-2011-12-12 14:43:00)
actually delete duplicate keys from the array, if
On Sat, Oct 15, 2011 at 7:01 AM, Alain Williams a...@phcomp.co.uk wrote:
I have an application where a Screen (web page) may contain several Forms.
The Forms
will want to access properties, etc, from their Screen. So what I want is
to do
something like:
You're using an is-a relationship
On Sat, Oct 1, 2011 at 10:59 AM, Ron Piggott ron@actsministries.orgwrote:
If $correct_answer has a value of 3 what is the correct syntax needed to
use echo to display the value of $trivia_answer_3?
You can use variable variables [1] to access the variable by building its
name in a string:
Gently remind them that the P in LAMP stands for PHP. There's a big reason
most every web developer can tell you what each letter in LAMP stands for:
heavy market penetration.
Peace,
David
On Mon, Sep 19, 2011 at 3:22 PM, Daniel Brown danbr...@php.net wrote:
On Mon, Sep 19, 2011 at 18:10, David Harkness davi...@highgearmedia.com
wrote:
Gently remind them that the P in LAMP stands for PHP.
It has become a presumption in that regard, yes, but the 'P' in
LAMP was actually
On Tue, Sep 13, 2011 at 7:29 AM, Ashley Sheridan
a...@ashleysheridan.co.ukwrote:
SELECT * FROM table WHERE userID IN (1,2,3,4,5,etc)
+1. And this is a great place to use implode():
$sql = 'select ... where userID in (' . implode(',', $ids) . ')';
David
I don't always use braces, but when I do I use Compact Control Readability
style. Stay coding, my friends.
On Tue, Aug 9, 2011 at 6:10 PM, Frank Thynne frank.thy...@gmail.com wrote:
function integer int_func(string $s) {
// does something like, say, converting five to 5
}
As Stuart pointed out, type-hinting currently only works for classes and
arrays. Scalar type-hinting is planned for the
On Wed, Aug 3, 2011 at 9:36 AM, Tamara Temple tamouse.li...@gmail.comwrote:
Not to hijack the thread, but I really, *really* hope you are not
suggesting that someone do live edits on a production server
I would never consider tinkering on test pages while learning PHP a
production server.
2011/7/6 Дмитрий Степанов dmit...@stepanov.lv
PHP documentation of static keywords does not unambiguously explain
behavior
of static variables inside methods in example #1. I believe that in
example #1 the exactly same instance of function (method) is used
irregarding of how you call it
On Sun, Jun 26, 2011 at 7:42 PM, Tamara Temple tamouse.li...@gmail.comwrote:
How do I launch a php script from another running php script
asynchronously?
You can perform the long-running job in the same process that handles the
request by sending appropriate headers. We use this to run
On Tue, Jun 28, 2011 at 1:02 PM, Stuart Dallas stu...@3ft9.com wrote:
While this will work, I would caution against doing this, especially when
using Apache as the web server. . . .
Forking an HTTP request handler can lead to some very unwelcome
side-effects. I'd urge you not to do this. It
2011/6/15 Дмитрий Степанов dmit...@stepanov.lv
So I wonder if there is any way to import scope (symbol table) into the
method DBReader::readSomething()?
Since you're using call_user_func_array() to call your internal methods
already (just to expose protected methods publicly?), you could add
On Mon, Jun 13, 2011 at 12:52 PM, Paul M Foster pa...@quillandmouse.com
wrote:
There's certain class of errors which happen before any error-handler
(set_error_handler) can catch them, like parse errors and such. Is there
a way to have these generate the same type of response as the errors
All of the above with a clarification: they are instance methods which you
are calling statically. The object is not instantiated in this case. PHP
allows this but will issue an E_STRICT warning. To remove the warning just
add static before each of them, assuming they are only ever called
The original PHP Sadness page didn't actually make me sad. This thread,
however, *is*. Can we all agree that we have different opinions on what
makes an appropriate joke and move on?
Here's to less sadness in the world . . .
David
On Fri, May 27, 2011 at 12:52 PM, Daevid Vincent dae...@daevid.com wrote:
A friend sent me this URL today. While amusing, he's got many valid points
and I certainly share in his frustration.
http://www.phpsadness.com
Some points are valid, but many others show a lack of understanding of PHP
On Tue, May 24, 2011 at 12:48 AM, Vitalii Demianets vi...@nppfactor.kiev.ua
wrote:
So. to write compatible scripts one should check 0, not == -1.
Which matches the documentation:
Returns 0 if str1 is less than str2; 0 if str1 is greater than str2,
and 0 if they are equal.
David
On Mon, May 23, 2011 at 6:29 AM, Simon Hilz simon.h...@gmx.de wrote:
i was wondering if there is any best practise known how one should access
the attributes of an object from the object itself.
For most properties I use $this-property within the object because nine
times out of ten no work
On Fri, May 20, 2011 at 10:40 AM, Rick Dwyer rpdw...@earthlink.net wrote:
How do I coerce the result to always round up to the nearest increment 1/4?
$x = ceil($x * 4) / 4;
David
On Fri, May 20, 2011 at 12:28 PM, Alex Nikitin niks...@gmail.com wrote:
Also you left out a database, your basement/foundation . . .
I liken the database to the sewer: it's where all the crap goes. :D
Happy Friday!
David
On Wed, May 18, 2011 at 2:22 PM, Peter Lind peter.e.l...@gmail.com wrote:
You make my point for me but for some reason don't want to follow the
logical conclusion of it. Why?
This is just one way to give-back.
Suggesting people that they copypaste your code is a very bad way of
giving
On Wed, May 18, 2011 at 2:38 PM, Peter Lind peter.e.l...@gmail.com wrote:
As is probably clear by now, in my opinion it would be much better to
go the motions of the script a bit at a time, with comments of *why*
things are done (not *what* is done) - and why you really should spend
a bit
On Wed, May 18, 2011 at 4:30 PM, ad...@buskirkgraphics.com wrote:
If you say I hijacked a spam thread , then shame on me. It will not happen
again.
Do you have ANY IDEA how HARD I work to hand-craft my spam emails? Please do
not HIJACK them with your work-related, information-seeking drivel!
It appears that PHP is truncating the constant 0x8000 to be within
MIN_INT and MAX_INT instead of as a bit field, but when shifting 1 31 it
doesn't do apply any constraints. That's pretty typical of bit-manipulation:
it will merrily slide 1 bits off either end. This explains why produces 0
On Sun, May 15, 2011 at 3:15 PM, Richard Quadling rquadl...@gmail.comwrote:
Personally, I would recommend using 1 naming convention and sticking with
it.
I wholeheartedly agree. Multiple method names is not flexibility--it's
confusion and an open invitation for bugs. Plus, even with two
You can register a shutdown function that gets called even in the case of a
fatal error. We use something like this:
public function init() {
register_shutdown_function(array('Bootstrap', 'fatalErrorCatcher'));
...
}
public function fatalErrorCatcher() {
On Wed, May 11, 2011 at 11:55 AM, Daevid Vincent dae...@daevid.com wrote:
?= $foo ? is generally NOT what the short tags controversy are about.
It's the use of ? Some php here ? vs. ?php some php here ?
This is the same thing my colleague told me when I first joined and began
learning PHP
On Wed, May 11, 2011 at 1:23 PM, Richard S. Crawford
rich...@underpope.comwrote:
If I execute the following code:
array_push(objectarray, A);
array_push(objectarray, B);
...I expect the contents of $objectarray to be:
[0] = A
[1] = B
Instead, the last object pushed onto the array is
On Wed, May 11, 2011 at 1:50 PM, Peter Lind peter.e.l...@gmail.com wrote:
I'd say there's a problem in your code. Check where you might be using
references, chances are you're using one somewhere and not unsetting
it afterwards.
Also make sure that the code that receives the final array
On Wed, Apr 13, 2011 at 11:04 AM, Floyd Resler fres...@adex-intl.comwrote:
That didn't quite work. Here's what I did:
$const=$argv[1];
$value=email::$const;
Instead try this:
$const = $argv[1];
$reflector = new ReflectionClass('email');
$value = $reflector-getConstant($const);
David
Greetings,
APC has an INI setting named apc.preload_path which I assume causes all PHP
files within that path to be compiled and cached by APC as it is
initialized. The documentation is nonexistent, but in this thread Rasmus
corroborates my assumption (well, he doesn't invalidate it in any case):
On Tue, Apr 12, 2011 at 6:34 AM, Richard Quadling rquadl...@gmail.comwrote:
Without running the code, can you say what the output will be in the 3
examples?
Yes, but I would still rewrite that code. ;) I typically reserve the ternary
operator to return a value or assign a variable. Given that
On Thu, Apr 7, 2011 at 2:16 AM, Richard Quadling rquadl...@gmail.comwrote:
And all this is shown when you ...
php -r print_r(array_map(function($token){if(is_array($token)){$token[0]
= token_name($token[0]);} return $token;},token_get_all('?php echo
10...19;')));
Woah, that's a very nifty
On Tue, Apr 5, 2011 at 8:28 AM, Richard Quadling rquadl...@gmail.comwrote:
php -r var_dump(10...19);
Interesting output ...
string(6) 100.19
And that took me a little while to work out.
It's all to do with PHP's type juggling.
10...19
What I'm not sure is why the middle empty string
Are you sure?
$ php -a
php for ($i = 0; $i 10; $i++) { echo $i . ' '; }
0 1 2 3 4 5 6 7 8 9
David
On Fri, Mar 11, 2011 at 11:35 AM, Daniel Hong dan...@amagineinc.com wrote:
Is it possible to pinpoint the location where the most memory was used?
Take a look at XHProf. [1] It will track memory and time of all function
calls. Paul Reinheimer created a GUI [2] to make dealing with the data
If each array will contain a single type of object, but you need many of
these arrays, each containing a different type of object, I recommend
creating a generic instances-of-class array using ArrayObject. You can
enforce the type in append(), offsetSet(), and exchangeArray() and then
check the
Welcome to the list, Brian. I'm fairly new to PHP and the list myself, and
I've found it to be a great resource. Another is stackoverflow.com,
especially for How do I do X? type questions. I often find someone else
has already provided an answer.
On Tue, Feb 15, 2011 at 8:51 AM, tedd
On Tue, Feb 15, 2011 at 1:08 PM, Steve Staples sstap...@mnsi.net wrote:
My personal bracing style is the Allman Style.
I use KR. I started with it just as shown but as monitors increased in size
I stopped cuddling the else so it's now on its own line, aligning the if,
elseif, and else nicely.
I see firebug-lite-debug.js but not jquery.js. Does firebug include jquery?
David
On Tue, Feb 8, 2011 at 4:36 AM, Arno Kuhl ak...@telkomsa.net wrote:
But it might be an option if done once at the start of each
search or list request, and then use that temporary modified result set for
subsequent requests on the same set.
Instead of serializing the articles, you only need
On Fri, Feb 4, 2011 at 12:42 PM, Hansen, Mike mike.han...@atmel.com wrote:
I would opt for using my_mail and not overriding a built-in function. It
seems to me that it would just cause confusion for the next developer who
takes care of your code. You know, that psychopathic programmer that
I think you can use reflection [1] to block the hooks from using in their
parameter lists. This way the clients must use to pass a reference. This
is definitely possible for function/method callbacks [2], but I'm not sure
about 5.3 closures [3].
David
[1]
On Mon, Jan 31, 2011 at 3:51 AM, Richard Quadling rquadl...@gmail.comwrote:
I've just done a quick scan of all my methods ...
I just did the same scan on my code, and the clear majority was
private abstract final function
YMMV
David
On Fri, Jan 28, 2011 at 10:35 AM, Mujtaba Arshad mujtab...@gmail.comwrote:
Having learned java before even knowing what php was (yeah I'm a noob in
both) I prefer scope static function.
I learned Java first, too, and also prefer the scope first. I place a scope
on every method, so I'd rather
If you're using memcached already you could store the number in it and
update it only when a user logs in/out. If no one is logging in/out, the
number isn't changing.
If your site is so popular that hundreds of users are logging in every
second you might want to change the logic so that the
On Fri, Jan 28, 2011 at 11:03 AM, Marc Guay marc.g...@gmail.com wrote:
If COUNTing is the heavy part, why not create a 'users_logged_in'
field somewhere and increment it when someone logs in and decrement it
when someone logs out? Then your query is just a straight SELECT.
If this is like
FWIW while I prefer Eclipse overall as an IDE, I found the PHP support in
NetBeans to be superior. It's been a year since I used Eclipse for PHP.
Maybe the PHP plugins for Eclipse have improved enough. NetBeans supports
GIT and Mercurial as well.
David
Without seeing the code that creates the arrays, it's tough to see the
problem. It looks like the first replacement is catching Beagle Welpen
entirely since the closing /a tag gets placed after Welpen. Then the
second replacement does just Welpen.
Also, you should have quotes around link when
On Fri, Jan 21, 2011 at 4:44 AM, Dotan Cohen dotanco...@gmail.com wrote:
Then I would have to check what values are available when inserting,
and possibly normalise every so often. I'll think about that, and when
I have enough data in the database I'll set up a test system to play
with the
I cannot agree more with the others about using a join table. While it's
tempting to go with your first solution due to fear of performance issues,
you can usually address performance issues with a technical solution.
Addressing problems that arise from a constraining design choice is much
more
Larry,
I suggested the docblock tag because it seemed you didn't want to mandate
that plugins that extend other plugins be forced to include the interface in
an actual PHP implements clause. Duplicating the implements clause doesn't
cause any problems for PHP as you said, so that's one route.
On Thu, Jan 20, 2011 at 7:00 AM, Richard Quadling rquadl...@gmail.comwrote:
I'd recommend using a nested set approach for the tags
(http://dev.mysql.com/tech-resources/articles/hierarchical-data.html
gives a good explanation on the issues and methodology of nested
sets).
Thanks for the
On Thu, Jan 20, 2011 at 12:21 PM, Dotan Cohen dotanco...@gmail.com wrote:
I understood that. My concern is exactly with adding new nodes. There
is no incrementor (++i) in SQL, so knowingly coding a solution that
will require incrementing two fields in half the database rows seems
What about creating your own docblock tag such as @plugin-interface? While
it still requires each plugin to explicitly define the interface(s) it
implements, it won't be in the class declaration. This would be very easy to
nab for a tree of files using grep, removing the need to do any static
On Thu, Jan 13, 2011 at 2:23 AM, Richard Quadling rquadl...@gmail.comwrote:
The Hungarian Notation [1] was what I was taught all those years ago
when I learnt standard C programming.
I learned it early on as well, and I never really liked it. Instead of
$iFish I would prefer a more
On Thu, Jan 13, 2011 at 10:07 AM, David Hutto smokefl...@gmail.com wrote:
On Thu, Jan 13, 2011 at 12:59 PM, David Harkness
I learned it early on as well, and I never really liked it. Instead of
$iFish I would prefer a more descriptive name such as $fishCount.
What info did you get on hook
On Wed, Jan 12, 2011 at 10:57 PM, Larry Garfield la...@garfieldtech.comwrote:
I believe this is the relevant RFC:
http://wiki.php.net/rfc/closures/object-extension
That was a good bedtime read last night, Larry. I prefer method A which is
nearly identical to Java's inner classes where $this
On Tue, Jan 11, 2011 at 4:19 AM, Jay Blanchard jblanch...@pocket.comwrote:
I am always looking for the $needle in the $haystack.
Just sayin'
I often find it faster to hire a bunch of horses to eat the $haystack,
leaving the $needle behind and easy to find.
David
On Tue, Jan 11, 2011 at 10:12 AM, tedd tedd.sperl...@gmail.com wrote:
My down time is playing XBOX Black Ops. It allows my mind to focus on
things that don't matter, much like a vacation, that's frees space
For me that's Left 4 Dead 2 as Captain Cujo. I think it's beneficial to
cultivate
On Tue, Jan 11, 2011 at 9:55 AM, Robert Cummings rob...@interjinn.comwrote:
My horse now has a perforated stomach and colon. Can I send you the
veterinarian's bill?
Who knew they made carrot-flavored $needles?
David
On Tue, Jan 11, 2011 at 11:13 AM, Richard S. Crawford rich...@underpope.com
wrote:
$content = preg_replace(/[.chr(10).|.chr(13).]/,,$content)
This should be
$content = preg_replace('/[\r\n]/','',$content)
First, you can embed \r and \n directly in the regular expression as-is (not
On Fri, Jan 7, 2011 at 10:31 AM, Joshua Kehn josh.k...@gmail.com wrote:
My apologies. I just view PHP as a perfected web language, due to it's
templating nature, while using it for other things (scripts, utilities,
cron) is a misuse in my opinion.
Even if you are proficient in more
On Fri, Jan 7, 2011 at 10:41 AM, la...@garfieldtech.com
la...@garfieldtech.com wrote:
Application is perhaps a misnomer. I'm not looking at rewriting Emacs or
anything. Just some batch processing that would get run as:
php myscript.php --config=foo.xml --setting-1=stuff
For this I used
I filed a bug report for this, but I'll put it here as well in case it
helps. When you zoom in to increase the text size, the right margin
increases unnecessarily. This shrinks the width of the center content column
which makes reading the documentation and code snippets difficult. The right
The memory limit only blocks PHP from allocating more than that amount of
memory for a single process (i.e. client request). Given that you're barely
scratching the surface of your 2GB of memory, if you don't expect too many
17MB file uploads to happen at the same time from different users, you
On Thu, Jan 6, 2011 at 12:36 PM, Jerome Covington jeromecoving...@gmail.com
wrote:
I was specifically curious if there are frameworks which use the convention
of passing config objects to functions/methods in the same way that
contemporary JS libraries like jQuery do.
We use Zend Framework
On Wed, Jan 5, 2011 at 10:35 AM, Daniel Brown danbr...@php.net wrote:
On Wed, Jan 5, 2011 at 11:32, David Harkness davi...@highgearmedia.com
wrote:
I do have to say that NetBeans more than Eclipse will randomly become
unusable for unknown reasons: disk and CPU activity spike,
code
On Wed, Jan 5, 2011 at 3:05 PM, tedd tedd.sperl...@gmail.com wrote:
I spent a couple of hours reviewing PHPStorm and it looks *very* promising!
Thank you for sharing your thoughts on PHPStorm. My main performance gripe
with NetBeans has lessened in the year I've been using it, so I'm less
On Wed, Jan 5, 2011 at 3:27 PM, Nathan Nobbe quickshif...@gmail.com wrote:
if($cachedConfig !== null)
{
// load file and store value(s) in $cachedConfig
}
No config for you ... one year!
Sorry, couldn't resist. :p
To expand on Nathan's excellent strategy, you could go one further
1 - 100 of 149 matches
Mail list logo