• Categories
    • PHP
    • phpMyAdmin
    • PHPMailer
    • FFMpeg
    • PHPEXcel
    • PHPDoc
    • PHPUnit
    • CakePHP
    • CakePHP 2.0
    • Cake PHP 2.1
    • CakePHP Model
    • Facebook PHP SDK
    • composer-php
    • PHP 7
    • PHP GD
    All Categories
  • About

What is the difference between client-side and server-side programming?

javascriptphpclient-sideserver-side


PHP Snippet 1:

<script type="text/javascript">
    var foo = 'bar';
    <?php
        file_put_contents('foo.txt', ' + foo + ');
    ?>

    var baz = <?php echo 42; ?>;
    alert(baz);
</script>

PHP Snippet 2:

<script type="text/javascript">
    var foo = 'bar';

    var baz = 42;
    alert(baz);
</script>

Related Snippets

The difference when using if statement true === something() vs something() === true [duplicate]

str_word_count() function doesn't display Arabic language properly

Laravel Sanctum CSRF not authenticating

Filter WooCommerce related products by Polylang language

Results page in other window

How to use a PHP MVC Controller, one thats invoked by calling a URL, to call and execute more than one function? [duplicate]

php code to send checkbox form results to email

Display a product custom field only in WooCommerce Admin single orders

How to MODIFY a Google Docs document via API using search-and-replace?

Transpose and flatten two-dimensional indexed array where rows may not be of equal length

PHP returning an error message and false

cakephp save drag and drop list order to database

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource [duplicate]

PHP if in_array() how to get the key as well?

I need to link Google Sheet with my Laravel

About Contact Privacy policy Terms and conditions