You are here: Re: Apache 2.0.54, Windows 2k, and php5.0.5 - do the work together « PHP Programming Language « IT news, forums, messages
Re: Apache 2.0.54, Windows 2k, and php5.0.5 - do the work together

Posted by claudel on 11/15/15 11:26

In article <0m09i1lskqaeotn78ipsa6s8smrfe35rqq@4ax.com>,
Andy Hassall <andy@andyh.co.uk> wrote:
>On 10 Sep 2005 20:33:37 -0700, "weissborn@charter.net" <weissborn@charter.net>
>wrote:
>
>>I'm a php newbie. I have installed apache 2.0.54 and php 5.0.5 on my
>>win2k box. However, it does not appear the php is working properly. I
>>base this on the following code(which I got from a book):
>
> The book is apparently quite old.
>
>><?php
>>$envs = array ("HTTP_REFERER", "HTTP_USER_AGENT", "REMOTE_ADDR",
>> "REMOTE_HOST", "QUERY_STRING", "PATH_INFO");
>>foreach ($envs as $env)
>> print "$env: $GLOBALS[$env]<br>";
>
> None of the above are set as globals in the default and recommended
>configuration of PHP since PHP 4.2.0.
>
> You (correctly) have register_globals disabled. See the manual for more
>details.
>
> The content you're after will be available from the $_SERVER array.
>
>--
>Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
>http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool

Make a fiel, call it test.php.

cut 'n paste this into it

__________________

<?php

phpinfo();

?>

___________________

load the fiel from your server root with your browser.

If it gives you a bunch of info then your setup is working.

If not, then it is not.


Happy Trails


Claude

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация