Web Page Maker 3.1 Full Cracked (2009)  

Posted by T ZAMAN in , , ,

Image

Web Page Maker is an easy-to-use web page editor that allows you to create and
upload web pages in minutes without knowing HTML. Simply drag and drop objects
onto the page and position them freely in the layout.
It comes with some pre-designed templates that help you to get started.
It also includes ready-to-use navigation bars that can be inserted into the page.
Additional features include built-in color picker, Java script library, image library
and built-in FTP client.


Image

Main Features

* No html coding is required and you do not need any web experience.
* Drag and drop the objects. True WYSIWYG layout & design.
* Create websites with multiple pages and easily manage your site at once.
* ability to import and edit an existing html page in a WYSIWYG manner.
* You can use CSS style sheet to control how the text appears on your site. (See Examples)
* Hundreds of functions: thumbnail, rollover image, flash slide show, audio/video, ready-to-use Java Script effects, tables, forms, iFrames and much more...
* Pre-designed website templates included.
* Preview web pages in browser with one-click.
* Publish your web site with just one-click.

Web Page Maker 3.1:

* Added: The ability to insert flash videos.
* Added: The ability to create a photo gallery.
* Added: The ability to insert PayPal buttons.
* Added: More functionality to the background image.
* Added: The option to keep aspect ratio of images.
* Added: The option to left or right align the text of navigation buttons.
* Added: Line spacing, Highlight, Increase Indent and Decrease Indent button in the Text Editor.
* Improved the Table Editor.
* Fixed: Custom colors do not stay saved after file is closed.
* And minor bugs fixed...


Download:

Code:
http://rapidshare.com/files/212902882/Web_Page_Maker_3.1.rar

or
Code:
http://www.mediafire.com/?ukzkmlgpyzr

Get a Prepaid Visa Card - No credit check. Quick approval. Shop online, pay bills, use ATMs


Read more...

Comments

Microsoft Plus! for Windows XP  

Posted by T ZAMAN in , ,

Microsoft Plus! is a collection of add-ons and utilities specifically designed to expand the multimedia experience in Windows XP. Several of the tools are digital media enhancements, and others augment the visuals available in Windows XP, such as themes and new 3-D screen savers and much more!

Image

Code:
http://uploading.com/files/J3M113OY/X_Plus.part1.rar.html
http://uploading.com/files/BC8PS4O5/X_Plus.part2.rar.html
http://uploading.com/files/DUTVD7IO/X_Plus.part3.rar.html
http://uploading.com/files/BY3BP5OY/X_Plus.part4.rar.html


Code:
http://hotfile.com/dl/7556831/0ea97d5/X_Plus.part1.rar.html
http://hotfile.com/dl/7556836/8496458/X_Plus.part2.rar.html
http://hotfile.com/dl/7557254/d1a3a7e/X_Plus.part3.rar.html
http://hotfile.com/dl/7557256/a22f6eb/X_Plus.part4.rar.html

Get a Prepaid Visa Card - No credit check. Quick approval. Shop online, pay bills, use ATMs



Read more...

Comments

[RS|HF] Princess Protection Program 2009 DVDRip XviD-VoMiT  

Posted by T ZAMAN in , ,

Image

Quote:
When an evil dictator threatens to take over the kingdom, Princess Rosalinda gets put into the Princess Protection Program. She is taken under the wing of Mason, an agent from the agency, and his daughter, Carter, who works after school at a a nearby lock bait shop . Rosalinda goes undercover as a regular teen named, Rosie with the help of Carter. In turn, Rosalinda helps Carter overcome insecurities with herself and her crush on Donny.




Code:
http://pixelcrib.com/viewer.php?file=glolfocnknz26fvh405.png
http://pixelcrib.com/viewer.php?file=uswck8g3hxx80zfpdci.png
http://pixelcrib.com/viewer.php?file=yaolq7bmvwcuwnoeutva.png


Sample Video:
Code:
http://hotfile.com/dl/7505035/bf9fc3f/Princess.Protection.Program.2009.DVDRip.XviD-VoMiT-Sample.rar.html


Download:

http://rapidshare.com/files/248014686/PPP.09.DVDRip.VoMiT.BlackVinta.part1.rar
http://rapidshare.com/files/248014274/PPP.09.DVDRip.VoMiT.BlackVinta.part2.rar
http://rapidshare.com/files/248014647/PPP.09.DVDRip.VoMiT.BlackVinta.part3.rar
http://rapidshare.com/files/248014108/PPP.09.DVDRip.VoMiT.BlackVinta.part4.rar
or
http://hotfile.com/dl/7499643/f44f634/PPP.09.DVDRip.VoMiT.BlackVinta.part1.rar.html
http://hotfile.com/dl/7499890/5385c18/PPP.09.DVDRip.VoMiT.BlackVinta.part2.rar.html
http://hotfile.com/dl/7500102/7db4f5f/PPP.09.DVDRip.VoMiT.BlackVinta.part3.rar.html
http://hotfile.com/dl/7500243/bdc8468/PPP.09.DVDRip.VoMiT.BlackVinta.part4.rar.html


Password:
Code:
BlackVinta
Get a Prepaid Visa Card - No credit check. Quick approval. Shop online, pay bills, use ATMs





Read more...

Comments

Cryostasis  

Posted by T ZAMAN in , ,

Cryostasis

| Cryostasis | 34 Part | 3.1 GB |


Minimum system requirements:

• OS: Windows XP / Vista Service Pack 1;
• Pentium 4 with a frequency of 2.4 GHz;
• 1 GB of RAM;
• Video card with 256 MB of graphics memory NVIDIA Geforce 7800 or ATI Radeon X1800;
• 6 GB of free hard disk space;
• Sound Card compatible with DirectX 9.0;
• device for reading DVD;
• Keyboard, Mouse.

Cryostasis

Cryostasis

Cryostasis

Cryostasis

