• Log in or sign up for an account here: https://www.sythe.org/login

A little help with some php

theviper121

Newcomer
Joined
Jun 11, 2008
Sythe Gold
0
Messages
5
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
 
Member of the Month Winner
Sythe's 10th Anniversary
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.
 
WAMP > XAMPP And why use a dev suite, Notepad++ is as good an alternative as any.
 
<3 n4n0
Discord Verified
Two Factor Authentication User
Community Participant
Spam Forum Participant
Sythe's 10th Anniversary
Sythe Awards 2011 Winner
WAMP > XAMPP And why use a dev suite, Notepad++ is as good an alternative as any.

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
 
Member of the Month Winner
Sythe's 10th Anniversary
WAMP > XAMPP And why use a dev suite, Notepad++ is as good an alternative as any.
Because the developer suites tend to allow you to view the page you just created on-the-fly.
 
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).
 
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.
 
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!
 
Uh it sounds like he's phishing why are you helping him :S
 
duelarena.gg
Back
Top