Hi frndss file concept is most important in php.Today i learned something in file concept.. I am happy to share my readings
1.Read Local file
The easiest way to read the content of a disk file in PHP file_get_contents .
2.Reading Remove File
file_get_contents and file() both are support to reading data in URLs also either using HTTP or FTP.
3.Following functions are main things in PHP
fgets() => It is used to read the number of bytes from a file.
fopen() => It is used to open the file.
('r') => It is used to read the file
('w') => It is used to write a file.
Tuesday, October 27, 2009
Friday, October 16, 2009
Session in php
Mostly the following questions very important for PHP :
1.what is use of session?
A session is a logical object created by the PHP engine to allow you to preserve data across subsequent HTTP requests.
There is only one session object available to your PHP scripts at any time. Data saved to the session by a script can be retrieved by the same script or another script when requested from the same visitor.
Sessions are commonly used to store temporary data to allow multiple PHP pages to offer a complete functional transaction for the same visitor.
2. How to start ans destroy session in php?
1. session_start();
2. session _destroy();
Below example show u how to start and destroy:
3. PHP session variables:
1.what is use of session?
A session is a logical object created by the PHP engine to allow you to preserve data across subsequent HTTP requests.
There is only one session object available to your PHP scripts at any time. Data saved to the session by a script can be retrieved by the same script or another script when requested from the same visitor.
Sessions are commonly used to store temporary data to allow multiple PHP pages to offer a complete functional transaction for the same visitor.
2. How to start ans destroy session in php?
1. session_start();
2. session _destroy();
Below example show u how to start and destroy:
3. PHP session variables:
Monday, October 5, 2009
PHP basic program
Special charcter
Use "\n" to add a line break
print "AA\nBB\nCC\nDD\nEE";
?>
output:
Use "\n" to add a line break
AA
BB
CC
DD
EE
Subscribe to:
Comments (Atom)