![]() | ||
function api($text,$slider,$email,$pass)
{
if(isset($text) && isset($slider) && isset($email) && isset($pass))
{
$text = urlencode($text);
$ch = curl_init('http://beta.wordai.com/spinit.php');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($ch, CURLOPT_POST, 1);
curl_setopt ($ch, CURLOPT_POSTFIELDS, "s=$text&slider=$slider&api=true&email=$email&pass=$pass");
$result = curl_exec($ch);
curl_close ($ch);
return $result;
... more>
{
if(isset($text) && isset($slider) && isset($email) && isset($pass))
{
$text = urlencode($text);
$ch = curl_init('http://beta.wordai.com/spinit.php');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($ch, CURLOPT_POST, 1);
curl_setopt ($ch, CURLOPT_POSTFIELDS, "s=$text&slider=$slider&api=true&email=$email&pass=$pass");
$result = curl_exec($ch);
curl_close ($ch);
return $result;
... more>
In a follow up to my last post about the PHP plugin for KDevelop and Quanta I want to detail how I setup my build environment. Since I’m only working on KDevelop I only want to compile that. For all other applications, I use the packages my distribution makes available. Below you this is possible.
Note: I use Kubuntu and hence some commands like aptitude and the package names etc. will have to be adapted to your specific distribution. But the general idea should be the same and the packages s... more>
Note: I use Kubuntu and hence some commands like aptitude and the package names etc. will have to be adapted to your specific distribution. But the general idea should be the same and the packages s... more>
In this howto i will describe how to import large mysql dump files without PHPMyAdmin and Shell Access. I am writing this howto because my hosting company (well most of them) wont allow to import very large files using MySQL dump files. Like Godaddy.com limit you to import only 2MB file using PHPMyAdmin.
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
Want to learn how to use PHP cURL with Cookies? Well, it’s pretty simple so let’s go see the code but first let’s make a scenario…
Say we have a page called ‘cookiepage.php’ in a particular website that checks for the cookie set by the homepage and will only return the proper output if the cookie exists. How do you do it? Here’s how…
/* STEP 1. let’s create a cookie file */
$ckfile = tempnam ("/tmp", "CURLCOOKIE");
/* STEP 2. visit the homepage to set the cookie proper... more>
Say we have a page called ‘cookiepage.php’ in a particular website that checks for the cookie set by the homepage and will only return the proper output if the cookie exists. How do you do it? Here’s how…
/* STEP 1. let’s create a cookie file */
$ckfile = tempnam ("/tmp", "CURLCOOKIE");
/* STEP 2. visit the homepage to set the cookie proper... more>
Symfony is a PHP framework for web projects.
Update: although the above method worked fine through ssh when I tested it, for some reason it wouldn't work as a cron job.
I found a solution, which involves using wget instead of lynx to do the job, that works fine:
:: Code :: #!/bin/sh
/usr/local/bin/wget -q -t 5 --delete-after http://www.mysite.com/data/send_file.php
Note the syntax here:
#!/bin/sh #! then the path to the sh executable, gotten by which or whereis
Then the path to the wget:
/usr/local/bin/wget
Then some switches: ... more>
I found a solution, which involves using wget instead of lynx to do the job, that works fine:
:: Code :: #!/bin/sh
/usr/local/bin/wget -q -t 5 --delete-after http://www.mysite.com/data/send_file.php
Note the syntax here:
#!/bin/sh #! then the path to the sh executable, gotten by which or whereis
Then the path to the wget:
/usr/local/bin/wget
Then some switches: ... more>
I am aware of Amazon's PHP classes but I found this simple bit of code and I'm trying to get it to work so that I can update my marketplace orders to 'shipped' at the end of the day. When I run the script with the appropriate data it returns HTTP/1.1 200 OK, but the orders never get updated. Can someone help me tweak this code please?
Here it is:
$xml = '
more>
Here it is:
$xml = '
I am aware of Amazon's PHP classes but I found this simple bit of code and I'm trying to get it to work so that I can update my marketplace orders to 'shipped' at the end of the day. When I run the script with the appropriate data it returns HTTP/1.1 200 OK, but the orders never get updated. Can someone help me tweak this code please?
Here it is:
$xml = '
more>
Here it is:
$xml = '
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
QueryPath is a PHP library for manipulating XML and HTML. It is designed to work not only with local files, but also with web services and database resources. It implements much of the jQuery interface, but it is heavily tuned for server-side use. Learn more »
Zend_Dom_Query provides mechanisms for querying XML and (X)HTML documents utilizing either XPath or CSS selectors. It was developed to aid with functional testing of MVC applications, but could also be used for rapid development of screen scrapers.
CSS selector notation is provided as a simpler and more familiar notation for web developers to utilize when querying documents with XML structures. The notation should be familiar to anybody who has developed Cascading Style Sheets or who utilizes Ja... more>
CSS selector notation is provided as a simpler and more familiar notation for web developers to utilize when querying documents with XML structures. The notation should be familiar to anybody who has developed Cascading Style Sheets or who utilizes Ja... more>
After googling further (initial results weren't very helpful) it seems there is actually a Zend Framework libary for this, along with some others:
Zend_Dom_Query
Simple HTML DOM Parser
phpQuery
DomQuery
Zend_Dom_Query
Simple HTML DOM Parser
phpQuery
DomQuery
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>
Simple Calendar Generation Class
A ridiculously easy-to-use PHP script for resizing images the smart way.
- 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
