Jump to content

Recommended Posts

Im not sure what you mean by "if i browse through my main code and see the img tag and click on it"?

 

Ive stripped back your code and uploaded it to my server and its all working how it should be..

 

http://buddski.com/test/main.php

this is my source code

 

<img src="images/resize_image.php?file=Official flyernail.jpg" border="1" class="floatright" title="Official flyernail.jpg" alt="Official flyernail.jpg" />

 

shouldn't the src path be something like: images/official flyernail.jpg instead of images/resize_image.php?file=Official flyernail.jpg

Your source is correct..

There is something amiss in your resizing script..

 

have you tried going to

http://localhost/[location of your script]/images/resize_image.php?file=Official flyernail.jpg

and see what it says, if anything..

this is what i get:

 

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /images/resize_image.php was not found on this server.</p>
</body></html>

Are your files directly in your root directory (htdocs or www folder)?

 

root (Folder)

|_ images (folder)

    |_ resize_image.php

    |_ Official flynail.jpg

|_ main.php

 

if thats the case you need to just navigate to http://localhost/images/resize_image.php?file=Official flynail.jpg

if they are in a folder call news or something goto http://localhost/news/images/resize_image.php?file=Official flyname.jpg

  • 3 months later...

As stated this code is used

print '<img src="images/resize_image.php?file='.$pic.'" title="" border="0" width="170" height="135" class="floatright" style="margin-left: 5px; border: 2px solid #CCCCCC; padding: 3px; background: #9bbdfd;" />'; 

 

Would all this code still work if I used..

echo '<img src="images/resize_image.php?file='.$pic.'" title="" border="0" />'; 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.