On 7 December 2010 07:19, Nathan Nobbe quickshif...@gmail.com wrote:
On Mon, Dec 6, 2010 at 5:26 PM, Daevid Vincent dae...@daevid.com wrote:
I got a little 'hack' further, but not loving it. Maybe I'll move the image
to a $_SESSION variable and then have the gdtest.php pull it and echo it
In many other languages this will work:
*$result = new Object() - method();*
But in php, it fails at parsing.
I've tried with parenthesis around new but nothing. Anyhow, as I saw later,
*new* operator has precedence over others so this couldn't be a solution.
I know a static function can be
On Tue, Dec 7, 2010 at 10:40, Alexandru Patranescu dreal...@gmail.com wrote:
but is there any way to write it directly? and if not, why isn't this
implemented yet and when will it be?
That kind of chaining has not yet been implemented in PHP --- but
it's being discussed and voted now, as a
Try with
$result = Object::method();
this is a static method in a class.
the operator - is access to a member in an object.
Gerardo.
On Tue, Dec 7, 2010 at 12:40 PM, Alexandru Patranescu dreal...@gmail.comwrote:
In many other languages this will work:
*$result = new Object() -
On 12/7/2010 7:40 AM, Alexandru Patranescu wrote:
In many other languages this will work:
*$result = new Object() - method();*
But in php, it fails at parsing.
I've tried with parenthesis around new but nothing. Anyhow, as I saw later,
*new* operator has precedence over others so this
I know how to do it in other ways.
I was just wondering why the simple new Object() - method won't work. new
operator has precedence over...
That must be the problem. - is not an operator. Is not in this list:
http://php.net/manual/en/language.operators.precedence.php
That must be done. -
On Tue, Dec 07, 2010 at 11:01:09PM +0200, Alexandru Patranescu wrote:
I know how to do it in other ways.
I was just wondering why the simple new Object() - method won't work. new
operator has precedence over...
That must be the problem. - is not an operator. Is not in this list:
On Tue, Dec 7, 2010 at 1:55 PM, Paul M Foster pa...@quillandmouse.comwrote:
Here is an example from their [CodeIgniter] user manual:
$this-db-select('title')-from('mytable')-where('id', $id)-limit(10,
20);
This is known as a fluent interface because it attempts to make your code
read more
Hi everyone
I am hacking my way through something unrelated to this post.. but
needed to stop and (real quick) pass-protect a page to use it to run
some quick (*admin-only*) scripts on a shared host.
..and I see now how poor is my understanding of what seems like basic
stuff. As a start
Hi,
I'm migrating a web application written for PHP4 to PHP5. I've turned on
E_STRICT to have a detailed look at all the code thoroughly. I have a
number of 'Notices' and 'Strict Standards' messages appearing now.
I don't consider myself a PHP guru by any means so I'm seeking help with
In getCategoryTypes() you're assigning a reference to the return value of
getContentTypes(), and PHP doesn't like that. You can return a reference to
a variable from a function, but taking the reference of a *value* is
meaningless since you can only create references to variables. Just remove
the
Hi.
What can cause that no parse error gets displayed (blank page/no output
at all) even though error reporting is set to -1?
I have run the script through php lint on the console and it comes up
with no errors.
I have run into this problem the last couple of days making debugging a
nightmare.
Thanks David.
If my understanding is correct, then:
SPControlPanel::getContentTypes($db);
is a reference to a static instantiation of the class. If so, then it
must be syntactically something like when using 'new' (which returns a
reference) so there's no need to apply the operator. Am I on
wats the setting of display_errors php.net/display_errors ?
if you are not getting any output it might be because of a simple
parse error (mismatched brackets, misplaced semicolon etc) or an
exit/die command
Kranthi.
http://goo.gl/e6t3
--
PHP General Mailing List (http://www.php.net/)
To
you script looks (and works) fine. so i dont think the problem is in your script
I found firebug/live http headers firefox addons to be helpful in this situation
see if your client is actually sending Authorization Basic header
Kranthi.
http://goo.gl/e6t3
--
PHP General Mailing List
15 matches
Mail list logo