logs archiveIRC Archive / Freenode / #php / 2015 / July / 24 / 1
laszlof
Viper-7: http://pastebin.com/xFADJAzr <- modified version that takes password lists from command line. :)
boingolov
So has anyone run into an issue with the php mysql pdo driver (not mysqlnd) where it seems to ignore column collation? for instance, I have a column with latin1_bin defined collation with a uniqueness constraint on it
if I insert into that column using the mysqlnd driver, it honors latin1_bin and is case sensitive. if I insert into that column using mysql driver, it seems to ignore collation and throws a uniqueness constraint error even if the values differ in case
according to the mysql docs, it shouldn't even be possible for a connection / session level collation setting to override the one defined on the column
starmaze
is elseif a keyword in php?
not "else if" but "else if"
"elseif"
NoiseEee
Pupp3tm4st3r
has someone here experience with building php from source?
jonez
Pupp3tm4st3r, that is a very rare thing to need to do.. are you sure?
starmaze
Pupp3tm4st3r: sure.
Pupp3tm4st3r: the documentation is utterly crap, but you can get by.
laszlof
use packages unless you have a very specific need for a compiled version
save yourself the maintenance headache
NoiseEee
Pupp3tm4st3r: whats the issue
         

Pupp3tm4st3r
okay here´s the case: In our company we have a jenkins server with 3 different PHP versions for testing purposes.
The one who built the machine has gone and I want to gain a little more experience
laszlof
what linux distro is it
Pupp3tm4st3r
another case is, that for another server it has to be built as fcgid implementation (is that with --enable-fcgi? )
acro458
Anyone know why Zend Guard Loader would show up in 'php -v', but not phpinfo() ? My website is stating that it is not installed....
Pupp3tm4st3r
debian
laszlof
ah
Pupp3tm4st3r: theres an fcgi extension
starmaze
Pupp3tm4st3r: just apt-get update/upgrade to keep php up to date.
laszlof
I was going to suggest SCL, but you're on debian
he needs multiple versions
cant do that easily with packages
NoiseEee
acro458: perhaps its specified in the CLI .ini file but not the webserveer one?
randomdrake
acro458: you can have different config files for CLI and Apache.
Pupp3tm4st3r
yeah but the devs need 5.5, 5.6 and some of them 5.7
starmaze
Pupp3tm4st3r: but if you want to build from source, just download it. cd into it. ./confige make --with-fpm sudo make install. That's pretty much it.
laszlof
Pupp3tm4st3r: there is no 5.7 :P
NoiseEee
Pupp3tm4st3r: what a wonderful use case for VMs
mchelen1
Pupp3tm4st3r: you can often apt-pin to an older package, and yeah i would break that out into 3 diff vms
starmaze
Pupp3tm4st3r: apt-get install php-older-version
TheMamboKing420
Hello everyone
Pupp3tm4st3r
yeah but the aim is, to have it in one machine...as its working now :/
acro458
I think I got the correct one, because I added a .ini file in /etc/php.d , and phpinfo() reads it
mchelen1
hullos
         

starmaze
Pupp3tm4st3r: do not use older versions for production. PHP have issues with security. Other scripting languages are better if that's your plan.
mchelen1
5.5 and 5.6 are both stable versions
acro458
it comes up properly in php -m as well
Pupp3tm4st3r
yeah, and i don´t want to use older versions, its the wish of our devs because one of our hosters still uses 5.5
NoiseEee
acro458: and is the extension specified in that file?
acro458: (and did you restart the webserver)
mchelen1
anyway yeah thats what VMs are for
TheMamboKing420
I am new to php and I am trying to write a wordpress plugin that would allow me to execute a shell script server side once installed and activated. However I just can't seem to get it to work.
acro458
I restarted webserver
starmaze
just make sure 5.5 are patched (if for production) since PHP has some source code problems causing it to be insecure.
NoiseEee
lol TheMamboKing420
Pupp3tm4st3r
another question: whats the main difference between fastcgi, fcgid and php-fpm? that confuses me quite a lot
acro458
In phpinfo() it lists /etc/php.d/ZendGuard.ini as an .ini file it parsed
FalsAlarm
do sessions work if the user has cookies disabled?
NoiseEee
acro458: and in that ini file, is the path to the .so specified as well?
TheMamboKing420
Why lol?
acro458
zend_extension=/usr/lib64/php/modules/ZendGuardLoader.so zend_loader.enable=1
TheMamboKing420
The shell script is supposed to copy into the /tmp directory and then execute the script from there so that way it can install and configure wordpress with piwik.
NoiseEee
TheMamboKing420: you might want to check wordpress support
TheMamboKing420
They just sent me here.
lol
acro458
I have been searching everywhere.... I tried putting these in the php.ini file, tried making my own ini file.....nothing works
TheMamboKing420
They said there is nothing wordpress wise that would hinder what I want to do and that it may be a php configuration that I am either messing up or missing.
NoiseEee
TheMamboKing420: so when you say you cant get it to work, what error messages are you getting?
acro458: and the .so is the correct version for your version of PHP?
acro458: and that path does in fact exist?
acro458
yes
5.4
yes, path exists
TheMamboKing420
I have to boot up the vm one moment.
acro458
ZendGuardLoader-70429-PHP-5.4-linux-glibc23-x86_64.tar
NoiseEee
acro458: and you did "phpize" and all that business?
acro458
ummm
whats that?
NoiseEee
acro458: well when you unpack the .tar, presumably you have to phpize/configure/make/make install
TheMamboKing420
Is there a way to read more specific information on errors. I am getting something like this plugin generated 9 characters of unexpected output.
NoiseEee
or perhaps just phpize/configure/make @ acro458
TheMamboKing420
When installing the custom plugin in wordpress.
acro458
when I unpacked the .tar, there was a ZendGuardLoader.so file in there I just moved the file
sorabji
TheMamboKing420: check error logs
NoiseEee
acro458: hmm, well maybe google for some ZendGuard forums or something
TheMamboKing420
Im not sure how to do that.
Still learning
NoiseEee
acro458: i mean, zend guard is rather LOL anyhow
sorabji
web server logs TheMamboKing420
Bittarman
acro458
yah, but its required for the software I need to use :/
I dont think that applies to me
im using PHP 5.4
z1haze
What would be the 'easiest' framework for a fairly new php user to learn?
sorabji
z1haze: try a few, see what you like
z1haze
Well I have no direction
sorabji
sure you do
z1haze
Im just trying to learn a good foundation, so Id like to start with the most simple but decent framework
merkazu
why not vanilla php? :)
z1haze
I know how to write functions, classes, basis nothing too fancy.
well because Id like to start building full websites
TheMamboKing420
here is the plugin so far, am I missing something stupid like not entering in the php code correctly? http://pastebin.com/RhMyzKGw
z1haze
For example there is this free 'cms' that a lot of users I know use, and going through it I could have written it all its not very complicated. but he duplicates code on multiple pages, and I know that using frameworks you can keep from having to do that
merkazu
there's laravel, zend framework 2 (3 in Q3), symphony 2. those are the beefy ones i know off the top of my head
z1haze
« prev 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 next »