mttheopfor89
New Member
- Messages
- 14
- Reaction score
- 0
- Points
- 0
I need to use MySQL for a login system but I do not have the info for it. The video I was watching said that the hosting services would provide it. May I please have the info?
<link rel="stylesheet" type="text/css" href="/stuff/style.css" />
<img src="/logo.png" border="0" alt="theopfor" />
Yeah... I need to still work on some stuff I guess...Ah, a true n00b.
Is there any ways to fetch stuff from one folder and put it on the page?
[ list]
[ *]stuff/
[ list]
[ *]style.css
[ *]header.css
[ *]continued on
[ /list ]
[ *]login/
[ list]
[ *]login.php
[ /list ]
[ *]index.php
[ *]projects.php
[ /list]
<!DOCTYPE html>
<html>
<head>
<title>The Site Title</title>
<link rel="stylesheet" type="text/css" href="/css/common.css">
</head>
<?php
include("/home/myname/public_html/includes/head.inc.php");
?>
<body>
<h1>Hello, world!</h1>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>The Site Title</title>
<link rel="stylesheet" type="text/css" href="/css/common.css">
</head>
<body>
<h1>Hello, world!</h1>
</body>
</html>
Server side (as essellar explains), not client side.The include() function takes a file's code and put's it on the page client side right?
What does he say that you take to mean this? By "beginning of [your] website's directory", do you mean the document root, the "first" folder in the document root (there's no unique ordering of siblings in a filesystem, so "first" isn't well-defined), or something else? include can access any file on the filesystem, limited only by filesystem permissions, safe mode checks (if enabled) and the open_basedir configuration directive.Well what eseller said was that I couldn't access something from the very beginning of my website's directory.
include("/home/theopfor/public_html/filename.php");
<link rel="stylesheet" type="text/css" href="/css/filename.css">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
"http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<meta name="description" content="theopfor! A site for miscellaneous things." />
<meta name="keywords" content="theopfor,pcriot" />
<title>theopfor</title>
<meta name="google-site-verification" content="_M9LWyDLBayWBW6k-Wd5Dk21X5rD26MuMssvHQOxlu8" />
<link rel="stylesheet" type="text/css" href="/stuff/style.css" /></head>
<body>
<div type="header" align="center">
<div type="content" align="left">
</div>
<a href="http://theopfor.pcriot.com/"><img src="/stuff/logo.png" border="0" alt="theopfor" /></a>
<hr />
<div align="left">
|<a id="mainlink" align="left" href="http://theopfor.pcriot.com/">Home</a>|
<hr />
</div>
<div type="content" id="content">
<p id="standard">Welcome to the project page!</p>
<p id="standard">This is what I do on my spare time! Unfortunately you do have to download
some of this stuff but it is virus free.</p>
<dl id="standard">
<dt><a href="stuff/Keyboard_Warrior.exe" target="about:blank">Keyboard Warrior</a></dt>
<dd>A text turn based game. My very first game ever programmed written in C++. The AI is broken so it is
impossible to win but kinda interesting I guess.</dd>
</dl>
</div>
<div type="footer">
<hr />
<p>Expect some delays for new pages. Currently having alignment and styling issues. <br />If you need to contact us please email theopfor@theopfor.pcriot.com thank you!</p>
</div></body>
</html>
<div type="header" align="center">