-
Posts
9,409 -
Joined
-
Last visited
-
Days Won
1
Everything posted by MadTechie
-
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
-
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"; } ?>
-
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..
-
personally POST would be easier in the long run, are you using urldecode ?
-
ok please explain what you mean by
-
OK erm.. what? i must be having a bad day people are making no sense to me today!
-
can you sort by that field then!
-
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?
-
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.. ? ???
-
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
-
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
-
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
-
Is there a function to convert hexadecimal to ascii?
MadTechie replied to codygoodman's topic in PHP Coding Help
try $data = pack("H" . strlen($hex), $hex); -
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'];
-
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
-
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
-
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(); } ?>
-
You lost me.. whats the problem ?
-
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
-
change $allowed = '/[^a-z0-9 ]/ims'; to $allowed = '/[^a-z0-9 -+]/ims'; as a note you did say it worked for +
-
change $allowed = '/[^a-z0-9 ]/ims'; to $allowed = '/[^a-z0-9 -]/ims';
-
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
-
if i have time will try on my server when i get home
-
[SOLVED] Simple Sort ascending descending buttons
MadTechie replied to m00ch0's topic in PHP Coding Help
yes its insecure but lets get the understanding done first.. then when that makes sense were secure it -
Heehee true.. the smaller the code the faster so by removing the space that will save .. erm.. how much time?