Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. This topic has been moved to JavaScript Help. http://www.phpfreaks.com/forums/index.php?topic=306558.0
  2. This topic has been moved to PHP Applications. http://www.phpfreaks.com/forums/index.php?topic=306565.0
  3. You mean you want someone one of us to make the text box value equal zero? $("#radio-button").click(function(){ $("#text-box").val("0"); });
  4. This topic has been moved to PHP Regex. http://www.phpfreaks.com/forums/index.php?topic=306546.0
  5. This topic has been moved to Third Party PHP Scripts. http://www.phpfreaks.com/forums/index.php?topic=306553.0
  6. This topic has been moved to Linux. http://www.phpfreaks.com/forums/index.php?topic=306518.0
  7. Been a while Busy, Your going to need to be allot more descriptive with your issue. As dolrichfortich has pointed out, your example code won't work, so makes little sense.
  8. That seems a very confusing and limiting method. Most frameworks use the PEAR naming convention which makes it VERY easy to place files wherever you like as long as its on the include path. Controllers, views, and models however are likely to require there locations to be configurable, though I guess it depends on the framework. Some frameworks prefer convention over configuration which usually makes them easier to use. You simply force users to do it your way. However, force to hard, and users will break the rules, hack your framework, or move on to something less restrictive.
  9. Ive found it pretty slow compared with other languages but there is a gtk implementation for php. http://gtk.php.net/
  10. This will keep resetting the array as well. $_SESSION['background'] = array ( "<img src='sundragon_environments/ocean/ocean1_FRAME.jpg'/>", "<img src='sundragon_environments/ocean/ocean1_FRAME2.jpg'/>" ); Needs to be.... if (!isset($_SESSION['background'])) { $_SESSION['background'] = array ( "<img src='sundragon_environments/ocean/ocean1_FRAME.jpg'/>", "<img src='sundragon_environments/ocean/ocean1_FRAME2.jpg'/>" ); }
  11. This topic has been moved to JavaScript Help. http://www.phpfreaks.com/forums/index.php?topic=306496.0
  12. You need to call session_start before you can make use of the $_SESSION array. You should also be using isset instead of empty and checking for values, not a lack of. if (isset($_POST['further'])) { $currentBackground=next($_SESSION['background']); } if(isset($_POST['back'])) { $currentBackground=prev($_SESSION['background']); }
  13. This topic has been moved to Other Libraries and Frameworks. http://www.phpfreaks.com/forums/index.php?topic=306490.0
  14. Like all things php, the $background array doesn't persist across requests. So calling prev() or next() isn't going to work, because upon each request the internal pointer within the $background array will be reset. You would at minimum need to store your images within the $_SESSION array which IS persistent. Really though, this would all be better done using Javascript instead of php.
  15. http://ryanfait.com/sticky-footer/
  16. I would be more inclined to create a single file to define your connection. Do a text search, find all places where a connection is made, replace it with a include your single connection file.
  17. I don't see where $emailrcpt is defined.
  18. No. Though doing so will mean you won't have to set the timezone in every script.
  19. trq

    How to increase inode

    What filesystem are you using? You might take a look at tune2fs but I'm really not sure this will be achievable without formatting the drive.
  20. * 3 * * * would execute every minute between 3:00am and 3:59am, you want 0 3 * * *
  21. This topic has been moved to PHP Installation & Configuration. http://www.phpfreaks.com/forums/index.php?topic=306390.0
×
×
  • 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.