»
 

Go Back   ResellerRatings Store Ratings > ResellerRatings Forums > Tech Support

Reply
 
LinkBack Thread Tools Display Modes
Old 03-26-2004, 02:00 PM   #1 (permalink)
Registered User
 
Join Date: Feb 2003
Location: Indiana
Posts: 1,197
Buzioid is on a distinguished road
Send a message via AIM to Buzioid Send a message via Yahoo to Buzioid
Where to begin?

I am pretty knowledgeable with HTML, but I heard you can use php to put all pages of your site in one database or something like that.
I know nothing of php..

Would php with mysql be the way to go with that?

Or is there a way to do something like that using only php?

Buzioid is offline   Reply With Quote
Old 03-26-2004, 02:39 PM   #2 (permalink)
Registered User
 
robin801's Avatar
 
Join Date: Oct 2001
Location: philadelphia pa
Posts: 1,417
robin801 is on a distinguished road
Send a message via ICQ to robin801
i have to keep an eye on this thread. i am in the same boat as you.

i hope u don't mind if i ask questions in your thread.

robin
__________________
always wanting to learn something new

robin
robin801 is offline   Reply With Quote
Old 03-26-2004, 02:47 PM   #3 (permalink)
Registered User
 
cracked's Avatar
 
Join Date: Nov 2001
Location: NCSU @ Raleigh, NC
Posts: 1,390
cracked is on a distinguished road
Send a message via AIM to cracked
well, i dont know much about mysql, but php is wonderful. it makes making pages with dynamic content much easier. i dunno about putting them all in a database(i guess it can be done, i just simply dont know) but you can do a LOT with php. its also not all that hard to learn. and is super easy to use/install/whatever. http://php.net to learn more about it. sorry i couldnt be of more help.
__________________
Duroo
cracked is offline   Reply With Quote
Old 03-26-2004, 02:54 PM   #4 (permalink)
Registered User
 
Join Date: Feb 2003
Location: Indiana
Posts: 1,197
Buzioid is on a distinguished road
Send a message via AIM to Buzioid Send a message via Yahoo to Buzioid
Can you use php by itself to store many pages in one file or something?
Buzioid is offline   Reply With Quote
Old 03-26-2004, 03:01 PM   #5 (permalink)
Registered User
 
robin801's Avatar
 
Join Date: Oct 2001
Location: philadelphia pa
Posts: 1,417
robin801 is on a distinguished road
Send a message via ICQ to robin801
is php a language like html?

can u write web pages using php alone or do u have to use html with php?

robin
__________________
always wanting to learn something new

robin
robin801 is offline   Reply With Quote
Old 03-26-2004, 03:28 PM   #6 (permalink)
Registered User
 
Join Date: Feb 2003
Location: Indiana
Posts: 1,197
Buzioid is on a distinguished road
Send a message via AIM to Buzioid Send a message via Yahoo to Buzioid
HTML works with PHP.

I don't know much anything about it though.
Buzioid is offline   Reply With Quote
Old 03-26-2004, 03:46 PM   #7 (permalink)
Registered User
 
cracked's Avatar
 
Join Date: Nov 2001
Location: NCSU @ Raleigh, NC
Posts: 1,390
cracked is on a distinguished road
Send a message via AIM to cracked
well basically php is a server side scripting language that is similar to c++ or java in syntax. basically when a user requests a page containing php, the server translates the php into html then sends the file to the user. but the php code can do many different things before being translated to html depending on user input which is what makes it so great. you CAN use php alone without html, but that really limits its functionality. for example,
Code:
<?php echo "hello world"; ?>
is all you would need to display hello world on the screen, but if you put a form in there with some html to make it look pretty you could have the user type what they wanted to be displayed and then submit the form and that would be displayed like this
Code:
<?
$string = $_POST['message'];
echo $string;
?>
<html>
<head>
<body>
<FORM ACTION="file.php" method="POST">
<INPUT TYPE=text name="message">
<INPUT TYPE=SUBMIT value="Post">
</FORM>
</body>
<html>
. that is a very simple example but it gives you the idea hopefully
__________________
Duroo

Last edited by cracked; 03-26-2004 at 03:49 PM.
cracked is offline   Reply With Quote
Old 03-26-2004, 04:01 PM   #8 (permalink)
Registered User
 
davidamarkley's Avatar
 
Join Date: May 2002
Location: Joplin, MO
Posts: 2,208
davidamarkley is on a distinguished road
Send a message via ICQ to davidamarkley Send a message via AIM to davidamarkley
PHP is more or less a server-side programming language. It uses databases and other script-like variable, arrays, and functions to build an HTML page. PHP is server-side, so the server reads the script (the .php file) and runs through any functions to process, and then spits out the resulting HTML file. And, viewing source only shows the HTML part, it doesn't show the whole contents of the PHP file.

For instance, here is a very simple HTML web page.

Code:
<HTML>
     <HEAD>
          <TITLE>Very Simple Web Page</TITLE>
     </HEAD>
     <BODY>
     Content goes here
     </BODY>
</HTML>
Now, here's a PHP equivalent:

PHP Code:
<?php
echo "<HTML>
     <HEAD>
          <TITLE>Very Simple Web Page</TITLE>
     </HEAD>
     <BODY>
     Content goes here
     </BODY>
</HTML>"
;
?>
Even though it has some extra stuff like the php tags, and the echo tag, if you view the source on that web page, it only shows the HTML parts. So, you can have very lengthy backend PHP code, to make simple, yet dynamic HTML pages.

If you're wanting to learn to use PHP, just search on Google and you'll end up with oodles and oodles of tutorials.

Dave
__________________
-David
davidamarkley is offline   Reply With Quote
Old 03-26-2004, 05:43 PM   #9 (permalink)
Registered User
 
Join Date: Feb 2003
Location: Indiana
Posts: 1,197
Buzioid is on a distinguished road
Send a message via AIM to Buzioid Send a message via Yahoo to Buzioid
I still dont think my question is answered.

How can I use php to take all my htmls and put them into one php file? Is this possible?
Buzioid is offline   Reply With Quote
Old 03-27-2004, 08:06 AM   #10 (permalink)
Registered User
 
robin801's Avatar
 
Join Date: Oct 2001
Location: philadelphia pa
Posts: 1,417
robin801 is on a distinguished road
Send a message via ICQ to robin801
i already have some web pages done in html.

do i have to go through each line of my html pages and add in php tags?

robin
__________________
always wanting to learn something new

robin
robin801 is offline   Reply With Quote
Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Most Active Discussions

Recent Discussions

All times are GMT -6. The time now is 07:51 PM.