School Map:
Home / Enroll
$ Student Records; Class
$ News @ LIVE
Tech Radio * Support/FAQ
| Store | FORUMS
(#840 2005-06-19 22:19:55) Post Reply |
|
freja
|
so i created this in a text editor and named it try.php and uploaded it to my site- is that what we're supposed to do? Anyway it came out looking like this on the page: frejahttp://www.abc.net.au So obviously I've done it wrong, if you have more than one string to print and you want a space or line between them what syntax do you use? |
(#845 2005-07-04 08:51:36) Post Reply |
|
Wizzard
|
I hope this is right and what a wonderful idea to have a school like this. |
(#846 2005-07-04 08:57:08) Post Reply |
|
Wizzard
|
Hey freja
If you haven't gotten the answer yet then you can try <br> It creates a spacing. Cheers |
(#860 2005-08-27 13:00:31) Post Reply |
|
hyster
|
i hope this is ok
<?php $myname="hyster";//my name $mysite="www.ultimate-fighters.com";//my fav site $myage=32;//my age print($myname);//prints my name print($mysite);//prints my fav site print($myage);//prints my age ?> |
(#861 2005-08-28 03:15:50) Post Reply |
|
Sabiha
|
I am new in this class, give me suggestion that how I do improve my programing and reduce the bugs.
Thanks Here is following my code. <HTML> <HEAD> <TITLE>SchoolScript.com Assignment 1</TITLE> </HEAD> <BODY> <?php // This program will use php to display my name and website using variables. // Assign the variables. $firstname='Sabiha'; $lastname='Shafqat'; $nickname='Sab'; $website='http://www.mta.tv'; // Display information in browser. print("Hello,my name is $firstname $lastname and my nick is $nickname.<br>I like this site $website."); // Print the current date. print("<br>Today is: ".date("m/j/y")) ?> </BODY> </HTML> |
(#862 2005-08-29 15:02:49) Post Reply |
|
phpfreak
|
|
(#863 2005-08-29 15:03:16) Post Reply |
|
phpfreak
|
|
(#866 2005-09-06 06:59:29) Post Reply |
|
Sudheer
|
<?
//myname stores my name. $myname=Sudheer; //mysite stores my favourite site $mysite=www.script-school.com; //Here goes the print command printf(My name is $myname and my favourite site is $mysite); ?> |
(#870 2005-09-09 18:41:04) Post Reply |
|
helmy
|
Here it be assignment 1.
|
(#871 2005-09-10 15:49:22) Post Reply |
|
pauliuse30
|
<?
//variables $mynickname="pauliue30"; $myfavoriteurl="http://pgabdankas.siteburg.com/"; //data printing print("Hi, my nick is $mynickname, see my progress in PHP on <br> $myfavoriteurl"); ?> |
(#872 2005-09-30 19:04:22) Post Reply |
|
jewelz
|
|
(#873 2005-10-10 14:47:53) Post Reply |
|
acsinclair
|
Hi All,
Here is my homework from Week 1:
Cheers, Erica |
(#877 2005-10-21 19:41:09) Post Reply |
|
Goudarzi
|
I just wanted to thank you for this... i'm learning alot. This week was mostly review for me. I had a basic knowledge of PHP already
example code: <? $Text= "Hello World"; $Name= "My name is Adam"; print(" $Text $Name "); // This was a simple program made for fun ?> |
(#879 2005-10-28 18:05:48) Post Reply |
|
DarePoo
|
|
(#890 2005-11-22 20:32:35) Post Reply |
|
emanoyhl
|
are these boards still here? :)
<? $name = "emanoyhl"; $url = "http://www.insidebear.com"; print("My name is $name, my favorite website is <a href="$url">INSIDE Bear Magazine</a>!"); ?> |
(#900 2005-11-29 13:46:25) Post Reply |
|
Garth
|
<?
/* This is my first attempt at php */ /* This will print This is Garth! in the browser*/ print(This is Garth!); /* This will tell me what version of Php is running on the server*/ printf(My server is running php version %s, phpversion()) ?> <? // This will print This is Garth? using a string. $username = This is Garth?; print($username); ?> <? /*This will print http://www.google.com*/ print(http://www.google.com); ?> |
(#902 2005-12-08 11:15:48) Post Reply |
|
mgh397
|
<html>
<head> <title>Michel Garcia's Profile</title> </head> <body> <center> <?php //This script is made to display informaiton about me via assigned variables //Stored details in the variables $firstname='Michel'; $surname='Garcia'; $nick='mgh397'; $email='<a href="mailto:mgh397@hotpop.com">mgh397@hotpop.com</a>'; $site='<a href="http://www.mgh397.be/phpschool/001.php" target="_blank">www.mgh397.be/phpschool/001.php</a>'; //Print My Details print("Hello, my name is $firstname $surname.<br/>My nickname is $nick. <br/>My e-mail is $email.<br/>My website is $site."); ?> </center> </body> </html> Is it right? |
(#908 2005-12-29 18:22:19) Post Reply |
|
Dylan
|
|
(#909 2005-12-29 18:24:09) Post Reply |
|
Dylan
|
Oops, I've already messed up... ;) Forgot to close my HTML and HEAD tags.
|
(#910 2005-12-29 18:27:07) Post Reply |
|
Dylan
|
Dear Lord, I stink... third time is the charm:
|
(#928 2006-01-22 10:06:11) Post Reply |
|
yanny0808
|
|
(#933 2006-01-26 09:42:40) Post Reply |
|
Jan
|
|
(#934 2006-01-28 13:26:11) Post Reply |
|
host07
|
I just finished this assiignment. It works comments welcome.
//script variables $my_name =Paul; $my_lastname =Hardy; $favorite_url =http://www.scriptschool.com; //screen output echo (My name is $my_name $my_lastname); echo (<br>My favorite url is ); echo ($favorite_url); echo (<br> The current date is: . date(j/m/y)) ?> |
(#952 2006-02-26 14:52:10) Post Reply |
|
DrgnLdy
|
assignment 1 a bunch of trial and error but i finally got it
|
(#954 2006-02-28 19:01:39) Post Reply |
|
mrgoodrat
|
<?
//Declare some variables $myName = "Russell Block"; $myWebsite = "www.mrgoodrat.com"; //Print data print "Name: $myName <br>Web : $myWebsite"; ?> |
(#957 2006-03-03 08:32:57) Post Reply |
|
ZeusXena
|
My First PHP Script <HTML> <HEAD> <TITLE> Learning Php Lesson 1 </TITLE> </HEAD> <BODY> Hi There!!! <script language="php"> /* ‹(•¿•)›My First Script‹(•¿•)› */ // Using variables To Display Some Informations About Me //Store The Variables $first = 'Nicholas'; $last = 'ZeusXena'; $site = '<a href="http://www.zeus-site.com" target="_blank">My We Site</a>'; $email = '<a href="mailto:zeus.a@ntlworld.com">Mail</a>'; //Brower Display Informations print ("<br>Nice to be here!!!<br>My Name Is:$first<br>My Last name Is:$last<br>This is $site<br> My Email $email"); </script> </BODY> </HTML> My Brower Displays The Following Hi There!!! Nice to be here!!! My Name Is:Nicholas My Last name Is:ZeusXena This is My We Site My Email Mail I'm so happy! I never Thought I will be able to right PHP Script. Thanks To This Web Site, For Me Is Easy Now To Understand Some PHP Code. :-) Great!!!!!!! |
(#958 2006-03-03 08:37:12) Post Reply |
|
ZeusXena
|
My First PHP Script <HTML> <HEAD> <TITLE> Learning Php Lesson 1 </TITLE> </HEAD> <BODY> Hi There!!! <script language="php"> /* ‹(•¿•)›My First Script‹(•¿•)› */ // Using variables To Display Some Informations About Me //Store The Variables $first = 'Nicholas'; $last = 'ZeusXena'; $site = '<a href="http://www.zeus-site.com" target="_blank">My We Site</a>'; $email = '<a href="mailto:zeus.a@ntlworld.com">Mail</a>'; //Brower Display Informations print ("<br>Nice to be here!!!<br>My Name Is:$first<br>My Last name Is:$last<br>This is $site<br> My Email $email"); </script> </BODY> </HTML> My Brower Displays The Following Hi There!!! Nice to be here!!! My Name Is:Nicholas My Last name Is:ZeusXena This is My We Site My Email Mail I'm so happy! I never Thought I will be able to right PHP Script. Thanks To This Web Site, For Me Is Easy Now To Understand Some PHP Code. :-) Great!!!!!!! |
(#959 2006-03-03 08:47:40) Post Reply |
|
ZeusXena
|
Sorry I posted my assignment twice
also notice I spelt browser Incorrectly I'm a Greek and I am always making spelling mistakes |
(#986 2006-04-05 22:50:20) Post Reply |
|
GH0ST
|
Did i miss something? how do i get everything on its own line? Or is this something we will learn later?
|
(#989 2006-04-18 00:57:45) Post Reply |
|
isiahw1
|
|
View Previous Thread Print This Page |
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