- This assignment is to determine if you can connect to a server and work with PHP
- It will entail:
- Creating a site through Dreamweaver and connecting to the remote server
- Work with PHP code and a processing page
- Finding your files remotely
- Watch the following video that outlines connecting a site and uploading PHP files:
*For security purposes the connection info is modified...download the updated information from the link below. Also, I added the last section with a new version of Dreamwever and changed to a folder called testing-site. Sorry if that is confusing.
- Download actual ftp information *Because I don't want to share this information with the world,
the ftp info is different than the video .
- 1. Using your personal ftp connection demonstated above create an info.php page using the phpinfo code:
<?php
// Show all information, defaults to INFO_ALL
phpinfo();?>- You can access it online by going to http://mgdstudent.tech/yourlastname/info.php
- 2. Create a dynamic animal page like the page in the video. It doesn't have to be animals, but it has to have the same logic like the following:
- What kind of animal person are you example?
- On the original page add ?variablename=result
- ex: animalpage.php?mypet=Cat
- On the second page to fill in the approriate area with
- <?php echo $_GET['mypet']; ?>
- <?php echo $_GET['mypet']; ?>
- You should have three pages in your directory:
- Info.php
- Animal.php
- animalanswer.php
- (Extra credit 5pts if you can include complimentary images and styles on the animal answer page)
- 1. Using your personal ftp connection demonstated above create an info.php page using the phpinfo code:
10 pts - *You can also zip the files and upload to D2L in the server and php folder if you want feedback. Due Feb 7