Jump to:

17452 Posts in 4473 Topics by 1971 members


SilverStripe Forums » Archive » Image Displaying problem

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Page: 1
Go to End
Author Topic: 1521 Views
  • xyz
    14 Posts

    Image Displaying problem Link to this post


    Here i am writing one function in my own page i.e
    function ImageObject() {

    $gdObject = new GD("../mysite/images/image.png ");
    The image path is correct ,the path is going to GD class
    but it is giving below error

    FATAL ERROR: getimagesize(../mysite/images/image.png) [function.getimagesize]: failed to open stream: No such file or directory
    At line 33 in C:\lighttpd\htdocs\sapphire\filesystem\GD.php

    please anybody help me urgent


  • xyz
    14 Posts

    Re: Image Displaying problem Link to this post


    i got the solution for that problem.

    my one more doubt is we are displaying any string in our page by using below function

    function printThis() {
    $data = array(
    'str' => "Some string"
    return $this->customise($data);

    And and what you had in your .ss template will still work:
    <% control printThis %>
    <% end_control %>

    But my question is how can we send a image from php to html


Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.