dcsimg

Search:

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

Search: Search took 0.00 seconds.

  1. Thread: PHP image resize

    by Keith
    Replies
    5
    Views
    6,478

    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
    6,478

    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
    6,478

    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




×
We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.