Contact Us Forum Rules Search Archive
WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-03-2007, 08:41 AM
WebProWorld New Member
 

Join Date: Feb 2007
Posts: 3
Alice 888 RepRank 0
Default Simple PHP Benchmark Script

Since I do a lot of PHP web development, I've always wanted a nice easy script to test how well a server can perform various PHP functions--a benchmark. After looking for months without finding a nice-looking easy benchmark, I made my own. With a clean, nice UI and several subtests, this benchmark runs through 10 iterations to see how well your server runs PHP scripts.

PHP Benchmark v1.1
http://benchmarks.nickbarrett.org

Download the script, see submitted results, and find more info. The tests require PHP 4.2.x or newer, and the image/memory manipulation tests use the GD2 image library. Just unzip the file and run the benchmark.php script on your web server.

The benchmark can be downloaded at the site above, or from the included attachment. Please share your results for everyone's benefit! Suggestions, comments, and other feedback welcomed!

Thanks!

But it seems my professor insists on using a huge print command instead of breaking up the php:
CODE
<?php

$date = date("F d, Y H:i:s a");

print <<<EOT

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head><title>Comm393: </title>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
</head>
<body>

<h1>Hello World</h1>
<center>$date</center>
</body></html>

EOT;
?>

Which methods do you php coders out there use? Are there any specific advantages or disadvantages when comparing the two?

Thanks. ;D
__________________________________________________ _
[url=http://www.cheapstingybargains.com/]Buy.com Coupons[/ul] Intensive English Course
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Tags: , , ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Search Engine Optimization by vBSEO 3.2.0