Bu Blogda Ara

21 Mayıs 2011 Cumartesi

Php Yenilikleri

PHP geliştirme ekibi derhal duyurmak istiyorum
PHP 5.3.6 kullanılabilirliği. Bu sürümde iyileştirmeye odaklanmaktadır
60'ın üzerinde hata düzeltmeleri ile PHP 5.3.x şube istikrar bazıları
güvenlik ilişkilidir.

Güvenlik Geliştirmeleri ve Düzeltmeler PHP 5.3.6 de:

fpm SAPI ile ayrıştırma fastcgi protokol * Enforce güvenlik.
* Sabit hata # 54247 (Phar biçimlendirme-string güvenlik açığı).
(CVE-2011-1153)
* Sabit hata # 54193 (shmop_read içinde tamsayı taşması ()).
(CVE-2011-1092)
* Sabit hata # 54055 (hassasiyeti için yüksek değerleri ile aşıldı tampon
ini ayar).
* Sabit hata # 54002 (exif olarak hazırlanmış etiket üzerinde kazasında). (CVE-2011-0708)
boş FL_UNCHANGED ile * Sabit hata # 53885 (ZipArchive segfault
arşiv). (CVE-2011-0421)

PHP 5.3.6 girin geliştirmeler şunlardır:

* Sürüm 3.7.4 ile birlikte SQLite3 Yükseltildi.
* PCRE sürümü 8.11 ile birlikte Yükseltildi.
* Temel ile proxy üzerinden HTTPS sitelerine bağlanmayı yeteneği eklendi
kimlik doğrulaması kullanarak stream_context / http / başlık / Proxy-Yetkilendirme.
* Backtrace fonksiyonları debug seçenekleri eklendi.
yönergede serialize_precision of * Değişik öndeğerinden
17-100.
* Sabit Hata # 53971 (isset () ve boş () üretmek görünüşte sahte
çalışma zamanı hatası).
* Sabit Hata değeri # 53958 (Kilitler olamaz 'kullanım' ortak değişkenler
ve referans olarak).
open_basedir içinde 5.3.4 tanıtıldı * Sabit hata # 53577 (Regresyon
bir eğik eğik çizgi) ile.
* 60 diğer hata düzeltmeleri Over.

Windows kullanıcıları: artık oluşturdu inşa sağlarsanız unutmayın lütfen
Visual Studio C + + 6 ile. Çok kaliteli bir tutmak mümkün değildir
ve güvenli Windows bu unmaintained derleyici kullanarak PHP kurmak.

Apache SAPI'lerden (php5_apache2_2.dll), emin olmak için, bir Visual kullanmanız
Studio C + + Apache 9 sürümü. Biz PHP olarak sağlanan inşa tavsiye
ApacheLounge tarafından. Başka SAPI (CLI, mod_fcgi, FastCGI üzerinden FastCGI için
IIS veya diğer FastCGI yetenekli sunucu) ile, her şey eskisi gibi çalışıyor.
Üçüncü taraf uzatma sağlayıcıları onların uzantıları yapmak için yeniden inşa etmesi,
onları uyumlu ve Visual Studio C + yüklenebilir 9 oluşturur ki
artık sağlamak.

Tüm PHP kullanıcıları PHP 5.2 serisi değil desteklenen olduğunu dikkat etmelisiniz
artık. Tüm kullanıcılar şiddetle PHP 5.3.6 yükseltmek için teşvik edilir.

PHP 5.3.6 değişikliklerin tam listesi için, bkz ChangeLog
. kaynak siteleri için lütfen
Bizim indirme sayfasına , Windows ziyaret
ikili bulunabilir.

Johannes Schlüter
PHP 5.3 Release Master

4 Eylül 2010 Cumartesi

adsense Features

AdSense volume graphics and the ability to perform the standard steps such as more detailed report provides a new interface features. Fill in the new interface will be in beta testing, we have abandoned our interest.
Sensitive categories now Japanese, Chinese, Polish and Portuguese for the block

In order to broaden access to sensitive categories (also known as a filter category) locks worldwide, officially announced this sensitive category, Japanese, Chinese, Polish and Portuguese are pleased to announce that block. As you know, this feature also in English, French, German, Spanish, Italian, Dutch, Arabic and Russian language test is to be done.

Blocking time sensitive categories, 11 specific categories announced to appear on your page you can prevent. If there is any one of the supported languages, regardless of what ad in this category, they will be blocked if your pages have been targeted.

