Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. You do realize this board is for critique of your site's design?
  2. This topic has been moved to Other Libraries and Frameworks. http://www.phpfreaks.com/forums/index.php?topic=327894.0
  3. Undefined index means exactly what it says. The index "BLAH" does not yet exist within the $_GET array. You need to check for it's existence before attempting to use it's value. if (isset($_GET['BLAH'])) { // safe to use }
  4. This topic has been moved to CSS Help. http://www.phpfreaks.com/forums/index.php?topic=327840.0
  5. Firstly, eregi is deprecated you should use preg_match instead. Secondly, the first argument to eregi (and preg_match) is a string, strings are surrounded by quotes in PHP.
  6. This topic has been moved to PHP Applications. http://www.phpfreaks.com/forums/index.php?topic=327786.0
  7. This topic has been moved to CSS Help. http://www.phpfreaks.com/forums/index.php?topic=327728.0
  8. isset() will never return the string '1'
  9. This topic has been moved to Other. http://www.phpfreaks.com/forums/index.php?topic=327155.0
  10. Your action will need to point to a php script that sends the email. See http://php.net/mail
  11. You need to check your query returns a result before you go ahead and use it.
  12. Drupal is definitely not the first thing that comes to mind when I think about well designed applications. Have you ever heard of constants? These are perfect for storing simple strings and accessing them from anywhere. There is an entire series covering the basic design patterns on our main site (http://www.phpfreaks.com/tutorials/page2). There's an article there covering the singleton.
  13. This topic has been moved to PHP Installation & Configuration. http://www.phpfreaks.com/forums/index.php?topic=326567.0
  14. This topic has been moved to Installation in Windows. http://www.phpfreaks.com/forums/index.php?topic=326869.0
  15. You are of course accessing these files via a url and not a file path?
  16. This topic has been moved to Ajax Help. http://www.phpfreaks.com/forums/index.php?topic=326913.0
  17. So your looking for a global location to store a connection? IMO you would be better of creating a connection factory that on first call creates a connection, subsequent calls return that same connection.
  18. trq

    ssh to mysql

    I would be pretty unhappy about not getting shell access to my dev environment. Production I can understand, but dev, I should have access and the admin should be good enough to know how to secure it properly.
  19. This topic has been moved to PHPFreaks.com Questions, Comments, & Suggestions. http://www.phpfreaks.com/forums/index.php?topic=326917.0
  20. trq

    With xampp

    From there website: http://cakephp.org
  21. Your still missing the point. You could use a normal self created array. $_SERVER does not persist content you have added to it across requests. $_ENV will if you actually add these values to your environment through Apache directives.
  22. trq

    With xampp

    Xampp has nothing to do with Cake, however it looks like you either have an old version of Cake, or Cake is just poorly coded. Are you using the latest version of Cake?
  23. Variables created outside of functions do not exist within functions. That's the point of functions, to create stand alone code. If you want to use $mode within your function you will need to pass it in as an argument. (And please, no one mention the globals keyword, globals break encapsulation)
×
×
  • 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.