Jump to content

scottf

Members
  • Content Count

    6
  • Joined

  • Last visited

Community Reputation

2 Neutral

About scottf

  • Rank
    Newbie
  1. This is my htaccess # BEGIN WordPress<IfModule mod_rewrite.c>RewriteEngine OnRewriteBase /RewriteRule ^index\.php$ - [L]RewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-dRewriteRule . /index.php [L]</IfModule># END WordPress
  2. I got a gig helping to get this site running on wordpress, and I cannot figure out why most pages redirect to the homepage. The htaccess doesn't have anything but wordpress stuff in it. This is the site:http://capecodwithinreach.com/ Notice, if you type anything after that, like the pages i am trying to create, it redirects home.http://capecodwithin...com/newpage.phphttp://capecodwithin...still-redirects However, things like:http://capecodwithin...om/wp-login.phpstill go to the right place. Why is this, and how can I stop it? I can't create any pages! Thanks!
  3. My goal is to send an email at the time indicated below. (Every weds at 12). Here is my current code: <?php date_default_timezone_set('MST');$file = $_SERVER['DOCUMENT_ROOT'] . "/entries.txt"; //Path to your *.txt file$contents = file($file);$string = implode("", $contents); $to = "april@coastalmountaincreative.com";$subject = "My subject";$txt = $string;$header = "From: scott@avvecc.com"; $d = date( "w");$h = date( "G"); if ($d == 3) {if ($h == 12) { mail($to,$subject,$txt,$header);file_put_contents("entries.txt", "");}} ?> It works great, however if no one visits the page at 12 that day it never gets sent. How can I make it so it sends no matter what? Thanks.
  4. So the user enters a number. the number is stored as the javascript value "fname". When the user goes to a new page, i want that number to still display, but it does not. how can i push that number to the next messages? I looked at the php get method, but i don't see how i could automatically set the entry. So i just need to get this number to the next page. I don't really want to use cookies, i want to use the URL.
  5. scottf

    Iframe Fun

    I am loading a few sites in frames, and I notice some use things like <script type="text/javascript">if (top!=self) top.location.replace(location.href);</script> Is there any way to stop this code from executing?
  6. So first my user enters their name. examplevar username = "Scott" So i want this to carry over to the next page. Right now var username is only accessible on this page. Right now, I start on the index.html, user enters name, on welcome.php it says hi scott, then on account.php I want it to say hi scott again, but it says that the value has not been declared. How can i transfer this variable using the URL or a form or something? By the way, welcome.php redirects to account.php, so it needs to be something automatic.
×
×
  • Create New...