I'm trying to build a PHP site and I'm wanting to test my PHP files without uploading them to my host. Basically testing them on my own machine before I upload them. How do I do that?
Answers
When you access something in a class the PHP interpreter first has to find the class in memory and then look where the attribute is. On a plain local variable it doesn't need to search the attribute inside the class it can just access the memory of the variable directly and so it is a little faster.
Your PHP version probably does not support blowfish hashing for crypt. The $2a$ in the output suggests you're trying to use CRYPT_BLOWFISH which may not be available on both platforms.
http://uk.php.net/crypt
A bug was fixed in PHP 5.3.2:
Fixed Blowfish behaviour on invalid rounds to return "failure" string ("*0" or "*1"), instead of falling back to DES.
So i'd guess the hash from your server is falling back to DES, since it contains only the first 2 characters of your salt.
"127.0.0.1" is the address for the loopback interface. It's only available on the same machine. You need to listen on all interfaces (loopback, eth0, etc) by binding the socket to "0.0.0.0".
To solve SENT: 550550 The address is not valid.
problem, you have to set sendmail_from
to a valid mail address in php.ini
file.
To solve SENT: 530 SMTP authentication is required
problem, open hMailServer Administrator. Go to Settings->Advanced->IP Ranges->My Compter. Disable all options under "Require SMTP authentication" section.
Install and run XAMPP: http://www.apachefriends.org/en/xampp.html