From davidalanroth at gmail.com Mon May 16 14:16:10 2011 From: davidalanroth at gmail.com (David Roth) Date: Mon, 16 May 2011 14:16:10 -0400 Subject: [nycphp-talk] Does PHP have file size download limits? Best practice? Message-ID: I want to offer users to be able to download a file from a PHP script. I seem to remember there were/are file size download limits with PHP? Also what is the best practice for doing this with a PHP script? Thanks! David Roth From dcech at phpwerx.net Mon May 16 14:22:37 2011 From: dcech at phpwerx.net (Dan Cech) Date: Mon, 16 May 2011 14:22:37 -0400 Subject: [nycphp-talk] Does PHP have file size download limits? Best practice? In-Reply-To: References: Message-ID: <4DD16B6D.2030809@phpwerx.net> On 5/16/2011 2:16 PM, David Roth wrote: > I want to offer users to be able to download a file from a PHP script. I > seem to remember there were/are file size download limits with PHP? You're probably thinking of the php ini settings that affect file uploads. The issues you're likely to run into offering large downloads are indirect; memory limits can be a problem if you have to buffer the entire file into memory in PHP. If you can stream it out to the client instead you can offer virtually unlimited file sizes. You may need to extend the maximum execution time to avoid having your script cut off mid-download. > Also > what is the best practice for doing this with a PHP script? Thanks! Best practice would include providing proper HTTP headers according to your situation, including Content-Disposition (with filename) and Content-Length so the browser's download progress meter will work properly. Dan From jcampbell1 at gmail.com Mon May 16 14:28:01 2011 From: jcampbell1 at gmail.com (John Campbell) Date: Mon, 16 May 2011 14:28:01 -0400 Subject: [nycphp-talk] Does PHP have file size download limits? Best practice? In-Reply-To: References: Message-ID: There are no filesize limits, but you can run in to memory limits if you load the file into memory. To avoid this, use `fpassthru`. In terms of best practices, don't pass a user generated filename into fopen. It is a security mess. If you really need to allow arbitrary filenames, you should scrub both slashes and leading periods. On Mon, May 16, 2011 at 2:16 PM, David Roth wrote: > I want to offer users to be able to download a file from a PHP script. I > seem to remember there were/are file size download limits with PHP? Also > what is the best practice for doing this with a PHP script? Thanks! > > David Roth > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > From mmwaldman at nyc.rr.com Mon May 16 22:38:11 2011 From: mmwaldman at nyc.rr.com (Michele Waldman) Date: Mon, 16 May 2011 22:38:11 -0400 Subject: [nycphp-talk] Does PHP have file size download limits? Bestpractice? In-Reply-To: <4DD16B6D.2030809@phpwerx.net> References: <4DD16B6D.2030809@phpwerx.net> Message-ID: <8352ADE2930F4CF49245CF98613EC1FD@michelePC> I'm still alive. -------------------------------------------------- From: "Dan Cech" Sent: Monday, May 16, 2011 2:22 PM To: Subject: Re: [nycphp-talk] Does PHP have file size download limits? Bestpractice? > On 5/16/2011 2:16 PM, David Roth wrote: >> I want to offer users to be able to download a file from a PHP script. I >> seem to remember there were/are file size download limits with PHP? > > You're probably thinking of the php ini settings that affect file uploads. > The issues you're likely to run into offering large downloads are > indirect; memory limits can be a problem if you have to buffer the entire > file into memory in PHP. > > If you can stream it out to the client instead you can offer virtually > unlimited file sizes. You may need to extend the maximum execution time > to avoid having your script cut off mid-download. > >> Also >> what is the best practice for doing this with a PHP script? Thanks! > > Best practice would include providing proper HTTP headers according to > your situation, including Content-Disposition (with filename) and > Content-Length so the browser's download progress meter will work > properly. > > Dan > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > From mkfmncom at gmail.com Wed May 25 17:04:15 2011 From: mkfmncom at gmail.com (Matt Kaufman) Date: Wed, 25 May 2011 17:04:15 -0400 Subject: [nycphp-talk] Office Message-ID: I am a programmer who an office to work out of both on a short-term (instant, asap) basis and also longer-term basis for my trading/software company, MarketAPI. On a shorter-term basis, I need to quickly find an office that I can work in today (this afternoon, possibly even into tonight) around midtown (or other locations I am open to :)), that I could work out of. Even locations such as Long Island and NJ would be possible too, depending on size and space and how easy it is to access (eg PATH, LIRR, train... cab). Email me at mkfmncom at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From mutazmusa at gmail.com Wed May 25 17:06:34 2011 From: mutazmusa at gmail.com (Mutaz Musa) Date: Wed, 25 May 2011 17:06:34 -0400 Subject: [nycphp-talk] Office In-Reply-To: References: Message-ID: Check out http://hiveat55.com/ On Wed, May 25, 2011 at 5:04 PM, Matt Kaufman wrote: > I am a programmer who an office to work out of both on a short-term > (instant, asap) basis and also longer-term basis for my trading/software > company, MarketAPI. > > On a shorter-term basis, I need to quickly find an office that I can work > in today (this afternoon, possibly even into tonight) around midtown (or > other locations I am open to :)), that I could work out of. > > Even locations such as Long Island and NJ would be possible too, depending > on size and space and how easy it is to access (eg PATH, LIRR, train... > cab). > > Email me at mkfmncom at gmail.com > > > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ben at projectskyline.com Wed May 25 17:06:47 2011 From: ben at projectskyline.com (Ben Sgro) Date: Wed, 25 May 2011 17:06:47 -0400 Subject: [nycphp-talk] Office In-Reply-To: References: Message-ID: <6799F42E-A3B8-4C12-80E5-B904EB75D52B@projectskyline.com> Take a look at http://hiveat55.com/ On May 25, 2011, at 5:04 PM, Matt Kaufman wrote: > I am a programmer who an office to work out of both on a short-term (instant, asap) basis and also longer-term basis for my trading/software company, MarketAPI. > > On a shorter-term basis, I need to quickly find an office that I can work in today (this afternoon, possibly even into tonight) around midtown (or other locations I am open to :)), that I could work out of. > > Even locations such as Long Island and NJ would be possible too, depending on size and space and how easy it is to access (eg PATH, LIRR, train... cab). > > Email me at mkfmncom at gmail.com > > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation -------------- next part -------------- An HTML attachment was scrubbed... URL: From mkfmncom at gmail.com Wed May 25 17:11:00 2011 From: mkfmncom at gmail.com (Matt Kaufman) Date: Wed, 25 May 2011 17:11:00 -0400 Subject: [nycphp-talk] Office In-Reply-To: <6799F42E-A3B8-4C12-80E5-B904EB75D52B@projectskyline.com> References: <6799F42E-A3B8-4C12-80E5-B904EB75D52B@projectskyline.com> Message-ID: Wow, 2 replies instantly for Hive at 55. That is nice, but I need 24/7 access tonight --- And they don't offer that in their regular "Drop In" package, do they? How fast could I pay for access anywhere to gain 24/7 Access? Matt On Wed, May 25, 2011 at 5:06 PM, Ben Sgro wrote: > Take a look at http://hiveat55.com/ > > On May 25, 2011, at 5:04 PM, Matt Kaufman wrote: > > I am a programmer who an office to work out of both on a short-term > (instant, asap) basis and also longer-term basis for my trading/software > company, MarketAPI. > > On a shorter-term basis, I need to quickly find an office that I can work > in today (this afternoon, possibly even into tonight) around midtown (or > other locations I am open to :)), that I could work out of. > > Even locations such as Long Island and NJ would be possible too, depending > on size and space and how easy it is to access (eg PATH, LIRR, train... > cab). > > Email me at mkfmncom at gmail.com > > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > > > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bruce.Amick at bbvany.com Wed May 25 17:27:58 2011 From: Bruce.Amick at bbvany.com (Amick, Bruce) Date: Wed, 25 May 2011 17:27:58 -0400 Subject: [nycphp-talk] Office In-Reply-To: References: <6799F42E-A3B8-4C12-80E5-B904EB75D52B@projectskyline.com> Message-ID: <57B59A2A2F833B42BC2511E7FE256C2F0182C18C@s7760110a.bbvany.igrupobbva> I's say for tonight you should rent a hotel room if you want 24/7 access From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Matt Kaufman Sent: Wednesday, May 25, 2011 5:11 PM To: NYPHP Talk Subject: Re: [nycphp-talk] Office Wow, 2 replies instantly for Hive at 55. That is nice, but I need 24/7 access tonight --- And they don't offer that in their regular "Drop In" package, do they? How fast could I pay for access anywhere to gain 24/7 Access? Matt On Wed, May 25, 2011 at 5:06 PM, Ben Sgro wrote: Take a look at http://hiveat55.com/ On May 25, 2011, at 5:04 PM, Matt Kaufman wrote: I am a programmer who an office to work out of both on a short-term (instant, asap) basis and also longer-term basis for my trading/software company, MarketAPI. On a shorter-term basis, I need to quickly find an office that I can work in today (this afternoon, possibly even into tonight) around midtown (or other locations I am open to :)), that I could work out of. Even locations such as Long Island and NJ would be possible too, depending on size and space and how easy it is to access (eg PATH, LIRR, train... cab). Email me at mkfmncom at gmail.com _______________________________________________ New York PHP Users Group Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org/Show-Participation _______________________________________________ New York PHP Users Group Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org/Show-Participation - ----------------------------------------------------------------- This e-mail may contain information that is confidential, privileged or otherwise protected from disclosure. If you are not the intended recipient of this e-mail, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including reliance thereon) is strictly prohibited. If you have received this e-mail in error, please delete it from your system and notify the sender immediately. E-mail messages may contain computer viruses or other defects, may not be accurately replicated in other systems, or may be intercepted, deleted or interfered with without the knowledge of the sender or the intended recipient. The sender, therefore, does not accept any liability for any losses or damages arising as a result of e-mail transmission. BBVA reserves the right, to the extent and under circumstances permitted by applicable law, to retain, monitor and intercept e-mail messages to and from its systems. This communication is for informational purposes only and is not intended as a solicitation, commitment or an offer to buy or sell securities or to participate in any particular trading strategy, nor is it an official confirmation of terms. Any comments or statements made herein do not necessarily reflect those of BBVA, its subsidiaries and affiliates. The information contained in this communication does not constitute a research document, investment or financial product advice, or a recommendation to enter into a transaction, and is not intended to be used as a basis for a decision of any kind. You should consult with your own tax, legal and investment adviser with respect to any such decision. The information, opinions, estimates and forecasts contained in this communication have been arrived at or obtained from sources believed to be reliable, and in good faith, but no independent verification has been made, and BBVA makes no warranty, expressed or implied, as to their accuracy, completeness or correctness. No representation is made that any returns or forward-looking statements contained herein should or will be achieved. Past performance is not indicative of future returns. BBVA does not undertake to update the information contained herein. Price, availability and other information are subject to change without prior notice. BBVA disclaims any and all liability for any direct or consequential losses arising from the use of this communication or its contents. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mutazmusa at gmail.com Wed May 25 17:29:57 2011 From: mutazmusa at gmail.com (Mutaz Musa) Date: Wed, 25 May 2011 17:29:57 -0400 Subject: [nycphp-talk] Office In-Reply-To: References: <6799F42E-A3B8-4C12-80E5-B904EB75D52B@projectskyline.com> Message-ID: >From their membership page: http://hiveat55.com/membership Full-Time Membership $300/month Access to a dedicated desk for your exclusive use for all open hours or 24 x 7 (5days/week) Locker for storage Mailing address Access card to building Discounts on partner services 10% off Voxel services There are other membership options that include 24x7x365 access. On Wed, May 25, 2011 at 5:11 PM, Matt Kaufman wrote: > > Wow, 2 replies instantly for Hive at 55.? That is nice, but I need 24/7 access tonight --- And they don't offer that in their regular "Drop In" package, do they???? How fast could I pay for access anywhere to gain 24/7 Access? > > Matt > > > On Wed, May 25, 2011 at 5:06 PM, Ben Sgro wrote: >> >> Take a look at?http://hiveat55.com/ >> On May 25, 2011, at 5:04 PM, Matt Kaufman wrote: >> >> I am a programmer who? an office to work out of both on a short-term (instant, asap) basis and also longer-term basis for my trading/software company, MarketAPI. >> >> On a shorter-term basis, I need to quickly find an office that I can work in today (this afternoon, possibly even into tonight) around midtown (or other locations I am open to :)), that I could work out of. >> >> Even locations such as Long Island and NJ would be possible too, depending on size and space and how easy it is to access (eg PATH, LIRR, train... cab). >> >> Email me at mkfmncom at gmail.com >> >> >> _______________________________________________ >> New York PHP Users Group Community Talk Mailing List >> http://lists.nyphp.org/mailman/listinfo/talk >> >> http://www.nyphp.org/Show-Participation >> >> _______________________________________________ >> New York PHP Users Group Community Talk Mailing List >> http://lists.nyphp.org/mailman/listinfo/talk >> >> http://www.nyphp.org/Show-Participation > > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation From selyah1 at yahoo.com Fri May 27 13:13:18 2011 From: selyah1 at yahoo.com (I H) Date: Fri, 27 May 2011 10:13:18 -0700 (PDT) Subject: [nycphp-talk] font properties Message-ID: <918354.49316.qm@web30802.mail.mud.yahoo.com> Hello All: I am designing a site and need assistance on one issue. It has to deal with fonts. to change the width of a font, you would use the font-width statement to change the font from left-to-right. is there a way of changing it from top-to-bottom. ie to stretch the font ? thanks in advance Ian -------------- next part -------------- An HTML attachment was scrubbed... URL: From anthony at tinkertownlabs.com Fri May 27 13:29:22 2011 From: anthony at tinkertownlabs.com (Anthony Wlodarski) Date: Fri, 27 May 2011 13:29:22 -0400 Subject: [nycphp-talk] font properties In-Reply-To: <918354.49316.qm@web30802.mail.mud.yahoo.com> References: <918354.49316.qm@web30802.mail.mud.yahoo.com> Message-ID: <4DDFDF72.5030306@tinkertownlabs.com> The only feasible way to do this that I am aware of is with CSS3 and the font-stretch declaration. But it will still only scale it horizontally, not vertically. -Anthony On 05/27/2011 01:13 PM, I H wrote: > > Hello All: > > I am designing a site and need assistance on one issue. It has to > deal with fonts. to change the width of a font, you would use the > font-width statement to change the font from left-to-right. is there > a way of changing it from top-to-bottom. ie to stretch the font ? > > > thanks in advance > > > */Ian/* > > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation -- Anthony Wlodarski Lead Software Engineer Get2Know.me (http://www.get2know.me) Office: 646-285-0500 x217 Fax: 646-285-0400 -------------- next part -------------- An HTML attachment was scrubbed... URL: From jana at meetduo.com Fri May 27 13:39:19 2011 From: jana at meetduo.com (Jana Harper) Date: Fri, 27 May 2011 10:39:19 -0700 Subject: [nycphp-talk] font properties In-Reply-To: <4DDFDF72.5030306@tinkertownlabs.com> References: <918354.49316.qm@web30802.mail.mud.yahoo.com> <4DDFDF72.5030306@tinkertownlabs.com> Message-ID: <3CE7F05B-E244-4CB1-9A48-CA91321E1F1E@meetduo.com> Hi Ian, You can use line-height to adjust the height of the space the font fits in, but as far as I know there isn't a way to scale the font vertically. Even if there was a way to do that I wouldn't recommend it because it would distort the original intended look of the typeface. If you need a taller font and increasing the size makes it too wide, pick a different typeface. There are quite a few to choose from with the advent of web fonts -- check out these sites: http://typekit.com/ http://webfonts.fonts.com/ http://www.fonts.com/ http://www.google.com/webfonts Also check out this API for accessing typefaces from various providers through a common interface: http://code.google.com/apis/webfonts/ Jana Harper Duo www.meetduo.com www.wellcrafted.is @well_crafted @meetduo 206.601.0127 On May 27, 2011, at 10:29 AM, Anthony Wlodarski wrote: > The only feasible way to do this that I am aware of is with CSS3 and the font-stretch declaration. But it will still only scale it horizontally, not vertically. > > -Anthony > > On 05/27/2011 01:13 PM, I H wrote: >> >> Hello All: >> >> I am designing a site and need assistance on one issue. It has to deal with fonts. to change the width of a font, you would use the font-width statement to change the font from left-to-right. is there a way of changing it from top-to-bottom. ie to stretch the font ? >> >> >> thanks in advance >> >> >> >> Ian >> >> _______________________________________________ >> New York PHP Users Group Community Talk Mailing List >> http://lists.nyphp.org/mailman/listinfo/talk >> >> http://www.nyphp.org/Show-Participation > > -- > Anthony Wlodarski > Lead Software Engineer > Get2Know.me (http://www.get2know.me) > Office: 646-285-0500 x217 > Fax: 646-285-0400 > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation -------------- next part -------------- An HTML attachment was scrubbed... URL: From selyah1 at yahoo.com Fri May 27 13:45:53 2011 From: selyah1 at yahoo.com (I H) Date: Fri, 27 May 2011 10:45:53 -0700 (PDT) Subject: [nycphp-talk] font properties In-Reply-To: <3CE7F05B-E244-4CB1-9A48-CA91321E1F1E@meetduo.com> References: <918354.49316.qm@web30802.mail.mud.yahoo.com> <4DDFDF72.5030306@tinkertownlabs.com> <3CE7F05B-E244-4CB1-9A48-CA91321E1F1E@meetduo.com> Message-ID: <645440.26369.qm@web30808.mail.mud.yahoo.com> thanks again, i will try those and check the links you sent Ian ________________________________ From: Jana Harper To: NYPHP Talk Sent: Fri, May 27, 2011 1:39:19 PM Subject: Re: [nycphp-talk] font properties Hi Ian, You can use line-height to adjust the height of the space the font fits in, but as far as I know there isn't a way to scale the font vertically. Even if there was a way to do that I wouldn't recommend it because it would distort the original intended look of the typeface. If you need a taller font and increasing the size makes it too wide, pick a different typeface. There are quite a few to choose from with the advent of web fonts -- check out these sites: http://typekit.com/ http://webfonts.fonts.com/ http://www.fonts.com/ http://www.google.com/webfonts Also check out this API for accessing typefaces from various providers through a common interface: http://code.google.com/apis/webfonts/ Jana Harper Duo www.meetduo.com www.wellcrafted.is @well_crafted @meetduo 206.601.0127 On May 27, 2011, at 10:29 AM, Anthony Wlodarski wrote: The only feasible way to do this that I am aware of is with CSS3 and the font-stretch declaration. But it will still only scale it horizontally, not vertically. > >-Anthony > >On 05/27/2011 01:13 PM, I H wrote: >Hello All: >>I am designing a site and need assistance on one issue. It has to >>deal with fonts. to change the width of a font, you would use the >>font-width statement to change the font from left-to-right. is there >>a way of changing it from top-to-bottom. ie to stretch the font ? >> >> >>thanks in advance >> >> >> >>Ian >> >> _______________________________________________ New York PHP Users Group >>Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk >>http://www.nyphp.org/Show-Participation -- Anthony Wlodarski Lead Software Engineer Get2Know.me (http://www.get2know.me/) Office: 646-285-0500 x217 Fax: 646-285-0400 _______________________________________________ >New York PHP Users Group Community Talk Mailing List >http://lists.nyphp.org/mailman/listinfo/talk > >http://www.nyphp.org/Show-Participation -------------- next part -------------- An HTML attachment was scrubbed... URL: From jusheehy at vassar.edu Fri May 27 14:21:19 2011 From: jusheehy at vassar.edu (Julia Sheehy) Date: Fri, 27 May 2011 14:21:19 -0400 (EDT) Subject: [nycphp-talk] talk Digest, Vol 55, Issue 5 In-Reply-To: Message-ID: <651190075.895888.1306520479971.JavaMail.root@zimmbox04> Jana is right -- picking a different font is the best solution to this. Try taking a look at: http://webfontspecimen.com/ http://nicewebtype.com/ http://typekit.com/ Julia Sheehy Programmer/Analyst Administrative Information Services Vassar College Poughkeepsie, NY 845.437.5939 Fax : 845.437.7050 http://www.linkedin.com/in/juliasheehy http://computing.vassar.edu/ http://www.nyphp.org/member CONFIDENTIALITY NOTICE: This electronic mail transmission is intended only for the use of the addressee and may contain information that is privileged and confidential. If you are not the intended recipient, any dissemination of this communication is prohibited. If you have received this transmission in error, please notify the sender immediately by email and delete the original message. Thank you. ----- Original Message ----- From: talk-request at lists.nyphp.org To: talk at lists.nyphp.org Sent: Friday, May 27, 2011 1:45:55 PM Subject: talk Digest, Vol 55, Issue 5 Send talk mailing list submissions to talk at lists.nyphp.org To subscribe or unsubscribe via the World Wide Web, visit http://lists.nyphp.org/mailman/listinfo/talk or, via email, send a message with subject or body 'help' to talk-request at lists.nyphp.org You can reach the person managing the list at talk-owner at lists.nyphp.org When replying, please edit your Subject line so it is more specific than "Re: Contents of talk digest..." Today's Topics: 1. font properties (I H) 2. Re: font properties (Anthony Wlodarski) 3. Re: font properties (Jana Harper) 4. Re: font properties (I H) ---------------------------------------------------------------------- Message: 1 Date: Fri, 27 May 2011 10:13:18 -0700 (PDT) From: I H To: talk at lists.nyphp.org Subject: [nycphp-talk] font properties Message-ID: <918354.49316.qm at web30802.mail.mud.yahoo.com> Content-Type: text/plain; charset="us-ascii" Hello All: I am designing a site and need assistance on one issue. It has to deal with fonts. to change the width of a font, you would use the font-width statement to change the font from left-to-right. is there a way of changing it from top-to-bottom. ie to stretch the font ? thanks in advance Ian -------------- next part -------------- An HTML attachment was scrubbed... URL: ------------------------------ Message: 2 Date: Fri, 27 May 2011 13:29:22 -0400 From: Anthony Wlodarski To: NYPHP Talk Subject: Re: [nycphp-talk] font properties Message-ID: <4DDFDF72.5030306 at tinkertownlabs.com> Content-Type: text/plain; charset="iso-8859-1"; Format="flowed" The only feasible way to do this that I am aware of is with CSS3 and the font-stretch declaration. But it will still only scale it horizontally, not vertically. -Anthony On 05/27/2011 01:13 PM, I H wrote: > > Hello All: > > I am designing a site and need assistance on one issue. It has to > deal with fonts. to change the width of a font, you would use the > font-width statement to change the font from left-to-right. is there > a way of changing it from top-to-bottom. ie to stretch the font ? > > > thanks in advance > > > */Ian/* > > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation -- Anthony Wlodarski Lead Software Engineer Get2Know.me (http://www.get2know.me) Office: 646-285-0500 x217 Fax: 646-285-0400 -------------- next part -------------- An HTML attachment was scrubbed... URL: ------------------------------ Message: 3 Date: Fri, 27 May 2011 10:39:19 -0700 From: Jana Harper To: NYPHP Talk Subject: Re: [nycphp-talk] font properties Message-ID: <3CE7F05B-E244-4CB1-9A48-CA91321E1F1E at meetduo.com> Content-Type: text/plain; charset="us-ascii" Hi Ian, You can use line-height to adjust the height of the space the font fits in, but as far as I know there isn't a way to scale the font vertically. Even if there was a way to do that I wouldn't recommend it because it would distort the original intended look of the typeface. If you need a taller font and increasing the size makes it too wide, pick a different typeface. There are quite a few to choose from with the advent of web fonts -- check out these sites: http://typekit.com/ http://webfonts.fonts.com/ http://www.fonts.com/ http://www.google.com/webfonts Also check out this API for accessing typefaces from various providers through a common interface: http://code.google.com/apis/webfonts/ Jana Harper Duo www.meetduo.com www.wellcrafted.is @well_crafted @meetduo 206.601.0127 On May 27, 2011, at 10:29 AM, Anthony Wlodarski wrote: > The only feasible way to do this that I am aware of is with CSS3 and the font-stretch declaration. But it will still only scale it horizontally, not vertically. > > -Anthony > > On 05/27/2011 01:13 PM, I H wrote: >> >> Hello All: >> >> I am designing a site and need assistance on one issue. It has to deal with fonts. to change the width of a font, you would use the font-width statement to change the font from left-to-right. is there a way of changing it from top-to-bottom. ie to stretch the font ? >> >> >> thanks in advance >> >> >> >> Ian >> >> _______________________________________________ >> New York PHP Users Group Community Talk Mailing List >> http://lists.nyphp.org/mailman/listinfo/talk >> >> http://www.nyphp.org/Show-Participation > > -- > Anthony Wlodarski > Lead Software Engineer > Get2Know.me (http://www.get2know.me) > Office: 646-285-0500 x217 > Fax: 646-285-0400 > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation -------------- next part -------------- An HTML attachment was scrubbed... URL: ------------------------------ Message: 4 Date: Fri, 27 May 2011 10:45:53 -0700 (PDT) From: I H To: NYPHP Talk Subject: Re: [nycphp-talk] font properties Message-ID: <645440.26369.qm at web30808.mail.mud.yahoo.com> Content-Type: text/plain; charset="us-ascii" thanks again, i will try those and check the links you sent Ian ________________________________ From: Jana Harper To: NYPHP Talk Sent: Fri, May 27, 2011 1:39:19 PM Subject: Re: [nycphp-talk] font properties Hi Ian, You can use line-height to adjust the height of the space the font fits in, but as far as I know there isn't a way to scale the font vertically. Even if there was a way to do that I wouldn't recommend it because it would distort the original intended look of the typeface. If you need a taller font and increasing the size makes it too wide, pick a different typeface. There are quite a few to choose from with the advent of web fonts -- check out these sites: http://typekit.com/ http://webfonts.fonts.com/ http://www.fonts.com/ http://www.google.com/webfonts Also check out this API for accessing typefaces from various providers through a common interface: http://code.google.com/apis/webfonts/ Jana Harper Duo www.meetduo.com www.wellcrafted.is @well_crafted @meetduo 206.601.0127 On May 27, 2011, at 10:29 AM, Anthony Wlodarski wrote: The only feasible way to do this that I am aware of is with CSS3 and the font-stretch declaration. But it will still only scale it horizontally, not vertically. > >-Anthony > >On 05/27/2011 01:13 PM, I H wrote: >Hello All: >>I am designing a site and need assistance on one issue. It has to >>deal with fonts. to change the width of a font, you would use the >>font-width statement to change the font from left-to-right. is there >>a way of changing it from top-to-bottom. ie to stretch the font ? >> >> >>thanks in advance >> >> >> >>Ian >> >> _______________________________________________ New York PHP Users Group >>Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk >>http://www.nyphp.org/Show-Participation -- Anthony Wlodarski Lead Software Engineer Get2Know.me (http://www.get2know.me/) Office: 646-285-0500 x217 Fax: 646-285-0400 _______________________________________________ >New York PHP Users Group Community Talk Mailing List >http://lists.nyphp.org/mailman/listinfo/talk > >http://www.nyphp.org/Show-Participation -------------- next part -------------- An HTML attachment was scrubbed... URL: ------------------------------ _______________________________________________ talk mailing list talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk End of talk Digest, Vol 55, Issue 5 *********************************** From ron.painter at gmail.com Fri May 27 16:48:08 2011 From: ron.painter at gmail.com (Ronald Painter) Date: Fri, 27 May 2011 16:48:08 -0400 Subject: [nycphp-talk] font properties Message-ID: Hi, Ian: Set font-size to the height you need and use (per Anthony's comment) font-stretch to adjust the width of the typeface. The caveat is that font-stretch is CSS3 and buggy or non-existent in most browsers. IE 9 is rumored to support it as is FF3.6+ but it is probably too early to reliably use it, even on those browsers. You could also use negative letter-spacing to tighten up the tracking but you need a light hand with this approach and it simply positions the letters closer to each other without changing the width. Using alternate typefaces, @font-face, for example fontsquirrel ( http://www.fontsquirrel.com/fontface/generator) or cufon ( http://cufon.shoqolate.com/generate/) is an option, but you need to keep typeface copyrights in mind when you use those services. Good luck on your design. Ron -------------- next part -------------- An HTML attachment was scrubbed... URL: From davidalanroth at gmail.com Mon May 30 02:42:58 2011 From: davidalanroth at gmail.com (David Roth) Date: Mon, 30 May 2011 02:42:58 -0400 Subject: [nycphp-talk] Can Javascript call a PHP program and read the results? Message-ID: <86E4537A-C718-4079-A886-4D23EBF97946@gmail.com> I'm using Tumblr.com for a blog platform for a new website. It has a lot of benefits as a blog, but it also has the restriction of not being able to embed PHP code in the HTML theme template. (Yes, I know, my feelings exactly! :-) ) But Tumblr does support Javascript. What I'm trying to do is get the county code of the user so that different links can be presented to them that matches their country. Serving up different links based on the country code would be handled by Javascript. There is a Javascript Google library jsapi, but it doesn't work properly for county code. For example, I'm in the New York City metro area and it says I'm in Canada, not the US. I don't recalling having this kind of problem with PHP scripts, so I'd like to use a PHP script. But I don't know of a way in JavaScript to be able to call a PHP script and make the result accessible with the Javascript so it can serve up the correct country links. I admit I've not done much Javascript programming compared to PHP, so I'm not sure if I'm overlooking something. Maybe this is a AJAX and jQuery task? I'd appreciate it if someone could offer a workable solution. Thanks in advance! David Roth From bmartin at mac.com Mon May 30 10:52:50 2011 From: bmartin at mac.com (Bruce Martin) Date: Mon, 30 May 2011 10:52:50 -0400 Subject: [nycphp-talk] Can Javascript call a PHP program and read the results? In-Reply-To: <86E4537A-C718-4079-A886-4D23EBF97946@gmail.com> References: <86E4537A-C718-4079-A886-4D23EBF97946@gmail.com> Message-ID: <292FD686-81AA-4ED1-8C14-5803CAC52143@mac.com> Yes, You will need to set up an ajax call to your php script. I use json to send the response back so it is already in a form javascript can handle without needing to parse it. Of course just replying with a country code is simple enough so you wouldn't need to use json. Jquery has some nice wrappers for ajax, so follow their examples on the site. Just remember to set your response Content-type headers in PHP to text/json so it is treated as a json object when it is received by the browser. Bruce Martin On May 30, 2011, at 2:42 AM, David Roth wrote: > I'm using Tumblr.com for a blog platform for a new website. It has a lot of benefits as a blog, but it also has the restriction of not being able to embed PHP code in the HTML theme template. (Yes, I know, my feelings exactly! :-) ) > > But Tumblr does support Javascript. What I'm trying to do is get the county code of the user so that different links can be presented to them that matches their country. Serving up different links based on the country code would be handled by Javascript. > > There is a Javascript Google library jsapi, but it doesn't work properly for county code. For example, I'm in the New York City metro area and it says I'm in Canada, not the US. I don't recalling having this kind of problem with PHP scripts, so I'd like to use a PHP script. But I don't know of a way in JavaScript to be able to call a PHP script and make the result accessible with the Javascript so it can serve up the correct country links. > > I admit I've not done much Javascript programming compared to PHP, so I'm not sure if I'm overlooking something. Maybe this is a AJAX and jQuery task? I'd appreciate it if someone could offer a workable solution. > > Thanks in advance! > > David Roth > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation From rmarscher at beaffinitive.com Tue May 31 09:49:00 2011 From: rmarscher at beaffinitive.com (Rob Marscher) Date: Tue, 31 May 2011 09:49:00 -0400 Subject: [nycphp-talk] Can Javascript call a PHP program and read the results? In-Reply-To: <292FD686-81AA-4ED1-8C14-5803CAC52143@mac.com> References: <86E4537A-C718-4079-A886-4D23EBF97946@gmail.com> <292FD686-81AA-4ED1-8C14-5803CAC52143@mac.com> Message-ID: > > On May 30, 2011, at 2:42 AM, David Roth wrote: > What I'm trying to do is get the county code of the user so that different > links can be presented to them that matches their country. Serving up > different links based on the country code would be handled by Javascript. > I'm not sure why the google library is saying you're in Canada. MaxMind provides a javascript api you can add to your page to get the visitor's location from his/her ip address: http://www.maxmind.com/app/javascript_city -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcampbell1 at gmail.com Tue May 31 10:15:46 2011 From: jcampbell1 at gmail.com (John Campbell) Date: Tue, 31 May 2011 10:15:46 -0400 Subject: [nycphp-talk] Can Javascript call a PHP program and read the results? In-Reply-To: <86E4537A-C718-4079-A886-4D23EBF97946@gmail.com> References: <86E4537A-C718-4079-A886-4D23EBF97946@gmail.com> Message-ID: I really doubt google's ip-> location database is broken that badly, but if you do want to do this, I recommend something like the following: javascript: php: wrote: > I'm using Tumblr.com for a blog platform for a new website. It has a lot of > benefits as a blog, but it also has the restriction of not being able to > embed PHP code in the HTML theme template. (Yes, I know, my feelings > exactly! :-) ) > > But Tumblr does support Javascript. What I'm trying to do is get the county > code of the user so that different links can be presented to them that > matches their country. Serving up different links based on the country code > would be handled by Javascript. > > There is a Javascript Google library jsapi, but it doesn't work properly for > county code. For example, ?I'm in the New York City metro area and it says > I'm in Canada, not the US. I don't recalling having this kind of problem > with PHP scripts, so I'd like to use a PHP script. But I don't know of a way > in JavaScript to be able to call a PHP script and make the result accessible > with the Javascript so it can serve up the correct country links. > > I admit I've not done much Javascript programming compared to PHP, so I'm > not sure if I'm overlooking something. Maybe this is a AJAX and jQuery task? > I'd appreciate it if someone could offer a workable solution. > > Thanks in advance! > > David Roth > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > From tedd.sperling at gmail.com Tue May 31 10:41:02 2011 From: tedd.sperling at gmail.com (tedd) Date: Tue, 31 May 2011 10:41:02 -0400 Subject: [nycphp-talk] Can Javascript call a PHP program and read the results? In-Reply-To: <86E4537A-C718-4079-A886-4D23EBF97946@gmail.com> References: <86E4537A-C718-4079-A886-4D23EBF97946@gmail.com> Message-ID: At 2:42 AM -0400 5/30/11, David Roth wrote: >I'm using Tumblr.com for a blog platform for a new website. It has a >lot of benefits as a blog, but it also has the restriction of not >being able to embed PHP code in the HTML theme template. (Yes, I >know, my feelings exactly! :-) ) > >But Tumblr does support Javascript. What I'm trying to do is get the >county code of the user so that different links can be presented to >them that matches their country. Serving up different links based on >the country code would be handled by Javascript. > >There is a Javascript Google library jsapi, but it doesn't work >properly for county code. For example, I'm in the New York City >metro area and it says I'm in Canada, not the US. I don't recalling >having this kind of problem with PHP scripts, so I'd like to use a >PHP script. But I don't know of a way in JavaScript to be able to >call a PHP script and make the result accessible with the Javascript >so it can serve up the correct country links. > >I admit I've not done much Javascript programming compared to PHP, >so I'm not sure if I'm overlooking something. Maybe this is a AJAX >and jQuery task? I'd appreciate it if someone could offer a workable >solution. > >Thanks in advance! > >David Roth David: Certainly a Javascript program can call a php script -- here's a demo: http://webbytedd.com/b/timed-php/ There's a description at the site. Cheers, tedd -- ------- http://sperling.com/ From davidalanroth at gmail.com Tue May 31 16:25:26 2011 From: davidalanroth at gmail.com (David Roth) Date: Tue, 31 May 2011 16:25:26 -0400 Subject: [nycphp-talk] Can Javascript call a PHP program and read the results? Message-ID: <528AB4E4-8584-46A7-BAF1-2B687EB52C3A@gmail.com> Yes, it's odd, here I am using Verizon FIOS (for the past 4 years) and most any place on the web I go to knows I'm in the US, but the Google JSAPI and examples by others using it I have tried say I'm in Canada. (For those that don't think this is a real issue - Canada is like a whole other country. :-) ) I've also looked into IP databases where they have over 3 billion IP addresses stored and they update them. They suggest to keep them on your own server and do a wget in the crontab to update them monthly. I'm kind of surprised by this because I thought IP address ranges were assigned to countries to began with, but I'm sure that's a whole other discussion. I wasn't familiar with the maxmind javascript service. So far it looks very good, it correctly said I was in the US and even the correct state. Thanks! David Roth > Rob Marscher rmarscher at beaffinitive.com > Tue May 31 09:49:00 EDT 2011 > > > > On May 30, 2011, at 2:42 AM, David Roth wrote: > > What I'm trying to do is get the county code of the user so that > different > > links can be presented to them that matches their country. Serving > up > > different links based on the country code would be handled by > Javascript. > > > > I'm not sure why the google library is saying you're in Canada. > MaxMind > provides a javascript api you can add to your page to get the > visitor's > location from his/her ip address: http://www.maxmind.com/app/javascript_city >