Sponsored by NuSphere - PHP Software for PHP Application Developers - On Sale This Week for $100



Go Back   PHP-Editors > Editors and Tools > Other PHP Tools

Other PHP Tools This is were to discuss other non-desktop PHP related tools.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 2003-12-30, 10:42 PM
Neil
Guest
 
Posts: n/a
Default

Hi all - great site, btw.

I'm a contractor working on a number of client sites, and often doing mysql php work. It's mostly in a software guerilla capacity, and mostly on my laptop. Means lugging my laptop to various sites - many of which supply me with a desktop for use there.

I use PHPMyAdmin for database work, which is great coz it runs on my webserver, so I can create/edit any databases from anywhere with a browser. But I haven't found a similar tool for php editing.

Any ideas/thoughts?
:blink:
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 2003-12-31, 04:25 PM
stuart's Avatar
Administrator
 
Join Date: Jan 2003
Location: Scotland
Posts: 472
stuart will become famous soon enoughstuart will become famous soon enough
Send a message via MSN to stuart
Default

Hi and welcome,

I know what you mean... and so far all I use to edit files online is a basic file loaded into a textarea box.... nothing fancy but it works well. I know that you could probably edit the dom features of products like webeditpro (one that is open source though) as these now support color highlighting in code mode. The one downside is you need IE 5.5+ and would need to check it does'nt mess you code up!!

Would be an interested open-source project!!

Best of luck in your search,
Stuart
Reply With Quote
  #3 (permalink)  
Old 2004-01-09, 02:17 PM
jd
Guest
 
Posts: n/a
Default

Quote:
Originally posted by Neil@Dec 30 2003, 10:42 PM
Hi all - great site, btw.

I'm a contractor working on a number of client sites, and often doing mysql php work. It's mostly in a software guerilla capacity, and mostly on my laptop. Means lugging my laptop to various sites - many of which supply me with a desktop for use there.

I use PHPMyAdmin for database work, which is great coz it runs on my webserver, so I can create/edit any databases from anywhere with a browser. But I haven't found a similar tool for php editing.

Any ideas/thoughts?
:blink:
here is a online php editor

http://www.ekenberg.se/php/ide/
Reply With Quote
  #4 (permalink)  
Old 2004-01-10, 09:40 AM
Junior Member
 
Join Date: Dec 2003
Posts: 1
neiltaggart
Default

Cool. I'll give it a try - thanks v much, jd.
Reply With Quote
  #5 (permalink)  
Old 2004-02-29, 04:21 PM
Tim8
Guest
 
Posts: n/a
Default

Try PSPad

btw I think there's a way to configure 'projects' such that the ftp password and other info is saved from one editing session to the next

haven't figured this out yet and appreciate any help there
Reply With Quote
  #6 (permalink)  
Old 2004-04-02, 04:26 PM
Guest
Guest
 
Posts: n/a
Default

Hi


I use ZendWeb open source, is/was the best web based PHP editor around, the site went down due to lack of support! What makes it nice is that it has a debugger, Zend Encoder and PHP standards engine on board. The thing has so many features it is to bad the development stopped because I was looking forward to the PHP 5 engine support that was coming! The interface is awesome and runs in every browser I have ever tried it in. The interface is framed, left top windows shows a tree of your document root, left bottom windows shows a list of PHP files for the directory you have open in the left top frame! If you click on a file a window opens in the center of the browser window offering options...

1. debug script
2. load script for editing
3. encode script
4. run script through PHP standards optimizer

There are many other options. If you load the script for editing, it loads in the right main window and at the top and bottom of the main window also loads drop boxes with all the $var contained in your script! If you select a var a window opens giving you a quick click list with line number where the variable is used in your script. Click on any item in the list and the window closes and you are taken to that variable in the main script, it highlights the line and inner highlights the variable, total awesome. Plus it has mouse click code builder, this would make you lazy because it's so easy not to have to type anything to make DB classes, spellckeck classes, SMTP classes any class that is in Pear can be plugged into you script with a few mouse clicks!


The authors email is here, if you want more info on it, very nice guy!

dawnasinthemorning(A)yahoo.com

c, ya...

Cindy
Reply With Quote
  #7 (permalink)  
Old 2004-10-17, 01:21 AM
Junior Member
 
Join Date: Oct 2004
Posts: 1
brownrl
Default

