[PHP] newbie: string to char array

2004-11-10 Thread Horst Jäger
Hi,
I wonder if it is possible to convert a given string into an array of chars 
without using a separator.

That is, is there a function
mySplit
with
mySplit('example') == array('e', 'x', 'a', 'm', 'p' 'l' 'e') ?

Thanks
Horst


Horst Jäger
Schaafenstr. 25
50676 Köln
Tel: 0221/93187015
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Newbie: get no $QUERY_STRING

2004-10-27 Thread Horst Jäger
_ENV[LD_LIBRARY_PATH] :/lib
_ENV[LS_COLORS] 
no=00:fi=00:di=01;34:ln=00;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31:ex=00;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.bat=01;32:*.btm=01;32:*.dll=01;32:*.tar=00;31:*.tbz=00;31:*.tgz=00;31:*.rpm=00;31:*.deb=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.zoo=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.tb2=00;31:*.tz2=00;31:*.tbz2=00;31:*.avi=01;35:*.bmp=01;35:*.fli=01;35:*.gif=01;35:*.jpg=01;35:*.jpeg=01;35:*.mng=01;35:*.mov=01;35:*.mpg=01;35:*.pcx=01;35:*.pbm=01;35:*.pgm=01;35:*.png=01;35:*.ppm=01;35:*.tga=01;35:*.tif=01;35:*.xbm=01;35:*.xpm=01;35:*.dl=01;35:*.gl=01;35:*.aiff=00;32:*.au=00;32:*.mid=00;32:*.mp3=00;32:*.ogg=00;32:*.voc=00;32:*.wav=00;32: 

_ENV[OPENWINHOME] /usr/openwin
_ENV[XNLSPATH] /usr/X11R6/lib/X11/nls
_ENV[HOSTTYPE] i386
_ENV[KDEROOTHOME] /root/.kde
_ENV[SESSION_MANAGER] local/wittgenstein:/tmp/.ICE-unix/2119
_ENV[COLUMNS] 80
_ENV[PAGER] less
_ENV[LD_HWCAP_MASK] 0x2000
_ENV[MINICOM] -c on
_ENV[KONSOLE_DCOP] DCOPRef(konsole-2170,konsole)
_ENV[PATH] 
/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/bin:/opt/kde3/bin:/usr/lib/java/jre/bin 

_ENV[GNOMEDIR] /opt/gnome
_ENV[CPU] i686
_ENV[JAVA_BINDIR] /usr/lib/java/jre/bin
_ENV[PWD] /srv/www/htdocs/localhorst/experiment
_ENV[INPUTRC] /etc/inputrc
_ENV[KONSOLE_DCOP_SESSION] DCOPRef(konsole-2170,session-1)
_ENV[JAVA_HOME] /usr/lib/java/jre
_ENV[XMODIFIERS] @im=local
_ENV[LINES] 24
_ENV[DBROOT] /dev/null
_ENV[TEXINPUTS] 
::/root/.TeX:/usr/share/doc/.TeX:/usr/doc/.TeX:/root/.TeX:/usr/share/doc/.TeX:/usr/doc/.TeX 

_ENV[HOME] /root
_ENV[SHLVL] 3
_ENV[OSTYPE] linux
_ENV[LESS_ADVANCED_PREPROCESSOR] no
_ENV[XCURSOR_THEME] blueprint-cursor-theme
_ENV[no_proxy] localhost
_ENV[LS_OPTIONS] -a -N --color=tty -T 0
_ENV[WINDOWMANAGER] /usr/X11R6/bin/kde
_ENV[LOGNAME] root
_ENV[MACHTYPE] i686-suse-linux
_ENV[LESS] -M -I
_ENV[CVS_RSH] ssh
_ENV[LC_CTYPE] [EMAIL PROTECTED]
_ENV[LESSOPEN] lessopen.sh %s
_ENV[PKG_CONFIG_PATH] /opt/gnome/lib/pkgconfig
_ENV[USE_FAM] no value
_ENV[INFOPATH] /usr/local/info:/usr/share/info:/usr/info
_ENV[ACLOCAL_PATH] /opt/gnome/share/aclocal
_ENV[DISPLAY] :0.0
_ENV[ORACLE_HOME] no value
_ENV[LESSCLOSE] lessclose.sh %s %s
_ENV[G_BROKEN_FILENAMES] 1
_ENV[COLORTERM] no value
_ENV[JAVA_ROOT] /usr/lib/java
_ENV[_] /sbin/startproc
_ENV[PREVLEVEL] N
_ENV[RUNLEVEL] 5
_ENV[DAEMON] /usr/sbin/httpd
_ENV[SWFFONTPATH] /usr/share/php/swffonts
PHP License
This program is free software; you can redistribute it and/or modify it 
under the terms of the PHP License as published by the PHP Group and 
included in the distribution in the file: LICENSE

