[PHP-DB] How to write errorhandling??

2001-10-21 Thread Luditus

Hi Fokes,

I would like to send an mail via the mail function.

If the mail failes I would like to redirect to an errorpage. Currently my
code looks like this:

 if ( mail($email,$subject_confirm_account, $message_confirm_account,
$from_confirm_account) ){
  HEADER(Location:index.php?fuseaction=txtmsg=registered); //success
 }
 else{
  HEADER(Location:index.php?fuseaction=txtmsg=mailproblem); // mail could
not been sent
 };

Unfortunatelly I get an erromessage like that:

Warning: Failed to Connect in
e:\projects\globosapiens\07_production\actual\account\include\user.php on
line 256

Warning: Cannot add header information - headers already sent by (output
started at
e:\projects\globosapiens\07_production\actual\account\include\user.php:256)
in e:\projects\globosapiens\07_production\actual\account\include\user.php on
line 260

Where is the problem??? I can't see it.

Maybe one of you guys could help me out.

Thanx in advance,

Luditus



-- 
PHP Database 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-DB] Asigning function values to variables??

2001-10-21 Thread Luditus

Hi there,

I am trying to send an email with html tags coming from functions.
Something is wrong with asigning the value to the variable. I guess I don't
know the proper syntax.

Can anybody help me out?

e.g.:

$body .= .box_header('test').;
$body .= h1text/h1;
$body .= .box_footer().;


Thanx in advance

Luditus




-- 
PHP Database 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-DB] How to write errorhandling??

2001-10-21 Thread Luditus

Unfortunatelly this doesn't work at all. Same error. Any other ideas?

Cheers

Luditus


Attila Strauss [EMAIL PROTECTED] schrieb im Newsbeitrag
01102113081306.00694@pluto">news:01102113081306.00694@pluto...
 hi

 do an

 exit;

 after the header();

 cu
 attila



 On Sunday 21 October 2001 12:45, Luditus wrote:
  Hi Fokes,
 
  I would like to send an mail via the mail function.
 
  If the mail failes I would like to redirect to an errorpage. Currently
my
  code looks like this:
 
   if ( mail($email,$subject_confirm_account, $message_confirm_account,
  $from_confirm_account) ){
HEADER(Location:index.php?fuseaction=txtmsg=registered); //success
   }
   else{
HEADER(Location:index.php?fuseaction=txtmsg=mailproblem); // mail
  could not been sent
   };
 
  Unfortunatelly I get an erromessage like that:
 
  Warning: Failed to Connect in
  e:\projects\globosapiens\07_production\actual\account\include\user.php
on
  line 256
 
  Warning: Cannot add header information - headers already sent by (output
  started at
 
e:\projects\globosapiens\07_production\actual\account\include\user.php:256)
  in
e:\projects\globosapiens\07_production\actual\account\include\user.php
  on line 260
 
  Where is the problem??? I can't see it.
 
  Maybe one of you guys could help me out.
 
  Thanx in advance,
 
  Luditus



-- 
PHP Database 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-DB] Bug in new PHP Version?

2001-10-03 Thread Luditus

Hi there,

I just downloaded the new 4.06 PHP Version and installed it on a new
machine.

My application does not work properly anymore, nor does mysqladmin.

This are some warnings:


Warning: mysql_db_query is deprecated; use mysql_select_db() and
mysql_query() instead in c:\dokumente und
einstellungen\administrator\desktop\my
files\projects\globosapiens\07_production\actual\mysqladmin\lib.inc.php on
line 506


Warning: Undefined variable: picture in c:\dokumente und
einstellungen\administrator\desktop\my
files\projects\globosapiens\07_production\actual\gallery\app_local\dsp_album
.inc on line 273



Does anybody have an idea?

Cheers Andy



-- 
PHP Database 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-DB] Performance boosting

2001-10-03 Thread Luditus

Hi there,

my phpsite shows always a white page while accessing the db. Sometimes for
seconds. How can I change it to a style like for example php.net does. While
it is searching the db it shows the php logo and the header of the html
site.
It looks like that: http:www.globosapiens.net/gallery

Cheers Andy



-- 
PHP Database 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]