Hello all.
I have some PHP scripts run by cron that email me all day for no good
reason. The scripts are outputting warnings like:
PHP Warning: Module 'mysql' already loaded in Unknown on line 0
PHP Warning: Module 'gd' already loaded in Unknown on line 0
PHP Warning: Module 'zlib' already loaded in Unknown on line 0
The environment is PHP 5.1.2 (cli) under FreeBSD.
The jobs are called like so:
0,15,30,45 * * * * /usr/local/bin/php -f /www/subsites/whatever/
htdocs/syncher.php
Though I have also tried this using the -q flag instaed of -f.
Any thoughts on suppressing this?
There doesn't seem to be a flag for it here: http://us2.php.net/manual/en/features.commandline.php
TIA for any help!!!
FvB 5 18902
On Tue, 08 Jan 2008 19:42:20 +0100, Franz Von Bayros
<kn**************@gmail.comwrote:
Hello all.
I have some PHP scripts run by cron that email me all day for no good
reason. The scripts are outputting warnings like:
PHP Warning: Module 'mysql' already loaded in Unknown on line 0
PHP Warning: Module 'gd' already loaded in Unknown on line 0
PHP Warning: Module 'zlib' already loaded in Unknown on line 0
The environment is PHP 5.1.2 (cli) under FreeBSD.
The jobs are called like so:
0,15,30,45 * * * * /usr/local/bin/php -f /www/subsites/whatever/
htdocs/syncher.php
Though I have also tried this using the -q flag instaed of -f.
Any thoughts on suppressing this?
There doesn't seem to be a flag for it here:
http://us2.php.net/manual/en/features.commandline.php
Why not redirect the errors to /dev/null ? Then again, it's an error which
just should be fixed.
--
Rik Wasmus
On Jan 8, 12:52 pm, "Rik Wasmus" <luiheidsgoe...@hotmail.comwrote:
On Tue, 08 Jan 2008 19:42:20 +0100, Franz Von Bayros
<knotinmybacky...@gmail.comwrote:
Hello all.
I have some PHP scripts run by cron that email me all day for no good
reason. The scripts are outputting warnings like:
PHP Warning: Module 'mysql' already loaded in Unknown on line 0
PHP Warning: Module 'gd' already loaded in Unknown on line 0
PHP Warning: Module 'zlib' already loaded in Unknown on line 0
The environment is PHP 5.1.2 (cli) under FreeBSD.
The jobs are called like so:
0,15,30,45 * * * * /usr/local/bin/php -f /www/subsites/whatever/
htdocs/syncher.php
Though I have also tried this using the -q flag instaed of -f.
Any thoughts on suppressing this?
There doesn't seem to be a flag for it here:
http://us2.php.net/manual/en/features.commandline.php
Why not redirect the errors to /dev/null ? Then again, it's an error which
just should be fixed.
--
Rik Wasmus
Exactly and if the environment changes and there are real errors
instead of this warning noise it would suck if I didn't know.
FvB
Franz Von Bayros wrote:
Hello all.
I have some PHP scripts run by cron that email me all day for no good
reason. The scripts are outputting warnings like:
PHP Warning: Module 'mysql' already loaded in Unknown on line 0
PHP Warning: Module 'gd' already loaded in Unknown on line 0
PHP Warning: Module 'zlib' already loaded in Unknown on line 0
The environment is PHP 5.1.2 (cli) under FreeBSD.
The jobs are called like so:
0,15,30,45 * * * * /usr/local/bin/php -f /www/subsites/whatever/
htdocs/syncher.php
Though I have also tried this using the -q flag instaed of -f.
Any thoughts on suppressing this?
There doesn't seem to be a flag for it here:
http://us2.php.net/manual/en/features.commandline.php
TIA for any help!!!
FvB
I would try to figure out why PHP is attempting to load those extensions
twice. It's always better to fix problems than to suppress their symptoms.
If your PHP setup is like mine (which it may well not be), you might
find that you have multiple php.(conf|ini) files - separate for apache
and cli - and a set of individual extension config files that are shared
between both, located in a php.d (or similar) directory. If the modules
are being loaded in the php.conf file as well as in an individual config
file under php.d, the problem could be corrected by removing the
`extension=XXX.so` lines from the main config file.
Jeremy
In our last episode,
<fd**********************************@41g2000hsy.g ooglegroups.com>,
the lovely and talented Franz Von Bayros
broadcast on comp.lang.php:
Hello all.
I have some PHP scripts run by cron that email me all day for no good
reason. The scripts are outputting warnings like:
PHP Warning: Module 'mysql' already loaded in Unknown on line 0
PHP Warning: Module 'gd' already loaded in Unknown on line 0
PHP Warning: Module 'zlib' already loaded in Unknown on line 0
Remove duplicate lines from extensions.ini (un*x) or whatever the equivalent
is in your OS.
--
Lars Eighner <http://larseighner.com/ us****@larseighner.com
Countdown: 377 days to go.
On Jan 8, 10:42 am, Franz Von Bayros <knotinmybacky...@gmail.com>
wrote:
>
I have some PHP scripts run by cron that email me all day for no good
reason. The scripts are outputting warnings like:
PHP Warning: Module 'mysql' already loaded in Unknown on line 0
PHP Warning: Module 'gd' already loaded in Unknown on line 0
PHP Warning: Module 'zlib' already loaded in Unknown on line 0
The environment is PHP 5.1.2 (cli) under FreeBSD.
The jobs are called like so:
0,15,30,45 * * * * /usr/local/bin/php -f /www/subsites/whatever/
htdocs/syncher.php
Though I have also tried this using the -q flag instaed of -f.
Any thoughts on suppressing this?
Check out php.ini and any other relevant initialization files you may
have. It looks like extensions are enabled twice.
Best regards,
NC This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Phil Powell |
last post by:
How do I suppress the lines PHP normally delivers to stdout (your browser)
if I am doing command-line PHP?
e.g.
stuff.php:
<? echo 'Hello World'; ?>
Calling it from a Red Hat 7.3 command-line terminal I would do the
|
by: Phil Powell |
last post by:
<?php
class FileRemoval {
var $fileNameArray, $isRemoved, $errorMsg = '';
function FileRemoval() {
$this->fileNameArray = array();
$this->isRemoved = 0;
}
|
by: Double Echo |
last post by:
Hi all,
I'm using PHP 4.4.2, and use PHP on both the command-line and the web.
I am running PHP on SuSE 10 Linux , in a VMware 5.5 workstation, using
Apache 2.0.55 , on my Dell laptop. Everything has been running flawlessly
without problems. Very amazing to use VMware, it has worked beautifully.
uname -a
|
by: Infiliset |
last post by:
Hi all! I'm trying to test some php script using the command line php.exe.
Is there any way to pass the $_POST variables? I know how to pass the $_GET
variables, but I don't know how to do this for the $_POST ones. Thank you
all!
Matthew
|
by: bruce_phipps |
last post by:
I have installed PHP4.3.10 Apache2 module (on Debian linux) and my PHP
scripts work fine accessed via a browser.
What extra do I need to install to get PHP to work from the command
line?
does not find a "php" command.
Thanks
| |
by: comp.lang.php |
last post by:
I am trying to simply pipe in 2 very small commands and not have to
create a PHP script to do this:
However, I do not have the "-r" option in PHP 4.3.9, and I would think
that I would, but why not? Here is all I have to work with:
|
by: comp.lang.php |
last post by:
I am using CLI PHP to run a PHP script, c:\wamp\php\php.exe, but
instead of executing my script, it's actually displaying the raw code
instead.
How can I run my code using CLI PHP? I installed WAMP5 on WinXP.
Thanx
Phil
|
by: BDthatsme |
last post by:
I can't get any of the various examples of keyboard input to work
using command line PHP.
I have Windows XP Pro SP 2 and PHP 5.1.6 (cli) (built: Aug 23 2006
16:35:53).
I can't find any info about why it doesn't work, or a way that does
work. Any suggestions?
examples of attempted variations: (and I've tried others)
|
by: Broun |
last post by:
I have a command line php (not mine, from cartocamp) which i can run on command line by issuing the following commands:
cd C:\ms4w\apps\cartoweb3
php cw3setup.php --clean
php cw3setup.php --install --config-from-file path_conf_file/conf_file.properties
What it does is clean the folder system and setup a map application again.
I wrote php...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it. ...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |