Web

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.

 

Upgrading From Drupal 5 To Drupal 6

Before you get started I recommend that you take a look at Greg's upgrade video at http://www.masteringdrupal.com/screencast/upgrading-to-drupal-6. I watched it and it definitely helped with the process.

The upgrade process took me two hours. If you are using Drupal for a single user blog site, and are making minimum use of CCK and Views then I think that you should be able to execute the upgrade in the same amount of time it took me. If you're running a community site with a lot of content, a few custom content types with associated views then you're probably looking at three to four hours.

Drupal 6 AHAH forms: Menu callback of the #ahah['path'] is missing its name attribute

The form elements in the menu callback of the #ahah['path'] is missing its name attribute. You can use the following function to solve:

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.