Add your own mime type to a Windows server using the web.config file

příklady skriptů a kódů

Here is an example of how to add your own mime type to a Windows server using the web.config file. What is web.config file? The web.config file is a configuration file used by Microsoft’s ASP.NET framework to store settings and configuration information for web applications. It is an XML file that contains settings that affect how the web application behaves and is used to configure various features such as authentication, session state, caching, and error handling. The web.config file is located in the root directory of an ASP.NET web application and can be edited using … Read more

Script for file upload in PHP and CHMOD to 755

příklady skriptů

Sometimes, it is necessary to use a simple form to upload files to the FTP of your website. Here is a complete script for file upload in PHP using the chmod function to change permissions to 755 and with a form for selecting the file (you can adjust the permissions using chmod in the script to your own desired ones). Keep in mind that the maximum file size is governed by the limit set in the php.ini file of the website. Therefore, you will likely be limited by the file size, especially if you are … Read more

Redirecting domain without www to domain with www using .htaccess

příklady skriptů a kódů

The following code in the .htaccess file allows you to redirecting domain without www to domain with www using .htaccess: What is .htaccess file? The htaccess file, short for “hypertext access,” is a configuration file used by web servers, such as Apache, to control website access and modify server behavior. It is typically stored in the root directory of a website. It also contains directives that dictate specific rules and instructions to the server. The htaccess file can be used to password protect directories, control access to files and folders. With this file you can … Read more

Simple contact form in PHP

příklady skriptů a kódů

This is a PHP code for a simple contact form in PHP that sends an email. Here’s a breakdown of the code and its functions: Note: this simple script is used, for example, to test on or off mail() functions on the webserver. It contains no protection against to send out spam! What is PHP? PHP (Hypertext Preprocessor) is a server-side scripting language that is widely used for developing dynamic websites and web applications. It is an open-source language, which means that it is freely available to use, distribute, and modify. PHP is commonly used … Read more

PHP script to connect to MySQL database

příklady skriptů

PHP script to connect to MySQL database. An example of a script in a PHP to connect to a MySQL database and explain individual functions and parts: What is PHP? PHP is a dynamic scripting language used for creating web pages and applications. Its abbreviation stands for “PHP: Hypertext Preprocessor” and it is an open-source language, which means it is free and can be used anytime and anywhere. With PHP, you can create various types of web pages, including static pages that do not load dynamically but are pre-created and ready to be uploaded to … Read more

Pokud mi chcete napsat rychlou zprávu, využije, prosím, níže uvedený
kontaktní formulář. Děkuji.

Další Kontaktní údaje