Today in my new PC I was just using a PHP application and I saw a error that says the following error: PHP Warning: strtotime(): It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function Then I just figured out that I installed the latest version of PHP manually and in my php.ini file I didn’t tell PHP about my default timezone. Now I just open my …
Blog Posts
Sometimes it is pretty important for programmers to auto deploy the latest Git repositories to update the local source codes in development server or live project server. After researching lots of easy and complex resource I found some pretty easy techniques to do that things in few minutes. Let’s see how we can accomplish this task which can save our big time. *in this article I used Ubuntu 12.04 Server OS and GitHub as code hosting platforms * Step 01 …
Simple we use to show a image by writing the following code: <img src ="thelocationofyourimage.jpg" > Now if sometime you need to change this src attribute value by jQuery. Then you need to put down the following code. $('img[src^="thelocationofyourimage.jpg"]').each(function() { $(this).attr('src', $(this).attr('src').replace("thelocationofyourimage.jpg", "UpdatedLocationOfTheImage.jpg")); }); Try it by yourself. Thanks in advance.
There are 8 types of Data in PHP programming language. Here is the list of all Data Types: #####Scalar Type 1. Boolean 2. Integar 3. Float 4. String Compound Type 5. Array 6. Object Special Type 7. Resource 8. Null Now please see the following code and run yourself on your computer to see the result and I hope you will easily understand about what is PHP Data Type and the usage of this. <?php /** * @Author: G. M. …
To open all text file of Ubuntu with the most popular text editor Sublime Text 2 you just need to do the following job. First type the following command : sudo sublime /usr/share/applications/defaults.list Make sure that you can run Sublime Text by typing just sublime command in terminal. If this hasn’t configured yet. Just see this post about how to install Sublime Text 2, make luncher and make command in terminal. Now after opening the defaults.list file just replace all …