cellphones as interactive media interfaces

wed 6:30-9:30 harvestworks

main | class links | class 1 notes | class 2 notes | class 3 notes | code + patches

liubo borissov liubo@nyu.edu
dana karwas dlk253@nyu.edu

code and patches

>>class 3 patches
>> perl and php download
>> cron file

There is one perl script which is called popperkd22.pl and there are three php scripts which are called logic.php, include_tech.php and include_libmail.php.

-popperdk22.pl: get the stuff, put is somewhere, and then do something with it..... this is the perl script that will be placed in the root of your server(others can not access the root). For this perl script you will just have to change the beginning of it. You can modify other parts of it for other commands such as renaming file types, etc. Most importantly in the first part of the script the email address and password will need to be set up. A POP email account is needed in order for this to work correctly. Folders on your server where the files are going need to have read and write permissions set to chmod 755. Make sure to create a folder called temp and place it in the same folder that you have created for the files.

There are three php scripts
These scripts will be placed in a folder on the server which can be accessed by the web. PHP is needed in order to connect to the MySQL database.

-logic.php: this script takes the information and places it in the database. It also allows for an email to be sent back to the phones/users. the logic.php script includes two other scripts. the first is the include_tech.php script and the second is the include_libmail.php script.

-include_tech.php: this will determine how to connect to the database, some information in this script will need to be changed in order to connect to the correct database.

-include_libmail.php: this php script will not need to be changed, it just creates functions that you need for sending mail.

cronfile
-the cronfile.txt needs to be placed on the server, it does not matter where. It is important to change the content of the file to accompany your server. It is the cronfile that tells the perl script when to run. To run the cron tab it is necessary to ssh onto the server through the terminal and run the cronfile.txt The cronfile.txt is linked above, you will have to copy the text and resave it as a .txt file.