[PHP] Translation table not working

2001-09-11 Thread Peter Ostry
I cannot manage correct HTML encoding, here is the example from the manual: --- $trans = get_html_translation_table(HTML_ENTITIES); $str = Hallo Frau Krämer; $encoded = strtr($str, $trans); The $encoded variable will now contain: Hallo amp; lt;Fraugt; amp; Krauml;mer. --- If I do exactly the

[PHP] Re: mysql_db_name not working (solved)

2001-08-22 Thread Peter Ostry
for your help. Your guess that there are accidently different libraries involved, pointed us in the right direction. Peter Ostry -- 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

[PHP] Creditcard checksum and identification

2001-08-22 Thread Peter Ostry
Has anyone a PHP Script for the checksum of Creditcards? And a Script which can identify card types based on their first numbers? (VISA, AMEX, MASTER, DINERS, JBC, DISCOVERY) There where a lot of JavaScript pages on the web some years ago, but I have lost my local copies and the pages are

[PHP] mysql_db_name not working

2001-08-16 Thread Peter Ostry
The command mysql_db_name is not working in our installation. We get no error, but no database listing either if we use this command. - // This is the code which does NOT work: $dbs = mysql_list_dbs(); $num_dbs = mysql_numrows($dbs); for($i=0; $i$num_dbs; $i++) { $db = mysql_dbname($dbs, $i);

[PHP] mysql_db_name not working (followup)

2001-08-16 Thread Peter Ostry
The command mysql_db_name is not working in our installation. We get no error, but no database listing either if we use this command. - Now I know more: mysql_tablename is not working either - we tested both commands in a separate file. I wonder what else is not working... phpMyAdmin

[PHP] Re: Solaris/Apache/PHP load problem (solved)

2001-08-08 Thread Peter Ostry
On Dienstag, August 7, 2001, at 12:04 Uhr, Peter Ostry wrote: bash-2.03# /usr/apache/bin/apachectl start Syntax error on line 244 of /etc/apache/httpd.conf: Cannot load /web/libexec/libphp4.so into server: ld.so.1: /usr/apache/bin/httpd: fatal: /web/libexec/libphp4.so: open failed

[PHP] Solaris/Apache/PHP load problem

2001-08-07 Thread Peter Ostry
Hopefully the last hill to climb in our first Solaris installation - Apache cannot load a module: bash-2.03# /usr/apache/bin/apachectl start Syntax error on line 244 of /etc/apache/httpd.conf: Cannot load /web/libexec/libphp4.so into server: ld.so.1: /usr/apache/bin/httpd: fatal:

[PHP] Problem with installing on Solaris 8

2001-08-06 Thread Peter Ostry
We try to install PHP4 on a Sun Netra AC200 (T1) under Solaris 8. After we finally managed to 'configure', we get an error with 'make': bash-2.03# make Making all in Zend make[1]: Entering directory `/usr/share/src/php-4.0.6/Zend' /bin/sh ../libtool --silent --mode=link gcc -g -O2 -o

[PHP] Calling a webpage with POST arguments

2001-07-25 Thread Peter Ostry
Maybe this was already diskussed, but I am rather new to PHP... I have to call a page on a remote webserver and include some variables. Since the whole stuff comes from a database and is too long for an URL ist must be done with POST. Can I call a website with POST arguments from within PHP?