PHP User Function issue
I am having problems with user written functions. The following statements don't seem to work inside the function when I pass a filename as a parameter (value or reference).$userfile_name
$userfile_type
example
function upload($file) {
if ($file_name) {
...}
if ($file_type) {
...}
} //end upload
...
upload($userfile);
...
Is there something unique with functions that reside in the same .php file ? I am testing on a workstation using omni httpd, is it related to this web server ? I am even having trouble returning modified variables in the function back to the caller. Not using return statement. If I pass by reference, the passed parameter should take on any changes in the function.
Help, programmer getting frustrated with PHP !!!