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=315101.0
  2. a) Create a method which uses return to return the desired data. b) We would need more details before we could help. c) You will need to instantiate that object, then pass it into the object which needs to use it. Looking over your code a little I see the use of the global keyword. This is never a good idea and in particular when attempting to write OOP. It completely breaks the idea of encapsulation and make your code completely un-reusable.
  3. I'm sure Gmail uses non default ports, you should investigate.
  4. This topic has been moved to Application Design. http://www.phpfreaks.com/forums/index.php?topic=315057.0
  5. You don't have too (and probably shouldn't) use braces around there arguments.
  6. None of the include / require family return a bool on success or failure.
  7. Well, it appears to be empty.
  8. Where is $cts defined?
  9. This topic has been moved to mod_rewrite. http://www.phpfreaks.com/forums/index.php?topic=314980.0
  10. Columns are not string, they don't need quotes around them. if ($type == "ADDED") { mysql_query("UPDATE players SET ND_POINTS = ND_POINTS+$amount WHERE PLAYER_NAME = '$username'"); } else { mysql_query("UPDATE players SET ND_POINTS = ND_POINTS-$amount WHERE PLAYER_NAME = '$username'"); }
  11. This topic has been moved to PHP Coding Help. http://www.phpfreaks.com/forums/index.php?topic=314872.0
  12. IMO you would be much better of simply buying an access point and making sure the server is within the same network.
  13. That would mean that mod_rewrite would need to check for the existence of a record within your database, that's what PHP is for.
  14. You will need a wireless access point (whether that be part of the server or not is up to you, and doesn't really matter).
  15. Can you send email via mailx on the command line?
  16. This topic has been moved to PHP Coding Help. http://www.phpfreaks.com/forums/index.php?topic=314951.0
  17. You should check your query actually found a result using mysql_num_rows.
  18. You would need to execute a cron job every minute say, and have it check the database to see what messages are due to be sent.
  19. This topic has been moved to PHP Regex. http://www.phpfreaks.com/forums/index.php?topic=314913.0
  20. I don't have enough information to say so, but in general, I wouldn't think so.
×
×
  • 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.