SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast Lazarus's Avatar
    Join Date
    Aug 1999
    Location
    Singapore
    Posts
    33
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    How do I find out whether I have PHP installed on my server or not?

    Also, my system admin gave me a port number when he installed mySQL for me. What is the port number for?

    And lastly, does anyone have any good PHP books to recommend?

  2. #2
    SitePoint Member
    Join Date
    Jun 2000
    Location
    NJ
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    There are two ways to determine if you have php installed:

    - Create a file called phpinfo.php, and place the following code in it:

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">code/font><HR><pre>
    &lt;? phpinfo(); ?&gt;
    [/code]

    - Second, you can create another file called version.php, and put the following code in it:

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">code/font><HR><pre>
    &lt;?php
    echo "Current Version is: ".phpversion();
    ?&gt;
    [/code]

    Then run either of those files in your browser. If it works, you hae php installed. The first one should give you tons of information about your server, the second one will just return the version number.

    There are two php books that stick out: One is "Professional PHP Programming" by Wrox, it's a red book with 5 goofy looking guys on the front; and the other one is "PHP3: Programming Browser Based Applications" by David Medinets. The second book goes more into phplib, and really opens your mind to many things. I recommend reading the Medinets book first, and the Wrox book second. Together they give you a great combination of theory and logic.

    Good luck!

    PS: If you're looking for a MySQL book, there is one by Paul DuBois which is the only book on mysql you will need.

    -Jim

  3. #3
    SitePoint Enthusiast
    Join Date
    Jun 2000
    Location
    montreal, quebec, canada
    Posts
    59
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Additional note; those scripts from jimbo are fine, but if you get nothing, it doesn't neccessarily mean you don't have PHP installed. For some reason, my server won't run scripts unless the extension is ".php3"


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •