Recent Posts

Pages: [1] 2 3 ... 10
1
 CCNP ENCOR Certification will tests the successful candidate’s knowledge on implementing core enterprise network technologies including dual-stack (IPv4 and IPv6) architecture, virtualization, infrastructure, network assurance, security and automation. To Earn this certification the candidate must need the practice before taking the test. In this way, to help the candidates certexams.com recently released the CCNP ENCOR 350–401 practice exams based on the new objectives. The practice exams will have 225+ questions, with each question carrying a detailed explanation and supports different question types like mcsa, mcma, simlets, testlets and etc. Try the demo version on your desktop to know about the more features of CCNP ENCOR Practice Exams Offered by CertExams. Some features are listed below.

The CCNP ENCOR Practice Exams Features:
  • Provides 225+ practice questions with answers
  • Supports Multiple choice questions (Single and Multi answers)
  • Testlets
  • Simlets
  • Trues or False
  • Drag-and-Drop type questions and
  • Router Simulations
About CertExams.com: The website CertExams.com is a brand site of Anand Software and Training Pvt Ltd, Bangalore. It offers Network Simulators and exam simulators for IT certification preparation. The products offered include Network Simulators for CCNA®, JNCIA®, etc, and Exam Simulators for Cisco® CCNA™ 200–301, CCNP™, JNCIA™, CompTIA® and others.

Disclaimer: CertExams.com is neither associated nor affiliated with Cisco® Systems, Inc. or any other company. CCNA™, CCNP™ are trademarks of Cisco® Systems and duly acknowledged. The cheatsheets and practice tests material is a copyright of CertExams.com and the same is not approved or endorsed by respective certifying bodies.[/i]
2
General Discussion / PHP Add Handler directive
« Last post by certforumz on December 19, 2020, 04:04:04 PM »
http://www.velvetblues.com/web-development-blog/how-to-parse-html-files-as-php/

There are many reasons to parse HTML files as PHP. Some webmasters do it because they are converting an old static website into a dynamic website and don’t want to lose pagerank. Other websites do it because search engines seem to favor web pages that have .html endings over those with dynamic .php endings. Or perhaps, you are doing it for security reasons… You don’t want visitors to know what scripting language you use to run your website.

Fortunately, parsing HTML files as PHP easily accomplished on Linux Apache via the use of an htaccess file.

Making the HTACCESS File
If you’ve never seen or heard of an HTACCESS file before, don’t be alarmed. Htaccess files are simple text files that are saved with a .htaccess extension. And they are easily created using a simple text editor such as Notepad or WordPad.

The Code
Believe it or not, you only need a single line of code to do the deed. Unfortunately, the code varies depending on your the configuration of your server. And unless your web host provides documentation, there is no way to know which code will work. But here are typical code samples below. (Note: If these code samples do not work, it may be necessary to consult your host.)

⇒ On web hosts that run two versions of PHP:

Some web hosts which run, or have run, two versions of PHP such as PHP4 and PHP5, usually have a PHP5 handler. The sample code below will parse all .html and .htm files as PHP. (This code has been tested on HostGator and InMotion hosting.)

AddHandler application/x-httpd-php5 .html .htm

⇒ On most other web hosts:

For hosts that only run a single version of PHP, the following code should work. (This code has been tested on Superb and LunaPage Web hosting.)

AddType application/x-httpd-php .html .htm

or, if the AddType directive does not work, you can use the AddHandler directive as follows:

AddHandler application/x-httpd-php .html .htm

or

AddHandler x-httpd-php .html .htm

 

Some web hosts, such as GoDaddy require both directives. So your code would look like this:

AddType application/x-httpd-php .htm .html
AddHandler x-httpd-php  .htm .html

 

As a last resort, you can also try this multi-line approach which uses the SetHandler directive:

<FilesMatch "\.(htm|html|php)$">
SetHandler application/x-httpd-php
</FilesMatch>

or

