Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #8338

Re: getting a php capability on ubuntu was Re: using scripting languages to automate a browser

From "M. Strobel" <sorry_no_mail_here@nowhere.dee>
Newsgroups comp.lang.php, alt.os.linux.ubuntu
Subject Re: getting a php capability on ubuntu was Re: using scripting languages to automate a browser
Date 2013-02-11 12:39 +0100
Message-ID <ans3jlFkrobU1@mid.uni-berlin.de> (permalink)
References <DI6dnbmZcNsJyYrMnZ2dnUVZ_smdnZ2d@supernews.com> <51176D1D.7030501@arnowelzel.de> <zYmdnUoeJN3zw4XMnZ2dnUVZ_uednZ2d@supernews.com>

Cross-posted to 2 groups.

Show all headers | View raw


Am 11.02.2013 03:58, schrieb Cal Dershowitz:
> On 02/10/2013 02:49 AM, Arno Welzel wrote:
>> Cal Dershowitz, 2013-02-10 09:04:
> 
> [x-posted to alt.os.linux.ubuntu]
> 
> 
>>> I've been trying to use perl to automate processes that aren't much more
>>> than a few GUI events that a person would do if he had a browser.
>>>
>>> #!/usr/bin/perl -w
>>> use strict;
>>> use autodie;
>>> use utf8;
>>> use WWW::Mechanize;
>>>
>>> my $url    = 'http://translate.google.com/';
>>> my $mech   = WWW::Mechanize->new;
>>> my $result = $mech->get($url);
>>> die "GET failedn" unless $result->is_success;
>> [...]
>>
>>> Is this something that php can do in a way that involves less grief?
>>
>> I don't think so.
>>
>> But if you need to use Google Translate as a service, see here:
>>
>> <https://developers.google.com/translate/>
>>
>> Well - the service is not for free. Therefore i doubt that using
>> <http://translate.google.com/> as a "service" through scripts is legal.
>>
>>
> 
> Thanks for your comments, Arno, I'm just trying to get used to websites from the
> point-of-view of machines.  I don't want this as a "service" that I would put on my
> guinea pig 1and1 website.  With all the reading I did, I do want to use php on my
> website now.
> 
> I think we're all in agreement that php is the wrong tool for what I wanted to do,
> but I've always wanted to have more-sophisticated content on my own site, in
> particular the ability to host video.
> 
> The tutorial I looked at wants me to install XAMPP.  Is that the best idea for
> getting a php development environment squared away given that this
> 
> $ uname -a
> Linux fred-desktop 3.2.0-33-generic-pae #52-Ubuntu SMP Thu Oct 18 16:39:21 UTC 2012
> i686 athlon i386 GNU/Linux
> 
> is my platform?  As I look through synaptic for packages that match php, there might
> be 2 hundred.
> 
> Before I went ahead and fiddled with it, I thought I'd ask to see if someone has been
> around the block on this once, which is one more than me right now.

Linux/Unix is the native platform for PHP development. Get a decent IDE with syntax
checking, set all encodings to utf-8, start your local web server and there you go.

/Str.

Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

