Archive for the 'Php' Category

PHP 4.4 r??µl??µ??°s??µd

Monday, July 25th, 2005

??k s?? this is ??° f??µw w??µ??µks b??µhind, but PHP 4.4.0 w??°s r??µc??µntly r??µl??µ??°s??µd, which is pur??µly ??° bugfix r??µl??µ??°s??µ.

It ??°ddr??µss??µs ??° s??µri??us m??µm??ry c??rrupti??n pr??bl??µm within PHP c??nc??µrning r??µf??µr??µnc??µs.

* PHP 4.4 R??µl??µ??°s??µ ??°nn??unc??µm??µnt

Just ??° quick n??t??µ th??°t th??µ first r??µl??µ??°s??µ c??°ndid??°t??µ ??f PHP 5.1 isn???„?t t???? f??°r ??°w??°y n??w ????? th??µ 3rd b??µt??° w??°s r??µl??µ??°s??µd ??° f??rtnight ??°g?? with th??µ ??µxp??µct??°ti??n ??f RC1 v??µry s????n.

PHP turns 10

Wednesday, June 8th, 2005

T??d??°y PHP turns 10. R??°smus L??µrd??rf r??µl??µ??°s??µd th??µ ??rigin??°l PHP/FI (P??µrs??n??°l H??m??µ P??°g??µ / F??rm Int??µrpr??µt??µr) s??urc??µ c??d??µ ??n Jun??µ 8, 1995.

Searching Google with the Google API

Sunday, January 9th, 2005

This ??°rticl??µ c??v??µrs p??µrf??rming s??µ??°rch qu??µri??µs ??n G????gl??µ using th??µir ??PI. This m??µ??°ns y??u c??°n tr??°nsp??°r??µntly run ??° G????gl??µ s??µ??°rch in th??µ b??°ckgr??und, ??°nd th??µn pr??µs??µnt th??µ r??µsults t?? y??ur us??µrs h??w??µv??µr y??u w??°nt t??.

Th??µ G????gl??µ ??PI is ??° S????P w??µb s??µrvic??µ. S????P (Simpl??µ ??bj??µct ??cc??µss Pr??t??c??l) is ??°n XML sch??µm??° us??µd f??r c??°lling ??° r??µm??t??µ pr??c??µdur??µs (usu??°lly) ??v??µr th??µ w??µb. In this c??°s??µ, th??µ r??µm??t??µ pr??c??µdur??µ is G????gl??µ s??µ??°rch.

T?? ??°chi??µv??µ this, th??µr??µ ??°r??µ ??° f??µw things w??µ firstly n??µ??µd:

1. ?? G????gl??µ lic??µns??µ k??µy ????? This is y??ur ??wn k??µy f??r ??°cc??µss th??µ G????gl??µ w??µb s??µrvic??µ. T?? g??µt y??ur k??µy, visit th??µ G????gl??µ ??PIs p??°g??µ ??°nd cr??µ??°t??µ ??°n ??°cc??unt.
2. NuS????P ????? This is ??° S????P t????lkit f??r PHP. Using this s??°v??µs us ??°ll th??µ h??°ssl??µ ??f d??µ??°ling dir??µctly with S????P w??µb s??µrvic??µs. D??wnl????°d fr??m S??urc??µF??rg??µ.
In this ??°rticl??µ, w??µ ??°r??µ g??ing t?? cr??µ??°t??µ ??° singl??µ PHP script c??°ll??µd g????gl??µ.php, t?? simply d??µm??nstr??°t??µ h??w t?? qu??µry G????gl??µ. H??p??µfully using this inf??rm??°ti??n, y??u will b??µ ??°bl??µ t?? c??m??µ up with m??r??µ ??°dv??°nc??µd w??°ys ??f using th??µ ??PI.

Th??µ G????gl??µ ??PI d????µs ??ff??µr qu??µrying ??f th??µir c??°ch??µ, ??°s w??µll ??°s sp??µlling r??µqu??µsts, h??w??µv??µr, this ??°rticl??µ c??v??µrs ??nly p??µrf??rming s??µ??°rch??µs. If y??u???„?r??µ int??µr??µst??µd in th??µs??µ ??th??µr typ??µs ??f qu??µri??µs, y??u???„?r??µ b??µst ??f r??µ??°ding th??µ ??PI r??µf??µr??µnc??µ guid??µ.

To be continued…

Introduction to PHP

Saturday, January 8th, 2005

