Skip to content

Tag: php

Select from MySQL records that sums

I’m using PHP and MySQL. I have a table named quantity. Inside there are records of product name, product price and product quantity. Besides these, there are a few others that helps me select the last records based on date and position, as well as a GROUP BY the field named price because there are diff…

geoip + pecl + 64 bits box

Has anyone tried to install geoip over pecl on a 64bits box? I can install geoip just fine using these commands on my 32bits fedora box. I can’t on the 64bits version. Any ideas why? yum install make gcc cpp gcc-c++ glibc glibc-headers php-pear php- devel geoip geoip-devel pecl install geoip => on th…

How to use $_SERVER[‘REQUEST_URI’]

Is there any difference between typing: or or ? They all work… I use the first one. Maybe one is faster than the other? Answer Without quotes PHP interprets the REQUEST_URI as a constant but corrects your typo error if there is no such constant and interprets it as string. When error_reporting includes …