I'd recommend doing this in Python, a clean, elegant language with suitable libraries for the task (for example, the requests library). Here's the code to fetch the HTML from a page:
import requests
# ...
r = requests.get(url)
print r.text
If you're looking to parse the HTML further...
I highly recommend the tutorials on HTMLDog as they're most geared toward beginners and have the least "documentation" feel to them. (I can't post links.)
lincher's solution is excellent, but here's a shorter version with no need to create log.txt beforehand and more extensive error-checking.
<?php
isset($_GET['pass']) or die('you need a password');
$_GET['pass'] == 'blah' or die('wrong password');
isset($_GET['text']) or die('you need to...
Have you considered using SCSS or LESS? They're supersets of CSS with variable support (so, like the poster above me mentioned, you don't have to write '1200px' repeatedly), nested selectors, etc.
I'm not sure what the method was as it was removed but I read something about automating. I'm an experienced programmer who can probably write some kind of required script. Could you please send me details?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.