3 ms·
Yeah - just you. (jk :-) Problem with PHP (for me) is that you gotta install Apache to make it work.
by andyl 14y ago
Yeah - just you. (jk :-)
Problem with PHP (for me) is that you gotta install Apache to make it work.
- thefreeman 14y agoActually as of 5.4 it has a built in web server you can use at least for development http://php.net/manual/en/features.commandline.webserver.php http://php.net/manual/en/features.commandline.webserver.php
- skore 14y agoProblem with PHP is he loaded the nouns list outside of the function. Not sure whether he tested the code at all ;-)
- adambard 14y agoNot the PHP code, no. I can only guarantee that it almost works.
- skore 14y agoAnd I can guarantee that it's a lot of these PHP Notice: Undefined variable: nouns in nurble.php on line 12 PHP Notice: Undefined variable: nouns in nurble.php on line 12 PHP Notice: Undefined variable: nouns in nurble.php on line 12 PHP Notice: Undefined variable: nouns in nurble.php on line 12 PHP Notice: Undefined variable: nouns in nurble.php on line 12 ;-) (Also: check out explode() instead of preg_split() and with a simple pattern like this, str_ireplace might be faster, as might be searching for the word in the whole text file instead of converting it into an array.)
- mscarborough 14y agonginx is pretty great w/ PHP. both as a general server and a reverse proxy. is apache not cool anymore? i've done some pretty beast installations and apache handled them just fine.