This topic is locked
[SOLVED]

 ERROR with Runner_mail

1/11/2010 7:22:49 AM
PHPRunner General questions
rjks author

Hallo,
I am having a problem with the runner_mail function,
it is called with variables
$ret=runner_mail(array('to' => $email, 'subject' => $subject, 'body' => $msg, 'from'=>$from));
and gives the error
Fehlertyp 8

Fehlerbeschreibung Array to string conversion

URL technopactest.spo-net.de/version2/notes_edit.php?

Fehlerdatei /mnt/web5/41/72/51249472/htdocs/technopactest/version2/include/phpfunctions.php

Fehlerzeile 83
When I use
mail($email, $subject, $msg, $headers);
everything is fine.
PHPRUNNER version 5.1 Build 2503
Its driving me crazy as on my local Test System everything is OK.
The external host server has another Problem that it gives the error
Fatal error: Call to undefined function: mysql_real_escape_string() in /mnt/web5/41/72/51249472/htdocs/test/technopac_sr1/include/dbconnection.php on line 122
if I change the function to mysql_escape_string() it seems to work.
any help is welcome.
Robert

Sergey Kornilov admin 1/11/2010

I would check what version of PHP your website runs. mysql_real_escape_string() requires PHP 4.3.0 or better.
Probably first error is related to this issue as well.

rjks author 1/13/2010



I would check what version of PHP your website runs. mysql_real_escape_string() requires PHP 4.3.0 or better.
Probably first error is related to this issue as well.


Hi,
I am using PHP 5.3 and 5.2 and mySQL 5.1.3.7 on an Apache 2.2.12
any other ideas?
thanks in advance
Robert

Sergey Kornilov admin 1/14/2010

I would ask a question to your web hosting provider - why mysql_real_escape_string() function is undefined. There is something wrong with PHP setup on the server.