Page 1 of 1

open php doc in dreamweaver and upload it get errors

Posted: Fri Jun 27, 2008 3:06 pm
by justinzero
hi everyone. I started a new job as a php developer for a company in Az. I am updating all their websites. I am currently converting their code away from Dreamweaver standards but i ran into a problem. I opened up a php file in dreamweaver...made a change and uploaded it...now all i get is an error Parse error: syntax error, unexpected '}' in /home/xxxxxxxxxxxxx/main.php on line 1 but it was the file i originally downloaded and all i did was delete a picture from the interface...I have been testing and this is happening with EVERY SINGLE PHP file i use....I was wondering if anyone here knew what the problem is and ow to fix it??!?!?!?!?!?!


I am so salty over this right now i dont even have words hahaha



truly

Justin0 :banghead:

Re: open php doc in dreamweaver and upload it get errors

Posted: Fri Jun 27, 2008 4:02 pm
by dyluck
Can you post a code example plz... could just be a version issue with php..

Re: open php doc in dreamweaver and upload it get errors

Posted: Fri Jun 27, 2008 4:51 pm
by justinzero
I figured it out...Dreamweaver will demolish your code depending on the sysntax...php4 code with dreamweaver cs3 or 8 for example will add in brackets and remove them depending on the layout...also will convert <? codes to <?php tags and vice versa...thanks anyway! :crazy:

Re: open php doc in dreamweaver and upload it get errors

Posted: Sat Jun 28, 2008 11:25 am
by dyluck
Haha well I guess I was kinda right! Well good luck! sounds like you got a monster on your hands!