Jump to content

jaymc

Members
  • Posts

    1,521
  • Joined

  • Last visited

    Never

Everything posted by jaymc

  1. Any more ideas?
  2. I have a website, on that site is an iframe. Also on the site is a link which loads a popup In that popup is a form, When the form is submitted I want it to submit to the iframe in the main site Just wondering, how. I have took a guess at this but obviously doesnt work [code]<form target="opener.frames['iframe'].location.href='loaduserplaylist.php">[/code] Any ideas?
  3. Any more information on using MSN's API?
  4. I was just wondering, If I had my msn email address and password, How could I use PHP to login via a socket perhaps and retrieve my contact list.. If you have seen BEBO.COM you will know what Im talknig about Somehow usnig a form to enter your email and password it retrieves your entire contact list Any idea how this could be achieved.. really curios
  5. When the uploads are over 8M both FILES and POST are empty I cant think of anything that I have changed on the server, as I said I opened php.ini but didnt amend anything
  6. Their is no point because I havnt changed the script, it just stopped working. No i did open the php.ini file about a week ago but didnt edit anything. So obviously something has happened whilst doing that. But the script is fine, here it is anyway form code: [code]<form name='form' action='cheese.php' method='POST' enctype='multipart/form-data'> <input type='hidden' name='genre' value='Dance'> <input type='hidden' name='artistnametxt' value='Ian Van Dahl'> <input type='hidden' name='numtracks' value='13'> <div align=left style='padding:3px;'><b>1) Enter the album name<BR>2) Fill in all the song names and browse for audio<BR>3) Browse for album cover image<BR>4) When you done the above, click 'Upload Album'</b></div><BR> <table cellpadding=0 cellspacing=1><tr><td colspan=2 align=center><input type=text name='albumname' style="border: 1px solid #000000; background: url('../site/images/linkback.jpg'); cursor:hand; font-family:tahoma; font-size:11px; color:#01305B; font-weight:bold; text-align:center;" value='Enter the album name' onClick="this.select();"><BR><BR></td></tr><tr> <td><input type=text name='songname1' style="border: 1px solid #000000; background: url('../site/images/linkback.jpg'); cursor:hand; font-family:tahoma; font-size:11px; color:#01305B; font-weight:bold; text-align:center;" value='Enter track 1 name' onClick="this.form.songname1.select();"></td> <td><input type=file name='filename1' style="border: 1px solid #000000; background: url('../site/images/linkback.jpg'); cursor:hand; font-family:tahoma; font-size:11px; color:#01305B; font-weight:bold; text-align:center;" value='Click browse'></td></tr><tr> <td><input type=text name='songname2' style="border: 1px solid #000000; background: url('../site/images/linkback.jpg'); cursor:hand; font-family:tahoma; font-size:11px; color:#01305B; font-weight:bold; text-align:center;" value='Enter track 2 name' onClick="this.form.songname2.select();"></td> <td><input type=file name='filename2' style="border: 1px solid #000000; background: url('../site/images/linkback.jpg'); cursor:hand; font-family:tahoma; font-size:11px; color:#01305B; font-weight:bold; text-align:center;" value='Click browse'></td></tr><tr> <td><input type=text name='songname3' style="border: 1px solid #000000; background: url('../site/images/linkback.jpg'); cursor:hand; font-family:tahoma; font-size:11px; color:#01305B; font-weight:bold; text-align:center;" value='Enter track 3 name' onClick="this.form.songname3.select();"></td> <td><input type=file name='filename3' style="border: 1px solid #000000; background: url('../site/images/linkback.jpg'); cursor:hand; font-family:tahoma; font-size:11px; color:#01305B; font-weight:bold; text-align:center;" value='Click browse'></td></tr><tr> <td><input type=text name='songname4' style="border: 1px solid #000000; background: url('../site/images/linkback.jpg'); cursor:hand; font-family:tahoma; font-size:11px; color:#01305B; font-weight:bold; text-align:center;" value='Enter track 4 name' onClick="this.form.songname4.select();"></td> <td><input type=file name='filename4' style="border: 1px solid #000000; background: url('../site/images/linkback.jpg'); cursor:hand; font-family:tahoma; font-size:11px; color:#01305B; font-weight:bold; text-align:center;" value='Click browse'></td></tr><tr> <td><input type=text name='songname5' style="border: 1px solid #000000; background: url('../site/images/linkback.jpg'); cursor:hand; font-family:tahoma; font-size:11px; color:#01305B; font-weight:bold; text-align:center;" value='Enter track 5 name' onClick="this.form.songname5.select();"></td> <td><input type=file name='filename5' style="border: 1px solid #000000; background: url('../site/images/linkback.jpg'); cursor:hand; font-family:tahoma; font-size:11px; color:#01305B; font-weight:bold; text-align:center;" value='Click browse'></td></tr><tr> <td><input type=text name='songname6' style="border: 1px solid #000000; background: url('../site/images/linkback.jpg'); cursor:hand; font-family:tahoma; font-size:11px; color:#01305B; font-weight:bold; text-align:center;" value='Enter track 6 name' onClick="this.form.songname6.select();"></td> <td><input type=file name='filename6' style="border: 1px solid #000000; background: url('../site/images/linkback.jpg'); cursor:hand; font-family:tahoma; font-size:11px; color:#01305B; font-weight:bold; text-align:center;" value='Click browse'></td></tr><tr> <td><input type=text name='songname7' style="border: 1px solid #000000; background: url('../site/images/linkback.jpg'); cursor:hand; font-family:tahoma; font-size:11px; color:#01305B; font-weight:bold; text-align:center;" value='Enter track 7 name' onClick="this.form.songname7.select();"></td> <td><input type=file name='filename7' style="border: 1px solid #000000; background: url('../site/images/linkback.jpg'); cursor:hand; font-family:tahoma; font-size:11px; color:#01305B; font-weight:bold; text-align:center;" value='Click browse'></td></tr><tr> <td><input type=text name='songname8' style="border: 1px solid #000000; background: url('../site/images/linkback.jpg'); cursor:hand; font-family:tahoma; font-size:11px; color:#01305B; font-weight:bold; text-align:center;" value='Enter track 8 name' onClick="this.form.songname8.select();"></td> <td><input type=file name='filename8' style="border: 1px solid #000000; background: url('../site/images/linkback.jpg'); cursor:hand; font-family:tahoma; font-size:11px; color:#01305B; font-weight:bold; text-align:center;" value='Click browse'></td></tr><tr> <td><input type=text name='songname9' style="border: 1px solid #000000; background: url('../site/images/linkback.jpg'); cursor:hand; font-family:tahoma; font-size:11px; color:#01305B; font-weight:bold; text-align:center;" value='Enter track 9 name' onClick="this.form.songname9.select();"></td> <td><input type=file name='filename9' style="border: 1px solid #000000; background: url('../site/images/linkback.jpg'); cursor:hand; font-family:tahoma; font-size:11px; color:#01305B; font-weight:bold; text-align:center;" value='Click browse'></td></tr><tr> <td><input type=text name='songname10' style="border: 1px solid #000000; background: url('../site/images/linkback.jpg'); cursor:hand; font-family:tahoma; font-size:11px; color:#01305B; font-weight:bold; text-align:center;" value='Enter track 10 name' onClick="this.form.songname10.select();"></td> <td><input type=file name='filename10' style="border: 1px solid #000000; background: url('../site/images/linkback.jpg'); cursor:hand; font-family:tahoma; font-size:11px; color:#01305B; font-weight:bold; text-align:center;" value='Click browse'></td></tr><tr> <td><input type=text name='songname11' style="border: 1px solid #000000; background: url('../site/images/linkback.jpg'); cursor:hand; font-family:tahoma; font-size:11px; color:#01305B; font-weight:bold; text-align:center;" value='Enter track 11 name' onClick="this.form.songname11.select();"></td> <td><input type=file name='filename11' style="border: 1px solid #000000; background: url('../site/images/linkback.jpg'); cursor:hand; font-family:tahoma; font-size:11px; color:#01305B; font-weight:bold; text-align:center;" value='Click browse'></td></tr><tr> <td><input type=text name='songname12' style="border: 1px solid #000000; background: url('../site/images/linkback.jpg'); cursor:hand; font-family:tahoma; font-size:11px; color:#01305B; font-weight:bold; text-align:center;" value='Enter track 12 name' onClick="this.form.songname12.select();"></td> <td><input type=file name='filename12' style="border: 1px solid #000000; background: url('../site/images/linkback.jpg'); cursor:hand; font-family:tahoma; font-size:11px; color:#01305B; font-weight:bold; text-align:center;" value='Click browse'></td></tr><tr> <td><input type=text name='songname13' style="border: 1px solid #000000; background: url('../site/images/linkback.jpg'); cursor:hand; font-family:tahoma; font-size:11px; color:#01305B; font-weight:bold; text-align:center;" value='Enter track 13 name' onClick="this.form.songname13.select();"></td> <td><input type=file name='filename13' style="border: 1px solid #000000; background: url('../site/images/linkback.jpg'); cursor:hand; font-family:tahoma; font-size:11px; color:#01305B; font-weight:bold; text-align:center;" value='Click browse'></td></tr><tr><td><BR><input type=text READONLY style="border: 1px solid #000000; background: url('../site/images/linkback.jpg'); cursor:hand; font-family:tahoma; font-size:11px; color:#01305B; font-weight:bold; text-align:center;" value='Browse for album cover'></td> <td><BR><input type=file name='picture' style="border: 1px solid #000000; background: url('../site/images/linkback.jpg'); cursor:hand; font-family:tahoma; font-size:11px; color:#01305B; font-weight:bold; text-align:center;" value='Click browse'></td></tr> </table><BR> <input type=submit value='Upload Album' class=button OnClick="if(valid==true){this.className='uploadgo'; this.value='Uploading..'}"><BR><BR> <div id = "myDivID"></div> </form> [/code] and here is the PHP [code]<? print_r($_POST); ?>[/code] It works fine, but as I said, when the files amount to over 8M in size, $_POST is empty, so the problem is definetly something to do with upload size/post size
  7. Any idea's guys, Really stumped on this one, Its delaying a whole project :(
  8. Nothing to do with a database... just all PHP
  9. I have a wierd problem. I have an upload form where you can upload multiple files... For some reason, its stoppe working. Now ive been working on it for about an hour trying to locate the root of the problem I've now found that if the total amount of files amount to 8M+ It wont work Now, obviously the first thing I did was check php.ini as thought, it was fine [b]upload_max_filesize = 1000M[/b] What is happening? It definetly wont go past 8M Edit: Ive just ran <?php echo ini_get('upload_max_filesize'); ?> and it gave 2M Huh?
  10. [quote author=sanfly link=topic=118378.msg483710#msg483710 date=1165972204] or put this in the header of the page [code=php:0]header("Cache-control: private");[/code] [/quote] Huh? I did actually try that and it didnt work I have signup.htm and signup.php Signup.htm = form html signup.php = php process I tried that header on both, never worked..
  11. I have a form, which has some PHP validation in it So for instance, if they fill in a field incorrect they will be notified and asked to go back and ammend that field However, when they go back, all the other day that they filled in is obviously gone.. How can I get it so the data they entered previously is still in this boxes.. May even be better using another language, just thought  would be best to ask in here
  12. Ok, I'll take up your advice and use something else in the database to authenticate the cookie :)
  13. I have actually got it so when accessing profile info and change password they need to re enter their password So basically, is it ok to use their md5 hash as a method of confirming the cookie hasnt been forged..
  14. I see what your saying but the password is hashed... md5 Would take someone to get onto their PC, steal the cookie and then take it home to decrypt right?
  15. But the unique ID will essentially be their password hash...
  16. I want to put a cookie on a users system so that the next time they go to the site it logs them straight on My site requires username and password to login... Is this the best way to authenticate a user from a cookie, put this in a cookie username:passwordmd5hash Basically when they access the site the cookie will be read, username extracted and then the passwordhash compared to that which is stored in the database If its correct then we know its valid?
  17. Its worked in the past, perfect Just random it hasnt ive just done a small test using 2 files 1 to make a session and 1 to read Thats working great Hmmm
  18. I have a website that works around session The session do not have a life time, basically the session is terminated when the browser is closed This has been working great, but for some reason, and pretty random, i've hit a problem when I click a link on my site that opens a page from my site in a NEW window, the session is not picked up.. No idea why, The only thing I changed in PHP.INI was max execution time, I dont think ive altrered anything else Any way I can test something to try find the root of the problem..
  19. Sorted !! The question marks where not actually question marks They where just being shown on screen as question marks because of the charset I did this to narrow the search results Try WHERE username LIKE '____s___________%' And it came up fine Now converted Thanks guys!
  20. Nope, that just returned 19 pages of 30 rows, checked through each manually and it wasnt their This is a nightmare. Surely their must be a more straight forward way to convert from Binary to Ascii... on a field that is unique Is their any way to force it and delete any duplicates it finds
  21. Any ideas?
  22. Didnt return anything Basically what im trying to do, is convert a field from ascii_binary to ascii_general so that it is not case sensitive However, to acheieve that, their cant be any duplicate usernames When I try and change it to ascii_general it tells me that their is a duplicate entry of that username with all the question marks [code]SQL query: ALTER TABLE `members` CHANGE `username` `username` VARCHAR( 20 ) CHARACTER SET armscii8 COLLATE armscii8_general_ci NOT NULL MySQL said: Documentation #1062 - Duplicate entry '????s???????????????' for key 2 [/code] really stuck
  23. I have the following username in my database [code]????s???????????????[/code] However, I cant find where it is! And it wont appear in a search such as [code]SELECT * FROM `members` `username` = "????s???????????????" LIMIT 0 , 30[/code] I have a feeling the '?' character is confusing MYSQL. I need to find and delete that entry, any ideas how?
  24. It is case sensitive because ive set the username field to BINARY I dont want to toss out the dupilicates, I basically want to turn the following jamie JAMIE Jamie into this jamie JAMIE01 Jamie02
  25. Hmmm Basically, I'll explain in a bit more detail what I want to achieve I have a 100,000 row member database, so basically 100,000 usernames I want to change the username field to ASCI so usernames are not case sensitive I cant do that until I remove/rename duplicate usernames I tried dumping every username from a loop into an array then for each username see if it already exists in the array, if it did then I know its a duplicate entry But because their is 100,000 rows the script takes a while and dies at 60 seconds for max execution time
×
×
  • 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.