| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| The original NP Emo Kid Join Date: Jan 2005 Location: Plymouth, UK
Posts: 1,693
![]() ![]() ![]() ![]() ![]() ![]() | string checking acting up Hi all basically i am trying to check if a string starts with "<embed" or "<object" and if it doesn't then give an error, i have found out if i do this then it never works: PHP Code:
__________________ Gaming On Linux - Because Linux is Fun! |
| |
| | THREAD STARTER #2 (permalink) |
| The original NP Emo Kid Join Date: Jan 2005 Location: Plymouth, UK
Posts: 1,693
![]() ![]() ![]() ![]() ![]() ![]() | Solved, needed && not ||, thanks got to Mike aka AllDrops.com
__________________ Gaming On Linux - Because Linux is Fun! |
| |
| | #3 (permalink) |
| Domains my Dominion Join Date: Aug 2005 Location: Web 1.0
Posts: 9,552
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Perhaps if would be good to use strtolower or strtoupper to perform a case-insensitive comparison. A regular expression could be used too.
__________________ NameNewsletter.com - free lists of available domain names ZoneFiles.net (beta) - ccTLD and gTLD droplists |
| |
| | THREAD STARTER #4 (permalink) |
| The original NP Emo Kid Join Date: Jan 2005 Location: Plymouth, UK
Posts: 1,693
![]() ![]() ![]() ![]() ![]() ![]() | Yeah i have already been advised to do so
__________________ Gaming On Linux - Because Linux is Fun! |
| |