Archive for the 'PHP' Category
Viewing 11-20 of 23 FAQ -- Change the From: email address in PHP mail() :
Q. How do I change the email address in PHP mail() function?
A. The php mail() function allows you to send email.
mail() syntax:
bool mail ( string to, string subject, string message [, string additional_headers [, string additional_parameters]] )Where,
=> to: Receiver, or receivers of the mail.
=> subject: Subject of the email to [...] - Ubuntu Linux install or add php gd support to Apache :
Q. I am using Apache server and PHP5. How do I install install php gd support?
A. PHP is used mainly in server-side application software along with various addons.
PHP includes a large number of free and open source libraries with the core build. PHP is a fundamentally Internet-aware system with modules built in for accessing [...] - PHP Linux installation or php upgrade howto :
Q. How do I install PHP under Red Hat enterprise Linux?
A. PHP (Hypertext Preprocesso) is a server-side web programming language that you can embed into HTML pages. When a user accesses a PHP-based page, PHP dynamically creates a web page that is then passed to the browser.
PHP works with Apache, Lighttpd and other webservers. [...] - How to include files with PHP :
Q. How do you include files with PHP?
A. PHP has a special function called include().The include() statement includes and evaluates the specified file.
Foe example if you have a file called lib.php:
<?php
function test(){
echo “test() called”;
}
?>
Now you can include lib.php and call test() from demo.php:
<?php
include(”lib.php”);
test();
?>
Files for including are first looked in include_path relative to [...] - How to determine or retrieve visitor’s IP address using PHP :
Q. How do I determine or retrieve visitor’s IP address using PHP server side programming?
A. Use following enviorment variable to get visitor’s IP address:
No Proxy detection
=> REMOTE_ADDR - Remote client IP address
With Proxy detection
=> HTTP_X_FORWARDED_FOR - Get Proxy server IP
PHP getenv() function
=> Use php getenv() function to read the value of the environment. [...] - How to: Connect to my MySQL Database server using command line and php :
Q. How do I connect to my MySQL database server using command line (over ssh) or using PHP?
A. You can connect to MySQL database server using mysql command line client or using programming language such as PHP or perl.
Task: Use command line client - mysql
Genral syntax is as follows:
mysql -u DBUSER -h DBSERVERNAME -p
So [...] - Howto: PHP setup include_path :
Q. How do I set PHP include path?
A. The configuration file php.ini is read when PHP starts up. For the server module versions of PHP, this happens only once when the web server is started. For the CGI and CLI version, it happens on every invocation. This file is use to setup include_path.
Method # 1- [...] - Install and Test PHP on Linux system :
Q. How can I install and test PHP on Linux? How do I make sure it is working on my Linux system? I am using Red Hat Fedora Core Linux.
A. PHP (PHP Hypertext Preprocessor) is an open-source, programming language. Originally designed as a high level scripting language for producing dynamic Web pages, PHP is [...] - PHP not connecting to a MySQL database server :
Q. I have Apache Web server and MySQL configured. Everything works fine except I am not able to connect to a MySQL database server (I am able to connect mysql server with mysql client). So how do I configure or connect PHP scripts?
A. You need to install MySQL module for php4 or php5. Without php-mysql [...] - File size limit exceeded error under Linux and solution :
Q. I am trying to copy a file called act.dat and I am getting an error “file size limit exceeded” under Linux. How do I get rid of this error? In addition, I do have enough disk space to copy this file.
A. Your system administrator must have imposed limitation on your account for file size [...]
« Previous Page — Next Page »
Viewing 11-20 of 23 FAQ -


Recent Comments
Today ~ 1 Comment
Today ~ 3 Comments
Today ~ 57 Comments
Yesterday ~ 9 Comments
Yesterday ~ 7 Comments