General Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingGeneral Programming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old November 20th, 2002, 12:32 PM
KiLlrBuNieZ KiLlrBuNieZ is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Posts: 2 KiLlrBuNieZ User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to KiLlrBuNieZ Send a message via Yahoo to KiLlrBuNieZ
Unhappy expecting `T_VARIABLE' or `'$''

I am developing a site for which I am including the ability to upload images. These images are associated to records in a MySQL database table of inventory items. I am encountering the following parse error when trying to do so:

Code:
Parse error: parse error, expecting `T_VARIABLE' or `'$'' in /home/www/website/admin/alter_table.php on line 72


Here is the snippet of code that is referenced in the error. Note that it all worked before adding the image handling part, the database connects correctly, etc.:

PHP Code:
if (isset(!$WINDIR) && !@unlink($userfile)) $uploadErr .= "Error deleting the image from memory.<br />"


$userfile is the image sent from the form on the sending page using the "file" input type and enctype="multipart/form-data" in the form tag.

I have attached the whole alter_table.php file for those who would like to see exactly what's happening.

Thanks for the help!
Attached Files
File Type: txt alter_table.txt (7.3 KB, 352 views)

Reply With Quote
  #2  
Old November 20th, 2002, 12:42 PM
Taelo Taelo is offline
5B's
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Location: PC, FL
Posts: 366 Taelo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 30 m 59 sec
Reputation Power: 7
Just throwing this out,...Since $WINDIR is not a function, mayby try doing it this way,...

PHP Code:
if (!isset($WINDIR

Reply With Quote
  #3  
Old November 20th, 2002, 01:29 PM
KiLlrBuNieZ KiLlrBuNieZ is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Posts: 2 KiLlrBuNieZ User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to KiLlrBuNieZ Send a message via Yahoo to KiLlrBuNieZ
Duh! Thanks for that. It all just blurs together after staring at the screen for 3 hours...

Now if I can just get it to actually upload the image...

Reply With Quote
  #4  
Old November 20th, 2002, 01:34 PM
Taelo Taelo is offline
5B's
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Location: PC, FL
Posts: 366 Taelo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 30 m 59 sec
Reputation Power: 7
haha,...we all have been there before...

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingGeneral Programming Help > expecting `T_VARIABLE' or `'$''


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT