php-general Digest 8 Sep 2012 14:36:13 -0000 Issue 7955

Topics (messages 319011 through 319014):

Re: The end of "mysql"
        319011 by: Shiplu
        319012 by: Adam Richardson
        319013 by: Jim Giner

a little trickery
        319014 by: David McGlone

Administrivia:

To subscribe to the digest, e-mail:
        php-general-digest-subscr...@lists.php.net

To unsubscribe from the digest, e-mail:
        php-general-digest-unsubscr...@lists.php.net

To post to the list, e-mail:
        php-gene...@lists.php.net


----------------------------------------------------------------------
--- Begin Message ---
On Sat, Sep 8, 2012 at 7:58 AM, Jim Giner <jim.gi...@albanyhandball.com>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 that I didn't have that extension.  A
> series of emails with my tech support told me that the shared server farm
> does not get "mysqli" - only their business servers.  Since I dont' have a
> need for and want to pay more for a 'business server', I'm told I'm s...
> outta luck.
>
>
I suggest you use a VPS. Cost of a VPS and a shared server is in same range
nowadays.

-- 
Shiplu Mokaddim
Talks: http://shiplu.mokadd.im
Follow: http://twitter.com/shiplu
Innovation distinguishes between follower and leader

--- End Message ---
--- Begin Message ---
On Fri, Sep 7, 2012 at 9:58 PM, Jim Giner <jim.gi...@albanyhandball.com> 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 that I didn't have that extension.  A series of emails
> with my tech support told me that the shared server farm does not get
> "mysqli" - only their business servers.  Since I dont' have a need for and
> want to pay more for a 'business server', I'm told I'm s... outta luck.

What about PDO? Is that available?

Adam

-- 
Nephtali:  A simple, flexible, fast, and security-focused PHP framework
http://nephtaliproject.com

--- End Message ---
--- Begin Message ---
Nope. No PDO as yet either

jg


On Sep 7, 2012, at 11:22 PM, Adam Richardson <simples...@gmail.com> wrote:

> On Fri, Sep 7, 2012 at 9:58 PM, Jim Giner <jim.gi...@albanyhandball.com> 
> 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 that I didn't have that extension.  A series of emails
>> with my tech support told me that the shared server farm does not get
>> "mysqli" - only their business servers.  Since I dont' have a need for and
>> want to pay more for a 'business server', I'm told I'm s... outta luck.
> 
> What about PDO? Is that available?
> 
> Adam
> 
> -- 
> Nephtali:  A simple, flexible, fast, and security-focused PHP framework
> http://nephtaliproject.com
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 

--- End Message ---
--- Begin Message ---
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)){
        if($open = opendir($dir)){
          
          while (($file = readdir($open)) !== false && $file !== ".") {
              
        $names = substr($file, 9, 20);
        echo $names;

        }
           
        }
      closedir($handle);
    }
} 

$rs = $pager->paginate();
  if(!$rs) die(mysql_error());
  while($row = mysql_fetch_assoc($rs)) {
     
       
    echo "<div id='record'>";
    echo "<span>";
    echo <im src = "images/$row[$MSL_No]pictures();">

What I am trying to do is get the last part of an image name, because I know 
the $MSL_No is always a 9 character name which matches the image name in 
but in the database, the last bit of characters are not there so I'm trying to 
take the last characters of the image name and concatinate them to each 
image name..

Wow this is harder to explain that I thought. Here's an example

In the DB I have a row MSL_No and the contents is: 123456789

In my images folder I have an image named 123456789_R13_1.jpg

My goal: get the MSL_No out of the DB and concatenate anything after it so I 
would end up with the whole image name..

I hope this all made sense. :-/ 

-- 
Regards
David M.

--- End Message ---

Reply via email to