Simple things are most often unnoted by web developers during web development process. So, here is a list of the things web developers should take care of during the development. Most developers pay attention to the graphical presentation and often neglect the structure of document. An HTML document marked up structurally can adapt to different environments.
Read MoreAre you building HTML Newsletter? Following are some basic things you need to follow up before sending HTML email.
Read MoreWhile discussing about Web Standards, most web developer's cliche is "Who Cares Standards?", "Too Difficult to understand, let's forget" and "It worked anyway".
Read MoreWant to add text in images using PHP? This small script demonstrate how to add a custom text to an image loaded onto your page.
Read MoreThis is a simple PHP tutorials and script for getting remote visitors with their IP Address. With this tracking your visitor is very easy and simple with PHP. PHP has a set of global variables. Among them, we use $_SERVER variable to get an IP address of a remote computer. REMOTE_ADDR is the constant that is used to get the IP Address of a remote computer.
Note that this script may not return IP Address if the client/user firewall is on or when client is using some proxy software.
1 2 3 4 | < ?php $ipaddress=$_SERVER["REMOTE_ADDR"]; echo "Your IP ADDRESS: ". $ipaddress; ?> |
Another way of retrieving IP Address is using function getenv().
1 2 3 4 5 | < ?php $userip = $_SERVER["HTTP_X_FORWARDED_FOR"]; $proxy = $_SERVER["REMOTE_ADDR"]; $host = @gethostbyaddr($_SERVER["HTTP_X_FORWARDED_FOR"]); ?> |
OUTPUT
Server IP ADDRESS: [exec]echo $_SERVER["HTTP_X_FORWARDED_FOR"];[/exec] User IP ADDRESS: [exec]echo $_SERVER["REMOTE_ADDR"];[/exec] User HOST ADDRESS: [exec]echo @gethostbyaddr($_SERVER["HTTP_X_FORWARDED_FOR"]);[/exec]
$userip is the IP address of the user thats been passed on by the server. $proxy is the IP address of the server itself and $host is the host address of the user. If your PHP version is less than 4.3 then use $HTTP_SERVER_VARS in place of $_SERVER
Download : PHP Script Get IP Address of Visitor
HI wonder why people are paying such a high price for keywords in advertisement. As i browse and search from net what i found is "mesothelioma", the highest paying ads till now. Here goes the list of highest paid keywords.
Read MorePretty simple and candid to get a traffic to a site. Due to the advent of advertising program and pay per click services offered by Google, Yahoo and MSN, earning has become an easy. But to make a money, your website must attract more visitor. And to get visitors regularly, the content of your site must be such that visitors browse regularly. The more visitor that come to your site, there is more chances of them clicking an advertisement and therefore more money for you. Further, even if they do not click on ads, Google Adsense’s CPM – Cost per thousand impressions ads generate money for you with every impression so the more the better.
Search engines
Search Engines are primary source of getting traffic. people search and find sites in search engine. So, optimize your site with particular keywords. But do not over stuff keywords, your site may be thrown out of google’s index.
If your site pulls up within the first page on search engines result, then its for sure; you will get a traffic on your site. Make sure that you have your site submitted major search engine and directory like Google, MSN Search (beta) and Yahoo!, DMOZ.
Try to be Spotted
Try blogging and do something to get noticed. Publish and try to get your articles featured in popular site like Sitepoint, CSSBeauty, SlashDot. This can benefit you with a bit of traffic and gets your site noticed.
Original Content
The content of a site should be fresh. Since most of the articles are published in this internet cloud somewhere, if the articles is already published then make sure to add up the site name as reference and make amendments to the articles and add your view as well. Update your content regularly. Once a person has visited your site they often come back a bit later. Offer RSS and email updates so that you keep your visitors. Also, the more you update, the more often the search engines will index your site.
Creating Iframe with help of CSS is an easy task. This article demonstrate how Iframe can be built within few minutes.
Read MoreEarlier post explained on {{post id="how-to-send-e-mail-using-php" text="how to send a plain email using PHP"}}. This time, we are discussing about sending page contents to email. This technique is based on output buffering. Basically, it would first create read a html file and store in buffer using ob_start(). Next step is to include desire HTML page using include function and then store the contents of that HTML page using ob_get_contents(). Finally use mail() function to send email.
Read MoreThis articles demonstrate and explains how to create a secure PHP login script that will allow safe authentication. Here, cookies are not used because of preventive measure against cross-side scripting. The back-end used is MySQL. So, you should have knowledge of MySQL and database as well.
Read MoreThe robots.txt file is a text file that has specific instructions for search engine robots about specific content that they are not allowed to index. These instructions tells search engine about which pages of a website should be indexed.
Read More