
Making PHP Variables Available to Your JS
If you have ever written a plugin that uses any form of Javascript, you will probably have come across the problem of passing configuration options from PHP to Javascript. Take an image slider plugin, such as Soliloquy for example: most likely there is a settings page of some kind that lets the user set the transition type, the timing, the number of slides, etc. These are all options that need to be available in the JS for the slider.
php variables to js wordpress js from php add js variables from php
Getting Started with Redis in PHP
Redis created by Salvatore Sanfilippo is an open source, in-memory data structure server with advanced key-value cache and store, often referred to as a NoSQL database. It is also referred to as a data structure server, since it can store strings, hashes, lists, sets, sorted sets, and more. The essence of a key-value store is the ability to store some data, called a value inside a key. This data can later be retrieved only if we know the exact key used to store it.
redis php redis nosql in-memory data structure key-value cache redis server windows
PHP Yazılan Kodun Performansını Test Etmek
Php ile kod yazarken bilindiği üzre birçok performans unsuru bulunmaktadır. Aslında performans konusu başlı başına bir yazı dizisi olarak ele alınmalı ancak biz burada bir Web programcı olarak kendi yazdığımız kodun performansını nasıl test edebiliriz buna bakalım.
php performans php kod süresi php kod yanıt süresi
PHP – Best Practises
A comprehensive list of the best php / web development practises that every developer should know about. There are a number of good practises that you should follow when developing web applications in PHP. Most of these are extremely easy to pick up and some of them will even apply to web application development in general.
php php comprehensive list php best practises php good practises
Create a RESTful Services API in PHP
Are you working with multiple devices like iPhone, Android and Web then take a look at this post that explains you how to develop a RESTful API in PHP. Representational state transfer (REST) is a software system for distributing the data to different kind of applications. The web service system produce status code response in JSON or XML format.
php rest api rest architecture restful api restful web service create restful service
Writing a RESTful Web Service with Slim
Slim is well-suited for creating simple rest web services in php and comes with some components like router, request, response, and view. Through a series of articles here at SitePoint you’ve learned about what is REST and how it works. In this article, I’d like to show you how to create a RESTful web service using Slim, a PHP micro-framework inspired by Sinatra, a Ruby framework. It’s well-suited for creating simple RESTful web services and comes with some minimal components like Router, Request, Response, and View. It’s very simple, and is easy to understand.
php slim slim framework rest api rest architecture restful api restful web service
How to create REST API using PHP, Slim and MySQL
Tutorial about creating a simple rest api for mobile applications using php, mysql and slim framework. An of example of android task manager application is demonstrated. This tutorial gives enough knowledge about building a REST API for very beginners. As this tutorial seems lengthy, I had divided it into 2 parts. In the 1st part we learn fundamental concepts of REST and do the required setup. In the 2nd part building actual API (writing PHP & MySQL code) is covered.
php slim slim framework rest api rest architecture restful api restful web service
Php Konferansı'nda paylaşılan sunumlar
Geçtiğimiz Cumartesi günü düzenlenen ve medya sponsoru olduğumuz PHP Konferansı etkinliği, web yazılım sektörünü bir araya getirdi. 400 kişinin katıldığı etkinlikte yalnızca PHP üzerine değil, ilişkisel veritabanları, Doctrine, Nginx, MongoDB ve Solr gibi genel olarak tüm web geliştiricileri ilgilendiren konular üzerinde de konuşuldu.
php php konferansi phpkonf php sunumları büyük veri yazılım etkinliği
Basit ama Hızlı Uygulamalarda Pratik Çözüm: Slim Framework
Slim özünde bir micro framework’tür. Basit ama hızlı uygulamalar ve/veya API servisleri yazacaksanız büyük çatılı kütüphanelerle uğraşmak durumunda değilsiniz. Bsit bir kod navigasyonu istediniz noktada Slim micro-framework devreye giriyor. Kolaylığından ötürü çok beğeneceğinizi umuyorum.
slim slim framework micro framework php kütüphanesi api servisi
PDO Kullanımı (PHP Data Objects)
PHP Veri Nesneleri (PDO) eklentisi, veritabanı işlemlerini gerçekleştirmek için sunulan bir arayüzdür. Php’nin v5.5 sürümünden itibaren mysql_ şeklinde tanımladığımız fonksiyonlara destek vermemesi nedeniyle, veritabanı işlemlerini PDO veya Mysqli ile yapmak zorundayız. Bizlere sunulan bu iki alternatifin birbirine göre avantajları olduğu durumlar bulunmaktadır. Bunlar;
PDO PDO Fonksiyonları PHP Veri Nesneleri prepared statements SQL Injection
Image to text converter using php gd library
This is simple script to convert image to text. User will upload image, set few options and then this image to text converter will print image using characters provided by the user. Wide range of php GD library functions make it more easier to make this image to text converter.
image to text php gd library php string image php karakter resim resmi yazıyla çizme
Php ile PDF Belgelerini Okumak
Bu konuda kullanılabilinecek birden fazla yöntem bulunmakta. PHP'nin zaten hali hazırda pdf ve word belgeleri (doc,docx) okumak için birçok kütüphanesi var, bunları da kullanabilirsiniz. Ama ben işin içinden basitçe sıyrılabileceğiniz yöntemi anlatacağım.
php pdf okuma pdf okuma word okuma php reading pdf file shell_exec
Laravel Örnek Uygulama
Laravel Framework'e yeni başlayanlar için basit bir soru/cevap uygulaması hazırladım. Bol bol Türkçe yorum satırları ekleyerek hangi kodu niçin yazdığımızı belirtmeye çalıştım.
lavarel laravel framework laravel php laravel örnek
Php mysql trigger kullanımı ders 2
Php ile mysql veritabanı işlemlerinde trigger (tetikleyici) nasıl kullanılır ve ne işe yarar?
php trigger mysql trigger trigger kullanımı
Php mysql transaction
This php mysql transaction tutorial shows you how to handle mysql transactions in php to ensure data integrity of database.
mysql transaction php transaction