Sensitive to block a category in your account, please create a login and Ad Review Center, "Profiles AdSense" I want to visit places. After you click change, 'you see the complete list of categories can be blocked. Moreover, the effects of these filters to help them understand, we, the income and exposure from the last 30 days in each category will receive shares.

For more information about how to prevent sensitive categories, we invite you to visit our help center.

AdSense email preferences: Get the most from your account and from Google

The new AdSense interface offers features such as more detailed reports with graphs and the ability to complete common actions in bulk. Fill out our interest form, and we may be able to include you in the beta test of the new interface.

AdSense email preferences: Get the most from your account and from Google

Monday, August 30, 2010 | 9:10:00 AM

Labels:

Have you checked your AdSense email preferences lately? If not, you may be missing out on important information and special offers without realizing. Take a minute to log in and update your email preferences under the ‘My Account’ tab.

Want to be invited to upcoming events like AdSense In Your City? Make sure you check the box next to Special Offers when you edit your email preferences so you can stay up-to-date with giveaways and other special programs in your area.

Want tips from the AdSense team for how to earn more with your AdSense account? Check Customized help and performance suggestions and/or Newsletters so we can offer personalized guidance to improve performance and maximize your revenue.

Want to help us improve AdSense by testing out features like the new AdSense interface? Check Google Market Research and you’ll be able to share your valuable feedback with us through surveys and beta tests.

Want promotions and key updates for other Google products that can help you grow your AdSense business? Check Information about other Google products and services which may be of interest to you so we can send you news and coupons based on your potential needs.

We want to help you earn more with tips and promotions, invite you to in-person events, and gather your feedback so we can continue to improve AdSense. So log in, update your preferences, and take advantage of the opportunities coming your way from the AdSense team!

29 Ağustos 2010 Pazar

PHP in Array Introduction

PHP Array Introduction

The array functions allow you to manipulate arrays.

PHP supports both simple and multi-dimensional arrays. There are also specific functions for populating arrays from database queries.


Installation

The array functions are part of the PHP core. There is no installation needed to use these functions.


PHP Array Functions

PHP: indicates the earliest version of PHP that supports the function.

Function Description PHP
array() Creates an array 3
array_change_key_case() Returns an array with all keys in lowercase or uppercase 4
array_chunk() Splits an array into chunks of arrays 4
array_combine() Creates an array by using one array for keys and another for its values 5
array_count_values() Returns an array with the number of occurrences for each value 4
array_diff() Compares array values, and returns the differences 4
array_diff_assoc() Compares array keys and values, and returns the differences 4
array_diff_key() Compares array keys, and returns the differences 5
array_diff_uassoc() Compares array keys and values, with an additional user-made function check, and returns the differences 5
array_diff_ukey() Compares array keys, with an additional user-made function check, and returns the differences 5
array_fill() Fills an array with values 4
array_filter() Filters elements of an array using a user-made function 4
array_flip() Exchanges all keys with their associated values in an array 4
array_intersect() Compares array values, and returns the matches 4
array_intersect_assoc() Compares array keys and values, and returns the matches 4
array_intersect_key() Compares array keys, and returns the matches 5
array_intersect_uassoc() Compares array keys and values, with an additional user-made function check, and returns the matches 5
array_intersect_ukey() Compares array keys, with an additional user-made function check, and returns the matches 5
array_key_exists() Checks if the specified key exists in the array 4
array_keys() Returns all the keys of an array 4
array_map() Sends each value of an array to a user-made function, which returns new values 4
array_merge() Merges one or more arrays into one array 4
array_merge_recursive() Merges one or more arrays into one array 4
array_multisort() Sorts multiple or multi-dimensional arrays 4
array_pad() Inserts a specified number of items, with a specified value, to an array 4
array_pop() Deletes the last element of an array 4
array_product() Calculates the product of the values in an array 5
array_push() Inserts one or more elements to the end of an array 4
array_rand() Returns one or more random keys from an array 4
array_reduce() Returns an array as a string, using a user-defined function 4
array_reverse() Returns an array in the reverse order 4
array_search() Searches an array for a given value and returns the key 4
array_shift() Removes the first element from an array, and returns the value of the removed element 4
array_slice() Returns selected parts of an array 4
array_splice() Removes and replaces specified elements of an array 4
array_sum() Returns the sum of the values in an array 4
array_udiff() Compares array values in a user-made function and returns an array 5
array_udiff_assoc() Compares array keys, and compares array values in a user-made function, and returns an array 5
array_udiff_uassoc() Compares array keys and array values in user-made functions, and returns an array 5
array_uintersect() Compares array values in a user-made function and returns an array 5
array_uintersect_assoc() Compares array keys, and compares array values in a user-made function, and returns an array 5
array_uintersect_uassoc() Compares array keys and array values in user-made functions, and returns an array 5
array_unique() Removes duplicate values from an array 4
array_unshift() Adds one or more elements to the beginning of an array 4
array_values() Returns all the values of an array 4
array_walk() Applies a user function to every member of an array 3
array_walk_recursive() Applies a user function recursively to every member of an array 5
arsort() Sorts an array in reverse order and maintain index association 3
asort() Sorts an array and maintain index association 3
compact() Create array containing variables and their values 4
count() Counts elements in an array, or properties in an object 3
current() Returns the current element in an array 3
each() Returns the current key and value pair from an array 3
end() Sets the internal pointer of an array to its last element 3
extract() Imports variables into the current symbol table from an array 3
in_array() Checks if a specified value exists in an array 4
key() Fetches a key from an array 3
krsort() Sorts an array by key in reverse order 3
ksort() Sorts an array by key 3
list() Assigns variables as if they were an array 3
natcasesort() Sorts an array using a case insensitive "natural order" algorithm 4
natsort() Sorts an array using a "natural order" algorithm 4
next() Advance the internal array pointer of an array 3
pos() Alias of current() 3
prev() Rewinds the internal array pointer 3
range() Creates an array containing a range of elements 3
reset() Sets the internal pointer of an array to its first element 3
rsort() Sorts an array in reverse order 3
shuffle() Shuffles an array 3
sizeof() Alias of count() 3
sort() Sorts an array 3
uasort() Sorts an array with a user-defined function and maintain index association 3
uksort() Sorts an array by keys using a user-defined function 3
usort() Sorts an array by values using a user-defined function 3


