11.07.2015 Views

PHP MySQL - Stilson.net

PHP MySQL - Stilson.net

PHP MySQL - Stilson.net

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

www.it-ebooks.infoCHAPTER 10 • WORKING WITH THE FILE AND OPERATING SYSTEMAn Alternative to BackticksThe shell_exec() function offers a syntactical alternative to backticks, executing a shell command andreturning the output. Its prototype follows:string shell_exec(string command)Reconsidering the preceding example, this time we’ll use the shell_exec() function instead ofbackticks:SummaryAlthough you can certainly go a very long way using solely <strong>PHP</strong> to build interesting and powerful webapplications, such capabilities are greatly expanded when functionality is integrated with the underlyingplatform and other technologies. As applied to this chapter, these technologies include the underlyingoperating and file systems. You’ll see this theme repeatedly throughout the remainder of this book.In the next chapter, you’ll be introduced to the <strong>PHP</strong> Extension and Application Repository (PEAR).255

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!