13 Aug, 2010
Php json in perl
Articles related to php json in perl
http://digitalpbk.blogspot.com/2007/06/json-javascript-object-notation.html
JSON- Javascript Object Notation
Intro
JSON stands for Javascript Object Notation.
JSON is a way of writing or expressing JavaScript Objects so that it can be easily read by both the computer and humans. Unlike XML or eXtensible Mark up Language the
JSON is much more compact and easier to Parse. XML takes the form Information
JSON takes the formvar obj = {an_array : [element1, element2 , element3 ....],a_property : "property",a_multi_array : [ [,,,],[,,,],...]};In order to parse an XML ...
Published 4 years, 11 months ago
http://digitalpbk.blogspot.com/2009/10/ftpchk3-virus-php-pl-hacked-website.html
FTPCHK3 : Virus that adds malicious scripts to your website.
IntroThis virus changes all your web files,
php, html javascript and tpl files in prominent CMS systems to add a malicious script into your site. This injection allows the attacker to remotely execute
PHP code on your website if the
php infected code is running on your pages. Its supposedly called Bagle. But who cares about the name? It's nasty and start fixing.How it got in ?This can be due to potential security holes in your FTP ...
Published 2 years, 7 months ago
http://digitalpbk.blogspot.com/2009/05/curl-php-windows-unable-load-libcurlphp.html
cURL
PHP Error on Windows
Fatal error: Call to undefined function curl_init() in D:/webs/
php.php on line 284This problem arises because of not including the lib_curl.dll to
PHP. To solve this uncomment the line as shown below;extension=
php_bz2.dllextension=
php_curl.dll;extension=php_dba.dllNow restart apache server. If you get an error "Unable to Load
X:/path/php/ext/php_curl.dll", copy SSLEAY32.PHPlibEAY32.dll (OpenSSL) Libraries to the System32 folder.Now restart apache server ...
Published 3 years ago
http://digitalpbk.com/virus/gumblar-web-virus-manual-removal-free-tool
Gumblar Virus Javascript removal using
PERL
Gumblar virus infects all .html and .
php files and injects a piece of javascript in the source code. The code is usually found just below the <body> tag. The Javascript code Gumblar injects varies widely and usually attaches a script or inline frame inside your page to execute itself on page load. Read on to get rid of this virus.
Gumblar Source Code Samples when delimited by new lines
Sample 1
var D;
if(D!='' ...
Published 2 years, 1 month ago
http://digitalpbk.blogspot.com/2007/07/perl-email-forwarder.html
cPanel Mail Forwarder
ForwarderThis handly little program forwardes all emails coming to a certain specified email address and forwards to a forwarding list.Setting up the email capturinge-Mail can be captured using a
PERL script. The contents of the email must be pipped in. The capturing an passing of the email can be done through cPanel.Click MailClick ForwardersAdd ForwarderIn the text box to the right side, you can provide an email address or a path to your
PERL program that can process ...
Published 4 years, 10 months ago
http://digitalpbk.com/perl/install-modules-unrecognized-command-line-option-fstack-protector
Error Installing
PERL modules "unrecognized command line option -fstack -protector"
unrecognized command line option "-fstack-protector" error usually comes on Cygwin when installing
PERL modules.
For example when installing the DBI module or DBD::MySQL
perl module, the following error comes on cygwin :
cp lib/DBI/Gofer/Serializer/Base.pm blib/lib/DBI/Gofer/Serializer/Base.pm
cp dbipport.h blib/arch/auto/DBI/dbipport.h
cp lib/DBI/Gofer/Execute.pm blib ...
Published 2 years, 2 months ago
http://digitalpbk.blogspot.com/2007/09/cpanel-v3-perl-include-inc.html
Perl - cPanel V3 and the @INC
Modifying @INC in a SCRIPTuse Module;is executed during compile time so if you modify the @INC array at run time it will not be reflected back in the compile time. So if you have to include any more include locations in the @INC inside a script, give it inside the BEGIN { }block.BEGIN{ push @INC,"location";}The BEGIN blocks are executed during compile time. So @INC is updated at compile time and the use module are correctly searched for in the updated ...
Published 4 years, 8 months ago
http://digitalpbk.com/stock/google-finance-get-stock-quote-realtime
than scrapping a page.
UPDATE:
http://finance.google.com/finance/info?client=ig&q=NASDAQ:GOOG,NASDAQ:YHOO
You can get multiple quotes in a single request by comma separating the symbols on q parameter.
Will come back soon with a script that does something based on this realtime data from Google Finance.
UPDATE:
The Code in Python
import urllib2
import
json
import time
class GoogleFinanceAPI:
def __init__(self):
self ...
Published 1 year, 1 month ago
http://digitalpbk.com/perl/perl-script-remove-directory-and-contents-recursively
Perl script to remove a directory and contents recursively
This is the script for sandeep when he asked me how to delete a directory in
perl. rmdir function only removes empty directories. So we need to remove the contents of the directory before removing the directory. So if the directory contains more directories / folders we would have to recursively delete all the directories under the directory. Well so here is the code just to do that.
#!/usr/bin/
perl
deldir("test"); ...
Published 2 years, 5 months ago
http://digitalpbk.blogspot.com/2007/05/custom-extenstion-for-server-script.html
Custom extenstion for a Server Script
Intro
PHP files have a &q
uot;.PHP" extension and is by default the extension used to run
php scripts. Thats ordinary. Now it would be cool if we could name another extension (say .do or .html) for a
PHP script and get the same output. This is precisely what the following is about.In order to map a particular extension to a particular application, apache uses handlers. Basically you can define an extension and add the corresponding handler. This can ...
Published 4 years, 12 months ago
Related help topics for php json in perl
More keywords like php json in perl
More pages for php json in perl