Jump to content

AyKay47

Members
  • Posts

    3,281
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by AyKay47

  1. This is pseudo code based off of what you stated, it will needed tweaked most likely. RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^/?(index)(?:/(.*))?$ index.php?action=$1&sub=$2 Now this will serve the file like so: index.php?action=index&sub=a1/a2/a3/a4/a5 so you will have to do some tweaking on your end to handle the changed delimiter.
  2. ~\d{2}\/\d{2}\/(?:200[6-9]|2010)~ restrict the year to ensure that they were born between 2006-2019 (2-6 years ago). Note that this certainly isn't perfect, but it will get you started.
  3. I don't quite understand your logic.
  4. can you post the relevant code please. Most likely you don't need a regex for this.
  5. not sure why you are using a class either..
  6. heh... Psycho, my thoughts are that the OP stated he is grabbing files from a directory and looping through them to display them each in a new tbl row. I'm thinking he can use glob to grab all of the .jar files from the directory and foreach through them that way, something like this: Unless one of the files happens to be named .JAR, .Jar, etc. Then, using "*.jar" in the glob() function will not work. glob() doesn't accept true regex expressions, but you can build a case-insensitive expression using the function I posted above. ah, just noticed the edit to your thread, yes that should work, any clue what the non-deprecated function is now, if one exists?. But again, until the OP responds, we can really only guess at the actual logic and if this will work in this case.
  7. heh... Psycho, my thoughts are that the OP stated he is grabbing files from a directory and looping through them to display them each in a new tbl row. I'm thinking he can use glob to grab all of the .jar files from the directory and foreach through them that way, something like this: ?> <table> <?php foreach(glob("/path/to/dir/*.jar") as $filename) { echo "<tr><td>".$filename."</td>"; echo "<td><a href='index.php?dp=".$filename."'>Disable Plugin</a></td></tr>"; } ?> </table> then again, I can only guess on the actual logic at this point.
  8. I don't understand the issue, please post the relevant code as well.
  9. I didn't notice that the parent div #nav is set to a fixed position, so using absolute positioning on li.contact is fine, since the entire parent div will not move when scrolled.
  10. Do you want the <li> to stay in the bottom left of the screen even when the page is scrolled, or just until the page is scrolled?
  11. If you want a fixed position, use the fixed value of the position property. Like so: http://jsfiddle.net/H5McR/ So if the user scrolls down, that button will always be displayed in the bottom left of the screen.
  12. I came into this thread late, so I can't say that I know exactly what you are trying to do. But you don't want to intermingle php and js like that, if you want to grab certain values from the DOM, use DOM
  13. the code I provided will alert the grabbed text for each span.
  14. 1. there are multiple elements that need to be grabbed, your method will only grab the last element. $(".labelelementvalue").each(function(i,e) { alert(i + ': ' $(this).text()); // or $(this).html() }); is what you want (above is pseudo code) 2. .innerHTML() is not a jquery function, use either .text() of .html();
  15. Set the sites internal links to point to http://www.name.com/content/33/11052/name-title-header instead of http://www.name.com/index.php?ct=33&pt=11052
  16. rewrite rules are not meant to actually change the url for you, they give a means of accessing the same page by using a "prettier" URL. It's up to you to reconstruct your website to use those pretty urls.
  17. As long as the video_id field is an integer. right, it has "id" in the name so one can only assume it's an int.
  18. Scootstah beat me to it here, but he's correct on one account. Since $super is passed from the query string, it is type string. So either cast it to an int or use intval() to sanitize the data. and be consistent with field qualifiers. $super = intval($_GET['video_id']); $filmai = $TSUE['TSUE_Database']->query("SELECT rasta_cinema.video_id, rasta_cinema.name, rasta_cinema.description, rasta_cinema.video_name, rasta_cinema.thumb_image FROM rasta_cinema WHERE rasta_cinema.video_id = $super LIMIT 1");
  19. if it makes you sleep better at night, use the else if method, or even a switch statement.
  20. It depends if you want the possibility of multiple blocks to be executed or not.
  21. I don't understand the issue.
  22. Starting from scratch or if I can find one online I am pretty sure I am going to make it 2 tables One table will have all the info for each day the other table will be the view and it will update each day, connected to the first table so what does this have to do with mysql?
×
×
  • 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.