Jump to content

rallokkcaz

Members
  • Posts

    194
  • Joined

  • Last visited

    Never

Everything posted by rallokkcaz

  1. i don't have a problem i need a script that only allows certain user to view it (example) say i only want user1 and user2 to view page.php so user3 can't look at the page. get my drift now? ???
  2. ok ive got the whole thing a login , register, and forgot password page. but they are all within the page users.php so it goes like users.php?maa=register ect. thats the login page
  3. how to let selecter users view a page? i don't know how to do the code here the the code i wanna add the script too. [code]<?PHP include ("config.php"); //if the user is not logged in, then redirect to login page. if (!is_logged_in($user)) {     header("Location: users.php");  die(); }else{       include ("header.php");       //put your code here (protected page). echo ""; include ("pic_upload.php"); } ?>[/code] thanks in advanced
  4. ok thanks for that help but i wanna show the images not the file size and type
  5. ok people your suggestions aren't helping :-\ @ AndyB : i don't know what that is ??? @ lite i don't know what that is ???
  6. my goal is to try to make a page that holds them. but i don't know how to do it.
  7. ok here's what happens ive figuered out how to upload images to my site. but when i want to view my images they show up in this boring directory thing that looks like this [img]http://www.pokebash.com/images/Picture%203.png[/img] can someone pleeze help?
  8. well if you try to login in to the site through sed login page then it'll probly work!  :D
  9. dude im srry don't be such a annoying person over it
  10. first of all are you even logged in? second can you login through the login.php(.html .htm ext.) that might help the problem
  11. instead of have a plain old directory page how could i make a page that shows the directory but in a page?
  12. now that ive figuered that out instaed of making a a boring directary page where the pics are stored is possible to make a page that the pics can go to ???
  13. thanks but i figuered out what i did wrong i didn't make a folder called images!! really stupid mistake.
  14. Warning: copy(images/BEN.png) [function.copy]: failed to open stream: No such file or directory in /home/pokebash/public_html/pic_upload.php on line 24 Could not copy that was the error message i just got what should i do to fix it. [code]<form name="form1" method="post" action="" enctype="multipart/form-data"> <input type="file" name="imagefile"> <br><input type="submit" name="Submit" value="Submit"> <br>&nbsp; <?php if(isset($_POST['Submit'])){   $file=$_FILES['imagefile']['name'];   $filetype=substr($file,-4);   if($filetype=="jpeg"){     copy($_FILES['imagefile']['tmp_name'],"images/".$_FILES['imagefile']['name'])     or die("Could not copy");     echo"<br>Upload Complete";     echo"<br>Name:&nbsp;".$_FILES['imagefile']['name']."";     echo"<br>Size:&nbsp;".$_FILES['imagefile']['size']."";     echo"<br>Type:&nbsp;".$_FILES['imagefile']['type']."<br>";   }elseif($filetype==".jpg"){     copy($_FILES['imagefile']['tmp_name'],"images/".$_FILES['imagefile']['name'])     or die("Could not copy");     echo"<br>Upload Complete";     echo"<br>Name:&nbsp;".$_FILES['imagefile']['name']."";     echo"<br>Size:&nbsp;".$_FILES['imagefile']['size']."";     echo"<br>Type:&nbsp;".$_FILES['imagefile']['type']."<br>";   }elseif($filetype==".png"){     copy($_FILES['imagefile']['tmp_name'],"images/".$_FILES['imagefile']['name'])     or die("Could not copy");     echo"<br>Upload Complete";     echo"<br>Name:&nbsp;".$_FILES['imagefile']['name']."";     echo"<br>Size:&nbsp;".$_FILES['imagefile']['size']."";     echo"<br>Type:&nbsp;".$_FILES['imagefile']['type']."<br>";   }elseif($filetype==".gif"){     copy($_FILES['imagefile']['tmp_name'],"images/".$_FILES['imagefile']['name'])     or die("Could not copy");     echo"<br>Upload Complete";     echo"<br>Name:&nbsp;".$_FILES['imagefile']['name']."";     echo"<br>Size:&nbsp;".$_FILES['imagefile']['size']."";     echo"<br>Type:&nbsp;".$_FILES['imagefile']['type']."<br>";   }else{     echo"<br><span class=\"subtitle\">Upload Error</span>";     echo"<br>Could Not Copy, Wrong Filetype (".$_FILES['imagefile']['name'].")<br>";   } } ?> </form> [/code]
  15. where would i put the script to upload it to the database? and if possible make a thumb nail of it?
  16. I can't figure out how to get this to upload to the server and then if its possible a thumbnail of the pic under that [code]<form name="form1" method="post" action="" enctype="multipart/form-data"> <input type="file" name="imagefile"> <br><input type="submit" name="Submit" value="Submit"> <br>&nbsp; <?php if(isset($Submit)){   $file=$_FILES['imagefile']['name'];   $filetype=substr($file,-4);   if($filetype=="jpeg"){     copy($_FILES['imagefile']['tmp_name'],"images/".$_FILES['imagefile']['name'])     or die("Could not copy");     echo"<br>Upload Complete";     echo"<br>Name:&nbsp;".$_FILES['imagefile']['name']."";     echo"<br>Size:&nbsp;".$_FILES['imagefile']['size']."";     echo"<br>Type:&nbsp;".$_FILES['imagefile']['type']."<br>";   }elseif($filetype==".jpg"){     copy($_FILES['imagefile']['tmp_name'],"images/".$_FILES['imagefile']['name'])     or die("Could not copy");     echo"<br>Upload Complete";     echo"<br>Name:&nbsp;".$_FILES['imagefile']['name']."";     echo"<br>Size:&nbsp;".$_FILES['imagefile']['size']."";     echo"<br>Type:&nbsp;".$_FILES['imagefile']['type']."<br>";   }elseif($filetype==".png"){     copy($_FILES['imagefile']['tmp_name'],"images/".$_FILES['imagefile']['name'])     or die("Could not copy");     echo"<br>Upload Complete";     echo"<br>Name:&nbsp;".$_FILES['imagefile']['name']."";     echo"<br>Size:&nbsp;".$_FILES['imagefile']['size']."";     echo"<br>Type:&nbsp;".$_FILES['imagefile']['type']."<br>";   }elseif($filetype==".gif"){     copy($_FILES['imagefile']['tmp_name'],"images/".$_FILES['imagefile']['name'])     or die("Could not copy");     echo"<br>Upload Complete";     echo"<br>Name:&nbsp;".$_FILES['imagefile']['name']."";     echo"<br>Size:&nbsp;".$_FILES['imagefile']['size']."";     echo"<br>Type:&nbsp;".$_FILES['imagefile']['type']."<br>";   }else{     echo"<br><span class="subtitle">Upload Error</span>";     echo"<br>Could Not Copy, Wrong Filetype (".$_FILES['imagefile']['name'].")<br>";   } } ?> </form> [/code] pleeze help!
  17. ive got no clue how to do this pleeze help
  18. yes thanks for putting it in better words
  19. ok im trying to make a user profiles for the users on my site and with the ability to edit the profile ive got no clue how to do tht but i understand how to add to the database and i wanna try to make it so when a user creates there account they get a page with out my manually making it. help would be great!!
  20. could you show an example? ??? ok im so srry for the trouble dude but im a bit of a rush now
  21. ok ive got one question how could i make it so the user could edit it? and do you have an msn or AIM screen name so we could talk a little easier
  22. srry bout that!! dumb question! But how would you make an update sql statement. srry for the dumb questions. :-\
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.