Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

Search In

How to validate url in php

Hello Reader's! If you have a url given and you want to check weather it is valid or not. For example www.facebook.com is a valid but www.fcebook.com is invalid link. By using you can do this by Curl function, Lets see the example below:- function

Sessions in Javascript

Hi All, SessionStorage is something we can use to store values in session in Javascript. Below I will demonstrate how we can use it in our project. To set Session Value: var valueKey = "Value"; function setSession(value) { sessionStorage.

How to override method that generated the link to access the document in openerp

In Openerp first Override the method of function and then write the function in your own module and link the documents at of the classic form view and redirect the documents to the online quote if exists using this get_access function as show in giv

How to make PHP page as an image in return

Hello Reader's If you have to return a image from PHP page. then you can use the code as written below:- <?php // open the file in a binary mode $name = './img/ok.png'; $fp = fopen($name, 'rb'); // send the right headers header("Content-Type: im

How to get dates between two given dates in PHP

Hello Readers's if you want to get a recursive set of dates between two given dates, For example 10-12-2105 to 19-12-2015 there are 9 days all will have different dates. By using PHP you can get this as using the code below:- $startTime = strtotime

How to convert Image into base64 encoding using PHP

Hello Reader's! If you want to to encode an image with base64 then by using PHP you can do such. You can use the code as below:- This method is very simple and commonly used: function getDataURI($imagePath) { $finfo = new finfo(FILEINFO_MIME_T

How to fix HTTP header to UTF-8 using PHP

Hello Reader's If you want to set the HTTP header to UTF-8 then html will itself allows you to convert it. But if you want it to be wrap by using PHP then you can use the code below:- You just have to use header to modify the HTTP header: header('

How to get the text matter from a given PDF using PHP

Hello Reader's, If you want to write a program that takes the matter from a given PDF then now you can use many libraries. These are well function performing and easy to use. Lets see an example below:- Download the class.pdf2text.php from here Now

How to remove parent metabox in wordpress child theme

Hello Everyone, today I guide you to remove parent metabox in WordPress child theme. You can use remove_meta_box() function for removing parent theme metabox in WordPress child theme. Put the below code into your child theme functions.php file. Su

How to avoid automatically updating rails timestamp fields ?

If you have created_at and updated_at columns in the DB table. Rails will automatically set these values when you create and update a model object. There are chances that we have to update the columns without touching these columns. You can do this

1 188 408
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: