• 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

Check for PDO Results, If None Display Message, If Yes then Loop Through

Update Order custom Field value with WooCommerce REST API

Split comma separated value from table column into rows using mysql?

Laravel/docker-compose/redis - Class 'Redis' not found

How to increase the PHP upload limits [duplicate]

Detect if PHP session exists

how to remove %20 in the url in php

How can i update or reset my password without entering email field in laravel-8?

How can I get data from PHP to Android TextView?

Backend cannot be reached after Typo3 login screen

Jquery DataTables: Data not displaying in table via Ajax

PHP web3 ERC20 token function call

php mysql + create a friend request system

MySQL - Connection failed: No route to host

How to map the two arrays with a duplicate value?

About Contact Privacy policy Terms and conditions