Search found 6 matches
- Wed Oct 22, 2008 2:49 pm
- Forum: Regex
- Topic: Using RegEx to rewrite/"pretty" URLs
- Replies: 0
- Views: 774
Using RegEx to rewrite/"pretty" URLs
I'm trying to make some "pretty" URLs on a website, but ehh....what I've got isn't working. The site URL could be anything from http://vitanova.charlesrubinoff.com/index.php?section=residential to http://vitanova.charlesrubinoff.com/index.php?section=residential&category=bathrooms&...
- Mon Oct 13, 2008 3:24 am
- Forum: PHP - Code
- Topic: Adding a sort order to a readdir script
- Replies: 4
- Views: 585
Re: Adding a sort order to a readdir script
kpowell, that did it...thanks!
- Fri Oct 10, 2008 8:19 pm
- Forum: PHP - Code
- Topic: Adding a sort order to a readdir script
- Replies: 4
- Views: 585
Adding a sort order to a readdir script
I've got this script <?php $handle = opendir ('./'); while (false !== ($file = readdir($handle))) { echo '<img src="'.$file.'"/><br />'.$file.'<br />'; } ?> But it doesn't spit out the images in order of filename. How can I add this? I know it involves an array, b...
- Tue Sep 30, 2008 4:39 pm
- Forum: PHP - Code
- Topic: Passing PHP variables
- Replies: 3
- Views: 171
Re: Passing PHP variables
I've thought about making the .css file a .php file. So then I'd just put all the code from big_pic_image.php into the css-php file, and that'd be it? The jquery solution sounds interesting, but don't know where to even start with that, and kinda need this sorted out by tomorrow. I thought there wou...
- Tue Sep 30, 2008 4:25 pm
- Forum: PHP - Code
- Topic: Passing PHP variables
- Replies: 3
- Views: 171
Passing PHP variables
I've got an external file that sets a DIV background as background: url('http://vitanova.charlesrubinoff.com/_other/includes/big_pic_image.php') center center;} And the code in that php file is this: <?php if (!$_GET[image]) { $image = "http://vitanova.charlesrubinoff.com/sectio...
- Mon Apr 28, 2008 12:48 pm
- Forum: Regex
- Topic: Mixing Pretty and Ugly URLs
- Replies: 0
- Views: 630
Mixing Pretty and Ugly URLs
alrighty, got a bit of regex stuff i'm stumped on... i've got pretty urls working on my site to get something like http://charlesrubinoff.com/work/?type=print&Id=yota_mag to display as http://charlesrubinoff.com/work/print/yota_mag. that works beautifully. the .htaccess regex i'm using is: Rewri...