API and HTML Examples

For discussion of the Poker Mavens server module and other administration topics

Re: API and HTML Examples

Postby betmylines » Mon Nov 02, 2009 8:40 am

Hi..

Just wanted to know where in the 1&1 windows VPS Server do you install all these scripts and the http:// path to the files.. I'm completely new to using a windows server... I've been using Linux server... so please help me out. Clear and Detailed instructions will be greatly appreciated....Thanks in advanced...



- Peter
betmylines
 
Posts: 20
Joined: Tue Sep 29, 2009 9:44 am

Re: API and HTML Examples

Postby Kent Briggs » Mon Nov 02, 2009 10:16 am

betmylines wrote: Just wanted to know where in the 1&1 windows VPS Server do you install all these scripts and the http:// path to the files.. I'm completely new to using a windows server... I've been using Linux server... so please help me out. Clear and Detailed instructions will be greatly appreciated....Thanks in advanced...


The API scripts don't need to be on the same machine as the game server. If you already have a Linux server running with PHP or other scripting system, you can run them there. And that can be on a cheap shared hosting plan since they all offer PHP/MySQL features.

Otherwise, you'll need to manually install PHP on your Windows VPS and make it work with the IIS web server that is running there by default. Or write your scripts in ASP.NET. Or jettison the IIS web server and install Apache and PHP. You can see how the first option is the easiest.
Kent Briggs - [email protected]
Briggs Softworks - http://www.briggsoft.com
Kent Briggs
Site Admin
 
Posts: 3830
Joined: Wed Mar 19, 2008 8:47 pm

Re: API and HTML Examples

Postby social » Thu Dec 17, 2009 12:17 pm

Kent Briggs wrote: Or jettison the IIS web server and install Apache and PHP. You can see how the first option is the easiest.


I am new to understanding servers. I am used to Linux servers, and know nothing beyond c-Panel depth.
I do not understand the comment about "jettison the IIS server and install Apache and PHP.
I assume that Apache and PHP are found on Linux servers normally, so you are saying he could install those so that he could use them to run the PHP scripts he normally uses.
"jettison" means to get rid of IIS server...but I thought that was what makes it a Windows server, and that your script will not run without it?
social
 
Posts: 201
Joined: Fri Nov 20, 2009 12:23 am

Re: API and HTML Examples

Postby Kent Briggs » Thu Dec 17, 2009 1:08 pm

social wrote:I do not understand the comment about "jettison the IIS server and install Apache and PHP.
I assume that Apache and PHP are found on Linux servers normally, so you are saying he could install those so that he could use them to run the PHP scripts he normally uses.
"jettison" means to get rid of IIS server...but I thought that was what makes it a Windows server, and that your script will not run without it?


The Windows operating system is what makes a server "Windows", typically Windows Server 2003 or Windows Server 2008 for VPS and dedicated machines. IIS is Microsoft's web server software and only runs under Windows and is usually pre-installed on Windows servers. Apache is also web server software but it comes in both Linux and Windows versions (and several other operating systems).

Poker Mavens doesn't use IIS or Apache because it acts as its own crude web server with just enough functionality to serve the Flash SWF client and misc media files. It does not integrate scripting systems like PHP or ASP.Net, however, which is why those need to be installed somewhere else if you want to use the Poker Mavens API. The API is accessed via standard HTTP calls so the scripting can be installed on the other side of the world, if needed.
Kent Briggs - [email protected]
Briggs Softworks - http://www.briggsoft.com
Kent Briggs
Site Admin
 
Posts: 3830
Joined: Wed Mar 19, 2008 8:47 pm

Re: API and HTML Examples

Postby lildamien09 » Tue Jan 12, 2010 7:24 am

