Government Security
Network Security Resources

Jump to content


Php Script Not Interprated

- - - - - php
  • Please log in to reply
1 reply to this topic

#1 Nor0



  • Members
  • 1 posts

Posted 19 September 2009 - 03:25 AM

Hello community ;-)
I've got a little Problem: I'm trying to run a PHP-Script over GLPI-Software. GLPI allows to upload documents; I've added permission to upload PHP-Files and set Mime-Type to "plain/text". The uploaded document - in my case the php-file named '_test.php' - is interprated by the itnernal file of glpi named 'document.send' resulting in displaying the whole source-code [e.g. <?php echo('test#.php') ?> instead of test] AM I using the wrong Mime-Type? 'application/x-httpd-php' plet's download the file. Direct fileopening isn't allowed because of htaccess destrictions [deny from all] :/ Is there a way to get the file interprated instead of only being displayed like a txt-file?

Thank's in advance & Kind regards

#2 Hamboldt



  • Members
  • 3 posts

Posted 01 October 2010 - 10:22 AM

Do you need to set this mime application/x-httpd-php, and you need to se the chmod permissions to this file/folder in te panel of the server or directly by the server. And verify if you PHP are installed ok.

Also tagged with one or more of these keywords: php