Quick Contact:
Enter verification code
top img
Web Resources

Overclocking Forums

Your Overclocking Forums and Hardware Problem Solving Community!

Magento Themes - Learn about the wonderful world of word press themes developed by professionals and presented in classic templates to select from a wider range to give your blog a professional look and exotic appeal.

 

PHP TIPS:

Providing Header Information:


By default, each code written in PHP would contain a header file that provides information about the type of image that will be stored by using the code. The header files contain the Content -type header that stores this information. You can also direct the image information into the HTML Web page by specifying this in the header. The following code specifies that the output should be displayed in the Web page.

header ("Content type: text/html");

You can also use the header () function to specify that the output file should be JPG, GIF, or PNG, depending on your requirement.  Therefore, you can use the header information to specify the different types of image files that you want to create in your program. The following code displays how you can specify these instructions in your code.

Header  ("Content type:  text/html"); 
Header ("Content type: text/html"); 

You'll learn to create images in PHP in the next section.

 

Page 1 | Page 3 | page 4 | page 5