update the comment style from '#' to '//' which is the "un-official"
standard PHP comment. Also wrap the code in <?php and ?> and finally add getbinarypageinvar.php to Makefile.am and README
This commit is contained in:
		@@ -1 +1,2 @@
 | 
				
			|||||||
EXTRA_DIST = README getpageinvar.php simpleget.php simplepost.php
 | 
					EXTRA_DIST = README getpageinvar.php getbinarypageinvar.php simpleget.php \
 | 
				
			||||||
 | 
					             simplepost.php
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,10 +1,12 @@
 | 
				
			|||||||
#
 | 
					<?php
 | 
				
			||||||
# The PHP curl module supports the received page to be returned in a variable
 | 
					//
 | 
				
			||||||
# if told.
 | 
					// The PHP curl module supports the received page to be returned in a variable
 | 
				
			||||||
#
 | 
					// if told.
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
$ch = curl_init();
 | 
					$ch = curl_init();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
curl_setopt($ch, CURLOPT_URL,"http://www.myurl.com/");
 | 
					curl_setopt($ch, CURLOPT_URL,"http://www.myurl.com/");
 | 
				
			||||||
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
 | 
					curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
 | 
				
			||||||
$result=curl_exec ($ch);
 | 
					$result=curl_exec ($ch);
 | 
				
			||||||
curl_close ($ch);
 | 
					curl_close ($ch);
 | 
				
			||||||
 | 
					?>
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user