PHP Array Constants

PHP: indicates the earliest version of PHP that supports the constant.

Constant Description PHP
CASE_LOWER Used with array_change_key_case() to convert array keys to lower case
CASE_UPPER Used with array_change_key_case() to convert array keys to upper case
SORT_ASC Used with array_multisort() to sort in ascending order
SORT_DESC Used with array_multisort() to sort in descending order
SORT_REGULAR Used to compare items normally
SORT_NUMERIC Used to compare items numerically
SORT_STRING Used to compare items as strings
SORT_LOCALE_STRING Used to compare items as strings, based on the current locale 4
COUNT_NORMAL
COUNT_RECURSIVE
EXTR_OVERWRITE
EXTR_SKIP
EXTR_PREFIX_SAME
EXTR_PREFIX_ALL
EXTR_PREFIX_INVALID
EXTR_PREFIX_IF_EXISTS
EXTR_IF_EXISTS
EXTR_REFS

15 Ağustos 2010 Pazar

Ajax control toolkit nedir, nasil kurulur,ne ise yarar

Ajax control toolkit ile gelen bir sürü kontrolün visual studio çalışma ortamına nasıl eklendiğine hep beraber bakalım.

Günümüzde web platformu yeni bir dönemece girmiş, bir çok yeni teknoloji ile web programcıların sıkıntıları bir nebze olsun azalmıştır. Platformlar web ortamını ne kadar masaüstüne yaklaştırırsa o kadar rağbet görürler. Yeni nesil web uygulamaları dediğimiz zaman direk akla gelen isimdir Ajax. Programcıların sorunlarını çözdüğü noktalar, getirdiği yenilikter tartışılamaz. Lafı fazla uzatmadan toolkitten bahsetmek istiyorum. Bir dizi bizim için hazırlanmış ajax kontrolleri bu paketle birlikte visual studio'ya entegre oluyor ve nasıl bir textbox'ımızı butonunumuzu sürükleyio bırakarak kullanabiliyorsak, bu toolkit ile gelen kontrolleri de aynı şekilde kullanabiliyoruz. Peki nasıl kuracağız?

Öncelikle visual studio 2008 ve 2008'in service pack 1 paketi kurulu olması gerekir. Yani bu toolkit .net 3.5 sp1 için diyebiliriz. Adım adım bakacak olursak

1-Ajax Control Toolkiti download ediyoruz.

