SitePoint Sponsor

User Tag List

Results 1 to 6 of 6

Thread: image counter

  1. #1
    SitePoint Member
    Join Date
    Sep 2007
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    image counter

    I have created an image counter in php extension page I will like to give this counter to friends who would like to copy and paste the counter into their html extension pages. I have tried using javascript to search for my php file but on their pages nothing prints out.

  2. #2
    SitePoint Guru SharifTK's Avatar
    Join Date
    Jan 2004
    Location
    New York, NY
    Posts
    621
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    How exactly do you want them to use it? Do you want them to load your script remotely?
    SK

  3. #3
    SitePoint Member
    Join Date
    Sep 2007
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes I want them to load my script remotely

  4. #4
    SitePoint Guru SharifTK's Avatar
    Join Date
    Jan 2004
    Location
    New York, NY
    Posts
    621
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well, as to my knowledge these would be the basic steps:
    1) Host your script online
    2) CHMOD files to 777
    3) Load remotely.
    SK

  5. #5
    SitePoint Member
    Join Date
    Sep 2007
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    how do I load the files remotely with javascript

  6. #6
    rajug.replace('Raju Gautam'); bronze trophy Raju Gautam's Avatar
    Join Date
    Oct 2006
    Location
    Kathmandu, Nepal
    Posts
    4,013
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Just give the src path to your domain/server. Otherwise just you can also do it with image only.
    PHP Code:
    echo '<img src="http://www.yourdomain.com/counter/img.php?rand="' time() . ' />'
    Your img.php file will output the image.
    Mistakes are proof that you are trying.....
    ------------------------------------------------------------------------
    PSD to HTML - SlicingArt.com | Personal Blog | ZCE - PHP 5


Bookmarks

Posting Permissions

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