
taichimasta
Members-
Posts
25 -
Joined
-
Last visited
About taichimasta
- Birthday 01/01/1986
Profile Information
-
Gender
Male
taichimasta's Achievements

Newbie (1/5)
0
Reputation
-
wait what I never got an email about any hack email. I smell BS
-
A problem with emails fixed; registration CAPTCHA working again
taichimasta replied to requinix's topic in Announcements
Hi , Just tried to reset my password twice and didn't get a notification thank god I remembered on the third try. basically there is still a probably with the email . -
Sorry I'm going to be "that guy" but WOW. session_start(); is the basic function when using sessions , whatever page you want your user/client info to be remembered on put that and your golden. now you just have to make sure you secure it from any from of exploit. Good luck! Admin or Jaykappy can mark this as SOLVED!
-
fixed it it was the path that was the problem. Thank you for your reply(s)
-
i fixed it , i thought i corrected that but whatever , it still says its uploaded successfully but nothing. here is what it looks like now. //file variables put in another file so it can be sperate //path to the folder where the data will be sent $filepath = "\music"; /// file size and type $readsize = $_FILES["upload"]["size"]; $readtype = $_FILES["upload"]["type"]; // name of the data being uploaded $filename = $_FILES["upload"]["name"]; $filetemp = $_FILES["upload"]["tmp_name"]; //// file path and basename example.wmv so its (uploaded_music/example.wmv) $filepath = $filepath.basename($filename); /// the uploader itself and the checker $uploaderLine = move_uploaded_file($filetemp,$filepath); ?> <div class="video"> <?php if($uploaderLine == true) { echo "The File: <b>".basename($filename)."</b> has been uploaded successfully. \n <br/>"; echo "The size is: <b>".calculatebytes($readsize)."</b> and the limit is 50MB."; echo "<br/>".ceil($readsize/100); //display image if not an image don't display it ?> <br/> <img src="<?php echo "music/".$filename; ?>" border="0"/> <?php } else { echo "Sorry something went wrong with the file: <b>".basename($filename)."</b> , please try again.<br/>Errors Number: <b>".$_FILES["upload"]["error"]."</b>"; echo "<br/>The size is: <b>".$readsize."</b> and the limit is 50MB. <br/>"; echo $readsize." - File Size<br/>"; echo "52428800 - Limit \n <br/>"; } ?> <br/> <form method="POST" enctype="multipart/form-data"> item uploader: <input type="file" name="upload"> <input type="hidden" name="MAX_FILE_SIZE" value="52428800"> <input type="submit" name ="fileupload" value="Upload"><br/> </form> </div> oh and by the way , i can't find the edit button where that bloody thing go? i don't want to repost the whole code and everything constantly, rather then just edit the post .
-
I'm not here for a "How to" just need a bit of help to figure out "Why it isn't working" I know my code is correct and name all variables and will build more once i get to simple work. First i had it kinda work it uploaded a file but the name was the name of the folder so instead of example: $path = "/music"; // the folder in the same directory (yea i learned quick where it goes) $path = $path.basename($filename); // file name example.jpg or something instead i got the output music <-- yea no extension and after i tried to figure out what i did wrong it stop working completely but it successfully uploaded the file and everything.. /////////////////////////////////////////////////////////////////////////////////////////// //file variables put in another file so it can be sperate //path to the folder where the data will be sent $filepath = "\music"; //// file path and basename example.wmv so its (uploaded_music/example.wmv) $filepath = $filepath . basename($filename); /// file size and type $readsize = $_FILES["upload"]["size"]; $readtype = $_FILES["upload"]["type"]; // name of the data being uploaded $filename = $_FILES["upload"]["name"]; $filetemp = $_FILES["upload"]["tmp_name"]; /// the uploader itself and the checker $uploaderLine = move_uploaded_file($filetemp , $filepath); ?> <div class="video"> <?php if($uploaderLine == true) { echo "The File: <b>".basename($filename)."</b> has been uploaded successfully. \n <br/>"; echo "The size is: <b>".calculatebytes($readsize)."</b> and the limit is 50MB."; echo "<br/>".ceil($readsize/100); //display image if not an image don't display it echo "<br/> <img src=\"\music\\".basename($filename)."\" border=\"0\">"; } else { echo "Sorry something went wrong with the file: <b>".basename($filename)."</b> , please try again.<br/>Errors Number: <b>".$_FILES["upload"]["error"]."</b>"; echo "<br/>The size is: <b>".$readsize."</b> and the limit is 50MB. <br/>"; echo $readsize." - File Size<br/>"; echo "52428800 - Limit \n <br/>"; } ?> /////////////////////////////////////////////////////////////////////////////////////////// <br/> <form method="POST" enctype="multipart/form-data"> item uploader: <input type="file" name="upload"> <input type="hidden" name="MAX_FILE_SIZE" value="52428800"> <input type="submit" name ="fileupload" value="Upload"><br/> </form> </div>
-
no offense help is help but i'm pretty sure upgrading windows xp to windows 7 doesn't look or sound like a PHP thing .. that's it just wanted to put my two cents in since i haven't been around forever.
-
Sound like your asking for someone to do it for you. personally i don't think its possible in the way your asking. or w/e
-
[SOLVED] function + query = :( not working
taichimasta replied to taichimasta's topic in PHP Coding Help
oh i think i see Thanks works -
[SOLVED] function + query = :( not working
taichimasta replied to taichimasta's topic in PHP Coding Help
here is the page , what is looks like. <?php // i hate leaving my something not finished up -
[SOLVED] function + query = :( not working
taichimasta replied to taichimasta's topic in PHP Coding Help
uh thats my fault thats not how it really looks its an example the function is inbetween the <?php and ?> i'm not completely brain dead lol -
[SOLVED] function + query = :( not working
taichimasta replied to taichimasta's topic in PHP Coding Help
its not a mysql_error i've checked , its the function it self something isn't reading. what am i doing wrong? i need the function to execute the query and it just does nothing. -
hi again , i just have a question i'm trying to get my query to execute within a function. i don't know whats wrong with it example: (looks like this) <?php function online(){ $change = "UPDATE person SET online='1' WHERE uid='$memeber'"; $status = @mysql_query($change) or die("\n couldn't read if you are online <br/>\n "); ?> } content <?php online(); ?> Doesn't send the query what am i doing wrong?
-
[SOLVED] Autonumbering a Primary Key Field in MYSQL?
taichimasta replied to limitphp's topic in MySQL Help
no offense but you should play around and look at all attributes of phpmyadmin or pick up a book or just type it in google, that way you don't feel lost in the beginning of what your doing. -
ok i think i got it , I'll do a few test runs so i can get the concept and use it. i'll use this method as a practical method. Thanks I'll post if i use any advance methods for salt later on.