Posts Tagged ‘PHP’

How To Set Up The PHP / MySQL Site Definition In Dreamweaver

November 15th, 2011 Comments off

‘Site Definition entries’ used while defining a site play an important role in connecting a MySQL database in ‘Dreamweaver’ successfully. Here I would like to share an example of PHP / MySQL Definition which uses a Linux Hosting Server with PHP and which runs over a machine named such as, and MySQL runs on other machine which can be named such as, furthermore the ‘Dreamweaver should be running on a local workstation.

In this tutorial, we will be using FTP for the purpose of transfer of file between the Linux Hosting server and workstation.

Local Info:
Site Name: mywebsite
Local Root Folder: C:\mywebsite\
Remote Info:
Access: FTP
FTP Host:
Host Directory: /htdocs/
Login: Admin (Your Log In Name)
Password: ********* (Your set Password)
Testing Server:
Server Model: PHP / MySQL
Access: FTP
FTP Host:
Host Directory: /htdocs/
Login: Admin (Your Log In Name)
Password: ********* (Your set Password)
URL Prefix:

How should I change the date.timezone value in PHP?

January 12th, 2011 Comments off

If you are facing an issue wherein PHP scripts does not show the correct time, the reason for this can be mostly said to be because your web hosting server is based in a different time zone. The issue can be simply sorted out by changing the date.timezone setting in PHP.

As per your location you can set the date.timezone value in PHP by adding the below to your file :

ate.timezone = “Asia/Calcutta”

The example is stated assuming that you would like to set the timezone for your PHP script to Asia/Calcutta.

If you face any issues while executing the above, you can contact your web hosting service provider for further assistance on the same.

How can I change the value of a PHP Setting?

December 13th, 2010 Comments off

You may apply customized PHP settings on a pre-folder using a local php.ini file.


Below mentioned is an example to describe the same :

If you require output_buffering set to OFF in a particular directory, you should log into your cPanel provided with web hosting account and go to the File Manager. There you need to navigate through to the directory where you’d want this setting to be applied. In the desired directory create a php.ini file containing the below:

output_buffering = off

The settings should take place, once the above steps are executed.

There are two exceptions which you need to note :

Some very important PHP Limits or Directives cannot be changed, for example memory_limit and max_execution_timeout. Changing the values from the values assigned by the administrator can result in problems with the overall server performance.

If PHP is compiled as an Apache module, you can try using a .htaccess file containing the below mentioned :

php_value output_buffering off

Please be advised that the global PHP settings cannot be changed with a local file if you are using PHP 5.1. Some globally defined limits cannot be changed per account.

Java Web Server Hosting

September 19th, 2009 Comments off

There have been many queries from developers who are looking for Java Hosting service for hosting their Java Applications. When hunting for such a web hosting provider,it is essential for you to include the following Standard Servlet/JSP Features. The below list should make your search  find a reliable and Affordable Web Hosting much simple.

List of requirement:

Java Tomcat a) Java Servlet support (JSDK Servlets)
b) Fine-tuned Tomcat VMs for highest performance
c) High-speed delivery of static content
d) Tomcat should be regularly updated with latest released patches
e) They should support Cocoon 2.1
f) Tomcat features should include JSP and WAR file deployment
g) Easy folder layout/knowledgebase for new Tomcat users
h) Accessibility of full Servlet Logs, Access Logs
i) The package must include JDBC support
j) Configure servlets and compile JSP-DIY configuration
k) File system access and provide dynamic control
l) SQL Server, MySQL, PostGreSQL and FireBird Databases with JDBC
m) Smooth Outgoing/Incoming network connections to run Java-based server
n) Convergence and JSP Wiki support
o) No restriction to use JAR files and appls extensions
p) You’ll need full access to applications for reloading via the Tomcat Manager
q) The Host must offer Separate JVM and JBoss upon request
r) You may need isolated Tomcat Host to separate webapps folder for your applications
s) Host multiple applications, under your own Tomcat Host
t) Tomcat Manager apps should reload/unload applications in real-time
u) For Load balancing check the availability of Clustered VM setups
v) It is important that your Java application/s are hosted on secure server and stable web server.

Usually, Java Applications consume a lot of server resources.It can overload the memory and other resources of the server,hence it is recommended to opt for a Semi-Dedicated Web Hosting or a Dedicated Web Hosting Server ideally.
Some web hosting providers do allow Java Applications on their Virtual Private Server (VPS), but in no time ask the clients to upgrade the plan to a dedicated server.This can cause downtime to your websites, as migration to a dedicated server takes atleast 24-48 hours.Hence, it is suggested to get a dedicated server.You must first contact the web host, make them aware of your requirements,they can suggest you the most appropriate web hosting package to serve your purpose.

