Click to See Complete Forum and Search --> : general questions


moondance
08-05-2003, 09:27 AM
i've been developing a little site on my laptop, where i've got apache, php and mysql configured. I've been making the pages in dreamweaver, saved in a seperate folder.

I've got to the point where i'm bringing everything together, and was wondering if i need to place my entire site in apaches htdocs folder, or can i just call the scripts?

Also, when i open the web page by double clicking on it, say i fill in a login form, which has a php login script, when i press submit, it offers me the file to download. The only way i can get the script to properly work is by going throught start menu/ run. Is this normal? and will it happen when the websites online?


oh and another thing thats not too important for a post of itself - i've used sessions for a members area. Within this members area are links. If I use a logout script to destroy any session variables and clear the files from the temp folder, then login to the members area again, the links are still the 'clicked' colour. I'm sure if you delete all session information, the page should load like its never been viewed before, right?

thanks for your time

;)

chris9902
08-05-2003, 09:59 AM
all your problems will be solved when you upload your site to a server.

scripts like PHP and ASP need a web server to make some scripts happen, like email forms.

and i think all you files need to be in the Apache folder becuase that is your http://localhost so yes i think so.

hope this helped

moondance
08-07-2003, 07:43 AM
I've put everything on the server, but i've still got that problem with the links - they look they've already been clicked.

Even if i delete all sessions in the temp folder, it happens. I think i'm destroying the session the right way too:

<?
session_start();

unset($_SESSION['Name']);
unset($_COOKIE);
session_destroy();

echo ("You are now logged out!");
?>

Anyone know why this is, or how to get "fresh" unclicked links?

chris9902
08-07-2003, 07:51 AM
i think this is a CSS question

in your .css file (if you don't have one MAKE one)


a {Arial, Helvetica, sans-serif; font-size: 12px; color: F5732A; text-decoration: none;}

a:visited {Arial, Helvetica, sans-serif; font-size: 12px; color: F5732A; text-decoration: none;}

a:hover {Arial, Helvetica, sans-serif; font-size: 12px; color: F5732A; text-decoration: none;}


all your active links sholud be the same color

DaiWelsh
08-08-2003, 10:38 AM
The colour change for visited links has nothing to do with sessions or cookies, it is according to the browsers history of whether you have previously visited that link so clearing you history via the browser window is the way to clear that. If you want them to look permanently unvisited then chris' css solution is the way to go to override the default IE behaviour.

HTH,

Dai

chris9902
08-09-2003, 06:47 PM
<---- i helped :D

pyro
08-09-2003, 09:46 PM
Unfortunatly, it is invalid CSS, and won't work as it is supposed to. Try this:

a {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
color: #F5732A;
background-color: transparent;
text-decoration: none;
}
a:visited {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
color: #F5732A;
background-color: transparent;
text-decoration: none;
}
a:hover {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
color: #F5732A;
background-color: transparent;
text-decoration: none;
}Everything in bold was added to make it valid and working CSS...