If else condition is the first syntax that a programmer learn.
Generally we use like below condition:
if(condition)
{
do some task
}
else
{
do some task.
}
but you can use a short hand way, that will reduce your line of codes.
(condition) ? task1 : task2
ie. if condition is ok the it will do task1 otherwise it will do task2
example:
<?php
$signal = '0';
$signal == '1' ? $message = 'I am right' : $message = 'I am wrong';
echo $message;
?>
Just copy and paste this code to a file and run in server. you will understand it.
Change $signal variable, then it will do second task.
Thursday, 18 April 2013
Monday, 15 April 2013
how off magic_quotes in php server
In php server you may need to On or Off different functions. Here has discussed how you can off
magic_quotes_gpc
magic_quotes_runtime
and magic_quotes_sybase
you can off this functions by different ways. At first you can ask server authority to off it by changing this function On or Off.
or
you can write on .htaccess file
or
you can create a php.ini file and upload it to in your server root.
i have tried all of the above ways to Off magic_quotes_gpc , but could not.
Then i got a solution which is to create a php5.ini ( not php.ini ) and write the following codes to the file.
magic_quotes_gpc = Off;
magic_quotes_runtime = Off;
magic_quotes_sybase = Off;
Then i see it is Off now.
It is used for joomla 3 version articles edit for some servers.
magic_quotes_gpc
magic_quotes_runtime
and magic_quotes_sybase
you can off this functions by different ways. At first you can ask server authority to off it by changing this function On or Off.
or
you can write on .htaccess file
or
you can create a php.ini file and upload it to in your server root.
i have tried all of the above ways to Off magic_quotes_gpc , but could not.
Then i got a solution which is to create a php5.ini ( not php.ini ) and write the following codes to the file.
magic_quotes_gpc = Off;
magic_quotes_runtime = Off;
magic_quotes_sybase = Off;
Then i see it is Off now.
It is used for joomla 3 version articles edit for some servers.
Wednesday, 10 April 2013
আমরা বাংলাদেশিরা কিভাবে IT তে কারিয়ার গড়বো
আস-সালামু আলাইকুম,
আমি আজ আপনাদের ইনফর্মেশন টেকনোলজি তে কিভাবে কারিয়ার গড়বেন সেই বেপারে কিছু কথা বলতে চাই।
১। আই টি একটা সম্মানজনক পেশা । আপনাকে এখানে একাগ্রতার সাথে কাজ করতে হবে
আমি আজ আপনাদের ইনফর্মেশন টেকনোলজি তে কিভাবে কারিয়ার গড়বেন সেই বেপারে কিছু কথা বলতে চাই।
১। আই টি একটা সম্মানজনক পেশা । আপনাকে এখানে একাগ্রতার সাথে কাজ করতে হবে
Friday, 5 April 2013
Learn php coding
If you want to make you a php developer you will have to follow the following instructions:
how you will learn coding
Today I will discuss about how you can learn coding.
Each person in web development want to know about better coding system.
And in every profession, all wants to earn by other side works.
Programing can be a better option for side incomes.
Each person in web development want to know about better coding system.
And in every profession, all wants to earn by other side works.
Programing can be a better option for side incomes.
Subscribe to:
Comments (Atom)