User Profile
Collapse
-
Storing fonts on my server
Just a quick question regarding fonts... If I were to build a webpage using a font that some people may not have, is it possible to store that font on my server for the client to use when they visit my page? Or do they have to have the specified font for it to display properly? -
Redirecting subfolder to other URL
Is there any way using either Apache or some other method that I can redirect requests to a specific subfolder to another URL?
For example, when somebody types in http://www.mydomain.co m/email they get redirected automagically to http://www.mydomain.co m/?p=email, or something like that.
I'm sure this is a simple question but I am fairly new to web hosting so I'm not sure how to accomplish this. Thanks in advance to whomever... -
Pseudo-random month based selection
This isn't necessarily specific to PHP, but I am trying to figure out a way to pseudo-randomly generate a number based on the month. To clarify a little, I want the number returned to stay the same for the entire month, and then change to another "random" number for the next month. There would also need to be a ceiling on how big the number could be. I can't think of a way to write this, is there anyone able to help? -
Thanks that helped a ton!!! I had to modify it a little bit it works now! Thanks, you have no idea how happy this makes me!!! :)... -
-
Selecting items from a DB
I need to put together an SQL statement and I can't think of how to make it work properly. The scenario is that I have news items in a database that have a launch time and can optionally have an expire time set. I want to select all records that are above the launch time and below their expire time (if it is set). What I have so far is:
[code=php]
$rightnow = mktime();
sql = "SELECT *
FROM teamshadow_news... -
Selecting records within a date range
I need to put together an SQL statement and I can't think of how to make it work properly. The scenario is that I have news items in a database that have a launch time and can optionally have an expire time set. I want to select all records that are above the launch time and below their expire time (if it is set). What I have so far is:
[PHP]$rightnow = mktime();[/PHP]
[CODE=mysql]SELECT *
FROM teamshadow_news
...
No activity results to display
Show More
Leave a comment: