php-general Digest 23 Apr 2005 01:23:04 -0000 Issue 3413

Topics (messages 213643 through 213707):

image maps in PHP
        213643 by: Dasmeet Singh
        213644 by: Mike
        213645 by: Mark Rees
        213648 by: Brian V Bonini
        213649 by: Dasmeet Singh
        213650 by: Mark Rees
        213651 by: Dasmeet Singh
        213652 by: Dasmeet Singh
        213654 by: Mike
        213691 by: Richard Lynch

Re: 1 web site, 3 servers, 3 countries - best practises?
        213646 by: Dasmeet Singh
        213647 by: Dasmeet Singh
        213692 by: Richard Lynch
        213698 by: Christopher Fulton

Re: Easy question about XML parsing
        213653 by: Jason Barnett

Php defense
        213655 by: Pablo D Marotta
        213658 by: -k.
        213659 by: Petar Nedyalkov
        213662 by: Joe Harman
        213663 by: Matthew Weier O'Phinney
        213664 by: Dasmeet Singh
        213674 by: Chris W. Parker
        213678 by: Ryan A
        213681 by: Jochem Maas
        213690 by: Richard Lynch

Repeat Accross, then down
        213656 by: Simon Allison
        213657 by: Mark Rees

Re: I need do paging in php, I use ODBC Access
        213660 by: Matthew Weier O'Phinney
        213689 by: Richard Lynch

Re: reverse MD5 ???
        213661 by: Greg Donald
        213667 by: Satyam
        213676 by: trlists.clayst.com

MSSqlServer table/field information
        213665 by: Chris Boget
        213666 by: Mark Rees
        213669 by: tg-php.gryffyndevelopment.com

Documentation for VAR
        213668 by: Satyam
        213670 by: Jay Blanchard
        213671 by: Richard Davey
        213680 by: Jochem Maas

modify array data
        213672 by: Jon Aston
        213686 by: Richard Lynch
        213687 by: Brent Baisley

Re: MSSqlServer table/field information (Solved, kinda)
        213673 by: Chris Boget

OT [Anonymous Browsing] WAS: Re: [PHP] Re: Php defense
        213675 by: Jason Barnett

Re: Can I use $_REQUEST for file uploads?
        213677 by: Srinadh Sannidhanam
        213684 by: Philip Olson

Zend Certification Exam
        213679 by: M Saleh EG
        213682 by: Aaron Gould

PHP, Apache, Windows 2003
        213683 by: Reynier Perez Mira
        213693 by: Ryan J. Cavicchioni
        213695 by: Ryan J. Cavicchioni
        213697 by: The Disguised Jedi

PHP cron sendmail
        213685 by: Richard Lynch

SSL use
        213688 by: ruel.cima

problem with the pager class not found
        213694 by: Tom�s Rodriguez Orta
        213705 by: Richard Lynch
        213707 by: Matthew Weier O'Phinney

Re: [NOVICE] SSL use
        213696 by: Michael Fuhr
        213699 by: -k.
        213706 by: Michael Fuhr

Error Handler
        213700 by: Pinoy Ako
        213702 by: Richard Lynch

[suspicious - maybe spam] URL encoding in XSL - Yes, a PHP question
        213701 by: Brian Dunning

[suspicious - maybe spam] Re: [suspicious - maybe spam] [PHP] [suspicious - 
maybe spam] URL encoding in XSL - Yes, a PHP question
        213703 by: Richard Lynch

Re: [suspicious - maybe spam] [PHP] [suspicious - maybe spam] URL  encoding in 
XSL - Yes, a PHP question
        213704 by: Brian Dunning

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [email protected]


----------------------------------------------------------------------
--- Begin Message --- Hi!
I need to create an image map on a country map, where people can click on any state and get some info related to it.. In such case the regular polygon/circle/rectengle image map wont do bcoz of shapes of state..

I guess this must be possible someway in PHP.. please tell me if you have any idea how to go abt this..

Thanks in advance :)

-
Free Website Promotion - A Complete Guide
http://hostwindow.info/web-hosting/9/free-website-promotion/1/

--- End Message ---
--- Begin Message ---
> Hi!
> I need to create an image map on a country map, where people 
> can click on any state and get some info related to it.. In 
> such case the regular polygon/circle/rectengle image map wont 
> do bcoz of shapes of state..
> 
> I guess this must be possible someway in PHP.. please tell me 
> if you have any idea how to go abt this..
> 
Is the problem you're experiencing that the image map isn't being built
properly or are you passing information to it that does not appear to be
consistant.

If it's the former, then PHP has nothing to do with that. I'm sure you can
find some tools to generate image maps for you. There have always been free
ones with a minimum of effort. 

If you're having problem with PHP in the mix, can you describe the PHP
problem, provide some code, some sample output, etc.? 

I've used image maps in the past (though I try to stay away from them) and
you can create a link with virtually any polygon if you have the patience to
may out the plot points. You could easily create a star with many, many
points and have it be clickable - which would indicate that most states
would be a piece of cake. 

-M

--- End Message ---
--- Begin Message ---
Yes, I once did this for all the states in Brazil. It took me a few
hours to trace the states, but it looked beautiful when it was finished.
This will already have been done for the states many times - you could
probably borrow someone else's work and scale it up or down a bit if it
doesn't fit.

Mark

-----Original Message-----
From: Mike [mailto:[EMAIL PROTECTED] 
Sent: 22 April 2005 14:16
To: [email protected]
Subject: RE: [PHP] image maps in PHP


> Hi!
> I need to create an image map on a country map, where people
> can click on any state and get some info related to it.. In 
> such case the regular polygon/circle/rectengle image map wont 
> do bcoz of shapes of state..
> 
> I guess this must be possible someway in PHP.. please tell me
> if you have any idea how to go abt this..
> 
Is the problem you're experiencing that the image map isn't being built
properly or are you passing information to it that does not appear to be
consistant.

If it's the former, then PHP has nothing to do with that. I'm sure you
can find some tools to generate image maps for you. There have always
been free ones with a minimum of effort. 

If you're having problem with PHP in the mix, can you describe the PHP
problem, provide some code, some sample output, etc.? 

I've used image maps in the past (though I try to stay away from them)
and you can create a link with virtually any polygon if you have the
patience to may out the plot points. You could easily create a star with
many, many points and have it be clickable - which would indicate that
most states would be a piece of cake. 

-M

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

Gamma Global : Suppliers of HPCompaq, IBM, Acer, EPI, APC, Cyclades, D-Link, 
Cisco, Sun Microsystems, 3Com

GAMMA GLOBAL (UK) LTD IS A RECOGNISED 'INVESTOR IN PEOPLE' AND AN 'ISO 9001 
2000' REGISTERED COMPANY

**********************************************************************

CONFIDENTIALITY NOTICE:

This Email is confidential and may also be privileged. If you are not the
intended recipient, please notify the sender IMMEDIATELY; you should not
copy the email or use it for any purpose or disclose its contents to any
other person.

GENERAL STATEMENT:

Any statements made, or intentions expressed in this communication may not
necessarily reflect the view of Gamma Global (UK) Ltd. Be advised that no 
content
herein may be held binding upon Gamma Global (UK) Ltd or any associated company
unless confirmed by the issuance of a formal contractual document or
Purchase Order,  subject to our Terms and Conditions available from 
http://www.gammaglobal.com

E&OE

**********************************************************************
**********************************************************************


--- End Message ---
--- Begin Message ---
On Fri, 2005-04-22 at 09:14, Dasmeet Singh wrote:
> Hi!
> I need to create an image map on a country map, where people can click 
> on any state and get some info related to it.. In such case the regular 
> polygon/circle/rectengle image map wont do bcoz of shapes of state..


Poly will define any shape you need for the states in an image map.
You'll most likely want to use an image map program to generate it
though so you don't have to map all those coordinates out manually.

-- 

s/:-[(/]/:-)/g


Brian        GnuPG -> KeyID: 0x04A4F0DC | Key Server: pgp.mit.edu
======================================================================
gpg --keyserver pgp.mit.edu --recv-keys 04A4F0DC
Key Info: http://gfx-design.com/keys
Linux Registered User #339825 at http://counter.li.org

--- End Message ---
--- Begin Message --- Mark Rees wrote:
Yes, I once did this for all the states in Brazil. It took me a few
hours to trace the states, but it looked beautiful when it was finished.
This will already have been done for the states many times - you could
probably borrow someone else's work and scale it up or down a bit if it
doesn't fit.

Mark

-----Original Message-----
From: Mike [mailto:[EMAIL PROTECTED] Sent: 22 April 2005 14:16
To: [email protected]
Subject: RE: [PHP] image maps in PHP



Hi!
I need to create an image map on a country map, where people
can click on any state and get some info related to it.. In such case the regular polygon/circle/rectengle image map wont do bcoz of shapes of state..

I guess this must be possible someway in PHP.. please tell me
if you have any idea how to go abt this..


Is the problem you're experiencing that the image map isn't being built properly or are you passing information to it that does not appear to be consistant.

If it's the former, then PHP has nothing to do with that. I'm sure you
can find some tools to generate image maps for you. There have always
been free ones with a minimum of effort.

If you're having problem with PHP in the mix, can you describe the PHP
problem, provide some code, some sample output, etc.?

I've used image maps in the past (though I try to stay away from them)
and you can create a link with virtually any polygon if you have the
patience to may out the plot points. You could easily create a star with
many, many points and have it be clickable - which would indicate that
most states would be a piece of cake.

-M


Thanks.. actually I found some maps for US states with image map done.. but I am looking for a map of India.. and still havent find any

-
Free Website Promotion - A Complete Guide
http://hostwindow.info/web-hosting/9/free-website-promotion/1/

--- End Message ---
--- Begin Message ---
Oh, funnily enough I did a similar thing for India as well for a cricket
website, but only based on test match venues. 

You should be able to find something, try government websites etc. 

Good luck

-----Original Message-----
From: Dasmeet Singh [mailto:[EMAIL PROTECTED] 
Sent: 22 April 2005 14:34
To: Mark Rees
Subject: Re: [PHP] image maps in PHP


Mark Rees wrote:
> Yes, I once did this for all the states in Brazil. It took me a few 
> hours to trace the states, but it looked beautiful when it was 
> finished. This will already have been done for the states many times -

> you could probably borrow someone else's work and scale it up or down 
> a bit if it doesn't fit.
> 
> Mark
> 
> -----Original Message-----
> From: Mike [mailto:[EMAIL PROTECTED]
> Sent: 22 April 2005 14:16
> To: [email protected]
> Subject: RE: [PHP] image maps in PHP
> 
> 
> 
>>Hi!
>>I need to create an image map on a country map, where people can click

>>on any state and get some info related to it.. In such case the 
>>regular polygon/circle/rectengle image map wont do bcoz of shapes of 
>>state..
>>
>>I guess this must be possible someway in PHP.. please tell me if you 
>>have any idea how to go abt this..
>>
> 
> Is the problem you're experiencing that the image map isn't being 
> built properly or are you passing information to it that does not 
> appear to be consistant.
> 
> If it's the former, then PHP has nothing to do with that. I'm sure you

> can find some tools to generate image maps for you. There have always 
> been free ones with a minimum of effort.
> 
> If you're having problem with PHP in the mix, can you describe the PHP

> problem, provide some code, some sample output, etc.?
> 
> I've used image maps in the past (though I try to stay away from them)

> and you can create a link with virtually any polygon if you have the 
> patience to may out the plot points. You could easily create a star 
> with many, many points and have it be clickable - which would indicate

> that most states would be a piece of cake.
> 
> -M
> 

Thanks.. actually I found some maps for US states with image map done.. 
but I am looking for a map of India.. and still havent find any

-
Free Website Promotion - A Complete Guide
http://hostwindow.info/web-hosting/9/free-website-promotion/1/
Gamma Global : Suppliers of HPCompaq, IBM, Acer, EPI, APC, Cyclades, D-Link, 
Cisco, Sun Microsystems, 3Com

GAMMA GLOBAL (UK) LTD IS A RECOGNISED 'INVESTOR IN PEOPLE' AND AN 'ISO 9001 
2000' REGISTERED COMPANY

**********************************************************************

CONFIDENTIALITY NOTICE:

This Email is confidential and may also be privileged. If you are not the
intended recipient, please notify the sender IMMEDIATELY; you should not
copy the email or use it for any purpose or disclose its contents to any
other person.

GENERAL STATEMENT:

Any statements made, or intentions expressed in this communication may not
necessarily reflect the view of Gamma Global (UK) Ltd. Be advised that no 
content
herein may be held binding upon Gamma Global (UK) Ltd or any associated company
unless confirmed by the issuance of a formal contractual document or
Purchase Order,  subject to our Terms and Conditions available from 
http://www.gammaglobal.com

E&OE

**********************************************************************
**********************************************************************


--- End Message ---
--- Begin Message --- Actually I am not able to make image maps because of uneven state boundaries..

Can you please suggest some tools... I haven't used any yet...

Thanks

-
Free Website Promotion - A Complete Guide
http://hostwindow.info/web-hosting/9/free-website-promotion/1/


Mike wrote:
Hi!
I need to create an image map on a country map, where people can click on any state and get some info related to it.. In such case the regular polygon/circle/rectengle image map wont do bcoz of shapes of state..

I guess this must be possible someway in PHP.. please tell me if you have any idea how to go abt this..


Is the problem you're experiencing that the image map isn't being built properly or are you passing information to it that does not appear to be consistant.

If it's the former, then PHP has nothing to do with that. I'm sure you can
find some tools to generate image maps for you. There have always been free
ones with a minimum of effort.

If you're having problem with PHP in the mix, can you describe the PHP
problem, provide some code, some sample output, etc.?

I've used image maps in the past (though I try to stay away from them) and
you can create a link with virtually any polygon if you have the patience to
may out the plot points. You could easily create a star with many, many
points and have it be clickable - which would indicate that most states
would be a piece of cake.

-M

--- End Message ---
--- Begin Message --- Actually I am not able to make image maps because of uneven state boundaries..

Can you please suggest some tools... I haven't used any yet...

Thanks

-
Free Website Promotion - A Complete Guide
http://hostwindow.info/web-hosting/9/free-website-promotion/1/


Mike wrote:
Hi!
I need to create an image map on a country map, where people can click on any state and get some info related to it.. In such case the regular polygon/circle/rectengle image map wont do bcoz of shapes of state..

I guess this must be possible someway in PHP.. please tell me if you have any idea how to go abt this..


Is the problem you're experiencing that the image map isn't being built properly or are you passing information to it that does not appear to be consistant.

If it's the former, then PHP has nothing to do with that. I'm sure you can
find some tools to generate image maps for you. There have always been free
ones with a minimum of effort.

If you're having problem with PHP in the mix, can you describe the PHP
problem, provide some code, some sample output, etc.?

I've used image maps in the past (though I try to stay away from them) and
you can create a link with virtually any polygon if you have the patience to
may out the plot points. You could easily create a star with many, many
points and have it be clickable - which would indicate that most states
would be a piece of cake.

-M

--- End Message ---
--- Begin Message ---
> Actually I am not able to make image maps because of uneven state 
> boundaries..
> 
> Can you please suggest some tools... I haven't used any yet...
> 
> Thanks
> 
> -

I just googled and came up with a bunch of results:
http://www.google.com/search?hl=en&lr=&q=free+imagemap+html+generator&btnG=S
earch

I haven't had to make any image maps in quite a few years, so I can't
personally recommend any. But I'm sure that the basic "point and click"
interface will be supported by many of the free utils you'll find on that
first results page.

Good luck

-M

--- End Message ---
--- Begin Message ---
On Fri, April 22, 2005 6:41 am, Dasmeet Singh said:
> Actually I am not able to make image maps because of uneven state
> boundaries..
>
> Can you please suggest some tools... I haven't used any yet...

I was writing an on-line mapping tool that used PHP and let you outline
the regions for a given image.

Sort of "Indian Jones"-like (the mapping of the plane as he flew)

You'll probably find a nice one, but if not, you may want to consider
writing your own in PHP if the existing ones aren't that good.  It wasn't
that tricky.

-- 
Like Music?
http://l-i-e.com/artists.htm

--- End Message ---
--- Begin Message --- Richard Davey wrote:
Hello Jochem,

Friday, April 22, 2005, 8:13:15 AM, you wrote:

JM> in a round about way he seems to be asking 'why'? which is not
JM> totally invalid.

To be honest when I ask people "why?" I actually use that word (or at
least something closely related to it).

JM> do you want/need a master/slave configuration
JM> or true decentralisation and/or two way syncing?

See my reply to Drewcore for far more detail which answers the above.

JM> sounds like a costly undertaking, not to be taken lightly... I'm
JM> interested to understand the requirement that dictates such server
JM> redundancy. Given the implied cost, planning/implementation should
JM> probably left to a company who already knows the answers to your
JM> questions :-/?

This isn't about redundancy, it's about enhancing the experience for
customers physically located thousands of miles away from the server
they are trying to access. So, bring the content closer to them and
drop their wait times massively. It's easy for those of us sat on the
end of cable connections to become complacent about this IMHO (i.e.
"the Internet is fast enough now that you don't need to do this"), but
in reality that's not really yet the case.

Best regards,

Richard Davey

I dont have much knowledge about this thing.. still isnt it possible to rsync the contents after you update your site? If this is possible in your case, then its quiet easy I guess.. sorry if I misunderstood :)


- Free Website Promotion - A Complete Guide http://hostwindow.info/web-hosting/9/free-website-promotion/1/

--- End Message ---
--- Begin Message --- Richard Davey wrote:
Hello Jochem,

Friday, April 22, 2005, 8:13:15 AM, you wrote:

JM> in a round about way he seems to be asking 'why'? which is not
JM> totally invalid.

To be honest when I ask people "why?" I actually use that word (or at
least something closely related to it).

JM> do you want/need a master/slave configuration
JM> or true decentralisation and/or two way syncing?

See my reply to Drewcore for far more detail which answers the above.

JM> sounds like a costly undertaking, not to be taken lightly... I'm
JM> interested to understand the requirement that dictates such server
JM> redundancy. Given the implied cost, planning/implementation should
JM> probably left to a company who already knows the answers to your
JM> questions :-/?

This isn't about redundancy, it's about enhancing the experience for
customers physically located thousands of miles away from the server
they are trying to access. So, bring the content closer to them and
drop their wait times massively. It's easy for those of us sat on the
end of cable connections to become complacent about this IMHO (i.e.
"the Internet is fast enough now that you don't need to do this"), but
in reality that's not really yet the case.

Best regards,

Richard Davey

I dont have much knowledge about this thing.. still isnt it possible to rsync the contents after you update your site? If this is possible in your case, then its quiet easy I guess.. sorry if I misunderstood :)


- Free Website Promotion - A Complete Guide http://hostwindow.info/web-hosting/9/free-website-promotion/1/

--- End Message ---
--- Begin Message ---
On Fri, April 22, 2005 4:29 am, Richard Davey said:
> This isn't about redundancy, it's about enhancing the experience for
> customers physically located thousands of miles away from the server
> they are trying to access. So, bring the content closer to them and
> drop their wait times massively. It's easy for those of us sat on the
> end of cable connections to become complacent about this IMHO (i.e.
> "the Internet is fast enough now that you don't need to do this"), but
> in reality that's not really yet the case.

I believe, then, that you would best be served by focussing your search on
"mirroring" such as that done by, say, http://php.net

Seems to work well for them :-)

-- 
Like Music?
http://l-i-e.com/artists.htm

--- End Message ---
--- Begin Message ---
> > This isn't about redundancy, it's about enhancing the experience for
> > customers physically located thousands of miles away from the server
> > they are trying to access. So, bring the content closer to them and
> > drop their wait times massively. It's easy for those of us sat on the
> > end of cable connections to become complacent about this IMHO (i.e.
> > "the Internet is fast enough now that you don't need to do this"), but
> > in reality that's not really yet the case.

Here is something I have done in the past to speed up php/mysql pages
(should work with other databases though).  Basically, I noticed that
the majority of our database calls were read calls, rather than write
calls.  So, in all of the locations globally, I set up "read-only"
database servers, and also replicated the php code to all of the
sites, then still did all of the writes to the "master" server but,
all of the reads from each local "read-only" server.

Not sure if this is necessairily the "best" way to do things, but it
worked well for me, and sped things up quite a bit.  This does mean
you have 2 database connections always, 1 for reading, and 1 for
writing.

For mysql, look more at their website for how to set up replication
machines.  As far as the code goes, I just have a process that
straight copy's it from my "master" server.

-Chris

--- End Message ---
--- Begin Message ---
Brian Dunning wrote:
> I've been going through a number of easy XML parsing examples on the
> web, and they all have one thing in common: the XML is in a file, which
> they read in 4K chunks and parse.
>
> My application will be retrieving the XML from a web service, presumably
> like $xml = file_get_contents($url). I was assuming that I could parse
> the XML in memory using that $xml variable, but since NONE of the
> examples I've seen do this, I was wondering if it's a requirement that
> the XML be in a local file, and needing to do the 4K chunk thing.
>
> - Brian

Nope, if the stream will open and put data into $xml then you're fine.
It's not a requirement that the XML file is on the disk, just that it's
available to memory.

--
Teach a man to fish...

NEW? | http://www.catb.org/~esr/faqs/smart-questions.html
STFA | http://marc.theaimsgroup.com/?l=php-general&w=2
STFM | http://php.net/manual/en/index.php
STFW | http://www.google.com/search?q=php
LAZY |
http://mycroft.mozdev.org/download.html?name=PHP&submitform=Find+search+plugins

Attachment: signature.asc
Description: OpenPGP digital signature


--- End Message ---
--- Begin Message ---
Hi there..
I`m defending the language, but people here want to migrate to asp..
They just keep on saying "php is not used for huge corporation solutions, there
asp goes better".

I know it isn�t correct, but I don�t know much about "well-known" websites
using php technology. (I just don�t navigate enough time to know it)
I think that could help a lot, since this people is highly influenced by that
kind of facts.. (I mean, knowing that other companies trust this language to
manage critical information).

Does anybody know/have any web-sites listing using php? If you only know a few
of those, it could help me too.

Thanks in advance!!
Pablo



American Express made the following
 annotations on 04/22/05 06:58:25
------------------------------------------------------------------------------
******************************************************************************

"This message and any attachments are solely for the intended recipient and may 
contain confidential or privileged information. If you are not the intended 
recipient, any disclosure, copying, use, or distribution of the information 
included in this message and any attachments is prohibited. If you have 
received this communication in error, please notify us by reply e-mail and 
immediately and permanently delete this message and any attachments. Thank you."

******************************************************************************
==============================================================================

--- End Message ---
--- Begin Message ---
As i recall Yahoo uses PHP. Quick Google turned up:
http://public.yahoo.com/~radwin/talks/yahoo-phpcon2002.htm

Also i remember it was a pretty big deal when
Friendster switched to PHP. And the resulting
improvement in performance was pretty dramatic.
O'Reilly has a good article.
http://www.oreillynet.com/pub/wlg/5155

Google around some, especially on the Friendster
switch, which as I recall caused quite a stir, for
more information.




-k.


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

--- End Message ---
--- Begin Message ---
On Friday 22 April 2005 16:58, Pablo D Marotta wrote:
> Hi there..
> I`m defending the language, but people here want to migrate to asp..
> They just keep on saying "php is not used for huge corporation solutions,
> there asp goes better".
>
> I know it isn�t correct, but I don�t know much about "well-known" websites
> using php technology. (I just don�t navigate enough time to know it)
> I think that could help a lot, since this people is highly influenced by
> that kind of facts.. (I mean, knowing that other companies trust this
> language to manage critical information).

Let's start with Yahoo ;-)
Google also uses PHP.
Etc.

>
> Does anybody know/have any web-sites listing using php? If you only know a
> few of those, it could help me too.
>
> Thanks in advance!!
> Pablo
>
>
>
> American Express made the following
>  annotations on 04/22/05 06:58:25
> ---------------------------------------------------------------------------
>---
> ***************************************************************************
>***
>
> "This message and any attachments are solely for the intended recipient and
> may contain confidential or privileged information. If you are not the
> intended recipient, any disclosure, copying, use, or distribution of the
> information included in this message and any attachments is prohibited. If
> you have received this communication in error, please notify us by reply
> e-mail and immediately and permanently delete this message and any
> attachments. Thank you."
>
> ***************************************************************************
>***
> ===========================================================================
>===

-- 

Cyberly yours,
Petar Nedyalkov
Devoted Orbitel Fan :-)

