Need Help on PHP: Beginner

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • teddybear
    New Member
    • Jun 2006
    • 6

    #1

    Need Help on PHP: Beginner

    Hi, I begin to write PHP but run into problem already.
    First, I do not know where to put my PHP code? Where is the IIS Root Directory? (I'm using Windows XP).
    I have run Installer... but when I open my browser and type:
    http://localhost/hello.php, what I got is an error message:

    <p>This PHP CGI binary was compiled with force-cgi-redirect enabled. This
    means that a page will only be served up if the REDIRECT_STATUS CGI variable is
    set, e.g. via an Apache Action directive.</p>
    <p>For more information as to <i>why</i> this behaviour exists, see the <a href="http://php.net/security.cgi-bin">manual page for CGI security</a>.</p>
    <p>For more information about changing this behaviour or re-enabling this webserver,
    consult the installation file that came with this distribution, or visit
    <a href="http://php.net/install.windows ">the manual page</a>.</p>

    I really do not understand how to make my first PHP "Hello World" works?
    Probably this is stupid question but please help.
    Thanks!

    -Ted
  • sankviju
    New Member
    • Jun 2006
    • 3

    #2
    Hi,

    You install the follwoing s/ws first
    www.apache.org -apache server
    php.net- php
    mysql.com -mysql windows version
    Then edit httpd conf file in apaches conf dir:
    add module :LoadModule php5_module "c:/php/php5apache2.dll " at line no:173(i assume)(check wther the module exist there in C:php/
    Then install php in C:
    Install mysql in E or D
    then edit C/php/php.ini

    remove ; from
    ;extension=php_ mysql.dll at line no:647

    For more help

    PHP is a popular general-purpose scripting language that powers everything from your blog to the most popular websites in the world.

    www.phpfreaks.com
    Zend is a trusted source for PHP development platforms, including secure runtimes, PHP monitoring tools & full PHP support for developers worldwide.



    All the best

    Vijesh Nair

    sankviju@rediff mail.com

    Comment

    Working...