ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am currently working on a creating a php server to recive values from a vb6 client. It has been suggested to me that I set up a web server......request the url from my vb6 client......pass the values to a php script.....and parse the values out. I am curious what the steps are to create this web server and declare the url that these values will be passed to. I am looking for specific examples or source code that may help me. I am brand new to php coding and this type of programming but am willing to learn. any help would be greatly appreciate. Please include specific code if at all possible.
How do you set up that url and where do you set it up at? Is it set up in vb6 or php. Also how and where do you code the php on a knoppix linux system. I tried to code in the text editor and it is giving me an error on the first line (ie. <?) saying no such file or directory exists. My string that is passed is four variables separated by commas (ex. 1234, 12.44, 56.99, 0.876). Could you explain more about the url in detail as to how exactly to set it up and where also what my host is.........Mygreat variable would be and any value would be.
./PHPServer2.php: line 1: ? No such file or directory
./PHPServer2.php: line 2: Syntax error near unexpected token (
./PHPServer2.php: line 2: '$vars = explode(", ", urldecode($_SERVER["QUERY_STRING"]));
What would be causing this? I am trying to run it from the command line. I even tried to add
#!/usr/bin/php at the beginning of the program but it still didnt work. Any ideas on what is going on here?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.