Jump to content

CRO8

Members
  • Posts

    80
  • Joined

  • Last visited

CRO8's Achievements

Enthusiast

Enthusiast (6/14)

  • First Post
  • Collaborator
  • Conversation Starter
  • Week One Done
  • One Month Later

Recent Badges

0

Reputation

  1. hey thanks all. pretty sneaky Lisa . . . I made section 31's change and it still only shows the orange 6.jpg. below I updated the code in bold ><? // This script returns an image header("Content-type: image/[B]jpeg[/B]"); $image_count = 7; // Set this variable to the total amount of // images in the rand_images folder // Load a random image $image = fopen("rand_images/".rand(0,$image_count-1).".jpg","r"); // Return the image fpassthru($image); ?> >0.jpg 1.jpg 2.jpg 3.jpg 4.jpg 5.jpg 6.jpg [B]eliminated 7.jpg[/B]
  2. thanks lisa Ill give it a shot tonight. thanks!
  3. hey guys- I did a search for "random images" and "php" and found this thread. I tried to implement the code but it doesn’t seem to be working. I have 8 jpgs I think that php code I’m using has "gif" in it . . . but when I change to .jpg in php code - no image shows up . . Testing Page http://www.hotfrogdesign.com/new_index.htm Anyway, here is all code. Any ideas why its not rotating? File located images/ rand_images.php ><? // This script returns an image header("Content-type: image/gif"); $image_count = 8; // Set this variable to the total amount of // images in the rand_images folder // Load a random image $image = fopen("rand_images/".rand(0,$image_count-1).".jpg","r"); // Return the image fpassthru($image); ?> Folder located domain/rand_images 0.jpg 1.jpg 2.jpg 3.jpg 4.jpg 5.jpg 6.jpg 7.jpg thanks TCH!
  4. can macs use stuff it to open zipped files?
  5. it works! Thanks Don, thanks all!
  6. ok thanks Bruce- let me do it later tonight. Nice man- thanks. See if it works. Thanks.
  7. oh gotcha gotcha. yup ok let me try. thanks! nope . . . not working error on line 5: >$file-extension = substr( $filename,-3 ); if( $filename == "" ) {
  8. Im using the php script Don suggested from hotscripts. There is no readme file so I am not quite sure how to incorporate this with my site. Basically I dont want to give folks an option to play the mp3s from my site and force them to download them instead. Where do I enter the names of the mp3s Im using? Thanks! ><?php $filename = $_GET['file']; $file-extension = substr( $filename,-3 ); if( $filename == "" ) { echo "<html><title>eLouai's Download Script</title><body>ERROR: download file NOT SPECIFIED. USE force-download.php?file=filepath</body></html>"; exit; } elseif ( ! file_exists( $filename ) ) { echo "<html><title>eLouai's Download Script</title><body>ERROR: File not found. USE force-download.php?file=filepath</body></html>"; exit; }; switch( $file-extension ) { case "pdf": $ctype="application/pdf"; break; case "exe": $ctype="application/octet-stream"; break; case "zip": $ctype="application/zip"; break; case "doc": $ctype="application/msword"; break; case "xls": $ctype="application/vnd.ms-excel"; break; case "ppt": $ctype="application/vnd.ms-powerpoint"; break; case "gif": $ctype="image/gif"; break; case "png": $ctype="image/png"; break; case "jpg": $ctype="image/jpg"; break; default: $ctype="application/force-download"; } header("Pragma: public"); header("Expires: 0"); header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); header("Cache-Control: public"); header("Content-Type: $ctype"); $user_agent = strtolower ($_SERVER["HTTP_USER_AGENT"]); if ((is_integer (strpos($user_agent, "msie"))) && (is_integer (strpos($user_agent, "win")))) { header( "Content-Disposition: filename=".basename($filename).";" ); } else { header( "Content-Disposition: attachment; filename=".basename($filename).";" ); } header("Content-Transfer-Encoding: binary"); header("Content-Length: ".filesize($filename)); readfile("$filename"); exit(); ?>
  9. thanks don I was able to rip and post online. look at my other post. http://www.totalchoicehosting.com/forums/i...topic=12639&hl= thanks!
  10. ok all Im back and found a way to convert the .cda files to mp3. I used poikosoft. It worked great and easy to use. Here is the fruit of my labor Thanks all.
  11. nope I tried the originals and the extensions are .cda not .wav. What are my options? Thanks. <edit>Im trying http://www.poikosoft.com and will re post my progress</edit>
  12. hey don thanks! regarding musicmatch jukebox, I downloaded free trial and when I went to convert I only saw these options I have the original CDs, can I convert using MMJ with these above options? Thanks.
×
×
  • Create New...