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

Search In

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 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 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 create log file in PHP

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

How to Add Styles in odoo-9

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

How to use BREADCRUMB in Zend Framework

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

How to convert string to binary and binary to string using PHP

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

How to implode multi-dimensional array keys using PHP v5.5

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

How to Dispatch postgres notifications to the relevant polling threads and greenlets in openerp

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

How to push more values in an array in PHP

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

1 333 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: