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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T15:55:16+00:00 2026-06-18T15:55:16+00:00

I am certainly not an expert in PHP, and have surfed SO thoroughly but

  • 0

I am certainly not an expert in PHP, and have surfed SO thoroughly but didn’t find anything related to this. Might mean that the question is stupid, but I was trying to create a new php file on sign up (so to provide rss feeds for each person who signs up) and I’ve managed so far to create a beatifully empty file. Here’s the code of a test file I have written in the end, with GET function:

$USR = $_GET['usr'];
$FILE=$USR.'.rss.php';
$file1 = 'rssdemo.php'; 
$handle = fopen($file1, 'a'); 
$contents = fread($handle, filesize($file1)); 
fclose($handle); 
        $file2 =$FILE; 
        $handle = fopen($file2, 'wb'); 
        fwrite($handle, $contents);  //this should write something but does nothing   
        fclose($handle); 

As you can see, the file I am trying to copy from is a PHP file (that should in its turn generate the XML file).
Is there a way to create a new php file, open an old one, copy the content of it and paste it into the newly created file? Or maybe fwrite () can be used for text only? Some help please! Thanks in advance.

  • 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-18T15:55:17+00:00Added an answer on June 18, 2026 at 3:55 pm

    You should simply have one url per user, like this: http://www.example.com/index.php/greg0ire/rss

    Use a rewrite rule so that index.php gets called, and analyse the “greg0ire/rss” part to route to an Rss action that has a user parameter, and pass it the “greg0ire” as an argument.

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

Sidebar

Related Questions

I hope this is not a dumb question but I really can't find anything
Well, this certainly might have not been asked before. I have a method that
I am not certain about this and searching a bit hasn't turned up anything
I have a class written in php that is supposed to find the labels
Why is this not possible? int c = 0; ++c++; Or in PHP: $c
I can always test this, but I wanted an official answer from a PHP
Very strange, not sure if others have experienced this... Exporting with Flash CS5.5 to
I am used to coding in PHP but I am not really proficient with
I'm not certain how to explain this with the correct terms so maybe an
I apologize if this has already been asked - I'm not certain of the

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.