AJAX CONTROL TOOLKIT
burada 3 seçeneğimiz var, istersek tam kurulum olarak alabiliriz, istersek sadece dll'leri, istersek sadece scriptlerinide alabiliriz. Biz dll'lerini alacağız ve projemiz referans olarak ekleyeceğiz.

2-Zipli dosyadan AjaxControlToolkitBinary adlı klasörü çıkarıyoruz.

3-Visual Studio 2008'imizi açıyoruz.

4-Yeni bir Web Application oluşturuyoruz.

5-Toolbox'ımızda yeni bir sekme oluşturuyoruz ve istediğimiz bir isim veriyoruz.

Bu adım isteğe bağlı, ama yapmanızı tavsiye ederim. Çünkü yaklaşık 40 tane yeni kontrol geliyor ve bunların hepsinin bir yerde durması erişebilirlik açısından daha mantıklı olacaktır.

http://resim.sanalkurs.net/uploads/image_thumb_5.jpg


6-Oluşturduğumuz sekmede sağ tuşa basıyoruz ve choose items diyoruz.

Karşımıza çıkan menüden browse diyerek download ettiğimiz klasörün içinde çıkan AjaxControlToolkit.dll isimli dll dosyasını ekliyoruz.

http://resim.sanalkurs.net/uploads/image_thumb_2.jpg

7-Ajax ile yapılmış 42 tane yeni kontrol göreceksiniz.

Artık kontrollerimizi web sayfamıza sürükleyip bırakarak kullanabiliriz. Toolkit ile ilgili yenilikleri, değişiklikleri, gelişmeleri buradaki adresten takip edebilirsiniz.

http://resim.sanalkurs.net/uploads/image_thumb_6.jpg

Henüz 2008'e geçmediyseniz .net 2.0 içinde bir toolkit mevcut. Ama Ajax 3.0 ile birlikte geldiği için 2.0'a elinizle önce Ajax'ı eklemeniz gerekiyor. Sonra da Ajax Control Toolkit'i.

1 Ağustos 2010 Pazar

Mysql Veritabanına Giriş Yapıyoruz

PHP , esnek bir web yazılım dilidir . Günümüzün gelişmiş birçok yazılım dilleri gibi birden fazla veritabanı (database) ile uyumlu halde çalışabilmektedir . Türkiye şartlarında düşünürsek , yazılım sektöründe PHP ile akla gelen ilk veritabanı MySQL olduğu için , ayrıca ORACLE , SQL ve diğerlerine nazaran PHP ile daha kullanışlı görünen veritabanı olduğu için , MYSQL derslerini yayınlamayı uygun buldum. MySQL genellikle PHP ile birlikte kullanılan ücretsiz bir veritabanı sunucusudur.

MySQL Nedir?

MySQL bir veritabanıdır.Veritabanı , bilgileri saklayan yapıları tanımlar.

Bir veritabanında , HTML tabloları gibi satır, sütun içeren tablolar bulunur.

Veritabanı , kategorilere göre veri saklamak için en uygun sistemdir. Bir şirketin örnek bir veritabanında “Müşteri” , “Ürün” , “Çalışanlar” ve “Sipariş” tabloları bulunur.
Veritabanı TablolarıOrtalama bir veritabanı genellikle bir veya birden fazla tablo içerir.Her tablo (“müşteri” veya “Sipariş” gibi) isimlendirilir. Her tablo veri kayıtlarını saklar.Aşağıda “insanlar” adında örnek bir tablo yaptık, inceleyelim :
Soyisim isim adres Şehir
Veli Uyanık Çankaya 10/2 Ankara
Cengiz Hayıf Cebeci 10/23 Ankara
Galip Bölük Strrazburg 20 Ankara
Sorgular

Sorgu, bir soru veya istek anlamındadır.

MySQL kayıtlarında , veritabanına yaptığımız sorgularda özel bilgileri, bir kayıtlı tablo kümesine sorgu yapabiliriz.

Aşağıdaki sorguya bakalım:

SELECT Soyisim FROM insanlar

Bu sorgu insanlar tablosunudaki Soyisim satırını bulur ve kayıtlı verileri döndürür:
Soyisim
Veli
Cengiz
Galip

MySQL Veritabanı İndirin

MySQL veritabanı sunucunuz PHP ile birlikte yüklememişse , ki PHP Kurulum yazımda kullanabileceğiniz PHP Web sunucuları hakkında detaylı bilgiler bulunur , aşağıdaki linkte , MySQL resmi web sitesinden veritabanınızı indirin: http://www.mysql.com/downloads/index.html