PGP ID: 7AE45436
PGP Public Key: http://bu.orbitel.bg/pgp/bu.asc
PGP Fingerprint: 7923 8D52 B145 02E8 6F63 8BDA 2D3F 7C0B 7AE4 5436

Attachment: pgpLMFGiiYTuh.pgp
Description: PGP signature


--- End Message ---
--- Begin Message ---
 My 2 Cents > ASP is a Platform that supports a number of different
microsoft languages which includes ASP Javascript, ASP VBScript,
ASP.Net C# & ASP.Net VB ... ASP has a couple of good points to it...
most notably is that it is backed by the largest computer company out
there.. Microsoft... also, from my experience as a college level
instructor, they teach microsoft programming languages at the
colleges... there is nothing spectacular about the programming
languages that ASP supports that cannot be done with PHP... and I
should say that that is my opinion...

I know Yahoo & Google use PHP in some of their applications... also
Lufthansa (Airline) uses PHP... Vonage... Broadvoice.. the list goes
on...

Here is a few articles for you : 
http://www.zend.com/news/zendpr.php?id=89
http://www-306.ibm.com/software/data/info/zendcore/
http://www.gartner.com/DisplayDocument?doc_cd=126609
http://www.zend.com/developers.php
http://news.com.com/2100-1023-963937.html?tag=lh

Good Luck Pablo,
Joe

