
Search In
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
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('
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
If you want to debug a large amount of data. You need to create a Log file with the following piece of code.
$file = fopen ( "testfile.txt" , "a+" );
fwrite ( $file , serialize ( print_r ( $_POST , true ) ) );
fopen(): It is inbuilt function which
In odoo-9 first we have to install odoo website builder module after this, lets first create an empty file and named it style.less and place it in a folder called less in static folder. The following rules will style our Ser
Hello Guys,
If you are looking to set Breadcrumb in zend framework. Please follow the below code for the same::
1)Open your controller file and function in which you want to add breadcrumb.
/* BreadCrumb starts Here */
$breadcrumbArray = Array("Ho
Hello Readers if you want to convert your string into binary using PHP then you can use the code syntax as below:-
$value = unpack('H*', "This string is converting into binary");
echo base_convert($value[1], 16, 2);
Output:-
010100110111010001100
Hello Readers, If you want to implode the array keys from multi-dimensional array then now PHP 5.5 offers you much easier way to do this.
Lets see the example as below:-
Array
(
[0] => Array
(
[studenID] => 54874
In openerp Dispatch PostgreSQL notifications to the relevant polling threads to Bus.loop listen imbus on db PostgreSQL and create the listen imbus and check the condition dispatch to local threads and greenlets in channel.
Example
use this code in yo
Hello Readers ,
If we want to insert more records at the end of an array then their is function called array_push() that we can use.
Example :
If we have an existing array array("red","green"); and we want to insert two more values at the end of t
