Est. 2003
Home Help Login Register
News: Welcome to ZboX Webhosting.
10 Megs

10 MB Disk
1 GB Transfer
$10.00 per year
25 Megs

25 MB Disk
2 GB Transfer
$25.00 per year
50 Megs

50 MB Disk
3 GB Transfer
$50.00 per year
75 Megs

75 MB Disk
4 GB Transfer
$75.00 per year
500 Megs

500 MB Disk
10 GB Trans
$100.00 yr.

+  ZboX Webhosting Est. 2003. Now in our Fourth year!
|-+  Help!
| |-+  Problems and/or Questions
| | |-+  .htaccess question.
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: .htaccess question.  (Read 1008 times)
dlilahl
Mega ZboXian
***
Offline Offline

Posts: 97



.htaccess question.
« on: April 16, 2007, 11:19:38 AM »

Hi..
A while back, Bert, you had posted information on the many uses of .htaccess.  I cannot find that and would you please post it again?

I use it for php5, and for security but also you had other information, too. Thanks,

lilaŠ

Logged
ZboX
Founder
Administrator
Posting Maniac
*****
Offline Offline

Posts: 1486


What 'ya got there??


Re: .htaccess question.
« Reply #1 on: April 16, 2007, 04:52:05 PM »

Hi..
A while back, Bert, you had posted information on the many uses of .htaccess.  I cannot find that and would you please post it again?

I use it for php5, and for security but also you had other information, too. Thanks,

lilaŠ



Hi Lila,
You know I remember the post you are talking about. But I can't find it either! I'm not sure what happened to it as this forum has been through several changes since it was posted. But here is a Google search I did which might help:

http://www.google.com/search?num=100&hl=en&safe=off&client=firefox-a&rls=org.mozilla:en-US:official&hs=LMv&sa=X&oi=spell&resnum=0&ct=result&cd=1&q=.htaccess+for+beginners&spell=1

There is a LOT of info in that search. If you have something specific in mind just post in this thread and I'll give it a go.

~;-)

Bert
Logged

Homepage / Community: http://zboxhosting.com

Contact: sales@zboxhosting.com
"When all is said and done, there's nothing left to say or do!"
daysjourney
Newbie
*
Offline Offline

Posts: 2



Re: .htaccess question.
« Reply #2 on: April 16, 2007, 06:42:30 PM »

Hi Everybody,

This is a link that Bert posted at one time that I have found helpful.

http://wsabstract.com/howto/htaccess.shtml


Lanny



Logged
ZboX
Founder
Administrator
Posting Maniac
*****
Offline Offline

Posts: 1486


What 'ya got there??


Re: .htaccess question.
« Reply #3 on: April 16, 2007, 06:53:01 PM »

Hi Everybody,

This is a link that Bert posted at one time that I have found helpful.

http://wsabstract.com/howto/htaccess.shtml


Lanny





Well done Lanny. Two posts and both are jewels.

~;-)

Bert
Logged

Homepage / Community: http://zboxhosting.com

Contact: sales@zboxhosting.com
"When all is said and done, there's nothing left to say or do!"
MisRox
Founder
Administrator
Posting Maniac
*****
Offline Offline

Posts: 232



Re: .htaccess question.
« Reply #4 on: April 16, 2007, 08:22:58 PM »

WhoooHooo, Lanny! Good to see you, are paying attention...<G> specool

...;-) Rox


Hi Everybody,

This is a link that Bert posted at one time that I have found helpful.

http://wsabstract.com/howto/htaccess.shtml


Lanny




Logged

Visit Me at:
dlilahl
Mega ZboXian
***
Offline Offline

Posts: 97



Re: .htaccess question.
« Reply #5 on: April 16, 2007, 08:31:04 PM »

Thanks Lanny, Bert for your sites with .htaccess.  Possibly  I was thinking more in terms of command lines?  Not a redirect, but random or some way to use it that seemed unusal at the time since I had not studied much on .htaccess. Could it be used something like a copyright signature that would be used in each file? Just guessing here on ideas in not using SSI instead.
Wish I had kept that. (gr)


Read in the one Lanny posted about servers not having the function SSI..it could be used in a htaccess. However think these should be posted for Bert, or host, to say it's ok to use. And, we have access to SSI here. 

If anyone reading these post should remember another method of using it, please post. Most of the uses on the web are for blocking, redirect, etc.

tks,
lilaŠ
Logged
ZboX
Founder
Administrator
Posting Maniac
*****
Offline Offline

Posts: 1486


What 'ya got there??


Re: .htaccess question.
« Reply #6 on: April 16, 2007, 08:51:52 PM »

Thanks Lanny, Bert for your sites with .htaccess.  Possibly  I was thinking more in terms of command lines?  Not a redirect, but random or some way to use it that seemed unusal at the time since I had not studied much on .htaccess. Could it be used something like a copyright signature that would be used in each file? Just guessing here on ideas in not using SSI instead.
Wish I had kept that. (gr)


Read in the one Lanny posted about servers not having the function SSI..it could be used in a htaccess. However think these should be posted for Bert, or host, to say it's ok to use. And, we have access to SSI here. 

If anyone reading these post should remember another method of using it, please post. Most of the uses on the web are for blocking, redirect, etc.

tks,
lilaŠ