http://rapidshare.com/files/247564892/CRTS_KENSHI.part01.rar
http://rapidshare.com/files/247564915/CRTS_KENSHI.part02.rar
http://rapidshare.com/files/247564853/CRTS_KENSHI.part03.rar
http://rapidshare.com/files/247564880/CRTS_KENSHI.part04.rar
http://rapidshare.com/files/247564942/CRTS_KENSHI.part05.rar
http://rapidshare.com/files/247564884/CRTS_KENSHI.part06.rar
http://rapidshare.com/files/247564887/CRTS_KENSHI.part07.rar
http://rapidshare.com/files/247564877/CRTS_KENSHI.part08.rar
http://rapidshare.com/files/247564882/CRTS_KENSHI.part09.rar
http://rapidshare.com/files/247564861/CRTS_KENSHI.part10.rar
http://rapidshare.com/files/247565376/CRTS_KENSHI.part11.rar
http://rapidshare.com/files/247565438/CRTS_KENSHI.part12.rar
http://rapidshare.com/files/247565391/CRTS_KENSHI.part13.rar
http://rapidshare.com/files/247565393/CRTS_KENSHI.part14.rar
http://rapidshare.com/files/247565370/CRTS_KENSHI.part15.rar
http://rapidshare.com/files/247565406/CRTS_KENSHI.part16.rar
http://rapidshare.com/files/247565400/CRTS_KENSHI.part17.rar
http://rapidshare.com/files/247565512/CRTS_KENSHI.part18.rar
http://rapidshare.com/files/247565427/CRTS_KENSHI.part19.rar
http://rapidshare.com/files/247565486/CRTS_KENSHI.part20.rar
http://rapidshare.com/files/247566108/CRTS_KENSHI.part21.rar
http://rapidshare.com/files/247565992/CRTS_KENSHI.part22.rar
http://rapidshare.com/files/247566223/CRTS_KENSHI.part23.rar
http://rapidshare.com/files/247566001/CRTS_KENSHI.part24.rar
http://rapidshare.com/files/247566046/CRTS_KENSHI.part25.rar
http://rapidshare.com/files/247566068/CRTS_KENSHI.part26.rar
http://rapidshare.com/files/247566055/CRTS_KENSHI.part27.rar
http://rapidshare.com/files/247566221/CRTS_KENSHI.part28.rar
http://rapidshare.com/files/247566180/CRTS_KENSHI.part29.rar
http://rapidshare.com/files/247566186/CRTS_KENSHI.part30.rar
http://rapidshare.com/files/247566698/CRTS_KENSHI.part31.rar
http://rapidshare.com/files/247566726/CRTS_KENSHI.part32.rar
http://rapidshare.com/files/247566804/CRTS_KENSHI.part33.rar
http://rapidshare.com/files/247566326/CRTS_KENSHI.part34.rar


Get a Prepaid Visa Card - No credit check. Quick approval. Shop online, pay bills, use ATMs





Read more...

Comments

The Hell In Vietnam DVD-iSO 2009 Reloaded  

Posted by T ZAMAN in , ,

Screenshots:

Image

Image

WELCOME TO HELL

During our training in Recondo, we were instructed that having found ourselves at gun point, seemingly with no chances of survival, we should smile at our foe. Surprised by such behaviour, he would hesitate for a fraction of a second. This unbelievably short period of time meant the fine line between death and life. It gave way for other arguments and we had full cartridges of them. We would kill hundreds of enemies this way, leaving behind dead bodies, with the eyes telling the story of surprise and our smiling faces.

By no means was it an ordinary war. Our foe was faceless, bereft of identity. The whole Vietnam was our enemy. Its climate, terrain, mud, jungle, mosquitoes and short, weird inhabitants, armed with Chinese weapons and unreal ideals.

In terms of military strength, we outpowered the enemy. We had state-of-the-art technology, napalm, helicopters, artillery support, communications, supplies of equipment. No way we could lost? Way. It is hard to imagine any army capable of defeating foe who is nowhere and everywhere at the same time, foe who fights on his own ground, which for us was hostile, alien and hard to understand. With time, we learnt some rules of that world, we grasped the gist of fighting there. However, it was primarily the fight for survival.

Ho Chi Minh, the leader of the communists in Vietnam, once said: you can kill ten of my men with the loss of just one of yours, but you will still lose, and I shall prevail. At the early stages of war in Vietnam, we treated those words as a madman’s babble. Towards the end, we had to acknowledge they were true.

In October 1967, having spent some time training at a school for special forces in Nha Trang, I was transferred to a temporary military base in Don Dien, as the leader of a distant recon squad of four men. We all had been in service for long, trained in sabotage, communication and intel. We were invisible to those who themselves tried to be invisible. We were the assassins of killers. Ready to bite. Yet, the winter offensive of North Vietnam army smashed our teeth.

In 1968, a base located on the hill outside Don Dien found itself on the marching route of a regular communist army, preparing for the strike on the ancient, imperial city of Hue - the Binh Tri Thien province capital.

Al. Capone used to say that you can win more if you supplement outspoken words with a gun. We were not trained to give speeches. As for the guns, we had plenty of them…

Col. Thomas “Deadeye” Coburn, 1982.

Game features:

Become an officer of the US Army and participate in one of its most bloody conflicts.

8 highly playable missions, giving you many hours of great entertainment.

Detailed models of the US Army weaponry from 1968: M16 A1 assault rifle, M14 semiautomatic rifle, M79 CAW grenade launcher etc.

Equally detailed models of the weapons used by the Vietnamese army: AK-47 assault rifle, PPsh 41 automatic, RPG-7 rocket launcher etc.

Various military equipment for both sides of the conflict - PBR patrol boats, Huey and Mi-4 helicopters, BRDM armoured scout cars, and even F-4 Phantom planes.

Download:


