TestFest 2008

April 1, 2008 by gladwing  
Filed under Php

The PHP-QA team would like to announce the
TestFest for the month of
May 2008. The TestFest is an event that aims at improving the
code coverage of the
test suite for the PHP
language itself. As part of this event, local User Groups (UG) are
invited to join the TestFest. These UGs can meet physically or come
together virtually. The point however is that people network to learn
together. Aside from being an opportunity for all of you to make friends
with like minded people in your (virtual) community, it also will
hopefully reduce the work load for the PHP.net mentors.

All it takes is someone to organize a UG to spearhead the event and
to get others involved in
компютриwriting phpt tests.
The submissions will then be reviewed by members of php.net before
getting included in the official test suite. Please visit the
TestFest homepage to get
additional details on the TestFest on how to get involved, either as a
UG or by setting up the necessary infrastructure.

PHP @ FrOSCon: Call for Papers

April 1, 2008 by gladwing  
Filed under Php

The Free and Open Source Conference (FrOSCon) 2008 is a two-day conference on free software and open source. It will take place on August, 23th and 24th 2008 in Sankt Augustin near Bonn, Germany.

The PHP Usergroups Dortmund, Köln/Bonn and Hamburg are cooperatively organizing the PHP track as a sub-conference of the FrOSCon. The call for paper is now open.

Google Summer of Code 2008

April 1, 2008 by gladwing  
Filed under Php

Once again we are glad to announce that we have been accepted to be a Google Summer of Code project. See our program for this year's GSoC.

We would like to take this opportunity to say thanks to Google Inc. for this privilege to participate once again, and would like to invite everyone to look at our list of ideas: http://wiki.php.net/gsoc/2008.Students are of course more than welcome to come up with their own ideas for their proposals and we will consider each and every application that we will receive.

So once again, thanks to everyone who is involved in this magnificent journey and we hope to see many of you great students and open source passionate join us in our most enjoyable Google Summer of Code projects.

PHP Québec conference 2008

April 1, 2008 by gladwing  
Filed under Php

2008 PHP Quebec Conference & Job Fair

The PHP Quebec team is pleased to present the sixth edition of the PHP
Quebec Conference
. The Conference will take place in Montreal, Canada,
on March 12 through
14.

Join us for the PHPLabs, 2 days of technical talks, the Open Source Job
Fair & Cocktail. Meet with well know community members such as: John
Coggeshall, Marcus Boerger, Zak Greant, Chris Shiflett, Damien Seguy and
many more.

Take note that online registration ends on March 7th. For more information,
visit the website: http://conf.phpquebec.com

php|tek 2008: Chicago

April 1, 2008 by gladwing  
Filed under Php

php|tek 2008: Chicago

The publishers of php|architect Magazine are proud to announce the php|tek 2008 conference in Chicago, Illinois, USA.

The PHP Community meets May 20-23 for one of North America's premier PHP conferences of 2008. Join us to hear top speakers such as Derick Rethans (eZ Systems), Lucas Nelan (Facebook), Chris Shiflett (OmniTI), Eli White (Digg) and yes, even Terry Chay (Tagged).

For the past two years, php|architect's spring conference has sold out weeks before the start date, so if you're interested in attending, don't delay, and be sure to sign up ASAP!

phplondon conference 2008

April 1, 2008 by gladwing  
Filed under Php

February 29th (Leap Year Day). phplondon.org announce their third
annual community conference
to be held at Inmarsat, Old Street, London.

This year the conference will run two tracks and include speakers such as Derick Rethans, Wez Furlong, Scott MacVicar and Zoe Slattery.

We will also be holding an extended presentation and discussion on frameworks for PHP.

Visit our conference site to register. Early bird discount is available until 1st February 2008.

PHP 4.4.8 Released

April 1, 2008 by gladwing  
Filed under Php

The PHP development team would like to announce the immediate availability of
PHP 4.4.8
. It continues to improve the security and the stability of the 4.4
branch and all users are strongly encouraged to upgrade to it as soon as
possible. This release wraps up all the outstanding patches for the PHP 4.4
series, and is therefore the last normal PHP 4.4 release. If necessary,
releases to address security issues could be made until 2008-08-08.

Security Enhancements and Fixes in PHP 4.4.8:

  • Improved fix for MOPB-02-2007.
  • Fixed an integer overflow inside chunk_split(). Identified by Gerhard Wagner.
  • Fixed integer overlow in str[c]spn().
  • Fixed regression in glob when open_basedir is on introduced by #41655 fix.
  • Fixed money_format() not to accept multiple %i or %n tokens.
  • Added "max_input_nesting_level" php.ini option to limit nesting level of input variables. Fix for MOPB-03-2007.
  • Fixed INFILE LOCAL option handling with MySQL - now not allowed when open_basedir or safe_mode is active.
  • Fixed session.save_path and error_log values to be checked against open_basedir and safe_mode (CVE-2007-3378).

For a full list of changes in PHP 4.4.8, see the ChangeLog.

DC PHP Conference 2008: Call For Papers Open

April 1, 2008 by gladwing  
Filed under Php

2008 DC PHP Conference June 2nd - 4th

  • Submission Deadline: March 15, 2008
  • Notification by: April 2, 2008