This program is distributed in the hope that it will be useful, but WITHOUT 
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 
FITNESS FOR A PARTICULAR PURPOSE.

If you did not receive a copy of the PHP license, or have any questions 
about PHP licensing, please contact [EMAIL PROTECTED]


1

Horst Jäger
Schaafenstr. 25
50676 Köln
Tel: 0221/93187015
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Newbie again: get no $QUERY_STRING

2004-10-27 Thread Horst Jäger
Date: Wed, 27 Oct 2004 12:50:36 +0200
To: [EMAIL PROTECTED]
From: Horst Jäger [EMAIL PROTECTED]
Subject: Newbie: get no $QUERY_STRING
Hi,
when I received my own mail back from the list I found that my example page 
has been removed. Maybe my mail program thought I was sending styled text. 
So I'm using these brackets [] in my example in order to fool the damned thing.

I'm afraid this might be a stupid question but this is my first PHP-day.
I get no $QUERY_STRING (and no GET- or POST-Params).
I'm using PHP 4.3.3 on a SUSE LINUX 9.0 Machine. When I view the following 
page:

[html][head][/head][body]
[?php
echo gettype($QUERY_STRING);
 ?]
[/body][/html]
I get:
NULL
I copy my phpinfo below in case someone wants to have a look at it.
Thanks
Horst

PHP Version 4.3.3
System  Linux wittgenstein 2.4.21-99-smp4G #1 SMP Wed Sep 24 14:13:20 UTC 
2003 i686
Build Date  Sep 24 2003 00:27:33
Configure Command  './configure' '--prefix=/usr/share' 
'--datadir=/usr/share/php' '--bindir=/usr/bin' '--libdir=/usr/share' 
'--includedir=/usr/include' '--sysconfdir=/etc' '--with-_lib=lib' 
'--with-config-file-path=/etc' '--with-exec-dir=/usr/lib/php/bin' 
'--disable-debug' '--enable-bcmath' '--enable-calendar' '--enable-ctype' 
'--enable-dbase' '--enable-discard-path' '--enable-exif' '--enable-filepro' 
'--enable-force-cgi-redirect' '--enable-ftp' '--enable-gd-imgstrttf' 
'--enable-gd-native-ttf' '--enable-inline-optimization' 
'--enable-magic-quotes' '--enable-mbstr-enc-trans' '--enable-mbstring' 
'--enable-mbregex' '--enable-memory-limit' '--enable-safe-mode' 
'--enable-shmop' '--enable-sigchild' '--enable-sysvsem' '--enable-sysvshm' 
'--enable-track-vars' '--enable-trans-sid' '--enable-versioning' 
'--enable-wddx' '--enable-yp' '--with-bz2' 
'--with-dom=/usr/include/libxml2' '--with-ftp' '--with-gdbm' 
'--with-gettext' '--with-gmp' '--with-imap=yes' '--with-iodbc' 
'--with-jpeg-dir=/usr' '--with-ldap=yes' '--with-mcal=/usr' '--with-mcrypt' 
'--with-mhash' '--with-mysql=/usr' '--with-ndbm' '--with-pgsql=/usr' 
'--with-png-dir=/usr' '--with-readline' '--with-snmp' '--with-t1lib' 
'--with-tiff-dir=/usr' '--with-ttf' '--with-freetype-dir=yes' '--with-xml' 
'--with-xpm-dir=/usr/X11R6' '--with-zlib=yes' '--with-qtdom=/usr/lib/qt3' 
'--with-gd' '--with-openssl' '--with-curl' 
'--with-swf=/usr/src/packages/BUILD/swf/dist/' '--with-imap-ssl' 
'--enable-xslt' '--with-xslt-sablot' '--with-iconv' '--with-mm' 
'--with-apxs=/usr/sbin/apxs' 'i586-suse-linux'
Server API  Apache
Virtual Directory Support  disabled
Configuration File (php.ini) Path  /etc/php.ini
PHP API  20020918
PHP Extension  20020429
Zend Extension  20021010
Debug Build  no
Thread Safety  disabled
Registered PHP Streams  php, http, ftp, https, ftps, compress.bzip2, 
compress.zlib

 This program makes use of the Zend Scripting Language Engine:
