[PHP] Re: regexp (?:

2001-09-11 Thread Franklin van Velthuizen
Andrew Perevodchik [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Why doesn't this simple example work? ereg (aaa(?:bbb|ccc)aaa, $string); It causes an error. However ?: command is documented in a manual of my version of PHP4. It would probably be useful if

[PHP] Re: Suggesting a file name.

2001-09-07 Thread Franklin van Velthuizen
Theodore Brinkman [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I wrote a small script to generate an image file containing a version number for use in some web apps we are coding at work. The problem is, that with an up-to-date version of IE, the image

[PHP] Re: how to pass authentication info to SMTP server

2001-09-07 Thread Franklin van Velthuizen
Balaji Ankem [EMAIL PROTECTED] wrote in message 01bc01c137e0$280b0f60$[EMAIL PROTECTED]">news:01bc01c137e0$280b0f60$[EMAIL PROTECTED]... Hi friends, I would like to implement sending an e-mail through SMTP server. Here my SMTP server needs authentication. How to pass the username and

[PHP] Re: clear contents?

2001-09-07 Thread Franklin van Velthuizen
Jeremy Morano [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi everone... I'm having a little problem. The code below pops up a password dialog box where the user types in a username and a password to be able to proceed. However, if the user does not close

Re: [PHP] Recursivly Updating Files

2001-09-03 Thread Franklin van Velthuizen
). snip auto_prepend_file string Specifies the name of a file that is automatically parsed before the main file. The file is included as if it was called with the include() function, so include_path is used. The special value none disables auto-prepending. /snip -- Franklin van Velthuizen

Re: [PHP] Quick TXT document stuff

2001-08-30 Thread Franklin van Velthuizen
Kyle Smith wrote: ok i have this code to do whats below, but its not working Try to use file(), which will return an array. So that would be: $lines = file(filename); for($i=0; $i2; $i++) { print($lines[$i]); } /franklin -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] [PHP406]:No HTTP_POST_FILES on WinNT?

2001-08-30 Thread Franklin van Velthuizen
[EMAIL PROTECTED] wrote: Whatever I do (phpinfo(), echo $HTTP_POST_FILES['userfile']['type']) to display the array $HTTP_POST_FILES , I get nothing. Did you include enctype=multipart/form-data in your form tag? /franklin -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] If statement within a variable?

2001-08-30 Thread Franklin van Velthuizen
Brandon Orther wrote: Hello, Is there a way to put an if statement in a variable? For example: $var = Hello.IF($var2 = 1) { .Mr. Bean. } else { .New Comer. }. To The Coffee House.; $var = Hello .($var2==1 ? Mr. Bean : New Comer); /franklin -- PHP General Mailing List

Re: [PHP] headers...

2001-08-30 Thread Franklin van Velthuizen
Nic Skitt wrote: Hi all, I am constantly getting Headers already sent errors. What I dont understand is why when I read something that could have come from a cookie or session does that right out to headers. eg: if (!$HTTP_COOKIE_VARS[TrackID]){ } The header error refers to this line as

Re: [PHP] How to Return a Real Filename?

2001-08-30 Thread Franklin van Velthuizen
-- Franklin van Velthuizen [EMAIL PROTECTED]+46-(0)70-6786613 Ebiris Applications AB http://www.ebiris.se/ +46-(0)19-109917 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact

Re: [PHP] File read Parser error

2001-08-30 Thread Franklin van Velthuizen
)); fclose($toread); echo $contents; ? It would be useful if you would point out which error it is you are encountering. / franklin -- Franklin van Velthuizen [EMAIL PROTECTED]+46-(0)70-6786613 Ebiris Applications AB http

[PHP] passing parameters in the url using forward slashes

2001-05-09 Thread Franklin van Velthuizen
like: http://blabla/file.php/value and use value as a parameter, obviously. I just tried it, but all I got was an internal server error :(. Anyone who knows *anything* about this? Take care, /franklin -- Franklin van Velthuizen [EMAIL PROTECTED]+46-(0)19-10 99 17 Ebiris AB

Re: [PHP] passing parameters in the url using forward slashes

2001-05-09 Thread Franklin van Velthuizen
... :( Any ideas, anyone? /Franklin -- Franklin van Velthuizen [EMAIL PROTECTED]+46-(0)19-10 99 17 Ebiris AB www.ebiris.se +46-(0)19-10 99 10