Cesar D. Rodas, web development. Technology news. PHP, MySQL, Apache, C, Bash, ASM

Archive for the ‘PHP’ Category

Making HTML page sections into draggable blocks

Tuesday, July 17th, 2007

This class can be used make certain HTML page sections into draggable blocks.

It generates start and end div tags and the necessary Javascript to intercept the events of when the user clicks and drags the block inside the div.

The class can assign given Javascript function to handle the event of when the mouse button is released.

Also this class is Public domain, that mean that you are legaly free to copy, redistribute, modify and also include into close source projects for free

Download gWidgets

Here is a simple test how to use it (more…)

PHP: Guess the language of a given text

Monday, July 9th, 2007

There exist a open project called LibTextCat. I’ve used this class for many projects with greats results. What this project do is recieve a text as a parameter and return in what lang it is text written.

A great project for web-crawler and other kinds of projects that need text categorization. The only “problem” (that is not a problem) is that I haven’t found a PHP port of it.

So, I’ve implement the LibTextCat algorithm, and the result could be found here. (more…)

PHP: implementing a heavy use of AJAX

Thursday, July 5th, 2007

Today, the trend is to implement AJAX in everything related with Web. AJAX (Asynchronous JavaScript and XML) is not a new programming language, It is a “style” of development that mix two technologies, the client side (JavaScript) and the server site (usually PHP, JSP, Java or other). (more…)

PHP-iCaptcha: CAPTCHA validation asking questions about pictures

Tuesday, July 3rd, 2007

iCaptcha

This PHP class can be used to implement a CAPTCHA validation method that asks questions about pictures to the user.

It presents several images and asks the user to answer a question related to the pictures. Only one picture is the right answers. The user has to pick the right picture to pass the validation.

The class presents the question and pictures in a form with radio buttons associated to each picture to let the user pick the right picture that answers the question.

The information about the pictures that the user picks is stored in a MySQL database.

Download iCaptcha

PageRank explained for mere mortals

Monday, July 2nd, 2007

The main reason why Google become the most popular search engine is the fact that it was able to provide the most relevant results to the user searches.

Google search results are sorted using an algorithm named page rank. It takes in account the number of ingoing and outgoing links to each page.
(more…)

How to manage thousands visitors, Part III. www.wikipedia.org

Thursday, June 28th, 2007

Following the articles of How to manage thousands visitors, I will now write about a very very big site which uses MySQL and PHP5. Also it is so big that handle about 10,000 and 30,000 page requests per second on a normal day. Yeah a very very huge traffic.

It do about a traffic of about 864,000,000 to 2,592,000,000 request per day. A great number of traffic don’t you think? (more…)

gCache: Helping PHP to work faster

Wednesday, June 27th, 2007

Many php sites usually do many SQL query for show a single page. That doesn’t affect the performance when the traffic is under the 10000 hits per day.

But the think became more hard to handle when the traffic is upper than 10000 hits, and more if the web server is a shared server.

Usually we need to find a way to help php to reduce the number of query to a database, because as a friend told me: “Most of time php is awaiting for a database to response” (more…)

Making money Sharing the source…

Monday, June 25th, 2007

It is well known that you can make money writing free softwares, sharing the source, disclaiming the copyright.

But in this case I will speak about my personal experience writing free softwares and getting money directly or indirectly.

First of nothing you don’t need to start or be part of a very very big project for get benefits. I’ve never be part or start a big project, and all my “free software” experience are writing PHP classes and sharing the source, and that’s simplest and take less time than write an Operating system ;), and also has many benefits.

Directly I’ve never got benefits(I mean get paid) yet, But I am planning to… and you will ask me how??… and the answer is a quite simple, with Google-Ads on the sites of my php projects. If the projects are good they will bring visitors to the site by their own and with a few of help of me writing always something new, try to fixed bugs as soon a possible, and publishing in dzone.com, digg.com, meneame.net and others sites. (more…)

PHP: Your imagination is your limit.

Tuesday, June 19th, 2007

Do you think PHP was only developed for write Web-Sites?, If you do, I think you are right, the PHP was developed for that, but we know that right now with the growth of this languages we (PHP lovers) could do more than only web development. (more…)

Multi threading with PHP

Monday, June 11th, 2007

Surfing in Phpclasses I’ve found a really useful (at least for me) class that implements a Java like thread class. It look very interesting and this class came with a good documentation, examples.

I recommend to download this package, specially if you want to do more attractive things with php like apps with PHP-GTK.

This class only work with Unix Like OS because it implement a fork interface.

I will implement (or try to), this class with my class DNServer

Enter your email address:

Delivered by FeedBurner

this Site

Archives

October 2008
S M T W T F S
« Jun    
 1234
567891011
12131415161718
19202122232425
262728293031  

Syndication

Google