Zend Engine v1.3.0, Copyright (c) 1998-2003 Zend Technologies

PHP Credits

Configuration
PHP Core
Directive Local Value Master Value
allow_call_time_pass_reference On On
allow_url_fopen On On
always_populate_raw_post_data Off Off
arg_separator.input  
arg_separator.output  
asp_tags Off Off
auto_append_file no value no value
auto_prepend_file no value no value
browscap no value no value
default_charset no value no value
default_mimetype text/html text/html
define_syslog_variables Off Off
disable_classes no value no value
disable_functions no value no value
display_errors On On
display_startup_errors Off Off
doc_root no value no value
docref_ext no value no value
docref_root no value no value
enable_dl On On
error_append_string no value no value
error_log no value no value
error_prepend_string no value no value
error_reporting 2039 2039
expose_php On On
extension_dir /usr/share/extensions/no-debug-non-zts-20020429 
/usr/share/extensions/no-debug-non-zts-20020429
file_uploads On On
gpc_order GPC GPC
highlight.bg #FF #FF
highlight.comment #FF8000 #FF8000
highlight.default #BB #BB
highlight.html #00 #00
highlight.keyword #007700 #007700
highlight.string #DD #DD
html_errors On On
ignore_repeated_errors Off Off
ignore_repeated_source Off Off
ignore_user_abort Off Off
implicit_flush Off Off
include_path .:/usr/share/php .:/usr/share/php
log_errors Off Off
log_errors_max_len 1024 1024
magic_quotes_gpc On On
magic_quotes_runtime Off Off
magic_quotes_sybase Off Off
max_execution_time 30 30
max_input_time 60 60
memory_limit 8M 8M
open_basedir no value no value
output_buffering no value no value
output_handler no value no value
post_max_size 8M 8M
precision 12 12
register_argc_argv On On
register_globals Off Off
report_memleaks On On
safe_mode Off Off
safe_mode_exec_dir no value no value
safe_mode_gid Off Off
safe_mode_include_dir no value

[PHP] Newbie again: get no $QUERY_STRING

2004-10-27 Thread Horst Jäger
Date: Wed, 27 Oct 2004 12:50:36 +0200
To: [EMAIL PROTECTED]
From: Horst Jäger [EMAIL PROTECTED]
Subject: Newbie: get no $QUERY_STRING
Hi,
when I received my own Mail back from the list I found that my example page 
has been removed. Maybe my mail program thought I was sending styled text. 
So I'm using these brackets [] in my example in order to fool the damned thing.

I'm afraid this might be a stupid question but this is my first PHP-day.
I get no $QUERY_STRING (and no GET- or POST-Params).
I'm using PHP 4.3.3 on a SUSE LINUX 9.0 Machine. When I view the following 
page:

[html][head][/head][body]
[?php
echo gettype($QUERY_STRING);
 ?]
[/body][/html]
I get:
NULL
I copy my phpinfo below in case someone wants to have a look at it.
Thanks
Horst

