Jump to content

savetree

Members
  • Posts

    10
  • Joined

  • Last visited

Contact Methods

  • Website URL
    http://savetree.heliohost.org
  • ICQ
    0

Profile Information

  • Gender
    Male
  • Interests
    Programming, swimming, reading

savetree's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Thank you it now works with this code <?php header("Content-Type: image/jpg"); $d = scandir('.'); foreach($d as $f) if(substr($f,-4)==".jpg") $fs[] = $f; readFile($fs[rand(1,count($fs))-1]);
  2. I did. See my edit for my new code. Its still not working EDIT: This is what I added to the above post: This is the error Warning: Cannot modify header information - headers already sent by (output started at /home/savetree/public_html/avatarscript.php:1) in /home/savetree/public_html/avatarscript.php on line 2 from this code <?php header("Content-Type: image/jpg"); $d = scandir('.'); foreach($d as $f) if(substr($f,-4)==".jpg") $fs[] = $f; readFile($fs[rand(1,count($fs))-1]); ?>
  3. where do I put it? It is already in the php script is it out of the php braces? EDIT:This is the error Warning: Cannot modify header information - headers already sent by (output started at /home/savetree/public_html/avatarscript.php:1) in /home/savetree/public_html/avatarscript.php on line 2 from this code <?php header("Content-Type: image/jpg"); $d = scandir('.'); foreach($d as $f) if(substr($f,-4)==".jpg") $fs[] = $f; readFile($fs[rand(1,count($fs))-1]); ?>
  4. I have a php page that is supposed to load a random image from the folder it is in <?php error_reporting(0); header("Content-Type: image/jpg"); $d = scandir('.'); foreach($d as $f) if(substr($f,-4)==".jpg") $fs[] = $f; readFile($fs[rand(1,count($fs))-1]); ?> Why is this not working. I have checked that there are valid images, and i have seen this exact same script work on a personal server of the person who made it my domain name is savetree.heliohost.org this php is called avatarscript.php and is in the public_html directory
  5. Mine is now up just took about 12 hours extra
  6. Is it 24 or 48 hours till I can access my domain with the new name? firefox is telling me server not found still and its been 24 hours
  7. I live in the Southern US
  8. I'll gladly take it now I haven't been with you long enough to know much though
  9. It must have been the bad domain name causing my problems because I can now access my files. Thank you for pointing out my error
  10. I went to the domain script and changed the domain to savetree.heliohost.org
  11. I made a domain then 3 days later changed it. Now I can not access any of my files when I sign in to cpanel. It says access denied. I had also created a folder for a django project but now it has disapeared and a file in its place that is 0 bytes and I can't view it because if the access denied thing domain name: savetree.heliohost.net username: savetree
×
×
  • Create New...