Re: [PHP] The end of "mysql"

2012-09-08 Thread Jim Giner
Nope. No PDO as yet either jg On Sep 7, 2012, at 11:22 PM, Adam Richardson wrote: > On Fri, Sep 7, 2012 at 9:58 PM, Jim Giner > wrote: >> So with the announced end of the mysql functions (and switching to a >> different extension), one would think that my isp/hoster would be a bit more >> in

[PHP] a little trickery

2012-09-08 Thread David McGlone
I have a function that reads a directory and gets all the file names of images, and I am wondering if it's possible to concatinate this function withint an image tag. Here's an example I tried. function pictures() { $dir = 'images/property_pics/'; $file = array(); if(is_dir($dir))

Re: [PHP] The end of "mysql"

2012-09-08 Thread Bastien
Bastien Koert On 2012-09-08, at 9:54 AM, Jim Giner wrote: > Nope. No PDO as yet either > > jg > > > On Sep 7, 2012, at 11:22 PM, Adam Richardson wrote: > >> On Fri, Sep 7, 2012 at 9:58 PM, Jim Giner >> wrote: >>> So with the announced end of the mysql functions (and switching to a >>> d

Re: [PHP] The end of "mysql"

2012-09-08 Thread Jim Giner
On 9/8/2012 10:40 AM, Bastien wrote: Change hosts. They are not keeping up That's not entirely true. They have kept up to date with most things for the 10 years I've been with them. I think they just have to get their heads around the idea that the PHP community is moving ahead on something

Re: [PHP] The end of "mysql"

2012-09-08 Thread Jim Giner
On 9/8/2012 9:54 AM, Jim Giner wrote: Nope. No PDO as yet either jg On Sep 7, 2012, at 11:22 PM, Adam Richardson wrote: On Fri, Sep 7, 2012 at 9:58 PM, Jim Giner wrote: So with the announced end of the mysql functions (and switching to a different extension), one would think that my isp/h

Re: [PHP] a little trickery

2012-09-08 Thread Stuart Dallas
On 8 Sep 2012, at 15:35, David McGlone wrote: > I have a function that reads a directory and gets all the file names of > images, > and I am wondering if it's possible to concatinate this function withint an > image tag. Here's an example I tried. > > function pictures() { > >$dir = 'ima

Re: [PHP] The end of "mysql"

2012-09-08 Thread Daniel Brown
On Fri, Sep 7, 2012 at 9:58 PM, Jim Giner wrote: > So with the announced end of the mysql functions (and switching to a > different extension), one would think that my isp/hoster would be a bit more > interested in my dilemma. I tried today to create my first mysqli-based > test script and found

Re: [PHP] The end of "mysql"

2012-09-08 Thread Paul M Foster
On Fri, Sep 07, 2012 at 09:58:38PM -0400, Jim Giner wrote: > So with the announced end of the mysql functions (and switching to a > different extension), one would think that my isp/hoster would be a > bit more interested in my dilemma. I tried today to create my first > mysqli-based test script

Re: [PHP] a little trickery

2012-09-08 Thread Daniel Brown
On Sat, Sep 8, 2012 at 10:49 AM, Stuart Dallas wrote: > > Is there just one image in the folder that starts with the 9 digit number? In > that case it's dead simple (untested code): > >function completeImageFilename($prefix) > { > $matches = glob('images/property_pics/'.$prefix.'*'); >

Re: [PHP] The end of "mysql"

2012-09-08 Thread Daniel Brown
On Sat, Sep 8, 2012 at 11:40 AM, Paul M Foster wrote: > > Please excuse my ignorance. I feel like I just stepped into the middle > of a conversation. What's this about "announced end of the mysql > functions"? Who exactly announced what, and is there a link to whatever > announcement somewhere?

Re: [PHP] a little trickery

2012-09-08 Thread David McGlone
On Saturday, September 08, 2012 03:49:27 PM you wrote: > On 8 Sep 2012, at 15:35, David McGlone wrote: > > I have a function that reads a directory and gets all the file names of > > images, and I am wondering if it's possible to concatinate this function > > withint an image tag. Here's an exampl

Re: [PHP] a little trickery

2012-09-08 Thread David McGlone
On Saturday, September 08, 2012 11:19:29 PM David McGlone wrote: > On Saturday, September 08, 2012 03:49:27 PM you wrote: > > > > > function completeImageFilename($prefix) > > { > > > > $matches = glob('images/property_pics/'.$prefix.'*'); > > return $matches[0]; > > > > } > >