PHP MySql Web Hosting

PHP and MySQL Web Development

1.9 Setting Environment Variables 1.9.1 Problem You need

Filed under: MySQL Solutions — webmaster @ 12:22 pm

1.9 Setting Environment Variables 1.9.1 Problem You need to modify your operating environment, for example, to change your shell’s PATH setting. 1.9.2 Solution Edit the appropriate shell startup file. Under Windows NT-based systems, another alternative is to use the System control panel. 1.9.3 Discussion The shell or command interpreter you use to run programs from the command-line prompt includes an environment in which you can store variable values. Some of these variables are used by the shell itself. For example, it uses PATH to determine which directories to look in for programs such as mysql. Other variables are used by other programs (such as PERL5LIB, which tells Perl where to look for library files used by Perl scripts). Your shell determines the syntax used to set environment variables, as well as the startup file in which to place the settings. Typical startup files for various shells are shown in the following table. If you’ve never looked through your shell’s startup files, it’s a good idea to do so to familiarize yourself with their contents. Shell Possible startup files csh, tcsh .login, .cshrc, .tcshrc sh, bash, ksh .profile .bash_profile, .bash_login, .bashrc DOS prompt C:AUTOEXEC.BAT The following examples show how to set the PATH variable so that it includes the directory where the mysql program is installed. The examples assume there is an existing PATH setting in one of your startup files. If you have no PATH setting currently, simply add the appropriate line or lines to one of the files. If you’re reading this section because you’ve been referred here from another chapter, you’ll probably be more interested in changing some variable other than PATH. The instructions are similar because you use the same syntax. The PATH variable lists the pathnames for one or more directories. If an environment variable’s value consists of multiple pathnames, it’s conventional under Unix to separate them using the colon character (:). Under Windows, pathnames may contain colons, so the separator is the semicolon character ( ;) .

Note: If you are looking for good and high quality web space to host and run your application check Lunarwebhost Cheap Web Hosting services

No Comments

No comments yet.

RSS feed for comments on this post. TrackBack URI

Sorry, the comment form is closed at this time.

Powered by PHP MySQL Web Hosting