Sending email with attachment using php’s mail() function

All we know how to send email in php. If you are begineer in php than i must say php provides inbuilt mail function named as mail(). Using this function we can implement email functionality very easily just by passing four parameters (to, subject, message and headers). But what if you want to send an attachement with an email ? Today i came across a functionality where i need to send an email with attachment(Sending resume – doc file). Here i am sharing the function using which you can send an email with attachment using php's mail function.

Adding user to phpbb3 during registration from site

If you are looking for adding user into phpbb3 forum when any user register into your site, than i might help you as i faced the same situation. Today i faced this situation where my client needs the same user in phpbb forum(auto entry) whenever user register into website. This is an external script using which you can make entry into users table of phpbb3 forum. Also if you want to transfer all your site users into forum than also this will works.

Show special characters in javascript alert

Are you facing problem in showing special character in javascript alert ? Are you facing problem in showing language special characters in javascript alert ? I was working in danish, french and other international language and validating form using javascript alert. When value is not entered by visitor in form and we show alert message than for some special character, it shows question mark message in javascript alert.

Export MYSQL data into Excel/CSV via php

Today i came across a functionality where i need to Export the MYSQL data into CSV/Excel file via PHP function/script. There are such requirement where client needs to Export the MYSQL data (Order data,Member data,Newsletter emails etc) into Excel sheet or CSV file for future reference or need to send to other team for future work. You can give a button or link from where client can click on it and get a Excel or CSV file with all data from MYSQL database tables using(through) PHP.

Import CSV/Excel data into MYSQL database via PHP

Today i came across a functionality where i need to import the CSV/Excel file in to MYSQL database via PHP script. There is a special requirement from client where he can upload the CSV/Excel file in file upload field in HTML form and all data from CSV/Excel must import into MYSQL database table through PHP.

How to Upload Files to a WordPress Post/Page

All we know to upload images in wordpress blog but if you have a specification to upload other files ( which is not an image like PDF , Doc ) for page/post in your wordpress blog and didn't get from where to upload other files (PDF,DOC etc..) than here you will get the steps how to upload any files and give link in post of wordpress blog. Also after reading this article you will come to know,how to upload image if you are new to wordpress.

5 Useful plugins for Simple CMS wordpress website

If you are planning to develop simple CMS website in wordpress than here i am sharing some of plugins of wordpress which is very useful and must needed for any CMS website. Also these are the plugins which makes your development task easier as well.

Upload large(Big) files in PHP using .htaccess

I have seen many developers who find difficulties when working with larger files upload in php. When files which are too large in size, needs to be uploaded by php than you have to change the default file size either from php.ini OR httpd.conf OR using .htaccess. Default upload file size will be 2MB. If you are uploading file which is larger than 2MB size than here i am showing you the way to upload larger files using PHP.

How to send email from localhost(XAMPP or WAMP) in PHP in Windows

Whenever you works in local server (XAMPP or WAMP) for developing any email functionality in website, than you might be wonder that why email is not going from localhost(XAMPP or WAMP) in windows environment. Well, i faced the same situation and in this case i can help you. Below is the error you might get when working with email.

Javascript floating point precision(Sets the number of decimal points)

If you have a problem with floating point precision when you update any number in html using javascript/jquery than here i show you the way how to get number formatted with decimals (set 2 digits after decimal point in float number) from javascript. In PHP, you can simply use number_format() function and pass the parameter as you want for floating point precision(Sets the number of decimal points).