open php doc in dreamweaver and upload it get errors

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
justinzero
Forum Newbie
Posts: 2
Joined: Fri Jun 27, 2008 3:00 pm

open php doc in dreamweaver and upload it get errors

Post 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:
User avatar
dyluck
Forum Commoner
Posts: 54
Joined: Thu Jun 26, 2008 1:44 pm

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

Post by dyluck »

Can you post a code example plz... could just be a version issue with php..
justinzero
Forum Newbie
Posts: 2
Joined: Fri Jun 27, 2008 3:00 pm

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

Post 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:
User avatar
dyluck
Forum Commoner
Posts: 54
Joined: Thu Jun 26, 2008 1:44 pm

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

Post by dyluck »

Haha well I guess I was kinda right! Well good luck! sounds like you got a monster on your hands!
Post Reply