Please Refer : Overview of Apache Tomcat

When to Upgrade to a Dedicated Server Hosting Service?

September 3rd, 2009 Comments off

It is very important to know how busy your website is,with this I mean how much traffic does your website receive before you opt for a dedicated web hosting service. You also must be aware of limitations of your current host and the amount of resources you are using. Below are few points that would help you about resources that websites normally use:

  • Network bandwidth is the amount of data transfer that your host gives you per month.
  • A fast processor for websites that use databases and PHP.
  • Disk storage that your host allows you to use without going over the limit and asking you to pay more.
  • With a dedicated server, you can get all these and more benefits like:
  • Software installation like PHP according to your requirements
  • Running of disallowed software in shared servers like Java.
  • Streaming audio or video download offers for your customers that cannot be offered on shared servers.
  • Server improvements according to your requirements.
  • Website’s speed and availability would not be affected by anything.
  • Here are types of servers that you can use and choose your dedicated hosting server according to your needs.
  • Unmanaged Server: You only get the machine connected to the host network and the root password then it is up to you to maintain your server.
  • Managed Server: Lease of the server and entire administration is given to you. This usually enables you to think about your content.
  • Collocated Server: You need to purchase the machine and then the host will give you connection. It is only recommended to choose this if you have specific technical requirements because they are very expensive.

The cheapest options that are available are the unmanaged servers but if you are particularly new to the world of dedicated web hosting servers, you might have problems with it because the unmanaged server requires you run the entire server on your own. Most people find it hard because it needs some amount of expertise technical as well as customer service.

Frequently Used Terms in Web Hosting Industry : Part 2

August 28th, 2009 Comments off

Below is the continuation of the previous article: Frequently Used Terms in Web Hosting Industry : Part 1

It is a database management system which is a Microsoft product. MS SQL databases are offered only with Windows Web Hosting packages.

MySQL is a database server.It is most commonly used with PHP.MySQL can be availed with Linux Web Hosting packages as well as Windows Hosting packages.

Perl is preferred and renowned scripting or programming language.It is considered to be one of the most powerful languages used for scripting. It is most commonly used for CGI scripts. With Perl building and testing of programs get simplified.

PHP is an Open source, server side HTML embedded scripting language that is typically used for creating dynamic web pages. Since it is released under Open source GNU, it is freely downloadable. Web masters prefer to use it on Linux/Unix Servers.

POP3: Post Office Protocol
It is a type of protocol that  is used for receiving E-mails. When using an E-mail client to retrieve email messages, the client communicates with the mail server via POP3.

Primary DNS : Primary Domain Name Server
It is the Primary domain name server for the customer domains. These are the DNS IP numbers often preceeded as and

Root Server
Its a machine thats loaded with softwares and data that is required to locate the name servers which contain authoritative data for the top level domains.

SMTP : Simple Mail Transfer Protocol
This is main protocol that is used to send  and receive e-mails over the Internet.

SSL : Secure Socket Layer
It is a protocol designed to enable encrypted and authenticated communications across the World Wide Web.SSL is usually used for secure communication between web browser and the servers. The URL that starts with “https” indicates that the website is secured with SSL.SSL Certificates are installed on the domains of websites that involve online transactions.

TCP/IP is a protocol that defines the Internet. It indicates how data can be transmitted between hosts. It is most widely used standard of communication. This set of communication protocols to connect to host servers over the Internet.

It is a program that is used to login from and Internet site to the other. It is actually a protocol used to access machines placed at remote remote locations. You can connect to any server over the Internet that has telnet server.

TLD : Top Level Domains
It is the suffix of the domain name for example .co., .org , .gov, .net etc. It is the highest level in the hierarchy of doman extensions.

Tomcat is a Java based web server software created to run Java Server Pages (JSP) in the web applications.

Unix is an operating system that is used on business class computers often known as servers. It is a similar operating system to DOS and MacOS. It is one of the most common operating systems used on servers.

Virtual Server
A virtual server is nothing but a web server that shares its resources with multiple users hosted on a single physical server. In this, users get to experience dedicated server like environment.You are provided with complete admin access of the server.As a matter of fact, a VPS Hosting package is one of the most preferred type of web hosting solution.

Web Server
A web server is nothing but a computer that delivers web pages.It is important that the server is connected to the World Wide Web inorder to deliver webpages upon request.