<FilesMatch "\.(htm|html|php)$">
SetHandler application/x-httpd-php5
</FilesMatch>

Complications
Sometimes, none of the above code samples will work. In this case, there are a few things that you can do:

Consult your web host to learn about the configuration of your server, and determine if some other code should be used.
Verify correct extension. If you are new to htaccess files, it is easy to make a mistake when creating them. The most common mistake is to save the file using the wrong extension. To fix this, you can easily change the filename after you upload to your server. Simply rename the file such that it has no name, but just an extension. So the file name should appear as ".htaccess".
Wait. Sometimes hosts have something called a server-side cache. This means that files take a while to ‘go into effect’. If you are on GoDaddy, for example, you should expect to wait about 30 minutes.
Verify permissions. Make sure that your htaccess files has the right permissions. To view or change permissions, you will need to use the CHMOD utility.
Security & Performance Issues
There are some security issues that you should be aware of, especially if you are on a shared web hosting plan. First, if there is a problem with your HTACCESS file, your file may be able to be downloaded by your visitors or viewable as text. So if there is any sensitive data such as passwords or database information, it should never be stored in an HTML file. Second, if your web host changes the configuration of your server, it may affect the way in which your files are parsed. Third, if you ever plan on moving your website, your HTACCESS file may not be compatible with the new configuration. And finally, it is estimated that websites using this approach are marginally slower than websites that simply opt to use PHP files.

As a result, we recommend this as a great solution for small websites. (Small websites are those with less than 50 pages.) However, as your website increases in size, it would be a good idea to select a more robust solution that will be able to serve a website of any size.

Share or Subscribe

Why don't you subscribe to our feed so you can get the latest from this blog. You can also subscribe to this article's comments feed.

Tags: Apache, cache, htaccess file, Linux, PHP
Related Articles
WordPress Permalinks on GoDaddy Hosting
How To Compress Your Pages With GZIP And PHP
301 Redirects with .htaccess files on Linux Apache
What Is The Difference Between Static and Dynamic Websites?
Custom Error Pages with .htaccess Files
3
General Discussion / Re: Webhosting providers ranking
« Last post by certforumz on December 18, 2020, 08:11:22 PM »
Trust worthy rankings webhosting rankings:
https://www.trustpilot.com/review/hostwinds.com
You may verify for any other hosting company as well.
Scalahosting - 4.9/5 they have their own S panel (instead of C panel) and looks similar to C panel.
They are cheap as they dont have to buy C panel license, and S panel is said to have domain controller where you can add a hosting domain and manage.
4
CCNA Certification / Re: CCNA 200-301 Certification
« Last post by certforumz on December 18, 2020, 12:46:18 PM »
6
General Discussion / Debt Equity Ratio
« Last post by certforumz on December 13, 2020, 10:32:13 PM »
Tools for equity analysis:
Equity computing, fundamental analysis of stocks
https://www.investopedia.com/tools-for-fundamental-analysis-4689755
7
General Discussion / Social Links at Medium.com
« Last post by certforumz on December 13, 2020, 10:01:18 PM »
8
CCNP Certification / Re: CCNP Enterprise -Core Exam
« Last post by certforumz on December 13, 2020, 06:34:30 AM »
Released CCNP Enterprise Core (ENCOR) 350-401 practice tests
Cisco recently updated its CCNP certification stream to consist of a Core exam and several concentration exams. One needs to pass the Core exam and any one of the specialty exams to obrain CCNP certification.
Check out out blogs here:

Blog: https://ccnpcertification.blogspot.com/
https://www.simulationexams.com/Blog/2020/12/13/simulationexams-com-releases-ccnp-encor-350-401-practice-tests/
Another blog link: https://certforums.wordpress.com/2020/12/13/simulationexams-com-releases-ccnp-network-core-technologies-encor-350-401-practice-exams/
9
General Discussion / Re: CPSU (Central Public Sector Units
« Last post by certforumz on December 07, 2020, 05:20:43 AM »
Pages: [1] 2 3 ... 10