issue posting php code

Discussion in 'Bug Reports' started by mark edwards, Oct 27, 2014.

Thread Status:
This thread is more than 60 days old.
  1. mark edwards

    mark edwards Member

    hi - try UNCOMMENTING out the following php code block -- it give me an error:

    The following error occurred:
    Forbidden
    You don't have permission to access /forum/forums/bug-reports.11/create-thread/preview on this server.

    Apache Server at forum.interserver.net Port 80


    PHP:
        
    /*
                    $fh = fopen($mailFile, 'r');
                    while (!feof($fh))      {
                            $line = fgets($fh)      ;
                            if  ( preg_match('/^mydestination /', $line ))  {
    */
                                    
    $pieces explode(' '$line);

                                    
    $domainName trim(array_pop($pieces));
                                    break;
                            }
                   }

      
    thoughts? concerns?
    [/PHP]
     
  2. mark edwards

    mark edwards Member

    one liner example:

    PHP:
                   /*  $domainName    = preg_replace($pattern, '', exec('head -1 /etc/hosts')) ;
                  */
    maybe we cant post the "exec" function?
     
  3. Quags

    Quags Administrator Staff Member

    The rule blocking the post has been modified to allow it.
     
Thread Status:
This thread is more than 60 days old.

Share This Page