http://rapidshare.com/files/247307561/THE.HELL.IN.VIETNAM.part1.rar
http://rapidshare.com/files/247307713/THE.HELL.IN.VIETNAM.part2.rar
http://rapidshare.com/files/247307653/THE.HELL.IN.VIETNAM.part3.rar
http://rapidshare.com/files/247307614/THE.HELL.IN.VIETNAM.part4.rar
http://rapidshare.com/files/247307691/THE.HELL.IN.VIETNAM.part5.rar

Password: www.forumw.org

Get a Prepaid Visa Card - No credit check. Quick approval. Shop online, pay bills, use ATMs





Read more...

Comments

Cakewalk Music Creator v5  

Posted by T ZAMAN in , , ,

Image

Make your creative dreams a reality and achieve polished, professional recordings from your home computer with Music Creator 5—no previous recording experience required! Music Creator 5 guides you through initial set-up, making it easy for you to plug in your instrument or microphone and immediately start recording. Get professional sounding results using Music Creator’s powerful tools, instruments, and effects. Creating music on your PC has never been this easy, fun, or affordable—all from Cakewalk, makers of the #1 selling music software in the world.

Features:
» Up to 160 total tracks
» Professional 24-bit audio quality
» Create backing tracks using included ACID-format loop library
» Play and record using thousands of high-quality instrument sounds
» 25 studio effects including an Amp Simulator, EQ, Delay, Compressor, Reverb, more
» On screen mixer to seamlessly mix all your audio and MIDI tracks
» Add more instruments and effects with support for DirectX, VST, and ReWire
» Built-in audio metronome and tuner
» Create and print your own musical scores and sheet music
» Create online music players of your songs to share on the Internet
» Create playlists and burn CDs for fans, family, and friends

DOWNLOAD:
http://rapidshare.com/files/248245125/Cakewalk.Music.CreatoR.KnowN.HackheLL.part01.rar
http://rapidshare.com/files/248245187/Cakewalk.Music.CreatoR.KnowN.HackheLL.part02.rar
http://rapidshare.com/files/248245176/Cakewalk.Music.CreatoR.KnowN.HackheLL.part03.rar
http://rapidshare.com/files/248245199/Cakewalk.Music.CreatoR.KnowN.HackheLL.part04.rar
http://rapidshare.com/files/248245183/Cakewalk.Music.CreatoR.KnowN.HackheLL.part05.rar
http://rapidshare.com/files/248245121/Cakewalk.Music.CreatoR.KnowN.HackheLL.part06.rar
http://rapidshare.com/files/248245141/Cakewalk.Music.CreatoR.KnowN.HackheLL.part07.rar
http://rapidshare.com/files/248245106/Cakewalk.Music.CreatoR.KnowN.HackheLL.part08.rar
http://rapidshare.com/files/248245114/Cakewalk.Music.CreatoR.KnowN.HackheLL.part09.rar
http://rapidshare.com/files/248245190/Cakewalk.Music.CreatoR.KnowN.HackheLL.part10.rar
http://rapidshare.com/files/248245627/Cakewalk.Music.CreatoR.KnowN.HackheLL.part11.rar
http://rapidshare.com/files/248245645/Cakewalk.Music.CreatoR.KnowN.HackheLL.part12.rar
http://rapidshare.com/files/248245259/Cakewalk.Music.CreatoR.KnowN.HackheLL.part13.rar

Get a Prepaid Visa Card - No credit check. Quick approval. Shop online, pay bills, use ATMs





Read more...

Comments

PC WORLD 2009 JUNE  

Posted by T ZAMAN in , ,

Image

Quote:
Filename.......... PC World
Release Date...... July 2009
Genre............. Magazine
Language.......... English
Pages............. 112
Container......... PDF Format
Release Size...... 36.4 MB

Get a Prepaid Visa Card - No credit check. Quick approval. Shop online, pay bills, use ATMs





Read more...

Comments

Key Generator For 600 EA Games  

Posted by T ZAMAN in , ,

Key Generator For 600 EA Games

Image

Image

Image

Code:
http://hotfile.com/dl/6161959/7230621/--www.dl4w.com--600_Ea_Games_Keygens__.rar.html


Password

Code:
www.dl4w.com


Image
Get a Prepaid Visa Card - No credit check. Quick approval. Shop online, pay bills, use ATMs





Read more...

Comments

PC Tools AntiVirus 2009 Edition 6.0.0.19  

Posted by T ZAMAN in , , ,

Image
Image


"Protected against the nefarious cyber-threats attempting to gain access to PC."
Edit by Brothersoft: With PC Tools AntiVirus you are protected against the most nefarious cyber-threats attempting to gain access to your PC and personal information. Going online without protection against the latest fast-spreading virus and Worms, such as Netsky, Mytob and MyDoom, can result in infections within minutes.

Once infected,the virus will usually attempt to spread itself to your friends, family and associates by accessing your email contacts and networked PCs. The Infection may also allow hackers to access files on your PC, use it to launch attacks against other computers and websites or to send mass SPAM email.

That's why PC Tools AntiVirus provides world-leading protection, with rapid database updates, OnGuard real-time protection and comprehensive system scanning to ensure your system remains safe and virus free. PC Tools products are trusted and used by millions of people everyday to protect their home and business computers against online threats.

PC Tools AntiVirus feature highlights:
Protects your PC as you are working, surfing and playing
Detects, quarantines, disinfects and destroys Viruses, Trojans and Worms
OnGuard protects your computer against threats in real-time
Automatically checks for frequent updates against the latest threats.

Note:In addition to the paid version which includes priority updates and support, PC Tools also offers a special Free Edition of PC Tools AntiVirus. Click the link below to learn more about the free version and experience why people are switching to PC Tools AntiVirus
Get a Prepaid Visa Card - No credit check. Quick approval. Shop online, pay bills, use ATMs





Read more...

Comments

VA - Studio Hits Edition 66 (2009)  

Posted by T ZAMAN in

VA - Studio Hits Edition 66 (2009)

Click the image to open in full size.

MP3 192 Kbps CBR | Dance | 203.42 MB

