[PHP] ld: fatal: Symbol referencing errors.

2001-03-20 Thread Jimmy Lantz
Hi, I was wondewring if someone know the reason to the error below, I'm no Unix guru and my sysadm says he cant get ldap to work due to this, is there anyone who tell me what to tell him to get it to work? greetings Jimmy Lund Sweden //ERROR ENCLOSED BELOW. gcc -DSOLARIS2=260

[PHP] readfile or fopen? (Passing file to user...)

2002-03-12 Thread Jimmy Lantz
Hi, I wonder if there's a better way (more effective, less resource consuming ) to pass a file to a user than the ones I put below. This might be quite large files more than 100 mb. Mind this might be all kind of files (binary and others) and must preserve the files state. //Sending approriate

[PHP] Appropriate headers for Forcing download on IE/Mac and open with stuffit?

2002-03-18 Thread Jimmy Lantz
Hi, I know it has been discussed before but I havent seen any working solutions. My problem is that I need to force a dowload for Mac users / IE and preferably also automatically let them open the file with stuffit expander. (it works with files downloaded from a webpage/apache without PHP) So

[PHP] Resume/recover uploads in PHP 4.2 ? WAS: RE: upload forms, how much was uploaded before upload fails..

2002-03-25 Thread Jimmy Lantz
Hi following up on the text below... Will there then be possible to recover uploads in 4.2? Maybe even resuming uploads? (wishfull thinking) ? Cheers Jimmy Rasmus Lerdorf wrote: Re: [PHP] upload forms, how much was uploaded before upload fails.. You'll probably need PHP 4.2 for uploads that big

[PHP] mimeexplode counterpart in php?

2002-03-25 Thread Jimmy Lantz
Hi! I wonder if there's such a thing as a counterpart in PHP for MimeExplode in PERL? MimeExplode takes a email and splits the attachments and text so that you can save it automatically to a certain dir by using .forward files. Or something alike to it in PHP. I've been looking at IMAP

[PHP] STDIN/STDOUT in PHP

2002-06-09 Thread Jimmy Lantz
I've been looking for a way to work with stdin/stdout for a mod_rewrite's rewritemap. There's a working example in Perl, (just returning the input) #!/usr/bin/perl $| = 1; while (STDIN) { print $_; } I've been trying to achieve this with fopen() read and write the php://stdin

[PHP] [PHP 4.2.0] Benchmarking file uploads?

2002-04-24 Thread Jimmy Lantz
Hi, I'm looking into the new version of PHP it says in the changelog Highly improved performance with file uploads Has there been any benchmarking done on this? / Jimmy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] [PHP 4.2.0] HTTP PUT method $_FILES ?

2002-05-10 Thread Jimmy Lantz
Hi, I'm trying to get the PUT method working on a Apache server running PHP as module. Theese are the steps I've taken so far: - I see in my apache logs that I've got PUT requests PUT /path/filename.html HTTP/1.1 OK - I've added Script PUT /put.php , And checked so that the requests are beeing

[PHP] Re: [[PHP] php problem]

2002-05-10 Thread Jimmy Lantz
johnny1b1g [EMAIL PROTECTED] wrote: ? Well I guess I could try to help you if you elaborate your question a bit further. / Jimmy Start with RTFM :-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List

[PHP] Sane path? Avoiding people climbing in directory structure ../../

2002-05-20 Thread Jimmy Lantz
Hi, I'm planning on using userinput as a part of path to read (horrific I know :) So to make this userinput a bit more secure I'm thinking to use $path = escapeshellarg($path); $path = str_replace(../,,$path); I'm thinking to use a basedir in a constant something like /usr/home/userdir (this

[PHP] Mcrypt: Blowfish or Twofish or no fish?

2002-05-21 Thread Jimmy Lantz
Hi, started playing with Mcrypt and just wanted to ask which encryption method makes the stronger encryption? (I can supply the necesary keylength). Should I go for MCRYPT_BLOWFISH or MCRYPT_TWOFISH? Or no fish at all :) So what do I need it for? I'm going to use it encrypting files, sizes

[PHP] Mcrypt: Blowfish or Twofish or no fish? Part 2

2002-05-22 Thread Jimmy Lantz
Thanx for the suggestions! Someone mentioned that I could use MD5 and then encrypt the hash, how would I ever decrypt that? Is'nt MD5 a 1-way thing only? Another question? Should I go for bigger keylength or bigger blocksize or both? What makes for the best encryption? / Jim (and before

RE: [PHP] Mcrypt: Blowfish or Twofish or no fish? part 3

2002-05-22 Thread Jimmy Lantz
I believe that twofish has been successfully broken, so use blowfish instead. Typically, for encrypting files you will use an algorithm like blowfish in cbc mode (as opposed to ebc mode) but I don't know if Mcrypt supports this. Also, when creating the hash of the file, it is probably best to

[PHP] (Unlink(file) == rm file) ? (ignore this mail):(explain diffs);

2002-05-28 Thread Jimmy Lantz
Hi, (Unlink(file) == rm file) ? (ignore this mail):(explain diffs); Does PHP unlink function handle deletion of files equally as the rm command on the system in my case FreeBSD. Or does it involve caching/handling files in any different way? / Jim -- PHP General Mailing List

[PHP] parse error is always on line 1 == error ?

2001-04-27 Thread Jimmy Lantz
) Please help me out on this one. Best wishes Jimmy Lantz Sweden

Re: [PHP] parse error is always on line 1 == error ?

2001-04-27 Thread Jimmy Lantz
Yes, thank you you're right this is exactly what it was, I used Dreamweaver on a mac to edit the files, but now if I encounter parse error I convert them with BBEdit. Thank you. Jimmy Lantz I use BBEdit on the Mac, uploading PHP code to a Unix server, and I get parse errors on line 1 unless I

[PHP] How do I call_user_func_array() on 4.0.1pl2 ?

2001-04-28 Thread Jimmy Lantz
Hi, I wonder if there's a way to get the same result as with call_user_func_array()on 4.0.1pl2 . I need to do the following : foreach($formArray as $arrays){ foreach($arrays as $key = $value){ call_user_func_array($key, explode

[PHP] How do I call_user_func_array() on 4.0.1pl2 ?

2001-04-28 Thread Jimmy Lantz
Hi, I wonder if there's a way to get the same result as with call_user_func_array() on 4.0.1pl2 . I need to do the following : foreach($formArray as $arrays){ foreach($arrays as $key = $value){ call_user_func_array($key, explode (,, $value)); //Not working since I

Re: [PHP] Going crazy again ...

2001-05-01 Thread Jimmy Lantz
Hej, jag hade nog inte använt åäö i case men det är bara en vana, kanske du kan använda en dold variabel via html-formuläret istället och använda den i case satsen? Men det svarar ju inte på din fråga men lycka till. / iImmy Martin Skjöldebrand wrote: Going grey haired again. In this code

[PHP] PHP logo question

2004-01-12 Thread Jimmy Lantz
Hi coders, I've sent several mails to [EMAIL PROTECTED] regarding the limitations / rights to use the PHP logo. But I havent recieved any reply, does anyone know who answers that email? If so please send him/her an heads up to check his/hers inbox. Now you might think that I've been sending

Re: [PHP] Empty Reference to an Object

2004-01-13 Thread Jimmy Lantz
At 16:14 2004-01-13, you wrote: Hello Sebastian, Tuesday, January 13, 2004, 3:09:39 PM, you wrote: SO I cannot believe that there is no way of making an object parameter SO optional. function ($parameter1, $parameter2 = NULL) { // etc } If passed to your function, $parameter2 will be your