Re: [PHP-DB] Image / file uploader

2004-05-06 Thread PHPDiscuss - PHP Newsgroups and mailing lists
Try using the following: $_SERVER[PHP_SELF] Mainly, get rid of the quotes inside the brackets. Usually this error 'T_String' generally occurs when you have quotes ( or ') where they shouldn`t be. Give it a try if that thing still troubles you... Good luck Craig Hoffman wrote: Sorry to be

Re: [PHP-DB] Image / file uploader

2004-05-06 Thread Daniel Clark
I think you need the quotes: $_SERVER['PHP_SELF'] Try using the following: $_SERVER[PHP_SELF] Mainly, get rid of the quotes inside the brackets. Usually this error 'T_String' generally occurs when you have quotes ( or ') where they shouldn`t be. Give it a try if that thing still troubles

RE: [PHP-DB] Image / file uploader

2004-04-30 Thread Ford, Mike [LSS]
On 30 April 2004 01:10, Craig Hoffman wrote: When I put single quotes in the PHP_SELF and I get this error: Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING and I can't use double quotes because its in an echo statement. What

Re: [PHP-DB] Image / file uploader

2004-04-30 Thread Craig Hoffman
This is really becoming an irritating small bug. I tried the curly brackets and the photo name still does not show up when I echo out the query. Everything else about the script works fine. Why does PHP choke on forms that submit files to themselves? I am slowly running out things to

Re: [PHP-DB] Image / file uploader

2004-04-30 Thread Hans Lellelid
Craig Hoffman wrote: This is really becoming an irritating small bug. I tried the curly brackets and the photo name still does not show up when I echo out the query. Everything else about the script works fine. Why does PHP choke on forms that submit files to themselves? I am slowly

Re: [PHP-DB] Image / file uploader

2004-04-30 Thread Craig Hoffman
Hans, Thanks Hans. I tried what your suggested and still no luck. __ Craig Hoffman - eClimb Media v: (847) 644 - 8914 f: (847) 866 - 1946 e: [EMAIL PROTECTED] w: www.eclimbmedia.com _ On Apr 30, 2004, at 7:57 AM, Hans Lellelid wrote:

Re: [PHP-DB] Image / file uploader

2004-04-30 Thread Chris Boget
Thanks Hans. I tried what your suggested and still no luck. What does the actual HTML form look like? Chris -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] Image / file uploader

2004-04-30 Thread Craig Hoffman
Here you go: I mostly echo out the HTML. I have included the entire form here. Thanks - CH echo (form method='post' action='{$_SERVER['PHP_SELF']}' encType='multipart/form-data'); echo (table border='0' cellpadding='5' width='500' cellspacing='0' id='result_table' tr

Re: [PHP-DB] Image / file uploader

2004-04-30 Thread Hans Lellelid
Here you go: I mostly echo out the HTML. I have included the entire form here. Thanks - CH echo (form method='post' action='{$_SERVER['PHP_SELF']}' encType='multipart/form-data'); echo (table border='0' cellpadding='5' width='500' ... If you could send the actual

Re: [PHP-DB] Image / file uploader

2004-04-30 Thread Craig Hoffman
No problem - Here you go. Thanks - CH !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en lang=en head titleeClimb Media and RaceLogix Traininglog/title meta

RE: [PHP-DB] Image / file uploader

2004-04-30 Thread Hutchins, Richard
PROTECTED] Subject: Re: [PHP-DB] Image / file uploader No problem - Here you go. Thanks - CH !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en lang=en head

Re: [PHP-DB] Image / file uploader

2004-04-30 Thread Craig Hoffman
handles the image upload? Is it in /~choffman/www/mtrain/client_profile.php? If so, can you post that too? Rich -Original Message- From: Craig Hoffman [mailto:[EMAIL PROTECTED] Sent: Friday, April 30, 2004 10:08 AM To: Hans Lellelid Cc: [EMAIL PROTECTED] Subject: Re: [PHP-DB] Image / file

Re: [PHP-DB] Image / file uploader

2004-04-30 Thread Craig Hoffman
That worked! Han's and everyone else thank you very much. I owe everyone who helped out a beer. ;) Thanks CH __ Craig Hoffman - eClimb Media v: (847) 644 - 8914 f: (847) 866 - 1946 e: [EMAIL PROTECTED] w: www.eclimbmedia.com _ On

RE: [PHP-DB] Image / file uploader

2004-04-30 Thread Hutchins, Richard
Jinkeys! I had a hunch the problem was with that upload script. Nice catch, Hans! Rich -Original Message- From: Craig Hoffman [mailto:[EMAIL PROTECTED] Sent: Friday, April 30, 2004 10:41 AM To: Hans Lellelid Cc: [EMAIL PROTECTED] Subject: Re: [PHP-DB] Image / file uploader

Re: [PHP-DB] Image / file uploader

2004-04-30 Thread Arthur Pelkey
does it puke when its not using _self? Craig Hoffman wrote: This is really becoming an irritating small bug. I tried the curly brackets and the photo name still does not show up when I echo out the query. Everything else about the script works fine. Why does PHP choke on forms that submit

Re: [PHP-DB] Image / file uploader

2004-04-29 Thread Daniel Clark
I think you want single quotes around PHP_SELF. $_SERVER['PHP_SELF'] I have a script where it uploads a image to directory. I have used the script several times and it works when I send the form to another page. The problem is I have changed the form to submit to itself and I can't seem

Re: [PHP-DB] Image / file uploader

2004-04-29 Thread Craig Hoffman
When I put single quotes in the PHP_SELF and I get this error: Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING and I can't use double quotes because its in an echo statement. What am I missing? echo (form method='post'

Re: [PHP-DB] Image / file uploader

2004-04-29 Thread Daniel Clark
Change to double quotes for the HTML portion. action=\$_SERVER['PHP_SELF']\ When I put single quotes in the PHP_SELF and I get this error: Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING and I can't use double quotes because

Re: [PHP-DB] Image / file uploader

2004-04-29 Thread Micah Stevens
Do this: echo ( form method='post' action='.$_SERVER[PHP_SELF].' encType='multipart/form-data'); PHP doesn't handle array's well in echo statements, so you have to stop the echo, concat the array, and then continue the echo. -Micah On Thursday 29 April 2004 04:46 pm, Craig Hoffman wrote:

Re: [PHP-DB] Image / file uploader

2004-04-29 Thread Craig Hoffman
Sorry to be a pest but I tried that. It giving me the same error. __ Craig Hoffman - eClimb Media v: (847) 644 - 8914 f: (847) 866 - 1946 e: [EMAIL PROTECTED] w: www.eclimbmedia.com _ On Apr 29, 2004, at 7:10 PM, Daniel Clark wrote:

Re: [PHP-DB] Image / file uploader

2004-04-29 Thread Bruno Ferreira
Craig Hoffman wrote: Sorry to be a pest but I tried that. It giving me the same error. __ Change to double quotes for the HTML portion. action=\$_SERVER['PHP_SELF']\ You'll find that the ultimate correct form is echo etcetc action=\$_SERVER[PHP_SELF]\

Re: [PHP-DB] Image / file uploader

2004-04-29 Thread Craig Hoffman
Fellows, thanks for helping. But still no luck. The error is gone, but the image / file is still not showing up in the query. What else I can provide to help trouble shoot this? echo (form method='post' action='.$_SERVER[PHP_SELF].' encType='multipart/form-data');