Re: [PHP] redirect http to https

2007-04-10 Thread Jason Karns
On 4/10/07, Zoltán Németh <[EMAIL PROTECTED]> wrote: I have separate document roots for the http and the https stuff, say "htdocs" and "htdocs-secure" - this can be done with apache configuration then I need only to put a single redirecting line into the htdocs/index.php like https://my.server.c

[PHP] Password Protect Directory

2007-03-04 Thread Jason Karns
I'm trying to find a way to password protect a directory. I currently have an authentication and authorization system in place for pages in my directory. I'd prefer to use my existing system somehow (as it includes OpenID authentication) as opposed to using htaccess and HTTP Auth. The only idea

[PHP] XSLTProcessor->transformToURI() error handling

2007-01-28 Thread Jason Karns
fied file remains as it was before the operation. In other words, I'd like the destination file to be written to IF and ONLY IF the transformation is successful. Is this the case? Jason Karns ~~~ The Ohio State University [www.osu.edu] Computer Science & Engineering [www.cse.osu.ed

[PHP] Logical OR in assignment

2006-09-27 Thread Jason Karns
I once saw the use of OR (|) in assignment. $x = $y | $z; Does this use bitwise OR? I'm trying to see if I could use the above expression in place of: $x = is_null($y) ? $z : $y; Jason Karns ~~~ The Ohio State University [www.osu.edu] Computer Science & Engineering [www.cs

[PHP] RE: SPL Iterator and Associative Array

2006-06-02 Thread Jason Karns
> -Original Message- > From: Greg Beaver [mailto:[EMAIL PROTECTED] > Sent: Friday, June 02, 2006 10:39 PM > To: Jason Karns > Cc: php-general@lists.php.net > Subject: Re: SPL Iterator and Associative Array > > Jason Karns wrote: > > I'm going to try my

[PHP] SPL Iterator and Associative Array

2006-06-02 Thread Jason Karns
ecause it wasn't moving the internal array pointer. So I tried making the method smalls return a reference. Doing that made the following work perfectly: reset($folio->smalls()); while($s = current($folio->smalls())){ echo $folio->small(); next($folio->smalls()); } But t

RE: [PHP] Re: array variables with or without quotes

2006-02-22 Thread Jason Karns
I believe it is because without the quotes, it is expecting a predefined constant. With the quotes, it is expecting an array key. This is why if you use a word that is not defined as a constant, php will first look for it as a constant, won't find it, then looks through the array treating it like

RE: [PHP] Re: [PHP-DB] Drag and Drop with PHP and MySQL

2005-11-20 Thread Jason Karns
I've used this (radlinks upload) on one of my sites and it works great. Drag and drop, even multiple files. Jason Karns ~~~ Web Designer & Applications Programmer 3AM Productions - Things look different @3AM -Original Message- From: Joe Harman [mailto:[EMAIL PROTECT

RE: [PHP] fckeditor and PDF and pesky users

2005-10-17 Thread Jason Karns
a deprecated tag, but using an embed tag with a src value pointing to a PDF file (with appropriate height/width) will render the entire Adobe plugin with toolbars and all directly in the page, as demonstrated here: http://www.cstv.com/auto_pdf/p_hotos/s_chools/osu/sports/m-footbl/auto_pdf/w eekly-release Jason Karns -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php