[PHP] Photoshop 6.0 & later + IPTC functions?

2002-12-11 Thread Ryan Gallagher
Does anyone know if there is a workable method currently for writing IPTC tags
to JPG & TIFF files using PHP 4.2.3 specifically with the intent to read these
written tags with photoshop 6.0 and later??  

Currently we can set and read tags in PHP, but photoshop only sees any tags that
it originally created.  I have seen articles mentioning photoshop somehow
breaking the standard recently, is this issue resolved/resolveable?

Tips, points, and code snippets appreciated!

-- 
Ryan T. Gallagher



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] How to: If($var != '#' OR '#')

2002-11-20 Thread Ryan Gallagher
Quoting Jason Wong <[EMAIL PROTECTED]>:

> On Thursday 21 November 2002 01:34, Ryan Gallagher wrote:
> 
> > Try:
> >
> > if( ( $_GET['sc'] != 2 ) OR ( $_GET['sc'] != 8 ) ){
> >   /*
> >* Do Foo provided sc is anything but a 2 or 8
> >*/
> >   do foo;
> > }
> >
> > Assuming of course that you meant to exclude cases of 2 or 8.  It's a bit
> > hard to tell what your intended event for 8 is.
> 
> The above would not have the intended effect. My boolean maths is extremely 
> rusty but I think it is equivalent to saying:
> 
>   if (!($_GET['sc'] == 2  AND  $_GET['sc'] == 8))
> 
> Which means your code above is *always* TRUE, so do foo is always executed!
> 
> In any case you can easily test it by mentally plugging in values 1 to 8 for
> 
> $_GET['sc'] and evaluating it for yourself.

I'll shut up now, teaches me to reply to this list too early in the morning and
without coffee. ;-)

BTW, what I posted would ALWAYS execute, because of _OR_.  If it's 2, then it's
not 8, so one of the two sides would be true.

Here's a corrected one:

if( ( $_GET['sc'] != 2 ) AND ( $_GET['sc'] != 8 ) ){
   /*
* Do Foo provided sc is anything but a 2 or 8
*/
   do foo;
 }

-- 
Ryan T. Gallagher
[EMAIL PROTECTED]
International Studies Abroad
http://www.studiesabroad.com
(512)480-8522



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Problem whith query in query

2002-11-20 Thread Ryan Gallagher
Quoting Ernest E Vogelsinger <[EMAIL PROTECTED]>:

> At 18:29 20.11.2002, Ryan Gallagher said:
> [snip]
> >SELECT * FROM identifisering as i
> >WHERE i.identifiseringid = (
> >SELECT MAX(ii.identifiseringid) AS maxIdentifiseringid
> >FROM identifisering as ii
> >  )
> >GROUP BY dprosjekt
> >
> >Now that I look at it, your GROUP BY was definitely out of place, since
> >dprosjekt no doubt is a col being returned from the SELECT * of the main
> >query.
> [snip] 
> 
> No, it wasn't.
> You need the GROUP BY in the subquery to retrieve the max(id) for any
> distinct dprosjekt. If you have it like you did the subquery would simply
> return a single result, the max(id) of all records. Your version simply
> functions as an "order by" which is useless here since only a single record
> will be returned.

Sorry, that's what I was trying to decipher... The '=' combined with the use of
MAX led me to believe the desired recordset size was ONE in the sub query.


-- 
Ryan T. Gallagher
[EMAIL PROTECTED]
International Studies Abroad
http://www.studiesabroad.com
(512)480-8522



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] How to: If($var != '#' OR '#')

2002-11-20 Thread Ryan Gallagher
Quoting Jami <[EMAIL PROTECTED]>:

> I have code that says:
> 
> if($_GET['sc'] != '2' OR '8'){
> do this.
> }
> 
> but I doesn't work. What do I need to do to get it to work? I have checked
> operator precendence and all that and am still confused on whether I should
> be using '||' or 'OR' or something else... I have tried both of those, as
> well as 'XOR' and '^'. Help please!
> 
> Jami

Try:

if( ( $_GET['sc'] != 2 ) OR ( $_GET['sc'] != 8 ) ){
  /* 
   * Do Foo provided sc is anything but a 2 or 8 
   */
  do foo; 
}

Assuming of course that you meant to exclude cases of 2 or 8.  It's a bit hard
to tell what your intended event for 8 is.

-- 
Ryan T. Gallagher
[EMAIL PROTECTED]
International Studies Abroad
http://www.studiesabroad.com
(512)480-8522



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Problem whith query in query

2002-11-20 Thread Ryan Gallagher
Quoting Ernest E Vogelsinger <[EMAIL PROTECTED]>:

> At 04:57 18.11.2002, Lars Espelid said:
> [snip]
> >I tought this would work, but it won't:
> >
> >SELECT * FROM identifisering as i
> >WHERE i.identifiseringid=(SELECT MAX(ii.identifiseringid)
> >FROM identifisering as ii
> >GROUP BY dprosjekt);
> >
> >also tried:
> >
> >SELECT * FROM identifisering as i
> >WHERE i.identifiseringid IN (SELECT MAX(ii.identifiseringid)
> >FROM identifisering as ii
> >GROUP BY dprosjekt);
> [snip] 
> 
> The only thing I can say the second form (using IN) works like a charm in
> PostgreSQL:
> 
> select * from identifisering as i
> where i.identifiseringid in (
> select max(ii.identifiseringid) from identifisering as ii
> group by ii.dprosjekt
> );
> 
> If it doesn't work in MySQL it must be one of the unfortunately numerous
> shortcomings of MySQL. I always suggest using PostgreSQL in favour of
> MySQL; it's OS as well, it's mature, it's fast (faster than MySQL AFAIK),
> etc etc. And it comes bundled with at least RedHat, but I believe it's
> available with most Linux distros.

If you seek many records, use _IN_ (will also work with one record).  If you are
 indeed seeking one record, the GROUP BY seems out of place.  

Also in my experience with MSSQL, the SELECT MAX() syntax almost always requires
that you assign that result to a name. 

ie:
SELECT * FROM identifisering as i
WHERE i.identifiseringid = (
SELECT MAX(ii.identifiseringid) AS maxIdentifiseringid
FROM identifisering as ii
  )
GROUP BY dprosjekt

Now that I look at it, your GROUP BY was definitely out of place, since
dprosjekt no doubt is a col being returned from the SELECT * of the main query.

-- 
Ryan T. Gallagher
[EMAIL PROTECTED]
International Studies Abroad
http://www.studiesabroad.com
(512)480-8522



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Re: PHP Application Framework

2002-11-20 Thread Ryan Gallagher
Quoting Alexandru COSTIN <[EMAIL PROTECTED]>:

> Hello,
> You could check Krysalis, http://www.interakt.ro/products/Krysalis/
> 
> It's GPL, and it has a lot of powerful features included, as it's based on 
> XML and XSL.
> 
> Alexandru
> > Hi all,
> > 
> > 
> > Does anyone have a recommendation for a stable yet flexible application
> > framework for PHP?
> > 
> > Something similar to Midgard that will run on Windows would be nice.
> > 
> > Thanks!

If you mean PHP Application Framework (and not IDE). 
 http://www.horde.org 

(some of the modules require linux servers, but the framework itself is very
robust and should be cross-platform, we use many of the project modules and some
of our own in a production enviornment).

-- 
Ryan T. Gallagher
[EMAIL PROTECTED]
International Studies Abroad
http://www.studiesabroad.com
(512)480-8522



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php