[PHP] Copy function usage ?

2001-08-09 Thread Tamas Bucsu

Hi guys,

I have a problem that's killin' me. As I'm not very good at Linux I don't know how to 
set the properties of the folder pics to be able to use the copy function. (If I'm 
right and the problem is not some else) Please help. Here's the code:

if (file_exists($userfile)) {
copy("$userfile","pics/".$userfile);
} else {
echo "Nem sikerül a következõ file-t feltölteni:".$userfile;
}

thx

Tamas Bucsu



[PHP] How to get the query string?

2001-08-13 Thread Tamas Bucsu

hi guys,

I'd like to get the query string the browser sends to the script. The problem is that 
since the $HTTP_POST_VARS (or $HTTP_GET_VARS ) is an associative array I can't use 
numbers to point to the elements of this array. This piece of code does not work:

for ($a=1;$a<=sizeof($HTTP_POST_VARS);$a++){
 echo "$a. ".$HTTP_POST_VARS[$a]."";
}

Please help

Tamas Bucsu



[PHP] Mail method?

2001-08-15 Thread Tamas Bucsu

Hi guys,

Is there anything I should configure or set up on the server to make the "mail" method 
work? There is nothing about it in the manual (or I just haven't found it?).

Thanks

Tamas "Bucsesz" Bucsu



[PHP]

2001-08-17 Thread Tamas Bucsu

Hi guys,

Is there any restriction on a multiple selectás name in an HTML file? Cos' If I give a 
name like 'msel' and not 'msel[]' I don't get an array named $msel just a simple 
string type variable.

Thanks in advance



[PHP] How to download a picture thru http://?

2001-08-24 Thread Tamas Bucsu

Hi guys,

Is there any special way to get some pics from the web? Cos' what I wrote just does 
not work. Thanks


  if (file_exists($kepnev)){

 $kepnev="http://www.stg/pics/somethinggy.jpg";];

   $fdr = fopen($kepnev,"r");
   $fdw = fopen($kepnevshort,"w");
   while (!feof($fdr)) {
fputs ($fdw,fgets($fdr, 4096));

   }

   fclose($fdr);
   fclose($fdw);
  }
 }