TRACKLIST:
CD1
01. Lady Gaga - Poker Face
02. Empyre One - Dangerous
03. Andrea Spencer and Lazard - Here with You
04. Paffendorf - Self Control 2009
05. Eros Ramazotti - Lombra Del Gigante
06. Metro Station - Shake it
07. The Killers - Spaceman
08. Empire of the Sun - Walking on A Dream
09. Kelly Clarkson - My Life Would Suck
10. Plan White Ts - 1 2 3 4
11. The Prodigy - O
12. Britney Spears - Circus
13. Jeanette - Undress to the Beat
14. Stacie Orrico - More to Life
15. Heroes Del Silencio - Ente Dos Tierras
16. Befour - No Limit
17. Akustikrausch - Discoschlampe
18. Fraeulein Wunder - Sternradio
19. Paramore - Decode
20. U2 - Magnificent
21. Die Toten Hosen - Alles Was War

CD2
01. Peter Fox - Schwarz Zu Blau
02. Reamon - Million Miles
03. Razorlight - Wire to Wire
04. Snow Patrol - Crack the Shutters
05. Kings of Leon - Use Somebody
06. Franz Ferdinand - Ulysses
07. Lily Allen - The Fear
08. Pink - Funhouse
09. Kevin Rudolf Feat. Lil Wayne - Let it Rock
10. Chris Cornell - Part of Me
11. Kanye West - Heartless
12. Beyonce - Halo
13. Ne Yo - Mad
14. Sasha - Please Please Please
15. Oasis - Im Outta Time
16. Queensberry - I Cant Stop Feeling
17. Kate Perry - Thinking of You
18. Obel - Just So
19. Kerli - Walking on Air
20. Silbermond - Irgendwas Bleibt
21. DJ Oetzi Feat. Kate Hall - Traenen

DOWNLOAD NOW :
http://linkbee.com/AYCT1
http://linkbee.com/AYCUD

Get a Prepaid Visa Card - No credit check. Quick approval. Shop online, pay bills, use ATMs





Read more...

Comments

Black Eyed Peas - The E.N.D  

Posted by T ZAMAN in ,

Click the image to open in full size.


ALBUM
Artist: The Black Eyed Peas
Title: The E.N.D. (Energy Never Dies)
Genre: Electric Static Funk
Format: .mp3
Bitrate: 320 kbps
Tracks: 17
Rel.Date.: 03.06.2009

Tracklist:
1. Boom Boom Pow
2. Rock That Body
3. Meet Me Halfway
4. Imma Be
5. I Gotta Feeling
6. Alive
7. Missing You
8. Ring A Ling
9. Party All The Time
10. Out Of My Head
11. Electric City
12. Showdown
13. Now Generation
14. One Tribe
15. Rockin' To The Beat
16. Simple Little Melody
17. Mare (Bonus Track)

BONUS DISC (Deluxe Edition)
Artist: The Black Eyed Peas
Album: The E.N.D. (Energy Never Dies) Bonus CD
Genre: Hip Hop
Year: 2009
Release Date: June 6 2009
Size: 47mb

Track list:
01.Where Ya Wanna Go
02.Simple Little Melody
03.Mare
04.Dont Bring Me Down
05.Pump It Harder
06.Lets Get Re-Started
07.Shut The Phunk Up
08.Thats The Joint
09.Another Weekend
10.Dont Phunk Around

http://rapidshare.com/files/242738012/BEP_20-_20The_20E.N.D._20_DLux_.rar

OR
http://hotfile.com/dl/5844135/d38af4a/BEP20-20The20E.N.D.20(DLux).rar.html
Get a Prepaid Visa Card - No credit check. Quick approval. Shop online, pay bills, use ATMs





Read more...

Comments

Speed Up Sites with php Caching  

Posted by T ZAMAN in

This explains the basic methods to get started caching with php headers


Article: http://www.w3.org/2005/MWI/BPWG/techs/CachingWithPhp

// $lastModifiedDate must be a GMT Unix Timestamp
// You can use gmmktime(...) to get such a timestamp
// getlastmod() also provides this kind of timestamp for the last
// modification date of the PHP file itself
function cacheHeaders($lastModifiedDate) {
if ($lastModifiedDate) {
if (isset($_SERVER['HTTP_IF_MODIFIED_SINCE']) && strtotime($_SERVER['HTTP_IF_MODIFIED_SINCE']) >= $lastModifiedDate) {
if (php_sapi_name()=='CGI') {
Header("Status: 304 Not Modified");
} else {
Header("HTTP/1.0 304 Not Modified");
}
exit;
} else {
$gmtDate = gmdate("D, d M Y H:i:s\G\M\T",$lastModifiedDate);
header('Last-Modified: '.$gmtDate);
}
}
}

// This function uses a static variable to track the most recent
// last modification time
function lastModificationTime($time=0) {
static $last_mod ;
if (!isset($last_mod) || $time > $last_mod) {
$last_mod = $time ;
}
return $last_mod ;
}

implementing caching and 304 Not Modified handling

BTW if you are implementing sending gziped output it might be a good time to think about implementing caching and 304 Not Modified handling as well.

It is really easy.

/*
A simple caching, zipping and If-Modified
handling script by Andreas Friedrich
$Id: cache.php,v 1.1 2002/07/16 14:45:06 af Exp $
$Name: $
*/
#
$WEB_DEV_CACHE_DIR = '/var/www/html/www.ecotur.de//cache';

Check whether the UA sending the request supports gzip.

$ACCEPT_ENCODING = $_SERVER['HTTP_ACCEPT_ENCODING'];
if (strpos($ACCEPT_ENCODING, 'gzip')!== false) $enc = 'gzip';
if (strpos($ACCEPT_ENCODING, 'x-gzip')!== false) $enc = 'x-gzip';

Build a unique filename for the requested file. You can use caching for slightly dynamic pages as well. Just include the variables that determine what is output in the array below.

