Page 1 of 1

BR Web Scripting

Posted: Thu Oct 01, 2009 10:15 am
by James Lowman
I am trying to learn the BR Web Bridge that was taught at the last conference and having some troubles with the basics. I have included all the required programs (short cuts) in one file and tried to use the examples but keep getting errors. Such as not finding the correct page, or even not finding the site. Is there something I am missing?
Jamie

Posted: Thu Oct 01, 2009 10:45 am
by admin
You will need to have an HTTP server installed. I use WampServer for most development. You can get that here:

http://www.wampserver.com/en/

xampp is supposed to be good, also.

You will also need to add your own brserial.dat file.

If that is done, check to see if the web service is running by going to http://localhost/ in your browser and see if the default page comes up.

What OS are you installing on?

Posted: Thu Oct 01, 2009 10:46 am
by admin
Fixed that link

Posted: Thu Oct 01, 2009 10:52 am
by Chris Shields
That last two comments were mine. Forgot to use my personal account, again.

Posted: Thu Oct 01, 2009 11:04 am
by James Lowman
I am running Windows XP Pro, also using Apache for server software.

Posted: Thu Oct 01, 2009 11:27 am
by Chris Shields
It looks like I need to do some cleanup of the wiki documentation. I'll try to get in there and update soon.

Which links are you referring to?

Posted: Thu Oct 01, 2009 12:06 pm
by Chris Shields
You must also have Apache's PHP module installed.

Posted: Thu Oct 01, 2009 12:12 pm
by James Lowman
I have placed the PHP in the folder with Apache, BR Web Scripting Bridge, and Fileio. I have tried to use webcrawl.php, csscrawl.php. itemlist.php, and select.php with the same blank page results.

Posted: Thu Oct 01, 2009 12:47 pm
by Chris Shields
Download the latest bridge package here:

http://sourceforge.net/projects/brwebscriptingb/

Apache will be configured to use some directory as the 'root' of the web server. Open the 'httpd.conf' file and find the 'DocumentRoot' directive. This is where all website content should be placed. I would create a subdirectory for the samples. The default would look like this:

Code: Select all

DocumentRoot "C:/Program Files/wamp/www/"
Copy the entire 'examples' folder from the Bridge download into this folder.

Copy a valid serial file for br418 into the "/examples/br" folder.

You should now be able to view the demo in the browser at;

http://locahost/examples/

That should bring up the same demo page you see on the official site. Let me know if you made it this far.

Posted: Thu Oct 01, 2009 1:13 pm
by James Lowman
Thank you Chris, I now can see and run the examples. Let me look at them and if I having anymore questions I know where to seek help.
Jamie