Jump to content

westman

Members
  • Posts

    600
  • Joined

  • Last visited

Everything posted by westman

  1. westman

    hide image url

    ok i got good news and badi can download my images with this code... header('Content-Description: File Transfer');header('Content-Type: image/jpeg');header("Content-Disposition: attachment; filename=mypic.jpg");readfile('images/pics/3.jpg'); it works fine and has been tested with different type of .jpg filesbut when i download the .jpg file needed i can not open it and i get a windows error..."Windows photo viewer can't open this picture because the file appears to be bamaged, currupted, or is too large."
  2. westman

    hide image url

    i did and am still getting nowhere
  3. westman

    hide image url

    the 1st line of code i have in my main script is...session_start();can i get a code example of a standalone download script and how it gets called in a main page script please, maybe that would help.
  4. westman

    hide image url

    no its still not working, can i download an image without using header() ?
  5. westman

    hide image url

    no it did not work i got this error...Warning: Cannot modify header information - headers already sent by (output started at /home/content/31/9408631/html/index.php:91) in/home/content/31/9408631/html/adult/index.php on line 681 Warning: Cannot modify header information - headers already sent by (output started at /home/content/31/9408631/html/index.php:91) in/home/content/31/9408631/html/index.php on line 682 Warning: Cannot modify header information - headers already sent by (output started at /home/content/31/9408631/html/index.php:91) in/home/content/31/9408631/html/index.php on line 683 Warning: readfile(http://mysite.com/images/pics/3.jpg) [function.readfile]: failed to open stream: HTTP request failed! HTTP/1.1 500 Internal Server Error in/home/content/31/9408631/html/index.php on line 684
  6. westman

    hide image url

    that's cool,i am now trying to download my hidden images i tried... $down_file = "http://mysite.com/images/pics/3.jpg";header("Content-Disposition: attachment; filename=pic.jpg");readfile($down_file); but it did not work, any help?
  7. hi all,how do i customize an up and down scroll bar so it has colour and not standard and boring?
  8. hi am trying to get the day, month and year in 3 different veritablesi have this...date("Y-m-d")and i need Y, m and d in veritables, how do i do this?
  9. westman

    hide image url

    ok lol thank youyer it was the path that was incorrectsuch i simple bit of code can stop a full site from working like a line break lolthis php stuff is fun
  10. westman

    hide image url

    its still not working, i used... <?phpheader("Content-type: image/jpeg");echo file_get_contents("pics/2/2.jpg");?>
  11. westman

    hide image url

    i tried it but id did not work,my code looks like this.... index.php <img src="image.php"> image.php header("Content-type: pics/2/2");echo file_get_contents("pics/2/2.jpg");
  12. westman

    hide image url

    speaking about...<img src="showimage.php?imageid=1"?>could i have a code example on showimage.php so i can understand better
  13. westman

    hide image url

    i understand that i am using a php file but this code i do not get...<img src="showimage.php?imageid=1"?>or a way php can show the image to the user
  14. westman

    hide image url

    ok i used... Order Allow DenyDeny From Alland that seems to be working ok, but i did not understand ... <img src="showimage.php?imageid=1"?>or a way php can show the image to the user
  15. westman

    hide image url

    how do i use .htaccess to prevent direct file accessing?i tried it in some script before and i could not control it, and in the end i could not access to a file as the admin of the site
  16. westman

    hide image url

    how do i hide my image url?if a user right clicks on a preview image i am selling they will see this link... http://mysite.com/pic/1/1.jpg and the image i am selling is... http://mysite.com/pic/1/2.jpg i have 100's of images and there folder names run from 1 to 200 and in each file there is 2 images 1.jpg and 2.jpg how can i stop my users from stealing my images by finding out my filing system?
  17. westman

    mail()

    i don't no what happened but i left the script and came back 12 hours later and it now works. i have no idea what the problem was, but the main thing is that it is working now
  18. westman

    mail()

    hi again i got a sign up script that works, the only thing that does no work is mail()when my script runs i do not get an emailthis is my script.... $to = $signup_email;$from = "service@mysite.com";$subject = "Complete your registration";$message = '<html><body bgcolor="#FFFFFF">Hi ' . $signup_username . ',<br /><br />You must complete this step to activate your account with us.<br /><br />Please click here to activate now <br />http://www.mysite.com/activate/activation.php?id=' . $id . '&sequence=' . $db_password . '<br />If the URL above is not an active link, please copy and paste it into your browser address bar.<br /><br />Your Login Data is as follows: <br /><br />E-mail Address: ' . $signup_email . ' <br />Password: ' . $signup_password . ' <br /><br /> </body></html>';$headers = "From: $from\r\n";$headers .= "Content-type: text/html\r\n";mail($to, $subject, $message, $headers);
  19. westman

    header ()

    ok got it thank you
  20. westman

    header ()

    lol speaking of line breaks i use...<br />for a line break in html. what is the difference between<br> and <br /> ?
  21. westman

    header ()

    lol am from the uk English is my native language
  22. westman

    header ()

    omg its working so well i even got my "session_start();" working and setting variables for logged in or out users ones again thank you i have so much to learn about php speaking of learning could some1 recommend a site to learn php from day 1, i have looked at this site (w3schools) but the English used is not for beginners (meaning jumping straight in to technical terms like line breaks lol) so its hard to keep up
  23. westman

    header ()

    omg i put <?php on line 1 and its working again i am so happy thank you so much so tell me is it ok if line 60 to 65 has no code?
  24. westman

    header ()

    hmm i see my code is all spread out like line 60 to 65 has no code, is that ok?
×
×
  • Create New...