What is content type header

August 6th, 2008 by admin

This is an example of content type header,

“Content-type: text/html; charset=iso-8859-1?

So what is this for? from the RFC 2616, you could get the explanation:

When an entity-body is included with a message, the data type of that
body is determined via the header fields Content-Type and Content-
Encoding. These define a two-layer, ordered encoding model:

entity-body := Content-Encoding( Content-Type( data ) )

Content-Type specifies the media type of the underlying data.
Content-Encoding may be used to indicate any additional content codings applied to the data, usually for the purpose of data compression, that are a property of the requested resource. There is no default encoding.
Any HTTP/1.1 message containing an entity-body should include a Content-Type header field defining the media type of that body.

Tags: , ,

It’s a superb tool , you can create a change, read, update and delete page for your mysql table easily using php. Check it out here. Sorry, i am currently unavailable to update this blog regularly since i am working for outsourcing project using PHP and MySQL.

Another innovation from netbeans community. I know it’s already an old things, but i just have known it yesterday.

It’s php early access for php. An IDE that will helps you program using php easily. This IDE has intellisense feature and syntax highlight.

What this software lack of, is an WYSIWYG editor. But i bet this software will be better than dreamweaver in a next few years.

The minus of this software is it’s quite heavy since this software was made using java. But it also bring positive consequences, that is it’s multiplatform.

Want to try, just download it from http://netbeans.org

Tags: , , ,

after browsing for a while, i found that it was by using code below on the header:

header(”Location: http://www.learningcomputer.info”);

eg: if you want other url, just change the “learningcomputer.info” with other url.

I was doing some programming on PHP, then i found a problem. It’s a text that shows Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at…. After browsing for a while, i found this. It’s because a whitespace before the opening tag of PHP.

It’s clear right now….

Tags:

The best tool for PHP coder

March 9th, 2008 by admin

There are many commercial or free & open source text editors in which PHP coders relies on it. From those tools, the most ergonomic yet free and opensource is Notepad++.

What i like of this software was it’s free and open source. Hence it’s more reliable. it has many features, such as syntax highlighting, line numbering, etc.

And since it’s free and opensource, many people are adding features on it. The most interesting is the portable version provided by portableapps.com. So coding can be done on the go…

Viva free and open source softwares…

Tags: , , ,

Have your website indexed by search engine? if haven’t then you could do manual submit using Creating online. You might also use free submitter, such as http://www.submitexpress.com.

But being indexed hasn’t yet enough. you still have to optimize it so that your pages on website can be indexed as much as possible and gaining best positions on search engine results page (SERP). There are many techniques (the free ones) that can be used to optimize your website.

Some Files You have to prepare:

If the search engine haven’t indexed your website, it means the search engine are lazy, so you have to invite them to your site by giving them some files that describes your site. Some of the files are:

  • sitemap.xml (or it’s compressed version sitemap.xml.gz) : This file contain list of URL that describes your website and introduce it to google.
  • urllist.txt (or it’s compressed version urllist.txt.gz) : the same as sitemap, but for Yahoo!.
  • ror.xml : URL lists that can be broadcasted/syndicated via RSS Feed.
  • sitemap.html : URL lists on HTML format.

Making URL Lists

IF you haven’t understand how to program using xml, then dont you worry. You still can make uRL lists without having to code it by yourself. There are many providers on the Net can be utilized. Some of them online, such as ttp://www.xml-sitemaps.com, or you could install some softwares on your computer, such as GSiteCrawler (http://gsitecrawler.com).

Upload URL Lists to Web Hosting

Now upload the files to your web server. on it’s root directory (for example on public_html). This files will be automatically detected by BOTs sent by search engines.

For sitemaps, you could use Google Webmaster tools, and submit your sitemap. Google Webmaster tools also offers many superb facilities for webmasters so that the webmasters know the positions of their websites on google’s eye hence can optimize it.

Do you want to build your own costumized wordpress theme but you feel you don’t have enough skills to code it by yourself, eg: you can’t codes on HTML, JS, PHP or CSS.

Don’t worry dude, you can still make your own wordpress theme by using www.yvoschaap.com. On that site, you can make WordPross theme online , you can manage how it looks, setting the colors, layout, and see the live preview. To download it, you could click Save and the theme will be downloaded right to your desktop on .zip. So you can implement it on your own blog.
Want to try, just visit Yvoschaap’s site to make wordpress theme without coding, here

There are many content management system (CMS) web wares on the net. What i/we love most is the Free and Open Source? why? tons of answers are available. How to choose from that abundant resources of CMSes? here’s the guide:

  • If you want to use CMS that is suitable for big enterprise that has to deal with large amount of contents, than i think you have to choose Joomla or Mambo. Although it’s a little bit heavy but for i guess it’s very suitable for big enterprise. I consider Joomla or Mambo is a heavy duty CMS.
  • For medium class, i think you should use Drupal. It’s also full featured CMS, many plugins are available.
  • For light weight CMSes, you could use Wordpress/serendipity or b2cafelog. It’s easy to operate although the customization is not as flexible as two previous classes. 

Do you have any opinions, you might share it here?

Do you have business or private websites and want to gain viewers from Indonesia, then you might want to place your website to several websites directory in Indonesia that use indonesian language. Amongst the famous websites, is Smitdev Directory.

To get your website on this directory, you just have to register your website name on the form provided on the directory’s web page. It’s free, you don’t have to pay event a cent.

After being validated that your website doesn’t have pornographic contents and other annoying materials, then your website will appears as soon as possible.

Smitdev is a website that has great position on search engine in Indonesia, it will be in the first or second rank with several indonesian keywords related to computer, book and internet.

Check these links out: