Demonstration of PHP Reverse Proxy Class

As being asked by Julián Landerreche, I’d think it’s the time writing some guidelines in using this PHP Reverse Proxy Class.

As PHP Reverse Proxy Class is quite simple, I written some steps, added with simple demonstratoin code in http://www.php-class.buss.hk/php-reverse-proxy/demonstraton-of-php-reverse-proxy to illustration how we can use this PHP Reverse Proxy Class .

In the demonstration web page,  I’ve put the http://www.examplet.buss.hk  as an example in which http://www.examplet.buss.hk retrieve the raw html code from http://von.ath.cx .  You can view http://von.ath.cx as the backup source and http://www.examplet.buss.hk as the front-end. 

However, in reality, the website of  http://www.examplet.buss.hk is using modified, cached version of PHP Reverse Proxy Class (which I haven’t written the maintenance functionality of remove/update of file cache, so I am not going to publish it at this moment.)  But the syntax of using this modified, cached version of PHP Reverse Proxy Class is the same as the original one.

 Happy programming,

Cloudgen

Advertisements
Posted in Uncategorized | Tagged , , , | 1 Comment

Hello world!

I keep on writing programs. Some of them are useful in many projects, and some of them may not be aborted and finally forgotten.

Instead of letting the codes to be forgotten one day, I ask myself, why not publish them in the internet.  Maybe, somebody thinks they are useful , or maybe not.

For simplicity, I’ve grouped them into different categories.  I started from Assembly, Java, Javascript, jQuery, Python, …, etc. Now, it’s the time for PHP.

Frankly speaking, I am not quite familiar with PHP and I always have to spent large effort to make some PHP code becoming near perfect.

As mention in one of my blog article, “The difference between IIS 5.0 and IIS 5.1” from the “Web Server Tricks Blog“, I have spent a lot of effort writing a reverse proxy in PHP.  And finally, I found I’d better not using it in that project.  It’s a waste, isn’t it?  Then, the message, “why not publish it” come to my mind again.

So, I setup a website using the name of PHP class (I’ve just created the DNS, the link may not be work at the moment, see backup link from google site) and I copy the source code (backup) to it.  And now, I have a website publishing my PHP classes in the future.  Some of them may be useful and have been used in some of my projects, and some of them may note appeared to be so useful.  You have to judge it yourself 😛

By the way, I’ve planned to use the the “PHP Reverse Proxy” as one of component in a content publishing software which is able import the content of other website such as, Google site, which is one of my favorite “content engine”.  Google site is, for me, simple but not beautiful; powerful but not flexible.

If I can use Google site for drafting, I can publish it on other site using the stylesheet that I like, using the Javascript that I like and linking to the database that I planned to.  Yes, I have done a lot of experiments on it that you found some of the results in some of my websites.

I think I gone too far for the current topic.  I am happy to have a place publishing PHP class code.  Bye for now.

Happy programming,

Cloudgen

Posted in Uncategorized | Tagged , , , | 2 Comments