[PHP] Re: Fatal error: Allowed memory size of XXXXX bytes exhausted

2010-10-17 Thread Justin Martin

On 10-10-15 04:42 PM, Julien Jabouin wrote:

Hello,

I have an issu with a script launched by cron.

In fact, although i setup php memory_limit to high value (1G or 2Go),
i have the same issue.

By example  with 2G :

Output from command /usr/bin/php5 -d memory_limit=2G -f
/home/test/www/cron.php ..

Fatal error: Allowed memory size of 536870912 bytes exhausted (tried
to allocate 266257 bytes) in
/home/test/www/app/code/local/Ess/M2e/Model/M2eConnector.php on line
423


And with 1G :

Output from command /usr/bin/php5 -d memory_limit=1G -f
/home/test/www/cron.php ..

Fatal error: Allowed memory size of 536870912 bytes exhausted (tried
to allocate 267717 bytes) in
/home/test/www/app/code/local/Ess/M2e/Model/M2eConnector.php on line
423


Result is the same...
Do you know why ?


This is my php version :
/usr/bin/php5 -v
PHP 5.2.6-1+lenny4 with Suhosin-Patch 0.9.6.2 (cli) (built: Nov 22
2009 01:50:58)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies
 with the ionCube PHP Loader v3.3.20, Copyright (c) 2002-2010, by
ionCube Ltd., and
 with Zend Optimizer v3.3.9, Copyright (c) 1998-2009, by Zend Technologies


On a Debian Lenny, 64 bits version.


It would seem that your script is gobbling memory somewhere. Perhaps 
you've entered an infinite loop which is simply tacking additional 
elements onto an array constantly.


Without seeing the script itself, it's hard to say quite what the 
problem might be, but what's evident is that your script is eating memory.


Thanks,
Justin Martin

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Fatal error on functions valid for PHP 4, 5

2009-10-09 Thread Al



kro...@aolohr.com wrote:

Hi,

Would someone be kind enough to test whether these following functions work? 

I'm getting: PHP Fatal error:  Call to undefined function easter_date() . . . 
easter_days on both local and production sites.



?php

echo easter_days(2009);
print brbr;
	echo date(M-d-Y, easter_date(2009)); 
	print brbr;
	echo date(D d M Y, easter_date(2009));  


?


I'm using 5.2.10 production; PHP 5.2.4 local.

Tia,
Andre


Run get_defined_functions  ( void  )

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Fatal error: Call to undefined function: mysqli_connect() in

2009-03-14 Thread Gary
Thank you to everybody, turns out that in the godaddy control panel, you 
have the option of php4 or php5, and they have 4 as the default.  A call to 
gd and I was able to switch and it now works.

Thanks again for all your help!

Gary

