• Welcome to Valhalla Legends Archive.
 

Fusebox with PHP - making it not suck as much

Started by Banana fanna fo fanna, August 06, 2004, 11:24 PM

Previous topic - Next topic

Banana fanna fo fanna

http://php-fusebox.sourceforge.net/

Once you get used to it, you'll find that, althoguh PHP still sucks, it's not as bad.

Banana fanna fo fanna


Maddox

asdf.

Banana fanna fo fanna

you can't do
if (strpos(haystack, needle))

you need to do

if (! (strpos(haystack, needle) == false))

Maddox

#4
It works for me under PHP 4.3.8 and 5.0.0.
asdf.

Banana fanna fo fanna


Maddox

Try upgrading? 4.3.9RC1 was just released today.
asdf.

Banana fanna fo fanna

Alas, I cannot, for I am stuck with what my clients hosting has.

Undeference

#8
Quote from: $t0rm on August 10, 2004, 11:28 AM
you can't do
if (strpos(haystack, needle))

you need to do

if (! (strpos(haystack, needle) == false))
Tryif (strpos (haystack, needle) === false)
This is why they created the === operator.
But you are right about PHP sucking... use instead preg_match. You might have better luck. Or just use Perl (you will never have the stupid problems).
Quote

Banana fanna fo fanna

I'd be using Python or CF, except hosting situation has forced PHP upon me.