Lecturer CS malikhan@ciitlahore.edu.pk CSS Box Model CSS Box Model Border: - This defines the maximum area in which the element will be contained. We can make the border visible, invisible, define height and width etc. Padding: - This defines the spacing between border and element. Margin: - This defines the spacing between border and any neighbouring elements.
PHP PHP originally stood for Personal Home Page, it now stands for PHP: Hypertext Preprocessor PHP is a server-side scripting language designed for web development As of January 2013, PHP was installed on more than 240 million websites (39% of those sampled) and 2.1 million web servers
MySQL The SQL phrase stands for Structured Query Language MySQL is a relational database management system(RDBMS) MySQL is a popular choice of database for use in web applications MySQL can run on many system platforms e.g. Microsoft Windows, Linux etc. Some useful terminologies WAMP W windows A Apache M MySQL P PHP LAMP L Linux A Apache M MySQL P PHP
Some useful terminologies XAMP X windows, Linux etc. A Apache M MySQL P PHP HTTP Hypertext Transfer Protocol (HTTP) is a protocol used in networking. When you type any web address in your web browser, your browser acts as a client, and the computer having the requested information acts as a server. When client requests for any information from the server, it uses HTTP protocol to do so. The server responds back to the client after the request completes. The response comes in the form of web page which you see just after typing the web address and press Enter.
HTTPS Hypertext Transfer Protocol Secure (HTTPS) is a combination of two different protocols. It is more secure way to access the web. It is combination of Hypertext Transfer Protocol (HTTPS) and SSL/TLS (Security socket layer / Transport layer security) protocol. It is more secure way to sending request to server from a client, also the communication is purely encrypted which means no one can know what you are looking for. This kind of communication is used for accessing those websites where security is required. Banking websites, payment gateway, and corporate sector websites are some great examples where HTTPS protocols are used.
Static Web Site A static website is one that is written in HTML only. Each page is a separate document and there is no database that it draws on. What this means functionally is that the only way to edit the site is to go into each page and edit the HTML - So you would have to do it yourself using a web page editor such as FrontPage or Dreamweaver, or pay your web developer to make updates for you. Dynamic Web Site A dynamic website is created by web developers who are strong in ASP. Net, PHP, JAVA and more... This website pages contains data that is retrieved from certain database. Each time the viewer entering a page, the contents of that page is retrieved from the database. The administrator can change the content and images from admin panel. This is one that changes or customizes itself frequently and automatically.
GET Method in PHP GET - Requests data from a specified resource GET requests remain in the browser history GET requests can be bookmarked GET requests should never be used when dealing with sensitive data GET requests should be used only to retrieve data
POST Method in PHP POST - Submits data to be processed to a specified resource POST requests do not remain in the browser history POST requests cannot be bookmarked POST requests have no restrictions on data length
Open-Source Software (OSS) Open-Source Software (OSS) is computer software that is available in source code form: the source code and certain other rights normally reserved for copyright holders are provided under a software license that permits users to study, change, improve and at times also to distribute the software. Open Source Software means it is free software and no need to buy; we can use full functionalities from this software with certain Terms & Conditions. This license allows modifications and derived works, and allows us to be distributed under the same terms as the license of the original software. Adding JavaScript code inside html page We can add JavaScript code inside html head as follows; <head> <title> your title </title> <script language=JavaScript type=text/javascript> Var name = your name Alter (name); </script> <head>
Linking JavaScript file to an html
<head> <title> your title </title> <script src=myjavascript.js type=text/javascript ></script> <head>
PayPal Sandbox Step 1: Go to developer.PayPal.com Step 2: Click Sign up Now, and fill in your information to register. This creates a developer account. Step3: Once youre logged in to developer.paypal.com under your new developer account, click Create a preconfigured account. Step 4: Choose the Seller account type, then enter any other information youd like. Step 5: Once that account is created, go to the Test Accounts tab. This will list your sandbox account, showing the e-mail address login for it.
PayPal Sandbox Step 6: Click Enter Sandbox Test Site to be sent towww.sandbox.paypal.com (or you could just go there manually). Step 7: Sign in using your test account. Step 8: make sure the address of the site always says http://www.sandbox.paypal.com when you are logged in. Step 9: On the top tab bar, click Products & Services. Step 10: Click Get Paid on the bar below that.
PayPal Sandbox Step 11: Scroll down to find the Add Payment Buttons link and click it. Step 12: Click the Setting Up tab in the middle of the page. Step 13: Choose the style of button you want, and click it. Step 14: Make sure youre still on http://www.sandbox.paypal.comif not, go there and start over.
PayPal Sandbox Step 15: Follow the instructions on the screen to customize your button. In particular, under Step 3 you may want to enter a success and cancel URL to send users to, so they can get back to your app and so your app gets information about the purchase. Step 16: Click Create Button and youll be given the code for your button.