Gary gwp...@ptd.net wrote in message 
news:d1.a0.60648.83beb...@pb1.pair.com...
I am recieving a fatal error trying to connect to my server/mysql. This is 
my first attempt at connecting to a remote server, have been successful 
with localhost (apache). I had the variation of not putting the hostname  
others into a variable, but that did not work either.

 I have also genericised the username and password for this post. Host name 
 is correct.

 Can anyone enlighted me as to what I am not doing correctly?


 Fatal error: Call to undefined function: mysqli_connect() in

 ?php

 // Receiving variables
 @$pfw_ip= $_SERVER['REMOTE_ADDR'];
 @$first_name = addslashes($_POST['first_name']);
 @$last_name = addslashes($_POST['last_name']);
 @$company = addslashes($_POST['company']);
 @$phone = addslashes($_POST['phone']);
 @$email = addslashes($_POST['email']);
 @$url = addslashes($_POST['url']);
 @$comments = addslashes($_POST['comments']);

 // Validation
 if (strlen($phone) 8)
 {
 die(p align='center'font face='Arial' size='3' color='#FF'Please 
 enter a valid phone/font/p);
 }
 if (strlen($phone) 15)
 {
 die(p align='center'font face='Arial' size='3' color='#FF'Please 
 enter a valid phone/font/p);
 }

 if (! ereg('[a-za-z0-9_-...@[a-za-z0-9_-]+\.[a-za-z0-9_-]+', $email))
 {
 die(p align='center'font face='Arial' size='3' color='#FF'Please 
 enter a valid email/font/p);
 }
 // checks if bot

   if ($_POST['address'] != '' ){


 die(Changed field);

}
 //Connect To Database
 $hostname='h50mysql43.secureserver.net';
 $username='myusername';
 $password='mypassword';
 $dbname='mydbname';
 $usertable='tablename';

 $dbc = mysqli_connect('$hostname','$username','$password')
 or die('Error connecting to MySQL server');
 mysql_select_db('$usertable');

 $query = INSERT INTO contact(first_name, last_name, company, phone, 
 email, url, comments) .
 VALUES 
 ('$first_name','$last_name','$company','$phone','$email','$url','$comments') 
 ;

 $result = mysqli_query($dbc, $query)
 or die('Error querying database.');

 mysqli_close($dbc);

 //Sending Email to form owner
 $pfw_header = From: $email\n
  . Reply-To: $email\n;
 $pfw_subject = Subject Message;
 $pfw_email_to = em...@email.com;
 $pfw_message = Visitor's IP: $pfw_ip\n
 . name: $first_name . ' '.$last_name\n
 . company: $company\n
 . phone: $phone\n
 . email: $email\n
 . url: $url\n
 . comments: $comments\n

 @mail($pfw_email_to, $pfw_subject ,$pfw_message ,$pfw_header ) ;

 echo(p align='center'font face='Arial' size='3' color='#FF'Thank 
 you for your submission, we will respond shortly!/font/p);
 echo Thank you $first_name for your requestbr /;
 echo We have the following information from you.br /;?
 br /
 ?php
 echo First Name $first_namebr /;
 echo Last Name: $last_namebr /;
 echo Company Name: $companybr /;
 echo Phone Number: $phonebr /;
 echo Web Address: $urlbr /;
 echo Email Address: $email.br /;?
 br /
 ?php
 echo Your Comment: $commentsbr /;
 ?
 br ? /
 ?php
 echo 'Please review your information and feel free to correct any that may 
 be incorrect.br /';?
 br ? /
 ?php
 echo 'We will contact your shortly!';
 ?
 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Fatal error: Call to a member function on a non-object

2008-11-18 Thread Christopher Vogt
Hej,

I created a change request: http://bugs.php.net/bug.php?id=46601

Best regards

Christopher

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Fatal error: Function name must be a string

2008-01-02 Thread M. Sokolewicz

Adam Williams wrote:
I'm getting the following error and I don't see whats wrong with my 
line.  Any ideas?


*Fatal error*: Function name must be a string in 
*/var/www/sites/intra-test/contract/perform.php* on line *57*


and my snippet of code is:

if ( $_POST[perform] == View Contracts )
   {

   $mysqli_get_userid = SELECT user_id from user where email =
'.$_SESSION[username].';

   $mysqli_get_userid_result = $mysqli_query($mysqli,  // line 57
$mysqli_get_userid) or die(mysqli_error($mysqli));
$mysqli_query should be mysqli_query (note: no $ ). You have an unset 
value, ie. null and you can't have a function called NULL (as the value).




   while ($userid_result = 
mysqli_fetch_array($mysqli_get_userid_result))

   {
   $user_id = $userid_result[user_id];
   }
   }



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Fatal error: session_start(): Failed to initialize storage module

2006-09-22 Thread Kae Verens

[EMAIL PROTECTED] wrote:

Hi,

Fatal error: session_start(): Failed to initialize storage module in
/home/vernoncompany.biz/includes/validations.php on line 2

validation.php:
#1 ?php
#2 session_start();
# ...

Two weeks ago I got this essage first time. And since, I'm getting more
often. Last three days at aleast once a day when open my website.

According Google, it's problem with php.ini setup.



possibly.

or it could be a disk-space problem.

what does your server's error_log say?

Kae

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Fatal error: Call to a member function query() on a non-object in C:\Xampp\xa...

2006-06-28 Thread David Robley
[EMAIL PROTECTED] wrote:

 Hello
 
 Following code shows within I have some difficulties. Is only an example
 from Web Databasse Applications with PHP and MysQL book.
  
 global $dsn;
 global $connection;
 
  $template-setCurrentBlock();
  
  $template-setVariable(SUCH-KRITERIUM,Such-Kriterium:
  {$_SESSION[searchFormVars][search_eb]});
  
  $browseString = search_eb= .
  urlencode($_SESSION[searchFormVars][search_eb]);

  $search = ($_SESSION[searchFormVars][search_eb]);
   
  $template-parseCurrentBlock();
  
 
 
 $query = setupQuery($_SESSION[searchFormVars][search_eb]);
 $result =
 $connection-query($query);-- This
 code shows me following error message, see below

   
