Jump to content

MadTechie

Staff Alumni
  • Posts

    9,409
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by MadTechie

  1. please don't bump your own post unless an hour has passed also you havn't given the info we need.. oh who care total guess try SELECT count(refid), username FROM table1
  2. corrected thopes code <?php if (strpos($line,'XTREME - STATION ID 1~1')) { echo "Swansea University's Favorite Music"; } ?> or anything that contains a ~ <?php if (strpos($line,'~')) { echo "Swansea University's Favorite Music"; } ?>
  3. sorry still makes no sense, if you change the URL to one that doesn't work it.. it will not work! you should be changing the title not the link the very fact your filtering output from the database and then trying to link back via that data confuses me.. sorry either i have failed to understand what you are trying to do or your logic is incorrect..
  4. personally POST would be easier in the long run, are you using urldecode ?
  5. ok please explain what you mean by
  6. OK erm.. what? i must be having a bad day people are making no sense to me today!
  7. can you sort by that field then!
  8. ok so far i have 30 Seconds to Mars - From Yesterday This Is Seb Clarke - I Just Can't Carry On Overnight_News~1.3 XTREME - HOUR OPENER~1 now i assume you want it to look like this 30 Seconds to Mars - From Yesterday This Is Seb Clarke - I Just Can't Carry On Overnight_News XTREME - HOUR OPENER are the ~1.3 the main thing you want rid of, or are their worse one i havn't seen yet?
  9. OK as i am now more lots then when we started, can you explain what your trying to do an why ? i think you want a link with a cleaned up tag.. but your changing the link.. ? ???
  10. OK let me get a few entries from it until i see a problem then i'll post some code to resolve it (if i can) EDIT i assume This Is Seb Clarke - I Just Can't Carry On is formatted correctly
  11. Need more info about your database fields etc personally i would have a 'refferers' table with 3 field UID, UserID, RefsID then count(RefsID) group by RefsID
  12. OK but i still need to see the data being pulled inn.. any links i can see, basically i can't create a filter without see the data first.. i need to know what your working with
  13. try $data = pack("H" . strlen($hex), $hex);
  14. in your html you have <tr> <th>Color:</th> <th> <input type = "text" name = "color" value = ""> </th> </tr> now the name = "color" is pulled into the php via $_POST['color'] not $color you could do $color = $_POST['color'];
  15. OK total guess but add $strOut = str_replace('-', '+', $strOut); //Add above // swap spaces for _ $strOut = str_replace(' ', '-', $strOut); //<-- you have this note sure why your swapping things around
  16. I refer to this statement OK example Current file Rihanna > Good Girls Gone Bad (2007) > Umbrella Rihanna > Good Girls Gone Bad (2007) > Push Up cleaned file Rihanna > Umbrella Rihanna > Push Up
  17. would be better to create a zip with the selected files and download that, well thats what i did.. heres my old forceDownload funtion <?php function forceDownload($archiveName) { $headerInfo = ''; if(ini_get('zlib.output_compression')) { ini_set('zlib.output_compression', 'Off'); } // Security checks if( $archiveName == "" ) { echo "<html><title>Download </title><body><BR><B>ERROR:</B> The download file was NOT SPECIFIED.</body></html>"; exit; } elseif ( ! file_exists( $archiveName ) ) { echo "<html><title>Download </title><body><BR><B>ERROR:</B> File not found.</body></html>"; exit; } header("Pragma: public"); header("Expires: 0"); header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); header("Cache-Control: private",false); header("Content-Type: application/zip"); //<--- NOTICE I USED ZIP header("Content-Disposition: attachment; filename=".basename($archiveName).";" ); header("Content-Transfer-Encoding: binary"); header("Content-Length: ".filesize($archiveName)); readfile("$archiveName"); exit(); } ?>
  18. You lost me.. whats the problem ?
  19. first please use code tag (#) for code do you have a text file we can see also could you manually clean the file so we can see what you expect the end result to be
  20. change $allowed = '/[^a-z0-9 ]/ims'; to $allowed = '/[^a-z0-9 -+]/ims'; as a note you did say it worked for +
  21. change $allowed = '/[^a-z0-9 ]/ims'; to $allowed = '/[^a-z0-9 -]/ims';
  22. OK Good News and bad News Good News: I am at home and ran some tests, and it works Bad News: I didn't change much.. So i have PM'ed you a link to my test site it has a link to phpinfo() and the source code (little changes) files uploaded for you to test are:~ 1.1Mb File 2000x1303 (main file) 3.5Mb File 4000x2606 (doubled) 10.2mb File 8000x5212 (doubled) again
  23. if i have time will try on my server when i get home
  24. yes its insecure but lets get the understanding done first.. then when that makes sense were secure it
  25. Heehee true.. the smaller the code the faster so by removing the space that will save .. erm.. how much 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.