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 Installation in Windows. http://www.phpfreaks.com/forums/index.php?topic=318822.0
  2. Do you need to authenticate to use this server? if you do, you'll need to use another means like PHPMailer (google it). If not, just change the smtp settings within your php.ini.
  3. This topic has been moved to Other. http://www.phpfreaks.com/forums/index.php?topic=318815.0
  4. $_GET already is an array. I'm not sure what the rest of your question is.
  5. $u_name & p_word do not exist within the checkEmpty() method. ps: Just because your using classes doe snot mean your code is OOP. This is fare from well designed code. You are creating new Users so you should likely have a User class. The form validation stuff belong on a form validation class, it has nothing to do with creating a new User.
  6. This topic has been moved to PHP Coding Help. http://www.phpfreaks.com/forums/index.php?topic=318804.0
  7. copy.
  8. Besides the issue posted, why on earth are you executing 5 queries when you could be getting all the information you need in 1?
  9. Yes. Some languages call them hashes.
  10. I wouldn't use or die() for anything. There's numerous posts around saying why. The method I suggested is (IMO) the correct way. <?php $username = 'LoserVille'; $password = 'password'; $myQuery = "SELECT account_id FROM user_accounts WHERE username = '$username' AND password = '$password'"; if ($result = mysql_query($myQuery)) { if (mysql_num_rows($result)) { // user exists } else { // no user found } } else { // query failed. trigger_error(mysql_error() . "<br />$myQuery"); } ?>
  11. Firstly the comparison operator is == not = secondly, x is not defined anywhere within your function.
  12. This topic has been moved to Third Party PHP Scripts. http://www.phpfreaks.com/forums/index.php?topic=318780.0
  13. This topic has been moved to PHP Applications. http://www.phpfreaks.com/forums/index.php?topic=318784.0
  14. Neither are particularly good because you never check that the query succeeds before using its result. But yeah, once you do that, you'll want to check the number of rows returned.
  15. This topic has been moved to mod_rewrite. http://www.phpfreaks.com/forums/index.php?topic=318793.0
  16. .htaccess files are simply a configuration file that applies it's configuration directives to the directory it is within. Apache uses a cascading type of configuration something like (locations and names may differ depending on your distribution) .... /etc/apache2/httpd.conf - global settings /etc/apache2/vhosts/sitename.conf - domain wide settings /var/www/sitename/htdocs/*/.htaccess - directory specific settings. When you look at a directive within the manual (which you should be checking) it tells you what context you can apply that setting too. You can (and should) read about context here: http://httpd.apache.org/docs/2.0/mod/directive-dict.html#Context
  17. This topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=318755.0
  18. My first question would be why are you using php for this?
  19. What is the problem exactly? Both RewriteCond and RewriteRule can be used within the global httpd.conf file.
  20. Without a mail server you will need to use a third party script like PHPMailer (google it) to send mail via your internet providers (or any other provider really) host. PHP's mail function does not provide that ability to use authentication which any well configured mail server will require.
  21. Can you post the code that is actually producing the parse errors?
  22. This topic has been moved to mod_rewrite. http://www.phpfreaks.com/forums/index.php?topic=318730.0
  23. Is this server going to be used for production or just development?
  24. The specs you have provided do not read at all like any virtual private server.
  25. This topic has been moved to Third Party Scripts. [iurl=http://www.phpfreaks.com/forums/php-math-help/please-slove-318675/]http://www.phpfreaks.com/forums/php-math-help/please-slove-318675/[/iurl]
×
×
  • 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.