Import sql files to mysql db in mac

For some projects, i use my local machine. It's a mac and trust me it's not a good idea to use your mac for apache and mysql servers (even for php, i got lots of problems). I tried to import an sql file through phpmyadmin, but i had too many problems so i decided to import it using shell. What you need to do is:

/usr/local/mysql/bin/mysql -u root -p

than enter your password, you are in mysql now.  

A "Hello World!" Genetic Algorithm Example in PHP

This is a hello world example genetic algorithm example written in php. You can use the same algorithm to build useful applications.

Download zip here

The output is something like this:

php igc patch

There is a realy powerfull tool to convert igc files into gmap polygons or whatever you want, called PHP IGC ( official site here: https://sourceforge.net/projects/php-igc/)

But there is just a little problem with the setDetails method which has a statement like:

Php Page Rank Simülatörü

Bildiğiniz gibi google page rank, web sitesini google arama motorunda ön sırada çıkarmak isteyenlerin çalışma mekanizmasını merak ettiği bir değerleme sistemi. Page rank teorisi ile ilgi detaylı bilgiyi şurada bulabilirsiniz.


Birçok kişi link değişimi ile page rankını yükseltmek istiyor ancak bu ne kadar işe yarıyor?

Google tarzı sayfalama yapan php scripti

bir tablodaki tüm kayıtları getiren ve ekrana basan php fonksiyonu aşağıdaki gibidir. Eğer bir arama sonucu için kullanacaksanız sql sorgusunu düzenlemeniz gerekir.

  1. function google_paging($tablo,$sayfalama_sayisi=10,$gosterim_sayisi=25)
  2. {
  3. if (isset($_GET['sayfa']))
  4. {
  5. $sayfa = $_GET['sayfa'];
  6.  
  7. }
  8. else
  9. {
  10. $sayfa = 0;
  11. }
  12.  
  13.  
  14. $basla_sayfa = $sayfa * $gosterim_sayisi;
  15.  
  16. $liste_q = "select * from $tablo limit $basla_sayfa,$gosterim_sayisi ";
  17. $liste_s = mysql_query($liste_q);
  18.  

Dreamweaver ile dinamik uygulamalar geliştirmek

Merhaba. Bu yazıda sizlere Dreamweaver kullanarak nasıl dinamik web uygulamaları geliştirebileceğinizi anlatacağım. Bunun için makinanızda kurulu olması gerekenler ise şunlar:

*PHP
*MySQL
*Apache Server

ya da

*Wamp Server

 .