How to speed up the php website?

 

There some list of url to speed up the website.

1) Optimize site speed:

http://www.improvetheweb.com/how-to-optimize-site-speed

2) The basic rules speedup your website:

http://www.webmaster-talk.com/website-design-forum/44591-basic-ways-speed-up-your-website.html

3) Using memcache to increase speed up website:

http://www.host.co.in/forums/f28/how-increase-website-speed-using-memcache-938/

4) There is a blog to speed up website and increase conversions :

http://www.modernblue.com/web-design-blog/speed-up-your-website-and-increase-conversions/

5) Make the website faster :
http://groups.google.com/group/make-the-web-faster/browse_thread/thread/ddfbe82dd80408cc

6) To compare the php language website with other languages:

http://www.procata.com/blog/archives/2006/02/09/comparing-php-with-other-languages

Thank you.

Categories: Articles

Google to launch Chrome OS to challenge Microsoft

Google to launch Chrome OS to challenge Microsoft:

To compete with the entrenched Windows platform, Google is ready to launch a new computer OS. Initially, the Chrome OS will be designed for low-cost netbooks, and offer program code to developers across the globe.

Categories: Latest News

Good news for Internet

Scientists have developed a new optical fibre technology to transmit ten times more data over existing cables, which will boost the capacity of broadband networks and give better download time worldwide.

it has been started by at&t … most of the northeast regions like california and losangeles got this technology.. they planning to implement further…

Categories: Latest News

How to get the real IP address using php?

October 15, 2009 Anil Kumar Panigrahi 1 comment

The code will get the real IP address of running those scripts.

<?php
function getRealIpAddress()
{
if (!empty($_SERVER['HTTP_CLIENT_IP']))

//check ip from share internet
{
$ip=$_SERVER['HTTP_CLIENT_IP'];
}
elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR']))

//to check ip is pass from proxy
{
$ip=$_SERVER['HTTP_X_FORWARDED_FOR'];
}
else
{
$ip=$_SERVER['REMOTE_ADDR'];
}
return $ip;
}

echo getRealIpAddress(); // display the real IP address
?>

it will be useful.

Categories: PHP Code

How to add stylesheets and javascript in smarty

how to add styles and javascript, to smarty application, in the head section  written the styles code but when we are applying that code to the tpl file is not applied is there any separate code to written in the smarty.

for that reason go to below code

we can the simple code in the smarty application for style sheet and javascript , we add the add one keyword in the tpl files, then

{literal}
<style type=”text/css”>
.style1
{
font-family:Arial, Helvetica, sans-serif;
color:#666666;
}
</style>
{/literal}

It will be useful.

Categories: Smarty

BlogCatalog

Programming Blogs - BlogCatalog Blog Directory

PHP is third position of programming languages.

PHP programming language has been listed among the first 3 most popular and widly used computer programming languages in the world.  According to TIOBE Programming Community Index, PHP is 3 position first time .

First position is Java , second position is C and third position is PHP.

The complete graph of the PHP from 2004 to present of TIOBE community.

In the year 2008 PHP position is 5th now increases the two positions and now is 3rd position.

Thank you.

Anil Kumar Panigrahi

Categories: Articles

How to external html content to the mail using php?

September 16, 2009 Anil Kumar Panigrahi 2 comments

Hi,

The following code will work, this functionality is use the external html content as email body.

$mail = new PHPMailer();
$mail->IsMail();
$mail->Timeout  = 360;
$mail->From = “”;
$mail->FromName = “”;
$mail->AddReplyTo(“”);
$mail->AddAddress($Email);
$mail->IsHTML(true);
$mail->Subject = “Html as email”;

$file = fopen(“email.html”,”r”);
$str=fread($file,filesize(“email.html”));
$str = trim($str);
fclose($file);

$mail->Body    = $str;

$mail->Send();

Then it will send the external html file as email body.

But be sure that in the html file all images should be full path. like:
http://www.domain.com/images/<image name>

It will be helpful.

Thank you,

Categories: PHP Code

Father of PHP – Rasmus Lerdorf

Father of PHP - Rasmus Lerdorf

Father of PHP - Rasmus Lerdorf

Rasmus Lerdorf is created PHP at that time PHP  stands for  “Personal Home Page”. It was later changed to “Hypertext Preprocessor” by Suraaski and Gutmans during the rewrite to PHP3 as it’s use extended beyond html page manipulation.

Categories: General Category

How to overcome the browser autocomplete?

If the application have the auto-complete (auto-suggest) functionality, then first time when i am type a character then some text auto suggestion will appear, from the next time when i am trying to enter the same test then browser auto-complete is working along with the our auto-complete. To avoid that problem add the following code in the text box:

<input type=”text” name=”userName” autocomplete=”off”/>

Hope it will be useful.

Categories: Simple CSS Code