[PHP-DB] printf and unsecable char
Hello I would like to print a string formatted on the right side and fill in the left side with the unsecable character [ ] I read in the printf command I could use : printf( "%#30s" , $mystring ) ; to display $mystring string with the character # before (on the left) and I try to replace # by but I can't find a solution Do you know the solution to write the command: printf( "% 30s" , $mystring ) ; or something like that ! Best regards and take care ! -- Jean-Philippe Battu http://jeanpba.homeip.net -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] How to know the name of a function ?
Hello In a function, what is the best way to know the name of this function ? I read the documentation and found only func_num_args(), func_get_arg() and func_get_args which are relative to the arguments given to the function. What is the equivalent to $0 (bash) in php ? Thanks for your help Cheers -- Jean-Philippe Battu -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] php mail and accentuated characters
Hello I would like to send email from my php program. So I use the mail() function from php engine but I noticed that the accentuated characters were not well transmitted by php or the apache server (I use a linux box with FC4 and httpd server). In the phpinfo function, I saw the LANG environnement variable was set to en_US, so I fixed it to fr_FR in the system file /etc/sysconfig/18n and reboot the machine, phpinfo gave me the correct french LANG. The result is still the same the apache server gave me incorrect languages in server-info, so I corrected the DefautLanguage directive and Priority Languages directives in the httpd.conf file. Restart apache and server-info gave me correct information, but the result is still the same. I am in trouble, because the mutt linux program send well the accentuated characters. I studied the difference between two mails, from mute and from php, and apparently the order definition after the Date aren't the same. I tried to use the phpmailer class, but the problem persists. I use php 4.3.10 The workaround I found is to use the mutt command from php by the system function, but it is a pity ! Do you know this problem ? thanks for your reply and happy new year to you ! Cheers Jean-Philippe BATTU Grenoble http://jeanpba.homeip.net -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] php mail and accentuated characters
Hello I would like to send emails from my php program. so I use the mail function but I noticed that the accentuated characters where not well transmitted by php or apache server (I use a linux box with FC4). In the phpinfo() function, I saw the LANG environnment va Jean-Philippe BATTU Grenoble FRANCE Site Web: http://www.geocities.com/jeanpba http://jeanpba.homeip.net -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] strange value of variable after a php form
Hello I wrote a sample html code with a form like this : Choix : val1 val2 val3 val4 and I wrote 011verif.php like this: value $name "); ?> on php4.2.2 the output returned is : value val2name=val2 and on php4.3.10 the output returned is more correct : value val2 what is the difference between these two outputs ? the php configuration in php.ini is the same and I don't think that is a bug on php4.2.2 Do you know this problem ? Thanks for your feedbacks Cheers Jean-Philippe BATTU Grenoble FRANCE Site Web Personnel: http://www.geocities.com/jeanpba http://jeanpba.homeip.net -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php