473,386 Members | 1,668 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

PHP code executed though CLI causing warnings.

Hellow,

I am facing a serous problem when i run the php file from command line.The problem is ..

Expand|Select|Wrap|Line Numbers
  1. <br />
  2. <b>Warning</b>:  Module 'bcmath' already loaded in <b>Unknown</b> on line <b>0</b><br />
  3. <br />
  4. <b>Warning</b>:  Module 'curl' already loaded in <b>Unknown</b> on line <b>0</b><br />
  5. <br />
  6. <b>Warning</b>:  Module 'exif' already loaded in <b>Unknown</b> on line <b>0</b><br />
  7. <br />
  8. <b>Warning</b>:  Module 'gd' already loaded in <b>Unknown</b> on line <b>0</b><br />
  9. <br />
  10. <b>Warning</b>:  Module 'mbstring' already loaded in <b>Unknown</b> on line <b>0</b><br />
  11. <br />
  12. <b>Warning</b>:  Module 'mcrypt' already loaded in <b>Unknown</b> on line <b>0</b><br />
  13. <br />
  14. <b>Warning</b>:  Module 'mhash' already loaded in <b>Unknown</b> on line <b>0</b><br />
  15. <br />
  16. <b>Warning</b>:  Module 'mysqli' already loaded in <b>Unknown</b> on line <b>0</b><br />
  17. <br />
  18. <b>Warning</b>:  Module 'mysql' already loaded in <b>Unknown</b> on line <b>0</b><br />
  19. <br />
  20. <b>Warning</b>:  Module 'oci8' already loaded in <b>Unknown</b> on line <b>0</b><br />
  21. <br />
  22. <b>Warning</b>:  Module 'oracle' already loaded in <b>Unknown</b> on line <b>0</b><br />
  23. <br />
  24. <b>Warning</b>:  Module 'soap' already loaded in <b>Unknown</b> on line <b>0</b><br />

When I commented these extension in php.ini file then gives the no warning but i can not comment these extension because they have load external library.

So what is the altenative Solution of these problem?

Regards,
Sandeep Agarwal
Web Devoloper
Jan 14 '08 #1
3 2432
Atli
5,058 Expert 4TB
Hi Sandeep

Does this happen with all PHP files you execute through your CLI?
If not, can we see the code that generates these errors?

How are you executing the PHP file through your CLI?
Could you show us the command you use?

Also note that these are all Warnings, and as such should not stop the execution of the code.
Is it possible that the code is working as expected, despite these warnings?
Jan 18 '08 #2
Hi,
I am using the command
php -f filename.php
after those run gives the warning .Code is successfull execute but the problem i do not want to see the warning in command prompt..

so if any solution then tell me...
Bye,
Sandeep Agrawal

Hi Sandeep

Does this happen with all PHP files you execute through your CLI?
If not, can we see the code that generates these errors?

How are you executing the PHP file through your CLI?
Could you show us the command you use?

Also note that these are all Warnings, and as such should not stop the execution of the code.
Is it possible that the code is working as expected, despite these warnings?
Jan 22 '08 #3
Atli
5,058 Expert 4TB
Try adding this to the top of your PHP code:
Expand|Select|Wrap|Line Numbers
  1. ini_set('display_errors', false);
  2.  
It should suppress any errors and warnings.
Jan 22 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

11
by: penguinman | last post by:
I type ./a.out and the shell just sits there. It doesnt hang it just sits there looking pretty. I run the program with the ddd option and executed it from ddd...execution window comes up and...
1
by: Matt | last post by:
Hello I have spent the last weeks trying to solve this problem but with no luck at all, I have a piece of code that looks like this declare @bestnr int, @artnr varchar(25), @journalnrrow...
109
by: Andrew Thompson | last post by:
It seems most people get there JS off web sites, which is entirely logical. But it is also a great pity since most of that code is of such poor quality. I was looking through the JS FAQ for any...
1
by: John | last post by:
Hi First of all apologies for posting so much code but this is rather involved and I am totally stumped. Basically I have a main form (Staff Batch SMS/E-Mail) which calls a function (SendSMS) in...
6
by: Jim | last post by:
Group, How would I go about firing a JavaScript method from a C# method in the aspx code behind file? It seems as though this could not be done since JavaScript is executed from within the Web...
0
by: stacy | last post by:
I used the wizard to upgrade an application from VB 6 to VB.net, the following warnings appear around the .Input property of the MSCOmm control 'UPGRADE_WARNING: Couldn't resolve default property...
2
by: funkyj | last post by:
I've been googling around trying to find the answer to this question but all I've managed to turn up is a 2 year old post of someone else asking the same question (no answer though). ...
10
by: Tomás Ó hÉilidhe | last post by:
I'd post this on a gcc newsgroup but I'd be more productive talking to the wall. Anyway, let's say someone throws some source code at you for a particular program and says, "Just compile it, it...
1
by: rajpar | last post by:
Environment: Solaris (client + server) db2 version 7.2 latest fixpak (DB2 v7.1.0.111", "s050516" and "U803330") Compiler: gcc Here is my SP code executed on the client: CREATE PROCEDURE...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
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,...
0
jinu1996
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.