Staredit Network

Staredit Network -> Serious Discussion -> Php & Mysql
Report, edit, etc...Posted by chooie333 on 2004-08-23 at 22:30:27
ok this may be a spin off of Shmeeps html lessons, but with php& mysql but i really dont care

ok bassics:

always start any php fucntion with

CODE
<?php


and end it with

CODE
?>


simple enough.

now for the fun stuff.

officaily php mean - hypertext processor, but my book(lol we had a big argument over this in the bugs section) says php:pre hypertext processor since the php processor will read all of the php that is in the scripts and then change it to an html function which the computer's can then read and access all data off of.

php you might say is like c,c++, or other programming languages like thoes that can use one line of code to display a whole bunch of information

like the following:

CODE
<?php
PHPinfo();
?>


Note
---------------------------------------------------

you must include a ; at the end of each
function!! it will give you messes of errors
if you miss that!

---------------------------------------------------

that will show you everything that your machine knows about the php version it is running.

php can stand alone or it can be imbeded into an html document like the following:

CODE
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
</head>

<body>
<table>
<tr>
<td>
Phpinfo:
</td>
<td>
<?php
phpinfo();
?>
</td>
</tr>
</table>

</body>
</html>


just as php can be imbeded into html, html can be imbeded into a php document using an echo""; statememt. an echo statment can also be used just to say hello world(see next example

CODE
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<?php
//this will have the title set to informationhere
echo"<title>informationhere</title>";
//this will say hello world on the left side of the page
echo"hello world";
?>
</body>
</html>


as you may have noticed I used two(2) backslashes to declare an iformation statment, this statement will not be displayed on the screen.

now you must wait till i make my web page with more detailed iformation.



jk. lol. no i will finish updating when i finish writing part 2 smile.gif

Currently Being Updated please Wait...
Report, edit, etc...Posted by mobomojo on 2004-08-23 at 22:36:37
Make sure to include some info on how to set up your own php servers, as well as links to php tutorials and sites.
Report, edit, etc...Posted by Mini Moose 2707 on 2004-08-23 at 22:49:39
I know a guy who runs a site about Web Development.
http://www.web-realm.com/
It's relatively new (it's been remade several times) and needs populating. He writes some nice guides, check it out. smile.gif
Report, edit, etc...Posted by Shmeeps on 2004-08-24 at 17:49:07
To help out chooie, real quick

Free Sites that have LAMP (Linux, Apache, MySQL, PHP)
http://www.000k2.com
http://www.zap3x.com
Report, edit, etc...Posted by chooie333 on 2004-08-25 at 07:35:13
i already have 2 sites on 000k2.
never heard of zap3x though. i'll have to check it out.
Report, edit, etc...Posted by Templaren on 2004-08-25 at 07:37:48
need to check out much of this
Report, edit, etc...Posted by chooie333 on 2004-08-25 at 09:44:17
I am glad this topic is turning out to be so sucessful. it almost makes me want to cry cry.gif
Report, edit, etc...Posted by Shmeeps on 2004-08-25 at 18:24:05
QUOTE(chooie333 @ Aug 25 2004, 06:35 AM)
i already have 2 sites on 000k2.
never heard of zap3x though. i'll have to check it out.

Really now?
Zap3x is a relativly new site, because its split to two launguages. It used to be http://www.3x.ro and it had English/Romainian sites. But they split Romanian to 3x.ro and english to zap3x.
PS: Click the link in my sig tongue.gif
Report, edit, etc...Posted by chooie333 on 2004-08-25 at 19:37:25
well, i like 000k, because they allow you to put up your own ads.
Report, edit, etc...Posted by Shmeeps on 2004-08-26 at 18:28:04
QUOTE(chooie333 @ Aug 25 2004, 06:37 PM)
well, i like 000k, because they allow you to put up your own ads.

And the affiliate program rockzorz mina boxorz!
Report, edit, etc...Posted by chooie333 on 2004-08-29 at 22:09:45
lol, ya that's true. also I will be updating this as soon as possible.
Report, edit, etc...Posted by Shmeeps on 2004-08-30 at 18:57:33
QUOTE
lol, ya that's true. also I will be updating this as soon as possible.

If ya need any help, you no where to come tongue.gif
Next Page (1)