Jump to content

CRO8

Members
  • Posts

    80
  • Joined

  • Last visited

Everything posted by CRO8

  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. all good thanks!
  10. thanks man.
  11. 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!
  12. 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.
  13. 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>
  14. thanks Bruce!
  15. 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.
  16. nice- thanks all.
  17. yup thanks all.
  18. nice thanks again Bruce
  19. thanks Ill look into musicmatch jukebox. Is there a free alternative? Thanks.
  20. can someone suggest some good free software that can convert large size Audio CDs (59mb, 60mb, 54mb) to mp3? I am completely new to this area. sorry guys my other converastion has shifted to this topic. didnt mean to spam Thanks.
  21. oh bruce thats awesome man. thanks! just what I need. I tried to search thru HS but didnt know what to look for. cool. As of now I uploaded all three mp3 files and created a hyperlink for them here and giving folks the choice to either play on site or download to home computer. I have cable and the files work fine. Tomorrow Im going to have some co-workers look at it and see if they can open on site. thanks again Bruce- good stuff. <edit>question: what extension should my mp3s have? as of now its .cda</edit>
  22. thanks boxturt but the mp3s Im using are very large. one if 60 mb, one is 54 mb. big. I really dont want to give folks a way of listening to them. just download it onto their machines.
  23. you know what- is there a way I keep it as mp3 and write a script that tells the computer to not automatically play its plug in but prompt a window to save on hard drive - similar to what happens with zip files? I am concerned folks wont know how to deal with opening zips. Thanks.
  24. ok thanks guys will do. Thanks!
  25. oh geez really? ok, whatever. this is what client wants. As long as I can get them onto people's computers and not play automatically upon clicking on hyperlink. zipping will do this. thanks!
×
×
  • Create New...