Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Re: Re: Random Imaging

by alienhuman (Pilgrim)
on Aug 01, 2003 at 17:13 UTC ( [id://280048]=note: print w/replies, xml ) Need Help??


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

The problem is that you are populating your IMG tags with this path:

/htdocs/pics/{random image file}

However, your pics are here:

http://{your site IP}/pics/{random image file}

Without knowing your filesystem, it's hard to say exactly where, but somewhere you are introducing "/htdocs/" to the path. My guess is the "./" part of the path, but you've said changing that has no effect.

Off the top of my head: could this be a config issue with your server? Perhaps you are pointing at the directory above your docroot (ie htdocs) instead of the htdocs directory?

AH

Update: I copy/pasted your code and ran it on my machine. When I removed the "." before the "./pics" it worked. If you do that and you are still getting "/htdocs/pics" I'd say it's almost certainly a config issue.

Replies are listed 'Best First'.
Re: Re: Re: Re: Random Imaging
by appex32 (Initiate) on Aug 01, 2003 at 18:46 UTC
    Do you mean the code that I originally posted or the code that you gave me? Cause I got the code that I wrote working. It turns out it was a problem with my server configuration, just a little typographical error that threw it off.
Re: Re: Re: Re: Random Imaging
by appex32 (Initiate) on Aug 04, 2003 at 15:29 UTC
    Yeah i did figure out what the problem was, I had a stupid gramatical error in the config file of the server. Although the code i have may not be the greatest, according to some, it did work correctly once i fixed that config error. Thanks for your help.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (2)
As of 2024-04-20 05:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found