AyKay47
-
Posts
3,281 -
Joined
-
Last visited
-
Days Won
1
Posts posted by AyKay47
-
-
re-read requinix post, he gives an answer to this.
For every API call to do URL rewriting on, add it to that third Cond separated by |s. LikeCode: [select]
^/(foo|bar|baz|whatever)\?
-
root dir is fine,
requinix rewriteCond was an example, RewriteCond %{REQUEST_URI} ^/(get_categories|...)\?
It was not meant to be copied verbatim, if you do not have any other conditions to rewrite, leave it as get_categories instead of (get_categories|...)
remove the extra newlines in the .htaccess, they should not be there.
you have conflicting rewriterules as well, quite frankly the one you added makes no sense to me as to why it is there, use the rewriterule that requinix provided.
-
Hi this doesn't seem to be working?
should, can you post the code that you are using please.
-
$percent = ($connected / $configured) * 100;
-
Hi,
Managed to solve it,
I changed it to:
RewriteRule ^verify/([a-z0-9]+)?$ user-verify.php?key=$1 [NC,L]
and did not add the:
RewriteCond %{ENV:x} !yes
Thanks AyKay47, much appreciated, without your example i could not have sorted it, much appreciated.
Thanks
phpfan
The environment variable is in place to make sure multiple rewrites do not happen.
-
the top 5 rules might be rewritten several time unexpectedly.
Be careful when using the dot meta-character in rewrite rules, as it matches any character.
I'll give you a hint, you will want to use the ^$ meta-characters to distinguish the beginning and end of the pattern.
-
Perhaps something like this.
RewriteEngine On RewriteCond %{ENV:x} !yes RewriteRule ^verify/([a-z0-9]+)?$ user-verify.php?key=$1 [NC, E=x:yes]
-
The notices indicate that the form has not been submitted yet and therefore the $_GET data does not exist most likely.
You should be checking for the indices existence first by using isset.
if(isset($_GET['userlogin'])) { //true block }
Never use $_GET when passing sensitive data.
-
that's terribly inefficient.
And that's why it's important to post "solutions".
nah
-
The HTML5 <video> supports MP4, WebM, and Ogg video formats.
I believe that youtube uses the FLV format.
-
One of the included files is outputting data to the client before attempting to modify the headers.
This is not allowed.
-
US is a load of BS... but that's a different story.
heh.. well i'm referring to the U.S when I make that statement.
Not sure what hoops you have to go through in other places.
-
Someone could easily remove any license/copyright and tweak the code. That doesn't make it any more legal to do so.
Valid point, I never said it was right or legal.
But as you said, you can't patent code and it's easy to modify someone else's code and call it your own without any repercussions. *sigh*
-
I just showed you what you need to add to your stylesheet, search google for CSS reset as well.
-
it's a plugin basically you can tweak it however you want, add your own classes etc.
-
this comes from the browser default stylesheet, which you should be overriding with a CSS reset:
* { padding: 0; margin: 0; etc... }
-
someone could easily remove that comment and tweak the code, this kind of stuff is tricky to get into.
-
remove the top margin from the header contained in div#adbar
-
-
have you tried SELECT DISTINCT *
-
-
you have specified an alias for the tbl resource ( l ), use that.
l.Resource_ID
-
use this in php
$email( is a variable contain value of email field)
if(!$email == "" && (!strstr($email,"@") || !strstr($email,".")))
{
echo "<h2>Use Back - Enter valid e-mail</h2>\n";
$badinput = "<h2> NOT submitted</h2>\n";
echo $badinput;
}
this is a poor check, just use filter_var with the FILTER_VALIDATE_EMAIL flag.
-
yah that's what I was thinking.
In the WHERE clause you specify Resource_ID without a table identifier attached.
A table identifier is needed from the table it's coming from.
Help with RewriteRule ?
in Apache HTTP Server
Posted
you're right in this case it's not needed. Just a habit.