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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T14:36:14+00:00 2026-05-14T14:36:14+00:00

I need to know, where from is my script used (it’s for sale, and

  • 0

I need to know, where from is my script used (it’s for sale, and i don’t want any thiefs).
I want to write on my server in file, IP of user, domain where from script has been runned, date, etc. I’ve tried fopen, fwrite, but is_file_writable returned that it isn’t. File CHmods are 777, it parent catalog has too 777 chmods.

Now i’m trying something like that:

<?php
$file = 'http://www.misiur.com/security/seal.txt';

$data = date("Y-m-d H:i:s");
$ip = $_SERVER['REMOTE_ADDR'];
$svr = $_SERVER['SERVER_NAME'];
$str = "[$data] Loaded by $ip at $svr\r\n";

$current = file_get_contents($file);
$current .= $str;
file_put_contents($file, $current);
?>

However – nothing happens. What i’ve got to do?

  • 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-05-14T14:36:14+00:00Added an answer on May 14, 2026 at 2:36 pm

    The HTTP URL wrapper doesn’t allow writing.

    The best way to do this would be having a script on the remote server’s end (in your example, misiur.com:

    http://www.misiur.com/security/write_seal.php
    

    Send the contents of the new text file to that script using POST. The script would then file_put_contents() the received information locally.

    Here‘s a code snippet that allows you to send POST contents to remote scripts easily. You will need POST because GET is usually limited in size to 1-2 kilobytes.

    Of course, you would need to secure that script somehow to prevent malicious use, e.g. through a .htaccess based password protection or a passkey.

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

Sidebar

Related Questions

I need to compile my GWT 1.7 project from my ant build file....anyone know
I need to write a bash script to compile my java program. I know
I need to know how to exclude files/folders from php generated zip. Here is
I need to know how to prevent users from submit the form multiple times
I need to know the selected node's depth from a ASP.NET Treeview on client
I need to know what is the best practice for sending emails from my
I need to know how to get an array of bytes from a loaded
I need to know how I can replace the last s from a string
I need to know when my app is being uninstalled from the device where
I need to know, how to fetch class name from div instead of id

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.