The following warnings occurred:
Warning [2] Undefined array key "threadviews_countguests" - Line: 745 - File: showthread.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php 745 errorHandler->error_callback
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/inc/functions_post.php 830 postParser->parse_message
/showthread.php 916 build_postbit
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/inc/functions_post.php 861 postParser->parse_message
/showthread.php 916 build_postbit
Warning [2] Undefined property: MyLanguage::$thread_modes - Line: 46 - File: showthread.php(1650) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php(1650) : eval()'d code 46 errorHandler->error_callback
/showthread.php 1650 eval




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Question... PHP functions that'll work? - Solved
#8
AH ha! thanks!
PHP Code:
# This generates our PHP powered CSS files on demand
function generate_styles_css() {
    
$stylefile_style GSROOTPATH "theme/FoundationNation/style.php";
    
$stylefile_app GSROOTPATH "theme/FoundationNation/appstyle.php";
    if(
file_exists($stylefile_style) && file_exists($stylefile_app)){
           
ob_start();
        require(
$stylefile_style) &&
        require(
$stylefile_app);
        
$stylescss ob_get_clean();
        
file_put_contents(GSROOTPATH "theme/FoundationNation/style.css"$stylescssLOCK_EX);
    } else {
        
$error .= i18n_r($thisfile_found.'/STYLES_ERROR').' ';
    }
}; 
but I'm still doing something wrong...
now the buffer gets thrown to the browser instead of the file.. not to mention to buffer is wrong... it's not including the data I want.

Yea.. I need to do something about the globals....


Edit:
Here I'd like to show you where it's at now:
Click for fullsize:
[Image: hG8WTNtl.png]
Reply


Messages In This Thread
RE: Question... PHP functions that'll work? - by WebDevandPhoto - 2013-02-26, 09:02:04



Users browsing this thread: 3 Guest(s)