View previous topic :: View next topic |
Author |
Message |
Ragnor -
Joined: 08 May 2006 Posts: 3
|
Posted: Tue May 09, 2006 1:14 am Post subject: PHP not functioning |
|
|
I have recently integrated PHP into Abyss, following the instructions of how to do so exactly. It still doesn't work, however; when I load a page, it's as though when it sees the limiters, it just skips over whatever is in them. Not even simple echo commands work.
For instance:
Code: | <html>
<body>
<?php
echo "Will it work?";
?>
</body>
</html> |
Nothing doing. I've tried this file as an html document and as a php document. |
|
Back to top |
|
 |
AbyssUnderground -
Joined: 31 Dec 2004 Posts: 3855
|
|
Back to top |
|
 |
Tom Chapman -
Joined: 09 Jul 2005 Posts: 933 Location: Australia
|
Posted: Tue May 09, 2006 9:26 am Post subject: |
|
|
Firstly if you want php code to be processed, you must use a php extension. Have you set up php correctly? www.AbyssUnderground.co.uk |
|
Back to top |
|
 |
Ragnor -
Joined: 08 May 2006 Posts: 3
|
Posted: Tue May 09, 2006 10:25 pm Post subject: |
|
|
Yes, everything is set up exactly as it says.
...But now it magically works, even though I've made no changes to Abyss whatsoever. I've editted nothing, restarted nothing... just tried the test code the website said and it worked. And then, retrying my own code, that worked too...
...Does it have a certain time period where you can't use it, or do you have to view the credits first or something?
Whatever. I'm just glad it works now. Thanks for your help. :) Still odd, though. |
|
Back to top |
|
 |
Ragnor -
Joined: 08 May 2006 Posts: 3
|
Posted: Tue May 09, 2006 11:29 pm Post subject: |
|
|
Okay, on second thought, what appears to be happening is this. When I run php in a seperate document, all by itself, it works fine. It's when I try to integrate it into already existing code that it just skips over it. For instance the use of it with forms, with
Code: | <?php echo $_POST["uname"]; ?> |
However if I just make a php document with a bunch of echoes and phpinfo()s and whatever, it works fine.
EDIT: Here's the source I'm using. The HTML displays fine.
Code: | <form action="login.php" method="POST" target="mainscreen">
Username: <input type="text" name="uname" size="15" />
Password: <input type="text" name="pass" size="15" />
<input type="submit" value="Log In" />
</form> |
Note: the target="mainscreen" just designates the screen to load in a seperate iframe.
login.php
Code: | <html>
<body>
<hr>
Welcome <?php echo $_POST["uname"]; ?>!<br />
Your current password is <?php echo $_POST["pass"]; ?>.
<hr>
</body>
</html> |
Obviously I'm not going to have it display the password for the website. This is just for testing purposes. Any thoughts?
EDIT TWO: And nevermind, I am just a moron. I wasnt going through Abyss when loading the documents, just loading the HTML docs straight from the computer. Sorry for wasting your time. :-P |
|
Back to top |
|
 |
|