How to modify the root user password

December 29th, 2011 No comments

If you forget the root password of mysql 5.1,You can change root user password by following the method:

1.Stop the running MySQL:

  C:\>net stop mysql (You can also stop the MySQL service)

2.Open a DOS window,Into the mysql \ bin directory,Enter the following command and press Enter.(If a warning appears, do not ignore)

  C:\> mysqld –skip-grant-tables

 

3.Then open another DOS window,Into the mysql\bin directory,Enter the following command:

  C:\>mysql

4.Change password:

  mysql> update mysql.user set password=password('123456') where user='root'; (Do not forget the semicolon at the end)

5.Refresh permissions (necessary step)

  mysql> flush privileges;

6.Exit mysql

  mysql> quit

7.Stop mysqld in the task manager

8.Restart MySQL,Using the username root and just setting a new password 123456 to login

  C:\> net start mysql(You can also start the mysql service in the service manager)

Categories: Hosting Tags: , ,

Symfony Introduction

November 11th, 2011 No comments

 

 

Symfony is a complete framework designed to optimize the development of web applications by way of several key features. For starters, it separates a web application's business rules, server logic, and presentation views. It contains numerous tools and classes aimed at shortening the development time of a complex web application. Additionally, it automates common tasks so that the developer can focus entirely on the specifics of an application. The end result of these advantages means there is no need to reinvent the wheel every time a new web application is built!


Symfony is written entirely in PHP 5. It has been thoroughly tested in various real-world projects, and is actually in use for high-demand e-business websites. It is compatible with most of the available databases engines, including MySQL, PostgreSQL, Oracle, and Microsoft SQL Server. It runs on *nix and Windows platforms. Let's begin with a closer look at its features.

 

 

Symfony Features

Symfony was built in order to fulfill the following requirements:

  • Easy to install and configure on most platforms (and guaranteed to work on standard *nix and Windows platforms)
  • Database engine-independent
  • Simple to use, in most cases, but still flexible enough to adapt to complex cases
  • Based on the premise of convention over configuration–the developer needs to configure only the unconventional
  • Compliant with most web best practices and design patterns
  • Enterprise-ready–adaptable to existing information technology (IT) policies and architectures, and stable enough for long-term projects
  • Very readable code, with phpDocumentor comments, for easy maintenance
  • Easy to extend, allowing for integration with other vendor libraries

 

 

Automated Web Project Features

Most of the common features of web projects are automated within symfony, as follows:

  • The built-in internationalization layer allows for both data and interface translation, as well as content localization.
  • The presentation uses templates and layouts that can be built by HTML designers without any knowledge of the framework. Helpers reduce the amount of presentation code to write by encapsulating large portions of code in simple function calls.
  • Forms support automated validation and repopulation, and this ensures a good quality of data in the database and a better user experience.
  • Output escaping protects applications from attacks via corrupted data.
  • The cache management features reduce bandwidth usage and server load.
  • Authentication and credential features facilitate the creation of restricted sections and user security management.
  • Routing and smart URLs make the page address part of the interface and search-engine friendly.
  • Built-in e-mail and API management features allow web applications to go beyond the classic browser interactions.
  • Lists are more user-friendly thanks to automated pagination, sorting, and filtering.
  • Factories, plug-ins, and mixins provide a high level of extensibility.
  • Ajax interactions are easy to implement thanks to one-line helpers that encapsulate cross-browser-compatible JavaScript effects.

Development Environment and Tools

To fulfill the requirements of enterprises having their own coding guidelines and project management rules, symfony can be entirely customized. It provides, by default, several development environments and is bundled with multiple tools that automate common software-engineering tasks:

  • The code-generation tools are great for prototyping and one-click back-end administration.
  • The built-in unit and functional testing framework provides the perfect tools to allow test-driven development.
  • The debug panel accelerates debugging by displaying all the information the developer needs on the page he's working on.
  • The command-line interface automates application deployment between two servers.
  • Live configuration changes are possible and effective.
  • The logging features give administrators full details about an application's activities.

 

 

Is Symfony for Me?

Whether you are a PHP 5 expert or a newcomer to web application programming, you will be able to use symfony. The main factor in deciding whether or not to do so is the size of your project.

If you want to develop a simple website with five to ten pages, limited access to a database, and no obligations to ensuring its performance or providing documentation, then you should stick with PHP alone. You wouldn't gain much from a web application framework, and using object orientation or an MVC model would likely only slow down your development process. As a side note, symfony is not optimized to run efficiently on a shared server where PHP scripts can run only in Common Gateway Interface (CGI) mode.

On the other hand, if you develop more complex web applications, with heavy business logic, PHP alone is not enough. If you plan on maintaining or extending your application in the future, you will need your code to be lightweight, readable, and effective. If you want to use the latest advances in user interaction (like Ajax) in an intuitive way, you can't just write hundreds of lines of JavaScript. If you want to have fun and develop fast, then PHP alone will probably be disappointing. In all these cases, symfony is for you.

And, of course, if you are a professional web developer, you already know all the benefits of web application frameworks, and you need one that is mature, well documented, and has a large community. Search no more, for symfony is your solution.

Categories: Symfony Tags: , ,

How to modify the upload file size limit in php.ini of cPanel

September 23rd, 2011 No comments

For security and server load considerations,Many cpanel free hosting service providers often disable some functions and other constraints.For example, the default maximum upload file size is 2M, we can modify the php.ini to achieve our desired size.

In such arguments cannot meet the needs of free web space we can customize the php.ini to change.

 

Steps:

The method is very simple, just write in the local php.ini need to modify the new place.

Such as the maximum upload file php.ini code is:

upload_max_filesize = 2M

1, as long as the new php.ini file to write

upload_max_filesize = 1000M

1000 is the value you want to change.

2, Then upload the php.ini to / home / username / public_html / directory, and if no effect you can add the code into .htaccess file:

SetEnv PHPRC /home/USERNAME/public_html

Note: The USERNAME is your cPanel account

 

So we modified the parameter in php.ini, this method can change any parameters in php.ini.

Categories: Hosting Tags: , , ,

Forty-four beautiful animal LOGOs

September 22nd, 2011 No comments

 

Today I show you some very nice animal LOGOs.Through these Logos,We saw the excellent imagination and achieve success of designers behind them.I hope this show can bring some inspirations for your next design!

Let us begin to enjoy them!

44 animal logos

43 animal logos 44 animal logos

42 animal logos 44 animal logos

41 animal logos 44 animal logos

Read more…

Categories: Web Design Tags: ,

Forty very interesting login pages

September 14th, 2011 No comments

Login page is a very important part of the website.Many web designers will spend some time on how to design a login page.

Let's enjoy the following forty very interesting login pages.

 

1-Member Login Page
Login Page Design Inspirations

Read more…

Categories: Web Design Tags: , ,