PHP Image upload error with file contains quotes -


i'm having troubles if try upload file contains ' chars if i'm using file upload page on web sites provider's server. i'm using namecheap.com right don't know client using later.

everything working ok localhost, files containing quotes.

the biggest problem isn't failing upload. white screen appears when i'm trying upload files "image '2' test.png". mean, cannot generate error messages.

i have debugged lot , blank screen comes every time i'm using $_files. seems cannot things if($_files has errors){ echo 'use different file name..'; }.

so, whole upload.php crashes if i'm using filenames '-quotes , cannot send error messages or redirect users. hope has solution this?


thanks still didn't got work. have tried , without magic quotes, have tried parse quotes file names didn't either.

however, problem bigger thought. because i'll white page if didn't use $_files @ all! example: if generate upload.php file this:

<?php echo "test"; ?>

and try html form file name containing ', doesn't print test. blank screen. server related issue then? prints test if i'm using normal file picture24.jpg.

  • magic_quotes_gpc affects http request data (get, post, , cookie). cannot set @ runtime, , defaults on in php. see get_magic_quotes_gpc().

  • magic_quotes_runtime if enabled, functions return data external source, including databases , text files, have quotes escaped backslash. can set @ runtime, , defaults off in php. see set_magic_quotes_runtime() , get_magic_quotes_runtime().

  • magic_quotes_sybase if enabled, single-quote escaped single-quote instead of backslash. if on, overrides magic_quotes_gpc. having both directives enabled means single quotes escaped ''. double quotes, backslashes , null's remain untouched , unescaped. see ini_get() retrieving value.

hope in solving problem.


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -