Older Contests
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP ContestsOlder Contests

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old April 11th, 2003, 04:19 PM
Mad Max Mad Max is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Cottage Grove, Minnesota, USA
Posts: 2 Mad Max User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
[Trilite] For Beginners

OK ... here goes ...

I know I'm just a beginner, but this Trilite
thing fascinates me ... so bear with me.

So I create a program called trilite.php

If I want to test it out using your program
judge.php, I would need to duplicate it so
it would emulate there being two programs
against each other. Each program would be
in it's own directory. Each program is named
trilite.php

Now, how does judge.php work? Would I run
judge.php and it handles the initiation and
sending moves etc to each program?

Looking at judge.php, I'm just not sure how
it knows where the programs are located and
how it actually sends the variables.

I must be way lost on this ...

Help us PHP beginners on getting a grip on
this using this post. All other PHP experts
can use the other post for their questions.

Thanks


Reply With Quote
  #2  
Old April 11th, 2003, 05:00 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 25
RE: [Trilite] For Beginners

In the judge.php script there are two variables you can set:

$player[1] = 'http://localhost/etc/player1.php';
$player[2] = 'http://localhost/etc/player2.php';

This is where you set where the two scripts are.

The start judging, call the judging script with ?start=1 attached to it, like so:

http://yourserver.com/judge.php?start=1

Then, the judge.php script will produce a next link for you to click and step through each move...

Reply With Quote
  #3  
Old April 14th, 2003, 12:45 PM
Mad Max Mad Max is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Cottage Grove, Minnesota, USA
Posts: 2 Mad Max User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: [Trilite] For Beginners

I get the following failures on the line 80
with the implode().

My player1.php does get the variables and then
I echo my lastmove. Maybe that's where I'm
going wrong ... or, is it something with my
webhost that won't allow this to work.
(www.netfirms.com)

Warning: php_hostconnect: connect failed in /mnt/web_a/d13/s46/a000kg5t/www/judge.php on line 80

Warning: file("http://www.abcfireprotection.com/player1.php?start=1") - Bad file descriptor in /mnt/web_a/d13/s46/a000kg5t/www/judge.php on line 80

Warning: Bad arguments to implode() in /mnt/web_a/d13/s46/a000kg5t/www/judge.php on line 80

Reply With Quote
  #4  
Old April 14th, 2003, 04:19 PM
webhappy webhappy is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Silicon Valley, CA, USA
Posts: 203 webhappy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
RE: [Trilite] For Beginners

Probably safe-mode restriction; that or old version of PHP without http:// handler

I would recommend you install PHP on your home computer and turn off safe mode. Then you won't have to worry about that.

It does take some time to install apache, though... not super-ez, but maybe a couple hours total (mySQL is a breeze to install as a service on Windows and PHP has a windows binary installer)

Reply With Quote
  #5  
Old April 14th, 2003, 07:20 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 25
RE: [Trilite] For Beginners

Oh yes, that darn time consuming apache installation...

Honestly, after executing the installer and answering some questions in the setup wizard you have to manually copy two files and add 3 lines to your configuration file to get your PHP working. Which is very well documented in the readme of PHP.

I just cannot see the difficulties in installing apache on windows machines. Compared to the complications that occur after just altering the default installation path of mysql or the choice whether to use PHP as a SAPI module or CGI and following the according instructions the apache setup is absolutely painless and straightforward. Maybe the most demanding part of installing apache is finding the right file to download at apache headquarters.

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP ContestsOlder Contests > [Trilite] For Beginners


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump




 Free IT White Papers!
 
Create the Optimal Architecture for your Critical Applications
Warburton's the largest independently owned bakery in the UK faced a number of difficult challenges in providing the most robust yet efficient IT infrastructure for their organization's success. IBM's services combined with their xSeries servers created the perfect platform for their SAP environment with sufficient flexibility, and did so in very time effective fashion.

Request Your Free Technology Downloads!
 
Five Best Practices for Deploying a Successful Service-Oriented Architecture
This white paper describes the benefits you can expect with SOA, and how IBM can help take your business there.

Request Your Free Technology Downloads!
 
Gartner Magic Quadrant for Application Delivery Controllers
Gartner summarizes its view on Application Delivery Controllers, evaluates strengths and weaknesses of solutions, and provides Magic Quadrant reporting for a quick comparison across all vendors. Learn from Gartner how you can benefit from an all-in-one device like Citrix NetScaler that delivers the highest levels of availability, performance and security.

Request Your Free Technology Downloads!
 
Knowledge is Power
What you don't know can hurt you, and is likely costing you money and increasing your security risks during an era of scarce resources. This white paper proposes six key strategies that enterprise security managers can use to improve their network defense posture.

Request Your Free Technology Downloads!
 
Rationalizing the Multi-Tool Environment
The rationalized multi-tool approach is flexible, scalable and cost effective. It provides the necessary input to the IT service management business processes. It preserves prior investments in monitoring tools, empowers technologists to select the best tools with which to do their jobs, and enhances effective response to incidents.

Request Your Free Technology Downloads!
 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 




© 2003-2010 by Developer Shed. All rights reserved. DS Cluster 6 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek