You are here:  » openBase Restriction


openBase Restriction

Submitted by crounauer on Thu, 2006-02-09 14:08 in

Hi David,

Just wondering if you know a way around the open base restriction.

I am using the main search at pricecompare.gynogapod.co.uk, bu also want to use it within the main store at www.gynogapod.co.uk; when I try this it gives me an openbase restriction.

Thanks,
Simon

Submitted by support on Thu, 2006-02-09 14:32

Hi Simon,

This is a security setting enabled by your ISP to prevent PHP from being able to access files outside of your virtual host environment so there is no way to get around it. Is your objective to show the search form on your main website at www.gynogapod.co.uk, and have it submit the query to the search script on pricecompare.gynogapod.co.uk?

If so, the easiest way would be to copy searchform.php to your main website and include it from there. You will have to edit the action attribute of the form tag so that it will submit to right place; so it should look something like this:

<?php
  
print "<form name='search' action='http://pricecompare.gynogapod.co.uk/search.php'>";
  print 
"<input type='text' name='q' size='35' value='".(isset($q)?$q:"")."' /> ";
  print 
"<input type='submit' value='Search' /> ";
  print 
"</form>";
?>

Submitted by crounauer on Thu, 2006-02-09 14:38

Hi David,

Thanks again, ill give it a try and let you know.

Regards,
Simon

Computer Hardware

Submitted by crounauer on Thu, 2006-02-09 15:35

Hi David,

Works a treat, thanks again for your help.

I will be placing links to Price Tapestry on all my site for providing such a great script and fanaticle support - thanks!

Simon

Computer Hardware