On 4/22/05, Pablo D Marotta <[EMAIL PROTECTED]> wrote:
> Hi there..
> I`m defending the language, but people here want to migrate to asp..
> They just keep on saying "php is not used for huge corporation solutions, 
> there
> asp goes better".
> 
> I know it isn�t correct, but I don�t know much about "well-known" websites
> using php technology. (I just don�t navigate enough time to know it)
> I think that could help a lot, since this people is highly influenced by that
> kind of facts.. (I mean, knowing that other companies trust this language to
> manage critical information).
> 
> Does anybody know/have any web-sites listing using php? If you only know a few
> of those, it could help me too.
> 
> Thanks in advance!!
> Pablo
> 
> American Express made the following
> annotations on 04/22/05 06:58:25
> ------------------------------------------------------------------------------
> ******************************************************************************
> 
> "This message and any attachments are solely for the intended recipient and 
> may contain confidential or privileged information. If you are not the 
> intended recipient, any disclosure, copying, use, or distribution of the 
> information included in this message and any attachments is prohibited. If 
> you have received this communication in error, please notify us by reply 
> e-mail and immediately and permanently delete this message and any 
> attachments. Thank you."
> 
> ******************************************************************************
> ==============================================================================
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
>

--- End Message ---
--- Begin Message ---
* Pablo D Marotta <[EMAIL PROTECTED]>:
> I`m defending the language, but people here want to migrate to asp..
> They just keep on saying "php is not used for huge corporation
> solutions, there asp goes better".
>
> I know it isn�t correct, but I don�t know much about "well-known"
> websites using php technology. (I just don�t navigate enough time to
> know it) I think that could help a lot, since this people is highly
> influenced by that kind of facts.. (I mean, knowing that other
> companies trust this language to manage critical information).

I'm not allowed to say what company it's for, but we just finished
building a site for a Fortune 50 company.

Others have mentioned google and Y!, which are of course very prominent.
Recently, IBM has remarked that it's endorsing PHP and throwing money at
PHP development to make it more enterprise ready.

Another argument I'd make is that PHP can run on a variety of web
servers, not just IIS, which give you more choice in your web
architecture.

ASP is certainly a fine language, but my personal opinion is that it
locks you in to a single architecture -- one that costs $$$ and which
has limited scalability. Those reasons alone are enough to look at other
languages.

-- 
Matthew Weier O'Phinney           | WEBSITES:
Webmaster and IT Specialist       | http://www.garden.org
National Gardening Association    | http://www.kidsgardening.com
802-863-5251 x156                 | http://nationalgardenmonth.org
mailto:[EMAIL PROTECTED]         | http://vermontbotanical.org

--- End Message ---
--- Begin Message ---
wikipedia.org also uses PHP

-
Free Website Promotion - A Complete Guide
http://hostwindow.info/web-hosting/9/free-website-promotion/1/


-K. wrote:
As i recall Yahoo uses PHP. Quick Google turned up:
http://public.yahoo.com/~radwin/talks/yahoo-phpcon2002.htm

Also i remember it was a pretty big deal when
Friendster switched to PHP. And the resulting
improvement in performance was pretty dramatic.
O'Reilly has a good article.
http://www.oreillynet.com/pub/wlg/5155

Google around some, especially on the Friendster
switch, which as I recall caused quite a stir, for
more information.




-k.


__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com

--- End Message ---
--- Begin Message ---
Matthew Weier O'Phinney <mailto:[EMAIL PROTECTED]>
    on Friday, April 22, 2005 7:39 AM said:

> I'm not allowed to say what company it's for, but we just finished
> building a site for a Fortune 50 company.

But what you could do is create an anonymous account somewhere, let's
say @hotmail.com, and THEN post the name of the company. ;)

Make sure you do this on a computer that allows anonymous access, like,
a friend's house! :)

But then again I guess you'd have to kill all of us...

--- End Message ---
--- Begin Message ---
On 4/22/2005 6:04:49 PM, Chris W. Parker ([EMAIL PROTECTED]) wrote:
> Matthew Weier
> O'Phinney <mailto:[EMAIL PROTECTED]>
> on Friday, April 22, 2005 7:39 AM said:
> 
> > I'm
> not allowed to say what company
> it's for, but we just finished
> > building a site for a Fortune 50 company.
> 
> But what you could do is create an anonymous account somewhere, let's
> 
> say @hotmail.com, and THEN post the name of the company. ;)
> 
> 
> 
> Make sure you do this on a computer that allows anonymous access, like,
> 
> a friend's house! :)
> 
> But then again I guess you'd have to kill all of
> us...
 
He hee hee wicked!

:-D


-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.10.1 - Release Date: 4/20/2005

--- End Message ---
--- Begin Message --- Pablo D Marotta wrote:
Hi there..
I`m defending the language, but people here want to migrate to asp..
They just keep on saying "php is not used for huge corporation solutions, there
asp goes better".

Sun has always been traditionally a favorite of huge corporations (banks for instance), ... Sun is partnering of late with a company called Zend. certainly gives the impression that php is making serious moves towards the enterprise.

just thought I'd add that tidbit,  most of the relevant big guns in IT/web-land
have already been mentioned :-)


I know it isn�t correct, but I don�t know much about "well-known" websites using php technology. (I just don�t navigate enough time to know it) I think that could help a lot, since this people is highly influenced by that kind of facts.. (I mean, knowing that other companies trust this language to

I would not so much trust in the code (implicitly), but put it in the people responsible for developing [on] it.

manage critical information).

remember php is opensource, and your employer has (technically) the financial means to:

a, employ people who (also) contribute to php development
b, employ people fix/change php behaviour for specific inhouse needs
c, employ people who are responsible for source code auditing of php

that to me is worth more than any support contract from M$.

php might be a good hammer but not everything is a nail, I think its fair to
consider that it might not be the right solution for what ever it is you
are tasked with.

rgds,
Jochem


Does anybody know/have any web-sites listing using php? If you only know a few of those, it could help me too.

Thanks in advance!!
Pablo

--- End Message ---
--- Begin Message ---
On Fri, April 22, 2005 6:58 am, Pablo D Marotta said:
> I`m defending the language, but people here want to migrate to asp..
> They just keep on saying "php is not used for huge corporation solutions,
> there
> asp goes better".

Sounds to me like they've already decided on non-rational basis, and are
justifying their choice, rather than making an attempt at an informed
decision...

Rational discourse may not be particularly effective...

I'd be starting a job search, if I was in your spot :-v

Ain't enough money in the world to make me do ASP/VB again.

-- 
Like Music?
http://l-i-e.com/artists.htm

--- End Message ---
--- Begin Message ---
Say for a photo album with photo paths taken from a database (or anything
from a database for that matter) how can you use PHP to repeat across for
three photos and then add a new row with the next 3 photos and so on and so
on?


--- End Message ---
--- Begin Message ---
Use a counter when iterating through the results

When counter % (modulus) 3=0 then write a new row

Mark

