Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8643783
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T12:08:12+00:00 2026-06-12T12:08:12+00:00

Well, I have made a simple script that prints server info into a PNG

  • 0

Well, I have made a simple script that prints server info into a PNG Picture, It does work but there are some few problems.

I used a free script that gets variables from a source servers using php and then prints the output, I editied it so it will print into a picture, but somehow, It wont print the players and map values.

This is the config.php that the script uses.

<?php

$servers = array (array ('name' => '[TF2] gameTek Idle Trade Server #1 [NO]',
                         'ip' => '84.234.160.79',
                         'port' => 27015),
                         array ('name' => '[TF2] gameTek Achevments Idle Trade Server #2 [NO]',
                         'ip' => '84.234.160.79',
                         'port' => 27017), 

                         array ('name' => '[TF2] gameTek BOT Fun #3 [NO]',
                         'ip' => '84.234.160.79',
                         'port' => 27016),
                           array ('name' => '[TF2] gameTek Achevments Idle Trade Server #5 [DFW]',
                         'ip' => '50.56.179.18',
                         'port' => 27015)
                         );
/*
$cachelifetime = 30;
$cachefile = './cache/servers.html';
*/
$output = '
<p><a href="steam://connect/#ip#:#port#">
<img 
src="Generate.php?n=#name#&p=#players#/#maxplayers#&m=#map#" alt="" /></a></p>
';

?>

The output when it prints is this

http://teamgamers.net/GetInfoServer/Generate.php?n=[TF2]%20gameTek%20Idle%20Trade%20Server%20#1 [NO]&p=3/32&m=tek_idle_trade_v5

So, How can I make it so it works perfectly, and not like it is now, that it only prints the server name and not the rest?
I have tried figuring out a bit, but with no luck.

Generate.php

<?php
$Name = $_GET['n'];
$Players = $_GET['p'];
$Map = $_GET['m'];
$Image = @ImageCreateFromPNG("./Server.png");
$Cord = imagecolorallocate($Image, 255, 255, 255);
imagestring($Image,15,60,7,$Name,14);
imagestring($Image,15,62,37,$Players,14);
imagestring($Image,15,140,37,$Map,14);
header('Content-type: image/png');
imagepng($Image);
?>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T12:08:13+00:00Added an answer on June 12, 2026 at 12:08 pm

    Check out urlencode; basically, everything you put into the url needs to be passed into urlencode to make sure it doesn’t contain any meta characters.

    $servers = array (array ('name' => urlencode('[TF2] gameTek Idle Trade Server #1 [NO]'),
    // and so on...
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have made a simple server using TcpListener and it works great but now
I have an online text editor, very well made however it does not currently
Updated below: I have a script which has a function I made that calculates
Well i have a div tag that i show as a modal dialog this
well I have that problem, im using a lightbox srcipt and im opening an
well i have most probably an extremly stupid problem but could not figure it
I need your help. I have made a really clean and simple example to
I have made a simple program with : working with files(read write) end class
I have a table that lists people and all their contact info. I want
I have made a simple auction section on my site, and I would like

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.