PHP not functioning

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
Ragnor
-


Joined: 08 May 2006
Posts: 3

PostPosted: Tue May 09, 2006 1:14 am    Post subject: PHP not functioning Reply with quote

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 View user's profile Send private message
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Tue May 09, 2006 9:25 am    Post subject: Reply with quote

Is .php in the php interpreters file extension box? Follow www.abyssunderground.co.uk/tutorials-php.php
_________________
Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk
Back to top View user's profile Send private message Visit poster's website
Tom Chapman
-


Joined: 09 Jul 2005
Posts: 933
Location: Australia

PostPosted: Tue May 09, 2006 9:26 am    Post subject: Reply with quote

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 View user's profile Send private message Visit poster's website MSN Messenger
Ragnor
-


Joined: 08 May 2006
Posts: 3

PostPosted: Tue May 09, 2006 10:25 pm    Post subject: Reply with quote

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 View user's profile Send private message
Ragnor
-


Joined: 08 May 2006
Posts: 3

PostPosted: Tue May 09, 2006 11:29 pm    Post subject: Reply with quote

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 View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group