<?php
	$to_root="./";
?>

<html>
	<head>
		<link type="text/css" rel="stylesheet" href="<?php echo $to_root;?>css/ipage_curl_test.css" />
	</head>
	
	<body>
		seems that ipage has
		<br />
		<b>allow_url_fopen=Off</b>
		<br />
		<br />
		by default, so change it in the php.ini on the ipage shared server control panel to
		<br />
		<b>allow_url_fopen=On</b>
		<hr />
		
		<div class='story_half'><img src="ipage_curl_step1.jpg" /></div>
		<div class='story_half'><img src="ipage_curl_step2.jpg" /></div>
		<div class='clearBoth'></div>
		
		<div class='story_half'><img src="ipage_curl_step3.jpg" /></div>
		<div class='story_half'><img src="ipage_curl_step4.jpg" /></div>
		<div class='clearBoth'></div>
		
		<?php
			/*
			test_board_index.php v1.0 by kristoffe brodeur. ©2021 All Rights Reserved.
			
			01-11-2021
				simple program to scrape the board indexes
				of the main area of a phpbb with [Lucid Lime] theme
				
			seems that ipage has
				allow_url_fopen=Off
				
			by default, so change it in the php.ini on the ipage shared server control panel to
				allow_url_fopen=On
			
			*/
			echo "testing curl on ipage<br />";
			$base="http://www.supercala.net/phpBB3/";//allows us to use the scraped data to make links to the forum page areas
			$url=$base."index.php";
			$html=file_get_contents($url);
			echo "scraping away v1.0 by kristoffe<hr />";
			
			$phpbbMain_doc=new DomDocument();
			
			libxml_use_internal_errors(TRUE);//disable libxml errors
			$bbStr="";
			
			//
			if(!empty($html))
				{
				echo "cool we got the website as data<hr />";
				}
		?>

	</body>
</html>