[PHP] popen(); problem, the function don`t finds the command...

2002-04-09 Thread Hermann

Hi!!

i`ve wrote a little script to run under shell, so this script:
#!/usr/bin/php
$saslpasswd = /usr/sbin/saslpasswd -p $username;
$saslproc = popen($saslpasswd,w);
fputs($saslproc, $passwd);
pclose($saslproc);

php-parser gives me the following as output:
#
sh: /saslpasswd: No such file or directory
#

what i`m doing wrong??


please help.


bye


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] popen(); problem, the function don`t finds the command......

2002-04-11 Thread Hermann Bier

Hi!!

i`ve wrote a little script to run under shell, so this script:
#!/usr/bin/php
$saslpasswd = /usr/sbin/saslpasswd -p $username;
$saslproc = popen($saslpasswd,w);
fputs($saslproc, $passwd);
pclose($saslproc);

php-parser gives me the following as output:
#
sh: /saslpasswd: No such file or directory
#

what i`m doing wrong??


please help.


bye


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] getting the value of a javascript variable

2002-06-24 Thread Otteneder Hermann


hi everybody,

i have a short problem:
i have two drop down menues in a form. the content of the second dropdown is
dependent from the selection in the first dropdown menue. now i want write a
short javascript which runs on the onSelect - event of the first dropdown.
this script gives me the selected entry of the first dropdown menue. now i
have to give this value somehow into the PHP-environment for a DB-Query.
The feched data i want dynamically fill into the second dropdown. But how do
I get the value from the javascript variable into the php environment
without an submit of the form?? has enybody a solution for this?

thanx so far - hermann...




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] how to give vars to a php(shell env) script?

2002-04-23 Thread Hermann Bier

Hi NG!

how could i give some vars to a php script, that is directly executed by 
php-parser. for instance:

#!/usr/bin/php -q
?
echo $SOME_VAR;
?

is it possible at all?

thanx for advance.

Hermann Bier


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] how to give vars to a php(shell env) script?

2002-04-23 Thread Hermann Bier



Martin Towell wrote:

 try setting an environment variable before calling your script
 
 
 -Original Message-
 From: Hermann Bier [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, April 24, 2002 12:34 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] how to give vars to a php(shell env) script?
 
 
 Hi NG!
 
 how could i give some vars to a php script, that is directly executed by 
 php-parser. for instance:
 
 #!/usr/bin/php -q
 ?
 echo $SOME_VAR;
 ?
 
 is it possible at all?
 
 thanx for advance.
 
 Hermann Bier
 
 
 

so actually, i want to execute this ^ script from another php 
script, which gonna be executed by apache.

thx

Hermann Bier


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] general question

2003-05-30 Thread laurent hermann
hello

i need to make a standalone application from a web php site.

how can i use php-gtk ?

how can i package this application ?



thanks



[PHP] Object member variable names

2002-08-26 Thread Karl Moritz Hermann

Hi,

I've got a little problem with variable naming of object members. Here is my
situation: I've got a website form, whoms contents will be saved in a MySQL
table with two fields: name and value. The name could be anything like
bla-test, array[3]-test[4]-name...

Now I have a php script reading out the MySQL table, and I want to assign
the variables like this:
$object-$name, i.e.
$object-bla-test = some value;
$object-array[3]-tes[4]-name = some other value; etc.

Using $object-$name doesn't work, as this seems to ignore submembers and
arrays.
Any ideas how to solve my problem?

Regards,

Karl

-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] htmlentities() and default_charset

2008-11-08 Thread Jim Hermann - UUN Hostmaster
Folks,

Why should htmlentities() use the default_charset for $charset with this
example, taken from ext/standard/tests/strings/htmlentities10.phpt?

?php
ini_set('mbstring.internal_encoding','pass');
ini_set('default_charset','cp1252');
var_dump(htmlentities(\x82\x86\x99\x9f, ENT_QUOTES, ''));
?

The test script expects the output to be:
string(28) sbquo;dagger;trade;Yuml;

According to the PHP Manual, the htmlentities() syntax is:

string htmlentities  ( string $string  [, int $quote_style  [, string
$charset  [, bool $double_encode  ]]] )

For the parameter charset:

Like htmlspecialchars(), it takes an optional third argument charset which
defines character set used in conversion. Presently, the ISO-8859-1
character set is used as the default.  It goes on to list the supported
values for charset and states:  Note:  Any other character sets are not
recognized and ISO-8859-1 will be used instead.

Therefore, when $charset = '' I would expect that
htmlentities(\x82\x86\x99\x9f, ENT_QUOTES, '') would use ISO-8859-1 since
the null string is not listed as a supported value.  Also, it does not
mention the use of default_charset.  Furthermore, when default_charset = '',
PHP states that ISO-8859-1 will be used as the default.

Since the $charset is optional, I would expect
htmlentities(\x82\x86\x99\x9f, ENT_QUOTES) would use the default_charset,
but not htmlentities(\x82\x86\x99\x9f, ENT_QUOTES, '').  However, test
scripts ext/standard/tests/strings/htmlentities10.phpt, htmlentities11.phpt,
and htmlentities13.phpt all expect the default_charset to be used when
charset=''.

Thanks.

Jim
-
Jim Hermann [EMAIL PROTECTED]
UUism Networks http://www.UUism.net
Ministering to the Needs of Online UUs
Web Hosting, Email Services, Mailing Lists
-


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php