1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

how do i run some php coding?

Discussion in 'PHP & Perl' started by links, Apr 10, 2009.

  1. links

    links Regular Member

    Joined:
    Mar 4, 2009
    Messages:
    210
    Likes Received:
    195
    i have some php coding, how do i run it?
     
  2. eeezy

    eeezy Newbie

    Joined:
    Apr 15, 2009
    Messages:
    5
    Likes Received:
    0
    You need a webhost.

    000webhost.com

    Once you signup, connect to your FTP and upload the file.
     
  3. aReJay

    aReJay Power Member

    Joined:
    Apr 29, 2009
    Messages:
    736
    Likes Received:
    237
    Location:
    Down under
    Install xampp on your local computer to test out your code!
     
  4. clifford

    clifford Newbie

    Joined:
    Jan 19, 2009
    Messages:
    41
    Likes Received:
    29
    Occupation:
    I do nothing
    Location:
    Somewhere On This Earth
    Then after you that, watch this guys videos.

    Code:
    http://www.youtube.com/profile?user=thenewboston&view=videos&query=php
    He has a video on installing xampp too. Not hard to do at all. Took me 10 minutes from start of download.:D
     
  5. ukescuba

    ukescuba Jr. VIP Jr. VIP Premium Member

    Joined:
    Feb 24, 2008
    Messages:
    994
    Likes Received:
    634
    Occupation:
    Mobile Marketer & QR Code Junkie
    Location:
    San Antonio, TX
    Home Page:
    all the above but dont forget to make sure your php code starts with

    <?php

    and ends with

    ?>

    and to save the file type as .php

    otherwise its definitely not going to work...
     
  6. dukefx

    dukefx Jr. VIP Jr. VIP Premium Member

    Joined:
    Mar 8, 2009
    Messages:
    246
    Likes Received:
    109
    Occupation:
    VP Information Technology
    Location:
    Dagobah

    this is a good suggestion, try it
     
  7. Nitros

    Nitros Power Member

    Joined:
    Jan 30, 2009
    Messages:
    573
    Likes Received:
    295
    If you don't want to install localhost on your machine you can also try this new software called roadsend. It's a php compiler.
     
  8. ukescuba

    ukescuba Jr. VIP Jr. VIP Premium Member

    Joined:
    Feb 24, 2008
    Messages:
    994
    Likes Received:
    634
    Occupation:
    Mobile Marketer & QR Code Junkie
    Location:
    San Antonio, TX
    Home Page:
    personally i prefer to run the code on the actual machine its going on, especially if its a lot of code, or a php script...

    there are so many different ways a server can be configured you can spend hours getting the site to run perfectly on your testbed move it over to the place its being hosted and find yourself spending a load more time trying to get it working again...
     
  9. alexff

    alexff Newbie

    Joined:
    Apr 28, 2009
    Messages:
    15
    Likes Received:
    3
    Install WAMP or xampp on your computer, place your php script in www folder, run the programe (WAMP/xampp) now type your browser "localhost" to test out your code!
     
  10. showboytridin

    showboytridin Regular Member

    Joined:
    Sep 5, 2009
    Messages:
    348
    Likes Received:
    714
    Location:
    127.0.0.1
    You can also install LAMP. Install a Linux distribution and then apache, PHP and MySQL.
     
  11. howdoyou

    howdoyou Regular Member

    Joined:
    Nov 17, 2008
    Messages:
    284
    Likes Received:
    57
    Occupation:
    Programming
    Location:
    Kentucky
    I use XSAS, no installation required - works great.
     
  12. yuvraj

    yuvraj Regular Member

    Joined:
    Jan 26, 2010
    Messages:
    290
    Likes Received:
    166
    Location:
    Inside
    Thanks guys i am also getting problem now my problem is solved..
     
  13. voyevoda

    voyevoda Regular Member Premium Member

    Joined:
    Mar 21, 2010
    Messages:
    217
    Likes Received:
    97
    Location:
    Eastern Front
    XAMPP on Windows, MAMP on Mac OSX, or just use your package manager if you run some kind of Linux/BSD. :)
     
  14. hiderightnow

    hiderightnow Junior Member

    Joined:
    Jul 19, 2010
    Messages:
    104
    Likes Received:
    22
    Nobody asked you if your php code is part of an online project (such as a website) or just a php command line program. PHP evolved into more than a webpage programming language, you can use it for scripting and such. You can run the php via a webserver (like Apache+PHP interpreter, or more easily a XAMPP version that already contains PHP, Apache, MySQL etc) or you can run it with the php command line interpreter (php.exe if on windows) if you have a "program" php file.
     
  15. sockpuppet

    sockpuppet Junior Member

    Joined:
    Nov 7, 2011
    Messages:
    155
    Likes Received:
    145
    this thread must be your record, almost 3 years old!