Fiji Web Design
Welcome, Guest
Please Login or Register.    Lost Password?
Installed mod_php but it can't run the functions (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Installed mod_php but it can't run the functions
#1251
Fronix (User)
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
Installed mod_php but it can't run the functions 1 Year, 5 Months ago Karma: 0  
Hi,

Well as the topic says i have just installed mod_php and i setup my module.

In my module i include two files and i include them like this:

require_once ( JPATH_BASE .DS.'serverbokning'.DS.'inc.php' );
require_once ( JPATH_BASE .DS.'serverbokning'.DS.'class.mysql.php' );
And in the inc.php i have diffrent functions, but when i try to use them they wont work. I tested to run the script by it self without joomla and then the functions work perfect. I get no errors no nothing but it wont work what is the problem?
 
Report to moderator   Logged Logged  
 
Last Edit: 2010/08/16 08:15 By Fronix.
  The administrator has disabled public write access.
#1252
admin (Admin)
Admin
Posts: 475
graph
User Online Now Click here to see the profile of this user
Re:Installed mod_php but it can't run the functions 1 Year, 5 Months ago Karma: 10  
If the files were not included, you should either see errors in the page or the PHP error logs and/or the server error logs if error reporting is on. You can turn it on at runtime with:

error_reporting(E_ALL);
You can choose to show errors on the page for debugging with:
ini_set('display_errors', 1);
You can test if a function exists after you include files with:
function_exists('function_name')
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop

Joomla Downloads

DownloadsDownload our free Joomla! Components, Modules and Plugins.