[PHP] Post vars without using html form

2004-09-26 Thread Harry.de
Does anybody know, how to post vars without using html. I'd like to send data to an external website and receive the http answer. The external website awaits post vars from a form. Tanks, Harry -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] http username

2004-05-02 Thread Harry.de
If a user is logged in via http (authentification e.g. with .htaccess and .htpasswd file), how can i get the username of the current logged in user? Thanx Harry -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] loosing var in class / function

2004-02-04 Thread Harry.de
How can i save a variable in a function? The lower example doesn't work. The var is always an empty string! Anyone any solution? --- $some_var = foobar; require('something.php'); class SOMECLASS { function SomeFunction() {

[PHP] Where is the mistace? Warning: ftp_put(): 'STOR ' not understood.

2004-01-15 Thread Harry.de
Does anybody now, what this error message mean? I can see no mistace in my code: $mode = FTP_BINARY; $picuploadname = $picupload[$i]; $piclocalname = ../pictures/.$piclocal[$i]; ftp_put($conn_ftp,$picuploadname ,$piclocalname ,$mode); The connection is correct and the files are putted but there

[PHP] Operation in an Array

2003-12-14 Thread Harry.de
How can i make an operation like adding variables in an array for example $array[$a+$b]; Thanks Harry -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] numberformat

2003-07-14 Thread Harry.de
Is there a way, to define an integer number e.g. 7, to be defined as 07? (Maybe with numberformat) Harry -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] mysql - get actual row

2003-06-10 Thread Harry.de
Hi, if i insert into a mysql table a row e.g. mysql_query(INSERT into TEST (testfield) VALUES ('This is a test')); and the first field is an auto increment (e.g. NR), how can i get the value of the auto increment NR i've actually inserted? Tanks Harry -- PHP General Mailing List

[PHP] mySQL query - command LIKE OR =

2003-03-28 Thread Harry.de
Hi, i want to make a mySQL query where the result should be in $result1 any sting with a phrase of $search in $result2 any sting with the exact phrase of $search $result1 works fine, but $result2 gives out an empty sting $result1 = mysql_query(SELECT name FROM table WHERE name LIKE

[PHP] Zero Fill - Number Format

2003-03-19 Thread Harry.de
How can I put out a Zero Fill for numbers The result should be $something=26; echo $something; e.g. 026 I didn't found a solution with number format. Is there any other way? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] fscanf - string format - clear discription

2002-08-21 Thread Harry.de
where can i find a discription of the possible options for the sting format in the fscanf command [ fscanf ( int handle, string format [, string var1]) ] For example, what means: %s\t or %s\n in the command fscanf ($fp, %s\t%s\t%s\n); -- PHP General Mailing List

[PHP] include opens source, but it shouldn't

2002-08-15 Thread Harry.de
why does include always opens my included file although it is defined as a variable Example: $file=include(/myfile/myfile.txt/); shouldn't it only be opend by typing echo $file; ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] how many files are in a directory

2002-08-14 Thread Harry.de
does anybody now a way in php to read out, how many files are in a directory -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php