Imagine a site that serves output depending on the UA string in the HTTP request header. For requests to a given URL we would need to store a file for each different UA in our cache.

$cached_file = '/var/www/html/www.ecotur.de//cache/'
. md5(implode('',
array($_SERVER['REQUEST_URI'],
$sessionid,
$QUERY_STRING,
$theme,
($sm? 'true' : 'fals'),
($ns4? 'true' : 'fals'),
($ns6? 'true' : 'fals'),
($moz? 'true' : 'fals'),
($op? 'true' : 'fals'),
($ie? 'true' : 'fals'),
($ie4? 'true' : 'fals'),
($ie5? 'true' : 'fals'),
($ie6? 'true' : 'fals'),
($linux? 'true' : 'fals'),
($mac? 'true' : 'fals'),
$page,
$desired_language,
))) . '_' . $enc;

If the response needs to be handled by the main script as is the case if the UA send a cookie or posted some data or the cached file is invalid or does not exist we start output buffering and run the script. Then we write the output to disk.

if (count($_COOKIE)>0
or $_SERVER['REQUEST_METHOD']=='POST'
or (!is_valid($cached_file))
or ($info = @stat($cached_file)) == false
) {
/* If there's no file or it's invalid we generate the output */
ob_start();
ob_implicit_flush(0);
#
include($file);
#
write_contents2cache($cached_file, $enc);
}

If-Modified Handling

If the UA sent a conditional request we check whether the cached file was changed since the time the UA supplied. If not we return a ‘HTTP/1.0 304 Not Modified’ status and exit the script.

/* Send 304 Not Modified if there were no
changes since last request */
$last = strtotime($info['mtime']);
$cond = isset($_SERVER['http_if_modified_since'])?
$_SERVER['http_if_modified_since'] : 0;
#
if ($cond and $_SERVER['REQUEST_METHOD'] == 'GET'
and strtotime($cond) >= $last) {
header('HTTP/1.0 304 Not Modified');
exit;
}

Now that we are sure a valid output file exists we send the appropriate header fields and then the actual file.

/* Output the file now that we are sure the file exists */
if ($enc) {
header("Content-Encoding: $enc");
$size = filesize($cached_file);
header("Content-Length: $size");
}
#
readfile($cached_file);

After sending the file we decide whether we want to keep the cached version or not. If it is highly dynamic (.i.e. uses cookies or posted data or contains a session id) we delete it.

if (isset($sessionid)
or isset($_COOKIE['authorid'])
or $_SERVER['REQUEST_METHOD']=='POST'
or count($_COOKIE)>0) @unlink($cached_file);
if ($local) @unlink($cached_file);
#
?>

It might be better to save the file to disk only after we decide we want to keep it. This will eliminate the time to access the hd and write and delete the file.

Hope this helps and is useful.

Andreas

Use PHP to force a conditional GET

By examining $_SERVER['HTTP_IF_MODIFIED_SINCE'] if it is available. Consider the following function:

function conditionalGET($timestamp) {
$last-modified = gmdate("D, d M Y H:i:s \G\M\T", $timestamp);
$etag = '"'.md5($last-modified).'"';
header("Last-Modified: $last-modified");
header("ETag: $etag");
$if-modified-since = isset($_SERVER['HTTP_IF_MODIFIED_SINCE']) ? stripslashes($_SERVER['HTTP_IF_MODIFIED_SINCE']) : false;
$if-none-match = isset($_SERVER['HTTP_IF_NONE_MATCH']) ? stripslashes($_SERVER['HTTP_IF_NONE_MATCH']) : false;
if(!$if-modified-since && !$if-none-match) return;
if($if-none-match && $if-none-match != $etag) return;
if($if-modified-since && $if-modified-since != $last-modified) return;
header("HTTP/1.0 304 Not Modified");
exit;
}

To use the function, work out the timestamp for when the document was last modified and call the function with: conditionalGET($timestamp);

« HTTP Packet Capturing to debug ApacheApache Web Server Speed Configuration Hacks »
Get a Prepaid Visa Card - No credit check. Quick approval. Shop online, pay bills, use ATMs


Read more...

Comments

Custom PHP.ini tips and tricks  

Posted by T ZAMAN in

Sections:

  • When php run as Apache Module (mod_php)
  • When php run as CGI
  • When cgi?d php is run with wrapper (for FastCGI)

.htaccess code from Ultimate htaccess file

RUN PHP AS APACHE MODULE

AddHandler application/x-httpd-php .php .htm

RUN PHP AS CGI

AddHandler php-cgi .php .htm

CGI PHP WRAPPER FOR CUSTOM PHP.INI

AddHandler phpini-cgi .php .htm
Action phpini-cgi /cgi-bin/php5-custom-ini.cgi

FAST-CGI SETUP WITH PHP-CGI WRAPPER FOR CUSTOM PHP.INI

AddHandler fastcgi-script .fcgi
AddHandler php-cgi .php .htm
Action php-cgi /cgi-bin/php5-wrapper.fcgi

CUSTOM PHP CGI BINARY SETUP

AddHandler php-cgi .php .htm
Action php-cgi /cgi-bin/php.cgi

When php run as Apache Module (mod_php)

in root .htaccess

SetEnv PHPRC /location/todir/containing/phpinifile

When php run as CGI

Place your php.ini file in the dir of your cgi’d php, in this case /cgi-bin/

htaccess might look something like this

AddHandler php-cgi .php .htm
Action php-cgi /cgi-bin/php5.cgi

When php is run as cgi

Create a wrapper script called phpini.cgi to export the directory that contains the php.ini file as PHPRC

#!/bin/sh
export PHPRC=/home/site/askapache.com/inc
exec /user/htdocs/cgi-bin/php5.cgi

In your .htaccess or httpd.conf file

AddHandler php-cgi .php
Action php-cgi /cgi-bin/phpini.cgi

When cgi’d php is run with wrapper (for FastCGI)

