Session lost when switching from HTTP to HTTPS in PHP

On March 31, 2010, in Amazon Cloud EC2 S3, CentOS, Fedora, LAMP, Linux, Open Source, Oscommerce, PHP, Tips, Tricks, by Sandeep Verma

Hits: 296  Sometime we face the problem when we navigate from HTTP URL to HTTPS URL our session lost. You can manage session between HTTP to HTTPS or HTTPS to HTTP: 1. Transmit session ID between page using GET 2. POST session ID by POST 3. Use files to save sessions 4. Use Cookies for sessions [...]

VideoAPI

On March 24, 2010, in Javascript, LAMP, PHP, Tips, Tricks, Web Services, by Sandeep Verma

Hits: 49  

Facebook Application

On March 20, 2010, in LAMP, PHP, Tips, Tricks, by Sandeep Verma

Hits: 83  FaceBook Application FaceBook Profile LimeExchange

FFmpeg

On March 20, 2010, in CentOS, Fedora, LAMP, Linux, Open Source, Tips, Tricks, Web Application, by Sandeep Verma

Hits: 206  # ffmpeg is a command line tool to convert one video file format to another. It can also grab and encode in real time from a TV card. # ffserver is an HTTP and RTSP multimedia streaming server for live broadcasts. It can also time shift live broadcast. # ffplay is a simple media [...]

PHP – File Upload Stream

On March 17, 2010, in CakePHP, Fedora, LAMP, Linux, PEAR, PHP, Tips, Tricks, Web Application, by Sandeep Verma

Hits: 381  PHP supports upload file stream… we can stream data to server using PHP stream_open() & stream_write() functions. There is alternate method in PEAR to transfer files to server1 to server2. PEAR have HTTP package for uploading files. HTTP_Request supports GET/POST/HEAD/TRACE/PUT/DELETE, Basic authentication, Proxy, Proxy Authentication, SSL, file uploads etc. <?php require_once ”HTTP/Request.php”; $req =& new HTTP_Request(“http://domain.com/upload”); $req->setBasicAuth(“login”, ”pass”); $req->setMethod(HTTP_REQUEST_METHOD_POST); [...]

Linux Network Configuration

On March 15, 2010, in CentOS, Fedora, LAMP, Linux, Tips, Tricks, by Sandeep Verma

Hits: 81  # system-config-network # redhat-config-network # vi /etc/resolve.conf # vi /etc/hosts # /sbin/ifconfig eth0 192.168.10.120 netmask 255.255.255.0 broadcast 192.168.10.255 # /etc/init.d/network restart ifup – bring a network interface up ifdown – take a network interface down

7 Simple Steps to create Twitter Application

On March 13, 2010, in LAMP, Open Source, PHP, Tips, Tricks, Web Application, Web Services, by Sandeep Verma

Hits: 520  First you have to download oAuth from github “An open protocol to allow secure API authorization in a simple and standard method from desktop and web applications.” 7 Simple Steps to create Twitter Application using Twitter’s OAuth…. 1. Build TwitterOAuth object Login to twitter and register a new application here https://twitter.com/oauth_clients … after registering [...]

How to Create OpenSearch Plugins?

On March 7, 2010, in Java, Javascript, LAMP, Linux, PHP, Tips, Tricks, by Sandeep Verma

Hits: 155  OpenSearch is a collection of simple formats for the sharing of search results. OpenSearch description file http://www.svnlabs.com/opensearch.xml We have to create  a simple xml file for websites and search engines to publish search results in a standard and accessible format. See below the code in action……. <?xml version=”1.0″ encoding=”UTF-8″?> <OpenSearchDescription xmlns=”http://a9.com/-/spec/opensearch/1.1/”> <ShortName>svnlabs</ShortName> <LongName>svnlabs – [...]

Magic of PEAR – Date TimeZone

On March 3, 2010, in CakePHP, LAMP, Open Source, Oscommerce, PEAR, PHP, Tips, Tricks, Web Services, by Sandeep Verma

Hits: 686  PEAR is a framework and distribution system for reusable PHP components. How we get PEAR packages with php files? Add block of code to the php file…. <?php // include PEAR class include (“Date.php”); // initialize Date object $d = new Date(“1981-08-07 01:30:11″); // retrieve date to display echo $d->getDate(); // retrieve date as [...]

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...