![]() | ||
hi
I need to download Vbulletin captcha images on my HDD using curl and PHP. I really need to get samples of captcha images from several VBulletin boards. I'm collecting these samples for some kind of research. anyway, here is what I done with curl till now.
1- download register.php page.
2- parse the downloaded page to get captcha image url.
3- download that image.
now I have done step 1 and 2 correctly. but when I try to download the captcha image I don't get the captcha. I just get
I need to download Vbulletin captcha images on my HDD using curl and PHP. I really need to get samples of captcha images from several VBulletin boards. I'm collecting these samples for some kind of research. anyway, here is what I done with curl till now.
1- download register.php page.
2- parse the downloaded page to get captcha image url.
3- download that image.
now I have done step 1 and 2 correctly. but when I try to download the captcha image I don't get the captcha. I just get
PHP-CSS-Parser - A Parser for CSS Files written in PHP. Allows extraction of CSS files into a data structure, manipulation of said structure and output as (optimized) CSS
If output buffering is on, then flushing it is the only way to output anything to the browser. If you want to output right away then turn of output buffering. If that is not in your control you can just call ob_end_flush() at the srart of your script which will turn the output buffering off. There is no way however to let some messages pass, and some not (without writing custom echo/print functions)
calling ob_end_flush() will flush and turn off the top most output buffer. To make sure all outp... more>
calling ob_end_flush() will flush and turn off the top most output buffer. To make sure all outp... more>
The function checks if the email is in valid format
[code=php]
function valid_email($email)
{
// checks proper synta
return preg_match( "/^([a-zA-Z0-9])+([a-zA-Z0-9\._-])*@([a-zA-Z0-9_-])+([a-zA-Z0-9\._-]+)+$/", $email);
}[/code]
This function will create a log file called 'error.log.txt' and will append it with the date of the error and the error text.
[code=php]
function log_error($text)
{
$f = fopen('error.log.txt', 'a');
fwrite($f, time()."|".$text."\n");
fclose($f);
}
[/code]
[code=php]
function strip_ext($name)
{
$ext = strrchr($name, '.');
if($ext !== false)
{
$name = substr($name, 0, -strlen($ext));
}
return $name;
}[/code]
[code=php]
function ext($fileName)
{
return strtolower(substr($fileName, strrpos($fileName, '.') + 1));
}
[/code]
- Internet Marketing [100]
- Affiliate Marketing [16]
- OptIn [6]
- Article Marketing [4]
- CPC [3]
- Link Building [3]
- MLM [2]
- Email Marketing [1]
- Keyword Research [1]
- Javascript [64]
- UI Design [34]
- Design Tools [4]
- PHP [33]
- Functions [8]
- Amazon Web Services [3]
- Version Control [33]
- GIT [31]
- SEO [27]
- Cloaking [3]
- Local Business [1]
- Backlinking [1]
- CSS [22]
- Wordpress [21]
- Wordpress Plugins [6]
- Wordpress Tricks [1]
- Images [16]
- MySQL [10]
- Tracking [10]
- Servers [9]
- Automation [9]
- Money Online [8]
- Photoshop [7]
- Tracking & Analytics [6]
- Wordpress [5]
- Plugins [1]
- Social Networks [5]
- Fonts [5]
- SSH [4]
- HTML [3]
- eBook [3]
- RSS [3]
- Marketing [3]
- Design Inspiration [3]
- Site Updates [2]
- GSM SMS [2]
- Scraping [2]
- Hosting [2]
- Text Editors [1]
- Aptana [1]
- Flash & Flex [1]
- Social Networks [1]
- Flash [1]
- Business Plan Stuff [1]
- Offline Apps [1]
- PHPRunner [1]
- Photoshop [1]
- Credit Card Processing [1]

Toronto Web Design