How to Learn Server side Programming

what does server side programming and how server side programming works. server-side programming and programs that are compiled and installed pdf free download
Dr.LeonBurns Profile Pic
Dr.LeonBurns,New Zealand,Researcher
Published Date:21-07-2017
Your Website URL(Optional)
Comment
Introduction to Server-Side Programming Charles Liu Overview 1.  Basics of HTTP 2.  PHP syntax 3.  Server-side programming 4.  Connecting to MySQL Request to a Static Site Server: 1.  Homepage lookup 2.  Send as HTTP Response HTTP Request: GET www.xkcd.com You (client) Web server IP: 72.26.203.99 HTTP Response: web content (HTML file) Client-side code: HTML, CSS, JavaScript Request to a Dynamic Site   The server must respond dynamically if it needs to provide different client-side code depending on the situation   Date and time   Specifics of the user’s request   Database contents – forms and authentication Server: HTTP Request: GET www.facebook.com 1.  Look up things that go on user’s profile, such as wall posts and friends " caches, database lookups You (client) Web server 2.  Generate client-side code containing these HTTP Response: web content (HTML file) things Client-side code: HTML, CSS, JavaScript 3.  Send as HTTP response (dynamically generated by server) sample http interactions › GET, data passed as query stringsample http interactions › POST, data passed as form datahttp methods all idempotent safe PUT DELETE GET HEAD POST › safe: no side effects › idempotent: doing twice same as once PUT vs POST: PUT typically names a created object › › PUT & DELETE used in APIs but not usually in browsersresponse status codes categories of codes › 1xx informational › 2xx success › 3xx redirect › 4xx client error › 5xx server error most common codes › 200 OK (request succeeded, resource is in message body) › 404 Not Found (resource doesn’t exist) › 303 See Other (resource moved, see location header) › 500 Server Error (web app implementer messed up)Server-side options   PHP – today  Easy to start, lower learning curve  Potentially messy as your site grows   Javascript frameworks – node.js and Meteor.js   Ruby on Rails   Other options – Django, Flask, Sinatra… PHP Introduction and Basic Syntax Charles Liu What is PHP?   PHP = PHP: Hypertext Preprocessor   Server-side scripting language that may be embedded into HTML   Ultimate goal is to get PHP files to generate client- side code  must end up with HTML, CSS, JavaScript, other client- side code Side-by-side PHP File: Output: resulting HTML html html head head title PHP Introduction /title title PHP Introduction /title /head /head body body This is HTML br / This is HTML br / ?php This is PHP br //body echo 'This is PHP br /'; /html ? /body /html A closer look html head title PHP Introduction /title /head body This is HTML br / ?php echo 'This is PHP br /'; // prints to screen / Here's a longer comment that spans multiple lines. / ?   PHP tags: ?php and ? /body /html   The echo command   Single line comment ( // )   Multiple line comment (/ and /) Viewing PHP files   PHP files executed on the web server   Save .php files in subdirectory of web server   /var/www/ on many Linux configurations   web_scripts directory of your user directory on Athena   Make call to web server via domain name (google.com), IP address (72.26.203.99), or localhost if on your own computer PHP Syntax: Variables, Operators, and Strings Charles Liu Variables   Store values for future reference, use variable name to refer to the value stored in it x = 42; // store the value 42 in x echo x; // prints 42 echo x+1; // prints 43, value of x is still 42 x = ‘hello’ // type of x can change   PHP is a loosely-typed language  Do not need to declare the type of a variable  Type can change throughout the program Operators   Arithmetic operators  +, -, , /, % (modulus – remainder after division)   Logical AND (&&), OR (), NOT ()   Assignment operators (=)   Shorthand for assignment operators:  x += y equivalent to x = x + y  Also works with subtraction, multiplication, division, modulus, and string concatenation == versus ===   Two “equality” operators  == tests for “equality” in value but not necessarily type  === tests for “identity” in value AND type   == ignores the distinction between:  Integers, floating point numbers, and strings containing the same numerical value  Nonzero numbers and boolean TRUE  Zero and boolean FALSE  Empty string, the string ‘0’ and boolean FALSE  Any other non-empty string and boolean TRUE Strings   Concatenation of strings – the . operator a = ‘hello’; b = ‘world’; echo a . ‘ ‘ . b . ‘’; // prints ‘hello world’   String functions  Length: strlen()  Position of substring: strpos()  More on string functions: http://www.w3schools.com/php/php_ref_string.asp PHP Syntax: Conditional and Looping Statements Charles Liu

Advise: Why You Wasting Money in Costly SEO Tools, Use World's Best Free SEO Tool Ubersuggest.