Please Scroll Down to See Forums Below
napsgear
genezapharmateuticals
domestic-supply
puritysourcelabs
UGL OZ
UGFREAK
napsgeargenezapharmateuticals domestic-supplypuritysourcelabsUGL OZUGFREAK

Web geeks?

TheProject

New member
I'm looking for a PHP editor that can do both code and WYSIWYG.

Anyone?

Yes, I've done a google search and found 45 billion different programs, but I don't have the patience to try them all out.
 
See, the issue here is that WYSIWYG (what you see is what you get) editing applies to the visual side, which implies the HTML side of things.
That way you can drag out a table and it will adjust the table and/or div tags to make it.

PHP on the other hand is doing shit in the background - sure you can do a loop and have it dump out form elements or a listbox or change the colors in a table - but that isn't going to show up in WYSIWYG editor since it would need to actually execute the code.

If you just want syntax highlighting for php, likely every single editor can do that.

DreamWeaver is pretty much the goto editor for web stuff if you don't know HTML.

Also, the PHP (I think it is php.net) main page has a fantastic reference section with tons of comments about every function.
 
I've got syntax highlighting, and the problem that I've got is that there are no line breaks in the code, so I'm working with one giant run on sentence.

I know enough HTML to get me in trouble, and I'm hacking and slashing my way through PHP, but I'd like to be able to see my results in shorter fashion than to upload it, and go, whoops...back to the drawing board.

I may have to scam a copy of DreamWeaver from work.
 
just use dreamweaver like everybody else.

I prefer homesite.
 
TheProject said:
I know enough HTML to get me in trouble, and I'm hacking and slashing my way through PHP, but I'd like to be able to see my results in shorter fashion than to upload it, and go, whoops...back to the drawing board.

If you want to test your HTML, you can just do that in a file and then drop it into any web browser.
Or get some WYSIWYG editor - dandy.

As for all the shit being on one line - that is odd.
PHP can be broken up into lines very easily - just end each "thought" with a ";" and then go down to a new line.

Code:
//this is a comment
$thisIsAString = "you're mother's a whore";
$theseCanAlsoBeInts = 42;
$andTheyCanBeArrays[0] = "ass";
$andTheyCanBeArrays[1] = "shit";
$andTheyCanBeArrays[2] = "piss";
$andTheyCanBeArrays[3] = "fuck";

/*
this comments out
a whole block of 
shit. dandy eh?
*/

//this is a loop that outputs "dick" 10 times in a row all on one line
for($i=0;$i<10;$i++){
print "dick";//you could also use "echo" instead of "print"
}

None of that is available in real time - there is no such thing as a WYSIWYG editor for those - you have to do it all in your head.
They can't do that because of the fact that some of those calls could be into a database or some shit like that.

the closest you can get is mirroring the install on your local machine and testing it there and then when you are done mass uploading all of the changes up to the server.

Also, I am not 100% sure if you have to declare arrays first before using them in PHP - I am pretty sure you don't, even though that is likely bad form.
 
Also, php code starts off on a page with <? and then ends with ?> - not sure if those will get through the code stripper built into vBulletin - so perhaps:
Code:
This would be seen on the page
<?
//this wouldn't be seen on the page
//code in here doesn't get output to the screen
//unless you use echo or print
echo "this would be seen on the page";

//or you can do this
$ass = "this also would be seen on the page";
echo $ass;
//or
print $ass;
?>

More normal HTML shit that is outside of the PHP block and displayed on the page here.
 
And technically the first line of a php document (unless it is an include file and even then might be okay), should have "<?php" - but I think technically the processor is smart enough to be alright if it doesn't.

And then there is very possibly a setting in the PHP engine so that you could use other characters to break apart the code the same way JSP does, so you could break it apart on something like "your mother's a whore" - but that would cause problems if you later wanted to use that in your code.

And then to make things even more fun, there is a new PHP version that is essentially more OO and is trying to duplicate what Java/JSP does - and many people argue over which is better.
 
BBQ, this goes back to the shopping cart thing I was asking you about the other day. I found another one to use called osCommerce, and it's a lot better, but some of their code is formatted funky. I don't know why, but the text on the main page is all on one line, and I'm attempting to discern what does what; it's much easier when broken out and clearly formatted.

Maybe this is one of the joys of opensource, I dunno.

The HTML thing I'm good with. I've got FrontPage (blasphemy, I know) for WYSIWYG editing, and a couple of different text editors to help me with that.
 
Most WYSISYG editors turn out crap code. What platform are you developing on?
(Have you seen Quanta?)

Whatever the hosting platform, I'm just as happy developing in a plain text editor and popping up the page in my browser to see the changes. Click refresh, bam.
 
it is feasible that they are trying to obscure the code so people won't dick with it, but that is unlikely if it is open source.

it could also be that the line break in the OS that they wrote it on doesn't register in whatever program that you are viewing it in.

In the end - anywhere in the code you see ";" immediately after that you can put a line break (press return/enter).

If you can telnet/ssh into the server and edit code right on the server, then you can see results in real time by reloading the page - but not if you are on a windows server.
 
Digger, I know...I've seen what FrontPage does, and I don't like it, but I'm not familiar enough with HTML or PHP to be completely comfortable editing straight code. You know, change something, and it's completely dicked up -- that's what I'm attempting to avoid.

I'm doing the work on my XP machine, but it's running on a Linux box with mySQL.

BBQ, I don't think I can telnet in...I might be able to connect and edit on the server, but I'm not sure how wise that is, given the odds of me dicking something up right now.
 
Top Bottom