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 8149859
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T14:56:09+00:00 2026-06-06T14:56:09+00:00

This is the same project as the other question I had. I’m wondering how

  • 0

This is the same project as the other question I had.

I’m wondering how to use a .php to enter data into a CERTAIN LOCATION to another php file, so think of it as remotely adding in data.

I’ve Googled, and haven’t found much, and I’m sure I got the php editing down, I’m just clueless on how I would enter the data into a specific point.

Any help would be appreciated.

<?php

// Parameters (Leave this Alone)
 $Message = $_GET["message"];
 $Username = htmlspecialchars($_GET["username"]);
 $time = ($_GET["time"]);

// User Banning
$data = file_get_contents('Banned.txt');
if(strpos($data, $Username) !== FALSE)
{
    die();
}
else
   {
// --------------- Staff Members ---------------- //
// Admins //
  If ($Username=="!divider!user")  $Username="!divider![Admin] user"; 
   If ($Username=="!divider!user2")  $Username="!divider![Admin] user2"; 


// File Writing (Leave this Alone) 
 $File = "Chat.txt"; 
 $Handle = fopen($File, "a"); 
 fwrite($Handle, $Username);
 fwrite($Handle, ": ");
 fwrite($Handle, $Message);
   fwrite($Handle, " -:-:- ");
 fwrite($Handle, $time);
 fwrite($Handle, "\r\n");
 print "Data Written"; 
 fclose($Handle); 
 }
 ?> 

I’m trying to use another php file, to add staff under the staff list.

So in (edit.php) have a textarea input, and whatever I submit, it enters the submitted data under:

    //-----Staff Members-----//

the client I will be using will fill in everything in front and behind of the username for php.

  • 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-06T14:56:10+00:00Added an answer on June 6, 2026 at 2:56 pm

    Your question is not clear, but it sounds like you want to add another php file somewhere in your code. You could user require, require_once or include to handle this:

    require_once('file-name-here.php');
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've asked this same question with Python. Now I like to know if this
Seems like just yesterday I had this same problem with Play! v1. After trying
I thought I would rewrite this question (same iteration). The original was how to
This is driving me nuts. I believe I asked this exact same question, but
This may be a duplicate of some other question, but it's hard to search
Sorry if this is a stupid noob question. I'm doing a very small project
This is a moot question as I'm not on this project any more, but
This is going to be quite a vague question but I am wondering how
This is not the same situation as the multitude of other similar questions here.
This one boggles my mind. I've used this same script (different targets of course)

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.