<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Webburners &#187; Tech Articles</title>
	<atom:link href="http://www.webburners.com/category/articles/tech-articles/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.webburners.com</link>
	<description>We Burn the web with our expertise</description>
	<lastBuildDate>Thu, 08 Apr 2010 12:53:42 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to break the firewall in colleges</title>
		<link>http://www.webburners.com/2009/09/how-to-break-the-firewall-in-colleges/</link>
		<comments>http://www.webburners.com/2009/09/how-to-break-the-firewall-in-colleges/#comments</comments>
		<pubDate>Wed, 09 Sep 2009 12:44:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tech Articles]]></category>

		<guid isPermaLink="false">http://www.webburners.com/?p=338</guid>
		<description><![CDATA[Often in colleges and school people dont have much access to there pc , i mean to say  people do not have much privledges to install software ,access softwares or access any particular website  .
There is one particular solution i get on website , just change the admin password of your pc by installing one [...]]]></description>
			<content:encoded><![CDATA[<p>Often in colleges and school people dont have much access to there pc , i mean to say  people do not have much privledges to install software ,access softwares or access any particular website  .</p>
<p>There is one particular solution i get on website , just change the admin password of your pc by installing one small software and you will have access to all the things on a pc you want</p>
<p>Just download the software from http://extremevoltages.blogspot.com/2009/09/my-programmed-softwares.html</p>
<p>and install it</p>
<p>Procedure:-<br />
As this software is portable so copy this software from you pendrive to your College or school Computer and then run in.<br />
As you can see the Username is fix &#8220;Administrator&#8221; but you can change it&#8217;s password according to you wish.(But keep that password in mind)<br />
After that reboot your PC.<br />
After boot you will see this window, see in the image.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webburners.com/2009/09/how-to-break-the-firewall-in-colleges/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Iphone integration throw your website using php</title>
		<link>http://www.webburners.com/2009/05/iphone-integration-throw-your-website-using-php/</link>
		<comments>http://www.webburners.com/2009/05/iphone-integration-throw-your-website-using-php/#comments</comments>
		<pubDate>Sun, 24 May 2009 03:20:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tech Articles]]></category>

		<guid isPermaLink="false">http://www.webburners.com/?p=336</guid>
		<description><![CDATA[
Add developerWorks to your iPhone

Well, one thing that I missed from my old phone was the salling clicker  application. Salling Clicker turns any phone into a remote control for a 		Macintosh (and now, computers running Microsoft® Windows®, as well). 		Using the clicker application on the phone, I can launch AppleScripts on my Macintosh 		computer to [...]]]></description>
			<content:encoded><![CDATA[<div class="ibm-container ibm-alt-header dw-container-sidebar">
<h2>Add developerWorks to your iPhone</h2>
</div>
<p>Well, one thing that I missed from my old phone was the salling clicker  application. Salling Clicker turns any phone into a remote control for a 		Macintosh (and now, computers running Microsoft® Windows®, as well). 		Using the clicker application on the phone, I can launch AppleScripts on my Macintosh 		computer to do all kinds of useful things, such as controlling Apple iTunes or KeyNote 		(Apple&#8217;s alternative to Microsoft Office PowerPoint®). On smart phones, this 		functionality required a small downloaded application on the phone. But the iPhone 		doesn&#8217;t allow you to download special applications, because Apple Safari, the Web 		browser, is the SDK. So, how could I use Safari to control my Mac?</p>
<p>The solution I found was to use PHP on my Mac OS X machine combined with Joe Hewitt&#8217;s 		<a href="http://joehewitt.com/">iUI toolkit</a>. The toolkit builds an iPhone-looking 		interface in the Web page. It also handles the feel of the interface. For example, as 		you page through a list of items, iUI sweeps from side to side, just like the iPhone 		does when you page through your list of contacts.</p>
<p><a name="N1008F"><span class="atitle">Building the command list</span></a></p>
<p>Building the application starts with defining some commands that the iPhone remote 			control will present for you to select. You use an XML file to define the 			commands. <a href="http://www.ibm.com/developerworks/xml/library/x-iphonexmlphp/#list1">Listing 1</a> shows this file.<br />
<a name="list1"><strong>Listing 1. commands.xml</strong></a></p>
<table border="0" cellspacing="0" cellpadding="0" width="65%">
<tbody>
<tr>
<td class="code-outline">
<pre class="displaycode">
&lt;commands&gt;
  &lt;command title="Next Song"&gt;
    tell application "iTunes" to next track
  &lt;/command&gt;
  &lt;command title="Previous Song"&gt;
    tell application "iTunes" to back track
  &lt;/command&gt;
&lt;/commands&gt;</pre>
</td>
</tr>
</tbody>
</table>
<p>The file is a list of <code>&lt;command&gt;</code> tags. Each tag has 			a title attribute that defines a human readable title for the command. And the 			content of the <code>&lt;command&gt;</code> tag is the AppleScript 			code to execute when the command is requested. Because of XML encodings, if you 			want to put in any AppleScript code that has angle bracket (&lt; or &gt;) or 			ampersand (&amp;) characters, you must encode those as <code>&lt;</code>,  			<code>&gt;</code>, and <code>&amp;</code>, respectively.</p>
<p>To wrap this XML file, I wrote a PHP V5 <code>Command</code> class 			that reads the file, returns the command names, and runs the commands using the 			Mac OS X <code>osascript</code> command. The code for this class is 			shown in <a href="http://www.ibm.com/developerworks/xml/library/x-iphonexmlphp/#list2">Listing 2</a>.<br />
<a name="list2"><strong>Listing 2. commands.php</strong></a></p>
<table border="0" cellspacing="0" cellpadding="0" width="65%">
<tbody>
<tr>
<td class="code-outline">
<pre class="displaycode">
&lt;?php
class Commands
{
  private $_commands;

  function __construct()
  {
    $this-&gt;_commands = array();

    $doc = new DOMDocument();
    $doc-&gt;load('commands.xml');
    $cmds = $doc-&gt;getElementsByTagName( 'command' );
    foreach( $cmds as $cmd )
    {
      $this-&gt;_commands []= array(
        'title' =&gt; $cmd-&gt;getAttribute('title'),
        'command' =&gt; $cmd-&gt;firstChild-&gt;nodeValue
      );
    }
  }

  function getCommands()
  {
    $cmds = array();
    foreach( $this-&gt;_commands as $cmd )
    {
      $cmds []= $cmd['title'];
    }
    return $cmds;
  }

  function runCommand( $id )
  {
    $ph = popen( "osascript", "w" );
    fwrite( $ph, $this-&gt;_commands[$id]['command'] );
    fclose( $ph );
  }
}
?&gt;</pre>
</td>
</tr>
</tbody>
</table>
<p>The class starts by loading up the commands.xml file. It reads in the file using the 			<code>DomDocument</code> PHP class. Then, it finds all the command 			arguments using <code>getElementsByTagName</code>. When it has the 			<code>&lt;command&gt;</code> tags as an array, the class loads the 			<code>_commands</code> member variable with the titles and 			AppleScript commands.</p>
<p>Two additional methods are defined:</p>
<ul>
<li> The <code>getCommands()</code> method, which simply returns a list of the names</li>
<li> The <code>runCommand()</code> method, which given an index runs that command using the <code>osascript</code> command-line AppleScript executor.</li>
</ul>
<div class="ibm-alternate-rule">
<hr /></div>
<p class="ibm-ind-link ibm-back-to-top">
<p><a name="N10101"><span class="atitle">Building the interface</span></a></p>
<p>With the commands XML file and <code>Commands</code> PHP class written, 			it&#8217;s time to add an interface. Just to make sure everything is 			working properly, I&#8217;ll put a fairly rudimentary interface on it.<br />
<a name="list3"><strong>Listing 3. Simple interface script</strong></a></p>
<table border="0" cellspacing="0" cellpadding="0" width="65%">
<tbody>
<tr>
<td class="code-outline">
<pre class="displaycode">
&lt;html&gt;&lt;body&gt;
&lt;?php
require_once('commands.php');
$cmds = new Commands();
?&gt;
&lt;?php
$id = 0;
foreach( $cmds-&gt;getCommands() as $cmd ) {
?&gt;
&lt;a href="do.php?id=&lt;?php echo($id);?&gt;"&gt;&lt;?php echo( $cmd ); ?&gt;&lt;/a&gt;&lt;br/&gt;
&lt;?php $id++; } ?&gt;
&lt;/body&gt;&lt;/html&gt;</pre>
</td>
</tr>
</tbody>
</table>
<p>The script first gets the <code>Command</code> class, and then asks it 			for the lists of commands using the <code>getCommands()</code> method. 			Then, the script builds a set of links to the do.php page using the command index 			number and the name of the command that the <code>Commands</code> class returned.</p>
<p>When I navigate to the page in the Safari browser, I see something like fig 1<br />
<a name="fig1"><strong>Figure 1. The rudimentary interface</strong></a><br />
<img src="http://www.ibm.com/developerworks/xml/library/x-iphonexmlphp/myController_1_421_366.jpg" alt="The rudimentary interface" width="421" height="366" /></p>
<p>I could use this as my iPhone interface and it would work. But it wouldn&#8217;t feel like 			the iPhone. So, the next thing to do is use the iUI toolkit to extend the interface. 			<a href="http://www.ibm.com/developerworks/xml/library/x-iphonexmlphp/#list4">Listing 4</a> shows the code for doing so.<br />
<a name="list4"><strong>Listing 4. index.php</strong></a></p>
<table border="0" cellspacing="0" cellpadding="0" width="65%">
<tbody>
<tr>
<td class="code-outline">
<pre class="displaycode">
&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;&lt;head&gt;
&lt;title&gt;Mac Controller&lt;/title&gt;
&lt;meta name="viewport"
  content="width=320; initial-scale=1.0; maximum-scale=1.0; user-scalable=no;"/&gt;
&lt;style type="text/css" media="screen"&gt;@import "iui/iui.css";&lt;/style&gt;
&lt;script type="application/x-javascript" src="iui/iui.js"&gt;&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div class="toolbar"&gt;
  &lt;h1 id="pageTitle"&gt;&lt;/h1&gt;
  &lt;a id="backButton" class="button" href="#"&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;?php
require_once('commands.php');
$cmds = new Commands();
?&gt;
&lt;ul title="Commands" selected="true"&gt;
&lt;?php
$id = 0;
foreach( $cmds-&gt;getCommands() as $cmd ) {
?&gt;
&lt;li&gt;
&lt;a href="do.php?id=&lt;?php echo($id);?&gt;"&gt;&lt;?php echo( $cmd ); ?&gt;&lt;/a&gt;
&lt;/li&gt;
&lt;?php $id++; } ?&gt;
&lt;/ul&gt;
&lt;/body&gt;&lt;/html&gt;</pre>
</td>
</tr>
</tbody>
</table>
<p>At the top of the file, you include the iUI CSS file that has all the styles that 			give the page its iPhone look. Then, you include the iUI JavaScript file that 			handles all the interactivity. After that, you use the <code>Commands</code> class to get the list of commands. With that list, you build an unordered list 			(<code>&lt;ul&gt;</code>) with list item elements for each item 			(<code>&lt;li&gt;</code>). No, it&#8217;s not as ugly as it sounds. In 			fact, you can look at it in Safari, and you&#8217;ll get exactly the same look as you 			would on the iPhone, as shown in figure2<a href="http://www.ibm.com/developerworks/xml/library/x-iphonexmlphp/#fig2"></a><br />
<a name="fig2"><strong>Figure 2. The index.php page as rendered in Safari</strong></a><br />
<img src="http://www.ibm.com/developerworks/xml/library/x-iphonexmlphp/myController_2_392_198.jpg" alt="The index.php page as rendered in Safari" width="392" height="198" /></p>
<p>If you use Windows, don&#8217;t worry: Safari now runs on both Windows and Mac. Of 			course, the PHP that runs this code must be on a Mac to run the 			<code>osascript</code> command and the AppleScript code. But you 			could use system commands if you want to run this on DOS or UNIX® systems.</p>
<p>The final step is to create the do.php file that index.php references to run the 			actual commands. This class is shown in Listing 5<br />
<a name="list5"><strong>Listing 5. do.php</strong></a></p>
<table border="0" cellspacing="0" cellpadding="0" width="65%">
<tbody>
<tr>
<td class="code-outline">
<pre class="displaycode">
&lt;?php
require_once('commands.php');

$cmds = new Commands();
$cmds-&gt;runCommand( $_GET['id'] );
?&gt;</pre>
</td>
</tr>
</tbody>
</table>
<p>Now, you can use Safari to browse to the page locally and just click the links to 		  check whether the application works. If everything is in order, iTunes 			will go to the next or previous song depending on what you select.</p>
<p>One thing I did have to change on my installation was to edit the /etc/httpd/httpd.conf 			file, change the <strong>User</strong> setting to my user name, and change the <strong>Group</strong> setting to <strong>staff</strong>. I then rebooted my Apache server by running this command 			line:</p>
<table border="0" cellspacing="0" cellpadding="0" width="65%">
<tbody>
<tr>
<td class="code-outline">
<pre class="displaycode">% apachectl graceful</pre>
</td>
</tr>
</tbody>
</table>
<p>With that done, my iTunes interface flipped back and forth between tracks when I 		  clicked the links. I can then turn on my iPhone and use the Safari browser to go 			to my local machine by IP address and access the application, as long as my laptop 			and my iPhone are on the same Wi-Fi network.</p>
<div class="ibm-alternate-rule">
<hr /></div>
<p class="ibm-ind-link ibm-back-to-top"><a class="ibm-anchor-up-link" href="http://www.ibm.com/developerworks/xml/library/x-iphonexmlphp/#ibm-pcon"><br />
</a></p>
<p><a name="N101A2"><span class="atitle">Telekenesis</span></a></p>
<p>As I did the research for this article, I found that someone had already taken 			this whole concept of a Mac-driven remote for the iPhone to a new level. The project 			is called <a href="http://code.google.com/p/telekinesis">telekinesis</a>, and it&#8217;s 			hosted on the Google Code site. The application is called <em>iPhone Remote,</em> and 			it runs as a graphical user interface (GUI) application in Mac OS X.</p>
<p>When I launch iPhone Remote, it opens Safari to a page that shows what it will look 			like on the iPhone. This is shown in fig 3<br />
<a name="fig3"><strong>Figure 3. The iPhone Remote interface</strong></a><br />
<img src="http://www.ibm.com/developerworks/xml/library/x-iphonexmlphp/iPhoneRemote_319_418.jpg" alt="The iPhone Remote interface" width="319" height="418" /></p>
<p>From here, I can navigate to my applications and open them, browse my documents, use 			an iTunes remote, even navigate around the screen and run command lines—all 			from my iPhone.</p>
<p>The iPhone Remote does prompt you for a user name and password so that not just 			anyone can use your Mac after you&#8217;ve installed and run it. So, it&#8217;s possible to 			use the iPhone as a secure virtual network computing (VNC) device for your Mac 			remotely.</p>
<div class="ibm-alternate-rule">
<hr /></div>
<p class="ibm-ind-link ibm-back-to-top"><a class="ibm-anchor-up-link" href="http://www.ibm.com/developerworks/xml/library/x-iphonexmlphp/#ibm-pcon"><br />
</a></p>
<p><a name="N101CE"><span class="atitle">Conclusion</span></a></p>
<p>Developing for the iPhone is a breeze. The ads say that the iPhone gives you access 			to the Internet as is rather than some mobile version of it, and the ads are right: 			You can browse to your normal pages just as you would on your Mac or PC. But 			toolkits like the iUI interface builder help give the application a more genuine 			iPhone look and feel—handy with applications like this XML 			and PHP-driven iPhone remote.</p>
<p><!-- CMA ID: 245340 --> <!-- Site ID: 1 --><!--XSLT stylesheet used to transform this file:  dw-article-6.0-beta.xsl--></p>
]]></content:encoded>
			<wfw:commentRss>http://www.webburners.com/2009/05/iphone-integration-throw-your-website-using-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Operating System  in php</title>
		<link>http://www.webburners.com/2009/04/operating-system-in-php/</link>
		<comments>http://www.webburners.com/2009/04/operating-system-in-php/#comments</comments>
		<pubDate>Thu, 30 Apr 2009 18:44:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tech Articles]]></category>
		<category><![CDATA[os in php]]></category>
		<category><![CDATA[php operating system]]></category>

		<guid isPermaLink="false">http://www.webburners.com/?p=301</guid>
		<description><![CDATA[Have you ever heart about operatng system purely build in php . As we know php is mend for a language of web framework, is it possible to develop a complete operating system in php , which will manage the whole system throw web. Do contribute your ideas , is it posible to override windows [...]]]></description>
			<content:encoded><![CDATA[<p>Have you ever heart about operat<em>ng system purely </em>build in php . As we know php is mend for a language of web framework, is it possible to develop a complete operating system in php , which will manage the whole system throw web. Do contribute your ideas , is it posible to override windows by new era of php  operating systems</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webburners.com/2009/04/operating-system-in-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install FileZilla FTP Software in Ubuntu</title>
		<link>http://www.webburners.com/2009/04/install-filezilla-ftp-software-in-ubuntu/</link>
		<comments>http://www.webburners.com/2009/04/install-filezilla-ftp-software-in-ubuntu/#comments</comments>
		<pubDate>Thu, 30 Apr 2009 18:27:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tech Articles]]></category>
		<category><![CDATA[Install FileZilla FTP in ubuntu]]></category>

		<guid isPermaLink="false">http://www.webburners.com/?p=298</guid>
		<description><![CDATA[As a web application developer,  it’s essential to upload files in server. When I was windows user, I used FileZilla FTP software. I’m Ubuntu user for long time and I found there is a version of Filezilla for Ubuntu. Here I give the command how to install FileZilla:
Just run your terminal and write:
sudo aptitude install [...]]]></description>
			<content:encoded><![CDATA[<p>As a web application developer,  it’s essential to upload files in server. When I was windows user, I used FileZilla FTP software. I’m Ubuntu user for long time and I found there is a version of Filezilla for Ubuntu. Here I give the command how to install FileZilla:</p>
<p>Just run your terminal and write:</p>
<p><strong>sudo aptitude install filezilla</strong></p>
<p>It asks you for password. Enter your password and it will be installed successfully <img src='http://www.webburners.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.webburners.com/2009/04/install-filezilla-ftp-software-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Repair Ubuntu after you reinstall windows for some reason</title>
		<link>http://www.webburners.com/2009/04/repair-ubuntu-after-you-reinstall-windows-for-some-reason/</link>
		<comments>http://www.webburners.com/2009/04/repair-ubuntu-after-you-reinstall-windows-for-some-reason/#comments</comments>
		<pubDate>Thu, 30 Apr 2009 18:13:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tech Articles]]></category>
		<category><![CDATA[reboot window]]></category>
		<category><![CDATA[repair ubuntu after window reinstall]]></category>

		<guid isPermaLink="false">http://www.webburners.com/?p=294</guid>
		<description><![CDATA[As we know , we want to make the system dual boot , we have to install window version first and then the linux version , But what to do , if somehow our window version crashed or somehow we want to reinstall it . Most of us face problems when we dual boot both [...]]]></description>
			<content:encoded><![CDATA[<p><span style="font-size: 100%;">As we know , we want to make the system dual boot , we have to install window version first and then the linux version , But what to do , if somehow our window version crashed or somehow we want to reinstall it . Most of us face problems when we dual boot both Windows and Ubuntu after you re-install Windows for some reason. Windows installation wipes off grub and you end up with just the Windows operating system and wonder what in the earth happened to your Ubuntu operating system. Ubuntu, however, is not harmed in any way by the windows installation and remains where it was exactly as it was before but inaccessible for the time being.<br />
</span><span style="font-size: 100%;"><br />
This way requires you to have a live CD of ubuntu. (Any live CD will do, even of the previous versions of ubuntu!)</span></p>
<p>Start Ubuntu using the Live CD and following the below procedure.</p>
<p>1. In the live CD of Ubuntu, start the terminal and type the following commands :</p>
<p>$ sudo -i<br />
$ grub<br />
$ find /boot/grub/stage1</p>
<p>2. Now note the output. THIS IS VERY IMPORTANT. I&#8217;m taking the example here to be (hd0,5). You replace the (hd0,5) with whatever output you got into your system and then type the following commands.</p>
<p>$ root (hd0,5)<br />
$ setup (hd0) <span style="font-size: 100%;"><br />
$ quit</span></p>
<p>Restart and DONE !!!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webburners.com/2009/04/repair-ubuntu-after-you-reinstall-windows-for-some-reason/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Most importants tip to fast up php script</title>
		<link>http://www.webburners.com/2009/04/important-tips-php/</link>
		<comments>http://www.webburners.com/2009/04/important-tips-php/#comments</comments>
		<pubDate>Tue, 21 Apr 2009 03:26:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tech Articles]]></category>
		<category><![CDATA[$row[’id’]]]></category>
		<category><![CDATA[apache's mod_deflate]]></category>
		<category><![CDATA[Avoid magic function]]></category>
		<category><![CDATA[declare it static]]></category>
		<category><![CDATA[free memory]]></category>
		<category><![CDATA[magic function in php]]></category>
		<category><![CDATA[PHP sciprt performance]]></category>
		<category><![CDATA[require expensive in php]]></category>
		<category><![CDATA[static function in php]]></category>
		<category><![CDATA[strncasecmp]]></category>
		<category><![CDATA[str_replace]]></category>

		<guid isPermaLink="false">http://www.webburners.com/?p=251</guid>
		<description><![CDATA[static function in php increase performance , string concatenation is bettter , avoid magic functions and require is quite expensive in php, use full path instead of php os path and dont put loops in infinite continueity , use some limits, php string function are much better than regular experssion in php.


]]></description>
			<content:encoded><![CDATA[<p>&lt;!&#8211; 		@page { size: 21cm 29.7cm; margin: 2cm } 		P { margin-bottom: 0.21cm } 	&#8211;&gt;</p>
<p style="margin-bottom: 0cm;">Summary: <strong>static function</strong> in php increase performance , <strong>string concatenation</strong> is bettter , avoid magic functions and require is quite expensive in php, use full path instead of php os path and dont put loops in infinite continueity , use some limits, php string func<em>tion are much better than regular experssion in php.</em></p>
<p style="margin-bottom: 0cm;">
<ol>
<li>
<p style="margin-bottom: 0cm;">Use <strong>full paths in includes</strong> and requires, it take less time spent on Manipulate the absolute 	Paths.</p>
</li>
<li>
<p style="margin-bottom: 0cm;"><em>Print is slower than echo</em>.</p>
</li>
<li>
<p style="margin-bottom: 0cm;">Use echo&#8217;s multiple times instead 	of <strong>string concatenation</strong>.</p>
</li>
<li>
<p style="margin-bottom: 0cm;">Set the maxvalue for your 	for-loops before and not in the loop.</p>
</li>
<li>
<p style="margin-bottom: 0cm;">Unset your variables to free 	memory, especially large arrays.</p>
</li>
<li>
<p style="margin-bottom: 0cm;">mod_gzip which is available as an 	Apache module compresses your data on the fly and can reduce the 	data to transfer up to 80%</p>
</li>
<li>
<p style="margin-bottom: 0cm;">Avoid magic function in php like 	__get, __set, __autoload</p>
</li>
<li>
<p style="margin-bottom: 0cm;">require_once() is expensive so 	prefer dont use it</p>
</li>
<li>
<p style="margin-bottom: 0cm;">If a method can be <strong>static</strong>, 	use  it as static. <strong>PHP sciprt performance</strong> increase by  4 	time.</p>
</li>
<li>
<p style="margin-bottom: 0cm;">To know the script starting time 	use $_SERVER[’REQUEST_TIME’] is preferred to time()</p>
</li>
<li>
<p style="margin-bottom: 0cm;">See if you can use strncasecmp, 	strpbrk and stripos instead of regex i.e regular experession  are 	slower to excecute.</p>
</li>
<li>
<p style="margin-bottom: 0cm;"><strong>str_replace</strong> is faster than 	<strong>preg_replace</strong>.</p>
</li>
<li>
<p style="margin-bottom: 0cm;"><strong>strstr</strong> is faster than 	<strong>str_replace</strong> by a factor of 4</p>
</li>
<li>
<p style="margin-bottom: 0cm;">If the function, such as string 	replacement function, accepts both arrays and single characters as 	arguments, and if your argument list is not too long, consider 	writing a few redundant replacement statements, passing one 	character at a time, instead of one line of code that accepts arrays 	as search and replace arguments.</p>
</li>
<li>
<p style="margin-bottom: 0cm;">It&#8217;s better to use switch 	statements than multi if, else if, statements.</p>
</li>
<li>
<p style="margin-bottom: 0cm;">Error suppression with @ is very 	slow.</p>
</li>
<li>
<p style="margin-bottom: 0cm;">Just declaring a global variable 	without using it in a function also slows things down (by about the 	same amount as incrementing a local var). PHP probably does a check 	to see if the global exists</p>
</li>
<li>
<p style="margin-bottom: 0cm;">Turn on apache&#8217;s mod_deflate</p>
</li>
<li>
<p style="margin-bottom: 0cm;">Close your database connections 	when you&#8217;re done with them</p>
</li>
<li>
<p style="margin-bottom: 0cm;">$row[’id’] is 7 times faster 	than $row[id]</p>
</li>
<li>
<p style="margin-bottom: 0cm;">Error messages are expensive</p>
</li>
<li>
<p style="margin-bottom: 0cm;">Do not use functions inside of for 	loop, such as for ($x=0; $x &lt; count($array); $x) The count() 	function gets called each time.</p>
</li>
<li>
<p style="margin-bottom: 0cm;">Incrementing a local variable in a 	method is the fastest. Nearly the same as calling a local variable 	in a function.</p>
</li>
<li>
<p style="margin-bottom: 0cm;">Incrementing a global variable is 	2 times slow than a local var.</p>
</li>
<li>
<p style="margin-bottom: 0cm;">Incrementing an object property 	(eg. $this-&gt;prop++) is 3 times slower than a local variable.</p>
</li>
<li>
<p style="margin-bottom: 0cm;">Incrementing an undefined local 	variable is 9-10 times slower than a pre-initialized one. .</p>
</li>
<li>
<p style="margin-bottom: 0cm;">Method invocation appears to be 	independent of the number of methods defined in the class because I 	added 10 more methods to the test class (before and after the test 	method) with no change in performance.</p>
</li>
<li>
<p style="margin-bottom: 0cm;">Methods in derived classes run 	faster than ones defined in the base class.</p>
</li>
<li>
<p style="margin-bottom: 0cm;">A function call with one parameter 	and an empty function body takes about the same time as doing 7-8 	$localvar++ operations. A similar method call is of course about 15 	$localvar++ operations.</p>
</li>
<li>
<p style="margin-bottom: 0cm;">Surrounding your string by &#8216; 	instead of &#8221; will make things interpret a little faster since 	php looks for variables inside &#8220;&#8230;&#8221; but not inside &#8216;&#8230;&#8217;. 	Of course you can only do this when you don&#8217;t need to have variables 	in the string.</p>
</li>
<li>
<p style="margin-bottom: 0cm;">When echoing strings it&#8217;s faster 	to separate them by comma instead of dot. Note: This only works with 	echo, which is a function that can take several strings as 	arguments.</p>
</li>
<li>
<p style="margin-bottom: 0cm;">A PHP script will be served at 	least 2-10 times slower than a static HTML page by Apache. Try to 	use more static HTML pages and fewer scripts.</p>
</li>
<li>
<p style="margin-bottom: 0cm;">Your PHP scripts are recompiled 	every time unless the scripts are cached. Install a PHP caching 	product to typically increase performance by 25-100% by removing 	compile times.</p>
</li>
<li>
<p style="margin-bottom: 0cm;">Cache as much as possible. Use 	memcached &#8211; memcached is a high-performance memory object caching 	system intended to speed up dynamic web applications by alleviating 	database load. OP code caches are useful so that your script does 	not have to be compiled on every request</p>
</li>
<li>
<p style="margin-bottom: 0cm;">When working with strings and you 	need to check that the string is either of a certain length you&#8217;d 	understandably would want to use the strlen() function. This 	function is pretty quick since it&#8217;s operation does not perform any 	calculation but merely return the already known length of a string 	available in the zval structure (internal C struct used to store 	variables in PHP). However because strlen() is a function it is 	still somewhat slow because the function call requires several 	operations such as lowercase &amp; hashtable lookup followed by the 	execution of said function. In some instance you can improve the 	speed of your code by using an isset() trick.</p>
<p>Ex.<br />
if 	(strlen($foo) &lt; 5) { echo &#8220;Foo is too short&#8221;; }<br />
vs.<br />
if 	(!isset($foo{5})) { echo &#8220;Foo is too short&#8221;; }</p>
<p>Calling 	isset() happens to be faster then strlen() because unlike strlen(), 	isset() is a language construct and not a function meaning that it&#8217;s 	execution does not require function lookups and lowercase. This 	means you have virtually no overhead on top of the actual code that 	determines the string&#8217;s length.</li>
<li>
<p style="margin-bottom: 0cm;">When incrementing or decrementing 	the value of the variable $i++ happens to be a tad slower then ++$i. 	This is something PHP specific and does not apply to other 	languages, so don&#8217;t go modifying your C or Java code thinking it&#8217;ll 	suddenly become faster, it won&#8217;t. ++$i happens to be faster in PHP 	because instead of 4 opcodes used for $i++ you only need 3. Post 	incrementation actually causes in the creation of a temporary var 	that is then incremented. While pre-incrementation increases the 	original value directly. This is one of the optimization that opcode 	optimized like Zend&#8217;s PHP optimizer. It is a still a good idea to 	keep in mind since not all opcode optimizers perform this 	optimization and there are plenty of ISPs and servers running 	without an opcode optimizer.</p>
</li>
<li>
<p style="margin-bottom: 0cm;">Not everything has to be OOP, 	often it is too much overhead, each method and object call consumes 	a lot of memory.</p>
</li>
<li>
<p style="margin-bottom: 0cm;">Do not implement every data 	structure as a class, arrays are useful, too</p>
</li>
<li>
<p style="margin-bottom: 0cm;">Don&#8217;t split methods too much, 	think, which code you will really re-use</p>
</li>
<li>
<p style="margin-bottom: 0cm;">You can always split the code of a 	method later, when needed</p>
</li>
<li>
<p style="margin-bottom: 0cm;">Make use of the countless 	predefined functions</p>
</li>
<li>
<p style="margin-bottom: 0cm;">If you have very time consuming 	functions in your code, consider writing them as C extensions</p>
</li>
<li>
<p style="margin-bottom: 0cm;">Profile your code. A profiler 	shows you, which parts of your code consumes how many time. The 	Xdebug debugger already contains a profiler. Profiling shows you the 	bottlenecks in overview</p>
</li>
<li>
<p style="margin-bottom: 0cm;">mod_gzip which is available as an 	Apache module compresses your data on the fly and can reduce the 	data to transfer up to 80%</p>
</li>
</ol>
<p>Webburners , we burn the web with our innovation , we are web developing firm expertise in all kinda web applicaiton , opensources . <strong>Webburners </strong>is among the emerging<strong> IT companies</strong> in <strong>India</strong>, having clients worldwide.Its <strong>wide range</strong> of services includes <strong>Web Solutions</strong>, <strong>Graphic Design</strong>, <strong>Software Development</strong>, I<strong>T Education</strong>, <strong>Multimedia Development</strong>, <strong>Online Marketting and Web optimization (SEO).</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.webburners.com/2009/04/important-tips-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Gmail now gona support offline support just like outlook application</title>
		<link>http://www.webburners.com/2009/04/gmail-now-gona-support-offline-support-just-like-outlook-application/</link>
		<comments>http://www.webburners.com/2009/04/gmail-now-gona-support-offline-support-just-like-outlook-application/#comments</comments>
		<pubDate>Sat, 11 Apr 2009 19:54:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tech Articles]]></category>
		<category><![CDATA[gmail offline support]]></category>

		<guid isPermaLink="false">http://www.webburners.com/?p=205</guid>
		<description><![CDATA[One of Gmail’s most requested features – offline support – is now available in testing. In other words, you can now use Gmail without an Internet connection, just like you can with desktop mail clients like Outlook.
The offline support is made possible by Google Gears, which you’ll need to download in order to utilize the [...]]]></description>
			<content:encoded><![CDATA[<p>One of Gmail’s most requested features – offline support – is now available in testing. In other words, you can now use Gmail without an Internet connection, just like you can with desktop mail clients like Outlook.</p>
<p>The offline support is made possible by Google Gears, which you’ll need to download in order to utilize the feature. Here’s how it works, according to Google’s Andy Palay: “When you lose your connection, Gmail automatically switches to offline mode, and uses the data stored on your computer’s hard drive instead of the information sent across the network. You can read messages, star and label them, and do all of the things you’re used to doing while reading your webmail online.”</p>
<p>Once you’ve re-established a connection, the messages you send while offline will be delivered. There’s also a “flaky connection mode” for times when your connection is weak, but communication with Gmail is still possible. Like Gmail’s other experimental features, offline mail is currently available via Labs, which can be found under the “Settings” tab.</p>
<p>Between PDAs, WiFi on planes, and broadband cards, situations where you don’t have Internet access might be far and few between these days, but if you have a never-ending stream of email flowing into your Gmail, offline mode should help you keep up even when you can’t find a way to get online.</p>
<p>Source: http://mashable.com/2009/01/27/gmail-adds-offline-support/</p>
<p>With powerful tools like Google Gears and wonderful mail like GMail we don&#8217;t expect anything less than this. Hope to see this in action soon.</p>
<p><strong>About us</strong></p>
<p style="margin-bottom: 0cm;" align="justify"><strong>Webburners </strong><span>is among the emerging</span><strong> IT companies</strong><span> in </span><strong>India</strong><span>, having clients worldwide.Its </span><strong>wide range</strong><span> of services includes </span><strong>Web Solutions</strong><span>, <strong>Graphic Design</strong></span><span>, </span><strong>Software Development</strong><span>, I</span><strong>T Education</strong><span>, </span><strong>Multimedia Development</strong><span>, </span><strong>Online Marketting and Web optimization (SEO).</strong><span> </span></p>
<p style="margin-bottom: 0cm;">
<p><span>This </span><span> <strong>Indian Web Developement company</strong> has emerged as a major player in the web industry. Over the years, </span><strong>Webburners</strong><span> has been offering top-notch </span><strong>web services</strong><span> to both domestic as well as international clients</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.webburners.com/2009/04/gmail-now-gona-support-offline-support-just-like-outlook-application/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to hack jquery thickbox</title>
		<link>http://www.webburners.com/2009/04/how-to-hack-jquery-thickbox/</link>
		<comments>http://www.webburners.com/2009/04/how-to-hack-jquery-thickbox/#comments</comments>
		<pubDate>Sat, 11 Apr 2009 19:51:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tech Articles]]></category>
		<category><![CDATA[hack jquery thickbox]]></category>

		<guid isPermaLink="false">http://www.webburners.com/?p=203</guid>
		<description><![CDATA[Have you ever wished of doing something more with what you have been doing with jQuery thickbox? Now it has been more then 6 months that I am using jQuery on different projects. I have extended jQuery many a times during this period and to tell you one thing I have used jQuery for heavy-weight [...]]]></description>
			<content:encoded><![CDATA[<p>Have you ever wished of doing something more with what you have been doing with jQuery thickbox? Now it has been more then 6 months that I am using jQuery on different projects. I have extended jQuery many a times during this period and to tell you one thing I have used jQuery for heavy-weight form processing for one of my very complicated project and it included processing of more then 1600 html controls with the help of great jQuery.</p>
<p>Now when it comes to Thickbox it gives nice functionality but many a times it leaves us hungry for more. For example here are the few situations where it will be difficult to use Thickbox without further modification.</p>
<p>* It let&#8217;s open window in a IFRAME and close that but what if you can&#8217;t give &#8216;class=&#8221;Thickbox&#8221;&#8216; to any of your link?<br />
* What if you are not loading those links with page load? (If the links from which you are willing to open Thickbox windows is not available at the time of page load then Thickbox won&#8217;t work. As Thickbox internally works in a way that it will search for all links with class = &#8220;Thickbox&#8221; at the time of page load and then customize their onclick events.)<br />
* What if you want to open second Thickbox window as someone close first one and that too without any user interaction?<br />
* What if you want to call any javascript function from the parent window? (parent window is the window from which parent window is getting opened.)</p>
<p>jQuery Thickbox is a great solution for many of our requirement but we don&#8217;t have any option but to modify actual code to use them with complicated and advance situations which we come across.</p>
<p>I have done some modification in Thickbox.js to achive all above 4 points using Thickbox by adding 2 more functions into this great utility and modifying tb_remove function.</p>
<p>Here are 2 functions I have added, you can understand what they do once you read comments.</p>
<p>// To close one thickbox and then open another, this is quite handy<br />
// when you want to open another response modal window on the action of current modal window.<br />
// Opening more then one thickbox window is not possible on the same page,<br />
// so closing one and opening another could be quite handy and we can change height<br />
// and width as well for another window.<br />
var jThickboxNewLink;<br />
function tb_remove_open(reloadLink){<br />
jThickboxReloadLink	=	reloadLink;<br />
tb_remove();<br />
setTimeout(&#8220;jThickboxNewLink();&#8221;,500);<br />
return false;<br />
}<br />
// This function will let you open new thickbox window without specifying<br />
// class=&#8221;Thickbox&#8221; and any href=&#8221;http://web.com&#8221; attribute<br />
// It will be helpful when you are dynamically loading any content and<br />
// from those content you would like to open Thickbox windows.<br />
// As basically the nature of thickbox is such that it scans all links (..) tags<br />
// on load using jQuery&#8217;s $(document).ready function so if your link is loaded using ajex<br />
// or using any dynamic javascript and was not on page at the time of load then this thickbox<br />
// setup won&#8217;t work and you have to use this function.<br />
function tb_open_new(jThickboxNewLink){<br />
tb_show(null,jThickboxNewLink,null);<br />
}</p>
<p>And here is the tb_remove function with minor modification which will let us call any function of the parent window passed as an argument.</p>
<p>// Modified to provide parent window&#8217;s function callback<br />
function tb_remove(parent_func_callback) {<br />
$(&#8220;#TB_imageOff&#8221;).unbind(&#8220;click&#8221;);<br />
$(&#8220;#TB_closeWindowButton&#8221;).unbind(&#8220;click&#8221;);<br />
$(&#8220;#TB_window&#8221;).fadeOut(&#8220;fast&#8221;,function(){$(&#8216;#TB_window,#TB_overlay,#TB_HideSelect&#8217;).trigger(&#8220;unload&#8221;).unbind().remove();});<br />
$(&#8220;#TB_load&#8221;).remove();<br />
if (typeof document.body.style.maxHeight == &#8220;undefined&#8221;) {//if IE 6<br />
$(&#8220;body&#8221;,&#8221;html&#8221;).css({height: &#8220;auto&#8221;, width: &#8220;auto&#8221;});<br />
$(&#8220;html&#8221;).css(&#8220;overflow&#8221;,&#8221;");<br />
}<br />
if(parent_func_callback != undefined)<br />
eval(&#8220;window.&#8221;+parent_func_callback);<br />
document.onkeydown = &#8220;&#8221;;<br />
document.onkeyup = &#8220;&#8221;;<br />
return false;<br />
}</p>
<p><strong>About us</strong></p>
<p style="margin-bottom: 0cm;" align="justify"><strong>Webburners </strong><span>is among the emerging</span><strong> IT companies</strong><span> in </span><strong>India</strong><span>, having clients worldwide.Its </span><strong>wide range</strong><span> of services includes </span><strong>Web Solutions</strong><span>, <strong>Graphic Design</strong></span><span>, </span><strong>Software Development</strong><span>, I</span><strong>T Education</strong><span>, </span><strong>Multimedia Development</strong><span>, </span><strong>Online Marketting and Web optimization (SEO).</strong><span> </span></p>
<p style="margin-bottom: 0cm;">
<p><span>This </span><span> <strong>Indian Web Developement company</strong> has emerged as a major player in the web industry. Over the years, </span><strong>Webburners</strong><span> has been offering top-notch </span><strong>web services</strong><span> to both domestic as well as international clients</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.webburners.com/2009/04/how-to-hack-jquery-thickbox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting Started with Eclipse PHP Development Tools (PDT)</title>
		<link>http://www.webburners.com/2009/04/getting-started-with-eclipse-php-development-tools-pdt/</link>
		<comments>http://www.webburners.com/2009/04/getting-started-with-eclipse-php-development-tools-pdt/#comments</comments>
		<pubDate>Sat, 11 Apr 2009 19:47:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tech Articles]]></category>
		<category><![CDATA[pdt tools]]></category>

		<guid isPermaLink="false">http://www.webburners.com/?p=201</guid>
		<description><![CDATA[Are you ready to take a step beyond writing code in a text editor like UltraEdit, BBEdit, or TextMate? Would you like to see those PHP and JavaScript syntax errors in the editor, without transferring files to the server or opening a browser? If so, then you&#8217;re ready to jump into the world of the [...]]]></description>
			<content:encoded><![CDATA[<p>Are you ready to take a step beyond writing code in a text editor like UltraEdit, BBEdit, or TextMate? Would you like to see those PHP and JavaScript syntax errors in the editor, without transferring files to the server or opening a browser? If so, then you&#8217;re ready to jump into the world of the IDE — Integrated Development Environment. I&#8217;ll compare the free, open source Eclipse IDE to a few of its commercial competitors Then we&#8217;ll go through the steps to install Eclipse PDT All-In-One, the Zend Debugger, JSEclipse, and Subclipse.</p>
<p>Why an IDE? Let there be no mistake, I still love BBEdit and TextMate. I use both daily at work and at home for quick edits and I actually wrote this post in TextMate. But if you spend a good portion of your day writing PHP, an IDE will save you time in small increments by highlighting those unbalanced braces and missing semicolons, displaying PHP function arguments, and allowing you to debug your code right in the editor.</p>
<p>There are commercial IDEs available and I&#8217;ve use a few of them. I tried an early version of Eclipse with the xored studio but the combo wasn&#8217;t feature-rich and didn&#8217;t perform as well as Zend Studio. I later switched from Zend to Active State&#8217;s Komodo. I&#8217;ve been happy Komodo but it&#8217;s sluggish performance on my PPC Mac drove me back to giving Eclipse another try.</p>
<p>I started using Eclipse with PDT at work about a year and am amazed at how much PDT, formerly PHP IDE, has improved over the past four years. Eclipse is first a Java development environment, but extensions exist for a bunch of other languages, including Perl, Ruby, and Tcl. Okay, enough with the commentary, let&#8217;s get to it, shall we?</p>
<p>Download and install Eclipse PDT All-In-One</p>
<p>Installation couldn&#8217;t be easier. Visit the Eclipse PDT download page, select a stable build link, scroll down to the PDT All-in-One section, and select the download for your platform.</p>
<p>http://download.eclipse.org/tools/pdt/downloads/</p>
<p>Once the download is complete, unpack and move the &#8216;eclipse&#8217; folder to your Applications or Program Files folder. Fire up Eclipse, create a new PHP file or project, and code away.</p>
<p>Install the Zend Debugger</p>
<p>Out of the box, Eclipse provides PHP syntax highlighting, code completion, PHP documentation, phpDoc support, and more. Local and server debugging, however, require the installation of XDebug or Zend Debugger extension. Here&#8217;s how to enable local debugging with the Zend Debugger.</p>
<p>1. Select Help-&gt;Software Updates-&gt;Find and Install<br />
2. Select Search for new features to install, click Next<br />
3. Click the New Remote Site button&#8230;<br />
1. Name: Zend Debugger<br />
2. URL: http://downloads.zend.com/pdt<br />
4. Zend Debugger now appears checked in the Sites to include in search list, click Finish<br />
5. The update manager searches for the files to download<br />
6. All Zend Debugger options should be checked on the Search Results screen, click Next<br />
7. Agree to the licensing terms, click Next<br />
8. Select the Zend Debugger in the Features to Install screen, you can change the install location, but the default is recommended, click Finish<br />
9. Verify the Zend Debugger on the Feature Verification screen, click Install All<br />
10. After installation you&#8217;ll be asked to restart Eclipse for the changes to take affect</p>
<p>You should now have a PHP Debug Perspective, complete with variable tracing, breakpoints, and CLI and browser debug output views.</p>
<p>Install JSEclipse</p>
<p>To add improved JavaScript editing abilities to Eclipse, install JSEclipse from Adobe Labs. JSEclipse also provides editing support for popular JavaScript libraries, including YUI, Dojo, Prototype, and more. To install JSEclipse with the Update Manager</p>
<p>1. Select Help-&gt;Software Updates-&gt;Find and Install<br />
2. Select Search for new features to install, click Next<br />
3. Click the New Remote Site button&#8230;<br />
* Name: JSEclipse<br />
* URL: http://download.macromedia.com/pub/labs/jseclipse/autoinstall/site.xml<br />
4. JSEclipse now appears checked in the Sites to include in search list, click Finish<br />
5. The update manager searches for the files to download<br />
6. Check the JSEclipse version check box on the Search Results screen, click Next<br />
7. Agree to the licensing terms, click Next<br />
8. Select JSEclipse in the Features to Install screen, you can change the install location, but the default is recommended, click Finish<br />
9. Verify JSEclipse on the Feature Verification screen, click Install All<br />
10. After installation you&#8217;ll be asked to restart Eclipse for the changes to take affect</p>
<p>To create a new JS file, select New-&gt;File-&gt;Other-&gt;Web-&gt;JavaScript. You should now have code completion and error highlighting for JavaScript files.</p>
<p>Install Subclipse</p>
<p>To add support for Subversion revision management you&#8217;ll need to install Subclipse from tigris.org, the developers of Subversion. To install, let&#8217;s use the Update Manager again.</p>
<p>1. Select Help-&gt;Software Updates-&gt;Find and Install<br />
2. Select Search for new features to install, click Next<br />
3. Click the New Remote Site button&#8230;<br />
* Name: Subclipse 1.2.x<br />
* URL: http://subclipse.tigris.org/update_1.2.x<br />
4. Subclipse now appears checked in the Sites to include in search list, click Finish<br />
5. The update manager searches for the files to download<br />
6. Check the Subclipse version check box on the Search Results screen. You may need to install dependent extensions for the Subclipse integrations (I didn&#8217;t select integrations), click Next<br />
7. Agree to the licensing terms, click Next<br />
8. Select Subclipse in the Features to Install screen, you can change the install location, but the default is recommended, click Finish<br />
9. Verify Subclipse on the Feature Verification screen, click Install All<br />
10. After installation you&#8217;ll be asked to restart Eclipse for the changes to take affect</p>
<p>To checkout an existing Subversion repository</p>
<p>1. Select New-&gt;File-&gt;Other-&gt;SVN-&gt;Checkout Projects from SVN, click Next<br />
2. Create a New Repository, click Next<br />
3. Enter the URL for the SVN repository you want to checkout, click Next<br />
4. If the repository URL is secure, accept the SSL certificate<br />
5. Select the folder(s) to checkout<br />
6. Create a new Project, select the Project type, PHP Project in this case, click Next<br />
7. Enter a Project name, workspace, and any other project specific settings, click Finish<br />
8. You&#8217;ll see an overwrite warning that any SVN repository files with the same names as Eclipse settings files, normally you shouldn&#8217;t need to worry about this, click OK<br />
9. The project is checked out of the repository</p>
<p>I&#8217;ve just started to use some of the data integration and design extensions available for Eclipse and will post a followup soon. In the meantime, happy coding!</p>
<p><strong>About us</strong></p>
<p style="margin-bottom: 0cm;" align="justify"><strong>Webburners </strong><span>is among the emerging</span><strong> IT companies</strong><span> in </span><strong>India</strong><span>, having clients worldwide.Its </span><strong>wide range</strong><span> of services includes </span><strong>Web Solutions</strong><span>, <strong>Graphic Design</strong></span><span>, </span><strong>Software Development</strong><span>, I</span><strong>T Education</strong><span>, </span><strong>Multimedia Development</strong><span>, </span><strong>Online Marketting and Web optimization (SEO).</strong><span> </span></p>
<p style="margin-bottom: 0cm;">
<p><span>This </span><span> <strong>Indian Web Developement company</strong> has emerged as a major player in the web industry. Over the years, </span><strong>Webburners</strong><span> has been offering top-notch </span><strong>web services</strong><span> to both domestic as well as international clients</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.webburners.com/2009/04/getting-started-with-eclipse-php-development-tools-pdt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Download file using curl from secure server</title>
		<link>http://www.webburners.com/2009/04/download-file-using-curl-from-secure-server/</link>
		<comments>http://www.webburners.com/2009/04/download-file-using-curl-from-secure-server/#comments</comments>
		<pubDate>Sat, 11 Apr 2009 19:37:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tech Articles]]></category>
		<category><![CDATA[curl download]]></category>
		<category><![CDATA[download file]]></category>
		<category><![CDATA[download file throw curl]]></category>

		<guid isPermaLink="false">http://www.webburners.com/?p=193</guid>
		<description><![CDATA[Recently in one of my project I was suppose to download file from a secure website. Actually I have to set the scheduler job for downloading nightly builds/full files from the server and the files are placed on secure website.
Initially I tried that with file_get_contents function but it was just downloading 0KB file. Then it [...]]]></description>
			<content:encoded><![CDATA[<p>Recently in one of my project I was suppose to download file from a secure website. Actually I have to set the scheduler job for downloading nightly builds/full files from the server and the files are placed on secure website.</p>
<p>Initially I tried that with file_get_contents function but it was just downloading 0KB file. Then it strike me that oh..! I can&#8217;t use file_get_contents as it can&#8217;t understand the HTTPS protocol here. So what could help me nothing else then our best friend CURL. file_get_contents and fopen kind of other functions works fine with any http web locations.</p>
<p>Here is the simple CURL file transfer function snippet which will copy file from any secure http location.</p>
<p>	/**<br />
	 * Copy File from HTTPS/SSL location<br />
	 *<br />
	 * @param string $FromLocation<br />
	 * @param string $ToLocation<br />
	 * @return boolean<br />
	 */<br />
	function copySecureFile($FromLocation,$ToLocation,$VerifyPeer=false,$VerifyHost=true)<br />
	{<br />
		// Initialize CURL with providing full https URL of the file location<br />
		$Channel = curl_init($FromLocation);</p>
<p>		// Open file handle at the location you want to copy the file: destination path at local drive<br />
		$File = fopen ($ToLocation, &#8220;w&#8221;);</p>
<p>		// Set CURL options<br />
		curl_setopt($Channel, CURLOPT_FILE, $File);</p>
<p>		// We are not sending any headers<br />
		curl_setopt($Channel, CURLOPT_HEADER, 0);</p>
<p>		// Disable PEER SSL Verification: If you are not running with SSL or if you don&#8217;t have valid SSL<br />
		curl_setopt($Channel, CURLOPT_SSL_VERIFYPEER, $VerifyPeer);</p>
<p>		// Disable HOST (the site you are sending request to) SSL Verification,<br />
		// if Host can have certificate which is nvalid / expired / not signed by authorized CA.<br />
		curl_setopt($Channel, CURLOPT_SSL_VERIFYHOST, $VerifyHost);</p>
<p>		// Execute CURL command<br />
		curl_exec($Channel);</p>
<p>		// Close the CURL channel<br />
		curl_close($Channel);</p>
<p>		// Close file handle<br />
		fclose($File);</p>
<p>		// return true if file download is successfull<br />
		return file_exists($ToLocation);<br />
	}<br />
	/**<br />
	 *	This code don&#8217;t work<br />
	 *	echo file_get_contents(&#8220;https://www.verisign.com/hp07/i/vlogo.gif&#8221;);<br />
	**/<br />
	// Function Usage<br />
	if(copySecureFile(&#8220;https://www.verisign.com/hp07/i/vlogo.gif&#8221;,&#8221;c:/verisign_logo.gif&#8221;))<br />
	{<br />
		echo &#8216;File transferred successfully.&#8217;;<br />
	}<br />
	else<br />
	{<br />
		echo &#8216;File transfer failed.&#8217;;<br />
	}</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webburners.com/2009/04/download-file-using-curl-from-secure-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