Hey all first post here looks like a nice place...

I too do a good bit of work for clients and run around with laptop.

Fortunately most of the time, I work from home though. However all the websites I make I put in the following script.

Its completely unsafe and I just made it in the past year in a 30 minute coding session.

I made it so that I could do BASIC editing on files in a pinch because most large clients do not let you ssh in or ftp in to the website if they are smart that is.

However, it does work if you are sure to do the following:

!!! Put this in a safe place with a weird url!!!
and
!!! use a .htaccess password protector. !!!

chmod the files in the webspace so that apache can write there.

Please feel to add to this script whatever you want.

Definately please fee free to send back improvements.

Lastly, doubly feel free to accept this script as is with absolutely no warranty on anything...



I would give a demo however this is an extremely powerful script in the hands of a potential misfit hacker. So you just have to try it out on a test / dev area first if you desire...

Code:
<?php

	if( ! isset( $_GET['file'] ) )
	{
 $_GET['file'] = ".";
	}

	if( $_GET['delete'] == 1 )
	{
 if( is_file( $_GET['file'] ) )
 {
 	unlink( $_GET['file'] );
 	$_GET['file'] = dirname( $_GET['file'] );
 	$_GET['delete'] = 0;
 }
	}
 
	if( $_GET['delete'] == 1 )
	{	
 if( is_dir( $_GET['file'] ) )
 {
 	rmdir( $_GET['file'] );
 	$_GET['file'] = dirname( $_GET['file'] );
 	$_GET['delete'] = 0;
 }
	}

	if( isset( $_FILES['thefile'] ) ) {

 $uploaddir = $_POST['path']."/";
 $uploadfile = $uploaddir . $_FILES['thefile']['name'];

 if (move_uploaded_file($_FILES['thefile']['tmp_name'], $uploadfile)) {
     chmod("$uploadfile", 0766);
 }else{ echo "ERROR"; exit; }
 
 $_GET['file'] = $_POST['path'];
 
	} 



	if( is_file( $_GET['file'] ) )
	{
 $edit_file = 1;
	}
	
	if( is_dir( $_GET['file'] ) )
	{
 $show_directory = 1;
	}
	
	if( $_GET['create'] == 1 )
	{
 touch( $_POST['path']."/".$_POST['file'] );
 $_GET['file'] = $_POST['path'];
	}
	
	if( $_GET['createdir'] == 1 )
	{
 mkdir( $_POST['path']."/".$_POST['file'] );
 $_GET['file'] = $_POST['path'];
	}
	
	#get file contents function
if (!function_exists('file_get_contents'))
{
  function file_get_contents($filename, $use_include_path = 0)
  {
    $file = @fopen($filename, 'rb', $use_include_path);
    if ($file)
    {
      if ($fsize = @filesize($filename))
      {
        $data = fread($file, $fsize);
      }
      else
      {
        while (!feof($file))
        {
          $data .= fread($file, 1024);
        }
      }
      fclose($file);
    }
    return $data;
  }
}

#file_put_contents
if (!function_exists('file_put_contents')) {
  define('FILE_APPEND', 1);
  function file_put_contents($filename, $content, $flags = 0) {
    if (!($file = fopen($filename, ($flags & FILE_APPEND) ? 'a' : 'w')))
      return false;
    $n = fwrite($file, $content);
    fclose($file);
    `chmod 766 $filename`;
#, 0766);
    return $n ? $n : false;
  }
}

	if( $_POST['submitter'] == 'Save and View' )
	{
 file_put_contents($_GET['file'],stripslashes($_POST['file_source']),"w");
 $_GET['file'] = dirname( $_GET['file'] );
 $show_directory = 1;
 $edit_file = 0;
 #header("Location: ".$_GET['file']);
	}
	
	
 
?>
<html>
<head>
<script language="JavaScript" type="text/JavaScript">
function HandleKeyDown(obj) {
  var tabKeyCode = 9;
  if (event.keyCode == tabKeyCode && event.srcElement == obj) {
   obj.selection = document.selection.createRange();
   obj.selection.text = String.fromCharCode(tabKeyCode);
   event.returnValue = false;
  }
}
</script>
<title>reditor</title>
</head>

