PHP

Support group for those afflicted with PHP. Don't ask to ask, ...
Aug 5, 2012 12:14
so much fun, a guy's retagging all questions as just php, suddenly a lot of unread feeds in my reader
Aug 1, 2012 18:20
@hanleyhansen Don't you have ssh access to any server?
Aug 1, 2012 18:19
@hanleyhansen that would be one of the already-mentioned codepads
Jul 22, 2012 14:24
@BasicBridge check this out github.com/ircmaxell/PHP-PasswordLib
Jul 22, 2012 10:45
I've been using it in a few projects, but only for simple get/post requests. Check out the docs, if it fits your use case, try it.
Jul 22, 2012 10:44
Yes, it is. guzzlephp.org
Jul 22, 2012 10:43
It doesn't even get stored, that is not the purpose of the component, or of goutte. Check out guzzle.
Jul 22, 2012 10:41
Checking the source of goute/browserkit/domcrawler, it doesn't seem you can get the raw html out.
Jul 21, 2012 10:19
Wise choice :) It also provides a very good protection against sql-injection attacks.
Jul 21, 2012 10:16
If you're using something that supports prepared statements (like pdo or mysqli), that's your best option. If not, I find sprintf the easiest.
Jul 21, 2012 10:13
Did you consider $query = sprintf("SELECT * FROM table WHERE id=%d;", $id)?
Jul 14, 2012 12:49
@NikiC I can't explain it, but I started writing a question for server fault, and to get the error message I ran ./configure --with-openssl, and it's been working ever since :D
Jul 14, 2012 11:53
The /usr/include/openssl path is correct, it exists and it also has the evp.h mentioned in the error message.
Jul 14, 2012 11:52
@Bracketworks that sounds ok for me
Jul 14, 2012 11:52
That would be difficult on linux :D
Jul 14, 2012 11:51
@NikiC I got the same error, thanks for the hint, though.
Jul 14, 2012 11:47
libssl-dev is the same version
Jul 14, 2012 11:46
apt-cache says it's Version: 1.0.1-4ubuntu5.2
Jul 14, 2012 11:44
Google suggested installing openssl-dev, but 12.04 has no such package. I also found a hint to install libcurl4-openssl-dev, but it didn't help either.
Jul 14, 2012 11:42
I'm trying to build php5.4.4 on ubuntu 12.04. I have openssl and libssl-dev installed, but if I add --with-openssl to the configure parameters I get: "Cannot find OpenSSL's libraries". If I try with --with-openssl=/usr/include/openssl I get "Cannot find OpenSSL's <evp.h>". Can someone help?
Sep 19, 2011 11:32
I'm sure you meant hashing :P my choice is salt+sha1
Sep 11, 2011 12:12
to help marking places I do want to do an assignment, I use if (($foo = bar())), so double brackets (also silences netbeans' warning)
Sep 11, 2011 12:10
convention is project-specific
Sep 11, 2011 12:09
it also prevents accidents like if ($foo = 'bar')