Search found 12 matches

by Bangas
Thu Sep 29, 2005 4:54 am
Forum: PHP coding => General
Topic: php displays in html output
Replies: 5
Views: 1096

ok. yeah, but the thing is, the php include itself is not being parsed.
It not just an issue of invalid syntax. If it were, I'd get a parser error.

I think it has something to do with the fact that the include() is inside an echo''
by Bangas
Thu Sep 29, 2005 4:47 am
Forum: PHP coding => General
Topic: php displays in html output
Replies: 5
Views: 1096

example of what Im doing

Here is an example of what im trying to do. Hope it gives you an idea of what I might be doing wrong: (IP address 255.255.255.255 is an example) <?php if ($_SERVER['REMOTE_ADDR']=='255.255.255.255') echo ' <html><head> <title>page 1</title> </head> <body> <p>This is the page I am using the i...
by Bangas
Thu Sep 29, 2005 2:40 am
Forum: PHP coding => General
Topic: php displays in html output
Replies: 5
Views: 1096

php displays in html output

I have writen a php script that uses an if statment to output different html. Inside some of thee html, there is a "<?php include "foo.php"; ?>". When I run the script, the page displays normaly, except the file is not included. when I view page source in my browser, the "<?php include "foo.php"; ?>...
by Bangas
Sun Aug 07, 2005 4:05 am
Forum: Server installation and configuration
Topic: allow indexes for one directory
Replies: 5
Views: 4529

no worky

sorry guys, but that no worky. I put it in under the place that says, # Each directory to which Apache has access can be configured with respect # to which services and features are allowed and/or disabled in that # directory (and its subdirectories). # # First, we configure the "defaul...
by Bangas
Fri Aug 05, 2005 1:38 am
Forum: Server installation and configuration
Topic: allow indexes for one directory
Replies: 5
Views: 4529

allow indexes for one directory

I was wondering how to allow (if possible) indexes for just one directory?
Or is it allow for all, or none?
I am running apache 2.0 on win32 XP.

Thanks.
by Bangas
Sat Jul 16, 2005 4:05 pm
Forum: PHP coding => General
Topic: Script for displaying URL
Replies: 1
Views: 545

Script for displaying URL

I cant figure out how to display the URL of the current page, exactly as it appears in the address bar.
Would it be something like:

<?php
echo $SERVER['CURRENT_URL'];
?>

Thanx.
by Bangas
Sat Jul 16, 2005 7:49 am
Forum: PHP coding => General
Topic: display content with link
Replies: 8
Views: 1581

Ahhh! thax dude! that is realy good. It makes sence too. I knew it would be
if something
require foo.php

I just didnt know what "something" would be.
Thans agian.

Bangas
by Bangas
Sat Jul 16, 2005 5:42 am
Forum: PHP coding => General
Topic: display content with link
Replies: 8
Views: 1581

Now how would I do this?

when link1 is clicked and foo.php is displayed, how would i change link1 to go gack to not displaying foo.php?

all help appreciated :)
by Bangas
Sat Jul 16, 2005 4:55 am
Forum: PHP coding => General
Topic: display content with link
Replies: 8
Views: 1581

Working now!

Thanx for your help M8!
by Bangas
Sat Jul 16, 2005 4:49 am
Forum: PHP coding => General
Topic: display content with link
Replies: 8
Views: 1581

Thanx for your help. I'll try the second one.

:)
by Bangas
Fri Jul 15, 2005 9:00 am
Forum: PHP coding => General
Topic: display content with link
Replies: 8
Views: 1581

no frames or iframes just displaying the content of foo.php above the link.

kinda like this;

<html>
<head>
</head>
<body>

*/Place where foo.php will be displayed*/

<a href="*/what ever it needs to be*/">link1</a>
</body>
</html>
by Bangas
Fri Jul 15, 2005 8:22 am
Forum: PHP coding => General
Topic: display content with link
Replies: 8
Views: 1581

display content with link

This might seem like a realy n00bie thing to say. Sorry. Im fairly new to php and I was wondering how I would do the following: On a web page I would have a link call it "link1". When link1 one is clicked, it displays the content of "foo.php" above the link. But the link changes to "Back". I have re...