The document discusses web hosting and domain names. It defines terms like web space, hosting, web servers, and domain names. It describes different options for hosting a website, including renting shared server space, leasing a dedicated server, free hosting, and self-hosting. The document also introduces FTP (File Transfer Protocol) and demonstrates how to use the FTP client WinSCP to transfer files to a remote web server.
Infrastructure as Code - Getting Started, Concepts & ToolsLior Kamrat
?
This document provides an overview of infrastructure as code concepts and tools. It begins with an introduction to infrastructure as code and how it allows infrastructure to be provisioned and maintained through code. It then covers different categories of tools including ad-hoc scripts, configuration management tools, server templating tools, and provisioning tools. Examples like Packer and Terraform are demonstrated. The document also discusses concepts like mutable vs immutable infrastructure and imperative vs declarative code. It profiles major infrastructure as code players and frameworks. Finally it touches on best practices and the benefits of infrastructure as code.
1. The document provides an introduction to WordPress presented by Harshad Mane. It covers what WordPress is, its history and usage statistics, how to install WordPress, and how to customize WordPress sites using themes, plugins, and other features.
2. The presentation explains how to set up WordPress locally, create posts and pages, use categories and tags, and manage comments and users.
3. In closing, it discusses potential career paths in web development, design, and teaching using WordPress skills.
This document discusses API management. It defines an API as an application programming interface that exposes data and services to customers and partners through lightweight interfaces. It notes that API management provides business value by enabling organizations to expose their data and services in a secure and controlled manner. The document also covers API documentation standards, best practices for API design, common API types, API security, and provides examples of API management architectures.
Ibm mq with c# sending and receiving messagesShreesha Rao
?
In this Article i have explained how we can connect to IBM MQ from C# and send and receive messages.I also introduced rfhUtil which can be used to view and place messages on IBM MQ remote queue.
This document discusses DevOps maturity models and provides an example roadmap for improving DevOps practices. It begins by introducing the speaker and their background. It then presents a DevOps maturity model consisting of five levels related to planning, development, testing, release/deployment, and monitoring practices. The document analyzes where a particular organization currently falls in the model and identifies priorities and new practices that could help them progress to the next level, such as increasing test coverage and automating deployments. The overall goal is to incrementally improve processes through a 70/30 split of effort between business value and technical improvements.
This document discusses infrastructure as code and the HashiCorp ecosystem. Infrastructure as code allows users to define and provision infrastructure through code rather than manual configuration. It can be used to launch, create, change, and downscale infrastructure based on configuration files. Tools like Terraform allow showing what changes will occur before applying them through files like main.tf and variables.tf. Terraform is part of the broader HashiCorp ecosystem of tools.
I used this presentation to my first Basic WordPress Presentation last February 05, 2017. To learn more about WordPress, I will share some more tips on my blog at http://www.realbloggingadvice.com
This document discusses an OCR-based speech synthesis system developed using LabVIEW 2013. The system has two main parts: optical character recognition and text-to-speech conversion. It uses a digital camera to capture images, performs preprocessing like binarization, then matches characters to a template for recognition. The recognized text is converted to speech using text-to-speech synthesis for audio output. The system achieves 75-80% accuracy but could be improved with support for more fonts and font sizes.
The People Model & Cloud Transformation - Transformation Day Public Sector Lo...Amazon Web Services
?
The People Model & Cloud Transformation
A successful cloud-transformation journey incorporates three pillars: people, process, and technology. Far too often, organizations focus on process improvements and technology implementation, but ignore the human aspect. Many leaders acknowledge that the first two are easy to modify, while influencing culture is more difficult. This session covers best-practice methods meant to empower customers to address this challenge. Learn about roles and responsibilities germane to the transition and post-cloud adoption phase. Assess your organizations gaps among the requisite skills and competencies. Build effective training models. And shape an effective DevOps culture.
Speaker:
Thomas Blood, Enterprise Evangelist, Amazon Web Services.
Matt Callanan takes the 15 chapters of the famous "Continuous Delivery" book by Jez Humble & Dave Farey and distills it down into 1 hour of convincing arguments, walking through the pieces involved to make it happen including cultural challenges, automated testing, automated deployment & deployment pipelines. Not sure how to get started with DevOps? Finding it hard to convince colleagues & managers that CD is the way forward? Matt has used this presentation to help facilitate enterprise-wide adoption of Continuous Delivery. ݺߣs from a presentation given at DevOps Brisbane March 2014.
Effective administration of IBM Integration Bus - Sanjay NagchowdhuryKaren Broughton-Mabbitt
?
The latest fix pack releases of IBM Integration Bus (IIB) include many features that make administering the product easier. Discover the right ways to effectively administer and operate the product, and learn tips and tricks that should be in every IBM Integration Bus administrator's toolbox. We will also demonstrate the ability to consolidate information from multiple IIB installations using the ELK stack and LogMet on IBM Bluemix.
Kubernetes ecosystem is seeing adoption across the industry and is on the path to becoming the de-facto orchestration platform on modern cloud service delivery. Kubernetes not only provides primitives for deploying run microservices in the cloud but goes one step further and helps you define interactions and lifecycle for your APIs. The Ingress API in Kubernetes allows you to expose your microservice to the outside world and define routing policies for your north-south traffic (or traffic coming into your virtual data center).
We invite Harry Bagdi, Sr. Cloud to discuss in-depth about the design and why of Ingress resource, the benefits of using Ingress to manage your API lifecycle using CI/CD pipelines, and how you can accomplish Ingress using a popular open-source solution, Kong. Kongs Ingress Controller implements authentication, load-balancing, traffic throttling, transformations, caching, metrics, and logging across Kubernetes clusters.
Front End Best Practices: A Selection of Best Practices, Tips, Tricks & Good Advice For Todays Front End Development. Practices mentioned in this presentation range from basic principles to more advanced tools and techniques. By Holger Bartel for WomenWhoCodeHK 23/07/2014
Introduction to Hybrid Application DevelopmentDotitude
?
This document provides an overview of hybrid mobile apps. It begins by discussing global smartphone market shares and mobile app development approaches. Native apps are explained as binary files that can access all device APIs but require platform-specific SDKs. Hybrid apps combine native development with web technologies, allowing a web app to run within a native wrapper that provides a bridge to device APIs. The document outlines the skills, frameworks, architectures, advantages and disadvantages of hybrid apps, and discusses challenges around UI design and cross-platform compilation.
Lessons Learned Building a Connector Using Kafka Connect (Katherine Stanley &...confluent
?
While many companies are embracing Apache Kafka as their core event streaming platform they may still have events they want to unlock in other systems. Kafka Connect provides a common API for developers to do just that and the number of open-source connectors available is growing rapidly. The IBM MQ sink and source connectors allow you to flow messages between your Apache Kafka cluster and your IBM MQ queues. In this session we will share our lessons learned and top tips for building a Kafka Connect connector. We'll explain how a connector is structured, how the framework calls it and some of the things to consider when providing configuration options. The more Kafka Connect connectors the community creates the better, as it will enable everyone to unlock the events in their existing systems.
A multimedia production team consists of a project manager, subject matter expert, graphic artist, audio-video technician, instructional designer, and programmer. The project manager defines the project scope and coordinates the team. The subject matter expert provides content and researches the topic. The graphic artist develops visual elements while the audio-video technician records and edits sound and video. The instructional designer determines the educational approach and the programmer codes and combines all elements into the final multimedia program.
Web development involves both front-end development and back-end development. Front-end development includes using languages like HTML, CSS, and Bootstrap to define the layout and visual design of websites. Back-end development involves using languages like SQL and PHP to manage the database and functional aspects of websites that users do not see. Key front-end technologies are HTML for content, CSS for styling, and Bootstrap for responsive design. Key back-end technologies are SQL for databases and PHP for server-side scripting.
Microservices, Containers and Docker
This document provides an overview of microservices, containers, and Docker. It begins by defining microservices as an architectural style where applications are composed of independent, interchangeable components. It discusses benefits of the microservices style such as independent deployability, efficient scaling, and design autonomy. The document then introduces containers as a way to package applications and their dependencies to run uniformly across various environments. It compares containers to virtual machines. Finally, it describes Docker as an open source tool that automates deployment of applications into containers, providing portability and management of containers. The document concludes by discussing the need for container orchestration at scale.
Running PostgreSQL in Kubernetes: from day 0 to day 2 with CloudNativePG - Do...DoKC
?
Link: https://youtu.be/cegd3Exg05w
https://go.dok.community/slack
https://dok.community/
Gabriele Bartolini - Vice President/CTO of Cloud Native and Kubernetes, EDB
ABSTRACT OF THE TALK
Imagine this: you have a virtual infrastructure based on Kubernetes, made up of virtual data centers, possibly spread across multiple Kubernetes clusters and regions. Your infrastructure could even be hosted on premises or on different cloud service providers. Infrastructure as Code is a requirement. Youve been tasked to run Postgres databases, alongside your applications.
The good news is that you can leverage a fully open source stack with Kubernetes, PostgreSQL and the CloudNativePG operator, and deploy your Postgres database in the same way you deploy applications.
Join me in this webinar to discover the key role that you have to make this succeed, starting from day 0 through day 2 operations.
Ill share some examples and best practices for running Postgres databases in Kubernetes, before peeking at the new features we are developing for the months to come.
CMP315_Optimizing Network Performance for Amazon EC2 InstancesAmazon Web Services
?
Many customers are using Amazon EC2 instances to run applications with high performance networking requirements. In this session, we provide an overview of Amazon EC2 network performance featuressuch as enhanced networking, ENA, and placement groupsand discuss how we are innovating on behalf of our customers to improve networking performance in a scalable and cost-effective manner. We share best practices and performance tips for getting the best networking performance out of your Amazon EC2 instances.
WebSphere Application Server Liberty Profile and DockerDavid Currie
?
Docker is a tool that allows applications to be run in isolated containers. The document discusses Docker and its popularity, benefits including consistency and speed. It provides an overview of Docker concepts like images, containers and registries. It then discusses IBM's involvement with Docker including contributions to projects and products that support Docker. Finally, it covers using the WebSphere Application Server Liberty Profile with Docker, including building and running Docker images for Liberty.
WampServer es un entorno de desarrollo web para Windows que permite crear aplicaciones web con Apache, PHP y MySQL de forma local en una PC sin necesidad de configurar un servidor real. WampServer instala de manera automtica todo lo necesario como Apache, PHP y MySQL para probar pginas web localmente antes de publicarlas en un servidor real e incluye herramientas para administrar los servicios y verificar errores.
Introduction To Flutter - Widgets.pptxromannjoroge
?
A simple introduction to Flutter, what widgets are and how they are used to create apps. It is simple enough to be understood without previous experience making mobile apps
This document discusses infrastructure as code and the HashiCorp ecosystem. Infrastructure as code allows users to define and provision infrastructure through code rather than manual configuration. It can be used to launch, create, change, and downscale infrastructure based on configuration files. Tools like Terraform allow showing what changes will occur before applying them through files like main.tf and variables.tf. Terraform is part of the broader HashiCorp ecosystem of tools.
I used this presentation to my first Basic WordPress Presentation last February 05, 2017. To learn more about WordPress, I will share some more tips on my blog at http://www.realbloggingadvice.com
This document discusses an OCR-based speech synthesis system developed using LabVIEW 2013. The system has two main parts: optical character recognition and text-to-speech conversion. It uses a digital camera to capture images, performs preprocessing like binarization, then matches characters to a template for recognition. The recognized text is converted to speech using text-to-speech synthesis for audio output. The system achieves 75-80% accuracy but could be improved with support for more fonts and font sizes.
The People Model & Cloud Transformation - Transformation Day Public Sector Lo...Amazon Web Services
?
The People Model & Cloud Transformation
A successful cloud-transformation journey incorporates three pillars: people, process, and technology. Far too often, organizations focus on process improvements and technology implementation, but ignore the human aspect. Many leaders acknowledge that the first two are easy to modify, while influencing culture is more difficult. This session covers best-practice methods meant to empower customers to address this challenge. Learn about roles and responsibilities germane to the transition and post-cloud adoption phase. Assess your organizations gaps among the requisite skills and competencies. Build effective training models. And shape an effective DevOps culture.
Speaker:
Thomas Blood, Enterprise Evangelist, Amazon Web Services.
Matt Callanan takes the 15 chapters of the famous "Continuous Delivery" book by Jez Humble & Dave Farey and distills it down into 1 hour of convincing arguments, walking through the pieces involved to make it happen including cultural challenges, automated testing, automated deployment & deployment pipelines. Not sure how to get started with DevOps? Finding it hard to convince colleagues & managers that CD is the way forward? Matt has used this presentation to help facilitate enterprise-wide adoption of Continuous Delivery. ݺߣs from a presentation given at DevOps Brisbane March 2014.
Effective administration of IBM Integration Bus - Sanjay NagchowdhuryKaren Broughton-Mabbitt
?
The latest fix pack releases of IBM Integration Bus (IIB) include many features that make administering the product easier. Discover the right ways to effectively administer and operate the product, and learn tips and tricks that should be in every IBM Integration Bus administrator's toolbox. We will also demonstrate the ability to consolidate information from multiple IIB installations using the ELK stack and LogMet on IBM Bluemix.
Kubernetes ecosystem is seeing adoption across the industry and is on the path to becoming the de-facto orchestration platform on modern cloud service delivery. Kubernetes not only provides primitives for deploying run microservices in the cloud but goes one step further and helps you define interactions and lifecycle for your APIs. The Ingress API in Kubernetes allows you to expose your microservice to the outside world and define routing policies for your north-south traffic (or traffic coming into your virtual data center).
We invite Harry Bagdi, Sr. Cloud to discuss in-depth about the design and why of Ingress resource, the benefits of using Ingress to manage your API lifecycle using CI/CD pipelines, and how you can accomplish Ingress using a popular open-source solution, Kong. Kongs Ingress Controller implements authentication, load-balancing, traffic throttling, transformations, caching, metrics, and logging across Kubernetes clusters.
Front End Best Practices: A Selection of Best Practices, Tips, Tricks & Good Advice For Todays Front End Development. Practices mentioned in this presentation range from basic principles to more advanced tools and techniques. By Holger Bartel for WomenWhoCodeHK 23/07/2014
Introduction to Hybrid Application DevelopmentDotitude
?
This document provides an overview of hybrid mobile apps. It begins by discussing global smartphone market shares and mobile app development approaches. Native apps are explained as binary files that can access all device APIs but require platform-specific SDKs. Hybrid apps combine native development with web technologies, allowing a web app to run within a native wrapper that provides a bridge to device APIs. The document outlines the skills, frameworks, architectures, advantages and disadvantages of hybrid apps, and discusses challenges around UI design and cross-platform compilation.
Lessons Learned Building a Connector Using Kafka Connect (Katherine Stanley &...confluent
?
While many companies are embracing Apache Kafka as their core event streaming platform they may still have events they want to unlock in other systems. Kafka Connect provides a common API for developers to do just that and the number of open-source connectors available is growing rapidly. The IBM MQ sink and source connectors allow you to flow messages between your Apache Kafka cluster and your IBM MQ queues. In this session we will share our lessons learned and top tips for building a Kafka Connect connector. We'll explain how a connector is structured, how the framework calls it and some of the things to consider when providing configuration options. The more Kafka Connect connectors the community creates the better, as it will enable everyone to unlock the events in their existing systems.
A multimedia production team consists of a project manager, subject matter expert, graphic artist, audio-video technician, instructional designer, and programmer. The project manager defines the project scope and coordinates the team. The subject matter expert provides content and researches the topic. The graphic artist develops visual elements while the audio-video technician records and edits sound and video. The instructional designer determines the educational approach and the programmer codes and combines all elements into the final multimedia program.
Web development involves both front-end development and back-end development. Front-end development includes using languages like HTML, CSS, and Bootstrap to define the layout and visual design of websites. Back-end development involves using languages like SQL and PHP to manage the database and functional aspects of websites that users do not see. Key front-end technologies are HTML for content, CSS for styling, and Bootstrap for responsive design. Key back-end technologies are SQL for databases and PHP for server-side scripting.
Microservices, Containers and Docker
This document provides an overview of microservices, containers, and Docker. It begins by defining microservices as an architectural style where applications are composed of independent, interchangeable components. It discusses benefits of the microservices style such as independent deployability, efficient scaling, and design autonomy. The document then introduces containers as a way to package applications and their dependencies to run uniformly across various environments. It compares containers to virtual machines. Finally, it describes Docker as an open source tool that automates deployment of applications into containers, providing portability and management of containers. The document concludes by discussing the need for container orchestration at scale.
Running PostgreSQL in Kubernetes: from day 0 to day 2 with CloudNativePG - Do...DoKC
?
Link: https://youtu.be/cegd3Exg05w
https://go.dok.community/slack
https://dok.community/
Gabriele Bartolini - Vice President/CTO of Cloud Native and Kubernetes, EDB
ABSTRACT OF THE TALK
Imagine this: you have a virtual infrastructure based on Kubernetes, made up of virtual data centers, possibly spread across multiple Kubernetes clusters and regions. Your infrastructure could even be hosted on premises or on different cloud service providers. Infrastructure as Code is a requirement. Youve been tasked to run Postgres databases, alongside your applications.
The good news is that you can leverage a fully open source stack with Kubernetes, PostgreSQL and the CloudNativePG operator, and deploy your Postgres database in the same way you deploy applications.
Join me in this webinar to discover the key role that you have to make this succeed, starting from day 0 through day 2 operations.
Ill share some examples and best practices for running Postgres databases in Kubernetes, before peeking at the new features we are developing for the months to come.
CMP315_Optimizing Network Performance for Amazon EC2 InstancesAmazon Web Services
?
Many customers are using Amazon EC2 instances to run applications with high performance networking requirements. In this session, we provide an overview of Amazon EC2 network performance featuressuch as enhanced networking, ENA, and placement groupsand discuss how we are innovating on behalf of our customers to improve networking performance in a scalable and cost-effective manner. We share best practices and performance tips for getting the best networking performance out of your Amazon EC2 instances.
WebSphere Application Server Liberty Profile and DockerDavid Currie
?
Docker is a tool that allows applications to be run in isolated containers. The document discusses Docker and its popularity, benefits including consistency and speed. It provides an overview of Docker concepts like images, containers and registries. It then discusses IBM's involvement with Docker including contributions to projects and products that support Docker. Finally, it covers using the WebSphere Application Server Liberty Profile with Docker, including building and running Docker images for Liberty.
WampServer es un entorno de desarrollo web para Windows que permite crear aplicaciones web con Apache, PHP y MySQL de forma local en una PC sin necesidad de configurar un servidor real. WampServer instala de manera automtica todo lo necesario como Apache, PHP y MySQL para probar pginas web localmente antes de publicarlas en un servidor real e incluye herramientas para administrar los servicios y verificar errores.
Introduction To Flutter - Widgets.pptxromannjoroge
?
A simple introduction to Flutter, what widgets are and how they are used to create apps. It is simple enough to be understood without previous experience making mobile apps
Eski?ehir Osmangazi ?niversitesi, E?itim Fakltesi, Bilgisayar ve ??retim Teknolojileri E?itimi B?lmnde a??lan Web Tasar?m ders notlar?. CSS - Sunum Bile?enleri
Eski?ehir Osmangazi ?niversitesi, E?itim Fakltesi, Bilgisayar ve ??retim Teknolojileri E?itimi B?lmnde a??lan Web Tasar?m ders notlar?. Web Sitesi Geli?tirme Ad?mlar?
Eski?ehir Osmangazi ?niversitesi, E?itim Fakltesi, Bilgisayar ve ??retim Teknolojileri E?itimi B?lmnde a??lan Web Tasar?m ders notlar?. impress.js Framework
Eski?ehir Osmangazi ?niversitesi, Mhendislik-Mimarl?k Fakltesi, Bilgisayar Mhendisli?i, Advanced Programming. Face Detection In Java by Using OpenCV L?b.
Kod Ak?? Kontrol - D?ngler, Fonksiyonlarcmkandemir
?
Eski?ehir Osmangazi ?niversitesi, E?itim Fakltesi, Bilgisayar ve ??retim Teknolojileri E?itimi B?lmnde a??lan ?nternet Tabanl? Programlama ders notlar?.D?ngler ve fonksiyonlar
PHP ve MySQL Ba?lant?s? - Temel ??lemlercmkandemir
?
Eski?ehir Osmangazi ?niversitesi, E?itim Fakltesi, Bilgisayar ve ??retim Teknolojileri E?itimi B?lmnde a??lan ?nternet Tabanl? Programlama ders notlar?.PHP ve MySQL Ba?lant?s?, Temel Veritaban? ??lemleri; SELECT, INSERT, DELETE, UPDATE
Eski?ehir Osmangazi ?niversitesi, E?itim Fakltesi, Bilgisayar ve ??retim Teknolojileri E?itimi B?lmnde a??lan Web Tasar?m ders notlar?. CSS - Sunum Bile?enleri
Eski?ehir Osmangazi ?niversitesi, E?itim Fakltesi, Bilgisayar ve ??retim Teknolojileri E?itimi B?lmnde a??lan ?nternet Tabanl? Programlama ders notlar?.PHP ve Kullan?c? Giri?lerinin ??lenmesi
HTML Formlar C Kullan?c? Giri?lerinin ??lenmesi
GET ve POST farkl?l?klar
Sihirli cURL
Escaping user data
Dosyalar
Chapter 2-8085 Microprocessor Architecture and Microcomputer Systemscmkandemir
?
The 8085 microprocessor uses three separate busses - the address bus, data bus, and control bus - to perform operations. The 16-bit address bus allows the 8085 to access up to 64K memory locations. The 8-bit data bus transfers data between the microprocessor and memory or I/O devices in 8-bit chunks. The control bus consists of individual control signals that coordinate operations. Memory is organized into chips that are selected using address lines and chip select signals. This allows the microprocessor to access multiple memory chips within its 64K address range.
Chapter 1-Microprocessors, Microcomputers, and Assembly Languagecmkandemir
?
This document provides an introduction to microprocessors and assembly language programming. It discusses the basic components and organization of a microprocessor-based system including the microprocessor, memory, and input/output. It also covers number systems including decimal, binary, and hexadecimal. The document provides examples of simple programs and discusses the instruction set and machine language of microprocessors. The overall purpose is to introduce foundational concepts about microprocessor architecture and assembly language programming.
Eski?ehir Osmangazi ?niversitesi, E?itim Fakltesi, Bilgisayar ve ??retim Teknolojileri E?itimi B?lmnde a??lan Web Tasar?m ders notlar?. CSS - Genel Bak??
Eski?ehir Osmangazi ?niversitesi, E?itim Fakltesi, Bilgisayar ve ??retim Teknolojileri E?itimi B?lmnde a??lan ?nternet Tabanl? Programlama ders notlar?. Temel HTML Etiketleri - Tablo, Form
The document discusses Vaadin's data model and JPAContainer component. It describes how the data model uses properties, items, and containers to bind user interface components to data. JPAContainer allows connecting Vaadin components directly to persistent model objects stored in a database using the Java Persistence API. It provides examples of using JPAContainer with a sample address book application to display and edit data from a database in tables and forms.
1. 12.10.2015
1
?nternetTabanl?
Programlama
PHPTemelleri
Yrd.Do?.Dr.Celal Murat KANDEM?R
ESOG? C E?itim Fakltesi - B?TE
twitter.com/cmkandemir
GerekliYaz?l?mlar
ApacheWeb Sunucusu (http://www.apache.org)
MySQL (Veritaban?) (http:// www.mysql.com)
PhpmyAdmin (http://www.phpmyadmin.net/)
A??k kaynak kod
Windows ve Linux
Kurulumun bilgileri ilgili sitelerde mevcuttur.
Toplu olarak kurulan paketler de mevcuttur
? Xamp:
http://ogrenmeyonetimsistemleri.blogspot.com.tr/2014/03/xampp-
gelistirme-ortamnn-kurulumu.html
? WampServer
2. 12.10.2015
2
GerekliYaz?l?mlar
Programlama IDE / Metin Edit?r
NotePad++
http://notepad-plus-plus.org/download/v6.6.9.html
Visual Studio Code
https://code.visualstudio.com/
Sublimetext
http://www.sublimetext.com/2
Aptana Studio 3
http://www.aptana.com/products/studio3/download
PHPTemelleri
Yrd.Do?.Dr.Celal Murat KANDEM?R
ESOG? C E?itim Fakltesi - B?TE
twitter.com/cmkandemir
3. 12.10.2015
3
??erik
1. PHP, ve Web Sunucu nedir?
2. Web uygulamalar?
3. S?z dizimi (Syntax)
4. De?i?kenler, de?i?ken tipleri
5. Temel fonksiyonlar
6. Baz? ?n tan?ml? de?i?kenler
7. Strings escaping
8. PHP C avantajlar ve dezavantajlar
PHP, ve Web Sunucu
Nedir?
4. 12.10.2015
4
PHP Nedir?
"PHP Hypertext Preprocessor"
Betik (Scripting) dili
Dinamik i?erik retimi C ?rne?in HTML ve JSON
Veri taban? etkile?imi (CRUDs)
Sunucu taraf?nda veya komut sat?r?ndan ?al??t?rma
HTML i?ine g?mlebilir.
?lk kez 1995te Apache i?in modl ama?l? tan?t?ld?
A??k kaynak, C dilinde yaz?ld?
Perl ve C benzeri
HTML Nas?l ?al???r
1. URL girilir
2. IP bulunur
3. Ana sayfa iste?i
4. ?stek al?n?r
5. Sayfa getirilir
6. Sayfa g?nderilir
7. Sayfa g?rntlenir
8
5. 12.10.2015
5
PHP Nas?l ?al???r
1. URL girilir
2. IP bulunur
3. Ana sayfa iste?i
4. ?stek al?n?r
5. Sayfa getirilir
6. PHP i?eriyor mu?
7. PHP i?lenir
8. SQL i?lenir (varsa)
9. Veri al?n?r
10. Sayfa g?nderilir
11. Sayfa g?rntlenir
9
Web sunucu nedir?
HTTP istekleri ve geri d?ndrlecek cevaplar?n
i?lenmesinden sorumlu bilgisayar program?d?r.
HTTP istekleri (request) al?r
?stenen kaynaklar? bulur veya bir program ?al??t?r?r
Bulunan kaynaklar? ??kt? olarak taray?c?ya g?nderir
En bilinen web sunucular Apache, IIS, NodeJS, nginx,
ligHttpd ve di?erleri
"LAMP" C Linux, Apache, MySQL, PHP/Perl C bir web
sunucu zerinde en ?ok kullan?lan yaz?l?mlard?r
6. 12.10.2015
6
Web uygulamalar?
Web uygulamalar?
Web zerinden eri?ilebilen uygulamalara
verilen isimdir
Web sunucular zerinde ?al???r
Genellikle PHP, Perl, Java, ASP gibi sunucu
taraf?nda ?al??an diller ile geli?tirilirler
Dinamik olarak retilmi? i?eriklere sahiptirler
?o?unlukla ? katmanl? mimaridedirler (three-
tier) - web server, uygulama ve veritaban?
Sadece web sayfalar?ndan olu?mazlar
7. 12.10.2015
7
Web uygulamalar?- ?rnekler
Gmail
SkyDrive / Live.com
Google Office / Windows Office
Prezi
Creately
ݺߣshare
Web taray?c?lar? zerinden eri?ilerek kullan?lan
neredeyse her?ey ?
13
Merhaba PHP
PHP kodlar? genellikle ".php" uzant?s?na sahip
dosyalarda bulunurlar.
Yap?land?r?labilirler
PHP kodlar? HTML belge i?ine
yerle?tirilebilirler
<html>
<head><title>Merhaba dnya sayfas?</title></head>
<body>
Merhaba HTML!
</body>
</html>
8. 12.10.2015
8
<html>
<head><title>Merhaba dnya sayfas?</title></head>
<body>
<?php print ("Merhaba PHP!"); ?>
</body>
</html>
Merhaba PHP
PHP kodlar? genellikle ".php" uzant?s?na sahip
dosyalarda bulunurlar.
Yap?land?r?labilirler
PHP kodlar? HTML belge i?ine
yerle?tirilebilirler
<html>
<head><title>Merhaba dnya sayfas?</title></head>
<body>
<?php print ("Merhaba PHP!"); ?>
</body>
</html>
Merhaba PHP
PHP kodlar? genellikle ".php" uzant?s?na sahip
dosyalarda bulunurlar.
Yap?land?r?labilirler
PHP kodlar? HTML belge i?ine
yerle?tirilebilirler
<?php PHP kod
ba?lang?c? ?> PHP kod sonu
9. 12.10.2015
9
Merhaba PHP C Dosyay? nereye
koyaca??z?
webroot klas?r
XAMMP C htdocs/
WAMP C www/
Webroot klas?r yap?land?r?labilir
http://localhost/tam/klas?r/yolu/dosyaAdi.php
Adresi zerinden eri?ilebilir
17
S?z Dizimi - Syntax
10. 12.10.2015
10
PHP S?z Dizimi
PHP kodlar? <?php ile ba?lar ve ?> ile biter
Sunucu yap?land?rmas?na ba?l? olarak <? ?le de
ba?layabilir (K?sa stil) C ama bu k?t bir uygulamad?r!
XML a??s?ndan <?php - ?> b?lm " i?lem y?nergesi"
(processing instruction) olarak adland?r?l?r
PHP, Perl s?z dizimini takip eder
Basitle?tirilmi?
Yap?sal (Art?k ayn? zamanda OOP)
C ve Java benzeri
PHP S?z Dizimi
PHP Betik bir veya daha fazla ifadeden olu?ur
?fadeler PHP Preprocessor taraf?ndan tek tek
ele al?n?r
Herbir ifade noktal? virgl ";" ile sonlan?r
?lk beti?imiz tek ifadeden olu?maktad?r:
print fonksiyonunun ?a?r?lmas?
<?php
print (?Merhaba PHP!"); // bu bir ifade
?>
13. 12.10.2015
13
PHP De?i?kenler
PHPdeki tm de?i?kenler (sabit de?i?kenler hari?)
dolar $ i?areti ile ba?lar(Perl stili)
PHP "type-less" bir dildir
De?i?kenler bir tr ile ba?lant?l? de?ildir. farkl? trde
de?i?ken de?erleri saklanabilir
int a = 5; ?eklinde tan?mlanmaz, $a = 5; yazmak
yeterlidir
Herbir de?i?ken de?erin atand??? ilk yerde
tan?mlanm?? olur
Tr belirtme hatalar?n?n ?nne ge?ilir!
De?erin tr de?i?ken trn belirler
<?php // $output string de?i?keni tan?mla
$output = "<div>Merhaba PHP!</div>";
print $output;
?>
PHP De?i?kenTrleri
Say?sal (real veya integer)
Ondal?k ayra? noktad?r ".", virgl ", " de?il
Boolean (true veya false)
PHP de?i?kenleri true,TRUE,True veya false,
FALSE, False olarak tan?mlan?r
Empty string, s?f?r ve baz? di?er de?erler
dolayl? olarak boolean ifadeler i?inde "false"
de?erine ?evrilirler
boolean uygun kullan?lmad???nda probleme
sebep olabilir
14. 12.10.2015
14
PHP Strings
String de?erler
String de?erler tek veya ?ift t?rnak i?inde
yaz?labilir
Ba?lang?? ve biti? t?rmaklar? ayn? olmal?
<?
$output1 = "Merhaba PHP!";
$output2 = 'Tekrar merhaba!';
?>
PHP Diziler
Arrayler kmelenmi? de?erlerdir C her bir
de?er array i?inde bir anahtara (key, index)
atanm??t?r.
PHP ili?kisel dizileri destekler C key/index
nmerik, string veya di?er say?sal trlerde
olabilir
Key/index dizi boyunca tekil olmal?d?r
Dizideki de?erler farkl? trlerde olabilir
PHP diziler dinamiktir C yarat?l?rken belli bir
byklkte tan?mlanmalar? gerekmez
15. 12.10.2015
15
PHP Arrays
PHP diziler array anahtar kelimesi ile tan?mlan?r
"=>" anlam? "i?aret etmek" tir
E?er anahtarlar belirtilmediyse otomatik olarak s?f?rdan
ba?layan de?erler verilir
<?
// basit dizi
$arr = array ("a", "b", 7);
// bu ifade $arr[0], $arr[1] ve $arr[2]
// s?ras?yla "a", "b" ve 7 de?erlerini i?eren
// diziyi retir
$arr2 = array ("one" => 1, "two" => 2);
// bu ifade $arr2["one"] ve $arr2["two"]
// s?ras?yla 1 ve 2 de?erlerini i?eren
// diziyi retir
?>
PHP Diziler
Dizi de?erlerine "[" ve "]" aras?ndaki
anahtar(key)/index de?eri ile eri?ilir
Diziler esnektirler ve de?er trleri ve anahtar
kar???k olabilir
<?
$arr = array ("a", "b", 7, "bir" => 1, "iki" =>
2, "diger" => array(1,2,3));
// anahtar/index trleri kar???k:
// $arr[0] => "a" ve $arr["bir"] => 1
// $arr["diger"] yine bir dizidir
// $arr["diger"][0]" => 1
print $arr["diger"][2]; // taray?c? ??kt?s? 3
?>
16. 12.10.2015
16
PHP NULL De?er
PHPde null olarak isimlendirilen ?zel bir de?er
vard?r ve de?i?kenin bir de?er almad???n?
g?sterir
Herhangi bir trde verinin olmad???n?
g?stermek i?in kullan?l?r
Tan?ms?z "undefined" de?i?kenden farkl?d?r!
Bo? string veya s?f?r de?erinden farkl?d?r
<?
$null_variable = null;
?>
PHP De?i?kenTrleri
PHP "object" de?i?ken trn destekler
"Resource" (kaynak ) de?i?ken tr
Resouce tr, de?i?ken de?erinin bir kaynak
veya veriye referans de?eri tutar.
?rnek C a??k bir dosya, veri taban? ba?lant?s?, v.b
17. 12.10.2015
17
PHPTemel ?fadeler
PHP ifadeleri C dilindekine benzer
"=" C de?i?kenlere de?er atamak i?in kullan?l?r
+, -, /, *, % - aritmetik i?lemler
==, <=, >=, !=, <, > - kar??la?t?rma
+=, -=, /=, *=, %=, ++, --,C ?nek/sonek
operat?rler
( and ) C ifade birle?tirme i?in
&, |, >>, <<, ^, ~ - bit bazl? operat?rler
PHP Basic Expressions 2
String operat?rleri
"." (period) C string birle?tirme
===, !== kar??la?t?rma
==, != operat?rlerinden farkl?d?r.
"10"==10 i?leminde sonu? true iken "10"===10
kar??la?t?rmas?nda sonu? false
Tam kar??la?t?rma C $a === $b :
TRUE $a de?i?ken de?eri $b de?i?ken de?erine e?itse,
ve ayn? de?i?ken trndeyseler.
$a = $b = $c = 7;
18. 12.10.2015
18
PHP Sabitler
PHPde sabit de?i?kenler define fonksiyonu
ile tan?mlan?rlar
De?eri de?i?tirilemez
$ sembol ile ba?lamaz
Herhangi bir de?eri tutabilir
<?
define ('DEGISKEN_ADI', 123);
// DEGISKEN_ADI, 123 de?erini al?r
print DEGISKEN_ADI; // 123 taray?c? ??kt?s? verir
?>
Temel Fonksiyonlar
19. 12.10.2015
19
Baz?Temel Fonksiyonlar
print fonksiyonunu g?rdk
echo fonksiyonu da print ile ayn?d?r. print
fonksiyonu bir de?er geri d?ndrr.
print_r(array) C key/index de?erleri ile
birlikte dizi de?erleri taray?c?ya yazar.
phpinfo() C sunucu, PHP ayarlar?, kurulu
modller v.b bir sayfa olu?turur
<?
echo "123"; // taray?c?da 123 ??kt?s? verir
?>
?nTan?ml? De?i?kenler
20. 12.10.2015
20
?nTan?ml? De?i?kenler
PHP ?n tan?ml? bir?ok de?i?ken ve sabit sa?lar
__FILE__, __LINE__, __FUNCTION__,
__METHOD__, __CLASS__ - hata ay?klama
bilgisi i?erirler.
PHP_VERSION, PHP_OS, PHP_EOL,
DIRECTORY_SEPARATOR, PHP_INT_SIZE
ve di?erleri farkl? platform deste?i sa?layan
uygulamalar?n kolayl?kla geli?tirilmesine
yard?mc? olurlar.
?nTan?ml? De?i?kenler
$_SERVER C dizi de?i?kendir, web sunucusuna ait
bilgileri tutar C headers, klas?r yollar? ve script yerleri
DOCUMENT_ROOT C web sunucu yap?land?rmas?nda
sitenin k?k klas?rdr
SERVER_ADDRESS, SERVER_NAME,
SERVER_SOFTWARE, SERVER_PROTOCOL
REMOTE_ADDR, REMOTE_HOST, REMOTE_PORT
PHP_AUTH_USER, PHP_AUTH_PW,
PHP_AUTH_DIGEST
Ve di?erleri
21. 12.10.2015
21
?nTan?ml? De?i?kenler
$_GET, $_POST, $_COOKIE dizileri
URLden gelen g?nderim g?nderi ve cookie
bilgilerini tutar
$_FILES ?ok par?al? g?nderim istekleri
zerinden ba?ar?l? yklenen dosya bilgilerini
tutan dizidir.array holds information for
successfully
$_SESSION bir oturumda saklanan de?i?ken
de?erlerini tutan dizidir.
De?i?ken de?i?kenleri
PHP $$ s?zdizimini destekler- de?i?ken
de?erinden de?i?ken tan?mlan?r
<?
$str1 = 'test';
$test = 'abc';
echo $$str1; // abc taray?c? ??kt?s? retir
?>
22. 12.10.2015
22
Strings Escaping
Strings escaping
Stringlerdeki ?zel karakterlerden ters b?l i?areti ile
ka??l?r (C stili)
?zel karakterler:
n C yeni sat?r (new line) (10 in ASCII)
r C carriage return (13 in ASCII)
t C yatay tab
v C d?ey tab
- ters b?l
$ - dollar i?areti
" C ?ift t?rnak
$str1 = "bu bir"PHP"";
23. 12.10.2015
23
String escaping
Tek t?rnak stringlerde de kullan?m ayn?
?ekildedir
Fark " yerine ' kullan?lmas?d?r
Tek veya ?ift t?rnak kullan?lan stringlerde ters
b?l di?er tm karakterlerin ?nnde taray?c?da
g?rntlenecektir!
$str1 = 'Arnold dedi ki: "I'll be back"';
Stringler i?indeki de?i?kenler
?ift t?rnak i?indeki stringler biraz daha fazla
?zellik sa?larlar:
?ift t?rnak i?inde kullan?lan de?i?kenlerin
ta??d?klar? de?erler kullan?l?r.
Diziler hakk?nda not:
$saying = "I'll be back!";
$str1 = "Arnold dedi ki: $saying";
// ??kt?s?:
// Arnold dedi ki: I'll be back!
$sayings = array ('arni' => "I'll be back!");
$str1 = "Arnold dedi ki: ${sayings['arni']}";
24. 12.10.2015
24
Heredoc (Yorumlu Metin) s?zdizimi
Stringler (dizgeler) heredoc s?zdizimi ile ba?lar ('<<<')
Bir yorumlu metin daima <<< karakterleri ile
ba?lar ve hemen ard?ndan bir betimleyici ve bir
sat?rsonu karakteri gelir.
Uzun HTML kodlar?n? echo veya print ile
yazmaya g?re daha kullan??l?d?r.
$str = <<<EOT
Buras? string i?erik
EOT;
Heredoc (Yorumlu Metin) s?zdizimi
As?l string (dizge) sat?rsonu karakterinden sonra
yer al?r.
Dizgenin sonunu belirtmek zere dizgenin
sonuna, ba?taki betimleyici konur.
Kapan?? betimleyicisinin dizgeden sonraki
sat?r?n ba??nda olmas? gerekir.
Betimleyici PHP'deki di?er isimlere uygulanan
kurallara uygun olmal?d?r: Sadece bir harfle
veya alt ?izgi imi ile ba?layabilir; sadece
harfler, rakamlar veya alt ?izgi imleri i?erebilir.
25. 12.10.2015
25
Avantaj ve
Dezavantajlar
Avantajlar ve Dezavantajlar
Avantajlar
??renmesi kolayd?r, a??k kaynak, ?oklu
platform ve veri taban? deste?i, eklentiler,
topluluk ve ticari destekli.
En h?zl? dillerden biri varsay?lmaktad?r
Dezavantajlar
Gev?ek bir s?z dizimiC risk ho?g?rl, zay?f hata
yakalama, zay?f OOP (srm 6 ?ncesi olduk?a
fazla eksik bulunuyor!)