Home arrow PHP arrow Building A Document Request Protocol Part 2/2
PHP

Building A Document Request Protocol Part 2/2


In this article, Mitchell shows us how to implement our custom SARP protocol that we created yesterday. He uses PHP and its various socket functions to send SARP commands to our SARP server to both retrieve articles and add new articles to the servers Access database.

Author Info:
By: Mitchell Harper
Rating: 5 stars5 stars5 stars5 stars5 stars / 2
February 24, 2002
TABLE OF CONTENTS:
  1. · Building A Document Request Protocol Part 2/2
  2. · Connecting to our SARP server
  3. · Logging in
  4. · Using SARP commands
  5. · Adding new content using SARP commands
  6. · Conclusion

print this article
SEARCH DEVARTICLES

Building A Document Request Protocol Part 2/2
(Page 1 of 6 )

In part one of this article I showed you how to create a Visual Basic application that uses Winsock to accept connection requests from a client, work with a custom protocol (which we called SARP – Simple Article Request Protocol), and relay messages back to the client.

In this, the final article in the series, we’re going to look at how we can invoke SARP from a PHP script, using PHP's range of socket functions. We will first look at calling all of the commands that compose our custom SARP protocol, and then we will create a script that will retrieve content from the SARP server based on a specific set of criteria. We will also add the ability to add new content to the SARP servers Access database remotely.

To test our SARP server, you should have either Apache/IIS installed on a Linux, Unix, or Windows NT/2000/XP machine. In this article I will assume that you have the app we created in part one of this series installed and running on your local machine. I will also assume that you will be saving and running the PHP scripts on your local machine.
blog comments powered by Disqus
PHP ARTICLES

- Removing Singletons in PHP
- Singletons in PHP
- Implement Facebook Javascript SDK with PHP
- Making Usage Statistics in PHP
- Installing PHP under Windows: Further Config...
- File Version Management in PHP
- Statistical View of Data in a Clustered Bar ...
- Creating a Multi-File Upload Script in PHP
- Executing Microsoft SQL Server Stored Proced...
- Code 10x More Efficiently Using Data Access ...
- A Few Tips for Speeding Up PHP Code
- The Modular Web Page
- Quick E-Commerce with PHP and PayPal
- Regression Testing With JMeter
- Building an Iterator with PHP

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 

Developer Shed Affiliates

 




© 2003-2017 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials