Archive for the ‘PHP’ Category

Posted by admin on December - 11 - 2012 0 Comment

PHP 6′s Status Several books have already been written and published about PHP 6, such as Professional PHP6 by Edward Lecky-Thompson & Steven Nowicki. Despite this, PHP6 does not exist yet. There is no PHP 6 beta or even alpha. PHP 6 does not exist. To see that PHP 6 doesn’t exist yet, see PHP’s  [ Read More ]

Categories: IT News, PHP, Programming
Posted by admin on January - 11 - 2012 0 Comment

43 Tips for Optimizing PHP code Here is the list of 43 short tips you can use for writing an optimized and more efficient PHP code: If a method can be static, declare it static. Speed improvement is by a factor of 4. echo is faster than  print . Use echo’s multiple parameters instead of  [ Read More ]

Posted by admin on May - 11 - 2011 0 Comment

Like a Heroku for PHP, PHP Fog is launching to the public today in order to help PHP developers deploy and scale their applications in the cloud. Raising $1.8 million in a round lead by Madrona and followed on by First Round, Founders Co-Op and others. PHP Fog launched in private beta in December and  [ Read More ]

Categories: IT News, PHP, Programming
Posted by admin on February - 25 - 2011 0 Comment

This post provides an step by step approach for deploying a PHP application on an IIS 7 server. The first thing that needs to be done is to make sure that IIS is installed on your machine. You can do this from the Turn Windows Feature On Off option in the Program and Features of  [ Read More ]

Categories: IT News, PHP
Posted by admin on December - 15 - 2010 0 Comment

MS Word document Using HTTP headers Using COM objects Using OpenOffice templates Using Zend Framework component phpLiveDocx MS Excel document Using HTTP headers Using COM objects CSV file Using HTTP headers Using fputcsv() How to create MS Word document Method 1 – Using HTTP headers <?php header(“Content-type: application/vnd.ms-word”); header(“Content-Disposition: attachment;Filename=document_name.doc”); echo “<html>”; echo “<meta http-equiv=\”Content-Type\” content=\”text/html;  [ Read More ]

Categories: PHP, Programming
Posted by admin on December - 15 - 2010 0 Comment

<?php //define the receiver of the email $to = ‘youraddress@example.com'; //define the subject of the email $subject = ‘Test HTML email'; //create a boundary string. It must be unique //so we use the MD5 algorithm to generate a random hash $random_hash = md5(date(‘r’, time())); //define the headers we want passed. Note that they are separated with \r\n $headers =  [ Read More ]

Categories: PHP, Programming
Posted by admin on December - 15 - 2010 0 Comment

<?php //define the receiver of the email $to = ‘youraddress@example.com'; //define the subject of the email $subject = ‘Test email'; //define the message to be sent. Each line should be separated with \n $message = “Hello World!\n\nThis is my first mail.”; //define the headers we want passed. Note that they are separated with \r\n $headers = “From: webmaster@example.com\r\nReply-To: webmaster@example.com”;  [ Read More ]

Categories: PHP, Programming
Posted by admin on December - 15 - 2010 0 Comment

If you are developing a password-protected web site, you have to make a decision about how to store user password information securely. What is “secure,” anyway? Realize that the data in your database is not safe. What if the password to the database is compromised? Then your entire user password database will be compromised as  [ Read More ]

Categories: PHP, Programming
Posted by admin on December - 15 - 2010 0 Comment

<?php $myServer = “localhost”; $myUser = “your_name”; $myPass = “your_password”; $myDB = “examples”; //connection to the database $dbhandle = mssql_connect($myServer, $myUser, $myPass) or die(“Couldn’t connect to SQL Server on $myServer”); //select a database to work with $selected = mssql_select_db($myDB, $dbhandle) or die(“Couldn’t open database $myDB”); //declare the SQL statement that will query the database $query  [ Read More ]

Categories: PHP, Programming
Posted by admin on December - 15 - 2010 0 Comment

A cookie is a message given to a Web browser by a Web server. The browser stores the message in a small text file that the server embeds on the user’s computer. Each time the same computer requests a page with a browser, the cookie is sent back to the server too. There are a  [ Read More ]

Categories: PHP, Programming
  • RSS
  • Delicious
  • Digg
  • Facebook
  • Twitter
  • Linkedin
  • Youtube

Search Site

Popular Posts

Review: The Apple iP

In these times we have little opportunity for mystical religious ...

Everything you need

The iPhone OS 4.0 event just wrapped up and the ...

The end of SQL and r

The road to SQL started with Dr. E.F. Codd's paper, ...

Microsoft Arc Keyboa

I am losing the war on clutter. Apparently my desk ...

John Shepherd-Barron

John Shepherd-Barron, the Scotsman credited with inventing the world's ...

Sponsors