|
I personally use the following method for all my sites. It has grown a little bit from using prefixed $_GET variables to using mod__rewrite but i have had these basics for a couple of years now.
.htaccess:
RewriteEngine On RewriteRule ^includes/ - [L]...
Started by SchizoDuckie on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Getting into config file level stuff it really all depends on... .
If you use a prefab content management then you need to do less than if you mostly roll your own.
It all depends on how you develop...
And in a reasonable path.
|
|
I'm working with logging in PHP with Pear , and I get into a standard problem: can I use file-based logging when the DB is not available? I don't mind if it's slow due to concurrency issues, but it cannot fail to work due to multiple, simultaneous hits...
Started by yar on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
You can pass an existing database object into the singleton method of Log - if you don't have a database you can revert to alternative logging methods (or good old user_error())
require_once 'DB.php if you can't connect to ....
|
|
How programming job offers have you turned down? What is the ratio of accepted to declined?
As a programmer to be highly effective is difficult. We even have the Joel test to determine if a workplace is suitable. Have you turned down work that you don...
Started by Brian G on
, 9 posts
by 9 people.
Answer Snippets (Read the full thread at stackoverflow):
I had an internship during....
I've never turned one down.
In my last search I turned down one and was going to accept another (thought I was going to get it) but got turned down at the last minute.
Two out of six if memory serves.
|
Ask your Facebook Friends
|
Answer Snippets (Read the full thread at shinraonline):
I know you are semi-proficient at immediately ripping off SA from way back when but this is kind of sad Ape Fist I get the feeling....
I like how you cant edit thread titles thats cool i meant to say 'dont' in place of the first down.
|
|
How do you log a event if the program process is halted or when the processing computer is down?
I'm using Microsoft Enterprise library to do all my logging but I'm not sure how to log the above situation.
Started by Jack on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
If you are....
The best you can do is an external monitor program, but that can't really tell much about what happened unless you litter your code with "twitter"-style options here.
There is nothing to do the logging.
You can't.
|
|
I know this is a similar question to one already asked, but I was hoping for a different answers to a problem. I have a form where you can upload new articles to a database all fine works ace, wonderful, brill. The form uses a drop down menu for the type...
Started by Cool Hand Luke UK on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
You....
Then you can load the drop-down from the table, and just store a reference to the article type ID as you'd be doing the lookup on ID.
Sounds like you want to put the article types in a table or something along those lines.
|
|
I am trying to change the text inside a div based on how far down a page you have scrolled. I've been tinkering with jQuery's scrollTop and document height but have so far failed to produce the desired results.
How would I get the position of an element...
Started by Cawlin on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Here is the code modified for....
You can change this to achieve what you want, as the idea is the same.
In this example there is a div that is shown until you scroll to a certain element in the page at which point the div is hidden.
|
|
Someone from Microsoft told me today that you can always shrink down a partition to the most it can ( Update : by using the Win7 or Vista disk management tool) -- for example, when there are 120GB of free space on C:, then you can for sure shrink it by...
Started by Jian Lin on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at superuser):
There are temp files created at startup, you'd get disk write errors because of insufficient... .
Sector number x, then you can only shrink the partition down to x sectors, no matter even if allYou can, but you probably wouldn't be able to boot.
|
|
Hey, I've built a project over the course of a year. I've put in a lot of hours into it, and it has come out great. A bunch of people use it, and a bunch of people write plugins for it. However, I have since moved on to different languages, different ...
Started by Majd Taby on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Have you thought about open sourcing it so the community of users could continue....
Close down the project, you will make a lot of people unhappy with you who are currently happyWhen you don't want to work on it anymore.
|
|
I'm just wondering if you guys have ever had a situation where you were offered a web development project which you turned down because you felt it was unethical or morally questionable.
i've only had this once. i was offered a contract to develop a website...
Started by louism on
, 18 posts
by 18 people.
Answer Snippets (Read the full thread at stackoverflow):
I would not accept any ....
I have turned down opportunities to work where I felt it is actually easy to turn down things you find morally objectionable, it might be interesting to see.
And what you define as your principles.
|