Web Site Traffic
Website traffic refers to the volume of visitors visiting a website. The tool that measures the traffic is referred as the website traffic reporting tool.

XML : eXtensible Markup Language.
XML is a programming language which allows designers to create their own tags to indicate specific information. W3C (World Wide Web Consortium) is a widely used standard which facilitates the interchange of data across computer applications. It is similar to the language used for Web pages HTML.


July 29th, 2009 Comments off

As we know that the PHP is the most common and loved web language lamp-logo world wide. PHPMyAdmin is also written in PHP as the name itself suggests. It is an open source tool which is used for administer MySQL over the web. It can perform all the tasks on the database such as creating, modifying or deleting the tables, databases, columns, rows and a single field also. It executes the SQL statements and manages the user permissions.

logo_pma_med Currently this tool is available in 57 language and is maintained by the The PHPMyAdmin. There are more similar products available which include PostgreSQL, PHPMSAdmin also. Although the variety of the tools are available PHPMyAdmin is widely used and appreciated by the people. It has won several awards. It was chosen as the best PHP application in many of the awards.

Take a look at the features:

1. spontaneous Web Interface

2. It supports almost all MySQL features.

Browse and drop the databases, fields, views, indexes.

Create the databases, copy, rename.

Alter the databases, fields, views, tables, indexes

Maintain the server databases and tables

Executing the SQL statements and bookmark it, edit and even batch     queries

Manage the Users and the permissions.

It also manages the stored procedures and the triggers.

It has a support to import the data from SQL and CSV.

3. Support for exporting data to various formats i.e. SQL,CSV,XML, OpenDocument Text and Spreadsheet.

4. It export the data in normal Word, Excel also.

5. Ability to Administer multiple servers.

6. The database layout can be transformed into PDF graphics.

7. Complex Queries are created by the use of Query by Example(QBE)

8. Ability to search globally or a subset of the database.

9. It can transform the stored data into any format using the predefined functions.

10. Taking back ups of the databases.

The features listed above are just the key of them, you can explore more of them by using PHPmyAdmin

An Overview of Linux Web Hosting and LAMP technology

July 9th, 2009 Comments off

Linux Logo Linux Web Hosting itself explains that it is hosting of websites on the popular and most powerful server ie. Linux server. High quality web applications i.e. Linux Apache MySQL and PHP (LAMP) are used in Linux web hosting solutions. Linux is registered under GNU General Public License hence it is an open source software, therefore Linux web hosting solutions can be available at cheap rates as there is licensing fees that needs to be paid. Which isn’t the case with Windows, you need to pay licensing fees with every purchase of the OS.

One can avail good benefits with Linux Web Hosting services. With it web hosting providers offer many powerful and useful web applications that are very easy to use, a person with limited or no web master skills can easily manage the Linux hosting account/s.

Linux has gained popularity due to its stability in the hosting environment, which is one of the major reasons for people preferring Linux platform. Major website related tasks can be handled quite effectively with Linux web hosting. These plans are much cheaper than its competitor.

Understand the LAMP technology

LAMP Servers LAMP is an abbreviation of Linux Apache MySQL and PHP. These applications are one of the most popular web applications. Each of them are renowned due to their extreme power and their ability to effectively adapt to web hosting. This technology is well known due to its usability, stability, reliability and the variety of other features. The MySQL database and PHP scripting language are the most preferred applications.

Linux is a lot similar to Unix, as it is registered under the GNU General Public license, which means that it is freely available. Its source code can be easily modified and the modified versions can be redistributed. Linux can be extensively used on Web Servers, Desktop PC’s, Mobile phones, LapTops etc. Linux web servers are one of the extremely reliable and stable systems, it has the capability to handle an extensive range of applications. Due to Linux being an open source application, webmasters from across the globe keep upgrading it with the latest technologies. This enables Linux users to get these new features for free. There is no licensing fees that needs to be paid for these updated versions.

Apache Server Logo In this technology, Apache HTTP server comes second in the list. It is one of the highly used HTTP server across the globe. As a matter of fact, almost 50% of the existing websites use Apache. Most of the common and mostly used scripting languages such as Perl, PHP, Python etc. are supported by Apache. In addition to that, modules such as mod_auth, mod_auth_digest, mod_access, mod_digest etc. are supported by Apache. SSL (Secure Socket Layer), TLS (Transport Layer Security) and Proxy modules too are supported by Apache. Virtual Hosting which is a type of web hosting can be easily possible using Apache.

