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 #180406 is a reply to message #180404] Mon, 11 February 2013 14:29 Go to previous messageGo to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma:
Senior Member
On 2/11/2013 6:39 AM, M. Strobel wrote:
> 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.
>

Incorrect. Linux is not the "native platform for PHP development". It
is ONE platform for PHP development. PHP runs fine on Windows, also.
And there are good IDE's on Windows, also.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
[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: Fri Nov 08 13:14:00 GMT 2024

Total time taken to generate the page: 0.09602 seconds