cn
GD-graphic library already installed in php
next week- no class-wrokshop in rm 445
dens crowley-dodgeball.com
dens@teendrama.com
terminal input by chris:
Last login: Tue Nov 25 01:59:57 on console
Welcome to Darwin!
172-26-13-193:~ wicked7578$ ssh js960
ssh: Could not resolve hostname js960: No address associated with nodename
172-26-13-193:~ wicked7578$ ssh js960@itp.nyu.edu
js960@itp.nyu.edu’s password:
Last login: Tue Oct 28 14:42:49 2008 from 172-26-13-193.dynapool.nyu.edu
[js960@itp ~]$ cd pu*
[js960@itp public_html]$ ls
Adobe Creative Suite 3 Design Premium (US) [k].app icm
AJAX index.html
Anthropology of Social Software InteractiveArt
ArtScienceCollision LIPP
BlackBook.html methodofmotion
blackbook.jpg _notes
CommLab PhyComputing
dwd pictures
GLArt Resume
hawaii
[js960@itp public_html]$ cd dwd
[js960@itp dwd]$ ll
total 68
drwxr-xr-x 4 js960 users 4096 Nov 25 14:57 10
drwxr-xr-x 2 js960 users 4096 Nov 25 08:08 11
drwxr-xr-x 2 js960 users 4096 Sep 25 21:46 3
drwxr-xr-x 2 js960 users 4096 Sep 30 15:44 4
drwxr-xr-x 2 js960 users 4096 Oct 8 08:25 5
drwxr-xr-x 2 js960 users 4096 Nov 3 22:37 7
drwxr-xr-x 3 js960 users 4096 Nov 18 08:01 9
-rw-r–r– 1 js960 users 2658 Sep 16 06:16 class02-file1.php
-rw-r–r– 1 js960 users 2081 Sep 16 15:56 class02-form2.php
-rw-r–r– 1 js960 users 2073 Sep 16 15:54 class02-form3.php
-rw-r–r– 1 js960 users 1005 Sep 9 14:45 DynamicWebsite.php
drwxr-xr-x 3 js960 users 4096 Nov 25 00:40 final
-rw-r–r– 1 js960 users 559 Sep 9 07:57 HelloWorld.php
-rw-r–r– 1 js960 users 2658 Sep 16 06:12 input.php
-rw-r–r– 1 js960 users 152 Sep 16 06:31 input.txt
drwxr-xr-x 3 js960 users 4096 Oct 28 13:35 midterm
-rw-r–r– 1 js960 users 1726 Sep 16 06:21 name.php
[js960@itp dwd]$ cd 190
-bash: cd: 190: No such file or directory
[js960@itp dwd]$ cd 10
[js960@itp 10]$ ll
total 100
-rwxr-xr-x 1 js960 users 8029 Nov 25 08:09 AC_RunActiveContent.js
-rw-r–r– 1 js960 users 1945 Nov 25 12:44 fileref.html
-rw-r–r– 1 js960 users 66573 Nov 25 12:44 fileref.swf
drwxr-xr-x 2 js960 users 4096 Nov 25 08:20 images
-rw-r–r– 1 js960 users 3070 Nov 25 14:37 pictures.php
-rw-r–r– 1 js960 users 1420 Nov 25 14:57 pictures_save.php
drwxr-xr-x 2 js960 users 4096 Nov 25 08:21 temporary
[js960@itp 10]$ mv pictues.php pictures_old.php
mv: cannot stat `pictues.php’: No such file or directory
[js960@itp 10]$ mv pictures.php pictures_old.php
[js960@itp 10]$ mv pictures_save.php pictures.php
[js960@itp 10]$ ll
total 100
-rwxr-xr-x 1 js960 users 8029 Nov 25 08:09 AC_RunActiveContent.js
-rw-r–r– 1 js960 users 1945 Nov 25 12:44 fileref.html
-rw-r–r– 1 js960 users 66573 Nov 25 12:44 fileref.swf
drwxr-xr-x 2 js960 users 4096 Nov 25 08:20 images
-rw-r–r– 1 js960 users 3070 Nov 25 14:37 pictures_old.php
-rw-r–r– 1 js960 users 1420 Nov 25 14:57 pictures.php
drwxr-xr-x 2 js960 users 4096 Nov 25 08:21 temporary
[js960@itp 10]$ Read from remote host itp.nyu.edu: Connection reset by peer
Connection to itp.nyu.edu closed.
172-26-13-193:~ wicked7578$
cn
innerHtml
jQuery-known for manipulating DOM well
flash can receive n send info over internet n thru server
name/value/pairs-for text
obj.title=”food network”;
in flash=title:___________________
title=foodNetwork & url=http & desc=food
$_GET
$_POST
LoadVars
flash expects name/value/pair format of data from php
status=ok&
print.status=”ok”
in flash obj.status=”ok”
LoadVarObject
send and load-sends info to php n gets info from php
SEND-send info to server
OnLoad-used when dealing w/ data
flash n xml
XMLsend()
cn
require “server.php” vs include
administrative userface
google analytics-any errors on other websites are sent to here from users
music 101
databse design
end user pages
list of musician
profie page
have page
admin pages
login
list of musicians to edit
editing page(edit profie)
split function
$states[0]=name
$states[1]=
INSERT INTO state…
tab-deliminate format
if 5000 ppl visited site at same time
<input type=”hidden” name=”i” value=”5″> – hidden value of i
php music101-insert.php countires.txt in terminal inserts all country data into data table
limit- skips over data. used in recordset (page #’s @ bottom)
(rs-1)*size
benchmark.php on note-figues out how fast site is
XSL-xtensible stylesheet language-
XSLT-XML n XSL together. makes websites look same across platforms
API-application programming interface-
cn
gmail-ajax
most common serach word is used for search in google and amazon
javascript
<div id=”"> javascript can get id info
properties
methods
document.bgcolor=”"
object.bgcolor
document.write
<a href=”javascript.”)
onClick=”document.bgcolor
regular expressions
in getting rid of white space
- ^\s
- \s+$
onFocus()-clikcing into it
onBlur()-clicking out of it
synchronos
asynchronos
synchronos
xml was created to describe data
html is how it looks
htmlspecialchars-”,’,&,<,> other characters are used in xml to escape html character settings
php can generate xml in its own coding
midterm
my food menu per week-lists food menus in satisfaction rating order
lunch menu, dinner menu, satisfaction rating(radio button),
login, image upload,
This is page where each person enters their own lunch menu, its expense, satisfaction rating for the menu, tells whether the menu is organic or not, and uploads the image of lunch menu along with the restaurant name that person bought that lunch menu from. Finally person decides if he or she could have had another menu rather than what he or she had for that day. The purpose is to measure how much people get satisfied with their daily lunch choice. Hopefully in the future, each person will have their login page to view each person’s all lunch menus and preferences the person has entered. This gathering of lunch menu record might also improve each person’s daily lunch menu.
for a particular day and
Afghan
African
American (New)
American (Traditional)
Argentinean
Asian
Australian
Austrian
Bagels
Bar Food
Barbecue
Belgian
Bistro
Brazilian
Burgers
Burmese
Cajun & Creole
Californian
Caribbean
Cheesesteaks
Chicken
Chinese
Coffeehouses
Cuban
Delis
Desserts & Bakeries
Dim Sum
Diners & Coffee Shops
Eastern European
Eclectic & International
English
Ethiopian
Filipino
French
German
Greek
Haitian
Hawaiian
Health Food
Hot Dogs
Indian
Indonesian
Irish
Italian
Jamaican
Japanese
Korean
Kosher
Latin American
Malaysian
Mediterranean
Mexican
Middle Eastern
Moroccan
Noodle Shops
Other
Pan-Asian & Pacific Rim
Persian
Peruvian
Pizza
Polish
Portuguese
Russian
Sandwiches
Scandinavian
Seafood
Soups
South American
Southern & Soul
Southwestern
Spanish
Steakhouses
Sushi
Swiss
Tapas
Teahouses
Thai
Tibetan
Turkish
Vegetarian
Venezuelan
Vietnamese
Wild Game
Wings
cn
IMAP
POP3
css-doesn’t look same on every browser
#p3{text-weight:bold;}
<p id=”p3″> can only use once
page can be hidden using css n javascrpt
.p3{text-weight:bold;}-class that can be used forever.
<p class=”p3″>
friendster didn’t have technology to deal w/ popularity and became demise.
cn
dropdown-one to many
cookies-amazon uses to save user’s info
session-starts when logged in. timed. ends when browser closes
can put image in background
hobby table
name, hobby, category, description, how often
class note
home/netID/sqlpw
id:netID
pw
php<->mySQL
- connect
- select DB
- queries
- mysql_query
- mysql_close
associative array-$row=["id"]


