February 13, 2014
Yes it’s true you have given your life to Christ and asked for forgiveness but tomorrow you find yourself in the same sin again, as a friend told me earlier which I believed “Devil only gives you suggestions but cannot control your life!” When devil brings up a suggestion to you, not only a suggestion […]
February 13, 2014
2014 NIGERIAN AGIP OIL COMPANY SCHOLARSHIP APPLICATIONNIGERIAN AGIP OIL COMPANY LIMITEDOperator of the NNPC/NAOC/PHILLIPS Joint VentureR. C. 2974 2013/2014 NAOC TERTIARY SCHOLARSHIP SCHEME: APPLICATION/EXAMINATIONThe Nigerian Agip Oil Company Limited (NAOC) Joint Venture in pursuance of its corporate Social Responsibility invites suitable qualified applicants for its 2013/2014 session tertiary scholarship scheme effective 3rd February, 2014.Category of Awards […]
February 1, 2014
Hi, we all know the lastest iOS is iOS7 which more security patches and upgrades has been added to, jailbreaking and unlocking seem to be hard. But now we’ve got a software that jailbreaks it like magic! The Evasi0n Team recently released a jailbreaking tool for iOS which the process is so simple Firstly, you […]
December 19, 2013
Hello there, was just surfing on PHP functions in their site and came accross this function and it works great! Though I don’t even know how the Easter is been calculated Below is the script, copy it to a PHP file and save or download the attachment: <?php function check_easter($year) { $y = getdate(easter_date($year)); if($year<date(‘Y’)) { $word = ‘was’; } else { $word = ‘is’; […]
November 22, 2013
Creating a campaign and adgroup in Google Adword, by default you won’t know you can set an expiration date for your ads to stop running, but little research showed me and little research is also going to show you now Login to your Adwords Account http://adwords.com You should be in your Campaign Tab, if you […]
November 15, 2013
Hi there, below is a little snippet of what using Proxy in PHP cURL
|
<pre><br /><span style="background: #ffffe8; color: #5f5035;"><?php</span><span style="background: #ffffe8; color: black;"></span><br /><span style="background: #ffffe8; color: black;"></span><br /><span style="background: #ffffe8; color: black;"></span><br /><span style="background: #ffffe8; color: #797997;">$loginpassw</span><span style="background: #ffffe8; color: black;"> </span><br /><span style="background: #ffffe8; color: #808030;">=</span><span style="background: #ffffe8; color: black;"> </span><span style="background: #ffffe8; color: #0000e6;">''</span><span style="background: #ffffe8; color: purple;">;</span><span style="background: #ffffe8; color: black;"> </span><span style="background: #ffffe8; color: dimgrey;">//your proxy login and password here if any</span><span style="background: #ffffe8; color: black;"></span><br /><span style="background: #ffffe8; color: black;"></span><br /><span style="background: #ffffe8; color: black;"></span><br /><span style="background: #ffffe8; color: #797997;">$proxy_ip</span><span style="background: #ffffe8; color: black;"> </span><span style="background: #ffffe8; color: #808030;">=</span><span style="background: #ffffe8; color: black;"> </span><span style="background: #ffffe8; color: #0000e6;">'202.148.22.171'</span><span style="background: #ffffe8; color: purple;">;</span><span style="background: #ffffe8; color: black;"> </span><span style="background: #ffffe8; color: dimgrey;">//proxy IP here</span><span style="background: #ffffe8; color: black;"></span><br /><span style="background: #ffffe8; color: black;"></span><br /><span style="background: #ffffe8; color: black;"></span><br /><span style="background: #ffffe8; color: #797997;">$proxy_port</span><span style="background: #ffffe8; color: black;"> </span><span style="background: #ffffe8; color: #808030;">=</span><span style="background: #ffffe8; color: black;"> </span><span style="background: #ffffe8; color: #008c00;">80</span><span style="background: #ffffe8; color: purple;">;</span><span style="background: #ffffe8; color: black;"> </span><span style="background: #ffffe8; color: dimgrey;">//proxy port from your proxy list</span><span style="background: #ffffe8; color: black;"></span><br /><span style="background: #ffffe8; color: black;"></span><br /><span style="background: #ffffe8; color: black;"></span><br /><span style="background: #ffffe8; color: #797997;">$url</span><span style="background: #ffffe8; color: black;"> </span><span style="background: #ffffe8; color: #808030;">=</span><span style="background: #ffffe8; color: black;"> </span><span style="background: #ffffe8; color: #0000e6;">''</span><span style="background: #ffffe8; color: purple;">;</span><span style="background: #ffffe8; color: black;"> </span><span style="background: #ffffe8; color: dimgrey;">//URL to get</span><span style="background: #ffffe8; color: black;"></span><br /><span style="background: #ffffe8; color: black;"></span><br /><span style="background: #ffffe8; color: black;"></span><br /><span style="background: #ffffe8; color: dimgrey;">//Lets initiate cURL</span><span style="background: #ffffe8; color: black;"></span><br /><span style="background: #ffffe8; color: #797997;">$ch</span><span style="background: #ffffe8; color: black;"> </span><span style="background: #ffffe8; color: #808030;">=</span><span style="background: #ffffe8; color: black;"> </span><span style="background: #ffffe8; color: #400000;">curl_init</span><span style="background: #ffffe8; color: #808030;">(</span><span style="background: #ffffe8; color: #808030;">)</span><span style="background: #ffffe8; color: purple;">;</span><span style="background: #ffffe8; color: black;"></span><br /><span style="background: #ffffe8; color: black;"></span><br /><span style="background: #ffffe8; color: black;"></span><br /><span style="background: #ffffe8; color: dimgrey;">//Some useful things we need for it to work</span><span style="background: #ffffe8; color: black;"></span><br /><span style="background: #ffffe8; color: #400000;">curl_setopt</span><span style="background: #ffffe8; color: #808030;">(</span><span style="background: #ffffe8; color: #797997;">$ch</span><span style="background: #ffffe8; color: #808030;">,</span><span style="background: #ffffe8; color: black;"> </span><span style="background: #ffffe8; color: #7d0045;">CURLOPT_URL</span><span style="background: #ffffe8; color: #808030;">,</span><span style="background: #ffffe8; color: black;"> </span><span style="background: #ffffe8; color: #797997;">$url</span><span style="background: #ffffe8; color: #808030;">)</span><span style="background: #ffffe8; color: purple;">;</span><span style="background: #ffffe8; color: black;"></span><br /><span style="background: #ffffe8; color: #400000;">curl_setopt</span><span style="background: #ffffe8; color: #808030;">(</span><span style="background: #ffffe8; color: #797997;">$ch</span><span style="background: #ffffe8; color: #808030;">,</span><span style="background: #ffffe8; color: black;"> </span><span style="background: #ffffe8; color: #7d0045;">CURLOPT_HEADER</span><span style="background: #ffffe8; color: #808030;">,</span><span style="background: #ffffe8; color: black;"> </span><span style="background: #ffffe8; color: #008c00;">0</span><span style="background: #ffffe8; color: #808030;">)</span><span style="background: #ffffe8; color: purple;">;</span><span style="background: #ffffe8; color: black;"> </span><span style="background: #ffffe8; color: dimgrey;">// no headers in the output</span><span style="background: #ffffe8; color: black;"></span><br /><span style="background: #ffffe8; color: #400000;">curl_setopt</span><span style="background: #ffffe8; color: #808030;">(</span><span style="background: #ffffe8; color: #797997;">$ch</span><span style="background: #ffffe8; color: #808030;">,</span><span style="background: #ffffe8; color: black;"> </span><span style="background: #ffffe8; color: #7d0045;">CURLOPT_RETURNTRANSFER</span><span style="background: #ffffe8; color: #808030;">,</span><span style="background: #ffffe8; color: black;"> </span><span style="background: #ffffe8; color: #008c00;">1</span><span style="background: #ffffe8; color: #808030;">)</span><span style="background: #ffffe8; color: purple;">;</span><span style="background: #ffffe8; color: black;"> </span><span style="background: #ffffe8; color: dimgrey;">// output to variable</span><span style="background: #ffffe8; color: black;"></span><br /><span style="background: #ffffe8; color: #400000;">curl_setopt</span><span style="background: #ffffe8; color: #808030;">(</span><span style="background: #ffffe8; color: #797997;">$ch</span><span style="background: #ffffe8; color: #808030;">,</span><span style="background: #ffffe8; color: black;"> CURLOPT_PROXYPORT</span><span style="background: #ffffe8; color: #808030;">,</span><span style="background: #ffffe8; color: black;"> </span><span style="background: #ffffe8; color: #797997;">$proxy_port</span><span style="background: #ffffe8; color: #808030;">)</span><span style="background: #ffffe8; color: purple;">;</span><span style="background: #ffffe8; color: black;"></span><br /><span style="background: #ffffe8; color: #400000;">curl_setopt</span><span style="background: #ffffe8; color: #808030;">(</span><span style="background: #ffffe8; color: #797997;">$ch</span><span style="background: #ffffe8; color: #808030;">,</span><span style="background: #ffffe8; color: black;"> CURLOPT_PROXYTYPE</span><span style="background: #ffffe8; color: #808030;">,</span><span style="background: #ffffe8; color: black;"> </span><span style="background: #ffffe8; color: #0000e6;">'HTTP'</span><span style="background: #ffffe8; color: #808030;">)</span><span style="background: #ffffe8; color: purple;">;</span><span style="background: #ffffe8; color: black;"></span><br /><span style="background: #ffffe8; color: #400000;">curl_setopt</span><span style="background: #ffffe8; color: #808030;">(</span><span style="background: #ffffe8; color: #797997;">$ch</span><span style="background: #ffffe8; color: #808030;">,</span><span style="background: #ffffe8; color: black;"> </span><span style="background: #ffffe8; color: #7d0045;">CURLOPT_PROXY</span><span style="background: #ffffe8; color: #808030;">,</span><span style="background: #ffffe8; color: black;"> </span><span style="background: #ffffe8; color: #797997;">$proxy_ip</span><span style="background: #ffffe8; color: #808030;">)</span><span style="background: #ffffe8; color: purple;">;</span><span style="background: #ffffe8; color: black;"></span><br /><span style="background: #ffffe8; color: black;"></span><br /><span style="background: #ffffe8; color: black;"></span><br /><span style="background: #ffffe8; color: dimgrey;">//Gather up every result in a variable</span><span style="background: #ffffe8; color: black;"></span><br /><span style="background: #ffffe8; color: #797997;">$data</span><span style="background: #ffffe8; color: black;"> </span><span style="background: #ffffe8; color: #808030;">=</span><span style="background: #ffffe8; color: black;"> </span><span style="background: #ffffe8; color: #400000;">curl_exec</span><span style="background: #ffffe8; color: #808030;">(</span><span style="background: #ffffe8; color: #797997;">$ch</span><span style="background: #ffffe8; color: #808030;">)</span><span style="background: #ffffe8; color: purple;">;</span><span style="background: #ffffe8; color: black;"></span><br /><span style="background: #ffffe8; color: black;"></span><br /><span style="background: #ffffe8; color: black;"></span><br /><span style="background: #ffffe8; color: dimgrey;">//We are done, lets close connection</span><span style="background: #ffffe8; color: black;"></span><br /><span style="background: #ffffe8; color: #400000;">curl_close</span><span style="background: #ffffe8; color: #808030;">(</span><span style="background: #ffffe8; color: #797997;">$ch</span><span style="background: #ffffe8; color: #808030;">)</span><span style="background: #ffffe8; color: purple;">;</span><span style="background: #ffffe8; color: black;"></span><br /><span style="background: #ffffe8; color: black;"></span><br /><span style="background: #ffffe8; color: black;"></span><br /><span style="background: #ffffe8; color: dimgrey;">//Show up your result</span><span style="background: #ffffe8; color: black;"></span><br /><span style="background: #ffffe8; color: maroon; font-weight: bold;">echo</span><span style="background: #ffffe8; color: black;"> </span><span style="background: #ffffe8; color: #797997;">$data</span><span style="background: #ffffe8; color: purple;">;</span><span style="background: #ffffe8; color: black;"></span><br /><span style="background: #ffffe8; color: #5f5035;">?></span><br /> |
November 15, 2013
Sometime ago the time() function in PHP seems to confuse me of not knowing how to use it but I was just told it calls up current time and date. Well, my research later gave me something when I was accessing all functions my Dreamweaver suggests for me. I found the getdate() function and saw […]
November 15, 2013
Below is a little snippet of what you are looking for
|
<pre><br /><span style="background: #ffffe8; color: #5f5035;"><?php</span><span style="background: #ffffe8; color: black;"></span><br /><span style="background: #ffffe8; color: dimgrey;">## Define zip file name </span><span style="background: #ffffe8; color: black;"></span><br /><span style="background: #ffffe8; color: #400000;">define</span><span style="background: #ffffe8; color: #808030;">(</span><span style="background: #ffffe8; color: #0000e6;">'FILENAME'</span><span style="background: #ffffe8; color: #808030;">,</span><span style="background: #ffffe8; color: #0000e6;">'vpn.zip'</span><span style="background: #ffffe8; color: #808030;">)</span><span style="background: #ffffe8; color: purple;">;</span><span style="background: #ffffe8; color: dimgrey;">##Zip Archive name</span><span style="background: #ffffe8; color: black;"></span><br /><span style="background: #ffffe8; color: #400000;">define</span><span style="background: #ffffe8; color: #808030;">(</span><span style="background: #ffffe8; color: #0000e6;">'DIR_LOC'</span><span style="background: #ffffe8; color: #808030;">,</span><span style="background: #ffffe8; color: #0000e6;">'zip'</span><span style="background: #ffffe8; color: #808030;">)</span><span style="background: #ffffe8; color: purple;">;</span><span style="background: #ffffe8; color: dimgrey;">## directory to exract the files to</span><span style="background: #ffffe8; color: black;"></span><br /><span style="background: #ffffe8; color: black;"></span><br /><span style="background: #ffffe8; color: dimgrey;">//Start new ZipArchive</span><span style="background: #ffffe8; color: black;"></span><br /><span style="background: #ffffe8; color: #797997;">$zip</span><span style="background: #ffffe8; color: black;"> </span><span style="background: #ffffe8; color: #808030;">=</span><span style="background: #ffffe8; color: black;"> </span><span style="background: #ffffe8; color: maroon; font-weight: bold;">new</span><span style="background: #ffffe8; color: black;"> ZipArchive</span><span style="background: #ffffe8; color: purple;">;</span><span style="background: #ffffe8; color: black;"></span><br /><span style="background: #ffffe8; color: black;"></span><br /><span style="background: #ffffe8; color: dimgrey;">//Opening the file name you defined</span><span style="background: #ffffe8; color: black;"></span><br /><span style="background: #ffffe8; color: #797997;">$zip</span><span style="background: #ffffe8; color: #808030;">-</span><span style="background: #ffffe8; color: #808030;">></span><span style="background: #ffffe8; color: black;">open</span><span style="background: #ffffe8; color: #808030;">(</span><span style="background: #ffffe8; color: black;">FILENAME</span><span style="background: #ffffe8; color: #808030;">)</span><span style="background: #ffffe8; color: purple;">;</span><span style="background: #ffffe8; color: black;"></span><br /><span style="background: #ffffe8; color: black;"></span><br /><span style="background: #ffffe8; color: dimgrey;">//Extrating file</span><span style="background: #ffffe8; color: black;"></span><br /><span style="background: #ffffe8; color: #797997;">$zip</span><span style="background: #ffffe8; color: #808030;">-</span><span style="background: #ffffe8; color: #808030;">></span><span style="background: #ffffe8; color: black;">extractTo</span><span style="background: #ffffe8; color: #808030;">(</span><span style="background: #ffffe8; color: black;">DIR_LOC</span><span style="background: #ffffe8; color: #808030;">)</span><span style="background: #ffffe8; color: purple;">;</span><span style="background: #ffffe8; color: black;"></span><br /><span style="background: #ffffe8; color: black;"></span><br /><span style="background: #ffffe8; color: dimgrey;">//We are done, closing connection...</span><span style="background: #ffffe8; color: black;"></span><br /><span style="background: #ffffe8; color: #797997;">$zip</span><span style="background: #ffffe8; color: #808030;">-</span><span style="background: #ffffe8; color: #808030;">></span><span style="background: #ffffe8; color: #400000;">close</span><span style="background: #ffffe8; color: #808030;">(</span><span style="background: #ffffe8; color: #808030;">)</span><span style="background: #ffffe8; color: purple;">;</span><span style="background: #ffffe8; color: black;"></span><br /><span style="background: #ffffe8; color: #5f5035;">?></span><br /> |
November 12, 2013
Auto update of your site content to social networks does good to SEO and site traffic itself. I found a secure site that does this a year ago and its free! How to Update RSS Feed Content to Social Networks Using dlvr.it First, just login to the site or create an account if you don’t […]
November 12, 2013
Earlier when I was using Bidvertiser Ad Service, Pop Under Ads was a huge problem for me, and also when I visit a site and meet a large ads that slides in, it kinda annoys me and also discourage me returning to the site. Later I got rid of it by disabling it, it is […]