Easyphp in windows7 64bit

Cách dễ nhất và nhanh nhất để tạo localhost, test tiếc nghịch ngợm chính là dùng easyphp, gọn nhẹ, hơn xampp là cái chắc ;)) đơn giản, dễ dàng. Nhưng trên bản 64bit nó dở chứng ầm ĩ ko dùng dc, hôm nọ cài apache rồi php mệt quá, hnay cài thêm mysql nhưng khổ quá, may tìm ra cái này, chiếm luôn :)) http://ryan.rawswift.com/2009/09/20/easyphp-on-64-bit-windows-7-how-to-fix-apache-and-mysql-problem/ EasyPHP on Windows 7 Apache I am accustomed in using EasyPHP on a Windows platform. Installation, running, and configuring it is always a breeze (on Windows XP that is). Recently I’ve installed Windows 7 RTM on my MSI notebook and installed EasyPHP 5.3.0, though the Installation goes flawlessly but then when I launch the stack software, Apache wouldn’t start. I turned off the firewall but no luck. So I did a search on google, again no luck with Windows 7 specific solution but I found one for Windows Vista. I tried it anyway, then BAM! It worked! I finally got Apache to start, tried opening the local default web and it worked perfectly. Here’s the error message and how to fix it: ...

November 25, 2009 · kanishi

php tip

$str = “home::khanhpt::test.tar.gz”; $data = explode(“::”,$str); $data[0] = “root”; $name = join(“::”,$data); echo $name; You could use a regular express to remove everything apart from those characters you wish to keep: $string=preg_replace('/[^A-Za-z0-9 _-+&]/','',$string); Replaces everything that is not (^) the letters A-Z or a-z, the numbers 0-9, space, underscore, hypen, plus and ampersand – with nothing (i.e. remove it). cái này giờ mới biết, tiện ghê, há há, ghi lại kẻo quên, sau này có gì tìm lại cho dễ 😀 hehe ...

September 17, 2009 · kanishi

PHP script to Find out IP address

We can get the IP address of any visitor by using PHP. Finding the IP address is very important requirement for many scripts where we store the members or visitors details. For security reason we can store IP address of our visitors who are doing any purchases or recording the geographical location of the visitor can be done this way. Some time based on the IP address we can redirect the browser to different areas of the site. There are many applications using this and here is the PHP code to know the IP address of any visitor to the site. ...

July 23, 2009 · kanishi

Hiển thị mã HTML trong PHP

Đại loại là dùng lệnh echo để in ra code html, ví dụ Tôi có nhiều tiền , nếu bình thường echo “Tôi tiền”; thì nó sẽ in ra Tôi tiền Các bạncủa tớ ko thích thế, các bạn ấy thích in ra nguyên là Tôi tiền cơ, vậy làm thế nào để? Mà ko hiểu sao các bạn hỏi vụ này làm gì nhỉ, hôm qua 1 người hỏi, hôm nay lại một bạn nữa hỏi ;)) Tớ có biết đâu, search google thôi, đã mất công search thôi gõ lại, lần sau đỡ phải search đâu xa, search trong blog của mình cho gần ;)) Đại loại là ...

June 9, 2009 · kanishi