Jump to content

Daniel0

Staff Alumni
  • Posts

    11,885
  • Joined

  • Last visited

Everything posted by Daniel0

  1. error_reporting( will only show errors of type E_NOTICE (cf. http://php.net/manual/en/ref.errorfunc.php#errorfunc.constants).
  2. It might be a good idea to read the entire Language Reference chapter in the manual
  3. How doesn't it work? Are there any errors? Does the actual result differ from the expected result?
  4. I wouldn't bother with supporting PHP4. Just specify PHP5 as a system requirement, it's not that different from all sorts of other system requirements software may have.
  5. You could use an access control list (ACL). You could implement this yourself or use something which is already made. First result on Google for "php acl" is this. The frameworks Zend Framework and CakePHP has ACL implementations as well.
  6. Either output it "nicely" or use tidy[/tt]. There is no reason to add the extra overhead though.
  7. What does it do?
  8. I believe Opera has voice commands.
  9. Through Google I found this: http://www.assembla.com/
  10. OOP is not a language so we cannot show you the difference between OOP and PHP.
  11. Don't create a table for each user. Just make a column called user_id in the question table.
  12. It's probably cached. Try to clear it and refresh.
  13. Depends what kinda newbie you are. I am a newbie to php but I have worked with html for a while so I find gedit easiest or notepad if I am in windows. What would be useful is for something that will let me open my files in firefox or internet explorer is i have to as atm it just gives me a download box. Notepad sucks as well. It can only open files with CRLF style line breaks.
  14. There are several other topics which deal with this topic. E.g. http://www.phpfreaks.com/forums/index.php/topic,54859.0.html and http://www.phpfreaks.com/forums/index.php/topic,119433.0.html No offense, but WYSIWYG is crap.
  15. No. Example: Person is born at June 1st, 2000. The current year is 2008, so if you say 2008-2000 then you'll have calculated the persons age to be 8, but it has not yet been the person's 8th birthday this year, so the actual age is 7. Barand's calcAge() takes that into account.
  16. It's impossible. People could always just check the source and get it from there.
  17. You need 10.
  18. According to RFC2119 "SHOULD NOT" does not mean it's not allowed so you can serve XHTML 1.1 as text/html. Besides, you can just send another content-type header, so I don't see any problem. Also, where do you see that HTML 4.01 Strict is "more strict" than XHTML 1.0 Strict?
  19. Bla bla bla... as long as W3C says it's okay it's okay. And W3C's validator doesn't complain about XHTML 1.0 served as text/html. Also, check out what mime type w3.org is served as, yeah, text/html and it's DOCTYPE is XHTML 1.0 Strict.
  20. It doesn't turn it on, but it'll work like that. I strongly recommend against it though.
  21. There is a reason why register globals is turned off by default in PHP5 and removed in PHP6. It's bad style and opens up for a variety of security issues. Just use the superglobals.
  22. I know, I just pointed it out. The codebox content is readable so I don't really care.
  23. 1) You don't have to, but you could have an abstract class called Login and then have some sub-classes called Login_None, Login_Simple and Login_User. 2) I'd say one class per file. 3) You could use a registry, a singleton or you could pass the object as an argument to the method.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.