PDA

View Full Version : [VIDEO TUTORIAL] Basic PHP.



Florx
18-11-2007, 10:04 PM
Hey!

I got bored and decided to do a video tutorial on basic PHP.

I'm not a good teacher so tell me what you think.

Linky: http://jake-hall.co.uk/phptutorials/tutorial.mpeg

8.8mb - 650 x 520 size.

RATE / SLATE :).

Thanks,
Jake

DeejayMachoo$
18-11-2007, 10:08 PM
ill watch later i need to dl the codec to watch :l

Florx
18-11-2007, 10:16 PM
(N) dam.

I made it in ubuntu anyway so you windows guys may have some problems. Il have to change the codec.

abnormal
19-11-2007, 02:24 AM
Oh I like !
Very nice.
<3 +rep

EDIT: Gotta spread

adamFTW
19-11-2007, 02:30 AM
Doesn't work for me.

lolwut
19-11-2007, 05:00 PM
Doesn't work.

Florx
19-11-2007, 05:03 PM
Alrighty :( Il re-record in avi to see if that helps :p

Tomm
19-11-2007, 05:07 PM
I can hear audio but not see anything, why not encode it in DivX?

Florx
19-11-2007, 05:08 PM
How to do that on Ubuntu?

Tomm
19-11-2007, 05:10 PM
Use Windows? :P

Seriously though, everyone who uses Linux keeps going on about Wine so why don't you use that?


How to do that on Ubuntu?

Florx
19-11-2007, 08:15 PM
Ive got wine installed but I don't like using it. What's the point? I downloaded linux for a reason -> to get away from windows.

RedCrisps
20-11-2007, 03:36 PM
can you make it work plsssssssss...

rh4u
20-11-2007, 03:42 PM
well the majority of this forum use windows. so meh. you need to think how windows users are going watch somthing encoded usin linux ;)

btw, your blog isnt secure, i just happend to type in blog.php on your domain and i got their :)
http://jake-hall.co.uk/blog.php

L!nK.
20-11-2007, 03:56 PM
well the majority of this forum use windows. so meh. you need to think how windows users are going watch somthing encoded usin linux ;)

btw, your blog isnt secure, i just happend to type in blog.php on your domain and i got their :)
http://jake-hall.co.uk/blog.php
Wow, seriously you talk about someone with their bad spelling, but you can't spell yourself.

Also that is just being nosy.

Invent
20-11-2007, 03:58 PM
Also, finding a file has NOTHING to do with security really, lol.

rh4u
20-11-2007, 04:10 PM
yh i know thaat, but it says on the homepage this blog is by invertation only :0
oh an simon, my head hurts :(

Florx
20-11-2007, 04:50 PM
I only put that message there to stop my school from looking at it.

Anyway il try and encode it in divx or avi.

The program I used has an AVI encoder built in :p

Florx
20-11-2007, 05:15 PM
Mods: Can't edit!

So here is the new tutorial in AVI so it should work.

http://jake-hall.co.uk/phptutorials/tutorial2.avi

12.7MB - 7:35mins

Hope it works :p

RedCrisps
20-11-2007, 07:05 PM
awesome tut can't wait for the next one :]

MrCraig
20-11-2007, 07:19 PM
mm. for some reason i always do echo with brackets round
eg. echo("BLA");

and maybe for next time, you could teach user's how to put a variable in a ' echo



$var = "BLALALALA";
echo('The variable is: '. $var .'');


good tut though =]

And everything like the green means its working wont be the same for many users. So like, find out what different means of telling its working for diff software.

:)

Good tut tho.

Florx
20-11-2007, 07:53 PM
Nice suggestion (Y) will do that :)

+rep :)

Edit: Gotta spread! Sorry :(

MrCraig
20-11-2007, 07:55 PM
Lol :P

nps

Good luck with em :)

Florx
20-11-2007, 08:05 PM
How is the quality of the video and the audio?

Thanks,
Jake

Florx
20-11-2007, 08:56 PM
Ive made another cause I was bored (yet again :p)

So here goes:

Tutorial 1:http://jake-hall.co.uk/phptutorials/clicks/click.php?id=1
Tutorial 2:http://jake-hall.co.uk/phptutorials/clicks/click.php?id=2 (http://jake-hall.co.uk/phptutorials/clicks/click.php?id=2)

