FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » using scripting languages to automate a browser
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: getting a php capability on ubuntu was Re: using scripting languages to automate a browser [message #180404 is a reply to message #180402] Mon, 11 February 2013 11:39 Go to previous messageGo to previous message
M. Strobel is currently offline  M. Strobel
Messages: 386
Registered: December 2011
Karma:
Senior Member
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.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: CMS Recommendation
Next Topic: On click button in php
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 03 12:31:08 GMT 2024

Total time taken to generate the page: 0.07723 seconds