Search:

Type: Posts; User: Keith; Keyword(s):

Search: Search took 0.07 seconds.

  1. Thread: PHP image resize

    by Keith
    Replies
    5
    Views
    31,987

    I'm not sure where $2 comes from but this works,...

    I'm not sure where $2 comes from but this works, i've tested it


    $pattern = "/(<img\s+).*?src=((\".*?\")|(\'.*?\')|([^\s]*)).*?>/is";
    $replacement = "<img src=$2 width=50 height=50>";

    echo...
  2. Thread: PHP image resize

    by Keith
    Replies
    5
    Views
    31,987

    sorry... I have a database that has html...

    sorry...

    I have a database that has html content that i display on 2 different pages. In that database the content has several img tags. What i want to do is add width and height to the tag with a...
  3. Thread: PHP image resize

    by Keith
    Replies
    5
    Views
    31,987

    PHP image resize

    I'm having some issues putting 2 pieces of code together

    First part
    I have this string
    $string = "some text... <img src=myimage.jpg> some more text <img src=myimage.jpg>";

    What i want to do...
Results 1 to 3 of 3