Banner

Sponsor

Login


Welcome Back!
Guest
Guest

Register

Lost your password?

109 users online



Can someone push me in the right direction so that I can learn it

Can someone push me in the right direction so that I can learn it

Currently viewing this thread: 1 (0 members and 1 guests)


Page 3 out of 3
Unini

Unini

overall Funny Guy
Status: Offline!

1st) YES, you can save it as .php, but whats the point?
It will still be a normal .html file unless you use PHP code.

2nd) What you want is actually very simple to do with includes. Try and learn the basics of PHP, its not hard at all and it will make thing alot easier for you

___________________

"I find it kinda funny, I find it kinda sad,
The dreams in wich I'm dying are the best i've ever had"

Motorspin

Motorspin

Neverside Newbie
Status: Offline!

Well if you don't want codes, what do you want? Dreamweaver isn't going to do it all for you. You're going to have to work out the php logic. Saving it as a .php file is going to do nothing.

If you know anything about computers you know that programs are written in languages like C/C++/Java etc. Think of PHP as a language that makes web programs (Forums, web emailers, stuff like that).

PHP is not a script or anything that does one specific job, it's a program written in C that acts like it's own language (Well, it basicly is). The link Ares gave you is not about codes, if you would just tolerate a little patience and read through about 5-10 paragraphs, you'd at least understand what it is.

___________________

Travis Farrell
http://motorspin.com/stuff/images/avasig/m_enterprisesig.gif

Rad

Rad

thinking of something witty to put here
Status: Offline!

okay, before diving into php, you should really learn html to the point where you see a 3 column layout then say, i can make that (no not with tables either Wink)

what i'm trying to understand is that you want to be able to use one page for design, then all the content will go in seperate files

yes you do have to learn php, and no, dreamweaver wont do that

this might be a little off topic, but you might wanna try coldfusion, it uses similar syntax to html and is just as powerful as php

i use coldfusion alot and i highly reccomend it, its not hard to learn either

PHP:


<?php
$m 
mysql_connect("localhost""root");
mysql_select_db("mydb");

$query "SELECT * FROM blah";
$result mysql_query($query);

while (
$results mysql_fetch_assoc($result)) {
echo 
"Hello ".$results['name'];
}
?>

vs

Code:


<cfquery name="results" datasource="mydb">SELECT * FROM blah</cfquery>
<cfoutput query="results">Hello #results.name#</cfoutput>

6 lines vs 2 lines

Motorspin

Motorspin

Neverside Newbie
Status: Offline!

CF looks weird, but effective. Smile

___________________

Travis Farrell
http://motorspin.com/stuff/images/avasig/m_enterprisesig.gif

Phil

Phil

with Mr. Jones
Status: Offline!

Speed comparisons?

I'd personally go with open source and large community of php, but whatever. Speed is what matters.

___________________

http://www.philbrodeur.com - Expert PHP Development and Tutorials

Unini

Unini

overall Funny Guy
Status: Offline!
Quote:

Originally posted by Radley
6 lines vs 2 lines


Not fair, CF didnt have to connect to the DB Smile

___________________

"I find it kinda funny, I find it kinda sad,
The dreams in wich I'm dying are the best i've ever had"

Phil

Phil

with Mr. Jones
Status: Offline!

The cf syntax is a bit odd but I assume thats because I'm not used to it

___________________

http://www.philbrodeur.com - Expert PHP Development and Tutorials

Page 3 out of 3
Quick Jump:

Main Navigation


Site & Graphic Design by Aeon Tan
Developed by Jeremie Pelletier & Scott Roach


NeverAPI generated this page in 0.0079 seconds.