![]() |
This post details how to retrieve post counts from the big four social networks and - if you\'re interested enough - how to render that data on your screen in a small text box.
Do you happen to have come by a large collection of MP3&
Recently finished a new page design? We all know how cluttered code can get when dealing with problems in the design and during the development process. Often, CSS class declarations that were written for elements that were removed from your html page are not removed from the CSS too, and remain as pointless entries in your CSS file, increasing its size and volume of clutter unnecessarily.
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 »
- 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 [72]
- PHP [38]
- Functions [9]
- Amazon Web Services [3]
- UI Design [35]
- Design Tools [4]
- Version Control [33]
- GIT [31]
- SEO [27]
- Cloaking [3]
- Local Business [1]
- Backlinking [1]
- CSS [24]
- 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]
- Design Inspiration [4]
- HTML [3]
- eBook [3]
- RSS [3]
- Marketing [3]
- Site Updates [2]
- GSM SMS [2]
- Scraping [2]
- Hosting [2]
- Inspiration [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]
- Printing [1]