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

  • Home
  • SEARCH
  • 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 8942995
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T11:39:56+00:00 2026-06-15T11:39:56+00:00

i have a script that allows me to port my in-game chat from Call

  • 0

i have a script that allows me to port my in-game chat from Call Of Duty 4 to a small window using php script live from my gaming server so my members and visitors can see in-game chat live from my site.

Only problem is my server is locked by ftp (tcadmin so no way of direct url for file) so i want a way to read the mp_games.log file in the directory

i think only way is to connect through ftp i guess but it’ll need to auto-login

the script is: ( this is only a part of the script where im having the problem )

    <?php
  $maxMessages = 40;
  $messageArr  = array();

  foreach(file('file:///home/serverexample/main/games_mp.log') AS $value) {
    if(strstr($value,'say;')) {
      $messageArr[]=$value;
    }
  }

what i need help with is to make the foreach go to the ftp in my site into a specific path where it can read the game_mp.log ..

i was thinking something similar to: ftp://user:pass@ftp.domain.com/serverexample/main/games_mp.log

Can you tell me how to modify the script in order to possibly download it onto a dir in local address but it’ll need to be constantly downloading which im afraid might cause lag.

The other way i was thinking of, if possible is to read directly the game_mp.log file

games_mp.log is readable as txt .. and is always being updated by server .. any way to make the foreach(file replaced by ftp so it takes directly the info from the ftp server ?

preferably being able to male the script read the file without having to download it ..

and if there is no other way but downloading it can you guide me through that as well ?

Many thanks hope i made myself clear of what i need

  • 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-15T11:39:57+00:00Added an answer on June 15, 2026 at 11:39 am

    You can login and download the file with the FTP functions of PHP, look at the list of manuals http://www.php.net/ftp

    An alternative (not recommend) is WGET: http://www.cyberciti.biz/faq/wget-command-with-username-password/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a script that opens a port and allows socket communication between multiple
I have a php script that allows users to upload multiple files to server
I have a PHP script that allows users to enter grades by selecting a
I have a PHP script that allows users to change the language that my
I have a script that allows me to dynamically create lists via jQuery. I'd
I have this ruby script that allows me to enter the name of a
I have a simple inno-setup script that allows my setup to install either the
I have a script in place and running that allows me to move an
I have a Bourne Shell script that has several functions in it, and allows
I have a script that allows users to 'save as' a pdf, this is

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.