[prev] [index] [next]

Exercise: web page access

Write a PHP script called wcat ...
  • implements a similar function to cat
  • operates on web pages rather than files
  • command-line arguments are URLs
  • simply copies result of each URL to output
  • if a URL can't be accessed, display "Can't open X"