|
Published Tuesday, January 08, 2008
PHP offers a nice extension called "mbstring" to help you manage non ASCII strings. Here are the features of "mbstring":
Published Monday, January 07, 2008
Are you tired of manually updating the last modified date displayed on your site? Using PHP, it is easy to automate this task, for any file you have, with just a few lines of code.
Published Thursday, January 03, 2008
Ruby is an object-oriented programming language; this chapter will show you what that reallymeans. Like all modern languages, Rubysupports object-oriented notions like classes, inheiritance, and polymorphism. But Ruby goes further than other languages you may have used. Some languages are strict and some are permissive; Ruby is one of the most permissive languages around.Strict languages enforce strong typing, usually at compile type: a variable defined asan arrayc an’t be used as another data type. If a method takes an arrayas an argument,you can’t pass in an array-like object unless that object happens to be a subclassof the array class or can be converted into an array.
Published Thursday, January 03, 2008
Script.aculo.us is indeed spectaculous. By writing a few lines of ROR code, you could create UI effects that reqiured great manipulation in javascript using DOM. The most popular part of script.aculo.us is the visual effects, using the Effect object.
Published Thursday, January 03, 2008
Cross-Site Scripting (often abbreviated XSS, to avoid confusion with CSS) is another type of attack on web application security—and yet another example of the principle don't trust user input. In the case of SQL injection, problems surfaced when unescaped user data was included in SQL queries. In the case of XSS, vulnerabilities emerge when unescaped user data is included in HTML output.
Published Thursday, January 03, 2008
We assume that you already have installed a Web Server and Database System on your computer. You can always use the WEBrick Web Server, which comes with Ruby. Most sites, however, use Apache or lightTPD in production.
Published Thursday, January 03, 2008
Session hijacking is a class of attacks where an attacker gets hold of a session identifier (cookie) of another user. Consequently, he gets access to the web application, because the session identifier serves as temporary login credential.
Published Thursday, January 03, 2008
While you're developing Rails applications, especially those which are mainly providing you with a simple interface to data in a database, it can often be useful to use the scaffold method.
Published Thursday, January 03, 2008
Action Mailer is the Rails component that enables applications to send and receive e-mail. In this chapter we will see how to send an email using Rails. So lets start with creating a emails project using following command.
Published Thursday, January 03, 2008
You may have a requirement in which you want your site visitors to upload a file on your server. Rails makes it very easy to handle this requirement. Now we will proceed with a simple and small Rails project.
|