BR Web Scripting

More advanced topics discussed.

Moderators: Susan Smith, admin, Gabriel

Post Reply
James Lowman

BR Web Scripting

Post 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
admin
Site Admin
Posts: 14
Joined: Tue Jul 08, 2008 11:28 pm

Post 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?
admin
Site Admin
Posts: 14
Joined: Tue Jul 08, 2008 11:28 pm

Post by admin »

Fixed that link
Chris Shields
Posts: 22
Joined: Thu Aug 06, 2009 12:19 am

Post by Chris Shields »

That last two comments were mine. Forgot to use my personal account, again.
James Lowman

Post by James Lowman »

I am running Windows XP Pro, also using Apache for server software.
Chris Shields
Posts: 22
Joined: Thu Aug 06, 2009 12:19 am

Post 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?
Chris Shields
Posts: 22
Joined: Thu Aug 06, 2009 12:19 am

Post by Chris Shields »

You must also have Apache's PHP module installed.
James Lowman

Post 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.
Chris Shields
Posts: 22
Joined: Thu Aug 06, 2009 12:19 am

Post 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.
James Lowman

Post 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
Post Reply