using scripting languages to automate a browser Cal Dershowitz <cal@example.invalid> - 2013-02-10 01:04 -0700
  Re: using scripting languages to automate a browser "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2013-02-10 10:03 +0100
  Re: using scripting languages to automate a browser Arno Welzel <usenet@arnowelzel.de> - 2013-02-10 10:49 +0100
    getting a php capability on ubuntu was Re: using scripting languages to automate a browser Cal Dershowitz <cal@example.invalid> - 2013-02-10 19:58 -0700
      Re: getting a php capability on ubuntu was Re: using scripting languages   to automate a browser "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2013-02-11 12:39 +0100
        Re: getting a php capability on ubuntu was Re: using scripting languages   to automate a browser Jerry Stuckle <jstucklex@attglobal.net> - 2013-02-11 09:29 -0500
          Re: getting a php capability on ubuntu was Re: using scripting languages     to automate a browser "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2013-02-11 17:23 +0100
            Re: getting a php capability on ubuntu was Re: using scripting languages     to automate a browser Jerry Stuckle <jstucklex@attglobal.net> - 2013-02-11 14:13 -0500
              Re: getting a php capability on ubuntu was Re: using scripting languages       to automate a browser "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2013-02-11 22:29 +0100
                Re: getting a php capability on ubuntu was Re: using scripting languages       to automate a browser Jerry Stuckle <jstucklex@attglobal.net> - 2013-02-11 16:40 -0500
                Re: getting a php capability on ubuntu was Re: using scripting languages       to automate a browser Cal Dershowitz <cal@example.invalid> - 2013-02-11 22:23 -0700
                Re: getting a php capability on ubuntu was Re: using scripting languages       to automate a browser The Natural Philosopher <tnp@invalid.invalid> - 2013-02-12 07:02 +0000
                Re: getting a php capability on ubuntu was Re: using scripting languages         to automate a browser "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2013-02-12 09:38 +0100
                Re: getting a php capability on ubuntu was Re: using scripting languages         to automate a browser "Peter H. Coffin" <hellsop@ninehells.com> - 2013-02-12 07:54 -0600
                Re: getting a php capability on ubuntu was Re: using scripting languages       to automate a browser Jerry Stuckle <jstucklex@attglobal.net> - 2013-02-12 09:09 -0500
                Re: getting a php capability on ubuntu was Re: using scripting languages       to automate a browser Cal Dershowitz <cal@example.invalid> - 2013-02-19 00:56 -0800
                Re: getting a php capability on ubuntu was Re: using scripting languages       to automate a browser The Natural Philosopher <tnp@invalid.invalid> - 2013-02-19 12:12 +0000
                Re: getting a php capability on ubuntu was Re: using scripting languages       to automate a browser Jerry Stuckle <jstucklex@attglobal.net> - 2013-02-19 08:27 -0500
                Re: getting a php capability on ubuntu was Re: using scripting languages       to automate a browser Cal Dershowitz <cal@example.invalid> - 2013-02-19 17:08 -0800
                Re: getting a php capability on ubuntu was Re: using scripting languages       to automate a browser "Peter H. Coffin" <hellsop@ninehells.com> - 2013-02-12 07:50 -0600
                Re: getting a php capability on ubuntu was Re: using scripting languages       to automate a browser The Natural Philosopher <tnp@invalid.invalid> - 2013-02-12 14:28 +0000
                Re: getting a php capability on ubuntu was Re: using scripting   languages       to automate a browser "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2013-02-12 15:29 +0100
                Re: getting a php capability on ubuntu was Re: using scripting   languages       to automate a browser Arno Welzel <usenet@arnowelzel.de> - 2013-02-17 08:48 +0100
                Re: getting a php capability on ubuntu was Re: using scripting   languages       to automate a browser Cal Dershowitz <cal@example.invalid> - 2013-02-19 01:19 -0800
                Re: getting a php capability on ubuntu was Re: using scripting   languages       to automate a browser Arno Welzel <usenet@arnowelzel.de> - 2013-02-19 11:43 +0100
      Re: getting a php capability on ubuntu was Re: using scripting languages to automate a browser Warren Post <warren@copaninvest.com> - 2013-02-11 07:40 -0600
        Re: getting a php capability on ubuntu was Re: using scripting languages to automate a browser Cal Dershowitz <cal@example.invalid> - 2013-02-11 13:20 -0700
          Re: getting a php capability on ubuntu was Re: using scripting languages   to automate a browser "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2013-02-11 22:32 +0100
          Re: getting a php capability on ubuntu was Re: using scripting languages to automate a browser Captain Paralytic <paul_lautman@yahoo.com> - 2013-02-12 02:12 -0800
          Re: getting a php capability on ubuntu was Re: using scripting languages to automate a browser Warren Post <warren@copaninvest.com> - 2013-02-12 07:42 -0600
            Re: getting a php capability on ubuntu was Re: using scripting languages to automate a browser The Natural Philosopher <tnp@invalid.invalid> - 2013-02-12 14:27 +0000
              Re: getting a php capability on ubuntu was Re: using scripting languages to automate a browser Cal Dershowitz <cal@example.invalid> - 2013-02-12 21:09 -0700
                Re: getting a php capability on ubuntu was Re: using scripting languages to automate a browser Jerry Stuckle <jstucklex@attglobal.net> - 2013-02-13 06:14 -0500
                Re: getting a php capability on ubuntu was Re: using scripting languages to automate a browser Allodoxaphobia <knock_yourself_out@example.net> - 2013-02-13 19:35 +0000
                Re: getting a php capability on ubuntu was Re: using scripting languages to automate a browser The Natural Philosopher <tnp@invalid.invalid> - 2013-02-13 23:40 +0000
                Re: getting a php capability on ubuntu was Re: using scripting languages to automate a browser Cal Dershowitz <cal@example.invalid> - 2013-02-13 23:48 -0700
                Re: getting a php capability on ubuntu was Re: using scripting languages to automate a browser Kim André Akerø <kimandre@nospambetadome.com> - 2013-02-14 17:15 +0100
                Re: getting a php capability on ubuntu was Re: using scripting languages to automate a browser Cal Dershowitz <cal@example.invalid> - 2013-02-19 01:27 -0800
                Re: getting a php capability on ubuntu was Re: using scripting languages to automate a browser Arno Welzel <usenet@arnowelzel.de> - 2013-02-19 11:44 +0100

csiph-web