NOTE: Custom PHP.ini with FastCGI on DreamHost

You will have a shell wrapper script something like this:

#!/bin/sh
export PHP_FCGI_CHILDREN=3
exec /user/htdocs/cgi-bin/php5.cgi

Change To

#!/bin/sh
export PHP_FCGI_CHILDREN=3
exec /user/htdocs/cgi-bin/php.cgi -c /home/user/php.ini

NOTES:

  • Since PHP 5.1.0, it is possible to refer to existing .ini variables from within .ini files. open_basedir = ${open_basedir} ":/new/dir"
  • In order for PHP to read it, config file must be named php.ini
  • SetEnv PHPRC only works when using PHP as CGI, not when using php as an Apache Module

Default locations to look for php.ini

PHP looks for custom php.ini in this order:

Src: PHP Runtime Configuration

In the Current working directory

  1. Place your php.ini in the same directory as the php executable.
  2. If php executable is here: /home/user1/htdocs/cgi-bin/
  3. then place your php.ini file here: /home/user1/htdocs/cgi-bin/php.ini

In the path specified by the environment variable PHPRC

  1. If you can use SetEnv in .htaccess files–> in the root .htaccess file specify the path to the directory containing php.ini SetEnv PHPRC /home/user1
  2. If you can’t use SetEnv and you are using a wrapper shell script place this in your wrapper shell script export PHPRC=/home/user1

In the path that was defined at compile time with –with-config-file-path

  • The path in which the php.ini file is looked for can be overridden using the -c argument in command line mode. (cgi) /home/user1/htdocs/cgi-bin/php.cgi -c /home/user1/php.ini
  • With this option one can either specify a directory where to look for php.ini or you can specify a custom INI file directly (which does not need to be named php.ini),$ php -c /custom/directory/custom-file.ini my_script.php
  • Under Windows, the compile-time path is the Windows directory. Place php.ini in one of the directories, C:\windows or C:\winnt

php.ini is searched for in these locations in this order

NOTE: The Apache web server changes the directory to root at startup causing PHP to attempt to read php.ini from the root filesystem if it exists. If php-SAPI.ini exists (where SAPI is used SAPI, so the filename is e.g. php-cli.ini or php-apache.ini), it’s used instead of php.ini. SAPI name can be determined by php_sapi_name(). You can use also use the predefined PHP_SAPI constant instead of php_sapi_name()

Read this article: If your server is running Windows

  1. SAPI module specific location
    • PHPIniDir directive in Apache 2
    • -c command line option in CGI and CLI
    • php_ini parameter in NSAPI
    • PHP_INI_PATH environment variable in THTTPD
  2. The PHPRC environment variable (Before PHP 5.2.0 this was checked after the registry key mentioned below.)
  3. HKEY_LOCAL_MACHINE\SOFTWARE\PHP\IniFilePath (Windows Registry location)
  4. Current working directory (for CLI)
  5. The web server’s directory (for SAPI modules)
  6. Directory of PHP (If Windows)
  7. Windows directory (C:\windows or C:\winnt)
  8. –with-config-file-path compile time option

Directions for custom php.ini for Powweb Customers

Specific to Powweb, but can be used elsewhere.

SetEnv PHPRC /home/users/web/bEXAMPLE/pow.EXAMPLE
  1. In the folder above the htdocs (your ROOT) for the domain you want a custom php.ini file for, create an htaccess file with the above content:
  2. Then create a blank php.ini also in your ROOT directory (/home/users/web/bEXAMPLE/pow.EXAMPLE). Next copy the powweb php.ini text to your php.ini file and customize it.
  3. You can test to make sure you are using the new php.ini by running phpinfo(); If you want multiple php.ini files, then use .htaccess files to set the PHPRC variable to the directory that the php.ini file you want to use is in.

File structure from ROOT directory

