dreamwest
Members-
Posts
1,223 -
Joined
-
Last visited
Never
Everything posted by dreamwest
-
mod_rewrite works but not with the "-" sign
dreamwest replied to redknight's topic in Apache HTTP Server
/$1/web.php Cant be dynamic, its looking for http://site.com/???/web.php Does the $1 directory exist? -
Now this is impressive and fast http://www.bing.com I would love to know how they get results an thier pages to load instantly
-
Securely redirecting to another directory via mod_rewrite
dreamwest replied to HaLo2FrEeEk's topic in Apache HTTP Server
Check if your server supports wildcard subdomains, this is one way of doing it http://anything.site.com If it does you should see http://site.com -
[SOLVED] Using info after domain in address bar
dreamwest replied to wwfc_barmy_army's topic in Apache HTTP Server
RewriteRule ^([^/\.]+)?/?$ index.php?domain=$1 [L,QSA] -
<form method='post' name='form1' action='index.php'> <input type="hidden" value="yes" name="signup"> <input type="hidden" value="adduser" name="action"> </form>
-
[SOLVED] Using info after domain in address bar
dreamwest replied to wwfc_barmy_army's topic in Apache HTTP Server
htaccess url rewrite -
No quotes needed in header if theres already double quotes header("Location: yahoo.com/$search/title/$page");
-
Persons ip $_SERVER['REMOTE_ADDR'] So the user cant edit or see the ip being posted <input type="hidden" Either use $_REQUEST OR $_POST to get the value of input field with name "no" $_REQUEST['no']
-
What database are you using? Most likely mysql $result = mysql_query($query); pg_query() isnt a mysql function
-
<form name="ip" action="" method="POST"> <input type="hidden" name="yes" value="<?php $_SERVER['REMOTE_ADDR']?>"> <input style=" margin-right: 5px; " type="submit" value="yes"> </form> <form name="ip_no" action="" method="POST"> <input type="hidden" name="no" value="<?php $_SERVER['REMOTE_ADDR']?>"> <input style=" margin-right: 5px; " type="submit" value="no"> </form> <?php if($_REQUEST['yes']){ //update database with yes ips }elseif($_REQUEST['no']){ //update database with no ips } ?>
-
How can i post an option by just using select: <select onChange"post this option"> <option value="">select</option> <option value="Option1" >Option1</option> <option value="Option2" >Option2</option> <option value="Option3" >Option3</option> <option value="Option4" >Option4</option> </select>
-
You wont need to - after all its just including it. Just think of it as one page not 2 $query = //query include('parser.php'); echo $rsAnswer[$i]->answer_text;
-
Itll cache any file, but not queries from a database
-
I still need the page to be assessable through scripts This is ok to access page <object width="425" height="350" type="application/x-shockwave-flash" data="http://www.site.com/player/player.swf"><param name="movie" value="http://www.site.com/player/player.swf"><param name="flashvars" value="&file=http://www.site.com/video_embed.php?id=31731"/></object>
-
I have a php page which echos a xml playlist. How can i stop ppl from viewing a php page, by opening it up in their browser http://www.site.com/video_embed.php?id=29042
-
Yes. if ($results){ //theres results from query } OR if (! $results){ //no results from query }
-
[SOLVED] How do I write this If Statement?
dreamwest replied to webref.eu's topic in PHP Coding Help
if ($_POST['processform'] == 1 || isset($_COOKIE['cookname'])) -
It wont screw anything up. Add it to .htaccess file on your root directory.
-
Thanks. I gotta learn preg match one day
-
Thanks for your input... notice how I was asking for a good caching method in this situation... @dreamwest: what does that do etc? Could you explain it? It caches everything with the filesmatch extension. max-age is in seconds
-
<FilesMatch "\.(css|js|swf|flv)$"> Header set Cache-Control "max-age=172800, private, proxy-revalidate" </FilesMatch>
-
How can i check if a string of numbers is numeric, the example below is apparently still not numeric $string = 13530 21333 16945 22819 24170 31196 19209;
-
Your right , i looked into it, theres a lot less work too Thanks for the example...works sweetly
-
Sweet! Thanks I found another way too, would this way cause any problems $query = "SELECT * FROM table WHERE (id=4 || id=125) and approve=1 ";