problem with image

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
bouboul
Forum Commoner
Posts: 28
Joined: Sat Oct 25, 2003 4:08 am

problem with image

Post by bouboul »

i'm really a newbie. i've downloaded php with the imap support , it is ok. when i'm looking at my phpinfo file, i can see :

gd

GD Support enabled
GD Version 1.6.2 or higher
FreeType Support enabled
FreeType Linkage with freetype
JPG Support enabled
PNG Support enabled
WBMP Support enabled

it seems that the jpg support is enabled, but i've just been writing the following code :

<?php
echo "<img src='/root/peppers_tn.jpg'> " ;
?>

this file is /usr/local/httpd/htdocs/image.php
i've really saved this peppers_tn.jpg in : /root .(just for a test ),
but when i'm trying to display this file from the browser, i'm really getting nothing no message of error, but also no image.

i'm really confused :?:

please help me
User avatar
vigge89
Forum Regular
Posts: 875
Joined: Wed Jul 30, 2003 3:29 am
Location: Sweden

Re: problem with image

Post by vigge89 »

bouboul wrote:i'm really a newbie. i've downloaded php with the imap support , it is ok. when i'm looking at my phpinfo file, i can see :

gd

GD Support enabled
GD Version 1.6.2 or higher
FreeType Support enabled
FreeType Linkage with freetype
JPG Support enabled
PNG Support enabled
WBMP Support enabled

it seems that the jpg support is enabled, but i've just been writing the following code :

<?php
echo "<img src='/root/peppers_tn.jpg'> " ;
?>

this file is /usr/local/httpd/htdocs/image.php
i've really saved this peppers_tn.jpg in : /root .(just for a test ),
but when i'm trying to display this file from the browser, i'm really getting nothing no message of error, but also no image.

i'm really confused :?:

please help me
im not sure if this is gonna work, but test it:

<?php
echo "<img src="peppers_tn.jpg">";
?>

and also, is the image in the root folder (htdocs)?
then i dont know why u use root?

im not a total newbie, rather a newbie, so im not sure
bouboul
Forum Commoner
Posts: 28
Joined: Sat Oct 25, 2003 4:08 am

Post by bouboul »

i've followed your advice , now it's working

thanx alot
User avatar
vigge89
Forum Regular
Posts: 875
Joined: Wed Jul 30, 2003 3:29 am
Location: Sweden

Post by vigge89 »

im glad to help :) :wink:
bouboul
Forum Commoner
Posts: 28
Joined: Sat Oct 25, 2003 4:08 am

how to create logo ?

Post by bouboul »

hello,

do you know any free software which is compatible with linux that could allow me to create some logo?

where can i download it ?

thanx in advance. :?:
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

The Gimp - http://www.gimp.org/

Mac
Post Reply