Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

PrintError() Linux

Posted on 2006-07-02
6
Medium Priority
?
450 Views
Last Modified: 2007-12-19
PHP Fatal error:  Call to undefined function printError() in /var/www/html/mailgate/mailGate.php on line 87

anyone know what this means and how to fix it
0
Comment
Question by:arahming
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
6 Comments
 
LVL 22

Accepted Solution

by:
pjedmond earned 2000 total points
ID: 17026774
I'll make this a little easier for everyone else:

     77 /* *********** Setup *********** */
     78 $chdir = dirname(__FILE__);
     79 chdir("$chdir");
     80
     81 $server_settings_path = "../configuration/server_settings.php";
     82 $website_settings_path = "../configuration/website_settings.php";
     83
     84 if (file_exists($server_settings_path)) {
     85     $ooz_server_settings = parse_ini_file($server_settings_path);
     86 } else {
     87     printError("The server_settings.php file was not found !");
     88     exit;
     89 }


The problem is the method that you are using to call this script. Are you doing it via POP (cron) or via the sendmail process?
0
 
LVL 22

Expert Comment

by:pjedmond
ID: 17026891
I suspect that you are using the sendmail forwarding process?

Muxh easier to have a seperate POP3 account configured for this. Then configure:

http://192.168.1.100/ooz/admin/control.php?t=settings

for POP3 settings.

You then need to add a crontab:
------8X---------------
0,10,20,30,40,50 * * * * /var/www/html/mailgate/mailGate.php
------8X---------------

This will then check every 10 minutes for any emails, and automatically download and process them.

(   (()
(`-' _\
 ''  ''
0
 
LVL 22

Expert Comment

by:pjedmond
ID: 17027021
You can "|" it directly via senmail aliases, but there are so many potential configuration issues, that I definitely consider the above to be the simplest for you.

(   (()
(`-' _\
 ''  ''
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 1

Author Comment

by:arahming
ID: 17028417
Dude i just went ahead and rebuilt the box was going to finish at girls house but it keeps turning black say out of frequency
0
 
LVL 22

Expert Comment

by:pjedmond
ID: 17120493
>keeps turning black say out of frequency

This means that you /etc/X11/xorg.conf or XF86Config file is incorrectly configured.

Run in single or console mode:

/usr/X11R6/bin/xf86config

and answer the Qs - Err on the 'conservative side'. Once you have a working X, then you can use the graphical tools availavle.

(   (()
(`-' _\
 ''  ''

0
 
LVL 22

Expert Comment

by:pjedmond
ID: 17120498
http://www.linuxmigration.com/quickref/window/config.html

may help you.

(   (()
(`-' _\
 ''  ''

0

Featured Post

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question