View previous topic :: View next topic |
Author |
Message |
sean -
Joined: 29 Jan 2004 Posts: 18 Location: London
|
Posted: Sat Jan 31, 2004 7:21 pm Post subject: [b]Me again[/b] |
|
|
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 |
|
 |
Moxxnixx -
Joined: 21 Jun 2003 Posts: 1226 Location: Florida
|
Posted: Sat Jan 31, 2004 8:08 pm Post subject: |
|
|
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 |
|
 |
sean -
Joined: 29 Jan 2004 Posts: 18 Location: London
|
Posted: Sun Feb 01, 2004 7:47 pm Post subject: I did do that! |
|
|
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 |
|
 |
Moxxnixx -
Joined: 21 Jun 2003 Posts: 1226 Location: Florida
|
Posted: Sun Feb 01, 2004 7:59 pm Post subject: |
|
|
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 |
|
 |
sean -
Joined: 29 Jan 2004 Posts: 18 Location: London
|
Posted: Sun Feb 01, 2004 9:30 pm Post subject: Nope |
|
|
Man, appreciate it but no joy. Shall i re-install php in the same folder as my web server? |
|
Back to top |
|
 |
Moxxnixx -
Joined: 21 Jun 2003 Posts: 1226 Location: Florida
|
Posted: Sun Feb 01, 2004 10:36 pm Post subject: |
|
|
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 |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Mon Feb 02, 2004 7:05 pm Post subject: |
|
|
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 |
|
 |
sean -
Joined: 29 Jan 2004 Posts: 18 Location: London
|
Posted: Mon Feb 02, 2004 7:57 pm Post subject: I've done that! |
|
|
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 |
|
 |
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Wed Feb 04, 2004 2:17 pm Post subject: Re: I've done that! |
|
|
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 |
|
 |
meatmuppet -
Joined: 04 Feb 2004 Posts: 3 Location: Reno, NV
|
Posted: Wed Feb 04, 2004 11:39 pm Post subject: getting php to work on Win98 Abyss install |
|
|
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 |
|
 |
sean -
Joined: 29 Jan 2004 Posts: 18 Location: London
|
Posted: Thu Feb 05, 2004 11:51 pm Post subject: FINALLY!!! |
|
|
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 |
|
 |
|