Im confused
Posted: Wed Nov 25, 2009 11:31 am
Hey there, I have been working on a real simple website in HTML for some days now, but when the include() didn't work with HTML, I felt I might try some PHP.
I made my index.php, put this code in it:
and I was thinking it will never work, I uploaded it on my website, went on it and it was working?
Looked just like the HTML site but it was a PHP file.
I got other PHP files to run some of the features on my site though.
And now, is it even secure to do this? As it's just basic HTML code put in a PHP file.
Sorry if I posted in the wrong area.
I made my index.php, put this code in it:
Code: Select all
<link href="index.css" type="text/css" rel="stylesheet" />
<title>Test</title>
<div id="topbar">
<? include "logged.php"; ?>
</div>
<div id="body">
</div>Looked just like the HTML site but it was a PHP file.
I got other PHP files to run some of the features on my site though.
And now, is it even secure to do this? As it's just basic HTML code put in a PHP file.
Sorry if I posted in the wrong area.