GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Editing PHP code in Dreamweaver MX. (https://gfy.com/showthread.php?t=624443)

Cory W 06-21-2006 02:55 PM

Editing PHP code in Dreamweaver MX.
 
Is this considered an "ok" thing to do?

I am not a programmer in the slightest, but I can pull down PHP files, open them with DW and alter code appropriately.

For all intents and purposes, it seems to work. However, I wonder if coders look down on this or if DW manipulates the code adversly at times?

I know back in the day, editing code in DW sometimes led to errors down the road.

I am just wondering if Dreamweaver software is now a solid PHP editor.

dodger21 06-21-2006 02:57 PM

I do all my PHP, ASP and SQL coding in Dreamweaver. Haven't had any issues with it. :thumbsup

pstation 06-21-2006 02:58 PM

I suppose it depends on how you use it. I've been using it lately for writing code and haven't experienced any problem yet, but I pretty much never use the wysiwyg editor except to preview the design.

nestle 06-21-2006 03:02 PM

You can edit PHP files in any text editor. PHP files are all text files in essence unless it's been encoded in which case it will most likely be binary and you won't be able to read it.

Believe it or not, a lot of PHP coders use dreamweaver.

fris 06-21-2006 03:02 PM

i usally do mine on my box in vi

jimthefiend 06-21-2006 03:03 PM

I notice more problems using notepad for PHP than I do with the text editor in DW.

marketsmart 06-21-2006 03:07 PM

Quote:

Originally Posted by nestle
You can edit PHP files in any text editor. PHP files are all text files in essence unless it's been encoded in which case it will most likely be binary and you won't be able to read it.

:thumbsup

MaddCaz 06-21-2006 03:09 PM

Yea I think you're good.

CaptainHowdy 06-21-2006 03:29 PM

Yeah, i edit PHP and ASP in Dreamweaver MX without any hassle :thumbsup!!

DigitalPimpShit 06-21-2006 03:30 PM

I use Crimson Editor. Its free and there is no worry of it inflating the code. Its like wordpad but it color codes the syntax.

Cory W 06-21-2006 03:30 PM

Awesome, wanted to make sure I was not the only one.

This is simple stuff. More or less, after programmers create the pages, I pull certain php files down to edit them.

BradM 06-21-2006 03:32 PM

Quote:

Originally Posted by Fris
i usally do mine on my box in vi

yeah, but someone like cory wouldn't have the slightest idea how to do that. not safe. unless you jail his user heavy :)

BradM 06-21-2006 03:32 PM

Quote:

Originally Posted by jimthefiend
I notice more problems using notepad for PHP than I do with the text editor in DW.

Stop wordwrapping? Notepad is a plain text editor, there is no reason you should have any problems at all. Or are you just making that up to sound cool?

mrkris 06-21-2006 03:33 PM

I use Zend for 90% of my php coding.

summerland 06-21-2006 03:34 PM

I say kuddos.

jimthefiend 06-21-2006 03:35 PM

Quote:

Originally Posted by BradM
Stop wordwrapping? Notepad is a plain text editor, there is no reason you should have any problems at all. Or are you just making that up to sound cool?


It's more than wordwrap. The rest I'll ignore because I'm tired.

BradM 06-21-2006 03:37 PM

Quote:

Originally Posted by jimthefiend
It's more than wordwrap. The rest I'll ignore because I'm tired.

#php just laughed hysterically at your comment. Dumbass.

nestle 06-21-2006 03:39 PM

Quote:

Originally Posted by DigitalPimpShit
I use Crimson Editor. Its free and there is no worry of it inflating the code. Its like wordpad but it color codes the syntax.

Crimson Editor is a great freeware tool for PHP ... well any coding you need to do! Definitely makes it easier to write and read php code because of default syntax highlighting. I used to use it when I was working with PHP every now and then. Then I involved myself in a much bigger project so decided to get a php ide.

V_RocKs 06-21-2006 03:40 PM

Select in DW that it should not break lines for you... Example: if a line is 200 characters long, it should span 2 or 3 lines of WORD WRAP and not be BROKEN by DW at the 80th character and span 2 or 3 lines of the file.

Cory W 06-21-2006 03:50 PM

Thanks all for your help.

jimthefiend 06-21-2006 04:00 PM

Quote:

Originally Posted by BradM
#php just laughed hysterically at your comment. Dumbass.

*sigh*

Everyones busting my balls today.
A quick google search will find all kinds of similiar issues.

Quote:

Some editors (including Windows Notepad in win2000 and up) use the convention of marking Unicode files with 'FFFE' in the beginning. When opening the files that start like this, they assume they are unicode and shift to unicode mode, removing those two bytes from the beginning.

Unfortunately this convention is not a standard and breaks a great many things, including php - it makes php start the output when the file does not immediately start with <?php - and this is not easy to detect, because when you open this file, you see that it does, because your software removes those two bytes again.

It appears that this is a probable cause of your problems, the only way to fix this is to try another editor which does not follow this silly convention and check your index.php.


Dumbass.

Violetta 06-21-2006 04:06 PM

I just did some php changes in NVU, but that fucked it all up. So I had to turn on my laptop where I have dreamweaver installed, and fix it there...

Dreamweaver ROCKS!

seeric 06-21-2006 04:12 PM

Quote:

Originally Posted by jimthefiend
I notice more problems using notepad for PHP than I do with the text editor in DW.



what he said. :thumbsup


All times are GMT -7. The time now is 02:53 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123