• 8

A PHP Error was encountered

Severity: Notice

Message: Undefined index: userid

Filename: views/question.php

Line Number: 191


File: /home/prodcxja/public_html/questions/application/views/question.php
Line: 191
Function: _error_handler

File: /home/prodcxja/public_html/questions/application/controllers/Questions.php
Line: 433
Function: view

File: /home/prodcxja/public_html/questions/index.php
Line: 315
Function: require_once

Just as additional information:

There is a php.ini directive called disable_functions. Functions added to this list will be disabled by PHP and when you try to execute those functions, you get this error. As mentioned, in all probability your hosting provider has added exec to the disabled list. This is a common practice in shared hosting. You will need a dedicated server if you really want to run exec (or some hosting provider who provides pseudo-exec functionality). It is a bad idea to trust a shared hosting provider who allows you to run exec unrestrained.

  • 13
Reply Report
    • Others execution are working... Only in this code, execution does not working... Sorry for my bad english :)
      • 2
    • Like I said, it is because this function has been disabled by the hosting provider, and in shared hosting domain it will be difficult to find a provider who allows exec. If you find someone, be very cautious, because it will not be a really secure or safe server IMHO..
      • 2
    • @raidenace why does allowing exec on shared hosting be considered not really secure? Could you elaborate more or cite your source please?

Those errors mean just what they say.

Fatal error: Call to undefined function execute() 

You are calling a function that doesn't exist.

Warning: exec() has been disabled for security reasons

Your web host has disabled the exec() method, you won't be able to run background scripts (like it appears you are attempting to do). You'll need to find another way to accomplish your goal, or find another web host.

  • 3
Reply Report

Warm tip !!!

This article is reproduced from Stack Exchange / Stack Overflow, please click

Trending Tags

Related Questions