<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="https://www.w3.org/2005/Atom">
<channel>
<title>PHP</title>
<link>https://www.wmtips.com/</link>
<atom:link href="https://www.wmtips.com/php/rss.xml" rel="self" type="application/rss+xml" />
<description>HTML, CSS, SEO Tips · Website Information, IP Address Lookup, Keyword Density Analyzer, and other tools · Web technology rankings and usage statistics.</description>
<language>en-us</language>
<item>
<title>The Fastest PHP Function to Check if a Value Exists in an Array. isset vs array_search vs in_array vs other methods</title>
<link>https://www.wmtips.com/php/fastest-function-check-if-value-exists-in-array</link>
<guid>https://www.wmtips.com/php/fastest-function-check-if-value-exists-in-array</guid>
<pubDate>Thu, 19 Nov 2020 13:11:41 +0000</pubDate>
<description><![CDATA[<p>In this article, we are going to find out the fastest PHP function that is used to check if an array contains a value. We will test and compare the performance of five different methods. We will analyze how the parameter <samp>$strict</samp> affects the performance of <samp>array_search</samp> and <samp>in_array</samp>. And finally, we will compare the results with and without OPcache enabled, and draw conclusions, which method is better.</p>]]></description>
<category><![CDATA[PHP]]></category>
</item>
<item>
<title>How to Make a Perfect Site Maintenance Page (Free Templates Included)</title>
<link>https://www.wmtips.com/html/howto-make-a-perfect-site-maintenance-page</link>
<guid>https://www.wmtips.com/html/howto-make-a-perfect-site-maintenance-page</guid>
<pubDate>Wed, 26 Aug 2020 13:27:43 +0000</pubDate>
<description><![CDATA[<p>It happens that sometimes you need to take your website offline for doing various maintenance tasks such as restoring a database backup, updating scripts, or switching from one web host to another.
Some CMS have built-in (or extendable via plugins) abilities to turn on maintenance mode and others do not.</p>
<p>In this article, you will know how to <strong>create</strong> a perfect maintenance page with PHP, how to <strong>redirect all requests</strong> to this page with a CMS functionality (if applicable) or Apache's <samp>mod_rewrite</samp> module, and how to <strong>minimize harm to your search engine rankings</strong> while your site is offline. You will also find a simple maintenance page template and a sample <samp>.htaccess</samp> file.</p>]]></description>
<category><![CDATA[HTML]]></category>
</item>
<item>
<title>How to Use Mod_rewrite For URL Rewriting in Apache</title>
<link>https://www.wmtips.com/apache/how-use-mod-rewrite-url-rewriting</link>
<guid>https://www.wmtips.com/apache/how-use-mod-rewrite-url-rewriting</guid>
<pubDate>Mon, 20 Jul 2009 17:04:36 +0000</pubDate>
<description><![CDATA[<p>URL Rewriting is the process of manipulating an URL or a link, which is send to a web server in such a way that the link is dynamically modified at the server to include additional parameters and information along with a server initiated redirection. The web server performs all these manipulations on the fly so that the browser is kept out of the loop regarding the change made in URL and the redirection.</p>
<p>URL Rewriting can benefit your websites and web based applications by providing better security, better visibility or friendliness with Search Engines and helps in keeping the structure of the website more easy to maintain for future changes...</p>]]></description>
<category><![CDATA[Apache]]></category>
</item>
<item>
<title>Auto Optimize Your MySQL Tables Script</title>
<link>https://www.wmtips.com/php/auto-optimize-mysql-tables-script</link>
<guid>https://www.wmtips.com/php/auto-optimize-mysql-tables-script</guid>
<pubDate>Sun, 25 May 2008 16:56:49 +0000</pubDate>
<description><![CDATA[<p>In my quest to make our clients MySQL driven ecommerce websites running fast, I've pieced together a script and cron job that will save you some support calls down the road..</p>]]></description>
<category><![CDATA[PHP]]></category>
</item>
<item>
<title>43 Tips for Optimizing PHP code</title>
<link>https://www.wmtips.com/php/tips-optimizing-php-code</link>
<guid>https://www.wmtips.com/php/tips-optimizing-php-code</guid>
<pubDate>Thu, 18 Oct 2007 18:15:25 +0000</pubDate>
<description><![CDATA[<p>Here is the list of 43 short tips you can use for writing an optimized and more efficient PHP code..</p>

]]></description>
<category><![CDATA[PHP]]></category>
</item>
<item>
<title>Content Compression Using PHP</title>
<link>https://www.wmtips.com/php/content-compression-using-php</link>
<guid>https://www.wmtips.com/php/content-compression-using-php</guid>
<pubDate>Sat, 03 Mar 2007 18:23:00 +0000</pubDate>
<description><![CDATA[<p>HTTP 1.0 introduced the idea of content encodings. A browser/client can notify the server that it can accept compressed content by sending the Accept-Encoding header. The Accept-Encoding header can be set as follows</p>
<p><em>Accept-Encoding: gzip,deflate</em></p>
<p>or with just one of gzip or deflate. You don't need to worry about any of this - PHP will automatically choose the correct compression to use.</p>
<p>Compressing content usually results in less data being send across the network. This has three benefits..</p>]]></description>
<category><![CDATA[PHP]]></category>
</item>
<item>
<title>3 Simple Ways To Restrict Access To Your Webpages Using PHP</title>
<link>https://www.wmtips.com/php/simple-ways-restrict-access-webpages-using</link>
<guid>https://www.wmtips.com/php/simple-ways-restrict-access-webpages-using</guid>
<pubDate>Tue, 21 Nov 2006 16:57:54 +0000</pubDate>
<description><![CDATA[<p>Why should you need to restrict access to some of your scripts or web pages? There are can be several reasons to do this:</p><ul>
<li>You are using some kind of open-source PHP script (for example, a statistics dashboard), and aren't sure that your data is completely safe. Many open-source scripts have vulnerabilities, allowing hackers to gain access to your data, so you may want to hide the "entry point" of this script from others.</li>
<li>You can have some important private data you don't want to be accessible by unauthorized visitors.</li>
</ul><p>So, you need to "hide" your pages from search engine spiders, random visitors, and other unwanted persons. In this article, we'll examine several techniques and illustrate how you can implement such an "access restriction" with PHP.</p>]]></description>
<category><![CDATA[PHP]]></category>
</item>
<item>
<title>Regular Expressions Made Easy</title>
<link>https://www.wmtips.com/php/regular-expressions-made-easy</link>
<guid>https://www.wmtips.com/php/regular-expressions-made-easy</guid>
<pubDate>Sun, 19 Nov 2006 08:38:08 +0000</pubDate>
<description><![CDATA[<p>Regular expressions are a very powerful instrument to manipulate and extract strings. However, not all PHP developers know how to use regular expressions. This simple tutorial is intended for everyone who wants to get started with regular expressions in PHP.</p>
<p>PHP has several built-in functions for dealing with regular expressions. We'll examine the <abbr title="Perl Compatible Regular Expressions">PCRE</abbr> functions (<samp>preg_match</samp>, <samp>preg_replace</samp>, &hellip;), which use a Perl-compatible regular expression syntax.</p>]]></description>
<category><![CDATA[PHP]]></category>
</item>
</channel>
</rss> 