Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re: Re: Re: Random Imaging

by Cine (Friar)
on Aug 01, 2003 at 15:52 UTC ( [id://280017]=note: print w/replies, xml ) Need Help??

in reply to Re: Re: Random Imaging
in thread Random Imaging

I don't understand how I'm generating all this horrible html code
No that is obvious.
when the only problem I seem to have is that the picture is not displayed
Looks can be deceiving.
But your problem is obvious, you dont have a directory called /pics on your webserver, yet that is the link you send to the browser! It does seem you have a /cgi-bin/pics/ but that tries to execute the image as a cgi-script, which does not go well.


Replies are listed 'Best First'.
Re: Re: Re: Re: Random Imaging
by appex32 (Initiate) on Aug 01, 2003 at 15:58 UTC
    I see. So you're saying that the way I have the program now it is not recognizing the image files as images but rather as cgi scripts, and to remedy that I have to do it the way that you did which is actually read the images in and place them into an array? Also, if I say that I don't understand how I'm doing something, that means I don't and its not obvious to me, no matter how obvious it is to you or anyone else.
      No! I am saying just the opposite!
      Your images ARE recognizing as cgi-scripts right now, they should obviously be seen as images!
      And, then secondly, I dont even check if you images exists, let alone read them in. I really cant see where that idea came from?
      Move your pics library from the cgi-bin dir to the .../htdocs, give it permission for everyone to read chmod 755 pics; chmod -R 644 pics; and then it should work.
      Then go read a introduction to HTML and HTTP, and try to understand why it went wrong.

      T I M T O W T D I
        I worded that wrong I didn't mean to say read them in. But anyways, I took the skeleton of what you posted and added the rest, and I also moved the pics into the /htdocs/ folder and referenced them from /cgi-bin, however it still does not work. I didn't know about creating arrays of things the way that you did it, I've only been working with perl for a short period of time.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://280017]
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2024-04-13 00:22 GMT
Find Nodes?
    Voting Booth?

    No recent polls found