Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
i'm fairly sure i have seen how to do this, but for the life of me i can't find the example.
i've googled for a while, and read some stuff on php.net, but no luck. so basically here's what i want to do. hopefully someone knows it simply off the top of their head. i feel like this should be a super basic question, but couldnt find it anywhere.
so my web directory looks similar to this:
http://www.webroot.com/pictures/*.gif
http://www.webroot.com/application/summary.php
http://www.webroot.com/application/deta ... equery.php
for clarity here are some dummy pages (not syntactically correct):
this is the summary page:\Code: Select all
<? disply msg variable ?>
<form action='./details/databasequery.php'>
<input type=image src="../pictures/click.gif" alt="" width="75" height="1">
</form>this is the database.php page
Code: Select all
<?
run query;
set msg variable;
include "../summary.php";
?>the problem is once i include the summary page all of the links are now broken (because i am working in "/application/details" ), so i need a way to set the working directory back to "/application"
thanks in advance. i hope i was clear enough?
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]