Announcement

Collapse
No announcement yet.

Creating a text file on my server from a script in the CP.. HOW?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Creating a text file on my server from a script in the CP.. HOW?

    I want to be able to create a text file on the server from a PHP script running in the CP.

    Basically, I want to be able to add a link to the CP , enter some values into some input boxes on the screen and have it write the ouput to a text file.

    Can anyone direct me on how to do that or where I can look for more info or something someone else has done.

    Here is a sample of the data I want to write.

    PHP Code:
    // Display top banner block
        
    $bblock 1// 0 = don't use 1 = use

    // Display indexU Hot Links Block
        
    $indexUB 0// 0 = don't use 1 = use - ignor if you don't have IndexU

    // Display frontpage smallcalendar
        
    $smallcalendar 1// 0 = don't use 1 = use
            
    $showevents 1;    // 0 = don't use 1 = use
            
    $showbirthdays =1;  // 0 = don't use 1 = use

    // Display frontpage simplemenu
        
    $simplemenu 1;    // 0 = don't use 1 = use

    // Display frontpage activetopics
        
    $activetopics 1;        // 0 = don't use 1 = use
            
    $showtopicdesc 1;       // 0 = don't use 1 = show the activetopics descreption
            
    $atcenterpage 1;        // 0 = column display 1 =  display centerpage
           
    $num_active 10;         // Number of active topics to list
        
    $num_topicchars 100;   // Number of active topic characters to display
            
    $ftitle1en 25;          // Length of Forum Title
            
    $ttitle1en 25;          // Length of Thread Title
            
    $vbp_atbc1 "{firstaltcolor}";  // first alt color
            
    $vbp_atbc2 "{secondaltcolor}"// second alt color
            
    $incatforums ='5,6,7,8,9,10,11'// if you want to include forum's, put ID's here. NO SPACES 
    Thanks,

    Josh

Related Topics

Collapse

Working...
X