PHP Page Browser
Moderator: General Moderators
-
Benrr101
- Forum Newbie
- Posts: 7
- Joined: Thu Aug 05, 2004 4:00 pm
- Location: USA (wanna be in Canada)
- Contact:
PHP Page Browser
I am wondering, is it possible to find a program that will load a PHP page already processed?
In other words is there a program that will veiw PHP pages the way they are ment to be seen?
I am desperate to find an answer to this, becuase time is a factor! A very big factor. So please hurry with the answer.
It may help if I tell you that I am running PWS 4.0 on Windows 98 and I have PHP 5.0 installed. It does not work tho. I would like to know the answer to my first problem before I get an answer to the second.
Thanks
I really need that answer!
In other words is there a program that will veiw PHP pages the way they are ment to be seen?
I am desperate to find an answer to this, becuase time is a factor! A very big factor. So please hurry with the answer.
It may help if I tell you that I am running PWS 4.0 on Windows 98 and I have PHP 5.0 installed. It does not work tho. I would like to know the answer to my first problem before I get an answer to the second.
Thanks
I really need that answer!
-
ldomingues
- Forum Commoner
- Posts: 41
- Joined: Fri Aug 06, 2004 1:15 pm
- Location: Portugal
well, doesn't the usual way of setting the PHP (I mean reading the manual: http://www.php.net/manual/en/install.iis.php at least) work for you?
-
Benrr101
- Forum Newbie
- Posts: 7
- Joined: Thu Aug 05, 2004 4:00 pm
- Location: USA (wanna be in Canada)
- Contact:
I suppose if Apache is the only way to get my
code to work,
I guess I'll have to.
The code above is all the code I use I only use to save me the trouble of updating everylink if one page changes. I just change my links to
Like that, If you can give me another way to do that, I'd apreciate it, but I'd like it if you can just explain how to get Apache installed with PHP (or i'll use bigAbache) or how to get PWS to work... 
Thanks, becuase I need all the help I can get.
Code: Select all
<?PHP include ("page") ?>I guess I'll have to.
The code above is all the code I use I only use to save me the trouble of updating everylink if one page changes. I just change my links to
Code: Select all
ztemp.freeprohost.com/index.php?page=news.htmlThanks, becuase I need all the help I can get.
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
uhh...
would attempt to load a file named "page".
try this instead:
however, be very very very careful with doing stuff blindly like this, as you could be asked to include a file you didn't intend to.. which could give someone a lot of ability to retrieve sensitive information from your server...
Code: Select all
<?php include("page") ?>try this instead:
Code: Select all
<?php
include (isset($_GET['page']) && is_file($_GET['page'])) ? $_GET['page'] : 'your_default_include';
?>-
Benrr101
- Forum Newbie
- Posts: 7
- Joined: Thu Aug 05, 2004 4:00 pm
- Location: USA (wanna be in Canada)
- Contact:
I understand, but the code that I use now works just fine,
"page" acts as a variable and in the link, index.php?page=news.html, page gets a value, which means that the code would actually be which would include news.html
am I right??? if not, just see that my page actually works with the code. go to ztemp.freeprohost.com/index.php?page=news.html see if it works!
I got it from http://www.e-zelda.com
But I'm happy with it.
Oh, and I can't download bigapache, it's 101 megs!
Maybe I should give up... all I wanted was a program that would display preprocessed PHP code....
"page" acts as a variable and in the link, index.php?page=news.html, page gets a value, which means that the code would actually be
Code: Select all
<?php include("news.html") ?>am I right??? if not, just see that my page actually works with the code. go to ztemp.freeprohost.com/index.php?page=news.html see if it works!
I got it from http://www.e-zelda.com
But I'm happy with it.
Oh, and I can't download bigapache, it's 101 megs!
Maybe I should give up... all I wanted was a program that would display preprocessed PHP code....