Unless there's some JS that adds CSS classes based on the URL, like Modernizr does based on browser features.You can't have CSS target a URL.
Search found 5115 matches
- Wed Oct 18, 2017 7:02 pm
- Forum: HTML, CSS and other UI Design Technologies
- Topic: Can you stop a CSS class on a particular URL?
- Replies: 3
- Views: 12446
Re: Can you stop a CSS class on a particular URL?
- Wed Oct 18, 2017 6:53 pm
- Forum: PHP - Theory and Design
- Topic: What would be the best way to get off of XAMPP?
- Replies: 10
- Views: 24032
Re: What would be the best way to get off of XAMPP?
This sounds like the perfect solution for something like Vagrant. How would that work if you need to run several projects at the same time (like thinsoldier needs), network setup wise? Would projectA.xamp and projectB.xamp point to different IPs, where different vagrant boxes would be running? Are ...
- Wed Jan 25, 2017 5:50 pm
- Forum: HTML, CSS and other UI Design Technologies
- Topic: How do I adjust this Plugins color? It's not in CSS...
- Replies: 5
- Views: 6620
Re: How do I adjust this Plugins color? It's not in CSS...
We've had problems with PHP upgrade.
- Mon Nov 28, 2016 7:48 pm
- Forum: PHP - Code
- Topic: analyze PHP 7 Segfaults
- Replies: 15
- Views: 13879
Re: analyze PHP 7 Segfaults
Getting VM stacktrace is rather easy: you copy .gdbinit from php-src to your home folder, then run the gdb with the core file you have and execute 'zbacktrace' function/macro. There's a lot more useful macros in that file as well.
- Fri Sep 02, 2016 5:53 pm
- Forum: General Discussion
- Topic: Amazon Web Services - any good?
- Replies: 24
- Views: 17900
Re: Amazon Web Services - any good?
No, with aws you're basically managing you own (virtual) servers/networks/etc.
- Tue Feb 09, 2016 7:26 pm
- Forum: Databases
- Topic: Numerics converted to a string with PHP and PDO to MYSQL
- Replies: 6
- Views: 8249
Re: Numerics converted to a string with PHP and PDO to MYSQL
Nope that's a new one on me and seems to work. Any downside in terms of performance? There's additional roundtrip to server when emulate_prepares is off. Basically it sends the query (without parameters) to server first, obtains statement parsing result (either success or fail) and if prepare was s...
- Thu Jan 28, 2016 4:57 pm
- Forum: PHP - Code
- Topic: Browser not accepting "+" in the title in the URL
- Replies: 32
- Views: 6700
- Thu Jan 28, 2016 3:50 pm
- Forum: PHP - Code
- Topic: Browser not accepting "+" in the title in the URL
- Replies: 32
- Views: 6700
Re: Browser not accepting "+" in the title in the URL
Maybe it's this?? As this is not on the LIVE version. If it is this, how can I get around the problem? Quite likely. Imagine that plus sign gets converted into space somewhere. This script checks the title, finds that it should contain plus and not the space it got, and issues 301 redirect. Browser...
- Thu Jan 28, 2016 2:16 pm
- Forum: PHP - Code
- Topic: Browser not accepting "+" in the title in the URL
- Replies: 32
- Views: 6700
Re: Browser not accepting "+" in the title in the URL
There shouldn't be any 30x responses. The fact that there are external redirects suggests there's something else at play. You may try adding B (escape special chars) and L (stop processing) flags to your rules, but it's a stab in the dark. You shouldn't have used reserved characters in urls in the f...
- Thu Jan 28, 2016 1:08 pm
- Forum: PHP - Code
- Topic: Browser not accepting "+" in the title in the URL
- Replies: 32
- Views: 6700
Re: Browser not accepting "+" in the title in the URL
So it appears there's a redirect loop. I wonder if you actually need to do external redirect (301/302 response sent to browser). From my experience, it's usually internal redirect (page served to browser without changing the url in the address bar) that people want.
- Thu Jan 28, 2016 11:10 am
- Forum: PHP - Code
- Topic: Browser not accepting "+" in the title in the URL
- Replies: 32
- Views: 6700
Re: Browser not accepting "+" in the title in the URL
Wasn't plus sign used as a substitution for space character? What's the redirect url your browser is getting?
- Wed Jan 27, 2016 6:08 pm
- Forum: PHP - Code
- Topic: Protecting my $_GET URLs?
- Replies: 7
- Views: 2057
Re: Protecting my $_GET URLs?
If the only concern here is that value should originate from your system you could simply sign it with something like hash_hmac.
- Sun Jan 17, 2016 12:11 pm
- Forum: PHP - Code
- Topic: issue with inserting data that has hyphen in
- Replies: 12
- Views: 2963
- Sun Jan 17, 2016 1:16 am
- Forum: PHP - Code
- Topic: issue with inserting data that has hyphen in
- Replies: 12
- Views: 2963
Re: issue with inserting data that has hyphen in
Has that solved your problem?
- Sun Jan 17, 2016 1:11 am
- Forum: PHP - Code
- Topic: How do I extract the URL after the domain name?
- Replies: 24
- Views: 5756
Re: How do I extract the URL after the domain name?
And for arbitrary url you could've used parse_url():
Code: Select all
$parsed = parse_url('http://www.thisurl.co.uk/fred/bloggs/123');
var_dump($parsed['path'] . '?' . $parsed['query'] . '#' . $parsed['fragment']); // $parsed['path'] may be enough, depending on your requirements