Re: [PHP] Dynamically Rename Images

2009-05-02 Thread Michael A. Peters
Andrew Hucks wrote: Is it possible to rename images dynamically? Say that I had something like image1.png, and I don't want to rename it on the server. I'm working on an image rotater for a forum that doesn't allow anything but image files as signatures. Here's my code so far: '; ?> I used m

Re: [PHP] Re: PHP6 return by reference deprecation

2009-05-02 Thread Raymond Irving
I don't think they should remove return by reference features from php6 at all. __ Raymond Irving --- On Sat, 5/2/09, Robert Cummings wrote: > I don't know if it's even the case that it's going to be > removed. I just > went back and checked the link to the article that was > posted and it wa

[PHP] Dynamically Rename Images

2009-05-02 Thread Andrew Hucks
Is it possible to rename images dynamically? Say that I had something like image1.png, and I don't want to rename it on the server. I'm working on an image rotater for a forum that doesn't allow anything but image files as signatures. Here's my code so far: '; ?> I used mod_rewrite, which make

Re: [PHP] object literals

2009-05-02 Thread Tom Worster
On 5/2/09 6:45 AM, "Robert Cummings" wrote: > It's not what I want, I'm not the original poster. as op, i think i'm going to stick with the cast. but it's been an interesting thread and i learned some useful things. > Regardless though, it > comes down to the preference of the developer. It ca

[PHP] Re: Paypal and Php

2009-05-02 Thread Colin Guthrie
'Twas brillig, and Matthieu at 03/05/09 00:01 did gyre and gimble: Hello, I'd like to know if somebody already configured a paypal account usin php and a mysql database. What are the major things to know when starting to code the php code? I know it's quite a large question but I'd like to k

[PHP] Paypal and Php

2009-05-02 Thread Matthieu
Hello, I'd like to know if somebody already configured a paypal account usin php and a mysql database. What are the major things to know when starting to code the php code? I know it's quite a large question but I'd like to know the amount of time needed, or if I directly go through a drupal

Re: [PHP] Re: PHP6 return by reference deprecation

2009-05-02 Thread Robert Cummings
On Sat, 2009-05-02 at 15:43 -0500, Larry Garfield wrote: > On Saturday 02 May 2009 3:20:24 pm Colin Guthrie wrote: > > 'Twas brillig, and Larry Garfield at 02/05/09 20:00 did gyre and gimble: > > > On Saturday 02 May 2009 9:30:09 am Colin Guthrie wrote: > > >> 'Twas brillig, and Paul M Foster at 02

Re: [PHP] Re: PHP6 return by reference deprecation

2009-05-02 Thread Larry Garfield
On Saturday 02 May 2009 3:20:24 pm Colin Guthrie wrote: > 'Twas brillig, and Larry Garfield at 02/05/09 20:00 did gyre and gimble: > > On Saturday 02 May 2009 9:30:09 am Colin Guthrie wrote: > >> 'Twas brillig, and Paul M Foster at 02/05/09 06:07 did gyre and gimble: > >>> If this is going away, ho

[PHP] Re: PHP6 return by reference deprecation

2009-05-02 Thread Colin Guthrie
'Twas brillig, and Larry Garfield at 02/05/09 20:00 did gyre and gimble: On Saturday 02 May 2009 9:30:09 am Colin Guthrie wrote: 'Twas brillig, and Paul M Foster at 02/05/09 06:07 did gyre and gimble: If this is going away, how do you return things by reference, so as to ensure a single copy of

Re: [PHP] Re: PHP6 return by reference deprecation

2009-05-02 Thread Larry Garfield
On Saturday 02 May 2009 9:30:09 am Colin Guthrie wrote: > 'Twas brillig, and Paul M Foster at 02/05/09 06:07 did gyre and gimble: > > If this is going away, how do you return things by reference, so as to > > ensure a single copy of something (yes, I know the singleton pattern can > > be used; I do

Re: [PHP] how to enable ttf support in php 5.2.9

2009-05-02 Thread Jim Lucas
PJ wrote: Is there a module to be activated or what has to be installed to have ttf support in php? My port on FreeBSD does not have an option for ttf support under make config . I'm trying to learn & understand the following: In file1 : In file2 (button.php)- originally php3 : The above shoul

Re: Re: [PHP] Re: Static and/or Dynamic site scraping using PHP