15.1mb - 9:12mins

If anybody would like to make me a nice layout for this php video page - it only needs to be simple (css maybe?) and without images if possible to reduce load time as the videos are long enough as it is :p. Then it would be greatly thanked!

Thanks and enjoy,
Jake.

RedCrisps
20-11-2007, 09:25 PM
i will look at the others in abit, they look kl :]

adamFTW
20-11-2007, 09:58 PM
I have this:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
#body {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 9px;
}
</style>
</head>

<body>
<div id="body">
<?php

// The variables
$name = $_POST[name];
$age = $_POST[age];
$email = $_POST[email];
$submit = $_POST[submit];

// If's
if($submit !=""){

if($name !=""){
echo "Whoah! You didn't type a name!";
}

elseif($age !=""){
echo "Whoah! We need your age to verify you are old enough to join!!";
}

elseif($email !=""){
echo "Woah! We need your email to update you on news!";
}

echo "Heya, $name - The details you entered are as followed:<br>
Name: $name<br>
Age: $age<br>
E-mail: $email";
exit;
}

// Form's file name
<form action="form.php" method="post">
// The actual form
Name: <input type="text" name="name"><br>
Age: <input tye="text" name="age"><br>
E-mail: <input type="text" name="email"><br>
// The ending
</form>

?>
</div>
</body>
</html>

I get the following error: "Parse error: syntax error, unexpected '<' in /home/habbcr/public_html/will/php/form.php on line 47".
Line 47 is:
<form action="form.php" method="post">

Florx
20-11-2007, 10:02 PM
Yeah cause you didn't either echo the form out or close the php ?> before the form started :)
Try this :p


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
#body {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 9px;
}
</style>
</head>

<body>
<div id="body">
<?php

// The variables
$name = $_POST[name];
$age = $_POST[age];
$email = $_POST[email];
$submit = $_POST[submit];

// If's
if($submit !=""){

if($name !=""){
echo "Whoah! You didn't type a name!";
}

elseif($age !=""){
echo "Whoah! We need your age to verify you are old enough to join!!";
}

elseif($email !=""){
echo "Woah! We need your email to update you on news!";
}

echo "Heya, $name - The details you entered are as followed:<br>
Name: $name<br>
Age: $age<br>
E-mail: $email";
exit;
}
?>
// Form's file name
<form action="form.php" method="post">
// The actual form
Name: <input type="text" name="name"><br>
Age: <input tye="text" name="age"><br>
E-mail: <input type="text" name="email"><br>
// The ending
</form>


</div>
</body>
</html>

adamFTW
20-11-2007, 10:07 PM
I want the form to be with the PHP though?

DeejayMachoo$
20-11-2007, 10:08 PM
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
#body {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 9px;
}
</style>
</head>

<body>
<div id="body">
<?php

// The variables
$name = $_POST[name];
$age = $_POST[age];
$email = $_POST[email];
$submit = $_POST[submit];

// If's
if($submit !=""){

if($name !=""){
echo "Whoah! You didn't type a name!";
}

elseif($age !=""){
echo "Whoah! We need your age to verify you are old enough to join!!";
}

elseif($email !=""){
echo "Woah! We need your email to update you on news!";
}

echo "Heya, $name - The details you entered are as followed:<br>
Name: $name<br>
Age: $age<br>
E-mail: $email";
exit;
}

// Form's file name
echo("<form action=\"form.php\" method=\"post\">");
// The actual form
echo("Name: <input type=\"text\" name=\"name\"><br>
Age: <input tye=\"text\" name=\"age\"><br>
E-mail: <input type=\"text\" name=\"email\"><br>");
// The ending
echo("</form>");
?>
</div>
</body>
</html>

Florx
20-11-2007, 11:44 PM
What should I do next mail / mysql / functions ?

Thanks,
Jake

adamFTW
21-11-2007, 01:12 AM
mySQL - I'm starting a usersystem, to enhance my knowledge and I need some info on mySQL with PHP.

RedCrisps
21-11-2007, 02:15 PM
mysql pls :D

Florx
21-11-2007, 05:35 PM
Alright il do a mysql one for tonight / tomorrow :)

adamFTW
21-11-2007, 08:51 PM
Try and finish it ASAP (tonight). :)

Want to hide these adverts? Register an account for free!