Does anyone have a PHP function that includes the "www" if it exists?
I need to check for the WWW but all current functions seem to omit the "www" regardless of whether it's there.
Thanks for the help.
Search found 7 matches
- Fri Nov 13, 2009 1:45 pm
- Forum: PHP - Code
- Topic: Function to get URL, but maintains the "www"
- Replies: 1
- Views: 313
- Fri Aug 21, 2009 1:50 pm
- Forum: PHP - Code
- Topic: Mod Rewrite with Question Mark
- Replies: 4
- Views: 253
Re: Mod Rewrite with Question Mark
I needed to include the hyphen so that argument can contain numbers, letters and hyphen. That part works. It's just the question mark part that has issues.
- Fri Aug 21, 2009 12:19 pm
- Forum: PHP - Code
- Topic: Mod Rewrite with Question Mark
- Replies: 4
- Views: 253
Mod Rewrite with Question Mark
Hi, I'm trying to do a redirect with Mod Rewrite in .htaccess: RewriteRule ^folder/([0-9]+)-([a-zA-Z0-9\-]+)\?(.*) folder/page.php?id=$1&shortname=$2&$3 [L] So http://mydomain.com/folder/1-word?status=success should rewrite to http://mydomain.com/folder/page.php?id=1&shortname=word&s...
- Wed Oct 24, 2007 3:33 pm
- Forum: PHP - Code
- Topic: CHMOD to protect web files from direct access?
- Replies: 17
- Views: 2689
- Wed Oct 24, 2007 10:03 am
- Forum: PHP - Code
- Topic: CHMOD to protect web files from direct access?
- Replies: 17
- Views: 2689
- Mon Oct 22, 2007 8:37 am
- Forum: PHP - Code
- Topic: CHMOD to protect web files from direct access?
- Replies: 17
- Views: 2689
- Thu Oct 18, 2007 9:55 am
- Forum: PHP - Code
- Topic: CHMOD to protect web files from direct access?
- Replies: 17
- Views: 2689
CHMOD to protect web files from direct access?
Is it possible to use CHMOD permissions to prevent web users from directly accessing files (like videos and images) but still allow your HTML/PHP pages to access them and serve them up? (Not using a script, just still using <img src="...">) So the files would be in a web-accessible path (p...