how to setup Steam Community in php

28 views
Skip to first unread message

Suraj Sah

unread,
Feb 8, 2016, 1:14:38 AM2/8/16
to Steam Condenser
hi, 
i downloaded steam-condenser-php and i uploaded the content on my ftp.
As it said in installation part of "http://koraktor.de/steam-condenser/" I opened composer.json and put 
{ "require": { "koraktor/steam-condenser": "~1.3.10" } }

And after, i ceated a example.php, in the root of steam-condenser-php-master/ folder, with this code:

$server = new GoldSrcServer('178.33.77.156', 27017);
$server
->initialize();
echo $server
->getPlayers();



but when i go the example.php page, i have a blank page and nothing show any error or message

I searched everywhere but i don't see another instructions to use this tool.

Sebastian Staudt

unread,
Feb 8, 2016, 1:19:45 AM2/8/16
to Steam Condenser
Hi,

You require the stable version (1.3.10) in your composer.json file, but your file is in steam-condenser-php-master/?
I'd recommend to check your project setup and maybe read this: https://getcomposer.org/doc/01-basic-usage.md
Additionally, your project's files do not belong into Steam Condenser's directory (or any library's directory for that matter).

Your code looks fine, but you might need some require statements.
And a last tip: Is your question really a GoldSrc server (old HL1 engine)? If not, please use SourceServer.

PS: Please do not post multiple (near) identical messages to this list.

Best regards,
    Sebastian

--
You received this message because you are subscribed to the Google Groups "Steam Condenser" group.
To unsubscribe from this group and stop receiving emails from it, send an email to steam-condens...@googlegroups.com.
To post to this group, send email to steam-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/steam-condenser/16db4e11-2691-4a32-82bc-4dc1814269a8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages