Killersites.com Homepage

Print at May 24, 2013 4:10:01 AM
Posts: 23   Pages: 3   [ Previous Page | 1 2 3 | Next Page ]
View all posts in this thread on one page
Posted by falkencreative at Dec 14, 2008 12:45:40 AM
Re: wamp server still offline ?
No, don't resave your html as PHP unless you are using PHP code in them. However, there isn't any reason to use a server if you aren't using PHP code...

Files need to be saved in C:\wamp\www. As Khan said, it may be easier to use a separate folder within the www folder for each of your projects.
----------------------------------------
Benjamin Falk | student : designer : developer
Twitter: falkencreative

Posted by khan.sikki at Dec 14, 2008 2:09:53 AM
Re: wamp server still offline ?
keep all the website files like
index.php
contac.php
aboutme.php

in
c:\wamp\www\Projectname\

start wamp
and run below quoted line in Browser

even if the wamp is offline you can preview and test your project
after completing the complete website you can make it online just by clicking on put online
----------------------------------------
Sikander

Posted by Dina at Dec 14, 2008 5:16:06 AM
Re: wamp server still offline ?
Ok so this is my html file (still learning), shall I resave it to php and then delete the html file?

<DOCTYPE HTML PUBLIC "-//W3C//dtd html 4.01 strict//EN" "http://www.w3.org/TR/dtd/html4-strict.dtd" />
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<title>Spinal Muscular Atrophy</title>
<link href="test2.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="header">
<div id="logo">
<img src="images/luis1.jpg">
<h1>LUIS CASTRO</h1>
</div>
</div>
<div id="container">
<div id="menu">
<ul>
<li><a href="">home</a></li>
<li><a href="">about us</a></li>
<li><a href="">product</a></li>
</ul>
</div>
<div id="left navigation">
<ul>
<li><a href="" title="">Home</a></li>
<li><a href="" title="">Blog</a></li>
<li><a href="" title="">gallery</a></li>
</ul>
</div>
<div id="centerDoc">
<p>
Please fill in your first name and your last name in the spaces provided.</p>
<p>
<form action="form_respond.php" method="post">
Name: <input type="text" name="name" />
Age: <input type="text" name="age" />
<input type="submit" />

</form>
</p>
</div>
</div>
</div>
</body>
</html>

.....and this is my php file

<DOCTYPE HTML PUBLIC "-//W3C//dtd html 4.01 strict//EN" "http://www.w3.org/TR/dtd/html4-strict.dtd" />
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<title>Spinal Muscular Atrophy</title>
</head>
<body>
Welcome <?php echo $_POST["name"]; ?>.<br />
You are <?php echo $_POST["age"]; ?> years old.
</body>
</head>
</html>

please help I am still new, only started in Sep 2008

Posted by khan.sikki at Dec 14, 2008 6:10:27 AM
Re: wamp server still offline ?
Just tell me

by using the text fields you going to save the information in database right


if so you can do this very easily in Dreamweaver

tell the complete project requirement of your site i'll design it for you up to my knowledge
----------------------------------------
Sikander

Posted by khan.sikki at Dec 14, 2008 6:36:20 AM
Re: wamp server still offline ?
check out this for your WAMP problem


----------------------------------------
Sikander

Posted by Dina at Dec 14, 2008 6:53:01 AM
Re: wamp server still offline ?
I think I will come back in a years time to this problem, cause I have really lost you, I don't understand a word you said. I am to much of a biginner!

Thankx any way!

Posted by khan.sikki at Dec 14, 2008 7:31:09 AM
Re: wamp server still offline ?
just download this image from my site


http://sikki.co.cc/downloads/soft/dina.jpg

hope it'll help you in solving WAMP problem
----------------------------------------
Sikander

Posted by Dina at Dec 14, 2008 9:44:22 AM
Re: wamp server still offline ?
I select the whole line and paste it in a new tab, but then it only give me a error page.

Posted by falkencreative at Dec 14, 2008 12:23:15 PM
Re: wamp server still offline ?
Ok so this is my html file (still learning), shall I resave it to php and then delete the html file?

<DOCTYPE HTML PUBLIC "-//W3C//dtd html 4.01 strict//EN" "http://www.w3.org/TR/dtd/html4-strict.dtd" />
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<title>Spinal Muscular Atrophy</title>
<link href="test2.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="header">
<div id="logo">
<img src="images/luis1.jpg">
<h1>LUIS CASTRO</h1>
</div>
</div>
<div id="container">
<div id="menu">
<ul>
<li><a href="">home</a></li>
<li><a href="">about us</a></li>
<li><a href="">product</a></li>
</ul>
</div>
<div id="left navigation">
<ul>
<li><a href="" title="">Home</a></li>
<li><a href="" title="">Blog</a></li>
<li><a href="" title="">gallery</a></li>
</ul>
</div>
<div id="centerDoc">
<p>
Please fill in your first name and your last name in the spaces provided.</p>
<p>
<form action="form_respond.php" method="post">
Name: <input type="text" name="name" />
Age: <input type="text" name="age" />
<input type="submit" />

</form>
</p>
</div>
</div>
</div>
</body>
</html>

.....and this is my php file

<DOCTYPE HTML PUBLIC "-//W3C//dtd html 4.01 strict//EN" "http://www.w3.org/TR/dtd/html4-strict.dtd" />
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<title>Spinal Muscular Atrophy</title>
</head>
<body>
Welcome <?php echo $_POST["name"]; ?>.<br />
You are <?php echo $_POST["age"]; ?> years old.
</body>
</head>
</html>

please help I am still new, only started in Sep 2008


OK. You only need to save a file with the .PHP ending if you have PHP code inside of it. In your HTML file, you don't have any php code, so you can leave it as a .HTML file. In your PHP file, you do use PHP code, so that file should have the .PHP ending. Make sense?

...Kahn's image link doesn't work. Don't worry about it, I don't think it would be able to help you anyway.
----------------------------------------
Benjamin Falk | student : designer : developer
Twitter: falkencreative

Posted by khan.sikki at Dec 14, 2008 10:12:55 PM
Re: wamp server still offline ?
i placed a file called dina.php in my site by viewing the jpg file you will understand ok
http://sikki.co.cc/dina.php
i hope this will solve you problem

check it out
----------------------------------------
Sikander

Posts: 23   Pages: 3   [ Previous Page | 1 2 3 | Next Page ]