Adblock breaks this site

A little help with some php

Discussion in 'Web Programming' started by theviper121, Dec 22, 2008.

  1. theviper121

    theviper121 Newcomer

    Joined:
    Jun 11, 2008
    Posts:
    5
    Referrals:
    0
    Sythe Gold:
    0
    A little help with some php

    Could someone glance at this a tell me why it only loads a blank page and does not create a new text file
    I have another page with a form on it providing
    rname
    rpass
    or
    name
    pass
    Note* rname and rpass are for creating a text file named the name of the user and then the first line being there password
    Note* name and pass are used to "login" and display there password
     
  2. Swan

    Swan When They Cry...
    Retired Global Moderator

    Joined:
    Jan 23, 2007
    Posts:
    4,957
    Referrals:
    0
    Sythe Gold:
    0
    Sythe's 10th Anniversary Member of the Month Winner
    A little help with some php

    Are you attempting to open the file directly in to your web browser? It won't work that way because PHP is a server-side language therefore it requires the PHP modules for it to work.

    There is a couple of ways to work with PHP on your computer though. The first I would recommend is to download an Apache server and install the PHP modules (or download an AMP package such as XAMPP).

    The next thing I would recommend is to download a PHP developer suite such as Eclipse PDT. Eclipse PDT can be found HERE. Assuming you don't have the Eclipse SDK, you will need to download the All-in-One package which is about 120MB.
     
  3. Jazz00006

    Jazz00006 Apprentice
    Visual Basic Programmers

    Joined:
    Aug 26, 2005
    Posts:
    807
    Referrals:
    0
    Sythe Gold:
    0
    A little help with some php

    WAMP > XAMPP And why use a dev suite, Notepad++ is as good an alternative as any.
     
  4. SuF

    SuF Legend
    Pirate Retired Global Moderator

    Joined:
    Jan 21, 2007
    Posts:
    14,212
    Referrals:
    28
    Sythe Gold:
    1,234
    Discord Unique ID:
    203283096668340224
    <3 n4n0 Two Factor Authentication User Community Participant Spam Forum Participant Sythe's 10th Anniversary
    A little help with some php

    XAMPP never would work for me, and then I just installed PHP by my self... not that hard.... Never heard of WAMP... Time for google? :D
     
  5. Swan

    Swan When They Cry...
    Retired Global Moderator

    Joined:
    Jan 23, 2007
    Posts:
    4,957
    Referrals:
    0
    Sythe Gold:
    0
    Sythe's 10th Anniversary Member of the Month Winner
    A little help with some php

    Because the developer suites tend to allow you to view the page you just created on-the-fly.
     
  6. Jazz00006

    Jazz00006 Apprentice
    Visual Basic Programmers

    Joined:
    Aug 26, 2005
    Posts:
    807
    Referrals:
    0
    Sythe Gold:
    0
    A little help with some php

    1. Turn on WAMP
    2. Load file in C:\WAMP\WWW\[Folder]\[Script]
    3. Edit(s)
    4. Open webbrowser
    5. Point it to Http://localhost/[Folder]/[Script]
    6. Edit(s)
    7. F5


    Repeat 6 & 7 until desired outcome is achieved.
    That's my method, saves my compy from running intensive apps (Not all of us have 8 core 9GHz PowerWhore machines).
     
  7. Zyloch

    Zyloch Member

    Joined:
    Apr 21, 2005
    Posts:
    63
    Referrals:
    0
    Sythe Gold:
    0
    A little help with some php

    What does "turn on WAMP" mean? I had always thought WAMP was just an acronym for the technologies used. Do you mean, run Apache server?

    Swan, I have not had personal experience with Eclipse for PHP. Is it any good? A friend of mine used it for his web design class, and it was a pain for me to help him with his projects, because his files ended up saving all over the place and not into htdocs. Maybe he was just using it incorrectly?

    I have used Zend Studio before, although I do not know if it has been updated for the most recent PHP version, and it was very nice, providing standard IDE features like autocomplete, so PHP IDEs can be very helpful. Other lightweight options I have tried and that have been good are ScITE and Vim; currently, I'm using Vim, which is working out very well.

    In any case, I suppose the first thing the OP needs to do is get PHP running on a local server. Unfortunately, it is also the part that gives beginners the most trouble.
     
  8. Jazz00006

    Jazz00006 Apprentice
    Visual Basic Programmers

    Joined:
    Aug 26, 2005
    Posts:
    807
    Referrals:
    0
    Sythe Gold:
    0
    A little help with some php

    WAMP is the set of applications, [Windows] Apache MySQL PHP.
    I guess I used the wrong word there, it's like saying 'Run Word'.

    LAUNCH THE WAMP APPLICATION PACKAGE THAT WILL ALLOW YOU TO RUN YOUR OWN WEB SERVER!
     
  9. Nullware

    Nullware Guru

    Joined:
    Jan 30, 2007
    Posts:
    1,761
    Referrals:
    4
    Sythe Gold:
    0
    A little help with some php

    Uh it sounds like he's phishing why are you helping him :S
     
< what do u think? | [Request] I need Someone to make a Website for me[Request] >


 
 
Adblock breaks this site