Note that there are some explanatory texts on larger screens.

plurals
  1. POproblem with image in php
    primarykey
    data
    text
    <p>I want to show an image and wrote below codes</p> <pre><code>$path = "C:\xampp\htdocs\me\1.jpg"; $image1 = imagecreatefromjpeg($path); header('Content-Type: image/jpeg'); imagejpeg($image1); </code></pre> <p>But when I run it in Firefox it shows:</p> <blockquote> <p>The image “http://127.0.0.1/me/Untitled%201.php” cannot be displayed because it contains errors.</p> </blockquote> <p>What is problem?</p> <p><strong>Edit:</strong></p> <p>I deleted header function but it has this error:</p> <blockquote> <p>Warning: imagecreatefromjpeg(C: mpp\htdocs\me.jpg) [function.imagecreatefromjpeg]: failed to open stream: Invalid argument in C:\xampp\htdocs\me\Untitled 1.php on line 136</p> <p>Warning: imagejpeg() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\me\Untitled 1.php on line 138</p> </blockquote> <p>after all works it shows some chars like this</p> <pre><code> $.' ",#(7),01444'9=82&lt;.342ÿÛC 2!!22222222222222222222222222222222222222222222222222ÿÀ¸)"ÿÄ ÿĵ}!1AQa"q2‘¡#B±ÁRÑð$3br‚ %&amp;'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyzƒ„…†‡ˆ‰Š’“”•–—˜™š¢£¤¥¦§¨©ª²³´µ¶·¸¹ºÂÃÄÅÆÇÈÉÊÒÓÔÕÖרÙÚáâãäåæçèéêñòóôõö÷øùúÿÄ ÿĵw!1AQaq"2B‘¡±Á #3RðbrÑ $4á%ñ&amp;'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz‚ƒ„…†‡ˆ‰Š’“”•–—˜™š¢£¤¥¦§¨©ª²³´µ¶·¸¹ºÂÃÄÅÆÇÈÉÊÒÓÔÕÖרÙÚâãäåæçèéêòóôõö÷øùúÿÚ?ùþŠ( Š( Š( Š( Š( Š( Š( Š( Š( Š( Š( Š( Š( Š( Š( Š </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload