Showing posts with label general. Show all posts
Showing posts with label general. Show all posts

Saturday, May 14, 2011

What is an IDE

In short, an IDE provides a one-stop shop for your coding work. An IDE contains an editor in which you can edit the code, debug the code, view your code in a browser (often embedded), and check in and out of source code control. To support that functionality, an IDE has a set of features you don't find in a basic editor, such as Notepad or Vim. Again, you can extend editors to do a lot of these things, but IDEs have all this functionality in one tidy package -- typically preconfigured:

Projects
A key distinguishing feature of an IDE is that it looks at a PHP application as a project, not just a set of files. That containing concept -- the project -- maintains extra information, such as the configuration of the source code control, the database settings for debugging purposes, and the location of certain key directories.

Debugging
Another handy feature is integrated debugging. With this functionality, you can set breakpoints in the editor at which the PHP interpreter stops during execution of the script. From there, you can inspect the values of local variables to diagnose issues in the code. It's a healthy alternative to sprinkling echo statements through your code to check values or using the error log to get the values of variables.

Friday, April 29, 2011

Cleaning and Validating user input with htmLawed

htmLawed is a highly customizable single-file PHP script to make text secure, standard and admin policy-compliant for use in the body of HTML 4, XHTML 1 or 1.1, or generic XML documents. It is thus a configurable input (X)HTML filter, processor, purifier, sanitizer, beautifier, etc., and an alternative to the HTMLTidy application.

The lawing in of input text is needed to ensure that HTML code in the text is standard-compliant, does not introduce security vulnerabilities, and does not break the aesthetics, design or layout of web-pages. htmLawed tries to do this by, for example, making HTML well-formed with balanced and properly nested tags, neutralizing code that may be used for cross-site scripting (XSS) attacks, and allowing only specified HTML elements/tags and attributes

Thursday, April 28, 2011

PHP CLI script and Command line arguments

One of the advantages of  PHP is that, it can be run from the command line like a c program. Sometimes scripts are made to run behind the browser to give faster response to the user, and some time to run the bulky operations. (video conversion, cron, backups).

There are to ways to get the arguments in the script, while running it from command line:

Wednesday, April 13, 2011

What is this blog for

Wow.. Finally writing for the blog. Sharing PHP, name itself describes the purpose of the blog. Well this blog is started to share the PHP resources I know, and I'll found on web.

It happened to me so many time, that I want to find something about the some basic or advance stuff about PHP, what I do is just GOOGLE, but I end up lots of sites, around 30 mins of wasted time, and reading not what I exactly wanted but lots of other stuff. And I am sure most of the beginner do the same thing. So me and my Pals decided to launch a site for the beginners as well as advance users to make a one stop search for the PHP programmers.

So as result this Blog is started, Sharing PHP. Its just a another blog, hosted at blogspot currently, but let me make clear that we have lot to come and much bigger plans to share ahead. So guys Keep on looking back and enjoy the Blog.

Thanks.. and WELCOME TO THE NEW WORLD. :)