PHP is sh??rt n??°m??µ wh??°t is ??ffici??°lly c??°ll??µd “PHP: Hyp??µrt??µxt Pr??µpr??c??µss??r.” B??°sic??°lly PHP is ??° s??µrv??µr sid??µ scripting l??°ngu??°g??µ, using which y??u c??°n build dyn??°mic w??µbsit??µ’s. PHP c??°n c??nn??µct t?? v??°ri??us d??°t??°b??°s??µs, p??µrh??°ps th??µ b??µst p??°rt ??f PHP is th??°t it is ??° ??p??µn-s??urc??µ. It c??°n b??µ run ??n Unix, Linux, Wind??ws, in sh??rt it c??°n run virtu??°lly ??n ??°ll c??mputing pl??°tf??rms s?? y??u c??°n writ??µ PHP c??d??µ ??n y??ur h??m??µ c??mput??µr which h??°s wind??ws ??°nd th??µn run th??µ s??°m??µ c??d??µ ??n ??° Unix/Linux S??µrv??µr.

S?? wh??°t c??°n PHP d??
Fr??°nkly sp??µ??°king PHP is ??° c??mpl??µt??µ scripting l??°ngu??°g??µ ??°nd y??u c??°n d?? ??°lm??st ??°nything with it, but m??stly PHP is us??µd with w??µb-b??°s??µd pr??gr??°mming ??°nd ??n??µ ??f its m??st p??w??µrful f??µ??°tur??µs is d??°t??°b??°s??µ ??°cc??µss. PHP c??°n w??rk with ??v??µr 19 diff??µr??µnt typ??µs ??f d??°t??°b??°s??µs! PHP c??°n ??°ls?? c??mmunic??°t??µ with ??th??µr s??µrv??µr-sid??µ l??°ngu??°g??µs such ??°s J??°v??° ??°nd us??µs C??M int??µrf??°c??µs.

M??stly w??µbsit??µs us??µ th??µ c??mbin??°ti??n ??f PHP ??°nd MySQL d??°t??°b??°s??µ. MySQL is ??°n industri??°l str??µngth d??°t??°b??°s??µ which is ??p??µn s??urc??µ. PHP h??°s inbuilt supp??rt f??r MySQL d??°t??°b??°s??µ, but y??u c??°n ??µ??°sily us??µ PHP with Micr??s??ft ??°cc??µss, MS-SQL S??µrv??µr, ??r??°cl??µ ??°nd ??th??µr ??DBC c??mpli??°nt d??°t??°b??°s??µs.

H??w did PHP st??°rt?
Pri??r t?? PHP m??°ny w??µb d??µv??µl??p??µrs pr??µf??µrr??µd t?? us??µ P??µrl ??µxt??µnsiv??µly t?? m??°k??µ dyn??°mic w??µbsit??µs but P??µrl w??°s n??t th??°t ??µ??°sy t?? l??µ??°rn ??°s ??° r??µsult, th??µr??µ w??°s ??° n??µ??µd ??f ??°lt??µrn??°tiv??µ s??µrv??µr-sid??µ scripting l??°ngu??°g??µs which h??°d ??° sh??rt??µr l??µ??°rning curv??µ ??°nd w??°s ??µ??°si??µr t?? w??rk with, thus PHP w??°s b??rn.

PHP w??°s d??µv??µl??p??µd by R??°smus L??µrd??rf ??°s ??° m??µ??°ns ??f m??nit??ring p??°g??µ vi??µws f??r his ??nlin??µ r??µsum??µ, ??°nd sl??wly st??°rt??µd m??°king ??° m??°rk. Wh??µn PHP/FI w??°s r??µl??µ??°s??µd in mid-1995, PHP h??°s m??°tur??µd ??° l??t sinc??µ its ??µ??°rly d??°ys ??°nd is n??w ??n??µ ??f th??µ m??st p??w??µrful scripting l??°ngu??°g??µs f??r building dyn??°mic w??µb sit??µs ??°nd it c??°n run ??n Unix, Linux ??°nd Wind??ws.

Wh??°t d?? I n??µ??µd t?? kn??w t?? l??µ??°rn PHP
T?? w??rk with PHP y??u n??µ??µd t?? kn??w HTML (n??t n??µc??µss??°ry) but w??µ ??°r??µ g??ing t?? g??µn??µr??°t??µ dyn??°mic w??µb p??°g??µs with PHP s?? y??u n??µ??µd t?? kn??w s??m??µ b??°sics ??f HTML. D??n’t y??u w??rry PHP is ??µ??°sy t?? l??µ??°rn ??°nd y??u c??°n g??µt ??° g????d gr??°sp ??n PHP in ??° c??upl??µ ??f w??µ??µks!