Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Re: Re: Re: Re: Random Imaging

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


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

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

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: Re: Random Imaging
by appex32 (Initiate) on Aug 01, 2003 at 17:32 UTC
    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.
      Sorry, I'm a little rude today.
      Why reference (I assume you mean symlink) them from the cgi-bin? Your script doesn't need to have access the images, you just give a link to your browser and then it is its job to fetch the right links.
      So check your accesslog and see what your browser is trying to get and why it fails.
      The datastructure I use is an array of hash'es, which makes it easiere to keep all the data in the same place while also keeping it seperated.

      T I M T O W T D I

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2024-04-19 11:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found