Thursday, 11 April 2013

Virtual Host Setup In Window System

How to set up virtual host?



Suppose,
http://localhost will access to all the projects in the file,
http://zf11.localhost will access to only one project and also set the document_path upto that's public folder

Please take the backup of files, before alter to avoid any issue further.


Do the Following simple steps,

1)  Tell the system, what to do when called http://zf11.localhost
FilePath: C:\Windows\System32\drivers\etc\hosts
Add the Following, in above file
127.0.0.1   localhost
127.0.0.1   zf11.localhost

2) Tell the apache, to include extra file
FilePath: C:\wamp\bin\apache\Apache2.2.17\conf\http.conf
Uncomment the following line
Include conf/extra/httpd-vhosts.conf

3) Tell the apache, what to do when request come from http://zf11.localhost
FilePath: C:\wamp\bin\apache\Apache2.2.17\conf\extra\conf\extra\httpd-vhosts.conf
Add the following line,  in the end

<VirtualHost *:80>
    DocumentRoot "C:/wamp/www/zf1_11/public_html"
    ServerName zf11.localhost
    <Directory "C:/wamp/www/zf1_11/public_html">
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
</VirtualHost>








http://www.kristengrote.com/blog/articles/how-to-set-up-virtual-hosts-using-wamp
http://forum.wampserver.com/read.php?2,111881

Tuesday, 5 February 2013

Paypal Buy Now Button

Paypal Buy now Button


How to create paypal "paynow" html button.

To create a button you must have an paypal account in which money will transfer.

1) Login to paypal website

Paypal Login Form
Add caption

2) Click on "Merchant Services"
Merchant Services

3) Click on "Website Payment Standard"


4)Click on "Give it a try"


5) Fill few field and create button



6) Button is created

7) Want HTML Code
<form action="https://www.paypal.com/in/cgi-bin/webscr" method="post" name="_xclick"> 
<input name="cmd" type="hidden" value="_xclick" />
<input name="business" type="hidden" value="youremailaddress" />
<input name="currency_code" type="hidden" value="USD" />
<input name="item_name" type="hidden" value="Item Name" />
<input name="amount" type="hidden" value="5.00" />
<input alt="Make payments with PayPal - it's fast, free and secure!" border="0" name="submit" src="http://www.paypal.com/en_GB/i/btn/x-click-but01.gif" type="image" />
</form>