Page 1 of 1

a php code editor

Posted: Wed Dec 13, 2006 9:58 am
by Obadiah
ok...maybe the title was a bit vague...but check this out http://w3schools.com/js/tryit.asp?filen ... formattext is something like this possible...if so that would be awsome...speaking for peeps like myself..i know it would help me out...troubleshoting parses and other errors...testing theory....showing tutorials at work...it could also help some to see what code does what...like "if i delete this what would happen" maybe inspre more to take a deeper look into php and mysql

Posted: Wed Dec 13, 2006 10:12 am
by malcolmboston
should be

I would imagine left side is a file that you write like any normal text file, when you click on the button the page reloads, the left iframe reloads your text document as is and the right iframe parses it to produce the output.

This would be rather cool as a 'learnin' project

Posted: Wed Dec 13, 2006 11:26 am
by feyd
Why is this thread in Suggestions?

Posted: Wed Dec 13, 2006 11:40 am
by Obadiah
forum index wrote: We know you have an opinion on how things should be run around here.
These are suggestions for the forums, and the website.
i thought it was possibly a great tool so i suggested it to you moddies...final word is upto you guys...i just wanted to see what other people had to say about it as well as well as you moddies...its moreso of a suggestion than a general discussion so i didnt post it there, its not really a theory because its been done in another language...and i figured it would possibly be helpful if i put it here...what do you guys think?

[edited]

sorry i just re-read my first post...i really didnt make it clear there that it was a suggestion...it sounded moreso of a php question or a wouldn't this be cool type deal...much appologies friends...i meant to word it as a suggestion

Posted: Wed Dec 13, 2006 11:44 am
by feyd
I don't understand what you're suggesting though.

Posted: Wed Dec 13, 2006 11:46 am
by Obadiah
the link will take you to w3shools online's "try it " code editor...i was wondering if we could have something like that here

Posted: Wed Dec 13, 2006 1:16 pm
by shiznatix
the same thing but for php? that is not a very smart idea. I just have to enter a little bit of malicious code and now the whole website is deleted or now I have everyones username and password or whatever. Ill do it too, im a jerk.

Posted: Wed Dec 13, 2006 1:20 pm
by John Cartwright
shiznatix wrote:the same thing but for php? that is not a very smart idea. I just have to enter a little bit of malicious code and now the whole website is deleted or now I have everyones username and password or whatever. Ill do it too, im a jerk.
*Sends shiznatix to terror watch alert*

Posted: Wed Dec 13, 2006 1:47 pm
by RobertGonzalez
Isn't the 'try out this code' what a local server is for?

Posted: Wed Dec 13, 2006 1:56 pm
by Obadiah
@shiznatix=i was hoping that firstly we can trust that noone will do that(a naive hope i guess)...secondly i would think it wouldnt be conected to anything we have here...so if someone did try to do something stupid like hat it wouldnt work...then one of our moddies can possibly ban him via his ip address

@everah= yea...the local server is still a cool way to do it...but just wanted to see what you guys thought of something like that here...i thought it would make one heck of a tutorial tool

@Jcart=that actually sounds pretty fun :twisted:

Posted: Wed Dec 13, 2006 1:58 pm
by John Cartwright
Obadiah wrote:@everah= yea...the local server is still a cool way to do it...but just wanted to see what you guys thought of something like that here...i thought it would make one heck of a tutorial tool
Sure, it may have potential, but I don't think it would be worth it when we find our forums have been deleted and replaced with porno sites. :wink:

Posted: Wed Dec 13, 2006 1:59 pm
by feyd
So many functions, extensions, and other things would need to be disabled to avoid the possible gaping security hole it would create it's just easier for people to have their own server to test it on.

Posted: Wed Dec 13, 2006 2:02 pm
by RobertGonzalez
Obadiah wrote:@shiznatix=i was hoping that firstly we can trust that noone will do that(a naive hope i guess)...secondly i would think it wouldnt be conected to anything we have here...so if someone did try to do something stupid like hat it wouldnt work...then one of our moddies can possibly ban him via his ip address
Sorry obi, that is horribly naive. Even if people weren't complete freaks and even if they didn't want to turn our community into a intergalactic vortex of porn-spam, new developers that did not know what they were doing could innocently destroy the living crap out of our site.

Posted: Wed Dec 13, 2006 2:25 pm
by Obadiah
it does seem like alot of trouble now after hearing what you guys have to say...especially for such a small thing...if it was possible to create it in a way that it runs off of that persons local server instead of devnets that would be neat...like the person would need to have php [s]and mysql[/s] installed on their machine or server before testing(on second thought...that would only really work with php functions)since mySQL needs to access a DB...since most of the tough issues here is a combination of the 2 it is pretty pointless to have it just work for one