Results 1 to 2 of 2

Thread: Weird

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jul 2005
    Posts
    16

    Weird

    I have a php file to process some info, and i need it to enter some PHP code into another php file. So say the processing php file came up with $y = "2"; I need to echo this into a new php file

    <?
    Some php code here that will be in the new file. Now I need to somehow get the data of $y in this file....
    ?>



    If that makes sense...

    And I know you can put a \ before a $ to make it literaly enter that...but is there an easier way to enter mass amounts of code? And Still have SOME variables show :x
    Last edited by McJedi; Jul 14th, 2005 at 09:46 PM.

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Weird

    I think you'd have to use the file handling functions in PHP to open the PHP file, write to it and then close it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width