Jump to content

[SOLVED] Displaying image showing # of players on other sites


slyte33

Recommended Posts

Ok so I have a .php file located at:

www.foarpg.com/signature2.php

 

This file is a PNG image dipsplaying a banner showing the # of players I have on my game.

 

I simply want to use this banner for advertising purposes, but cannot figure out how I would show this image, while showing the number if players.

Obviously I cannot include a php file on a website, but instead can include a picture.

 

Does anyone know how I could make this a .png/jpg/gif/etc, but still update the players as I get them?

 

All help is much appreciated  :D

Link to comment
Share on other sites

You would want the url for the image to point back to your server and it doesn't have to be a url to an actual image. It can be a link to a PHP page that will return an image. So, the image could look something like this:

<img src="http://www.mysite.com/playerBanner.php">

 

Then you would want to create a script for that page which will take the template image and dynamically write the number of players on the image object and then serve the image to the requesting process.

 

Do a google search for "PHP add text to image" to get started

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.