[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

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

2001-05-09 Thread Franklin van Velthuizen
*no* idea what causes it though... :( 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

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; $i<2; $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 Maili

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

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

2001-08-30 Thread Franklin van Velthuizen
me? header("Content-Disposition: filename=$filename"); / franklin -- 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: [EMA

Re: [PHP] File read Parser error

2001-08-30 Thread Franklin van Velthuizen
ts = fread($toread, filesize($filename)); >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 PR

Re: [PHP] Recursivly Updating Files

2001-09-03 Thread Franklin van Velthuizen
ng the manual every now and then wouldn't hurt... really, it wouldn't :). 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 speci

[PHP] Re: command line parser

2001-09-05 Thread Franklin van Velthuizen
> Does anyone know if there's a php command line parser, > that lets you run php-scripts from the command prompt instead of running > them over http. (much like perl) Make sure you compiled php as a binary.. and then start your script with: #!/path/to/php -q Then simply perform a chmod 755 or

Re: [PHP] what does this line means? Many thanks

2001-09-05 Thread Franklin van Velthuizen
> thanks, another question is what does the ? means in this line? >From the PHP manual: Another conditional operator is the "?:" (or ternary) operator, which operates as in C and many other languages. (expr1) ? (expr2) : (expr3); This expression evaluates to expr2 if expr1 evaluates to TRUE, a

[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 imag

[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 usern

[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 no

[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