No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
The hippest nerd on the scene. Catch me hangin' at the club blowin' the horn. Hear me trackin' in the studio (go buy a record!) Then I go home and trip out on my glowing box picking at code. It's a wild life that may allow one to do whatever one finds…
- Interests
- I'm into tech.I was learning Ruby on Rails but went back to PHP. I found that most of my clients don't…
- PC Specs
- CURRENT:4 GHz Intel Core i7 Mac Pro, 16GB RAM, OSX 10.10.4
14 Posted Topics
Hello, I am trying to remove the www. at the beginning of our domain name via .htaccess. I'm doing it like this: [code]RewriteCond %{HTTP_HOST} ^www\.domain\.com$ [NC] RewriteRule ^(.*)$ http://domain.com/$1 [R,NC][/code] It seems to word wonderfully. I would like to retain the www. when someone accesses the site securely with https. … | |
Re: You could redirect to the login page with a unique param in the redirect URL. This would inform the login page to display the "thank you" pop up message. example: redirect to https://mysite.com/login?thankyou On the login page a conditional would check if the param "thanyou" exists. If so, display the … | |
I have a 20 gig drive in a firewire enclosure. It works. I bought a new 80 gig drive to replace the 20. I put it in the enclosure. OS X 3.4 Server told me that I needed to initialize the new disk. Disk Utility opens up. It sees the … | |
Re: On line 24, if vrule is undefined or null, you return ending the script. In the script where you call seachHttp(), cssresult will, in that instance, not be set with a boolean. Perhaps you would rather have line 24 continue instead. That way, you would finish the for loop and … | |
Re: The script and link calls (`<script src="js/browjs.js"></script>` and `<link rel="stylesheet" type="text/css" href="css/poperi.css">` have nothing to do with php. They have to do with the browser pulling in those relative paths. I believe your public root is "practise". You are including your js and css relative to the calling script (tst.php). … | |
Re: Adding the `border -right` is not what is effecting the height of the `li` tags. The div #top has a defined height of 50px. Everything within that is inheriting that height by having their heights set at "100%". The div #menutop is inheritting that height because it is a div … | |
Re: If you use: [code=php]$_SERVER['DOCUMENT_ROOT'][/code] it will return the complete path to the root of the domain you are at (ie. /hsphere/home/user/domain.com). So the link to your image should be something like: [code]<?php // Create a constant for the document root. define("DOC_ROOT", $_SERVER['DOCUMENT_ROOT']); ?> <img src="<?= DOC_ROOT; ?>/imagefolder/imagename.jpg" width="300px" height="150px" alt="404 … | |
I found this great piece of code for validating URL's. I've been trying to get it to work with preg_match() since eregi() is deprecated with with PHP 5.3: [code=php]// SCHEME $urlregex = "^(https?|ftp)://"; // USER AND PASS (optional) $urlregex .= "([a-z0-9+!*(),;?&=$_.-]+(:[a-z0-9+!*(),;?&=$_.-]+)?@)?"; // HOSTNAME OR IP $urlregex .= "[a-z0-9+$_-]+(.[a-z0-9+$_-]+)*"; // http://x … | |
Re: I use SCPlugin. It works great. Creates a button on your finder window with a drop-down menu of svn options. Also keeps track of files and folders that are being watched by svn by putting little icons next to them in the finder window. I highly recommend it (oh, and … | |
I mostly work with PHP. I am not really a JavaScript guy at all, but in this day and age we all end up working with it a bit. I'm trying to do something that seems like it should be fairly simple. Unfortunately, I am not having any success getting … | |
I've hit a bit of a block and need some help. I have already set up my httpd.conf file to enable Virtual Hosts. I also set up httpd-vhosts.conf with a bunch of vitual hosts. I've been using them and they work fine (this is on my dev machine, not a … | |
Re: In my searches for .htaccess information and security, I found this page: * [URL="http://corz.org/serv/tricks/htaccess2.php"].htaccess tips and tricks: redirecting and rewriting[/URL] I hope this has what you're looking for. Cheers, BigTalk | |
![]() | Re: Check out this previous thread: * [URL="http://www.daniweb.com/forums/thread118890.html"]daniweb.com - Looking to start dedicated server[/URL] There is a link there to this site: * [URL="http://www.boutell.com/newfaq/creating/hostmyown.html"]How do I host my own website at home?[/URL] I myself looked into starting a home server, but decided the economics (time [B]and[/B] money) of it didn't make … |
Hello, I'm a noob with PHP and unversed in Javascript, but I need to implement some Ajax in a page I'm building. I'm using the Scriptaculous libraries. Here's the problem I'm having: I have four different links in the menubar. When I click on the first link, it makes a … |
The End.