<!-- show a directory -->
<?php if( $show_directory ) { ?>
<p>DIRECTORY: <?= $_GET['file'] ?></p>
<table>
<?php
if ($handle = opendir( $_GET['file'] )) {
  while (false !== ($file = readdir($handle))) {
    if ($file != "." && $file != "..") { 
  $dir = "";
  $delete = "x";
 if( is_dir( $file ) )
 {
  $dir = "/";

 }
  ?>
  
      <tr>
  <td><a href = "?file=<?= $_GET['file'] ?>/<?=$file?>"><?= $file ?><?= $dir ?></a></td>
  <td><a href = "?file=<?= $_GET['file'] ?>/<?=$file?>&delete=1"><?= $delete ?></a></td>
  </tr>
    <?php }
  }
  closedir($handle);
}
?> 
</table>
<form action = "?create=1" method = "POST">
<input type = "text" name = "file" >
<input type = "hidden" name = "path" value = "<?= $_GET['file'] ?>">
<input type = "submit" value = "Create New File">
</form>

<form action = "?createdir=1" method = "POST">
<input type = "text" name = "file" >
<input type = "hidden" name = "path" value = "<?= $_GET['file'] ?>">
<input type = "submit" value = "Create New Dir">
</form>


<form enctype="multipart/form-data" action = "?upload=1" method = "POST">
<input type = "file" name = "thefile" >
<input type = "hidden" name = "path" value = "<?= $_GET['file'] ?>">
<input type = "submit" value = "Upload File">
</form>

<?php } ?>


<!-- edit a file -->
<?php if( $edit_file ) { ?>
<?php $file_src = file_get_contents( $_GET['file'] ); ?>
<body>
<h2>Editing <?= $_GET['file'] ?></h2>
<form name="sited" enctype="multipart/form-data" METHOD="POST" ACTION="">
<textarea name="file_source" wrap="OFF" style="height:580px; width:840px "ONKEYDOWN="HandleKeyDown(this);"><?php echo $file_src; ?></textarea>
<br />
<input type="submit" name="submitter" value="Save and View">
</form>
<?php } ?>



</html>
Reply With Quote
  #8 (permalink)  
Old 2006-01-11, 08:09 PM
Junior Member
 
Join Date: Jan 2006
Posts: 1
silverfh
Default

Hi Guys,

the post topic is nice and exactelly what I wanted.. but a lil diff way.. lets say I have the php code in my DB.. saved somewhere.. or lets say just in a var

Code:
$var = '<input name="email" type="text" id="email" value="<? echo $email?>">';
now here is the prob.. I cant just make it work proper.. coz if i simply echo this data then the inatial value of the form field will be the actual php code that is
Code:
<? echo $email?>
but what i want is to activate make $email work as a actual PHP variable and it should display the variable value instead of php code..

I hope I am clear here..

but just simpley typing this code
Code:
<input name="email" type="text" id="email" value="<? echo $email?>">
I can get the required result as the actual variable name in the field. but using
Code:
$var = '<input name="email" type="text" id="email" value="<? echo $email?>">';
echo $var;
the result gose wrong.

anyone have any solution plz ?
Reply With Quote
  #9 (permalink)  
Old 2006-03-07, 11:07 PM
Junior Member
 
Join Date: Mar 2006
Posts: 2
zubra
Default

Hi,

Nice topic. I would recoomend you to try this online php editor:

http://aboutedit.com

about:Edit features syntax-highlighting for PHP and many other languages, multiple document editing, and just about everything you'd expect from a decent text and source code editor.

Best Regards,
Zubra
Reply With Quote
  #10 (permalink)  
Old 2006-03-22, 08:24 PM
stuart's Avatar
Administrator
 
Join Date: Jan 2003
Location: Scotland
Posts: 472
stuart will become famous soon enoughstuart will become famous soon enough
Send a message via MSN to stuart
Default

Thanks for the link.

I actually found this a few weeks ago and was very impressed. The only downside is it fell to pieces when I opened it in Firefox (even though the site claimed it works in FF1+) - this may be an isolated case to my browser though. The price seems pretty reasonable also!
Reply With Quote
Must read Review for Serious PHP Developers


NuSphere PhpED 5.0 : The Staff of php-editors.com recently spent a few days working with NuSphere PhpED 5.0 (a popular PHP IDE) and NuCoder 1.4 (a PHP Encoding Utility), read up on all the details.

Sponsored Links
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 08:55 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
© Copyright 2003-2008 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.