<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearch/1.1/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' gd:etag='W/&quot;DEMNRXc4eSp7ImA9WxVWEUo.&quot;'><id>tag:blogger.com,1999:blog-1295131199691379890</id><updated>2009-02-20T16:34:54.931-08:00</updated><title>Web Server Security, PHP and MySQL Question and Answers</title><subtitle type='html'>( How to fix web server issue, PHP, Web Technologies, vulnerability in web server )</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://paddu-webtechnologies.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1295131199691379890/posts/default?redirect=false&amp;v=2'/><link rel='alternate' type='text/html' href='http://paddu-webtechnologies.blogspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/1295131199691379890/posts/default?start-index=26&amp;max-results=25&amp;redirect=false&amp;v=2'/><author><name>Blogger</name><email>noreply@blogger.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>36</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry gd:etag='W/&quot;DEYARng8eSp7ImA9WxRTE0g.&quot;'><id>tag:blogger.com,1999:blog-1295131199691379890.post-8629565178514749640</id><published>2008-09-02T04:48:00.000-07:00</published><updated>2008-09-02T04:49:07.671-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2008-09-02T04:49:07.671-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Avoiding SQL injection attacks with Magic Quotes or addslashes()'/><title>Avoiding SQL injection attacks with Magic Quotes or addslashes()</title><summary>Avoiding SQL injection attacks with Magic Quotes or addslashes()  Another php.ini configuration is magic_quotes_gpc. Off by default, many encourage turning this on for security reasons. While it does have benefits, I personally dislike the setting, and am loathe to use it. It's main benefit is that it prevents some types of command injection attacks. For example:    &lt;?php // example3.php // </summary><link rel='replies' type='application/atom+xml' href='http://paddu-webtechnologies.blogspot.com/feeds/8629565178514749640/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=1295131199691379890&amp;postID=8629565178514749640' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1295131199691379890/posts/default/8629565178514749640?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1295131199691379890/posts/default/8629565178514749640?v=2'/><link rel='alternate' type='text/html' href='http://paddu-webtechnologies.blogspot.com/2008/09/avoiding-sql-injection-attacks-with.html' title='Avoiding SQL injection attacks with Magic Quotes or addslashes()'/><author><name>Blogger</name><email>noreply@blogger.com</email></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry gd:etag='W/&quot;DEcMQ3w9fyp7ImA9WxRTE0g.&quot;'><id>tag:blogger.com,1999:blog-1295131199691379890.post-4505398962650458717</id><published>2008-09-02T04:46:00.000-07:00</published><updated>2008-09-02T04:48:02.267-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2008-09-02T04:48:02.267-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Secure programming with PHP'/><title>Secure programming with PHP</title><summary>Secure programming with PHP:While working on this article, I received a Security bulletin highlighting a critical flaw in phpBB. This is a fairly mature open source forum written in PHP, and one that's had its fair share of critical flaws. The fact that there are still more being found, and more likely to be found, shows you how difficult it is to write completely secure software, even for an </summary><link rel='replies' type='application/atom+xml' href='http://paddu-webtechnologies.blogspot.com/feeds/4505398962650458717/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=1295131199691379890&amp;postID=4505398962650458717' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1295131199691379890/posts/default/4505398962650458717?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1295131199691379890/posts/default/4505398962650458717?v=2'/><link rel='alternate' type='text/html' href='http://paddu-webtechnologies.blogspot.com/2008/09/secure-programming-with-php.html' title='Secure programming with PHP'/><author><name>Blogger</name><email>noreply@blogger.com</email></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry gd:etag='W/&quot;CUAGQHc6eCp7ImA9WxdaGUw.&quot;'><id>tag:blogger.com,1999:blog-1295131199691379890.post-5855108803880256935</id><published>2008-08-28T01:47:00.000-07:00</published><updated>2008-08-28T01:55:21.910-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2008-08-28T01:55:21.910-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Microsoft reveals IE8 Beta 2'/><title>Microsoft reveals IE8 Beta 2</title><summary>Internet Explorer 8 Beta 2 offers some nifty new features              Microsoft's IE8 now includes better tab management, services such as Web Slices and Accelerators, and the new 'porn mode.' Adds smart bar and boosts search detail; final ship date not yet set With several days to spare before its self-imposed deadline, Microsoft Corp. today launched the second beta version of its upcoming </summary><link rel='replies' type='application/atom+xml' href='http://paddu-webtechnologies.blogspot.com/feeds/5855108803880256935/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=1295131199691379890&amp;postID=5855108803880256935' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1295131199691379890/posts/default/5855108803880256935?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1295131199691379890/posts/default/5855108803880256935?v=2'/><link rel='alternate' type='text/html' href='http://paddu-webtechnologies.blogspot.com/2008/08/microsoft-reveals-ie8-beta-2.html' title='Microsoft reveals IE8 Beta 2'/><author><name>Blogger</name><email>noreply@blogger.com</email></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry gd:etag='W/&quot;DkAASXs9fyp7ImA9WxdaF04.&quot;'><id>tag:blogger.com,1999:blog-1295131199691379890.post-5455191376425422350</id><published>2008-08-26T00:06:00.000-07:00</published><updated>2008-08-26T00:12:28.567-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2008-08-26T00:12:28.567-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Webserver security'/><category scheme='http://www.blogger.com/atom/ns#' term='Web Security Breaking News'/><title>Web-Security-Web-Security-Web-Security-Web-Security</title><summary>Security  &lt;!-- Xhoo: /Security --&gt;  Computer Security Ethics and PrivacyToday, many people rely on computers to do homework, work, create, etc., so it's important to take special care with your data storage. This week you'll learn about how to protect your data and prevent intrusions. Mitigating the WASC Web Security Threat Classification with Apache: Part 3The Client-Side Attacks section focuses</summary><link rel='replies' type='application/atom+xml' href='http://paddu-webtechnologies.blogspot.com/feeds/5455191376425422350/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=1295131199691379890&amp;postID=5455191376425422350' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1295131199691379890/posts/default/5455191376425422350?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1295131199691379890/posts/default/5455191376425422350?v=2'/><link rel='alternate' type='text/html' href='http://paddu-webtechnologies.blogspot.com/2008/08/web-security-web-security-web-security.html' title='Web-Security-Web-Security-Web-Security-Web-Security'/><author><name>Blogger</name><email>noreply@blogger.com</email></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry gd:etag='W/&quot;Ck4GQXg9eCp7ImA9WxdaE08.&quot;'><id>tag:blogger.com,1999:blog-1295131199691379890.post-1636870471455895069</id><published>2008-08-21T05:14:00.000-07:00</published><updated>2008-08-21T05:15:20.660-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2008-08-21T05:15:20.660-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='php to parse files'/><title>Using Apache can I get php to parse files not ending in .php?</title><summary>Answer :Yes it is possible, to make it work on all sites on your webserver change the following in your httpd.conf:AddType application/x-httpd-php .phpto the following:AddType application/x-httpd-php .php .htmIt is also possible to put this directive in the VirtualHost sections to do it per virtualhost basis. If that proves to be too much you can use .htaccess files to solve the task.</summary><link rel='replies' type='application/atom+xml' href='http://paddu-webtechnologies.blogspot.com/feeds/1636870471455895069/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=1295131199691379890&amp;postID=1636870471455895069' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1295131199691379890/posts/default/1636870471455895069?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1295131199691379890/posts/default/1636870471455895069?v=2'/><link rel='alternate' type='text/html' href='http://paddu-webtechnologies.blogspot.com/2008/08/using-apache-can-i-get-php-to-parse.html' title='Using Apache can I get php to parse files not ending in .php?'/><author><name>Blogger</name><email>noreply@blogger.com</email></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry gd:etag='W/&quot;DUAFR3w4fSp7ImA9WxdbFk8.&quot;'><id>tag:blogger.com,1999:blog-1295131199691379890.post-3219229145118705264</id><published>2008-08-13T04:38:00.000-07:00</published><updated>2008-08-13T04:41:56.235-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2008-08-13T04:41:56.235-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='How to manage web server security'/><title>Public web sites are hacked on an almost daily basis</title><summary>BEST PRACTICES IN MANAGING WORLD WIDE WEB SERVER SECURITY:1.  Place your web server(s) in a DMZ.  Set your firewall to drop connections   to your web server on all ports but http (port 80) or https (port 443).2.  Remove all unneeded services from your web server, keeping FTP (but only   if you need it) and a secure login capability such as secure shell.  An   unneeded service can become an avenue</summary><link rel='replies' type='application/atom+xml' href='http://paddu-webtechnologies.blogspot.com/feeds/3219229145118705264/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=1295131199691379890&amp;postID=3219229145118705264' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1295131199691379890/posts/default/3219229145118705264?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1295131199691379890/posts/default/3219229145118705264?v=2'/><link rel='alternate' type='text/html' href='http://paddu-webtechnologies.blogspot.com/2008/08/public-web-sites-are-hacked-on-almost.html' title='Public web sites are hacked on an almost daily basis'/><author><name>Blogger</name><email>noreply@blogger.com</email></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry gd:etag='W/&quot;C08CQXo9eyp7ImA9WxdbEUw.&quot;'><id>tag:blogger.com,1999:blog-1295131199691379890.post-6858990546268339677</id><published>2008-08-07T05:23:00.000-07:00</published><updated>2008-08-07T05:24:20.463-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2008-08-07T05:24:20.463-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='How can I redirect all http (non-secure port 80) requests to https (Secure port 443)'/><title>How can I redirect all http (non-secure port 80) requests to https (Secure port 443)</title><summary>Answer :You can use the .htaccess method using mod_rewrite as followsRewriteEngine onRewriteCond %{SERVER_PORT} =80RewriteRule ^(.*) https://%{SERVER_NAME}%{REQUEST_URI}Any good webhost will have mod_rewrite installed and allow .htaccess files.</summary><link rel='replies' type='application/atom+xml' href='http://paddu-webtechnologies.blogspot.com/feeds/6858990546268339677/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=1295131199691379890&amp;postID=6858990546268339677' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1295131199691379890/posts/default/6858990546268339677?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1295131199691379890/posts/default/6858990546268339677?v=2'/><link rel='alternate' type='text/html' href='http://paddu-webtechnologies.blogspot.com/2008/08/how-can-i-redirect-all-http-non-secure.html' title='How can I redirect all http (non-secure port 80) requests to https (Secure port 443)'/><author><name>Blogger</name><email>noreply@blogger.com</email></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry gd:etag='W/&quot;AkUNQH0_fip7ImA9WxdUFUU.&quot;'><id>tag:blogger.com,1999:blog-1295131199691379890.post-2558966326802997138</id><published>2008-08-01T03:56:00.000-07:00</published><updated>2008-08-01T03:58:11.346-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2008-08-01T03:58:11.346-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='How can we save an image from a remote web server to my web server using PHP?'/><title>How can we save an image from a remote web server to my web server using PHP?</title><summary> &lt;?php$file_rimg = fopen("http://php-answers.blogspot.com/image23.jpg",'rb');$newfile_name_img = "/tmp/tutorial.file";$file_wnew = fopen($newfile_name_img,'wb');while (!feof($file_rimg)) {  $chunk_rd = fread($file_rimg,1024);  fwrite($file_wnew,$chunk_rd);}fclose($file_wnew);fclose(file_rimg);?&gt;</summary><link rel='replies' type='application/atom+xml' href='http://paddu-webtechnologies.blogspot.com/feeds/2558966326802997138/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=1295131199691379890&amp;postID=2558966326802997138' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1295131199691379890/posts/default/2558966326802997138?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1295131199691379890/posts/default/2558966326802997138?v=2'/><link rel='alternate' type='text/html' href='http://paddu-webtechnologies.blogspot.com/2008/08/how-can-we-save-image-from-remote-web.html' title='How can we save an image from a remote web server to my web server using PHP?'/><author><name>Blogger</name><email>noreply@blogger.com</email></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry gd:etag='W/&quot;AkYCSHYzfCp7ImA9WxdUFUU.&quot;'><id>tag:blogger.com,1999:blog-1295131199691379890.post-7918146666500395966</id><published>2008-08-01T03:55:00.000-07:00</published><updated>2008-08-01T03:56:09.884-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2008-08-01T03:56:09.884-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='How to set a time expire page in PHP.?'/><title>How to set a time expire page in PHP?</title><summary> Using   header("Expires: Mon, 26 Jul 2007 05:00:00 GMT");&lt;?phpheader("Expires: Mon, 26 Jul 2007 05:00:00 GMT");?&gt;</summary><link rel='replies' type='application/atom+xml' href='http://paddu-webtechnologies.blogspot.com/feeds/7918146666500395966/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=1295131199691379890&amp;postID=7918146666500395966' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1295131199691379890/posts/default/7918146666500395966?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1295131199691379890/posts/default/7918146666500395966?v=2'/><link rel='alternate' type='text/html' href='http://paddu-webtechnologies.blogspot.com/2008/08/how-to-set-time-expire-page-in-php.html' title='How to set a time expire page in PHP?'/><author><name>Blogger</name><email>noreply@blogger.com</email></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry gd:etag='W/&quot;AkcGRX06fCp7ImA9WxdUFUU.&quot;'><id>tag:blogger.com,1999:blog-1295131199691379890.post-8481407644283841958</id><published>2008-08-01T03:52:00.000-07:00</published><updated>2008-08-01T03:53:44.314-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2008-08-01T03:53:44.314-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='I have an array of values and want to show them all reccursivly how?'/><title>I have an array of values and want to show them all reccursivly how?</title><summary>Answer :Let say you have a two dimentional array:$array = array(array(11,22,33), 2, 3, array(111, 222, 333));and want to show all values, use the following snippet:function show_array($array) {    foreach ($array as $value) {        if (is_array($value)) {            show_array($value);        } else {            echo $value . "";        }    }}show_array($array); </summary><link rel='replies' type='application/atom+xml' href='http://paddu-webtechnologies.blogspot.com/feeds/8481407644283841958/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=1295131199691379890&amp;postID=8481407644283841958' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1295131199691379890/posts/default/8481407644283841958?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1295131199691379890/posts/default/8481407644283841958?v=2'/><link rel='alternate' type='text/html' href='http://paddu-webtechnologies.blogspot.com/2008/08/i-have-array-of-values-and-want-to-show.html' title='I have an array of values and want to show them all reccursivly how?'/><author><name>Blogger</name><email>noreply@blogger.com</email></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry gd:etag='W/&quot;CEcARnc-cSp7ImA9WxdUEk8.&quot;'><id>tag:blogger.com,1999:blog-1295131199691379890.post-682625177410193187</id><published>2008-07-27T22:13:00.000-07:00</published><updated>2008-07-27T22:14:07.959-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2008-07-27T22:14:07.959-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='How can I set the time zone for MySQL to UK time?'/><title>How can I set the time zone for MySQL to UK time?</title><summary>Answer :If you set the environment variable TZ=GB, then start MySQL the time zone will be set to UK time.I.E. (Linux only)bash:#TZ=GBbash:#export TZbash:#mysqld &amp;You can also set environment variables in my.cnf; In the data (normally var) directory.</summary><link rel='replies' type='application/atom+xml' href='http://paddu-webtechnologies.blogspot.com/feeds/682625177410193187/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=1295131199691379890&amp;postID=682625177410193187' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1295131199691379890/posts/default/682625177410193187?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1295131199691379890/posts/default/682625177410193187?v=2'/><link rel='alternate' type='text/html' href='http://paddu-webtechnologies.blogspot.com/2008/07/how-can-i-set-time-zone-for-mysql-to-uk.html' title='How can I set the time zone for MySQL to UK time?'/><author><name>Blogger</name><email>noreply@blogger.com</email></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry gd:etag='W/&quot;A0EDQ3ozfCp7ImA9WxdVGUs.&quot;'><id>tag:blogger.com,1999:blog-1295131199691379890.post-6016656853677341581</id><published>2008-07-25T00:07:00.001-07:00</published><updated>2008-07-25T00:07:52.484-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2008-07-25T00:07:52.484-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Count number of parameters given in URL'/><title>How to count number of parameters given in URL by POST?</title><summary>Answer :&lt;?echo count ($HTTP_POST_VARS);?&gt;  </summary><link rel='replies' type='application/atom+xml' href='http://paddu-webtechnologies.blogspot.com/feeds/6016656853677341581/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=1295131199691379890&amp;postID=6016656853677341581' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1295131199691379890/posts/default/6016656853677341581?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1295131199691379890/posts/default/6016656853677341581?v=2'/><link rel='alternate' type='text/html' href='http://paddu-webtechnologies.blogspot.com/2008/07/how-to-count-number-of-parameters-given.html' title='How to count number of parameters given in URL by POST?'/><author><name>Blogger</name><email>noreply@blogger.com</email></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry gd:etag='W/&quot;A0EEQHk-fip7ImA9WxdVGUs.&quot;'><id>tag:blogger.com,1999:blog-1295131199691379890.post-8784156955084046459</id><published>2008-07-25T00:06:00.001-07:00</published><updated>2008-07-25T00:06:41.756-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2008-07-25T00:06:41.756-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='check whether a string contains HTML'/><title>How do I check whether a string contains HTML?</title><summary>Answer :There are two ways you can do it, one is using a regular expression the other is comparing strings.First the regular expression approach:if (preg_match("/([\&lt;])([^\&gt;]{1,})*([\&gt;])/i", $string)) {    echo "string contains html";} And here is the other approach:if(strlen($string) != strlen(strip_tags($string)){  echo "string contains HTML";} </summary><link rel='replies' type='application/atom+xml' href='http://paddu-webtechnologies.blogspot.com/feeds/8784156955084046459/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=1295131199691379890&amp;postID=8784156955084046459' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1295131199691379890/posts/default/8784156955084046459?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1295131199691379890/posts/default/8784156955084046459?v=2'/><link rel='alternate' type='text/html' href='http://paddu-webtechnologies.blogspot.com/2008/07/how-do-i-check-whether-string-contains.html' title='How do I check whether a string contains HTML?'/><author><name>Blogger</name><email>noreply@blogger.com</email></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry gd:etag='W/&quot;DU4ERH4-cCp7ImA9WxdVFkw.&quot;'><id>tag:blogger.com,1999:blog-1295131199691379890.post-2635236118948090074</id><published>2008-07-20T22:24:00.000-07:00</published><updated>2008-07-20T22:25:05.058-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2008-07-20T22:25:05.058-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='What&apos;s the difference between the *connect and *pconnect database functions?'/><title>What's the difference between the *connect and *pconnect database functions?</title><summary>Answer :mysql_pconnect() acts very much like mysql_connect() with two major differences.First, when connecting, the function would first try to find a (persistent) link that's already open with the same host, username and password. If one is found, an identifier for it will be returned instead of opening a new connection.Second, the connection to the SQL server will not be closed when the </summary><link rel='replies' type='application/atom+xml' href='http://paddu-webtechnologies.blogspot.com/feeds/2635236118948090074/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=1295131199691379890&amp;postID=2635236118948090074' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1295131199691379890/posts/default/2635236118948090074?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1295131199691379890/posts/default/2635236118948090074?v=2'/><link rel='alternate' type='text/html' href='http://paddu-webtechnologies.blogspot.com/2008/07/whats-difference-between-connect-and.html' title='What&apos;s the difference between the *connect and *pconnect database functions?'/><author><name>Blogger</name><email>noreply@blogger.com</email></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry gd:etag='W/&quot;DU8HR3Y5fyp7ImA9WxdVFkw.&quot;'><id>tag:blogger.com,1999:blog-1295131199691379890.post-5138295563603583061</id><published>2008-07-20T22:23:00.001-07:00</published><updated>2008-07-20T22:23:56.827-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2008-07-20T22:23:56.827-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='How can I protect pages using MySQL and PHP?'/><title>How can I protect pages using MySQL and PHP?</title><summary>Answer :If PHP is installed as a module you can include code at the top of pages to protect them.The link previously listed here was broken, we will be updating this section in the next few days with example code.groogle</summary><link rel='replies' type='application/atom+xml' href='http://paddu-webtechnologies.blogspot.com/feeds/5138295563603583061/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=1295131199691379890&amp;postID=5138295563603583061' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1295131199691379890/posts/default/5138295563603583061?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1295131199691379890/posts/default/5138295563603583061?v=2'/><link rel='alternate' type='text/html' href='http://paddu-webtechnologies.blogspot.com/2008/07/how-can-i-protect-pages-using-mysql-and.html' title='How can I protect pages using MySQL and PHP?'/><author><name>Blogger</name><email>noreply@blogger.com</email></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry gd:etag='W/&quot;DkUMSHY-fip7ImA9WxdVE0s.&quot;'><id>tag:blogger.com,1999:blog-1295131199691379890.post-3246629039507103441</id><published>2008-07-16T21:27:00.000-07:00</published><updated>2008-07-17T23:58:09.856-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2008-07-17T23:58:09.856-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Microsoft Announces Three Tools to help prevent SQL Injection'/><title>Microsoft Announces Three Tools to help prevent SQL Injection</title><summary>"On Tuesday, Microsoft issued new tools to assist Microsoft ASP and ASP.NET technologies against recent Web-based attacks.In April attackers went after Microsoft SQL sites by injecting malicious JavaScript onto legitimate sites. The JavaScript would direct a browser to a server hosting malicious software infecting the desktop with a variety of exploits. At the time Microsoft insisted it was not </summary><link rel='replies' type='application/atom+xml' href='http://paddu-webtechnologies.blogspot.com/feeds/3246629039507103441/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=1295131199691379890&amp;postID=3246629039507103441' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1295131199691379890/posts/default/3246629039507103441?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1295131199691379890/posts/default/3246629039507103441?v=2'/><link rel='alternate' type='text/html' href='http://paddu-webtechnologies.blogspot.com/2008/07/microsoft-announces-three-tools-to-help.html' title='Microsoft Announces Three Tools to help prevent SQL Injection'/><author><name>Blogger</name><email>noreply@blogger.com</email></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry gd:etag='W/&quot;DkQHQX89fyp7ImA9WxdVE0s.&quot;'><id>tag:blogger.com,1999:blog-1295131199691379890.post-1623248665852402581</id><published>2008-07-16T04:35:00.000-07:00</published><updated>2008-07-17T23:58:50.167-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2008-07-17T23:58:50.167-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='How can I create thumbnails using PHP'/><title>How can I create thumbnails using PHP?</title><summary>function thumbnail($image_path,$thumb_path,$image_name,$thumb_width){   $src_img = imagecreatefromjpeg("$image_path/$image_name");   $origw=imagesx($src_img);   $origh=imagesy($src_img);   $new_w = $thumb_width;   $diff=$origw/$new_w;   $new_h=$new_w;   $dst_img = imagecreate($new_w,$new_h);   imagecopyresized($dst_img,$src_img,0,0,0,0,$new_w,$new_h,imagesx($src_img),imagesy($src_img));   </summary><link rel='replies' type='application/atom+xml' href='http://paddu-webtechnologies.blogspot.com/feeds/1623248665852402581/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=1295131199691379890&amp;postID=1623248665852402581' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1295131199691379890/posts/default/1623248665852402581?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1295131199691379890/posts/default/1623248665852402581?v=2'/><link rel='alternate' type='text/html' href='http://paddu-webtechnologies.blogspot.com/2008/07/how-can-i-create-thumbnails-using-php.html' title='How can I create thumbnails using PHP?'/><author><name>Blogger</name><email>noreply@blogger.com</email></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry gd:etag='W/&quot;CUUCQnw8cCp7ImA9WxdVEUQ.&quot;'><id>tag:blogger.com,1999:blog-1295131199691379890.post-1491113387511261825</id><published>2008-07-16T00:25:00.000-07:00</published><updated>2008-07-16T00:27:43.278-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2008-07-16T00:27:43.278-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Some usefull tips for Web Programmer (Worth for reading)'/><title>Some usefull tips for Web Programmer (Worth for reading)</title><summary>Visit the below site to get more info.    http://php-answers.blogspot.com</summary><link rel='replies' type='application/atom+xml' href='http://paddu-webtechnologies.blogspot.com/feeds/1491113387511261825/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=1295131199691379890&amp;postID=1491113387511261825' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1295131199691379890/posts/default/1491113387511261825?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1295131199691379890/posts/default/1491113387511261825?v=2'/><link rel='alternate' type='text/html' href='http://paddu-webtechnologies.blogspot.com/2008/07/some-usefull-tips-for-web-programmer.html' title='Some usefull tips for Web Programmer (Worth for reading)'/><author><name>Blogger</name><email>noreply@blogger.com</email></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry gd:etag='W/&quot;DkQBRngyeip7ImA9WxdVE0s.&quot;'><id>tag:blogger.com,1999:blog-1295131199691379890.post-5263550407418276231</id><published>2008-07-15T06:20:00.001-07:00</published><updated>2008-07-17T23:59:17.692-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2008-07-17T23:59:17.692-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='How do I run a php script from the command line?'/><title>How do I run a php script from the command line?</title><summary>Answer :No matter what OS you have installed you need to compile / install php as a CGI because when you have php as a CGI you have a binary you can execute from anywhere like a command prompt.If you use a unix like OS you should do:/path/to/php -f /path/to/script.phpFor windows OS's do:c:\path\to\php.exe -f c:\path\to\script.phpThe parameter -f is put on because we want to parse a file, the -f </summary><link rel='replies' type='application/atom+xml' href='http://paddu-webtechnologies.blogspot.com/feeds/5263550407418276231/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=1295131199691379890&amp;postID=5263550407418276231' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1295131199691379890/posts/default/5263550407418276231?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1295131199691379890/posts/default/5263550407418276231?v=2'/><link rel='alternate' type='text/html' href='http://paddu-webtechnologies.blogspot.com/2008/07/how-do-i-run-php-script-from-command.html' title='How do I run a php script from the command line?'/><author><name>Blogger</name><email>noreply@blogger.com</email></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry gd:etag='W/&quot;DkQNQn47cSp7ImA9WxdVE0s.&quot;'><id>tag:blogger.com,1999:blog-1295131199691379890.post-8754144346793098898</id><published>2008-07-15T04:24:00.000-07:00</published><updated>2008-07-17T23:59:53.009-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2008-07-17T23:59:53.009-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='How google is your friend'/><title>How google is your friend</title><summary>Google is not only a great search enging but with the release of "adsense" it can also pay for your hosting/domain and if you work hard even your holidays :)Google says :-"Google Adsense is the programme that can generate advertising revenue from each page on your website—with a minimal investment in time and no additional resources.Adsense delivers relevant ads that are precisely targeted on a </summary><link rel='replies' type='application/atom+xml' href='http://paddu-webtechnologies.blogspot.com/feeds/8754144346793098898/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=1295131199691379890&amp;postID=8754144346793098898' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1295131199691379890/posts/default/8754144346793098898?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1295131199691379890/posts/default/8754144346793098898?v=2'/><link rel='alternate' type='text/html' href='http://paddu-webtechnologies.blogspot.com/2008/07/how-google-is-your-friend.html' title='How google is your friend'/><author><name>Blogger</name><email>noreply@blogger.com</email></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry gd:etag='W/&quot;DkMESXY5cCp7ImA9WxdVE0s.&quot;'><id>tag:blogger.com,1999:blog-1295131199691379890.post-6324065943750547360</id><published>2008-07-15T04:22:00.000-07:00</published><updated>2008-07-18T00:00:08.828-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2008-07-18T00:00:08.828-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Reading site content using CURL'/><title>Reading site content using CURL</title><summary>For reading content of a website in PHP, there are lot of different ways &amp; functions available like:$site_content=file($url); #OR$site_content=file_get_contents($url) ;But these functions does not work in some server environments where "allow_url_fopen" is off in php.ini &amp; you don't have permission to change this.You can use the following alternative (using CURL) in that case.$url="http://</summary><link rel='replies' type='application/atom+xml' href='http://paddu-webtechnologies.blogspot.com/feeds/6324065943750547360/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=1295131199691379890&amp;postID=6324065943750547360' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1295131199691379890/posts/default/6324065943750547360?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1295131199691379890/posts/default/6324065943750547360?v=2'/><link rel='alternate' type='text/html' href='http://paddu-webtechnologies.blogspot.com/2008/07/reading-site-content-using-curl.html' title='Reading site content using CURL'/><author><name>Blogger</name><email>noreply@blogger.com</email></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry gd:etag='W/&quot;DkMGRHk-eSp7ImA9WxdVE0s.&quot;'><id>tag:blogger.com,1999:blog-1295131199691379890.post-3603951163838873669</id><published>2008-07-10T21:31:00.002-07:00</published><updated>2008-07-18T00:00:25.751-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2008-07-18T00:00:25.751-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Web Server Security FAQ'/><title>The World Wide Web Server Security FAQ</title><summary>Q1: What's to worry about?Unfortunately, there's a lot to worry about. There are security risks that affect Web servers, the local area networks that host Web sites, and even innocent users of Web browsers.The risks are most severe from the Webmaster's perspective. The moment you install a Web server at your site, you've opened a window into your local network that the entire Internet can peer </summary><link rel='replies' type='application/atom+xml' href='http://paddu-webtechnologies.blogspot.com/feeds/3603951163838873669/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=1295131199691379890&amp;postID=3603951163838873669' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1295131199691379890/posts/default/3603951163838873669?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1295131199691379890/posts/default/3603951163838873669?v=2'/><link rel='alternate' type='text/html' href='http://paddu-webtechnologies.blogspot.com/2008/07/world-wide-web-security-faq.html' title='The World Wide Web Server Security FAQ'/><author><name>Blogger</name><email>noreply@blogger.com</email></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry gd:etag='W/&quot;DkQDQ347fip7ImA9WxdVE0s.&quot;'><id>tag:blogger.com,1999:blog-1295131199691379890.post-7017369556844995251</id><published>2008-07-10T21:31:00.001-07:00</published><updated>2008-07-17T23:59:32.006-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2008-07-17T23:59:32.006-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Web Security Breaking News'/><title>Web Security Breaking News</title><summary>Webroot woos SMBs with online security Google adds Web security, remote worker protection to Google AppsMcAfee, Yahoo team on Web securityHow one site dealt with SQL injection attackScan ScanSafe's annual report for heuristic experience &gt;Cisco business unit targets botsWebroot, Email Systems team for new e-mail security serviceVisit the below site to get more info.    http://</summary><link rel='replies' type='application/atom+xml' href='http://paddu-webtechnologies.blogspot.com/feeds/7017369556844995251/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=1295131199691379890&amp;postID=7017369556844995251' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1295131199691379890/posts/default/7017369556844995251?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1295131199691379890/posts/default/7017369556844995251?v=2'/><link rel='alternate' type='text/html' href='http://paddu-webtechnologies.blogspot.com/2008/07/web-security-breaking-news.html' title='Web Security Breaking News'/><author><name>Blogger</name><email>noreply@blogger.com</email></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry gd:etag='W/&quot;DEEHQH47fip7ImA9WxdVEU0.&quot;'><id>tag:blogger.com,1999:blog-1295131199691379890.post-1616669718835033928</id><published>2008-07-08T04:40:00.000-07:00</published><updated>2008-07-15T00:23:51.006-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2008-07-15T00:23:51.006-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='How to Protect our Server'/><title>How to Protect our Server You Should Know this</title><summary>You are offering your IP address to the entire world at this very moment.Make sure you are not offering access to your private data at the same time.YOUR IP ADDRESS IS PUBLICAccessing the Internet is a security risk.When you are connected to the Internet, an IP address is used to identify your PC.  If you don't protect yourself, this IP address can be used to access your computer from the outside</summary><link rel='replies' type='application/atom+xml' href='http://paddu-webtechnologies.blogspot.com/feeds/1616669718835033928/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=1295131199691379890&amp;postID=1616669718835033928' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1295131199691379890/posts/default/1616669718835033928?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1295131199691379890/posts/default/1616669718835033928?v=2'/><link rel='alternate' type='text/html' href='http://paddu-webtechnologies.blogspot.com/2008/07/web-security.html' title='How to Protect our Server You Should Know this'/><author><name>Blogger</name><email>noreply@blogger.com</email></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry gd:etag='W/&quot;DkMHSHY_cSp7ImA9WxdVE0s.&quot;'><id>tag:blogger.com,1999:blog-1295131199691379890.post-8653650023703892964</id><published>2008-07-08T03:31:00.000-07:00</published><updated>2008-07-18T00:00:39.849-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2008-07-18T00:00:39.849-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='what is Cookie ?'/><title>About Cookies</title><summary>Hi my dear friends. Everybody knows what is cookie and session. But let me tell a truth, most of the beginners don’t know properly what is happening in cookies and sessions and what is the real use .I have taken so many Interviews but none of them given a good answer. I am very much sure you are going to get a good idea about Sessions and Cookies. Let us start our battle.:)I am explaining only </summary><link rel='replies' type='application/atom+xml' href='http://paddu-webtechnologies.blogspot.com/feeds/8653650023703892964/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=1295131199691379890&amp;postID=8653650023703892964' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1295131199691379890/posts/default/8653650023703892964?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1295131199691379890/posts/default/8653650023703892964?v=2'/><link rel='alternate' type='text/html' href='http://paddu-webtechnologies.blogspot.com/2008/07/about-cookies.html' title='About Cookies'/><author><name>Blogger</name><email>noreply@blogger.com</email></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry></feed>