
Search In
Hello reader's!
On a given number format if you want it to be customize like a figure with separated by (,)
like 128,347,556. By using a function and in the function we will Preg Match the string with every hundreds and thousands
You can use the co
On the execution of exe file you must need the property of header like Description, Type and Disposition
For making the strict/force download of a file in PHP you have to use the code below:-
<?php
$FileName = "http://abc.com/example.exe
Using the PHP will give you several benefit to use code what you want.
And taking the number from any given string can be by diffrent - diffrent methods
lets se the example below:-
$myString = "I have 8 apples";
preg_match("|\d+|", $s, $myString);
v
POST is a common mode of sending or passing the values from one page to another, But on getting what exact is inside the post PHP will offer you the code syntax.
Consider the example below:-
We will get the body part froma POST request or can say a
Hello Reader's! If you having a set of given url's you need just the title of them, then you can use the PHP code below to extract title
<?php
function TitleURL($YourURL){
$str = file_get_contents($YourURL);
if(strlen($str)>0){
$str
Hello Reader's! If you are looking for an HTML 5 validation which tell user the size of an file the code will help you:-
In HTML fileL
<input type="file" id="file" />
In the JS file
//binds to onchange event of your input field
$('#file').
Hello Reader's!
If you are new to wordpress and looking for the method to insert form data into table, Then you can use the Wordpress liberary code to do that:-
<?php
global $wpdb;
$wpdb->insert('wp_custom_user',
array(
Hello Reader's. If you have given a date and you just need to add or subtract number of days from it then you can use the code below:-
var SubDays = 15;
$.datepicker.formatDate('yy/mm/dd', new Date() - SubDays) ;
Or you can also calculate as follo
Current URL is : http://mysite.com/MyController/view/page1
but if you want something like :http://mysite.com/MyController/page1
means you want to hide action name from URL.
Then go to app/config/routes.php and type the below code.
Router::connect
JQuery uses a built-in .removeClass() method to remove a class.
For example:
<div class="demo">Hello </div>
To remove demo class in JQuery you need to execute the following code:
<script>
$( "div" ).click(function() {
$( t
