Jump to content

NME

Members
  • Posts

    22
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

NME's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. ? what do u mean? am i making 2d arrays incorrectly? im under the impression that to make 2d arrays in javascript, one must do the following: (ie for a 2x2 array). var stack = new Array(2); stack[1] = new Array(2); stack[2] = new Array(2); stack[1,1]="hello"; stack[2,1]="world"; document.write(stack[1,1] + " " + stack[2,1]);
  2. stack[1]=new Array(2); stack[2]=new Array(2); stack[1,1]="hello"; stack[2,1]="world"; document.write(stack[1,1] + " " + stack[2,1]); quick question.. why does the above write out the following: "world world"; i need it to write out: "hello world"; any ideas. thanks.
  3. ok i figured that might be a problem. so i put this in: ini_set("upload_max_filesize", "8M"); does that seem alright? i just want to increase the max_filesize to 8MB from 2 MB standard.
  4. haha crap i dont think thats what i meant. my problem is that i added a php.ini file to my server, but now when i do phpinfo(); it still shows information from the default php.ini that my webhost uses.
  5. ok i kinda get what ur talking about. when i make this element.php i should basically put in something like include ' php.ini'; ? or something else. sorry i just dont understand how to literally link the php.ini page.
  6. simple question. i made a php.ini, how do i get all my pages to link to it? do i just put it in the root folder of the server?
  7. any suggestions would be really appreciated.
  8. hey guys, thanks for all the help so far. but the problem is still there. here is the updated code: <html> <body> <!-- The data encoding type, enctype, MUST be specified as below --> <form enctype="multipart/form-data" action="uploadtest_script.php" method="POST"> <!-- MAX_FILE_SIZE must precede the file input field --> <input type="hidden" name="MAX_FILE_SIZE" value="30000" /> <!-- Name of input element determines name in $_FILES array --> Send this file: <input name="userfile" id="userfile" type="file" /> <input type="submit" value="Send File" /> </form> </body> </html> and its script: <? ini_set("memory_limit", "32M"); ini_set("max_execution_time", 0); error_reporting(E_ALL & ~E_NOTICE); print "size:". $_FILES['userfile']['size'] . " "; print "name:". $_FILES['userfile']['name'] . " "; print "type:". $_FILES['userfile']['type'] . " "; print "tempname:" . $_FILES['userfile']['tmp_name'] . ""; ?> and its result: size:0 name:2.mp3 type: tempname:
  9. in my php.ini i set the post_max_size to 8M. is there something else that needs to change? the mp3 i uploaded was 3.7M
  10. Hey guys, im trying to upload mp3's onto my site. i know how to do it with images but I'm getting some problems when i select an mp3 file. I cut the problem down to the following and made it very easy to read: <html> <body> <form action="uploadtest_script.php" method="post" enctype="multipart/form-data"> <label for="file">Filename:</label> <input type="file" name="file" id="file" /> <br /> <input type="submit" name="submit" value="Submit" /> </form> </body> </html> and the script is here. its a simple print out of all the FILES variables: <? print "name:". $_FILES['file']['name'] . " "; print "type:". $_FILES['file']['type'] . " "; print "size:". $_FILES['file']['size'] . " "; print "tempname:" . $_FILES['file']['tmp_name'] . ""; ?> and these are the results im getting???: size:0 name:2.mp3 type: tempname: Basically, the variables are not being set to the FILES array. any suggestions? thanks.
  11. NME

    Jump to Page?

    Thanks a ton man. Your awesome
  12. Hey guys, I was just wondering if there was any command to jump to a different page without clicking a hyperlink. An example is suppose the user clicks a link that leads to a file where there are a few mysql commands, and then i want to go back to the initial page immediately after those commands are completed. I already know about include, but for some reason its not working when i do something like... include 'www.blah.com/blah.php?blah=$blahid'.
  13. any help would be really appreciate guys
  14. hmm im still getting an error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ''Info_User_19' ( 'index' INT( 25 ) NOT NULL AUTO_INCREMENT , by the way, thanks so much for all your time poirot.
  15. Ok, this is what is says, but i still cant figure it out: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'int(25) NOT NULL auto_increment, freinds int(25) NOT NULL,
×
×
  • 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.