Jump to content

canadabeeau

Members
  • Posts

    364
  • Joined

  • Last visited

Everything posted by canadabeeau

  1. hello cags, are you able to tell me the line of code to do it?
  2. Hi I am currently running this mod_rewrite Options +FollowSymlinks RewriteEngine On RewriteRule ^([a-zA-Z0-9]+)/([a-zA-Z0-9]+)/([a-zA-Z0-9]+)$ /index.php?uri=$1/$2/$3 RewriteRule ^([a-zA-Z0-9]+)/([a-zA-Z0-9]+)$ /index.php?uri=$1/$2 RewriteRule ^([a-zA-Z0-9]+)$ /index.php?uri=$1 Now I basically need a rule which will cater for $1 $2 $3 $4 etc by itself rather than me making it like in the above, I need a rule which will somehow automatically cope, any ideas? otherwise my mod_rewrite may get a bit messy :-(
  3. okay I have my urls like http://yoursite.com/contact instead of http://yoursite.com/?uri=contact or http://yoursite.com/index.php?uri=contact this is my mod_rewrite Options +FollowSymlinks RewriteEngine On RewriteRule ^([a-zA-Z0-9]+)/([a-zA-Z0-9]+)/([a-zA-Z0-9]+)$ /index.php?uri=$1/$2/$3 RewriteRule ^([a-zA-Z0-9]+)/([a-zA-Z0-9]+)$ /index.php?uri=$1/$2 RewriteRule ^([a-zA-Z0-9]+)$ /index.php?uri=$1 because I rewrite from "folders" (the site is DB driven hence "folders") But I am unsure if you can remove "/artist/" completely you may have to settle for "/artist/freakadilly"
  4. Hi guys and gals, I have a PHP script echoing my css out of a mysqlDB. Now when it echos out all the content of the field it places them (a) on all the same line or (b) with no indentation [(b) applies to (a)] For example html,body{ background-color: #ffffff; padding: 0 0 0 0; margin: 0 0 0 0; /*background-image:url(/images/fullbg.jpg);*/ /*background-repeat:repeat-x;*/ font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: #686868; } wether I want html,body{ background-color: #ffffff; padding: 0 0 0 0; margin: 0 0 0 0; /*background-image:url(/images/fullbg.jpg);*/ /*background-repeat:repeat-x;*/ font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: #686868; } Any ideas how I can add the " " before it echos? it echos the "html,body{" and "}" separate so there should be a way to make the rest indent " " when it echos? Thanks in advance
  5. okay, so use MoBlock, now I have to try and get it's source code from the developer :-) Thanks laffin
  6. okay I'll look at PeerGuardian. however it seems PerrGuardian is not for Linux ONLY Windows :-(
  7. Or if anyone can tell me maybe where on PHPfreaks or another forum I should post this question
  8. The above QUOTE is for IPSec on Windows Servers (2003+2008)
  9. Hi I am using this method to block IPs attempting to DDOS and hack a server. Now I want to make a PHP script (that interacts via the Command Line as it would not be possible to do it via the web) that will add IPs that I type in (or the administrator does). If I can't do it via this method (whith the above QUOTE) is there an open source project which could help me (that stores the IP ban list as a file, that way I can get PHP to append it). If anyone knows such an open source project please post it here (or a project FREE for commercial use), post a link too please :-) I will need eventually to develop this method so it can work on Windows server, Linux servers and MAC servers :-(, but I think i'll deal with Windows first. Much thanks in advance Rhodry Korb
  10. I am building a file called install.php now it needs to get the mysql export (install.sql) and import it into the database that the user types in the details for. This is completely separate from my question about command line.
  11. How do I go about making PHP install to a MySQL DB the content in a .sql file?
  12. Is there anyway to execute a PHP file via the Windows (Mac equivalent or Linux equivalent) command prompt for example file called cmd.php
  13. To be honest it look very dated and old. Look at some other games sites or any other sites and make a more new and modern look. I don't necessarily like all of this sites layout http://www.addictinggames.com/index.html but take a look at it, it is much better than yours (not dated look)
  14. not quite solved if I change require_once to require it echo's the layout twice but with the same content :-(
  15. if I use 2 different "layouts" it works but as soon as I go back to using the same layout001.php to process it all it fails to echo both articles...... any clues? Oh forgot Thanks in advance and if this is not very clear let me know
  16. am I going about this the wrong way?
  17. Okay so I have several "articles" stored in a mysql database and am attempting to echo those onto a PHP page. so on index.php I have <?php article_layout();?> (yes there is a require one to get the function but that works) then page_layout is this <?php function article_layout(){ $uri = $_GET['uri']; if($uri == ""){ $uri = "home"; } else { $uri = $uri; }; $mysqli = db_connect(); $qry = "SELECT * FROM `articles` WHERE `uri`='$uri'"; $result = $mysqli->query($qry, MYSQLI_STORE_RESULT); while ($row = mysqli_fetch_array($result)){ $layout = $row['layout']; require_once('http://'.$_SERVER['HTTP_HOST'].'/themes/default/layouts/'.$layout.'.php?uri='.$uri.''); }; };?> which calls the relevant layout page (so the contents it layed out correctly) now my problem is how to make this cope with more than one article, so far it is only display one article even if it should be display two. Any ideas?
  18. I recommend redoing the theme, not the best ever :-)
  19. CMS like Joomla allow the administrator to see the keywords which get people to their website the most. How can I do this for my site? Is this done using PHP and google? or some other method. Thank you for help in advance
  20. if I set it to use the URL path require_once('http://10.0.0.1/themes/default/layouts/layout001.php'); it works, any ideas guys??
  21. if I was th put the require_once straight in index.php all works well but as soon as it is placed in the function the errors appear. I have tried require_once('../themes/default/layouts/layout001.php');
×
×
  • 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.