scroll to top
Stuck on your essay?
Get ideas from this essay and see how your work stacks up
Word Count: 614
Author Syed R Fayyaz Comments This is a very simple script to display a security threat level on your website This script fetches data from Department of homeland security Website and stores it into an array After parsing it gets the level of security Installation You need to make 5 different images and place their links in the appropriate conditions below EXAMPLE There are total five threat levels Severe High Elevated Guarded and Low You will make 5 different images for these threat levels Now lets suppose the very first image you created to display severe level you saved it as severejpg and placed it in the folder or directory name img At this point you know that to access this image you just created the path should be wwwyourwebsitenamecomimgseverejpg So all you need to do is adjust links in the following code to display images from your website In the code below you should see a comment saying if the threat level is SEVERE then display severe image in that condition block see where it says echo ltimg alignmiddle src imgseverejpg width119 height77gt in this echo statement you see src imgseverejpg this is the path for the image you want to display if the level is severe So all you have to do is adjust the links to your images Still find this complicated Email me at syedraza70hotmailcom or use contact form on this website DEMO You can see this script in working condition at wwwimmiseekcom at the very bottom of the page on right side ltPHP Lets connect to the DHS website to get the threat level threat eregireplaceCONDITION gt 1 imploden filehttpwwwdhsgovdhspublicgetAdvisoryCondition if the threat level is SEVERE then display severe image if pregmatchSEVERE threat the link of the image i gave is imgseverejpg you should change it where ever you stored your
@Kibin is a lifesaver for my essay right now!!
- Sandra Slivka, student @ UC Berkeley
Wow, this is the best essay help I've ever received!
- Camvu Pham, student @ U of M
If I'd known about @Kibin in college, I would have gotten much more sleep
- Jen Soust, alumni @ UCLA