-----Original Message-----
From: Simon Allison [mailto:[EMAIL PROTECTED] 
Sent: 22 April 2005 15:00
To: [email protected]
Subject: [PHP] Repeat Accross, then down


Say for a photo album with photo paths taken from a database (or
anything from a database for that matter) how can you use PHP to repeat
across for three photos and then add a new row with the next 3 photos
and so on and so on?

Gamma Global : Suppliers of HPCompaq, IBM, Acer, EPI, APC, Cyclades, D-Link, 
Cisco, Sun Microsystems, 3Com

GAMMA GLOBAL (UK) LTD IS A RECOGNISED 'INVESTOR IN PEOPLE' AND AN 'ISO 9001 
2000' REGISTERED COMPANY

**********************************************************************

CONFIDENTIALITY NOTICE:

This Email is confidential and may also be privileged. If you are not the
intended recipient, please notify the sender IMMEDIATELY; you should not
copy the email or use it for any purpose or disclose its contents to any
other person.

GENERAL STATEMENT:

Any statements made, or intentions expressed in this communication may not
necessarily reflect the view of Gamma Global (UK) Ltd. Be advised that no 
content
herein may be held binding upon Gamma Global (UK) Ltd or any associated company
unless confirmed by the issuance of a formal contractual document or
Purchase Order,  subject to our Terms and Conditions available from 
http://www.gammaglobal.com

E&OE

**********************************************************************
**********************************************************************


--- End Message ---
--- Begin Message ---
* Jochem Maas <[EMAIL PROTECTED]> :
> Richard Lynch wrote:
> > On Thu, April 21, 2005 12:23 pm, Warren Vail said:
> > 
> > > The only approach left that I could come up with is to transfer the
> > > entire sequence set to your application, and count the rows, perhaps
> > > only displaying the rows you want to show.  This is obviously not very
> > > efficient (in fact, with enough rows it may prove impossible because of
> > > memory limitations), but it will produce what appears to be a paged
> > > result.
> > 
> > If this is the best answer your database software will let you come up
> > with, it's time to switch databases :-)
> > 
> > Fortunately, the databases that don't do "LIMIT" have this nifty thing
>
> I was under the impression that LIMIT was mySQL specific (although its
> quite likely that their use of the keyword and the ubiqitous nature of mySQL
> that other vendors have also adopted it.

Actually, LIMIT is in ANSI SQL.

-- 
Matthew Weier O'Phinney           | WEBSITES:
Webmaster and IT Specialist       | http://www.garden.org
National Gardening Association    | http://www.kidsgardening.com
802-863-5251 x156                 | http://nationalgardenmonth.org
mailto:[EMAIL PROTECTED]         | http://vermontbotanical.org

--- End Message ---
--- Begin Message ---
On Fri, April 22, 2005 7:31 am, Matthew Weier O'Phinney said:
> Actually, LIMIT is in ANSI SQL.

Either the ANSI standard changed, or Rasmus needs to update his Bio...

http://lerdorf.com/bio.php

"...he can be blamed for the ANSI92 SQL-defying LIMIT clause in mSQL 1.x
which has now, at least conceptually, crept into both MySQL and
PostgreSQL."

But, hey, I'm not gonna actually READ the ANSI standard to find out -- I'd
rather worry about what actually *WORKS* than what the SQL standard is,
which, sadly, is seldom easily reconciled with Real-Life (tm).

-- 
Like Music?
http://l-i-e.com/artists.htm

--- End Message ---
--- Begin Message ---
On 4/22/05, Richard Lynch <[EMAIL PROTECTED]> wrote:
> It's more like a theoretical "hole" that may some day prove to be the
> first step in a long long long process of understanding something that
> might maybe some day yield a way to de-crypt MD5.

That's exactly my point.

It's similar to how a local root exploit sometimes evolves into a
remote root exploit once publicized and people begin working on it.

Disclaimer: There are only about 5 or 6 people in the entire world who
know anything about encryption.. and sadly I am not one of them.


-- 
Greg Donald
Zend Certified Engineer
http://destiney.com/

--- End Message ---
--- Begin Message ---
If you are happy with infinite answers, I guess that is Ok.  In practice, 
since you would probably wouldn't expect numbers (or strings) infinetly 
long, assuming that you just have N possible initial values, you would have 
N/3 possible answers.

I thought the question was about getting one answer.


"Greg Donald" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
On 4/21/05, Satyam <[EMAIL PROTECTED]> wrote:
> If I tell you that dividing a certain number by three gives you a 
> remainder
> of 2, would you be able to guess the first number?

Yes.  5, 8, 11, 14, etc.

> Same thing with MD5, it
> is just one way, it can't be reversed.

MD5 collisions were found last year:
http://cryptography.hyperlink.cz/md5/MD5_collisions.pdf

Just a matter of time/cpu power.


-- 
Greg Donald
Zend Certified Engineer
http://destiney.com/ 

--- End Message ---
--- Begin Message ---
> > It's more like a theoretical "hole" that may some day prove to be the
> > first step in a long long long process of understanding something that
> > might maybe some day yield a way to de-crypt MD5.
> 
> That's exactly my point.
> 
> It's similar to how a local root exploit sometimes evolves into a
> remote root exploit once publicized and people begin working on it.
> 
> Disclaimer: There are only about 5 or 6 people in the entire world who
> know anything about encryption.. and sadly I am not one of them.

MD5 is hashing which is not the same as encryption.  Hashing is 
normally defined as a one-way conversion of a plaintext message into a 
fixed-length digest or "hash".  Encryption is normally defined as 
conversion of a plaintext message into ciphertext which cannot be read 
until it is decrypted -- i.e. encryption normally implies the 
possibility of decryption.

In that framework there is no such thing as "decrypting" an MD5 digest, 
because an MD5 digest is not an encrypted version of the message to 
start with.  No amount of CPU power will change this basic fact -- 
though CPU power can be used to do a brute force search for strings 
which will generate a given MD5 value.  However, as stated before, at 
current levels of computing power this is not feasible for messages 
beyond I think 7 or 8 characters long (don't quote me on that).

The recently discovered "hole" is unrelated to the above.  It is that 
under certain conditions it is possible to find two different plaintext 
messages which will generate the same MD5 digest.  This could 
theoretically allow one to spoof a message and have it appear 
legitimate if MD5 is used for the legitimacy check, but it does not 
allow "reversal" of MD5, nor do the authors of articles on this problem 
seem to claim that it could.

--
Tom

--- End Message ---
--- Begin Message ---
Is there a way to programatically get information about a 
specific table and/or field?  And also any constraints that 
a field has?

thnx,
Chris

--- End Message ---
--- Begin Message ---
Look into the INFORMATION SCHEMA views in SQL Books Online for a
starting point.

Mark

-----Original Message-----
From: Chris Boget [mailto:[EMAIL PROTECTED] 
Sent: 22 April 2005 15:51
To: PHP General
Subject: [PHP] MSSqlServer table/field information


Is there a way to programatically get information about a 
specific table and/or field?  And also any constraints that 
a field has?

thnx,
Chris

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

Gamma Global : Suppliers of HPCompaq, IBM, Acer, EPI, APC, Cyclades, D-Link, 
Cisco, Sun Microsystems, 3Com

GAMMA GLOBAL (UK) LTD IS A RECOGNISED 'INVESTOR IN PEOPLE' AND AN 'ISO 9001 
2000' REGISTERED COMPANY

**********************************************************************

CONFIDENTIALITY NOTICE:

This Email is confidential and may also be privileged. If you are not the
intended recipient, please notify the sender IMMEDIATELY; you should not
copy the email or use it for any purpose or disclose its contents to any
other person.

GENERAL STATEMENT:

Any statements made, or intentions expressed in this communication may not
necessarily reflect the view of Gamma Global (UK) Ltd. Be advised that no 
content
herein may be held binding upon Gamma Global (UK) Ltd or any associated company
unless confirmed by the issuance of a formal contractual document or
Purchase Order,  subject to our Terms and Conditions available from 
http://www.gammaglobal.com

E&OE

**********************************************************************
**********************************************************************


--- End Message ---
--- Begin Message ---
http://www.sqlzoo.net/howto/source/z.dir/i12meta.xml

Check out the META DATA section of this page (link above).  I used it to create 
a database 'walker' app that lets you search for table names, column names, 
etc.  I was working on a HUGE database that wasn't documented well and nobody 
could give me good answers on how things joined..haha.  so this meta data was 
very helpful.

It's basically stored in a table in SQL Server, all the table/column 
information.  So it's super simple to get the information you want.

Check out this query:

SELECT * FROM sysobjects

good luck!

-TG

= = = Original message = = =

Is there a way to programatically get information about a 
specific table and/or field?  And also any constraints that 
a field has?

thnx,
Chris

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


___________________________________________________________
Sent by ePrompter, the premier email notification software.
Free download at http://www.ePrompter.com.

--- End Message ---
--- Begin Message ---
I've been going through the manual and haven't found 'var' documented 
anywhere, as far as I found, it is just used, and that's it.  It seems it 
first appears when it talks about Classes, and it is just used in the 
examples as if everyone knew what var is supposed to do.

Thanks

Satyam

--- End Message ---
--- Begin Message ---
[snip]
I've been going through the manual and haven't found 'var' documented 
anywhere, as far as I found, it is just used, and that's it.  It seems
it 
first appears when it talks about Classes, and it is just used in the 
examples as if everyone knew what var is supposed to do.
[/snip]

It is just a variable name.

--- End Message ---
--- Begin Message ---
Hello Satyam,

Friday, April 22, 2005, 3:59:38 PM, you wrote:

S> I've been going through the manual and haven't found 'var'
S> documented anywhere, as far as I found, it is just used, and that's
S> it. It seems it first appears when it talks about Classes, and it
S> is just used in the examples as if everyone knew what var is
S> supposed to do.

It's a "constant initializer" - which is both an accurate and
misleading title at the same time :) It will initialise a variable to
be constant through-out your entire class (meaning any method can
access it) but unlike true PHP constants (those created with define)
the value of the variable can be manipulated from just about anywhere.

It is of course PHP4 only and is depreciated in PHP5.

Best regards,

Richard Davey
-- 
 http://www.launchcode.co.uk - PHP Development Services
 "I do not fear computers. I fear the lack of them." - Isaac Asimov

--- End Message ---
--- Begin Message --- Richard Davey wrote:
Hello Satyam,

Friday, April 22, 2005, 3:59:38 PM, you wrote:

S> I've been going through the manual and haven't found 'var'
S> documented anywhere, as far as I found, it is just used, and that's
S> it. It seems it first appears when it talks about Classes, and it
S> is just used in the examples as if everyone knew what var is
S> supposed to do.

It's a "constant initializer" - which is both an accurate and
misleading title at the same time :) It will initialise a variable to
be constant through-out your entire class (meaning any method can
access it) but unlike true PHP constants (those created with define)
the value of the variable can be manipulated from just about anywhere.


indeed in php you can do the following instead:

<?

error_reporting( E_ALL & E_STRICT );
class Test
{
    // this first var (commented out) should (I thought) act as if defined
    // 'public' - it doesn't given a parse error with php -l, but does when run.
    // I haven't run into this problem in 1.5 years of writing php5...
    // I must be having a brain freeze :-/
    //$myVar;

    // publically accessible instances variables
    public $myVar1; // not initialized with a value
    public $myVar2 = "2"; // initialized with a value

    // an instance variable thats only available
    // from within _all_ methods of this object.
    // .. methods could be defined in subclasses or parent-classes
    protected $myVar3 = "3";

    // an instance variable that is only available to the
    // methods defined in _this_ class
    private $myVar4 = "4";

    // a variable with class scope (all instances see the same value),
    // publically accessible
    static $myVar5 = "5";
    static public $myVar6 = "6";

    // a variable with class scope (all instances see the same value),
    // thats only available from within _all_ methods of this object.
    static protected $myVar7 = "7";

    // a variable with class scope (all instances see the same value),
    // thats only available from methods defined in _this_ class
    static private $myVar8 = "8";

    public function get4() { return $this->myVar4; }
    public function get8() { return self::$myVar8; }
}

// basic usage examples:

var_dump( ($t = new Test), $t->myVar2, $t->get4(), Test::$myVar6, $t->get8() );

?>

I can thoroughly recommend php5's much improved object model,
try other variations of calls to the defined 'myVar's, also try doing
with sublcasses, see what does/doesn't work, have fun :-)


It is of course PHP4 only and is depreciated in PHP5.

Best regards,

Richard Davey

--- End Message ---
--- Begin Message ---
Is there a way to easily rotate array data?

what I want to do is
change from

bob | bill | frank
joe | jose | sam
sally | jim | kim

to
|      |     | frank|        |      |
|      |bill |         | sam|      |
|bob|     | jose  |       | kim|
|      |joe|         |jim   |      |
|      |     | sally |        |     |

is there an easy way to do this?
the data and arraysize will vary so I was looking for a way that I could
have php do it without having to make script for different array sizes.

Thanks

--- End Message ---
--- Begin Message ---
On Fri, April 22, 2005 8:46 am, Jon Aston said:
> Is there a way to easily rotate array data?
>
> what I want to do is
> change from
>
> bob | bill | frank
> joe | jose | sam
> sally | jim | kim
>
> to
> |      |     | frank|        |      |
> |      |bill |         | sam|      |
> |bob|     | jose  |       | kim|
> |      |joe|         |jim   |      |
> |      |     | sally |        |     |
>
> is there an easy way to do this?
> the data and arraysize will vary so I was looking for a way that I could
> have php do it without having to make script for different array sizes.

http://php.net/array

Look at array_pop and array_push and count and array_slice and
array_splice and array_shift.

I really don't understand your BEFORE/AFTER diagrams at all, since it
pretty much looks random to me...  In which case you want
http://php.net/shuffle

-- 
Like Music?
http://l-i-e.com/artists.htm

--- End Message ---
--- Begin Message --- Well, it's just a matter of coming up with the formula for converting your data. I briefly tried to come up with one, but gave up after I realized there would not be a "center" data piece if you have a 4x4 array or any even number array for that matter.
I would right down the array positions for before and after and try to find the pattern you are looking for. It should be some combination or rows, columns and array size (addition, subtraction, multiplicaiton, division, absolute values, etc.). If you can't find the pattern, you can't write a generic conversion function and neither can PHP or anybody.

Your first row maps like this (row,col):
0,0 -> 2,0
0,1 -> 1,1
0,2 -> 0,2

This formula would map the first row appropriately:
row = ColCount - ColNum
col = ColNum

It obviously fails for your second row, but it's just an example.

There is obviously a pattern which the mind can interpret fairly quickly. But trying to describe it in exact terms can be difficult.


On Apr 22, 2005, at 11:46 AM, Jon Aston wrote:

Is there a way to easily rotate array data?

what I want to do is
change from

bob | bill | frank
joe | jose | sam
sally | jim | kim

to
|      |     | frank|        |      |
|      |bill |         | sam|      |
|bob|     | jose  |       | kim|
|      |joe|         |jim   |      |
|      |     | sally |        |     |

is there an easy way to do this?
the data and arraysize will vary so I was looking for a way that I could
have php do it without having to make script for different array sizes.

Thanks

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


--
Brent Baisley
Systems Architect
Landover Associates, Inc.
Search & Advisory Services for Advanced Technology Environments
p: 212.759.6400/800.759.0577

--- End Message ---
--- Begin Message ---
> Look into the INFORMATION SCHEMA views in SQL Books Online for a
> starting point.

Excellent tip!  Thanks.  With the help provided by everyone who
replied, I came up with the following:

Query to get the primary key(s) for a table

  sp_pkeys @table_name='<table_name>'

Query to get the column names for a table

  sp_columns @table_name='<table_name>'

Query to get the constraints on the columns of the table

  SELECT 
  INFORMATION_SCHEMA.CONSTRAINT_COLUMN_USAGE.COLUMN_NAME,
  INFORMATION_SCHEMA.CONSTRAINT_COLUMN_USAGE.CONSTRAINT_NAME,
  INFORMATION_SCHEMA.CHECK_CONSTRAINTS.CHECK_CLAUSE
  FROM 
  INFORMATION_SCHEMA.CONSTRAINT_COLUMN_USAGE
  INNER JOIN
  INFORMATION_SCHEMA.CHECK_CONSTRAINTS ON 
  INFORMATION_SCHEMA.CHECK_CONSTRAINTS.CONSTRAINT_NAME = 
  INFORMATION_SCHEMA.CONSTRAINT_COLUMN_USAGE.CONSTRAINT_NAME
  WHERE 
  INFORMATION_SCHEMA.CONSTRAINT_COLUMN_USAGE.TABLE_NAME = 
  N'<table_name>'
  

thnx,
Chris

--- End Message ---
--- Begin Message ---
Chris W. Parker wrote:
> Matthew Weier O'Phinney <mailto:[EMAIL PROTECTED]>
>     on Friday, April 22, 2005 7:39 AM said:
> 
> 
>>I'm not allowed to say what company it's for, but we just finished
>>building a site for a Fortune 50 company.
> 
> 
> But what you could do is create an anonymous account somewhere, let's
> say @hotmail.com, and THEN post the name of the company. ;)
> 
> Make sure you do this on a computer that allows anonymous access, like,
> a friend's house! :)
> 
> But then again I guess you'd have to kill all of us...

As always Firefox to the rescue.  I find more good tips on web browsing
at Mozilla's online discussion board than just about anywhere else.
Here's a great link to read up on if you want to browse more securely
(who doesn't?):

http://forums.mozillazine.org/viewtopic.php?t=240548

--- End Message ---
--- Begin Message ---
Hi,
Thanks for the reponse. I tested again, but it was not the problem
with ENCTYPE. I am getting file with $_FILES. I think this is due to
CGI configuration if not with php.ini. Because when I check the
version by using "PHP -v" command, it shows "4.3.10 (cgi)" but when
check that using phpinfo() function, it is showing as PHP 4.2.2. Why
the difference? I am working in that view to find the solution.
Currently I got a temporary solution. I am jsut copying from $_FILES
to $_REQUEST at the very begining of the script. Because I can't
change all the scripts now.

Thanks,
S.Srinadh.

On 4/22/05, Richard Lynch <[EMAIL PROTECTED]> wrote:
> On Thu, April 21, 2005 12:48 pm, Srinadh Sannidhanam said:
> > Hi
> >   When I use $_REQUEST for accessing files uploaded, it is working
> > fine in PHP PHP 4.3.10.
> >  But it is not working in PHP 4.3.4.
> >  $_FILES working in both the versions. Can I use $_REQUEST in PHP
> > 4.3.10 also? Do I need to change any configuration in php.ini?
> > server is Apache/2.0.49
> > Please help me in this regard.
> 
> When $_REQUEST doesn't seem to work with file uploads, it almost always,
> in my experience, means I forgot the ENCTYPE="multipart/form-data" on the
> FORM tag.
> 
> D'oh!
> 
> I did that several times, over the years, before it became a habit to type
> it for file uploads.
> 
> YMMV
> 
> --
> Like Music?
> http://l-i-e.com/artists.htm
> 
>

--- End Message ---
--- Begin Message ---
> Thanks for the reponse. I tested again, but it was not the problem
> with ENCTYPE. I am getting file with $_FILES. I think this is due to
> CGI configuration if not with php.ini. Because when I check the
> version by using "PHP -v" command, it shows "4.3.10 (cgi)" but when
> check that using phpinfo() function, it is showing as PHP 4.2.2. Why
> the difference? I am working in that view to find the solution.
> Currently I got a temporary solution. I am jsut copying from $_FILES
> to $_REQUEST at the very begining of the script. Because I can't
> change all the scripts now.

Because you have two different versions of PHP installed. In
otherwords, the CGI version and most likely the module
version.

Now to answer your question, here's a quote from the 
PHP Manual:

 Note: Prior to PHP 4.3.0, $_FILES information was 
       also included in $_REQUEST.

So, $_FILES is no longer part of $_REQUEST.

Regards,
Philip

http://php.net/manual/en/reserved.variables.php#reserved.variables.request

--- End Message ---
--- Begin Message ---
Hi everyone.. kind of OT
 Anyone who's passed it in the list? I'm having my exam on May 7th. Gone 
through the guide book once. Sounds easy according to the guide.
I dont think it's as easy as i'm thinking it is........ any experience? 
Thanx in advance.

-- 
M.Saleh.E.G
97150-4779817

--- End Message ---
--- Begin Message --- M Saleh EG wrote:
Hi everyone.. kind of OT
Anyone who's passed it in the list? I'm having my exam on May 7th. Gone through the guide book once. Sounds easy according to the guide.
I dont think it's as easy as i'm thinking it is........ any experience? Thanx in advance.

My advice -- take the full amount of time given to you, and go back over your answers should you have time left over.

I took it at the "2005 PHP Quebec Conference" (it was part of the fee). I finished it in an hour, but had 90 minutes alotted. I did not pass, and still regret not taking the time to go back over the answers I was unsure of. I think that if I had taken the full time, I would have had a better shot.

You'll likely have better luck, as I normally don't do well with exams in general.

As an aside, I think the exam needs to mature a bit more. I was confused a few times, and found a few questions that involved cases I had certainly experienced in five plus years of PHP development. I'm sure that'll happen in due time as the certification is only a couple years old.

--
Aaron Gould
Programmer/Systems Administrator
PARTS CANADA

--- End Message ---
--- Begin Message ---
Hi list:

Recently I installed Windows 2003 Server. Now I try to install Apache 2.0.48 
and PHP 5.0.4. First I install PHP 5.0.4 from source binary to Win32 downloaded 
from www.php.net <http://www.php.net/> . It's means that php5apache2.dll is 
include in this packet. Well when I try to config the httpd.conf file and put 
this LoadModule C:/PHP/php5apache2.dll into Modules config the service doesn't 
start. Why? Some help?

Thanks

 

Reynier P�rez Mira

3ero. Ing. Inform�tica

Entre m�s inteligente me siento, m�s me doy cuenta de lo ignorante que soy. 

 


--- End Message ---
--- Begin Message ---
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
 
Hello,

What is the exact error message the Apache is giving you?

Reynier Perez Mira wrote:

> Hi list:
>
> Recently I installed Windows 2003 Server. Now I try to install
> Apache 2.0.48 and PHP 5.0.4. First I install PHP 5.0.4 from source
> binary to Win32 downloaded from www.php.net <http://www.php.net/> .
> It's means that php5apache2.dll is include in this packet. Well
> when I try to config the httpd.conf file and put this LoadModule
> C:/PHP/php5apache2.dll into Modules config the service doesn't
> start. Why? Some help?
>
> Thanks
>
>
>
> Reynier P�rez Mira
>
> 3ero. Ing. Inform�tica
>
> Entre m�s inteligente me siento, m�s me doy cuenta de lo ignorante
> que soy.
>
>
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (MingW32)
Comment: GnuPT 2.6.1.1 by EQUIPMENTE.DE
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
 
iD8DBQFCaW0MTMDaAcJxvKgRAk8jAKCtLnKANk4dtI8RdiZnj8fVK8WWVgCdHBAy
HqIfkAkhh5fH/f/Bj70r8Xc=
=bQMO
-----END PGP SIGNATURE-----

--- End Message ---
--- Begin Message ---
Hello,

What is the exact error message the Apache is giving you?

- Ryan

Reynier Perez Mira wrote:

>Hi list:
>
>Recently I installed Windows 2003 Server. Now I try to install Apache 2.0.48 
>and PHP 5.0.4. First I install PHP 5.0.4 from source binary to Win32 
>downloaded from www.php.net <http://www.php.net/> . It's means that 
>php5apache2.dll is include in this packet. Well when I try to config the 
>httpd.conf file and put this LoadModule C:/PHP/php5apache2.dll into Modules 
>config the service doesn't start. Why? Some help?
>
>Thanks
>
> 
>
>Reynier P�rez Mira
>
>3ero. Ing. Inform�tica
>
>Entre m�s inteligente me siento, m�s me doy cuenta de lo ignorante que soy. 
>
> 
>
>
>  
>

--- End Message ---
--- Begin Message ---
/* My response is below */
 [quoting person="Reynier Perez Mira"]
>Recently I installed Windows 2003 Server. Now I try to install Apache >
2.0.48 and PHP 5.0.4. First I install PHP 5.0.4 from source binary to Win32 
>downloaded from www.php.net <http://www.php.net> <http://www.php.net/> . 
It's means that >php5apache2.dll is include in this packet. Well when I try 
to config the >httpd.conf file and put this LoadModule 
C:/PHP/php5apache2.dll into >Modules config the service doesn't start. Why? 
Some help?
>
>Thanks
[/quote]
 You need to tell Apache what function this module file will perform. You 
are onlly telling it the path to the file. You could specify the any module 
with a VERY descriptive file name, but Apache still doesn't know what to do 
with it.
 You need to use this type of a directive.
 LoadModule php5_module "C:/PHP/php5apache2.dll"
 The first argument passed will tell Apache the function of this file, and 
the second argument tells it where to look for the library.
 Hope it helps!
 -- 
The Disguised Jedi
[EMAIL PROTECTED]

Now you have my $0.02. Or .01 Pounds, .014 Euros, or $0.025 CAN. I'm 
world-wide BABY!
PHP rocks!
"Knowledge is Power. Power Corrupts. Go to school, become evil"

Disclaimer: Any disclaimer attached to this message may be ignored. However, 
I must say that the ENTIRE contents of this message are subject to other's 
criticism, corrections, and speculations.

This message is Certified Virus Free

--- End Message ---
--- Begin Message ---
Somewhat OT...

Okay, maybe a lot OT...

I have these cron jobs on a computer, and I want the email output from them.

But I don't want sendmail running 24/7, and when it does run, I'd just as
soon it *ONLY* processed email and sent it out, without even opening up
port 25 and listening.

I guess the port 25 stuff is not too terribly important, behind 2
firewalls and all, but...

Anyway, I definitely want it to run and process however much it can, but
to STOP at a pre-determined time.

This is for the computer in my sound booth, and I only want it running
when we are not trying to record live music or burn CDs.

I've Google and read a fair amount of stuff, most of which is giving me a
headache rather than suggesting a solution...

Is there some command line flags I can use to make sendmail run and send
out just *ONE* message from the /var/mail/mqueue or whatever, and then
QUIT and do nothing else?

I can take care of shaping the behaviour from that point using cron and
PHP to run sendmail when I want...

THANKS and please reply off-list as I'm sure most folks don't want to read
this.

-- 
Like Music?
http://l-i-e.com/artists.htm

--- End Message ---
--- Begin Message ---
 hi,

 im handling some important information that needs to be stored in my
 postgresql database via a php script. i�ve been reading the mails sent on
 this mailing list on SSL use. my postgresql server allows SSL connections
 but im not sure how to make use of this.id like to know more about ssl and
 how to take advantage of its security features. any references?

  from my php script, do i need to make a special connection to the database
 or is the same e.g pg_connect(host= localhost dbname=test user=p
 password=p)?

 is my information automatically transfered in an encrypted fashion?

 thnax

--- End Message ---
--- Begin Message ---
Hello friends
 I  try to use the packet pear, but I have a big problem, the IE show me the
 following Error.
  Fatal error: Class 'Pager' not found in D:\Angerona\paginas\1.php on line
9
 require 'Pager.php';
 the line 9 --->$pager = new Pager($res, $from, $limit);
 somebody can help me?

 why the class Pager not found if I include_path at the file php.ini?

 PD: I use php over windows.

 best regards TOMAS



-------------------------------------------------------------------------
Este correo fue escaneado en busca de virus con el MDaemon Antivirus 2.27
en el dominio de correo angerona.cult.cu  y no se encontro ninguna coincidencia.

--- End Message ---
--- Begin Message ---
On Fri, April 22, 2005 5:25 pm, Tom�s Rodriguez Orta said:
> Hello friends
>  I  try to use the packet pear, but I have a big problem, the IE show me
> the
>  following Error.
>   Fatal error: Class 'Pager' not found in D:\Angerona\paginas\1.php on
> line
> 9
>  require 'Pager.php';
>  the line 9 --->$pager = new Pager($res, $from, $limit);
>  somebody can help me?
>
>  why the class Pager not found if I include_path at the file php.ini?
>
>  PD: I use php over windows.

The rest of the error message should be telling you what PHP is using for
include_path.

Does that match what you expect?

If not, then you don't have php.ini the way it should be.  Check the
location of php.ini in <?php phpinfo();?>

If it *does* match, then maybe your Pager.php file is messed up and the
class is missing a closing bracket, so your script thinks you're still in
the middle of your class definition.

-- 
Like Music?
http://l-i-e.com/artists.htm

--- End Message ---
--- Begin Message ---
* Richard Lynch <[EMAIL PROTECTED]>:
> On Fri, April 22, 2005 5:25 pm, Tom�s Rodriguez Orta said:
> > Hello friends
> >  I  try to use the packet pear, but I have a big problem, the IE
> >  show me the following Error.
> >   Fatal error: Class 'Pager' not found in D:\Angerona\paginas\1.php
> >   on line 9
> >  require 'Pager.php';
> >  the line 9 --->$pager = new Pager($res, $from, $limit);
> >  somebody can help me?
> >
> >  why the class Pager not found if I include_path at the file php.ini?
> >
> >  PD: I use php over windows.
>
> The rest of the error message should be telling you what PHP is using for
> include_path.
>
> Does that match what you expect?
>
> If not, then you don't have php.ini the way it should be.  Check the
> location of php.ini in <?php phpinfo();?>

I have to second Richard on this -- check your php.ini file, and make
sure that the directory where PEAR and/or the PEAR::Pager class are
located are in your include_path. Then, once you are sure of that, make
sure that Pager.php is at the top of one of the paths in your
include_path.

> If it *does* match, then maybe your Pager.php file is messed up and the
> class is missing a closing bracket, so your script thinks you're still in
> the middle of your class definition.

I'm guessing this is probably *not* the case... it's a PEAR package, and
if it's considered stable, this is *highly* unlikely. (Plus, if it's the
stable version, then I'm running it on my production servers, and I
*know* it's working fine!)

-- 
Matthew Weier O'Phinney           | WEBSITES:
Webmaster and IT Specialist       | http://www.garden.org
National Gardening Association    | http://www.kidsgardening.com
802-863-5251 x156                 | http://nationalgardenmonth.org
mailto:[EMAIL PROTECTED]         | http://vermontbotanical.org

--- End Message ---
--- Begin Message ---
On Fri, Apr 22, 2005 at 04:38:29PM -0400, ruel.cima wrote:
> 
>  im handling some important information that needs to be stored in my
>  postgresql database via a php script. i've been reading the mails sent on
>  this mailing list on SSL use. my postgresql server allows SSL connections
>  but im not sure how to make use of this.id like to know more about ssl and
>  how to take advantage of its security features. any references?

The documentation index has a few entries for "SSL".  Here are some
useful links for 8.0:

http://www.postgresql.org/docs/8.0/interactive/ssl-tcp.html
http://www.postgresql.org/docs/8.0/interactive/libpq.html#LIBPQ-CONNECT
http://www.postgresql.org/docs/8.0/interactive/client-authentication.html#AUTH-PG-HBA-CONF

> from my php script, do i need to make a special connection to the database
> or is the same e.g pg_connect(host= localhost dbname=test user=p
> password=p)?

You could add "sslmode=require" to attempt only an SSL connection.

If the connection should always be encrypted, then you could edit
the server's pg_hba.conf and allow only "hostssl" connections.  In
that case you shouldn't need to specify "sslmode=require" when you
connect, although doing so serves as a safety measure against
pg_hba.conf misconfiguration, and as a reminder that the connection
should be encrypted.

> is my information automatically transfered in an encrypted fashion?

Yes, assuming you've successfully negotiated an SSL connection.  To
be sure, you could use a sniffer like tcpdump or ethereal to look
at the traffic.

-- 
Michael Fuhr
http://www.fuhr.org/~mfuhr/

--- End Message ---
--- Begin Message ---
> > from my php script, do i need to make a special
> > connection to the database
> > or is the same e.g pg_connect(host= localhost
> >dbname=test user=p
> > password=p)?
> 
> You could add "sslmode=require" to attempt only an
> SSL connection.

I have couple related questions:

Is this necessary if the database is running on the
same machine (as implied by "host= localhost")? If so
why?

Is it possible to make an SSL connection between
Apache and Postgres using Unix-domain sockets?




-k.


                
__________________________________ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/ 

--- End Message ---
--- Begin Message ---
On Fri, Apr 22, 2005 at 03:02:25PM -0700, -k. wrote:
> > > from my php script, do i need to make a special
> > > connection to the database
> > > or is the same e.g pg_connect(host= localhost
> > >dbname=test user=p
> > > password=p)?
> > 
> > You could add "sslmode=require" to attempt only an
> > SSL connection.
> 
> I have couple related questions:
> 
> Is this necessary if the database is running on the
> same machine (as implied by "host= localhost")? If so
> why?

Probably not; I was simply discussing the mechanism in general.  If
the only users who could sniff the connection are privileged users
who already have access to the filesystem and memory, then encrypting
a connection to localhost wouldn't do much except slow down the
connection.  It would, however, mean you wouldn't have to remember
to change that later if the web server and database were split onto
separate machines.

> Is it possible to make an SSL connection between
> Apache and Postgres using Unix-domain sockets?

I don't think libpq will attempt SSL over a Unix-domain socket.  I
see a comment in fe-connect.c that says "Don't bother requesting
SSL over a Unix socket", although I haven't examined the code to
see if that's the only place such a decision would be made.

BTW, connecting with "host=localhost" makes a TCP connection;
omitting that and making a Unix-domain connection would probably
make the connection more efficient (assuming the system supports
Unix-domain sockets, that is).

-- 
Michael Fuhr
http://www.fuhr.org/~mfuhr/

--- End Message ---
--- Begin Message ---
I use the example given at http://ph.php.net/manual/en/ref.errorfunc.php

However, when I tried to call an undefined function, I get the normal Fatal Error message instead of the custom message I entered in the error handler function.

____________________
My System Settings:
Apache 2.0.53
PHP version 5.0.4
Windows XP SP2

--- End Message ---
--- Begin Message ---
On Fri, April 22, 2005 3:10 pm, Pinoy Ako said:
> I use the example given at http://ph.php.net/manual/en/ref.errorfunc.php
>
> However, when I tried to call an undefined function, I get the normal
> Fatal
> Error message instead of the custom message I entered in the error handler
> function.

As the User Contributed notes indicate, *SOME* PHP errors simply cannot be
trapped by your custom error handler.

This may, or may not, be one of those cases.

Is an undefined function one of the examples?  If not, try one of those.

Also, did you remember to call http://php.net/set_error_handler as well as
to define the function?

-- 
Like Music?
http://l-i-e.com/artists.htm

--- End Message ---
--- Begin Message --- All the resources I've found on the web for URL encoding values within an XSL stylesheet are either .NET or Java, so I'm looking for some help with how to do this using PHP's special flavor of XML/XSL.

Within the XSL doc, I've got:

<xsl:variable name="ItemLink" select="concat($MediaPlexURL, Link)"/>
<a href="http://www.anrdoezrs.net/click-1692198-5463217?loc={$ItemLink}";>

and $ItemLink needs to be URL encoded. How do I do this on my PHP box? Sorry no Java or .NET available... :)
--- End Message ---
--- Begin Message ---
On Fri, April 22, 2005 3:18 pm, Brian Dunning said:
> All the resources I've found on the web for URL encoding values within
> an XSL stylesheet are either .NET or Java, so I'm looking for some help
> with how to do this using PHP's special flavor of XML/XSL.
>
> Within the XSL doc, I've got:

Didja search the manual?

http://php.net/urlencode

<?php
  $ItemLink = urlencode($ItemLink);
?>

> <xsl:variable name="ItemLink" select="concat($MediaPlexURL, Link)"/>
> <a
> href="http://www.anrdoezrs.net/click-1692198-5463217?loc={$ItemLink}";>
>
> and $ItemLink needs to be URL encoded. How do I do this on my PHP box?
> Sorry no Java or .NET available...   :)



-- 
Like Music?
http://l-i-e.com/artists.htm

--- End Message ---
--- Begin Message ---
<?php
  $ItemLink = urlencode($ItemLink);
?>

Are you saying to embed that within the XSL? Will it process, and will the XSL variable be valid for PHP?
--- End Message ---

Reply via email to