Training, Open Source computer languages

PerlPythonMySQLTclRubyC & C++LuaJavaTomcatPHPhttpdLinux

Search for:
Home Accessibility Courses Diary The Mouth Forum Resources Site Map About Us Contact
PHP Programming quiz, level Advanced, question 3
Question: What's the best way to copy a file from within a piece of PHP?
Answer 1: Use the built in copy() function
This was the CORRECT answer
Answer 2: Open the input and output files, and use read() and write() to copy the data block by block until read() returns a zero
Answer 3: Use "exec" to run an operating system command such as cp (Unix, Linux) or copy (Windows)
Answer 4: Print out a message asking your user to "telnet" in to the server and copy the file for you

This was a question from our quiz ... but we have now provided you with the answer (above) - we prefer to provide you with information rather than to puzzle you.
Lua
PHP
Perl
Java
MySQL
Python
Linux
Apache Tomcat
Apache httpd
C and C++
Tcl and Tcl/Tk
Hotel
Recent additions


© WELL HOUSE CONSULTANTS LTD., 2009: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • FAX: 01144 1225 707126 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho