-
Fluent in PHP
-
We can't really support creating separate lsphp configurations for different customers due to the number of virtualhosts on these systems. I would imagine a solution that uses PHP directly should be fine until LiteSpeed gets around to implementing SetEnv in their Apache configuration directive handler.
-
Junior Member
You can use mod_rewrite to set environment variables.
RewriteRule ^(.*) /path/to/file/$1 [E=VAR:VAL]
RewriteRule ^(.*) /hsphere/local/home/USERNAME/DOMAIN/$1 [E=Name:Magnify]
Something similar to that, you'd make it match every file, and return that file.
If your using steadfast's shared hosting, then you'd replace username, and domain to your username, and domain name.
[E=Name:Magnify]
Would set the 'Name' variable to 'Magnify'
You'll probally have to play around with, and read up on mod_rewrite to get it to work correctly, also this approach adds more overhead than using SetEnv.
-
Junior Member
Any reason you can't simply store the variable in a php file and include it whenever its needed?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
Bookmarks