xoops forums

kaotik

Just can't stay away
Posted on: 2006/7/13 17:15
kaotik
kaotik (Show more)
Just can't stay away
Posts: 861
Since: 2004/2/19
#21

Re: Which PHP editors are best?

Thanks. I got it working with php and it does look very good. How do I turn on line numbers by default? I've seen how to turn it on file by file but I would prefer to have it on by default. Thanks.
Posted on: 2006/7/13 17:24
wtravel
wtravel (Show more)
Posts: 987
Since: 2003/8/27
#22

Re: Which PHP editors are best?

Look in the preferences:

PHPeclipse Web Development -> PHP

You will find most settings there for phpEclipse, including line numbers .

kaotik

Just can't stay away
Posted on: 2006/7/13 17:35
kaotik
kaotik (Show more)
Just can't stay away
Posts: 861
Since: 2004/2/19
#23

Re: Which PHP editors are best?

Thanks!!

kaotik

Just can't stay away
Posted on: 2006/7/15 15:24
kaotik
kaotik (Show more)
Just can't stay away
Posts: 861
Since: 2004/2/19
#24

Re: Which PHP editors are best?

Does eclipse allow me to update a remote site using ftp? I've tried searching for a module...
Thanks

hervet

Friend of XOOPS
Posted on: 2006/7/17 10:13
hervet
hervet (Show more)
Friend of XOOPS
Posts: 2267
Since: 2003/11/4
#25

Re: Which PHP editors are best?

Hello,

Quote:

kaotik wrote:
Does eclipse allow me to update a remote site using ftp? I've tried searching for a module...
Thanks

Yes it can, may I can suggest you easyeclipse, it comes with many good plugins :
http://www.easyeclipse.org/site/home/

bye,
Hervé

McNaz

Just can't stay away
Posted on: 2006/7/17 10:26
McNaz
McNaz (Show more)
Just can't stay away
Posts: 574
Since: 2003/4/21
#26

Re: Which PHP editors are best?

Quote:
Does eclipse allow me to update a remote site using ftp? I've tried searching for a module...
Thanks


You can use Eclipse's built in support for ANT and write an ANT script to deploy your site.

In the long run ANT is very helpful as it can do almost anything (I use it to cleanup, package and compress my XOOPS modules before publishing for example).

Quote:

Excellent link Hervet. Thank you.

kaotik

Just can't stay away
Posted on: 2006/7/18 15:50
kaotik
kaotik (Show more)
Just can't stay away
Posts: 861
Since: 2004/2/19
#27

Re: Which PHP editors are best?

Quote:
Yes it can, may I can suggest you easyeclipse, it comes with many good plugins :

Thanks Herve! That's an excelent version!

Quote:
You can use Eclipse's built in support for ANT and write an ANT script to deploy your site.

Thanks for the suggestion McNaz, I've been tring to find where to setup ANT in eclipse and can't seem to find it. Is there any help file (i've also tried searching eclipse help for ANT but it came up empty) or tutorial to help guide me?

I'm really starting to like eclipse

McNaz

Just can't stay away
Posted on: 2006/7/18 18:44
McNaz
McNaz (Show more)
Just can't stay away
Posts: 574
Since: 2003/4/21
#28

Re: Which PHP editors are best?

The ANT api manual can be found here and is a good place for reference.

Best way to appreciate the ANT is by an example.

To create an ANT file just create a build.xml file (any xml file will do) in Eclipse, load it into the editor then press Alt + SHIFT + X then press Q to run the currently loaded ANT script in eclipse.

Here is one I made earlier

<?xml version="1.0" encoding="UTF-8"?>

<project name="xasset Export" default="build" basedir="..">

    <property name="exclude" value="**/.svn, docs/**, tests/**, build/**, 
      vpproject/**, **/*.psd, .cdtproject, .project,
      **/*.bak, class/svn/cache/*, exports/**, help/**, **/*.zpj,
      class/gateways/*.txt, class/gateways/IPG.php"/>
    <property name="paypalPlugin" value="class/gateways/paypal.php"/>

    <target name="build">
      <!-- build the standard package-->
      <zip destfile="exportsxasset.zip">
        <zipfileset dir="." excludes= "${exclude},${paypalPlugin}" prefix="xasset"/>
        <zipfileset dir="docs" includes="README.txt" fullpath="xasset/docs/README"/>
        <zipfileset dir="help" includes="xasset.hlp" prefix="xasset/docs"/>
        <zipfileset dir="help" includes="xasset.cnt" prefix="xasset/docs"/>
        <zipfileset dir="class" includes="index.html" prefix="xasset/docs"/>
      </zip>
      
      <tar destfile="exportsxasset.tar">
        <tarfileset dir="." excludes= "${exclude},${paypalPlugin}" prefix="xasset"/>
        <tarfileset dir="docs" includes="README.txt" fullpath="xasset/docs/README"/>
        <tarfileset dir="help" includes="xasset.hlp" prefix="xasset/docs"/>
        <tarfileset dir="help" includes="xasset.cnt" prefix="xasset/docs"/>
        <tarfileset dir="class" includes="index.html" prefix="xasset/docs"/>
       </tar>      
       <bzip2 src="exportsxasset.tar" destfile="exportsxasset.tar.bz2"/>
       <delete file="exportsxasset.tar"/>
    </target>
    <!-- build the paypal plugin -->
      <zip destfile="exportspaypal.zip">
        <zipfileset dir="class/gateways/" includes= "paypal.php"/>
        <zipfileset dir="class/gateways/" includes="paypalREADME.txt" fullpath="README"/>
        <zipfileset dir="class/gateways/" includes="paypalLICENSE.txt" fullpath="LICENSE"/>
      </zip>
  
      <tar destfile="exportspaypal.tar">
        <tarfileset dir="class/gateways" includes= "paypal.php" />
        <tarfileset dir="class/gateways" includes="paypalREADME.txt" fullpath="README"/>
        <tarfileset dir="class/gateways" includes="paypalLICENSE.txt" fullpath="LICENSE"/>
      </tar>
      <bzip2 src="exportspaypal.tar" destfile="exportspaypal.tar.bz2"/>
      <delete file="exportspaypal.tar"/>
</project>


The same logic can then be expanded to distribute files via FTP etc... There are almost no limits.*/

McNaz

Just can't stay away
Posted on: 2006/7/19 8:56
McNaz
McNaz (Show more)
Just can't stay away
Posts: 574
Since: 2003/4/21
#29

Re: Which PHP editors are best?

Stumbled onto an interesting article : http://www.devarticles.com/c/a/Web-Au ... ith-PHPEclipse-continued/

frankblack

Just can't stay away
Posted on: 2006/7/19 9:00
frankblack
frankblack (Show more)
Just can't stay away
Posts: 830
Since: 2005/6/13
#30

Re: Which PHP editors are best?

Nice article. But I wish that FTP/WebDav-plugin would be working without problems (had recently some and I couldn't track down the error), because this plugin is fairly easy to use and setup is made with a few clicks.

But anyway: Eclipse rocks!!

@McNaz: Maybe YOU know a solution for this? What I don't like about phpeclipse is the fact that phpeclipse adds additional line numbers when wrapping lines. This is a bit irritating to me.