SitePoint Sponsor

User Tag List

Results 1 to 12 of 12
  1. #1
    Senior Webdesigner koolbrian's Avatar
    Join Date
    Dec 2000
    Location
    Mauritius
    Posts
    599
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hey,
    i've downloaded so much php script like community,chat,.......... but how does this thing work ?. I really don't understand their installation advice.........
    Firstly
    1) does a php script depend on a database to work ?
    2) must i just upload the script, i must create any database, or it creat automatically itself or what ?
    3)i've apache on my computer, i don't know if it works, is there any test to know ?
    4) once apache is working, can i see a php script , like in a chat script , setup.php ?????


    all these questions are messed up in my mind , could u please tell me some answer

    Thanx a LOT !

    Brian

  2. #2
    Not Bad, eh? Justin Sampson's Avatar
    Join Date
    Aug 2000
    Location
    N.S., Canada
    Posts
    487
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    1. If it say's it has any type of database (flatfile or mySQL) it probably need it to work.

    2. Without seeing or knowing what script it is that you are installing, it is hard to tell how to install it. If you READ the installation it should say. You will probably have to create the mySQL database yourself (if it uses mySQL).

    3. Yes, just put the files in your web root and create the database. To create the databse it is best to use phpMyAdmin.

    4. Yes, it should apear just the same is if you were runing it from your hosts web sever.

  3. #3
    One website at a time mmj's Avatar
    Join Date
    Feb 2001
    Location
    Melbourne Australia
    Posts
    6,282
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    You need to install php.

    Then, you need to install your php scripts in a directory that is within the web directory that Apache uses. You then need to view your php scripts using your browser, and actually typing in http://localhost/this/script.php or whatever, rather than just the filename.

    Most of those types of scripts you mentioned will need databases. Do you have mysql? I have never personally installed mysql on my local machine, it is handled by my host so I don't know how to install it.
    [mmj] My magic jigsaw
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    The Bit Depth Blog Twitter Contact me
    Neon Javascript Framework Jokes Android stuff

  4. #4
    Dumb PHP codin' cat
    Join Date
    Aug 2000
    Location
    San Diego, CA
    Posts
    5,460
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    koolbrian,

    I have noticed that you are basically posting the same type of messages in several locations. This one,
    http://www.sitepointforums.com/showt...threadid=20839

    http://www.sitepointforums.com/showt...threadid=20592

    http://www.sitepointforums.com/showt...threadid=20450

    http://www.sitepointforums.com/showt...threadid=20581


    All of these threads seem to deal with setting up a test environment for php dev on your local computer. I have seen dozens of good responses to to your questions. In this post
    http://www.sitepointforums.com/showt...threadid=19574

    The tutorial doesn't explain you how to create a php script!,
    Well koolbrian it takes more than just putting

    <?
    phpinfo();
    ?>

    in a file and calling it from the browser to get PHP to work properly. In Kevin's tutorial Part I Installation does in fact go as far as holding your hand while walking you through how to setup apache, php and mysql on your computer, I would suggest you read it again. If you are still having problems then ask again, but please try to use peoples' suggestions before reposting the same posts over and over again.
    Please don't PM me with questions.
    Use the forums, that is what they are here for.

  5. #5
    One website at a time mmj's Avatar
    Join Date
    Feb 2001
    Location
    Melbourne Australia
    Posts
    6,282
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I sort of did notice that koolbrian had a habit of following up his replies by starting a new thread... confusing.

    Thanks fred for the link to kev's tutorial, I was going to give that link but it's getting harder to find on teh sitepoint site...
    [mmj] My magic jigsaw
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    The Bit Depth Blog Twitter Contact me
    Neon Javascript Framework Jokes Android stuff

  6. #6
    Senior Webdesigner koolbrian's Avatar
    Join Date
    Dec 2000
    Location
    Mauritius
    Posts
    599
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    but u seem to don't understand the whole thing !. All the threads i've posted, there are ALL ACTUALY DIFFERENT, asking DIFFERENT questions!. One asking if database on my pc could work with internet, another one asking if i could upload a php script in the cgi-bin, another asking how to install php,.......... can u tell me WHERE is there the SAME question, and then, i'll agree !,
    come on tell me where there's the same questions !

    waiting.........

    Brian

    reply !

  7. #7
    Dumb PHP codin' cat
    Join Date
    Aug 2000
    Location
    San Diego, CA
    Posts
    5,460
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well since it appears you have yet to get a php script working then yes all of your questions fall back on one premise and that is getting php installed on your computer, until that happens all the other questions are mute. So let's work on the basics. Like me and others have said you need to have three things to make a php page work in your browser on your local computer.

    1) PHP
    2) Web Server (Apache, IIS, PWS, etc...)
    3) Web Browser(IE, Netscape, etc....)

    So to satrt I would work on those three things. I know you have said you got apache working and you want to know how to test it, I would start with Apache docs.

    If you can read this one it wioll show you how tyo get Apache and PHP installed on your machine:
    http://shanx.com/php/install_win32.txt


    I propose that you get those things installed and working and then start asking about how to configure scripts, etc....
    Please don't PM me with questions.
    Use the forums, that is what they are here for.

  8. #8
    SitePoint Enthusiast pman's Avatar
    Join Date
    Apr 2001
    Location
    Planet Namek
    Posts
    31
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    agh! I got suckered!!
    Last edited by pman; Apr 14, 2001 at 20:27.
    in persuit of world domination...uhh..for the better!

  9. #9
    SitePoint Enthusiast pman's Avatar
    Join Date
    Apr 2001
    Location
    Planet Namek
    Posts
    31
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    and one more thing...CGI-BIN and PHP are different. Generally, when talked about a "cgi-bin" it is for Perl.
    in persuit of world domination...uhh..for the better!

  10. #10
    SitePoint Wizard
    Join Date
    Mar 2001
    Posts
    3,537
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    ---censored---

    ---censored---
    Last edited by 7stud; Apr 14, 2001 at 17:53.

  11. #11
    SitePoint Enthusiast pman's Avatar
    Join Date
    Apr 2001
    Location
    Planet Namek
    Posts
    31
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i got suckered again!
    Last edited by pman; Apr 14, 2001 at 20:27.
    in persuit of world domination...uhh..for the better!

  12. #12
    SitePoint Wizard
    Join Date
    Mar 2001
    Posts
    3,537
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,

    Buy the book "PHP Essentials" by Julie Meloni. It shows you how to set up mysql/apache/php and it will instruct you on how to code php scripts very quickly. Another good book is "Beginning PHP4" from Wrox Press which also has installation instructions.

    Installation of mysql/apache/php is not very easy. Because of that some people have put together preconfigured packages, so that you can download it, and with one click be all set up. Here is where you can download one such package:

    http://www.firepages.com.au/devindex.htm?from=dev3

    The nice thing about that package is that the person who put it together, firepages, is a moderator at the server side forum at www.wsabstract.com, and he can help you with any problems you may encounter.

    For additional preconfigured packages, go here:

    http://www.hotscripts.com/PHP/Script...allation_Kits/

    For many different links on installation, go here:

    http://www.hotscripts.com/PHP/Tips_a...nstalling_PHP/

    For a beginning php tutorial go here:

    http://www.devshed.com/Server_Side/PHP/PHP101_1/

    and for additional beginning tutorials go here:

    http://www.hotscripts.com/PHP/Tips_a...uction_to_PHP/


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
  •