[PHP] Is an E_STRICT warning when overwriting a static method with a different parameter list desired?

2009-09-20 Thread Martijn Evers
Hi, I was wondering if an E_STRICT error is desired when a static method is overwritten with a other parameter list. The error I'am getting is: "Strict Standards: Declaration of Sub::doSomething() should be compatible with that of Base::doSomething()" When I run this code: -

Re: [PHP] concat and join stuff

2009-04-11 Thread Martijn Korse
This is not really a PHP question, but a mysql question. Anyways, your query should work, as far as i can see. If you give the structure dumps and some relevant data dumps i don't mind to give it a try here. - http://devshed.excudo.net http://devshed.excudo.net -- View this message in con

Re: [PHP] user access/roles/privs functionality

2008-11-21 Thread Martijn Korse
bruce-60 wrote: > > Hi list... > > I need a way of managing users/teams/etc.. implementing roles/access > rights/privs,etc... Have a look at Zend_Acl: http://framework.zend.com/manual/en/zend.acl.html - http://devshed.excudo.net http://devshed.excudo.net -- View this message in context

Re: [PHP] mySQL query question

2008-11-14 Thread Martijn Korse
I would create a separate table for this (confirmation_numbers or something) with an autoincrement primary key. That way you can simply insert a new record for you contact and then ask (using mysql_insert_id()) what the confirmation number is. This approach is much safer as you can be 100% sure th

Re: [PHP] Weird pdo-mysql behavior

2008-11-14 Thread Martijn Korse
I agree, add some checks in your testcase so you can track exactly what is happening and see of what type your variables are. Also, try what happens when you - switch off persistent-connections (PDO::ATTR_PERSISTENT=> false) - pass the object by reference (getClientFullName($id,&$dbh)) - htt

Re: [PHP] Weird pdo-mysql behavior

2008-11-13 Thread Martijn Korse
What do you mean with 'stops working'? Also, have you created a test-script that only contains (what you think is) the core-problem? If so, can you paste it here? And if not, i advise you to make one, so you can exclude that other factors play a role here. Thodoris wrote: > > Hi list, > I

Re: [PHP] ImageMagick functions

2008-10-27 Thread Martijn Korse
These classes contain methods which are just normal functions only residing in a class. pichoscosama wrote: > > When I look at online documentations of PHP I can not see ImageMagick > functions. Only classes. What happened? > > -- > Allah varsa çocuklar neden ölüyor ki? > > -- > PHP Ge

Re: [PHP] Building an array, kind of?

2008-10-25 Thread Martijn Korse
Or, if your mysql version allows it: SELECT 1, GROUP_CONCAT(some_col) FROM history GROUP BY 1 LIMIT 0,16 That would take away the need to create a comma seperated string in php, because mysql will have already done it for you ;-) Dan Shirah wrote: > > TGIF? > > Apparently my brain isn't work

[PHP] Re: re[PHP] declare classes dynamically

2008-10-22 Thread Martijn Korse
Defining multiple classes with the same name but different implementation doesn't seem like a good idea to me. Why did you choose to do this? also, have a look at this function: http://www.php.net/autoload i'm not sure what you're trying to accomplish exactly, but whatever it is, it might be hel

[PHP] Re: reconfigure not showing in phpinfo

2002-12-13 Thread Martijn Grendelman
n't correctly > displaying the current config. Since the old C object files (*.o) were probably still around, a lot of code wasn't compiled again, so your phpinfo() function probably wasn't either. To start from scratch, run 'make distclean'. You may want to backup some fi

[PHP] Re: protect downloadable files

2002-12-12 Thread Martijn Grendelman
php?file=filename.zip filename.zip should reside in the $filedir. You should also have a function get_mime_type() that returns the MIME type of the file, or just set the type to "application/x-zip" if you only serve ZIP files. Regards, Martijn. -- PHP General Mailing List (http

Re: [PHP] phpinfo page doesn't display anything

2002-12-12 Thread Martijn Grendelman
.php > Look at the HTML source of that page: In other words: PHP doesn't work at all, or, like someone else pointed out, the short tag doesn't work and you should use Regards, Martijn. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] phpinfo page doesn't display anything

2002-12-12 Thread Martijn Grendelman
"Jody Cleveland" <[EMAIL PROTECTED]> schreef in bericht 84CFA712F666B44A94CE6BE116BAF4B0B4E0A5@MAIL">news:84CFA712F666B44A94CE6BE116BAF4B0B4E0A5@MAIL... > > You're calling it through a web server, right? > > Yup: > http://email.winnefox.org/wals/info.php > Look at the HTML source of that page:

[PHP] Re: Restarting a daemon in PHP

2002-12-12 Thread Martijn
ss the website again. Does anyone know of a good workaround? I encountered the same behaviour after sending mail from a PHP webmail client. I'm puzzled, too... Regards, Martijn. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: a good imap library?

2002-12-11 Thread Martijn
ing that is OO. Not as mature, but maybe usable (it's OO to some extent): Mr.Mail - http://www.grendelman.net/projects/mrmail/. (This is actually a shameless plug, because I wrote it myself. I'm looking for feedback, too...). Regards, Martijn. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] htmlspecial chars does not work on server

2002-03-12 Thread Martijn Damen
tem' '--with-ttf=/usr/lib/libttf.so' '--enable-track-vars' '--enable-xml' '--disable-debug' '--with-libdir=/usr/lib' '--with-db3' '--with-interbase=shared' '--with-mysql=shared' '--with-pgsql=shared' '--with