Hey kent.. im running into a problem you might be able to help me with.. i have a dedicated server @ a colocation center i set up.. initially i had a webserver on it which i used for the api scripts and what not.. everything worked great.. i have my own web hosting reseller account now and i moved everything to it.. the problem im having is that it continues to give me an error saying connection failed.. curl is on and enabled..im not getting any undefined function errors or anything.. what do you think the problem might be..the server running poker mavens doesnt have a firewall or security programs running being its the only thing on it :/ .. here are 2 links..one is the original where the file was and the other is my resller account..

http://tnt-squadfiles.com/LEBCL.php - ORIGINAL
http://tnt-squadhosting.com/LEBCL.php - NEW LOCATION
lildamien09
 
Posts: 71
Joined: Sun Sep 13, 2009 7:08 pm
Location: TX

Re: API and HTML Examples

Postby Kent Briggs » Tue Jan 12, 2010 10:20 am

lildamien09 wrote:Hey kent.. im running into a problem you might be able to help me with.. i have a dedicated server @ a colocation center i set up.. initially i had a webserver on it which i used for the api scripts and what not.. everything worked great.. i have my own web hosting reseller account now and i moved everything to it.. the problem im having is that it continues to give me an error saying connection failed.. curl is on and enabled..im not getting any undefined function errors or anything.. what do you think the problem might be..the server running poker mavens doesnt have a firewall or security programs running being its the only thing on it :/ .. here are 2 links..one is the original where the file was and the other is my resller account..

http://tnt-squadfiles.com/LEBCL.php - ORIGINAL
http://tnt-squadhosting.com/LEBCL.php - NEW LOCATION


Which system is actually hosting your poker server? Are both scripts connecting to the same poker server?
Kent Briggs - [email protected]
Briggs Softworks - http://www.briggsoft.com
Kent Briggs
Site Admin
 
Posts: 3830
Joined: Wed Mar 19, 2008 8:47 pm

Re: API and HTML Examples

Postby lildamien09 » Tue Jan 12, 2010 10:25 am

the poker server itself is here in my home..the original script is on a web server i made which is located in a colocation center in dallas, tx..i copied all of my scripts and site over to my new web hosting server.. Yes both are connecting to the same server. all i did was copy it over to the new webserver.
lildamien09
 
Posts: 71
Joined: Sun Sep 13, 2009 7:08 pm
Location: TX

Re: API and HTML Examples

Postby Kent Briggs » Tue Jan 12, 2010 11:24 am

lildamien09 wrote:the poker server itself is here in my home..the original script is on a web server i made which is located in a colocation center in dallas, tx..i copied all of my scripts and site over to my new web hosting server.. Yes both are connecting to the same server. all i did was copy it over to the new webserver.


I wonder if there could be something in your PHP configuration on the new site that is blocking it from connecting to outside servers?
Kent Briggs - [email protected]
Briggs Softworks - http://www.briggsoft.com
Kent Briggs
Site Admin
 
Posts: 3830
Joined: Wed Mar 19, 2008 8:47 pm

Re: API and HTML Examples

Postby lildamien09 » Tue Jan 12, 2010 11:32 am

Thats what i told the techs on my reseller account.. i think they have some sort of server firewall thats blocking port connections or something.. idont know.. i gave and told them everything i know. still havent herd back from them though.. :S.. i should tell them to just give me remote access to the file and let me fix it myself :)
lildamien09
 
Posts: 71
Joined: Sun Sep 13, 2009 7:08 pm
Location: TX

Re: API and HTML Examples

Postby Kent Briggs » Tue Jan 12, 2010 11:53 am

lildamien09 wrote: i think they have some sort of server firewall thats blocking port connections or something.


That could be it, too. Perhaps it's only allowing port 80. You could setup a PHP test to try and fetch an external web page with the curl functions and see if that works.
Kent Briggs - [email protected]
Briggs Softworks - http://www.briggsoft.com
Kent Briggs
Site Admin
 
Posts: 3830
Joined: Wed Mar 19, 2008 8:47 pm

PreviousNext

Return to Site Administration

Who is online

Users browsing this forum: No registered users and 3 guests

cron