PHP Version 4.3.3
System  Linux wittgenstein 2.4.21-99-smp4G #1 SMP Wed Sep 24 14:13:20 UTC 
2003 i686
Build Date  Sep 24 2003 00:27:33
Configure Command  './configure' '--prefix=/usr/share' 
'--datadir=/usr/share/php' '--bindir=/usr/bin' '--libdir=/usr/share' 
'--includedir=/usr/include' '--sysconfdir=/etc' '--with-_lib=lib' 
'--with-config-file-path=/etc' '--with-exec-dir=/usr/lib/php/bin' 
'--disable-debug' '--enable-bcmath' '--enable-calendar' '--enable-ctype' 
'--enable-dbase' '--enable-discard-path' '--enable-exif' '--enable-filepro' 
'--enable-force-cgi-redirect' '--enable-ftp' '--enable-gd-imgstrttf' 
'--enable-gd-native-ttf' '--enable-inline-optimization' 
'--enable-magic-quotes' '--enable-mbstr-enc-trans' '--enable-mbstring' 
'--enable-mbregex' '--enable-memory-limit' '--enable-safe-mode' 
'--enable-shmop' '--enable-sigchild' '--enable-sysvsem' '--enable-sysvshm' 
'--enable-track-vars' '--enable-trans-sid' '--enable-versioning' 
'--enable-wddx' '--enable-yp' '--with-bz2' 
'--with-dom=/usr/include/libxml2' '--with-ftp' '--with-gdbm' 
'--with-gettext' '--with-gmp' '--with-imap=yes' '--with-iodbc' 
'--with-jpeg-dir=/usr' '--with-ldap=yes' '--with-mcal=/usr' '--with-mcrypt' 
'--with-mhash' '--with-mysql=/usr' '--with-ndbm' '--with-pgsql=/usr' 
'--with-png-dir=/usr' '--with-readline' '--with-snmp' '--with-t1lib' 
'--with-tiff-dir=/usr' '--with-ttf' '--with-freetype-dir=yes' '--with-xml' 
'--with-xpm-dir=/usr/X11R6' '--with-zlib=yes' '--with-qtdom=/usr/lib/qt3' 
'--with-gd' '--with-openssl' '--with-curl' 
'--with-swf=/usr/src/packages/BUILD/swf/dist/' '--with-imap-ssl' 
'--enable-xslt' '--with-xslt-sablot' '--with-iconv' '--with-mm' 
'--with-apxs=/usr/sbin/apxs' 'i586-suse-linux'
Server API  Apache
Virtual Directory Support  disabled
Configuration File (php.ini) Path  /etc/php.ini
PHP API  20020918
PHP Extension  20020429
Zend Extension  20021010
Debug Build  no
Thread Safety  disabled
Registered PHP Streams  php, http, ftp, https, ftps, compress.bzip2, 
compress.zlib

 This program makes use of the Zend Scripting Language Engine:
Zend Engine v1.3.0, Copyright (c) 1998-2003 Zend Technologies

PHP Credits

Configuration
PHP Core
Directive Local Value Master Value
allow_call_time_pass_reference On On
allow_url_fopen On On
always_populate_raw_post_data Off Off
arg_separator.input  
arg_separator.output  
asp_tags Off Off
auto_append_file no value no value
auto_prepend_file no value no value
browscap no value no value
default_charset no value no value
default_mimetype text/html text/html
define_syslog_variables Off Off
disable_classes no value no value
disable_functions no value no value
display_errors On On
display_startup_errors Off Off
doc_root no value no value
docref_ext no value no value
docref_root no value no value
enable_dl On On
error_append_string no value no value
error_log no value no value
error_prepend_string no value no value
error_reporting 2039 2039
expose_php On On
extension_dir /usr/share/extensions/no-debug-non-zts-20020429 
/usr/share/extensions/no-debug-non-zts-20020429
file_uploads On On
gpc_order GPC GPC
highlight.bg #FF #FF
highlight.comment #FF8000 #FF8000
highlight.default #BB #BB
highlight.html #00 #00
highlight.keyword #007700 #007700
highlight.string #DD #DD
html_errors On On
ignore_repeated_errors Off Off
ignore_repeated_source Off Off
ignore_user_abort Off Off
implicit_flush Off Off
include_path .:/usr/share/php .:/usr/share/php
log_errors Off Off
log_errors_max_len 1024 1024
magic_quotes_gpc On On
magic_quotes_runtime Off Off
magic_quotes_sybase Off Off
max_execution_time 30 30
max_input_time 60 60
memory_limit 8M 8M
open_basedir no value no value
output_buffering no value no value
output_handler no value no value
post_max_size 8M 8M
precision 12 12
register_argc_argv On On
register_globals Off Off
report_memleaks On On
safe_mode Off Off
safe_mode_exec_dir no value no value
safe_mode_gid Off Off
safe_mode_include_dir no value