School Map:  Home / Enroll $ Student Records; Class  
$ News @ LIVE Tech Radio * Support/FAQ | Store | FORUMS

 

 (#479 2004-01-18 17:09:54) Post Reply
Page 0 1 2 3 4 5 6 7 8

krac
Need To Set


Enrolled: Jan 2004
Posts: 1
AP: 1

<HTML>
<HEAD>
<TITLE> my assignment #1 </TITLE>


</HEAD>
<BODY>

<?php
// this code will display my information in my website
// variables
$name="Myk";
$surname="Miranda";
$nick="Krac";
$site="www.angbarkada.org";

// this will display all my information
print("<br>my name is $name $miranda, most of my frends call me $nick.<br/>
One of my favorite site is $site <br/>");
?>

</BODY>
</HEAD>

 

 (#484 2004-01-23 22:27:33) Post Reply
Page 0 1 2 3 4 5 6 7 8

5p0ng3
Need To Set


Enrolled: Jan 2004
Posts: 2
AP: 1

//TO-DO ASSIGNMENT 1
//by 5p0ng3

$mynick= "5p0ng3";
$myurl = "www.gamers.nu";

print($mynick);
print($myurl);

 

 (#485 2004-01-23 22:32:25) Post Reply
Page 0 1 2 3 4 5 6 7 8

5p0ng3
Need To Set


Enrolled: Jan 2004
Posts: 2
AP: 1

//OOPS FORGOT SOME STUFF
//TO-DO ASSIGNMENT 1;
//by 5p0ng3
// im a c++ programmer so this will take some getting used to :)
//do i have to put the <html> and <head> like the other posts?
//please excuse my ignorance of web programming
<?

$mynick= "5p0ng3";
$myurl = "www.gamers.nu";

print($mynick);
print($myurl);
?>

 

 (#486 2004-01-24 19:04:43) Post Reply
Page 0 1 2 3 4 5 6 7 8

TDavid
php mySQL Perl C/C++
Principal


Enrolled: Mar 2000
Posts: 193
AP: 1

//do i have to put the <html> and <head> like the other posts?

No, not unless it is part of the to-do assignment ;) Welcome to the course!

 

 (#487 2004-01-24 20:01:35) Post Reply
Page 0 1 2 3 4 5 6 7 8

Hixie
Need To Set


Enrolled: Jan 2004
Posts: 3
AP: 1

<HTML>
<HEAD>
<TITLE>Hixie's week one assignment</TITLE>
</HEAD>
<BODY>
<?php
// assigning the variables
$myname = James;
$mynick = Hixie;
$my_site = www.Manked.co.uk;
$age = 15;

//this information will be displayed
print(Hello all, my name is $myname but most people call me $mynick.<br> I'm only $age but im really into computers and i thought i would try programming.<br> im current trying to learn PHP because then i can $my_site alot better);
?>

</BODY>
</HEAD>


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


I uploaded this onto my webspace (and i did the php test and it worked) and it came up with this error "Parse error: parse error in /homepages/8/d31394786/htdocs/Manked2004/phptest.php3 on line 14
Hello" did i something wrong?

 

 (#488 2004-01-24 20:06:27) Post Reply
Page 0 1 2 3 4 5 6 7 8

Hixie
Need To Set


Enrolled: Jan 2004
Posts: 3
AP: 1

<HTML>
<HEAD>
<TITLE>Hixie's week one assignment</TITLE>
</HEAD>
<BODY>
<?php
// assigning the variables
$myname = James;
$mynick = Hixie;
$my_site = www.Manked.co.uk;
$age = 15;

//this information will be displayed
print ("Hello all, my name is $myname but most people call me $mynick.<br> I'm only $age but im really into computers and i thought i would try programming.<br> im current trying to learn PHP because then i can $my_site alot better");
?>

</BODY>
</HEAD>
</HTML>


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


i made a few adjustments, and it worked it can be found here: http://www.ajmwebdesign.com/Ma...04/phptest.php3

 

 (#489 2004-01-24 20:13:36) Post Reply
Page 0 1 2 3 4 5 6 7 8

Hixie
Need To Set


Enrolled: Jan 2004
Posts: 3
AP: 1

sorry for the 3 posts, I found i needed "'s round the information seemed to make it work, the final code can be found at http://www.ajmwebdesign.com/Ma...inalphp1st.php3 for the time being - looking forward to the course

 

 (#490 2004-01-31 04:16:23) Post Reply
Page 0 1 2 3 4 5 6 7 8

koolguy
Need To Set


Enrolled: Dec 2003
Posts: 2
AP: 1

<html>
<head>
<title>PHP RULES!</title>
</head>
<body>

<?php

// my variables with respective values, oh and look at the semicolon
$apellido="G";
$nombre="Fernando";
$url="http://www.univision.com";
$apodo="webformula";

//Something about your friendly neighborhood latino in Chicago
print("Hola, mi name is $nombre $apellido. Love Spidey so I took the nickname $apodo. Hope to someday create a poweful web site just like this one here $url");

?>

</body>

</html>




 

 (#498 2004-02-06 04:07:02) Post Reply
Page 0 1 2 3 4 5 6 7 8

JamesNMira
Need To Set


Enrolled: Feb 2004
Posts: 1
AP: 1

<HTML>
<HEAD>
<TITLE>My First Script - BY: James</TITLE>
</HEAD>
<BODY BGCOLOR="#000000">

<?php


// My First Coding Assignment
// By James


//Variables
$fname="James";
$lname="Joyner";
$website="www.scriptschool.com";

print('<FONT COLOR="#0000FF" SIZE="+3">');
print("Hi, ");
print("My name is $fname $lname! This is my first script.<BR>");
print("I am glad to be apart of $website...");

?>

</BODY>
</HTML>

 

 (#499 2004-02-07 21:41:20) Post Reply
Page 0 1 2 3 4 5 6 7 8

nydud55
Need To Set


Enrolled: Feb 2004
Posts: 2
AP: 1

yeah!!!!
i finally my 1st script working
here it goes

<?php
$nick='attila';
$likes='i like socoms II';
print("my nick name is $nick and i like $likes");


?>

 

 (#500 2004-02-09 16:30:54) Post Reply
Page 0 1 2 3 4 5 6 7 8

rusty
Need To Set


Enrolled: Feb 2004
Posts: 1
AP: 1

<html>
<head>
<title>My first Assignment</title>
</head>

<?php
/* variables containing name, surname and favourite url
to learn php programming */
$name="Unver";//first name
$surname="Rustem";//last name
$fav_url="http://www.navini.com";//favourite url
print("Name:$name<br>");//now print them all
print("Surname:$surname<br>");
print("Favourite url:$fav_url<br>");
printf("My PHP Version %s", phpversion());
?>
</html>

 

 (#501 2004-02-10 08:51:57) Post Reply
Page 0 1 2 3 4 5 6 7 8

reaperx
Need To Set


Enrolled: Feb 2004
Posts: 4
AP: 1

Hi all heres my attempt at the first assignment any helpfull sugestions would be much appreciated.



<HTML>
<HEAD>
<TITLE>Test script 1</TITLE>
</HEAD>
<BODY>
<?PHP
//First php script
//noob time :D
//assign vars
$tag="reaperx";
$lin="<a href="http://www.soe.ca/">Special Operations Executive</a>.";
print ("Hi my name is $tag, you can check out my old BF1942 unit $lin");
?>
</BODY>
</HTML>


 

 (#506 2004-02-12 12:38:58) Post Reply
Page 0 1 2 3 4 5 6 7 8

amgames89
Need To Set


Enrolled: Feb 2004
Posts: 3
AP: 1

i am extremely new and i have no idea what i am doing, well actually, i think i have some idea of how php works by looking at other students so here i go:



<html>
<head>
<title> my first php</title>
</head>
<body>
<?php
//assigned variables
$name1="ryan";
$name2="anger"
$nick="champ"
$site="http://www.download.com"
//Display my info
print ("Hey my name is $name1 $name2 .<br>
My favorite site is $site"
);
?>
</body>
</html>




 

 (#507 2004-02-12 12:41:49) Post Reply
Page 0 1 2 3 4 5 6 7 8

amgames89
Need To Set


Enrolled: Feb 2004
Posts: 3
AP: 1

oops i messed up on mine:



<html>
<head>
<title> my first php</title>
</head>
<body>
<?php
//assigned variables
$name1="ryan";
$name2="anger"
$nick="amgames89"
$site="http://www.download.com"
//Display my info
print ("Hey my name is $name1 $name2 . My nickname is $nick .<br>
My favorite site is $site"
);
?>
</body>
</html>




 

 (#508 2004-02-12 20:57:45) Post Reply
Page 0 1 2 3 4 5 6 7 8

liquidsoul
Need To Set


Enrolled: Feb 2004
Posts: 5
AP: 1

<HTML>
<HEAD>
<TITLE>SchoolScript.com Assignment #1</TITLE>
</HEAD
<?php
// String Name
$firstname="Troy";
$lastname="Edwards";
$nickname="liquidsoul";
$mywebsite="www.google.com";
$myfavoritenumber=13;
//diplay this information in the browser
print('Hello I my name is $firstname $lastname. My online nickname is $nickname. My favorite Search Website is $mywebsite.
//Current Date
print("<br>The current date is: ".date("m/j/y"))
?>
</BODY>
</HTML>


 

 (#509 2004-02-12 20:58:04) Post Reply
Page 0 1 2 3 4 5 6 7 8

liquidsoul
Need To Set


Enrolled: Feb 2004
Posts: 5
AP: 1

<HTML>
<HEAD>
<TITLE>SchoolScript.com Assignment #1</TITLE>
</HEAD
<?php
// String Name
$firstname="Troy";
$lastname="Edwards";
$nickname="liquidsoul";
$mywebsite="www.google.com";
$myfavoritenumber=13;
//diplay this information in the browser
print('Hello I my name is $firstname $lastname. My online nickname is $nickname. My favorite Search Website is $mywebsite.
//Current Date
print("<br>The current date is: ".date("m/j/y"))
?>
</BODY>
</HTML>


 

 (#510 2004-02-12 20:58:16) Post Reply
Page 0 1 2 3 4 5 6 7 8

liquidsoul
Need To Set


Enrolled: Feb 2004
Posts: 5
AP: 1

<HTML>
<HEAD>
<TITLE>SchoolScript.com Assignment #1</TITLE>
</HEAD
<?php
// String Name
$firstname="Troy";
$lastname="Edwards";
$nickname="liquidsoul";
$mywebsite="www.google.com";
$myfavoritenumber=13;
//diplay this information in the browser
print('Hello I my name is $firstname $lastname. My online nickname is $nickname. My favorite Search Website is $mywebsite.
//Current Date
print("<br>The current date is: ".date("m/j/y"))
?>
</BODY>
</HTML>


 

 (#511 2004-02-12 21:10:21) Post Reply
Page 0 1 2 3 4 5 6 7 8

liquidsoul
Need To Set


Enrolled: Feb 2004
Posts: 5
AP: 1

I see the error I have made and it is now corrected .

 

 (#512 2004-02-12 21:30:32) Post Reply
Page 0 1 2 3 4 5 6 7 8

liquidsoul
Need To Set


Enrolled: Feb 2004
Posts: 5
AP: 1

Correct assignment ..Guess I learned not to work on this untill I was able to test it first ..

<HTML>
<HEAD>
<TITLE>SchoolScript.com Assignment #1</TITLE>
</HEAD>
<BODY>

<?php

// String Name

$firstname="Troy";
$lastname="Edwards";
$nickname="liquidsoul";
$mywebsite="www.google.com";
$favoritenumber=13;

//diplay this information in the browser

print("Hello, my name is <b>$firstname$lastname</b>.<BR> My online nickname is<b> $nickname.</b><BR> My favorite Search Website is<b> $mywebsite</b><br>My favorite number is:<B>$favoritenumber</B>");

//Current Date

print("<br>The current date is:<b> ".date("m/j/y</b>"))
?>

</BODY>
</HTML>

 

 (#514 2004-02-16 10:53:34) Post Reply
Page 0 1 2 3 4 5 6 7 8

smilingdog
Need To Set


Enrolled: Feb 2004
Posts: 3
AP: 1

<html>
<head>
</head>
<body>
<?php
/*This is my first assignment
it creates variables for first name, last name
and a favorite url.*/
$firstname = "Tom";
$lastname = "La Velle";
$faveurl = "http://www.sourceforge.net";
/*Now the print function will output the variables to
printer. Oh, by the way, I am also using the comment functionality*/
print("This is my name: $firstname $lastname<br>");
print("and this is my favorite URL: $faveurl");
?>
</body>
</html>

 

 (#518 2004-02-18 20:49:58) Post Reply
Page 0 1 2 3 4 5 6 7 8

ice52us
Need To Set


Enrolled: Feb 2004
Posts: 9
AP: 1

<html>
<head>
<title>steeeve</title>
</head>

<body>
<?php
$name='steve johnson';
print (hi my name is $name, how are you?);

?>


</body>
</html>

 

 (#520 2004-02-19 09:20:45) Post Reply
Page 0 1 2 3 4 5 6 7 8

nymor
Need To Set


Enrolled: Feb 2004
Posts: 3
AP: 1

Here it is:
<html>
<head>
<title>
Week #1 PHP Assignment
</title>
</head>
<body>
<?php
//Assign strings
$name = 'Aaron';
$web1 = 'http://www.LangMaker.com';
$web2 = 'http://www.diarenye.net';
//Print info
print("Hello! My name is $name!<br /> One of my favorite websites is $web1, another is $web2.");
?>
</body>
</html>

Any suggestions?

 

 (#522 2004-02-20 14:37:48) Post Reply
Page 0 1 2 3 4 5 6 7 8

kites
Need To Set


Enrolled: Feb 2004
Posts: 2
AP: 1

<html>
<head>
<title> Assignment 1, assogn a script to print name and website </title>
</head?
</body>
<?php
// this program is going to use php to display my name and favorite website
$firstname='Gary';
$lastname='Kitts';
$nickname='kites';
$website='http://www.google.com';
// display information in browser
print ("Hello my name is $firstname $lastname my frends call me $nickname.<br>My favorite website is $website.")

?>
</body>
</html>

 

 (#523 2004-02-20 14:40:04) Post Reply
Page 0 1 2 3 4 5 6 7 8

kites
Need To Set


Enrolled: Feb 2004
Posts: 2
AP: 1

assign...sorry for the mistake!!!!

 

 (#525 2004-02-22 20:50:09) Post Reply
Page 0 1 2 3 4 5 6 7 8

bounty
Need To Set


Enrolled: Feb 2004
Posts: 2
AP: 1

<html>
<head>
<title>My Site</title>
</head>

<body>
<?php// start code
//variables using php
$firstname='Rick'<br>
$lastname='jobe'<br>
$nickname='luckyolboy'<br>
$url='www.yahoo.com'<br>
//comand to print
print(;Hello my name is $firstname $lastname<br>
My nickname is $nickname<br>
And my favorite url is $url <br>
?> //end code


</body>
</html>

 

 (#526 2004-02-22 20:59:08) Post Reply
Page 0 1 2 3 4 5 6 7 8

bounty
Need To Set


Enrolled: Feb 2004
Posts: 2
AP: 1

Corrections:)

<html>
<head>
<title>My Site</title>
</head>

<body>
<?php //start code
//variables using php
$firstname='Rick'
$lastname='jobe'
$nickname='luckyolboy'
$url='www.yahoo.com'
//comand to print
print('Hello my name is $firstname $lastname<br>
My nickname is $nickname<br>
And my favorite url is $url <br>')
?> //end code


</body>
</html>

 

 (#527 2004-02-23 00:41:07) Post Reply
Page 0 1 2 3 4 5 6 7 8

slinky
Need To Set


Enrolled: Feb 2004
Posts: 7
AP: 1


<?php
//Create the s for later use
$name=kirk; /*i'm setting my name as the varable $name for later use*/
$nick=Radeon|x; /*now i'm setting my nick as $nick for later use*/
$age=13; /*guess what i'm setting my age as the varable $age for later use*/
$fav_site=http://scriptschool.com; /*setting the website varable for later use*/
$my_site=www.te3nz-xtreme.tk; /*setting the varable for my site as $my_site for later use*/

//now to use them varables
echo(hi my name is $name and my web name is $nick i'm $age years old my fav site is $fav_site and my site is $my_site there plain and simple);
php?>



 

 (#529 2004-02-27 13:46:55) Post Reply
Page 0 1 2 3 4 5 6 7 8

jed
Need To Set


Enrolled: Feb 2004
Posts: 1
AP: 1


<html>
<head>
<title>Jeds 1st php script</title>
</head>
<body>
<?
//this script willl show my name and a few other things
//assign the variables
$firstname="Jed";
$lastname="Miller";
$website="http://www.jboard.tk";
//this part will display the variables in one sentance
print ("hello,my name is $firstname $lastname and my website is $website)
?>
</body>
</html>




it isnt working on my host but is it ok

 

 (#530 2004-02-28 23:49:09) Post Reply
Page 0 1 2 3 4 5 6 7 8

dwpreston
Need To Set


Enrolled: Feb 2004
Posts: 4
AP: 1

<HTML>
<HEAD>
<TITLE>SchoolScript.com Assignment 1</TITLE>
</HEAD>
<BODY>
<?php
// display my name and website using variables in PHP.
// Assigns.
$firstname="Douglas";
$lastname="Preston";
$website="http://www.prestons-tx.us/dwpreston";
// Display variables in browser.
print("Hello, My Name is $firstname $lastname.<br>My favorite site is $website.");
// Print todays date.
print("<br>Todays Date is: ".date("m/d/y"))
?>
</BODY>
</HTML>

 

 (#535 2004-03-03 18:19:14) Post Reply
Page 0 1 2 3 4 5 6 7 8

newf102
Need To Set


Enrolled: Mar 2004
Posts: 1
AP: 1

asignment 1


<html>
<head><title>script school assognment 1</title></head>

<body>
<?
//this will display my name and my favorite site using varibles
//the variables
$name='newf';
$site='<a href"http://www.addictinggames.com" target="_blank">my fav site</a>';
//display in the browser
print("howdie, my names is $newf i am cool and liek to spend all day on $site")
?>
</body>
</html>

 

  Page 0 1 2 3 4 5 6 7 8

View Previous Thread
Print this page Print This Page

View Next Thread

School Map:  Home / Enroll $ Student Records; Class  
$ News @ LIVE Tech Radio * Support/FAQ | Store

Advertising | Link To Us | Privacy 
Copyright 2000-2002 Script School Productions / KMR Enterprises 
No part of this website may be reproduced, copied and/or distributed in any medium 
without express written permission