This is a discussion on RE: [PHP] [Newbie Guide] For the benefit of new members within the PHP General forums, part of the PHP Programming Forums category; Ma Siva Kumar <mailto:tech@leatherlink.net> on Tuesday, December 09, 2003 4:00 PM said: > 4. ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Ma Siva Kumar <mailto:tech@leatherlink.net>
on Tuesday, December 09, 2003 4:00 PM said: > 4. Just put the following code into a file with a > .php extension and access it through your > webserver: > > <?php > phpinfo(); >> > > This will display tons of info if php is enabled, > or, it will ask you to download a file if php is > NOT enabled. (contributed by Teren) I think this point could do with having it's wording changed. My suggestion: Not sure if PHP is working or you want find out what extensions are available to you? Just put the following code into a file with a .php extension and access it through your webserver: <?php phpinfo(); ?> If PHP is installed you will see a page with a lot of information on it. If PHP is not installed (or not working correctly) your browser will try to download the file. > 6. PHP is a server side scripting language. > Whatever processing PHP does takes > place BEFORE the output reaches the client. > Therefore, it is not possible to access the > users' computer related information (OS, screen > size etc) using PHP. You need to go for > JavaScript and ask the question in a JavaScript > list. > > (You can access information SENT by the user's > browser while requesting pages from your server. > You can get the details about browser, OS etc as > reported by this request. - contributed by Wouter > van Vliet) May I proppose the following rewording for the second paragraph: On the other hand you can access the information that is SENT by the user's browser when a client requests a page from your server. You can find details about browser, OS etc as reported by this request. - contributed by Wouter van Vliet Chris. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|