Add a page that you’d like to see the next time you search for : Google add url
I noticed a new feature from google while doing Search Engine Optimization. You can able to results to google search results.
Here we can inlcude our search results to google. I think this move is an alternative to twitter search. What I meant is twitter updates are done by a manual invention, But google results are only through bot .
PHP MYSQL Tips and Tricks
This is a small article containing tricks and tips I aquired by reading PHP 6 Text Book.
I was used isset() function to check whether these arguements are set or not. And also I need to check this is empty or not.
Here is another function to check both of this requirement at single line.
empty()
It checks if a variable has an empty value: an empty string, 0, NULL,or FALSE.
Example
if ( !empty($_POST[‘name’]) && !empty($_POST[‘comments’]) && !empty($_POST[‘email’]) ) {
echo “Yes”;
}
PHP 6 upgrade : Advantages covered

PHP Personal Home Page now it is Hypertext Pre Processor.
Version : 6 (PHP 6)
Advantages,
- Addition of improved MySql Extension
- PHP 6 support Unicode, so that PHP 6 can handle all languages in the world. I faced lot of problems with ‘Malayalam’ font integration.
- PHP 6 cleans up a lot of garbbages that was left in php 5
- The two biggest removals are the “Magic Quotes” and “register globals” features
Download and Test PHP 6 at http://snaps.php.net/
What is magic Quotes ?
It automatically escapes single quotes or double quotes in form data by inserting a “\” Back slash in front of it. Now this automatic feature called magic Quotes has been removed in PHP6.
Image Resize Simple class
Here is a sample class file for image resize.
imageResize.class
Download the File save it in web root and add .php extension to the file .
How to use ?
<?php
require_once(‘imageResize.class.php’); // Path to File
imagejpeg(imageResize::Resize($fileSavePath,$width,$height),$newFileName);
?>
$fileSavePath should be the pathname of source file. Say “uploads/arun.jpg”.
$newFileName this should be the source File name with path. Say “uploads/thumb/arun.jpg”.
Any Doubt ?
Symfony 1.2 File Upload
class mymoduleActions extends sfActions { public function executeUpload($request) { if ($request->hasFiles()) { foreach ($request->getFileNames() as $uploadedFile) { $fileName = $request->getFileName($uploadedFile); $fileSize = $request->getFileSize($uploadedFile); $fileType = $request->getFileType($uploadedFile); $fileError = $request->hasFileError($uploadedFile); $uploadDir = sfConfig::get('sf_upload_dir'); $request->moveFile($uploadedFile, $uploadDir.'/'.$fileName); } } }
Unexpected Error in new PHP 5.3
Syntax Error , Unexpected ‘]’ in C:\xampp\php\browscap\browscap.ini on line 297.
What is PHP and its advantages and disadvantages..
Hypertext Preprocessor :: PHP some time I used to call Personal Home Page
PHP is an open source server side scripting language that mainly used for developing web applications and web services.
The PHP is very simple for a beginner, but offers many advanced features for a professional script writer.
Three main areas where PHP scripts are used :
- Server-side scripting
- Command line scripting
- Writing desktop applications
Advantages :
- Open source
- Simple and very easy to learn.
- Support for both structural programming and Object Oriented Programming. Use of variable variables $$var.
- PHP can be used on all major operating systems, including Linux, many Unix variants (including HP-UX, Solaris and OpenBSD), Microsoft Windows, Mac OS X, RISC OS, and probably others. PHP has also support for most of the web servers today. This includes Apache, Microsoft Internet Information Server, Personal Web Server, Netscape and iPlanet servers, Oreilly Website Pro server, Caudium, Xitami, OmniHTTPd, and many others. For the majority of the servers PHP has a module, for the others supporting the CGI standard, PHP can work as a CGI processor.
- One of the most Sexiest feature of PHP is that it can plugin with most of the databases. It support with Adabas D, dBase, Empress, FilePro (read-only), Hyperwave, IBM DB2, Informix, Ingres, InterBase, rontBase, mSQL, Direct MS-SQL, MySQL, ODBC, Oracle (OCI7 and OCI8), Ovrimos, PostgreSQL, SQLite, Solid Sybase, Velocis and Unix dbm
- Power ful built in functions. click here to see all php functions
- PHP also has support services using protocols such as LDAP, IMAP, SNMP, NNTP, POP3, HTTP, COM (on Windows)
- PHP has extremely useful text processing features, from the POSIX Extended or Perl regular expressions to parsing XML documents. For parsing and accessing XML documents, PHP 5 standardizes all the XML extensions on the solid base of libxml2 and extends the feature set adding SimpleXML and XMLReader support.
- Easy deployment and cost effective hosting.
Disadvantages :
- Security flaws due to unknown vulnerabilities .
- Not good to create desktop Applications
Comparison between various programming languages
Today onwards I am willing to write series of articles about various programming languages. As a programmer we should compare all the programming languages, study its advantage and disadvantages . By these we can consult a correct platform for our clients and we can plug in this in appropriate situation. So advantages and disadvantages over the programming languages again converted for an advantages for the client.
First upon we discuss about programming languages.
A program is list of instructions that perform a particular task or algorithms. A programming language is a machine understandable artificial language that used to write the programs. All programming languages have its own syntax and semantics.
Programming must follow some methodology in programming .
During the year 70s and 80s, the primary software engineering methodology was structured programming. The structured programming approach to program design was based on the following methods:
- To solve a large problem, break down the problem into several pieces and work on each piece separately;
- to solve each piece, treat it as a new problem that can itself be broken down into smaller problems;
- repeat the process with each new piece until each can be solved directly, without further decomposition.
This approach is also called top-down program design.
The Language “C” is considered as a top Structural programming language.
The next was OOP (Object Oriented Programming):
This methodology is organized around “objects” rather than “actions” and data rather than logic. Objects is an identifiable entity with some characteristics and behavior. Object Oriented programming paradigm support the following idioms like information hiding, data abstraction, encapsulation, modularity, polymorphism, and inheritance.
The First OOP languages is “C++”. Then it enhanced by JAVA.
Aspect-oriented programming (AOP) is another programming paradigm that enhance modularity by allowing the separation of cross-cutting concerns, forming a basis for aspect-oriented software development.
These are the main programming paradigms. There is a lot of other paradigms . We will elaborate our knowledge by contributing your suggestions and information about it.
