|
Posted by Hilarion on 09/13/05 15:04
> the PHP is residing on the server side.The scripts are running at
> client side I only have a Internet Explorer (as our product is windows
> related) thats it. The Directory is been browsed on client side.
PHP in general does NOT work on client side. It's run on the webserver
when the HTTP request is made, so the script does not have any access
to the client machine.
Yes, you can run PHP on any computer (including local and/or client
computer), but not by using browser and entering distant (non-local)
URL, but by installing PHP engine on that computer and running the
script in that engine.
> page source ("View" -> "Source" in IE) is nothing for above code.
Nothing? Does it output anything if you enter this line after
the error_reporting line:
echo 'text: ' . $some_undefined_variable . '<br />';
No output suggests that the "opendir" function returns FALSE, but
it also should give a warning stating what was the cause of problem
(and error_reporting( E_ALL ) should make PHP output all warnings).
I still think that the main problem is that the "C:\TEMP" folder
does not exist on the webserwer on which the script is running
(when you think that it's running on the machine which is requesting
the script), but there should be a warning anyway.
Hilarion
Navigation:
[Reply to this message]
|