Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    New to the CF scene
    Join Date
    Sep 2006
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    not sure if this can be done but i think javascript might have an answer

    the idea i have is to have a piece of my php site (a photo upload site) that displays random pictures from users and have it display on my home page www.animalexotics.net in the space below photos. im thinking some sort of rss feed would work and if it would could i do it also for the new posts on forum section. so in a more simplistic form i want to have a peice of my php site that displays pictures show up on my html site.

    mark

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Why javascript? Why not php? http://alistapart.com/articles/randomizer/
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #3
    New to the CF scene
    Join Date
    Sep 2006
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    not sure. but is there a way i can just havea javascript that calls photos from the place where all the photos are stored? and for the forum new posts part can it be done the same way?

    if you know how to do it in php and can tell me how to convert my site to php so it will work im all for that.

  • #4
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Did you even read the link I gave you? JS can't go across domains. The php script is able to read from a directory and calls images.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #5
    New to the CF scene
    Join Date
    Sep 2006
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    i must of skipped over your post sorry i just say highlighters and that wasnt what i had intention. thank you
    Last edited by mab06j; 09-08-2006 at 06:32 PM.

  • #6
    New to the CF scene
    Join Date
    Sep 2006
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    okay so it says to use a folder but all the photos are stored in a database is there a function i can use that would access that particular part of my database where the photos are stored? i looked on my ftp and it doesnt list my database directories so any help would be greatly appreciated.

  • #7
    New to the CF scene
    Join Date
    Sep 2006
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    okay a new problem i tried implementing this and found the file where the photos are found and put it into the
    $folder= 'http://animalexotics.net/photos/data/thumbnails/2/ but when i link to the rotate.php file using the link <img src="/photos/data/thumbnails/2/ rotate.php" /> it just shows a box with an X and the rotate .php file is in the same file as the photos.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •