21
kaotik
Re: Which PHP editors are best?
  • 2006/7/13 17:15

  • kaotik

  • Just can't stay away

  • Posts: 861

  • Since: 2004/2/19


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.
www.kaotik.biz

22
wtravel
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 .

23
kaotik
Re: Which PHP editors are best?
  • 2006/7/13 17:35

  • kaotik

  • Just can't stay away

  • Posts: 861

  • Since: 2004/2/19


Thanks!!
www.kaotik.biz

24
kaotik
Re: Which PHP editors are best?
  • 2006/7/15 15:24

  • kaotik

  • Just can't stay away

  • Posts: 861

  • Since: 2004/2/19


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

25
hervet
Re: Which PHP editors are best?
  • 2006/7/17 10:13

  • hervet

  • Friend of XOOPS

  • Posts: 2267

  • Since: 2003/11/4


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é

26
McNaz
Re: Which PHP editors are best?
  • 2006/7/17 10:26

  • McNaz

  • Just can't stay away

  • Posts: 574

  • Since: 2003/4/21


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:
http://www.easyeclipse.org/site/home/


Excellent link Hervet. Thank you.

27
kaotik
Re: Which PHP editors are best?
  • 2006/7/18 15:50

  • kaotik

  • Just can't stay away

  • Posts: 861

  • Since: 2004/2/19


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
www.kaotik.biz

28
McNaz
Re: Which PHP editors are best?
  • 2006/7/18 18:44

  • McNaz

  • Just can't stay away

  • Posts: 574

  • Since: 2003/4/21


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.*/

29
McNaz
Re: Which PHP editors are best?
  • 2006/7/19 8:56

  • McNaz

  • Just can't stay away

  • Posts: 574

  • Since: 2003/4/21



30
frankblack
Re: Which PHP editors are best?
  • 2006/7/19 9:00

  • frankblack

  • Just can't stay away

  • Posts: 830

  • Since: 2005/6/13


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.

Login

Who's Online

179 user(s) are online (107 user(s) are browsing Support Forums)


Members: 0


Guests: 179


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits