PHP-MySQL

MySQL Database Dumping and Importing through Command line

MySQL is one of the most popular database management systems for the development of interactive Websites that need to utilize persistent data sources. As with all other popular database management systems, MySQL offers several methods to backup your important data.

View this file.

 

installing WAMP Server (Apache, PHP, MySQL, and phpMyAdmin)

WampServer is a Windows web development environment. It allows you to create web applications with Apache, PHP and the MySQL database. It also comes with PHPMyAdmin to easily manage your databases.

WampServer installs automatically (installer), and its usage is very intuitive. You will be able to tune your server without even touching the setting files.

 

XAMPP ইনস্টলেশন শর্টকার্ট ও শুরু (উইন্ডোজ)

উইন্ডোজ পরিবেশে ম্যানুয়ালি সবকিছু সেটাপ শিখতে গিয়ে যেসকল নবীন ডেভেলপাররা হোচট খেয়েছেন তাদের জন্য খুব আনন্দের খবর হচ্ছে কোন রকম ঝামেলা ছাড়াই উইন্ডোজ পরিবেশে ওয়েব ডেভেলপ করার পরিবেশ তৈরি করা সম্ভব। এর জন্য খুব জনপ্রিয় দু’টি প্যাকেজ (XAMPP, WAMP) আছে যাতে Apache, PHP, MySQL সহ আরো বেশ কিছু প্রয়োজনীয় টুল একত্রে কনফিগার করে দেয়া থাকে। এদের যেকোন একটি সংগ্রহ করে সাধারণ যেকোন সফটওয়্যারের মত সেটাপ করে নিলেই ওয়েব ডেভেলপ করার প্রয়োজনীয় পরিবেশ তৈরি হয়ে যাবে। XAMPP এবং WAMP নামের এই প্যাকেগুলো থেকে আমরা অধিক জনপ্রিয় XAMPP-কে বেছে নিচ্ছি। চলুন খুব সংক্ষেপে এটি সংগ্রহ, ইনস্টলেশন ও সাধারণ ব্যবহারবিধ

Disable PHP's Bad Features

Register Globals (register_globals):
Whether or not to register the EGPCS (Environment, GET, POST, Cookie, Server) variables as global variables.
We cannot disable register_globals from the script side (using ini_set, like we normally might), but we can use an .htaccess files to do this. Some hosts also allow you to have a php.ini file on the server.

Disabling with .htaccess
php_flag register_globals 0

Disabling with php.ini
register_globals = Off
 

Develope Bangla Unicode based Web Application using PHP-MySQL

1 .Make the database and Tables with CHARACTER utf8 and collation_connection =’utf8_general_ci’
2 . Must add following two lines just after selecting the database, i.e mysql_select_db() function:
mysql_query(’SET CHARACTER SET utf8′);
mysql_query(”SET SESSION collation_connection =’utf8_general_ci’”);
4 . Set the META-TAG as “Content-Type: text/html; charset=UTF-8″

Awesome Event of "phpXperts Yahoo Group" is "PHP Seminar 2009: Current Development Trends" at Brac University Seminar Hall

পূর্বের ঘোষণা অনুযায়ী ৯ মে অনুষ্ঠিত হওয়ার কথা থাকলেও শেষ পর্যন্ত ১৬ মে অনুষ্ঠিত হয় পিএইচপি এক্সপার্টস্ ইয়াহূ গ্রুপের সেমিনার - PHP Seminar 2009: Current Development Trends. সেমিনার শুরু হওয়ার কথা ৩টা ১০মিনিটে ব্রাক ইউনির্ভাসিটির সেমিনার হলে হলেও কয়েক মিনিট দেরিতে হাসিন হায়দার অনুষ্ঠান শুরু করেন। এই সেমিনারে প্রায় ১৬০‍‍‌‌-১৭০ জন উপস্থিত হয়, যারা হল বাংলাদেশের পিএইচপি এক্সপার্ট ও বিগিনার । কিভাবে পিএইচপি প্রোগ্রামার হিসাবে নিজেকে গড়ে তুলতে হবে এটাই মূল বিষয়। এই সেমিনারে যেসব বিষয়ে আলোচনা করা হয়েছে তার অধিকাংশই ব্যবহার করি অথবা জানি । তারপরেও, এইরকম সফল ও সুন্দর সেমিনার আয়োজন করায় আয়োজকদের জানায় আন্তরিক অভিনন্দন।

Data Filtering in PHP

 

Data Filtering extension filters data by either validating or sanitizing it. This is especially useful when the data source contains unknown (or foreign) data, like user supplied input. For example, this data may come from an HTML form.
There are two main types of filtering: validation and sanitization.
Validation is used to validate or check if the data meets certain qualifications. For example, passing in FILTER_VALIDATE_EMAIL will determine if the data is a valid email address, but will not change the data itself.
Sanitization will sanitize the data, so it may alter it by removing undesired characters. For example, passing in FILTER_SANITIZE_EMAIL will remove characters that are inappropriate for an email address to contain. That said, it does not validate the data.

Dynamic Date Time Dropdown List

The menu is generated using PHP and all values default to current values for year, month, day, and hour. These values can be set along with the name and id of each element.

Cheat Sheets Collection of PHP, MySQL, Javascript, CSS, JQuery, HTML

PHP Cheat Sheet

The PHP cheat sheet is a one-page reference sheet, listing date format arguments, regular expression syntax and common functions and designed to make life a bit easier. A description of what is on the cheat sheet follows, or if you are impatient, you can go straight to the full size PHP cheat sheet.

1.      PHP cheat sheet -1 or PHP Cheat Sheet (V1)

Learn PHP from Scratch

PHP stands for Hypertext Preprocessor. While other languages, like Javascript, function on the client-side, your PHP code will execute on the server level. It works seamlessly with our HTML. Furthermore, your PHP can be embedded within your HTML and vice versa. The important thing to remember is that, no matter how complicated your PHP is, it will ultimately be output as simple HTML.

HTML is 100% static. PHP is a scripting language that is perfect for developing dynamic web pages and applications.
You must have the following installed on your computer in order to begin.