PHP Server-Side or Client-Side ?

There are client-side methods and server-side methods to accomplish many tasks. When sending e-mail, for example, the client-side way is to open up the mail client software a preaddressed blank e-mail massage after the user clicks a MAILTO link. The server-side method is to make the user fill out a form, and the content are formatted as an email that  is sent via a simple Mail Transfer protocol (SMTP) server (which very well could be send machine that the server-side script is executing on). You can also choose between client method and server methods of browser-sniffing, from validation, drop-down lists, and arithmetic calculation, Sometimes you see subtle but meaningful differences in functionality (server-side drop-downs can be assembled dynamically, client-side cannot) but not always.
How to choose? know your audience. Server-side methods are generally a bit slower at runtime because of the extra transits they must make, but they don't assume anything about your visitor's browser capabilities and take less developer time to maintain.  

PHP Variable type

The main way to store information in the middle of a php program is by using a variable. Hear are the most important things to know about variable in php.

  1. All variable in php are denoted with a leading dollar sing ($).
  2. The value of the variable a value of its most recent assignment.
  3. Variable of assigned with the operator with the variable on the left hand side and the expression to be evaluated on the right.
  4. Variable can but do not read to be declare before assignment.
  5. Variable in php do not have intrinsic type - a variable dos not know in advance whether it will be used to stared a number of a string of characters.
  6. Variable use define they are assigned have default value.
  7. PHP does a good job of aromatically converting types from one to another when necessary.
  8. PHP  variable are perl-link' PHP has a total of eight data types which we use to construct our variables.
  • Integers : Are whole number without a decimal point like '123456' .
  • Doubles : Are Flouting point numbers like '3.14156.499'. 
  • Null : Is a special type that only has one value 'Null'.
  • Boolean : Have only two possible value other true or false 'True/False'. 
  • String : Are sequence of character like php support strings operators.
  • Array :  Are name and index collection of other value. 
  • Object : An object is a data type which store data and information 
  • Resource : The special resource type is not a actual data type. It is storing of a reference to function and resource external to php.

Basic knowledge of PHP language

  •  PHP Code :- For Partiality and Compatibility always use the long form.
          Long farm :         <?php    Expn     ?>
          Sort form  :         <?          Expn      ?>
         Sort form equivalent of <?    echo    ?>
         Note : No closing semicolon (;) is required <?     Expn      ?>

  • Semicolon (;) :- All statement must end in a semicolon (;) otherwise, errors will be generated. If the error doesn't make sense. You probably are missing a semicolon somewhere !
  • Single Quotations ('') :-  Single quotes content inside single quotes is evaluated literally.Therefore $ string actually means ( dollar sing ) string and does not represent the variables.
Example:
$string = ' single quoted ';
echo '$string';


  • Double Quotes ("") :- Double Quoted variable inside double quotes are evaluated for their value.
Example: 
$string=" double quoted ";
echo "$string";

  • Backslash ( Escape character ):- Escapes character that sold be evaluated literally when inside inside double quotation.
Example:  
$string= "double quoted";
echo "\$string is set as $string";
$string is set as double quotes.

  • Special characters :-  
Backslash (\)
Question mark (?)
Single Quotes (')
Double Quotes (")
Doller sing ($)

  • Comments :-  Single line for everything to the right of the double forward slashes.
// This is a comments.
Multiple line opening and closing tags.
/*        This is a comment      */  


  • Formatting Character :-
\n - New Line
\r - Carriage return
\t - Tab
\b - Back space


  • Define (name, value [$Boolean]):-
$Boolean - [optional] default: false, case-sensitive define a Constance a set value that is assigned globally making it variable to function and an argument.
Example:    
define('Hello', 'Hello word!' );
echo Hello;
Output: Hello word!

  • Function:- Function function name(argument) {},
function can be places only where in a page and will be available even with called above the actual function  being created as part of conditional statement has been evaluated.
Example: 
hello();
// Above the conditional statement this will cause an error 
if(0==0)
{
function hello()
{
echo 'Hello';
}
}

Fatal error: call to undefined function hell()
if(0==0)
{
function hello()
{
echo 'Hello ';
}
}

hello();
there();

function there()
{
echo 'there';
}


Hello there: function can have a argument (as above), argument passed to them, an default arguments with passed argument as optional. The argument names are use within that function as variable name.
Example:
function args($a,$b)
{
// has no default values request to input
echo "a=$a, b=$b";
}
args(1,2);
Output:
a=1,b=2


What is MySQL ?

MySQL (pronounced my Ess Q El) is a open source, SQL relational database management system (RDBMS) that is free for many users (more detail on that later). Early in its history, MySQL occasionally faced opposition because of its lack of support for sum core SQL constructs such as sub selects and foreign keys. Ultimately, however, MySQL found a broad, enthusiastic user base for its liberal licensing terms, perky performance, and ease of use. Its acceptance was aided in part by the wide variety of other technologies such as PHP, perl, Python, and the like that have encouraged its use through stable, well-documented modules and extensions.
Database are generally useful, perhaps the most consistently family of software products (the "killer Product") in modern computing. Like many computing products, both free and commercial, MySQL isn't a data base until you give it sum structure and form. You might think of this as the difference between a database and an RDBMS (that is, RDBMS plus user requirements equal a database).
There's lots more to say about MySQL, but then again, there's lots more space in which to say it.
 

What is php ?

PHP ( PHP : Hypertext Preprocessor ) is the open source, server-side, HTML-embedded web-scripting language that is compatible with all web servers (most notably Apache) PHP enables you to embed code fragments in normal HTML page - code that is interpreted as your pages are served up to users. PHP also serves as a glue language. making it easy to connect your web pages to server-side databases.



Python in AI: Getting Started with TensorFlow & PyTorch

  Artificial Intelligence (AI) is no longer just a buzzword. It powers recommendation systems, chatbots, self-driving cars, and more. At the...