Hi Lila,
What you are asking could be done either by an ssi, php include, or a css stylesheet. Of course the css stylesheet could be iffy on Webtv. So let us know which way you would like to go and we'll try our derndest to get the coding for you.

~;-)

Bert
Logged

Homepage / Community: http://zboxhosting.com

Contact: sales@zboxhosting.com
"When all is said and done, there's nothing left to say or do!"
dlilahl
Mega ZboXian
***
Offline Offline

Posts: 97



Re: .htaccess question.
« Reply #7 on: April 16, 2007, 08:59:22 PM »


Thanks Bert.  Might post CSS examples as the SSI, and PHP I can handle ok.  headbang

CSS will go with my stuides of PHP, too.  Tks, lila
 

Logged
ZboX
Founder
Administrator
Posting Maniac
*****
Offline Offline

Posts: 1486


What 'ya got there??


Re: .htaccess question.
« Reply #8 on: April 16, 2007, 09:17:42 PM »


Thanks Bert.  Might post CSS examples as the SSI, and PHP I can handle ok.  headbang

CSS will go with my stuides of PHP, too.  Tks, lila
 



Ok Lila. You just need examples of including via css of a header or footer?

Bert
Logged

Homepage / Community: http://zboxhosting.com

Contact: sales@zboxhosting.com
"When all is said and done, there's nothing left to say or do!"
dlilahl
Mega ZboXian
***
Offline Offline

Posts: 97



Re: .htaccess question.
« Reply #9 on: April 16, 2007, 10:13:24 PM »

Header would be fine, Bert. 
Thank you.

Had this script in my cache so dropped it off as it is a neat random php for changing colors of any image.  It is fun to use.

lila



Code:
<<>?php
function make_seed() {
    list($usec, $sec) = explode(' ', microtime());
    return (float) $sec + ((float) $usec * 100000);
}
$ar=array(0,0,0,0);
srand(make_seed());
$onetwoorthree=rand(0,2);
$first=rand(0,100)/100;
$second=1-$first;
$ar[$onetwoorthree]=$first;
$ar[$onetwoorthree+1]=$second;
if ($onetwoorthree+1>2)
        $ar[0]=$second;
//echo " ".$ar[0]." ".$ar[1]." ".$ar[2];
$im = imagecreatefromjpeg("http://yourdomain/image here") or die ("Cannot Initialize new GD image stream");
header ("Content-type: image/jpeg");
error_reporting(0);
$height=imagesy($im);
$width=imagesx($im);
$im2=imagecreatetruecolor($width,$height);
for ($x=0;$x<$width;$x++){
        for ($y=0;$y<$height;$y++){
                $rgb = ImageColorAt($im, $x, $y);
                $r = ($rgb >> 16) & 0xFF;
                $g = ($rgb >> 8) & 0xFF;
                $b = $rgb & 0xFF;

                $r2=$r;
                $g2=$g;
                $b2=$b;

                $r=$r2*$ar[0]+$g2*$ar[1]+$b2*$ar[2];
                $g=$r2*$ar[2]+$g2*$ar[0]+$b2*$ar[1];
                $b=$r2*$ar[1]+$g2*$ar[2]+$b2*$ar[0];

                $color = imagecolorallocate($im2, $r, $g, $b);
imagesetpixel($im2,$x,$y,$color);
        }
}
imagejpeg($im2,"",80);
?<>>

Here is a nice rose to beam if you'd like to use it.

reload each time:

http://dlilahl.zboxhosting.com/PHP.TOOLS/ROSE.jpg


http://dlilahl.zboxhosting.com/PHP.TOOLS/1hue-shift2.php

« Last Edit: April 16, 2007, 10:32:35 PM by dlilahl » Logged
ZboX
Founder
Administrator
Posting Maniac
*****
Offline Offline

Posts: 1486


What 'ya got there??


Re: .htaccess question.
« Reply #10 on: April 17, 2007, 08:45:33 AM »

Hi Lila,
Well upon further research it seems including via CSS is not an attractive way of doing it. And I'm not sure how familiar you are with CSS. There would be issues with browser compatibility etc. Frankly the easiest way would be to use SSI. However I did stumble over a neat way to import a style sheet into a page:

<STYLE TYPE="text/css">
@import url("generic.css")
</STYLE>

Where "generic.css" is the actual stylesheet and is in the same directory as the page you would like to import it into.

~;-)

Bert
Logged

Homepage / Community: http://zboxhosting.com

Contact: sales@zboxhosting.com
"When all is said and done, there's nothing left to say or do!"
dlilahl
Mega ZboXian
***
Offline Offline

Posts: 97



Re: .htaccess question.
« Reply #11 on: April 17, 2007, 10:42:55 AM »


THANKS...will run the codes to see what happens. gr

To tie this into .htaccess in a command line would not be better as I read the information sites you both have given. I just couldn't remember your post. lol

The SSI and php include is the better way for command lines as I understand it.  What I mean by command lines is using the same as SSI header or php include header that adds a code of script just as your .htaccess in using php4 or 5.

Thanks and will later let you know how your css worked out.

lilaŠ 
 


Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  


Login with username, password and session length

ZboX Webhosting Est. 2003. Now in our Fourth year! | Powered by SMF 1.0.10.
© 2005, Simple Machines LLC. All Rights Reserved.
Page created in 0.12 seconds with 21 queries.