Validating email using javascript


Example

Advertisements

Rename a file if same already exists


While uploading a file you may want to check if a file already exists in target directory then create a new file instead of replacing and rename new file with an incremental no. Example some_dir/some_file.png already exists, and you try to upload a file with name some_file.png again, so it should be uploaded as some_dir/some_file1.png … Continue reading Rename a file if same already exists

Integrating stripe using stripe.js and stripe-php library


Stripe is getting popular as a payment processor because of its simplicity and PCI compliance. To meet with PCI standards your website shouldn't send or store any credit card information to any where other than stripe, so to send credit card information directly to stripe we use stripejs. How it works Stripe.js collects credit card … Continue reading Integrating stripe using stripe.js and stripe-php library