Join us at the 3rd Annual DC PHP Conference. The event will take place at George Washington University's Cafritz Conference Center in the heart of Washington DC. The three day conference begins June 2nd and 3rd with general sessions, and ends June 4th with tutorials.

For more details go to http://www.dcphpconference.com/node/346

Prevent caching in Internet Explorer

September 27, 2006 by gladwing  
Filed under Php

Expiration and the Expires Header

It is highly recommended that all Web servers use a scheme for the expiration of all Web pages. It is bad practice for a Web server not to supply expiration information via the HTTP Expires response header for every resource returned to requesting clients. Most browsers and intermediate proxies today respect this expiration information and use it to increase the efficiency of communications over the network.

One way we can control the cache by adding meta tags :

META HTTP-EQUIV=”Pragma” CONTENT=”no-cache”
META HTTP-EQUIV=”Expires” CONTENT=”-1″

Or By PHP Scripts :

header(”Cache-Control: max-age=300, must-revalidate”);

header(”Pragma: no-cache”);
header(”Cache: no-cahce”);

Header(”Cache-control: private, no-cache”);
Header(”Expires: Mon, 26 Jun 1997 05:00:00 GMT”);
Header(”Pragma: no-cache”);

Additional to that you can add

header (”Last-Modified: ” . gmdate (”D, d M Y H:i:s”) . ” GMT”); advance cash loan payday quickcash instant loan payday till,payday loan or cash advance savings account,cash loan paydaycash loan payday tilcash advance new yorkadvance cash loan online paydaylawsuit settlement cash advance,advance cash lawsuit loan,lawsuit cash advancefirst american cash advance5 advance cash illinois loan,cash advance loan illinoisquick cash payday loanadvance cash faxing no,no faxing savings account cash advance,1000 advance cash faxing nopayday loan cash advance loancash loan payday tilladvance cash loan payday softwareadvance america cash advance,advance america cash first,advance advance america cash centermississippi online cash advance,cash advance online no faxing,online cash advancecash loan payday untilfree on line casinofree internet casinoonline roulette gambling,roulette online,roulette game free onlineblack jack,play black jack online free,computer black jackcasino secure online gamblinginternet video pokerblackjack bettingfree online roulette,play roulette online free,roulette game free onlinemultistrike video pokerblack jack gamblingcasino slots on line,casino on line,line casinobest casino gamble internet online,casino gamble,online casino gambleno deposit casino codevirtual casino gamblinggambling casino online bonushow to win at blackjackbest casino bonusonline blackjack game,free blackjack game download,blackjack gametriple play video pokeronline backgammon game,backgammon game,free online backgammon gameonline casino reviewcasino cash,free casino cash no deposit,free casino cash bonusfree no download video pokerbest video pokerbest internet casinouk online casino,uk casino gambling online,online casino in the ukfree blackjack casino game,free blackjack game download,free blackjack gamelearn to play blackjack free,blackjack game free ware,free blackjackdueces wild video pokercasino video pokerplay blackjackonline card game casinointernet slotsfree online casino,free online casino no download,free sign up bonus at online casino

How to check the user’s browser type and platform

August 22, 2006 by gladwing  
Filed under Php

Sooner or later it might become necessary to write an application that tracks site visitor browser types. Here’s some code to use:

echo($_SERVER[‘HTTP_USER_AGENT’]);
?>

This will output something that looks like one of the following:

Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
Mozilla/4.0 (compatible; MSIE 5.0; Mac_PowerPC)
Mozilla/4.0 (compatible; MSIE 5.0; Windows 98; DigExt)
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0

Reference
A more complete list of USER AGENT strings (tab delimited)

Next, we’ll build a simple browser checker to check for Internet Explorer (IE), Firefox, Opera and Safari:

$useragent = $_SERVER[‘HTTP_USER_AGENT’]);if (preg_match(‘|MSIE ([0-9].[0-9]{1,2})|’,$useragent,$matched)) {
$browser_version=$matched[1];
$browser = ‘IE’;
} elseif (preg_match( ‘|Opera ([0-9].[0-9]{1,2})|’,$useragent,$matched)) {
$browser_version=$matched[1];
$browser = ‘Opera’;
} elseif(preg_match(‘|Firefox/([0-9\.]+)|’,$useragent,$matched)) {
$browser_version=$matched[1];
$browser = ‘Firefox’;
} elseif(preg_match(‘|Safari/([0-9\.]+)|’,$useragent,$matched)) {
$browser_version=$matched[1];
$browser = ‘Safari’;
} else {
// browser not recognized!
$browser_version = 0;
$browser= ‘other’;
}

print “browser: $browser $browser_version”;
?>

Now let’s parse out a simple Operating System (OS) checker using the strstr function:

$useragent = $_SERVER[‘HTTP_USER_AGENT’]);if (strstr($useragent,‘Win’)) {
$os=‘Win’;
} else if (strstr($useragent,‘Mac’)) {
$os=‘Mac’;
} else if (strstr($useragent,‘Linux’)) {
$os=‘Linux’;
} else if (strstr($useragent,‘Unix’)) {
$os=‘Unix’;
} else {
$os=‘Other’;
}

print “OS: $os”;
?>

Next Page »