if (DB::isError($result))
 trigger_error($result-getMessage(), E_USER_ERROR);
 $numRows = $result-numRows();
  
 
 
 
 Fatal error: Call to a member function query() on a non-object in
 C:\Xampp\xampp\htdocs\www2\knowledge_db\searchnew.php on line 81
 
 Even though the $connection has already been established in a other .php
 file. However, it should work since there is a global declaration.
 
 best regards, Joerg

Haven't you asked this before? You can't pass a result set or a conection id
from one script to another. Full stop.



Cheers
-- 
David Robley

Washed the cat - took HOURS to get the hair off my tongue!
Today is Prickle-Prickle, the 33rd day of Confusion in the YOLD 3172. 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Fatal error: Call to undefined function preg_match()

2006-03-20 Thread Barry

Evert wrote:

Hi all!

Recently I am getting the following error on some of my PHP-enabled websites. I 
think it started when I went from PHP4 - PHP5.

Here is an example (from http://wos.poboxes.info/) :


Fatal error: Call to undefined function preg_match() in 
/var/www/wos.poboxes.info/htdocs/classes/ConfigData.php on line 114


What causes this? How can I fix it?
FYI: I use Cherokee (not Apache...)



Regards,
Evert

On some pages?
So it works on the other pages on the same webserver?

Probably you have unset the function, or some file/php/include/script does.
Best way to test that is to put preg_match at the first line.

Is a htaccess causing trouble probably?
--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Fatal error: Call to undefined function preg_match()

2006-03-20 Thread M. Sokolewicz

Barry wrote:

Evert wrote:


Hi all!

Recently I am getting the following error on some of my PHP-enabled 
websites. I think it started when I went from PHP4 - PHP5.


Here is an example (from http://wos.poboxes.info/) :


Fatal error: Call to undefined function preg_match() in 
/var/www/wos.poboxes.info/htdocs/classes/ConfigData.php on line 114



What causes this? How can I fix it?
FYI: I use Cherokee (not Apache...)



Regards,
Evert


On some pages?
So it works on the other pages on the same webserver?

Probably you have unset the function, or some file/php/include/script does.
Best way to test that is to put preg_match at the first line.

Is a htaccess causing trouble probably?


Since when can you unset functions from within php scripts?? (except 
with specialized modules, which we'll just ignore for now).


My guess here is that the PCRE-library was disabled during compilation 
of your PHP5 tree (check phpinfo for that). If so, you'll need to 
compile it in to have the functions.


- tul

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Fatal error: Call to undefined function preg_match()

2006-03-20 Thread Barry

M. Sokolewicz wrote:
Since when can you unset functions from within php scripts?? (except 
with specialized modules, which we'll just ignore for now).

Why ignore them for now?
Doesn't make sense for me ...

Recently I am getting the following error on some of my PHP-enabled
websites. I think it started when I went from PHP4 - PHP5.

He went from 4 to 5, do you know what 4 had compiled in? no you don't.
Why don't just ignore he went from 4 to 5.
So we can see this post as i installed php 5 and got error X

Sorry, i think that's big nonsense.

Greets
Barry
--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Fatal error: Call to undefined function preg_match()

2006-03-20 Thread Evert


M. Sokolewicz wrote:
 Barry wrote:
 Evert wrote:

 Hi all!

 Recently I am getting the following error on some of my PHP-enabled
 websites. I think it started when I went from PHP4 - PHP5.

 Here is an example (from http://wos.poboxes.info/) :


 Fatal error: Call to undefined function preg_match() in
 /var/www/wos.poboxes.info/htdocs/classes/ConfigData.php on line 114


 What causes this? How can I fix it?
 FYI: I use Cherokee (not Apache...)



 Regards,
 Evert

 On some pages?
 So it works on the other pages on the same webserver?

 Probably you have unset the function, or some file/php/include/script
 does.
 Best way to test that is to put preg_match at the first line.

 Is a htaccess causing trouble probably?
 
 Since when can you unset functions from within php scripts?? (except
 with specialized modules, which we'll just ignore for now).
 
 My guess here is that the PCRE-library was disabled during compilation
 of your PHP5 tree (check phpinfo for that). If so, you'll need to
 compile it in to have the functions.

You're right!  :-)

It turned out that php5 was compiled without pcre-support. I have recompiled 
it, and now it works like a charm! :-)
Thanks for the help!  :-)

Regards,
  Evert

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: Fatal error: Call to undefined function preg_match()

2006-03-20 Thread Jochem Maas

Barry wrote:

M. Sokolewicz wrote:

Since when can you unset functions from within php scripts?? (except 
with specialized modules, which we'll just ignore for now).


Why ignore them for now?
Doesn't make sense for me ...


If the OP is capable of installing and using the runkit extension
them he would never have had ask the list why 'preg_match() is not defined' -
it's a fairly basic problem to solve - anyone with enough skill and experience
to use runkit would know how to solve it.

obviously Barry you are very experienced and use the runkit extension all
the time ... because evidently you seem to think 'unsetting' function
is a completely normal activity inside a php script.



 Recently I am getting the following error on some of my PHP-enabled
 websites. I think it started when I went from PHP4 - PHP5.

He went from 4 to 5, do you know what 4 had compiled in? no you don't.
Why don't just ignore he went from 4 to 5.


given that he says 'I think' (i.e. he's too lazy to check and know for sure)
ignoring the fact that he upgraded is actually quite sane.

the OPs problem is an undefined function which can only really mean that
an extension was not loaded (and/or not compiled in) - nothing to do with the
fact that he upgraded as such (he could jsut as well have got this error
if he had created a completely fresh php install)

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: Fatal error: Call to undefined function preg_match()

2006-03-20 Thread Richard Lynch
On Mon, March 20, 2006 4:58 am, Barry wrote:
 M. Sokolewicz wrote:
 Since when can you unset functions from within php scripts??
 (except
 with specialized modules, which we'll just ignore for now).
 Why ignore them for now?
 Doesn't make sense for me ...

Because the number of people who have installed the RTI module, so
they can re-wire the guts of PHP on the fly, and completely screw up
their system on purpose in the process, is a very very very very small
number.

And the odds that the OP actually installed RTI, *and* managed to do
what it would take to un-define preg_match with it, and still have his
system doing anything else useful, are slim to none, and Slim's out of
town.

:-)

  Recently I am getting the following error on some of my PHP-enabled
  websites. I think it started when I went from PHP4 - PHP5.

 He went from 4 to 5, do you know what 4 had compiled in? no you don't.
 Why don't just ignore he went from 4 to 5.
 So we can see this post as i installed php 5 and got error X

 Sorry, i think that's big nonsense.

What exactly is nonsense?

That installing PHP5 and messing up ./configure to not have PCRE is a
very very very common mistake?

The previous advice given is almost-for-sure 100% correct:

PCRE didn't get complied in -- it's not there -- install it

-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Fatal error: Maximum execution time

2005-02-21 Thread Jason Barnett
Stanislav Kuhn wrote:
...
 
 PHP Fatal error:  Maximum execution time of 30 seconds exceeded in .php
 on line 130
 
 Has somebody seen something like this or has an idea what's going on there?

When I get this error it is often because I found myself running into an
infinite loop someplace.  Checking your while loops in your code may
provide an answer...

 
 PHP Version = 4.3.10-2
 Running with apache on Linux..
 
 Thanks a lot.
 Stan


-- 
Teach a man to fish...

NEW? | http://www.catb.org/~esr/faqs/smart-questions.html
STFA | http://marc.theaimsgroup.com/?l=php-generalw=2
STFM | http://www.php.net/manual/en/index.php
STFW | http://www.google.com/search?q=php
LAZY |
http://mycroft.mozdev.org/download.html?name=PHPsubmitform=Find+search+plugins


signature.asc
Description: OpenPGP digital signature


RE: [PHP] Re: Fatal error: Maximum execution time

2005-02-21 Thread Stanislav Kuhn
Yes, this may cause error like that, but this occours on different places I
mean in different included scripts where are not loops at all. Basically
there is only one main loop over main data and some small foreach and that
can not be infinite. And error happens in different times as well.



-Original Message-
From: Jason Barnett [mailto:[EMAIL PROTECTED]
Sent: 21 February 2005 15:04
To: php-general@lists.php.net
Subject: [PHP] Re: Fatal error: Maximum execution time


Stanislav Kuhn wrote:
...

 PHP Fatal error:  Maximum execution time of 30 seconds exceeded in
.php
 on line 130

 Has somebody seen something like this or has an idea what's going on
there?

When I get this error it is often because I found myself running into an
infinite loop someplace.  Checking your while loops in your code may
provide an answer...


 PHP Version = 4.3.10-2
 Running with apache on Linux..

 Thanks a lot.
 Stan


--
Teach a man to fish...

NEW? | http://www.catb.org/~esr/faqs/smart-questions.html
STFA | http://marc.theaimsgroup.com/?l=php-generalw=2
STFM | http://www.php.net/manual/en/index.php
STFW | http://www.google.com/search?q=php
LAZY |
http://mycroft.mozdev.org/download.html?name=PHPsubmitform=Find+search+plug
ins

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Re: Fatal error: Maximum execution time

2005-02-21 Thread Jay Blanchard
[snip]
Yes, this may cause error like that, but this occours on different
places I
mean in different included scripts where are not loops at all. Basically
there is only one main loop over main data and some small foreach and
that
can not be infinite. And error happens in different times as well.
[/snip]

You can, script by script, use set_time_limit()
http://www.php.net/set_time_limit and/or you can set the time limit in
php.ini. You can also do it in the .htaccess file.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Fatal error: Call to undefined function: mysql_connect()

2004-04-17 Thread David Robley
[EMAIL PROTECTED] (Tim) wrote in
news:[EMAIL PROTECTED]: 

 Setup:
 2 servers, one with PHP 4.1.2 and no MySQL installed, the other has
 MySQL and PHP 4.1.2
 
 Problem:
 I am attempting to connect to the MySQL server from the server without
 MySQL, but I get the error that shows in the subject.
 
 Fatal error: Call to undefined function: mysql_connect() in
 /folder/index.php on line 11
 
 I was told that maybe the extension for MySQL was not setup in PHP.  I
 thought that maybe it was just because MySQL wasnt installed on the
 system I am working on, but it makes sense that I am not trying to
 access a database on the system I am working from, but trying to
 access one on a different server all together.
 
 What do you think?

I think the error message tells it all - there is no mysql support in the 
php you are using. You'll need to recompile with php support, or load a 
mysql extension library. 

Cheers

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Fatal Error: PDFlib error ...

2003-12-15 Thread Sven
Matthias Nothhaft schrieb:

Hi,

I'm trying to get the pdflib work...

I use pdflib 4.0.3 downloaded from pdflib.de and php 4.3.4 on Debian Linux.

I wrote this test code:
hi matthias,
if you want to use this lib it's good to be familiar with classes and 
objects in php. the manual can help you at this. now to your code.
?php

dl(libpdf_php.so);

$pdf = pdf_new();
you just created a php-object $pdf.
for your further methods you must explicit declare them to your objects:
pdf_begin_page($pdf, 421, 595);
$pdf-pdf_begin_page($pdf, 421, 595);
... and so on.
hth SVEN
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: Fatal error: Call to undefined function: str_word_count()

2003-06-18 Thread CPT John W. Holmes
nabil [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]...

 when i use str_word_count()  i got the following :

 Fatal error: Call to undefined function: str_word_count()



 and my PHP is Version 4.2.3



 What is the problem ???



Reading English?



us2.php.net/str_word_count



PHP 4.3.0 and greater...



---John Holmes...


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Fatal error: Cannot use [] for reading

2002-10-11 Thread Bogdan Stancescu

That piece of code works. Maybe you could be so kind as to post the 
exact piece of code which doesn't work? If it's not too much to ask, of 
course.

Bogdan

Leif K-Brooks wrote:
 Any idea what that error means?  I'm trying to do something like:
 $array[] = array(a = a value);
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Re: Fatal error: Cannot use [] for reading

2002-10-11 Thread Leif K-Brooks

$actions[] = array(display = Discard);

Bogdan Stancescu wrote:

 That piece of code works. Maybe you could be so kind as to post the 
 exact piece of code which doesn't work? If it's not too much to ask, 
 of course.

 Bogdan

 Leif K-Brooks wrote:

 Any idea what that error means?  I'm trying to do something like:
 $array[] = array(a = a value);




-- 
The above message is encrypted with double rot13 encoding.  Any unauthorized attempt 
to decrypt it will be prosecuted to the full extent of the law.




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Re: Fatal error: Cannot use [] for reading

2002-10-11 Thread Bogdan Stancescu

Yup, that works as well. You could try a debugging echo after that line 
and see if it gets executed. You probably have a problem somewhere else.

Bogdan

Leif K-Brooks wrote:
 $actions[] = array(display = Discard);
 
 Bogdan Stancescu wrote:
 
 That piece of code works. Maybe you could be so kind as to post the 
 exact piece of code which doesn't work? If it's not too much to ask, 
 of course.

 Bogdan

 Leif K-Brooks wrote:

 Any idea what that error means?  I'm trying to do something like:
 $array[] = array(a = a value);



 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] RE: Fatal Error: Cannot use assign-op operators

2002-05-24 Thread John Holmes

Okay, just upgraded to PHP 4.2.1 and it doesn't appear to care if you do

$val['key'] .= string;

or other +=, overload-type, operations. 

So is it safe to assume that anything Pre-4.2.1 will choke on lines like
that?

---John Holmes...

 -Original Message-
 From: John Holmes [mailto:[EMAIL PROTECTED]]
 Sent: Friday, May 24, 2002 7:39 PM
 To: '[EMAIL PROTECTED]'
 Subject: Fatal Error: Cannot use assign-op operators
 
 Hi. I'm getting this error on my scripts:
 
 Fatal error: Cannot use assign-op operators with overloaded objects
nor
 string offsets in
c:\inetpub\wwwroot\usap\reports\Daily_Report_Student.php
 on line 40
 
 After doing some searching, I concluded the errors are caused by using
.=,
 +=, etc on an array.
 
 $Report[Where] .=  Battalion = 2 ;
 
 or something similar. The error is eliminated if you replace the line
with
 
 $Report[Where] = $Report[Where] .  Battalion = 2 ;
 
 The odd thing is I'm taking code from one server to another and it's
just
 now showing up. The one I'm on now that's showing the error is running
 4.2.0, IIS, and Win2K. The other machine is Win2K with IIS also. I
can't
 remember the exact version of PHP but it's 4.2.x. The error reporting
is
 the same on each machine, I didn't change that at all (It's a fatal
error,
 anyhow).
 
 Any idea why it's ok on one server and not on the other? b/c of PHP
 version? Any other workarounds for this or changes to the
configuration I
 can make to get rid of it? Thanks for any help.
 
 ---John Holmes...


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: fatal error

2001-11-28 Thread Fred

This error indicates that the code declaring the function is in the code
more than one time.  You can only have the function declaration once.  If
you are including the funciones.php in another script, make sure that it is
only included once.  If it is included more than once it will give you this
error the second time it is included.

Fred

William Sanchez Sanchez [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  I got that, Why it could be?
Fatal error: Cannot redeclare reporte_llamada() in
c:\Inetpub\wwwroot\online\includes\funciones.php on line 4
and the code for  reporte_llamada()in   ...\funciones.phpis   :

function reporte_llamada ($telefono,$folio,$fecha_ini,$fecha_fin, $tipo) {
// llama a diferentes procedimientos en función de $tipo
switch($tipo){
case 0: // DETALLE LLAMADAS TELEFONOS
$connstring = begin
PRODUCCION.REPORTE_LLAMADA_ONLINE($telefono,0,:FOLIO,'$fecha_ini','$fecha_fi
n'); end;;
break;
case 1: // DETALLE LLAMADAS REVENDEDORES
$connstring = begin
PACK_REVENDEDOR.OBTENER_REPORTE_RV_P($telefono,'$fecha_ini','$fecha_fin',:FO
LIO); end;;
break;
}
$conn = ocilogon(conn_user, conn_pwd, conn_sid);
$stmt = ociparse($conn, $connstring);
file://obtener parámetros
ocibindbyname($stmt,:FOLIO,$folio,32);
ociexecute($stmt);
ocifreestatement($stmt);
} // reporte llamada


  THANK U.




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Re: Fatal error: Call to undefined function: imagecreate()

2001-11-16 Thread Jeff Bearer

Thanks for pointing me to phpinfo(),  the field for the ./configure
command is my old one, I guess I'll go back and start from scratch, must
of forgot a step.



On Thu, 2001-11-15 at 21:06, Johan Holst Nielsen wrote:
  I know it's probabally overkill but in the configure messages, it says
  yes for everything gd, jpeg, png, and zlib.  Any suggestions? If anybody
  wants to see the configure messages let me know.
 
 What do PHP tells you about the GD lib extension.
 Try making a phpinfo() file and send the output in the GD lib section.
 
 Regards,
 Johan
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
-- 
Jeff Bearer, RHCE
Webmaster
PittsburghLIVE.com


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: Fatal error: Call to undefined function: imagecreate()

2001-11-15 Thread Johan Holst Nielsen

 I know it's probabally overkill but in the configure messages, it says
 yes for everything gd, jpeg, png, and zlib.  Any suggestions? If anybody
 wants to see the configure messages let me know.

What do PHP tells you about the GD lib extension.
Try making a phpinfo() file and send the output in the GD lib section.

Regards,
Johan

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]