Jump to content

yoursite and code editor in the same browser


hakmir

Recommended Posts

I am using fireftp and doing the editing in notepad2. It's so cool that when I make any change in notepad it updates on your website too. But what I want is that  I want ftp and code editor in same browser (splited). Is there such thing? I made an image about what I want. You'll understand better what I mean.

I saw firebug. It is nice but it doesn't edit the file as it is . Like php file.

 

[attachment deleted by admin]

maybe you can do this:

 

create a form that has this kind of code,

 

<textfield name="codes"></textfield>

 

then save whatever he posts in a php file,

 

$a = md5(uniqid(rand(), true));
$path = "userfiles/codes/".$a. "/";
$f1 = fopen($path . "codes.php","w");
file_put_contents($path . "codes.php",$_POST['code']);
fclose($f1);

 

just store the $a somewhere that will remember the user that posted the codes

 

then just add an include to where you want to show it,

 

include_once "userfiles/codes/".$a. "/codes.php";

 

i already tried saving a php file and including it in a page, and it works, i skipped some codes here, but these are the main codes, and i think you'll know what to do

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.