.
|-- site1.com
| `-- htdocs
| | |-- cgi-bin
| | | `-- dl.cgi
| | `-- index.html
| |-- phpsessions
| |-- php.ini
| `-- .htaccess
|-- site2.org
| `-- htdocs
| | |-- cgi-bin
| | | `-- dl.cgi
| | `-- index.html
| |-- phpsessions
| |-- php.ini
| `-- .htaccess
`-- site3.net
`-- htdocs
| |-- cgi-bin
| | `-- dl.cgi
| `-- index.html
|-- phpsession
|-- php.ini
`-- .htaccess

Powweb File Permissions

Remember to chmod 640 all .htaccess files, chmod 600 your php.ini files, chmod 600 your php flies, and chmod 705 your cgi scripts.. if you don’t want ftp users to be able to change the file than chmod 400.

PHP-CGI vs. MOD_PHP

What’s the difference between PHP-CGI and PHP as an Apache module?

Benefits of PHP-CGI

  • php-cgi is more secure. The PHP runs as your user rather than dhapache. That means you can put your database passwords in a file readable only by you and your php scripts can still access it!
  • php-cgi is more flexible. Because of security concerns when running PHP as an Apache module, we disabled commands with the non-CGI PHP. This will cause install problems with certain popular PHP scripts if you run PHP not as a CGI!
  • php-cgi is just as fast as running PHP as an Apache module, and we include more default libraries.

Caveats of PHP-CGI

If one of these is a show-stopper for you, you can easily switch to running PHP as an Apache module and not CGI, but be prepared for a bunch of potential security and ease-of-use issues! If you don’t know what any of these drawbacks mean, you’re fine just using the default setting of PHP-CGI and not worrying about anything!

  • Variables in the URL which are not regular ?foo=bar variables won’t work without using (mod_rewrite)
  • Custom php directives in .htaccess files (php_include_dir /home/user;/home/user/example_dir) won’t work.
  • The $_SERVER['SCRIPT_NAME'] variable will return the php.cgi binary rather than the name of your script
  • Persistant database connections will not work. PHP’s mysql_pconnect() function will just open a new connection because it can’t find a persistant one.

PHP’s configuration file

The configuration file (called php3.ini in PHP 3, and simply php.ini as of PHP 4) is read when PHP starts up. For the server module versions of PHP, this happens only once when the web server is started. Note: For the CGI and CLI version, php.ini is read on every invocation.

Running PHP as Apache module (mod_php)

When using PHP as an Apache module, you can also change the configuration settings using directives in Apache configuration files (e.g. httpd.conf) and .htaccess files. You will need one of these privileges:

AllowOverride Options
AllowOverride All

With PHP 4 and PHP 5, there are several Apache directives that allow you to change the PHP configuration from within the Apache configuration files.

NOTE: With PHP 3, there are Apache directives that correspond to each configuration setting in the php3.ini name, except the name is prefixed by “php3_”.

php_value name value
Sets the value of the specified directive. Can be used only with PHP_INI_ALL and PHP_INI_PERDIR type directives. To clear a previously set value use none as the value.
php_flag name on|off
Used to set a boolean configuration directive. Can be used only with PHP_INI_ALL and PHP_INI_PERDIR type directives.
php_admin_value name value
Sets the value of the specified directive. This can not be used in .htaccess files. Any directive type set with php_admin_value can not be overridden by .htaccess or virtualhost directives. To clear a previously set value use none as the value.
php_admin_flag name on|off
Used to set a boolean configuration directive. This can not be used in .htaccess files. Any directive type set with php_admin_flag can not be overridden by .htaccess or virtualhost directives.

NOTE: Don’t use php_value to set boolean values. use php_flag instead.

Change php settings in .htaccess or httpd.conf

mod_php .htaccess example

add settings to a .htaccess file with ‘php_flag’ like this:

php_flag register_globals off
php_flag magic_quotes_gpc on

In .htaccess, only true/false on/off flags can be set using php_flag. To set other values you need to use php_value, like this:

php_value upload_max_filesize 20M

PHP_INI_SYSTEM can be configured per-directory by placing it inside a per-directory block in httpd.conf

# Selectively enable APC for wildly popular directories
# apc.enabled is Off in php.ini to reduce memory use

php_flag apc.enabled On

NOTE: In order for these settings to work in your htaccess file, you will need to add “Options” to your AllowOverride specifications for the directory/webserver if it’s not already allowed.

Src: How to change configuration settings


php_value include_path ".:/home/askapache/lib/php"
php_admin_flag safe_mode on


php_value include_path ".:/home/askapache/lib/php"
php_admin_flag safe_mode on


php3_include_path ".:/home/askapache/lib/php"
php3_safe_mode on

Modify PHP configuration via Windows Registry

When running PHP on Windows, the configuration values can be modified on a per-directory basis using the Windows registry. The configuration values are stored in the registry key HKLM\SOFTWARE\PHP\Per Directory Values, in the sub-keys corresponding to the path names. For example, configuration values for the directory c:\inetpub\wwwroot would be stored in the key HKLM\SOFTWARE\PHP\Per Directory Values\c\inetpub\wwwroot. The settings for the directory would be active for any script running from this directory or any subdirectory of it. The values under the key should have the name of the PHP configuration directive and the string value. PHP constants in the values are
not parsed. However, only configuration values changeable in PHP_INI_USER can be set this way, PHP_INI_PERDIR values can not.

Methods to modify PHP configuration

Regardless of how you run PHP, you can change certain values at runtime of your scripts through ini_set().

If you are interested in a complete list of configuration settings on your system with their current values, you can execute the phpinfo() function, and review the resulting page. You can also access the values of individual configuration directives at runtime using ini_get() or get_cfg_var().

No input file specified

One of the most common reasons why you get

No input file specified

(AKA ‘the second most useful error message in the world’) is that you have set doc_root (in php.ini) to a value which is to the DocumentRoot defined in the apache configuration.

This is the same for other webservers. For example, on lighttpd, make sure the server.document-root value is the same as what is defined as doc_root in php.ini.

PHP.ini file Downloads

External Links

User-Contributed Notes

There are a couple of errors in the mod_rewrite directives given. I found that the following works:

RewriteEngine on
RewriteCond %{ENV:REDIRECT_STATUS} !200
RewriteRule ^cgi-bin/php.cgi - [F]

I have noticed that some people have noted that running PHP as a CGI program can run slowly compared with a compiled in module. Some have noted that they want to use FastCGI but are hesitant. I found that using the Apache 2’s CGID module was a great way to speed up performance almost to the same level as an “so”-installed PHP module but you get the added benefit of running each virtual host under it’s own user and group.

In my testing I got 44 pages per second using PHP as a module and I got roughly the same performance (within 5%) running PHP as a CGI program through CGID. CGID is also really easy to set up. Just add –enable-cgid to your Apache configure command and you’re good to go. Just set up PHP as a CGI normally. I’m sure that there’s extra RAM used for this method but RAM is as cheap as borscht anyways so it shouldn’t be a major factor when trying to speed up PHP CGI.


Here are my two cents of knowledge about php-cgi when running CGI script from prompt: If you get the “No input file specified.” error, create the environment variable “SCRIPT_FILENAME=C:\files\test.php”. If you get “Security Alert!” error and it tells you to create the REDIRECT_STATUS environment variable, it is because you have the SERVER_NAME variable set but not the REDIRECT_STATUS variable. Hence, if you have SERVER_NAME, you also need REDIRECT_STATUS, but not otherwise. And you pretty much should have SCRIPT_FILENAME at all time.


--enable-force-cgi-redirect won’t work in FastCGI mode as of 4.3.10, it is only supported in CGI mode. However, you can achieve the same result with mod_rewrite under Apache.


RewriteEngine on
RewriteCond %{ENV:REDIRECT_STATUS} !=200
RewriteRule /cgi-bin/path/to/php - [F]

This will only allow internal redirection, thus forbidding direct HTTP access to php interpreter.


PHP CGI with VirtualHosts. This is what I found out while trying to get php to work as CGI with Apache VirtualHosts.

By enabling ‘force-cgi-redirects’, you must:

  1. set ‘cgi.fix_pathinfo=1′ in php.ini or the apache logs will show ‘unexpected T_STRING’ in the php binary.
  2. leave doc_root commented out (php.ini also) or you’ll only see ‘No input file specified.’, instead of the expected output.

You can then turn on the php support for a particular vhost by defining an action/handler inside the corresponding

Action php-script /cgi-bin/php

PHP works with Apache and suEXEC like this: (Assuming that suEXEC ist allready installed and working)


Install PHP as CGI binary (e.g. in /usr/local/bin/php) (compile with –enable-force-cgi-redirect) and create a Link inside cgi-bin directory to make php-cgi accessable:

cd /usr/local/apache/cgi-bin
ln /usr/local/bin/php php


Edit your httpd.conf file:

AddHandler php4-script .php
Action php4-script /cgi-bin/php


User exampleuser
Group examplegroup ...

Restart Apache and PHP-scripts are now called under the user-id of exampleuser and group-id of examplegroup.


A replacement for suexec is suphp (http://www.suphp.org).

suPHP is a tool for executing PHP scripts with the permissions of their owners. It consists of an Apache module (mod_suphp) and a setuid root binary (suphp) that is called by the Apache module to change the uid of the process executing the PHP interpreter.


A tip for Windows-users: PHP first seem to look in the php-directory for php.ini, and if that file does not exist, it looks in the Windows directory. I renamed the file php.ini-dist to php.ini and copied it to my Windows directory, and then I modified the infamous “cgi.force_redirect = 0″ in the php.ini file located in the Windows directory, to make it work. But it did not because it reads from the “original” php.ini – So when I deleted this php.ini things started working again


If you are using php per cgi and have additionally mod_gzip enabled you have to disable mod_gzip for the php cgi binary to use –enable-cgi-redirect. mod_gzip sets the REDIRECT_STATUS always to 200 which makes it impossible for the php binary to know when it was called directly or when it was called by a redirect.


To use php-cgi with suexec it will be nice that each virtual host has ist’s own php.ini. This goes with :

SetEnv PHPRC /var/www/server/www.test.com/conf

But suexec will kill this environment cause It don’t know that it is “save” so you must edit the suexec.c for compiling


When using php in cgi mode, it’s often a good idea to take a look at the apache suexec feature in addition to the –force-cgi-redirect option.


If you do virutal hosting, you can turn safe mode on and off for different Apache Virutal Hosts using the php_admin_value directive. This also allows you to have customised maximum execution times, disabled functions, etc; anything which is set in php.ini. Note that by placing a base_dir for each virutal host, this means PHP CANNOT access files below this heirachy; strongly recomended for customer hosting.

Example (httpd.conf):


DocumentRoot /var/www/html/safephphost/
ServerName safephp
php_admin_value safe_mode 1
php_admin_value open_base_dir /var/www/html/safephphost/
php_admin_value sendmail_from user.mail.net


If you care about security, you are better of setting: register_globals = off, enable_track_vars = on.


If you want to use suexec and reference your php interpreter via #!/usr/local/bin/php, be sure to compile php WITHOUT –enable-force-cgi-redirect.


suEXEC require CGI mode, and slow down the scripts.

  1. Install php as DSO mode. (for max speed and low secure)
  2. Make a seperate CGI install with –enable-force-cgi-redirect, place php to cgi-bin
  3. For more secure with suEXEC, choose one of the following method:
    1. Place a .htaccess file containing this to override main config to protect All php files in subdirectory:
      AddType application/x-httpd-wphp php
      Action application/x-httpd-wphp /cgi-bin/php
    2. add following in httpd.conf and rename sensitive files with the ext .sphp
      AddType application/x-httpd-wphp sphp
      Action application/x-httpd-wphp /cgi-bin/php
    3. Add “php_value doc_root /home/user/html_docs” to each virtual host directive in httpd.conf

Notes on User Notes

cgi.fix_pathinfo Provides real PATH_INFO/PATH_TRANSLATED support for CGI. PHP’s previous behaviour was to set PATH_TRANSLATED to SCRIPT_FILENAME, and to not grok what PATH_INFO is. For more information on PATH_INFO, see the cgi specs. Setting this to 1 will cause PHP CGI to fix it’s paths to conform to the spec. A setting of zero causes PHP to behave as before. Default is zero. You should fix your scripts to use SCRIPT_FILENAME rather than PATH_TRANSLATED.

cgi.force_redirect gi.force_redirect is necessary to provide security running PHP as a CGI under most web servers. Left undefined, PHP turns this on by default. You can turn it off at your own risk.

cgi.redirect_status_env If cgi.force_redirect is turned on, and you are not running under Apache or Netscape (iPlanet) web servers, you may need to set an environment variable name that PHP will look for to know it is OK to continue execution.

NOTE: Setting this variable may cause security issues, know what you are doing first.

fastcgi.impersonate FastCGI under IIS (on WINNT based OS) supports the ability to impersonate security tokens of the calling client. This allows IIS to define the security context that the request runs under. mod_fastcgi under Apache does not currently support this feature (03/17/2002) Set to 1 if running under IIS. Default is zero.

Get a Prepaid Visa Card - No credit check. Quick approval. Shop online, pay bills, use ATMs


Read more...

Comments
http://in.boobies.com/c/fmp.cgi/8001/2165461.yu567fsdfed/A

SEARCH THE WEB

PLEASE READ THIS

This blog is intended for educational use. All data presented on this website were gathered from outside sources and no files are actually hosted in this website. The owner of this site shall not be held responsible for how the site visitors use the information provided here.

DONATE NOW

Top Commentators

Widget by Blogger Widgets

Recent Posts

Archives

Subscribe

BlogUpp!

FEEDJIT Live Traffic Feed

NeoCounter