www.webdeveloper.com
Results 1 to 15 of 23

Thread: Don't laugh! But this may be a stupid wordpress/php question...

Threaded View

  1. #16
    Join Date
    Feb 2010
    Posts
    86
    Ok, I cringe saying this but...

    Here is what I got for the first option which is not working. It actually seemed like it worked the first time and then stopped:

    PHP Code:
    <? ob_start(); ?>
    This is my test page content.
    <?   
        $page_content 
    ob_get_flush();   
        
    $ipb_txt_file "/myabosolutefilepath.com/footer-export-ipb.txt"
       
    if (!
    is_file($ipb_txt_file)) {     
    file_put_contents(/myabosolutefilepath.com/footer-export-ipb.txt", $page_content);  
    ?>


    For the 2nd option

    PHP Code:
    <? ob_start(); ?>
    This is my test page content.
    <?   
        $page_content 
    ob_get_flush();   
        
    $ipb_txt_file "/myabosolutefilepath.com/footer-export-ipb.txt"
       
    if (isset(
    $_GET['renew_ipb'])) {     
    file_put_contents(/myabosolutefilepath.com/footer-export-ipb.txt", $page_content);  
    ?>
    Then after changing the file I typed the url in my browser http://mysite.com/?renew_ipb which did nothing

    I'm sure I look like a real idiot here but I would appreciate any further help in what I'm doing wrong. Thank you so much!
    Last edited by blue_vision; 07-17-2013 at 09:51 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles