A little help with some php

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

A little help with some php
  1. Unread #1 - Dec 22, 2008 at 8:00 PM
  2. theviper121
    Joined:
    Jun 11, 2008
    Posts:
    5
    Referrals:
    0
    Sythe Gold:
    0

    theviper121 Newcomer

    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
     
  3. Unread #2 - Dec 22, 2008 at 9:56 PM
  4. Swan
    Joined:
    Jan 23, 2007
    Posts:
    4,957
    Referrals:
    0
    Sythe Gold:
    0
    Sythe's 10th Anniversary Member of the Month Winner

    Swan When They Cry...
    Retired Global Moderator

    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.
     
  5. Unread #3 - Dec 22, 2008 at 10:52 PM
  6. Jazz00006
    Joined:
    Aug 26, 2005
    Posts:
    807
    Referrals:
    0
    Sythe Gold:
    0

    Jazz00006 Apprentice
    Visual Basic Programmers

    A little help with some php

    WAMP > XAMPP And why use a dev suite, Notepad++ is as good an alternative as any.
     
  7. Unread #4 - Dec 22, 2008 at 11:01 PM
  8. SuF
    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

    SuF Legend
    Pirate Retired Global Moderator

    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
     
  9. Unread #5 - Dec 22, 2008 at 11:23 PM
  10. Swan
    Joined:
    Jan 23, 2007
    Posts:
    4,957
    Referrals:
    0
    Sythe Gold:
    0
    Sythe's 10th Anniversary Member of the Month Winner

    Swan When They Cry...
    Retired Global Moderator

    A little help with some php

    Because the developer suites tend to allow you to view the page you just created on-the-fly.
     
  11. Unread #6 - Dec 23, 2008 at 1:52 AM
  12. Jazz00006
    Joined:
    Aug 26, 2005
    Posts:
    807
    Referrals:
    0
    Sythe Gold:
    0

    Jazz00006 Apprentice
    Visual Basic Programmers

    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).
     
  13. Unread #7 - Dec 23, 2008 at 2:07 AM
  14. Zyloch
    Joined:
    Apr 21, 2005
    Posts:
    63
    Referrals:
    0
    Sythe Gold:
    0

    Zyloch Member

    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.
     
  15. Unread #8 - Dec 23, 2008 at 3:40 AM
  16. Jazz00006
    Joined:
    Aug 26, 2005
    Posts:
    807
    Referrals:
    0
    Sythe Gold:
    0

    Jazz00006 Apprentice
    Visual Basic Programmers

    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!
     
  17. Unread #9 - Dec 23, 2008 at 7:47 PM
  18. Nullware
    Joined:
    Jan 30, 2007
    Posts:
    1,761
    Referrals:
    4
    Sythe Gold:
    0

    Nullware Guru

    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] >

Users viewing this thread
1 guest


 
 
Adblock breaks this site