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]

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.