Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. Variables are not required to be within quotes, so the later example is fine. Also, you could just as easily store this file within your web root, as I said, as long as it's not served as plain text it's contents will not be visible. Of course, it however going to be safer to store it outside your web root in case your server suffers a misconfiguration and starts serving PHP as plain text. Where outside your web root does not matter.
  2. As long as the file isn't served as plain text it won't be viewable.
  3. This topic has been moved to PHP Applications. http://www.phpfreaks.com/forums/index.php?topic=331158.0
  4. This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=331032.0
  5. trq

    mobile site

    http://jquerymobile.com/
  6. I'm not even going through all that, I'll just show you how to error check a select query. $sql = "SELECT fld FROM tbl"; if ($result = mysql_query($sql)) { if (mysql_num_rows($result)) { // $result is good to use. } else { // no results found, display message. } } else { // query failed, handle error. }
  7. If you want help with your code your going to have to post it. The error is generally caused by not checking your query has been successful before using it's result.
  8. This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=330907.0
  9. This topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=330834.0
  10. This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=330778.0
  11. This topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=330820.0
  12. When they login? Most intranet applications Ive dealt with authenticate against LDAP.
  13. You can retrieve a Windows username in PHP providing you are using HTTP authentication and your user has logged in accordingly. There username will turn up within $_SERVER['PHP_AUTH_USER'].
  14. This topic has been moved to CSS Help. http://www.phpfreaks.com/forums/index.php?topic=330719.0
  15. This topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=330625.0
  16. This topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=330627.0
  17. This topic has been moved to Other Web Server Software. http://www.phpfreaks.com/forums/index.php?topic=330622.0
  18. Can we see some relevant code?
  19. You'll have to background the process. Nothing to do with PHP. In Linux you would append & to the end of the command, Windows, I have no idea but I'm sure if you Google it you will find it.
  20. Because classes get there own scope your methods can be named whatever you like.
  21. Wordpress is an open source CMS/Blog platform. See http://wordpress.org
  22. This topic has been moved to HTML Help. http://www.phpfreaks.com/forums/index.php?topic=330478.0
  23. This topic has been moved to Application Frameworks. http://www.phpfreaks.com/forums/index.php?topic=330453.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.