Thread: uploading files
View Single Post
  #5 (permalink)  
Old May 24th, 2007, 11:52
masonbarge's Avatar
masonbarge masonbarge is offline
Highly Reputable Member
Join Date: Jan 2006
Location: Atlanta GA
Posts: 631
Thanks: 0
Thanked 0 Times in 0 Posts
Re: uploading files

I actually recognize the function. It's used by Larry Ullman in the book I used as my introductory PHP text (PHP and MYSQL for Dynamic Websites) and AFAIK he wrote it.

There is an entire chapter in the book in which you construct an e-commerce site, and I'm betting a dollar your script originated there. It's an excellent book, btw.

There's no need to wonder about magic quotes or anything else, and unless you are using a server on which you installed PHP yourself, the "default" settings are meaningless. Webhosts can and do establish defaults different from the PHP version.

The easy solution: Save this tiny page as "phpinfo.php" in your public_html directory (preferably in a password protected administrative subdirectory):
PHP: Select all

<?php
phpinfo
();
?>
Reply With Quote