[PHP] Re: how can this be? GET instead of POST - db error

2002-07-13 Thread Dyon Beaart

I dont know what causus it, but I have a kind of a solution for your
problem...

you probably have something like $_GET[myvar] in your query, try to do
something like this :
$_VARS=_$REQUEST_METHOD;
$_VARS=$$_VARS;

And then instead of using the _GET, you use the _VARS...


Andy [EMAIL PROTECTED] schreef in bericht
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Hi everybody,

 I am just trying to find out how some db errors happened during a user was
 browsing my web app.

 This is out of the Apache log:

 GET /subapp_profiles/act_upload_image.php HTTP/1.1 200 160
 POST /subapp_profiles/act_upload_image.php HTTP/1.1 302 5

 I do not have a clue where this GET request could come from. This has
caused
 a empty sql statement and therefore a db error. How can could this be
 achieved? By clicking back in the browser window? I dont think so since
the
 same user was on another site before.

 Has anybody a idea on that?

 Andy





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: Can not delete files that were uploaded

2002-07-12 Thread Dyon Beaart

You can try to 'chmod' it first :
@chmod ($myfile, 0777);
and then do an exec or passthru..
exec(rm -f $myfile);
Note the '@', if the chmod fails, he doesn't show it...

Good luck
Dyon

Anan [EMAIL PROTECTED] schreef in bericht
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Hello,

 I use PHP to upload files to the web server via web browser.  However, I
can
 not delete the files later cause the Redhat linux server running on safe
 mode. Do I have to changed the owner of the file during the file uploading
 time?

 Please let me know how to solve this problems.

 Anan





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php