2009-05-02 Thread Paul M Foster
On Sat, May 02, 2009 at 10:40:04PM +0600, Lenin wrote: > On Sat, May 2, 2009 at 10:01 PM, > wrote: > > > Je suis actuellement absent du bureau aussi TEST ! > > > > I dont get it why I get this automated mail everytime I send message to > this thread. :-/ My French is rusty, but it looks

Re: Re: [PHP] Re: Static and/or Dynamic site scraping using PHP

2009-05-02 Thread Lenin
On Sat, May 2, 2009 at 10:01 PM, wrote: > Je suis actuellement absent du bureau aussi TEST ! > > I dont get it why I get this automated mail everytime I send message to this thread. :-/

Re: [PHP] Re: Static and/or Dynamic site scraping using PHP

2009-05-02 Thread Lenin
I thought I would get some more experts giving me more insight about the methods of scraping. I want to grab the body content of pages say of Wordpress but not through RSS. I would assume the pages are static only. And try to scrape the body content but avoiding sidebar, footer, header etc. I t

[PHP] Re: PHP6 return by reference deprecation

2009-05-02 Thread Colin Guthrie
'Twas brillig, and Paul M Foster at 02/05/09 06:07 did gyre and gimble: If this is going away, how do you return things by reference, so as to ensure a single copy of something (yes, I know the singleton pattern can be used; I do use it as well; it's more complicated)? You'll want to use the Si

Re: [PHP] graphical integrated development environment recommendations?

2009-05-02 Thread tedd
At 6:06 PM -0700 5/1/09, listm...@websage.ca wrote: Isn't phpedit windows-only? Eclipse + PDT is my recommendation FWIW... GM is right and it appears that they didn't get their Mac option running by fall of 2008. I use Eclipse for Java, but have not used it for php much. I need not onl

RE: [PHP] object literals

2009-05-02 Thread Robert Cummings
On Sat, 2009-05-02 at 12:10 +0100, Ashley Sheridan wrote: > On Sat, 2009-05-02 at 06:45 -0400, Robert Cummings wrote: > > On Sat, 2009-05-02 at 12:39 +0200, Andrea Giammarchi wrote: > > > exactly, why bother with JavaScript literal representation? > > > > > > the foreach loop was just an alternat

RE: [PHP] object literals

2009-05-02 Thread Ashley Sheridan
On Sat, 2009-05-02 at 06:45 -0400, Robert Cummings wrote: > On Sat, 2009-05-02 at 12:39 +0200, Andrea Giammarchi wrote: > > exactly, why bother with JavaScript literal representation? > > > > the foreach loop was just an alternative to explicit object cast cause you > > did not like it I th

RE: [PHP] object literals

2009-05-02 Thread Robert Cummings
On Sat, 2009-05-02 at 12:39 +0200, Andrea Giammarchi wrote: > exactly, why bother with JavaScript literal representation? > > the foreach loop was just an alternative to explicit object cast cause you > did not like it I though it was more about control over what you want to > cast and what

RE: [PHP] object literals

2009-05-02 Thread Andrea Giammarchi
exactly, why bother with JavaScript literal representation? the foreach loop was just an alternative to explicit object cast cause you did not like it I though it was more about control over what you want to cast and what you do not ... in any case, what I said does not change cause in php

Re: [PHP] graphical integrated development environment recommendations?

2009-05-02 Thread Ashley Sheridan
On Fri, 2009-05-01 at 22:09 -0400, Andrew Hucks wrote: > http://notepad-plus.sourceforge.net/uk/site.htm > > Try out N++. It's very good, supports a whole bunch of languages by > default, has folding, and you can tweak the syntax highlight if you > want. (You don't need to though.) > > Takes two

Re: [PHP] Upload file name not file

2009-05-02 Thread Ashley Sheridan
On Fri, 2009-05-01 at 12:38 -0400, Simon wrote: > On Fri, May 1, 2009 at 9:34 AM, MikeP wrote: > > I'm not trying to get the path, just the filename and size, I know how to > > get these, but that would include the file using $_Files, but I dont want to > > upload anything just use the filename an

Re: [PHP] PHP6 return by reference deprecation

2009-05-02 Thread Robert Cummings
On Sat, 2009-05-02 at 01:07 -0400, Paul M Foster wrote: > In another thread (which I mercifully declined to highjack), someone > cited: > > > Taken from http://www.corephp.co.uk/archives/19-Prepare-for-PHP-6.html > > And I read this: > > Both '$foo =& new StdClass()' and 'function &foo' will now