Understand the Benefits of Windows Server Hosting and Linux Server Hosting.

July 6th, 2009 Comments off

It is important to know few basic but important things when choosing a web hosting service provider for you business. You should be aware of the requirements of your website/s such as the language used for scripting for example MySQL, PHP, Perl, ASP, ASP.Net etc., you also need to adjust things according to the budget. Once, these things are clear, you can hunt for a suitable web hosting service provider. If you are targeting customers in a particular Geographical location, it is suggested to have your website hosted on servers that are placed in or near those areas.

There are two platforms namely Windows and Linux to choose for hosting your website/s Windows and Linux. If your website is designed using PHP and MySQL, Linux Web Hosting is the most recommended web hosting solution. But, incase you are planning to develop your website in ASP.Net, then you do not have any option other that going for Windows Web Hosting as ASP is supported by Windows only.

Both Linux Web Hosting and Windows Web Hosting have their individual benefits. Web Hosting providers offer various web hosting plans such as managed and unmanaged Dedicated server hosting, Semi-dedicated Web Hosting, Virtual Private Server (VPS) Hosting, Reseller Hosting and Shared Web Hosting for Linux and Windows platforms. Some web hosting providers also offer customization of Dedicated Web Hosting solutions.

Below are some benefits of Windows Web Hosting and Linux Web Hosting.

Benefits of Windows Web Hosting

A) On Windows server you can host websites the use Microsoft’s .Net technologies such as ASP.Net and VB.Net.

Windows Hosting Logo B) If you need a database, it is mandatory for you to choose a Windows Server Hosting plan for having a MSSQL database.

C) Access databases are available only with Windows Web Hosting solutions as Access is a Microsoft product and can be run on Windows Servers only.

D) Microsoft’s Sharepoint service too needs to be run on a Windows Server, hence Windows Web Hosting would be the perfect plan for you.

E) Windows Web Hosting solutions are particularly more costly than Linux Hosting as a licensing cost of Microsoft needs to be paid.

Benefits of Linux Web Hosting

A) Linux is an open source software and is registered under the GNU General Public License, hence you are not required to pay a licensing fees for the operating system. It can be downloaded for free from the internet.

Linux Logo B) Linux web hosting is considered as an affordable web hosting solution. The cost of distribution is borne by the web hosting service provider or the owner of the web site.

C) If you have used PHP, MySQL, PostgreSQL or Perl for developing your website, Linux Web Hosting solution would be the most appropriate for you.

D) Linux Web Hosting is comparatively more secure than Windows Web Hosting, hence it is a preferred platform of designers and programmers.

For small business websites, Linux hosting can be more appropriate and affordable hosting solution.

Drupal Web Hosting : Explained

June 4th, 2009 Comments off

Drupal is one among the different Open source Content Management Systems (CMS). It enables a user with an ease to publish, organize and manage large variety of content on a web-site. Many enterprises and Organisations use Drupal for their Community Portals, Blogs, E-commerce and other purposes.
Drupal Logo Many web hosting service providers offer Drupal Web Hosting packages. Once a relevant domain name is chosen, you can choose an appropriate web hosting plan. You should be clear with your web hosting requirements such as bandwidth, disk-space etc. The web hosting provider can suggest you the best suitable plan for hosting your Drupal website. Drupal offers  an advanced portal with collaborative book, search engines friendly URLs, online help, roles, full content search, site watching, threaded comments, version control, blogging, news aggregator. Drupal can be installed through cPanel which can be used with any Linux Hosting package.

Drupal application is developed by PHP and can be run against MySQL and PostgreSQL. Hence, one should search for a web hosting provider that offers support for PHP alongwith MySQL database support and PostgreSQL. Therefore, a Linux Web Hosting package is the perfect for your requirements. It is also important that the web host enable mod_rewrite module.

A hosting control panel along with the package can help you in multiple ways for managing the account. It can ease you to use the tools to create MySQL or Postgre SQL database as well as grant the access to others. You can execute back-ups as well  as restore it. With a control panel, you get an editor to modify the Cron jobs, which is extremely important for shared web hosting solution. There are many tasks that needs to be run at the same time, hence a permission to change the Cron file proves helpful for the Drupal Webmasters. With it you also get the privilege to access permission of the file and directory.

Before choosing a web hosting provider, you should get convinced about the connection speed between the web server and the database server. Usually, due to un-optimization of the connection speed between the two servers can run Drupal real slow. A stable server environment is very important for Drupal. One should make use of the review websites and customer testimonials while choosing a web hosting provider.