[b]Me again[/b]

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


Joined: 29 Jan 2004
Posts: 18
Location: London

PostPosted: Sat Jan 31, 2004 7:21 pm    Post subject: [b]Me again[/b] Reply with quote

Hey all

I had a bit of trouble earlier with CGi but i'm all sorted now, I am itching to learn php, but i need php enabled on my web server.

I have donwloaded Php and installed it fine - No Problem.

I am working with this script:

<HTML>
<HEAD>
<TITLE>My first PHP script</TITLE>
</HEAD>
<BODY>
<CENTER>My first PHP script</CENTER>

<?
echo "<center>Hello World<P></center>";
$today = date( "l dS of F Y h:i:s A" );
PRINT "<CENTER>Today is: $today.</CENTER>";
?>
</BODY>
</HTML>

But when i try to open it up, it loads Dreamweaver and shows my script. HELP!
Back to top View user's profile Send private message Visit poster's website MSN Messenger
Moxxnixx
-


Joined: 21 Jun 2003
Posts: 1226
Location: Florida

PostPosted: Sat Jan 31, 2004 8:08 pm    Post subject: Reply with quote

You can't just double-click on the .php and expect it to show.
You have to browse to it in your browser via your site. :wink:
Back to top View user's profile Send private message Visit poster's website
sean
-


Joined: 29 Jan 2004
Posts: 18
Location: London

PostPosted: Sun Feb 01, 2004 7:47 pm    Post subject: I did do that! Reply with quote

I went into Explorer, right clicked on test.php and clicked open with...Internet explorer. Just a blank page appears. I view the source and it shows the php code there.

Here's what i'm working with:
<html>

<body>



<?php

$myvar = "Hello World";

echo $myvar;

?>



</body>

</html>

Any ideas why not?
Back to top View user's profile Send private message Visit poster's website MSN Messenger
Moxxnixx
-


Joined: 21 Jun 2003
Posts: 1226
Location: Florida

PostPosted: Sun Feb 01, 2004 7:59 pm    Post subject: Reply with quote

Again, let me remind you. You have to go to it in your browser by typing your address to your website.
Code:
http://yourIP/test.php

Right-clicking and choosing "open with...IE" just won't do it because you're totally bypassing your server.
Back to top View user's profile Send private message Visit poster's website
sean
-


Joined: 29 Jan 2004
Posts: 18
Location: London

PostPosted: Sun Feb 01, 2004 9:30 pm    Post subject: Nope Reply with quote

Man, appreciate it but no joy. Shall i re-install php in the same folder as my web server?
Back to top View user's profile Send private message Visit poster's website MSN Messenger
Moxxnixx
-


Joined: 21 Jun 2003
Posts: 1226
Location: Florida

PostPosted: Sun Feb 01, 2004 10:36 pm    Post subject: Reply with quote

You don't need to.

If you didn't already, go here:
http://www.aprelium.com/abyssws/php.html
and install php EXACTLY like it says.
Then it'll work. :wink:
Back to top View user's profile Send private message Visit poster's website
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Mon Feb 02, 2004 7:05 pm    Post subject: Reply with quote

Install PHP as adviced above, put your test.php file in htdocs/, and browse http://127.0.0.1/test.php . Using the browser is the only way to get the page from the server.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
sean
-


Joined: 29 Jan 2004
Posts: 18
Location: London

PostPosted: Mon Feb 02, 2004 7:57 pm    Post subject: I've done that! Reply with quote

i made sure php was installed like that guide, browsed to url in my browser but still nothing. I just get a blank screen, and when i view my source, it shows the php script. Any ideas?
Back to top View user's profile Send private message Visit poster's website MSN Messenger
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Tue Feb 03, 2004 2:40 am    Post subject: Reply with quote

Maybe mine is more easy to follow ? :?

http://os17fan.cjb.net
Back to top View user's profile Send private message Visit poster's website
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Wed Feb 04, 2004 2:17 pm    Post subject: Re: I've done that! Reply with quote

sean,

Please send your abyss.conf file to support@aprelium.com and we'll tell you what's wrong with your configuration.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
meatmuppet
-


Joined: 04 Feb 2004
Posts: 3
Location: Reno, NV

PostPosted: Wed Feb 04, 2004 11:39 pm    Post subject: getting php to work on Win98 Abyss install Reply with quote

Aprelium,

Thank you thank you thank you. I came to this thread in desperation, trying to get php to work with Abyss on my Win98 machine. For some reason, none of the "help" manuals I've read contain your simple words of advice (which is probably common knowledge to experienced server admins): start the php script from the Address bar in the browser. This worked! So easy, and yet, not obvious to a newbie like me.

On to the coding...
Thank You!

Tim in Reno NV
Back to top View user's profile Send private message
sean
-


Joined: 29 Jan 2004
Posts: 18
Location: London

PostPosted: Thu Feb 05, 2004 11:51 pm    Post subject: FINALLY!!! Reply with quote

I just went for it,

I re-installed everything, even abyss, and it works fine now. And so do my php scripts :P

Just a quick note to say thanks to everyone, really do appreciate it.

No doubt i'll be on here with another problem soon enough :wink:

See ya for now,

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