daveoffy Posted January 11, 2009 Share Posted January 11, 2009 I need a way to load a site using perl. I have a program set up and if they meet everything required i want it to load the site. I have all done but the way to open up the internet broswer and load the site. Quote Link to comment https://forums.phpfreaks.com/topic/140356-solved-perl-go-to-a-website/ Share on other sites More sharing options...
corbin Posted January 11, 2009 Share Posted January 11, 2009 Would the Perl script be executing on the client or server? Quote Link to comment https://forums.phpfreaks.com/topic/140356-solved-perl-go-to-a-website/#findComment-734529 Share on other sites More sharing options...
daveoffy Posted January 11, 2009 Author Share Posted January 11, 2009 client. Quote Link to comment https://forums.phpfreaks.com/topic/140356-solved-perl-go-to-a-website/#findComment-734794 Share on other sites More sharing options...
corbin Posted January 11, 2009 Share Posted January 11, 2009 Ok, good, because it wouldn't be possible from the server side (and it would be redundant, since the client would most likely be viewing it in a browser ;p). Hrmmm, I would imagine in Perl there is something like PHP's exec command. You could use that to do something like: exec('<path to browser> http://google.com/'); Assuming the browser would open with a parameter like that. It might not be possible, or you might have to use a COM object or something. The COM object would be destroyed when the Perl script ended though, so that might not work. I'll google around later, but someone with more Perl experience than I might come along ;p. Quote Link to comment https://forums.phpfreaks.com/topic/140356-solved-perl-go-to-a-website/#findComment-734845 Share on other sites More sharing options...
trq Posted January 11, 2009 Share Posted January 11, 2009 What exactly do you want to do with the site once it is loaded? Does it need to be loaded in a browser? Seems curl might be what your looking for but we need more details. Quote Link to comment https://forums.phpfreaks.com/topic/140356-solved-perl-go-to-a-website/#findComment-734877 Share on other sites More sharing options...
corbin Posted January 11, 2009 Share Posted January 11, 2009 Hrmmm true.... I was thinking for some reason he wanted to open up a browser, but perhaps that is his solution, not his goal. Quote Link to comment https://forums.phpfreaks.com/topic/140356-solved-perl-go-to-a-website/#findComment-734887 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.