[ale] PHP question

Christopher Bergeron christopher at bergeron.com
Sat Nov 24 17:43:01 EST 2001


I don't think PHP has a RIGHT function.  But I may be mistaken.

-CB

-----Original Message-----
From: mebarker [mailto:mebarker]On Behalf Of Michael Barker
Sent: Wednesday, November 21, 2001 5:03 PM
To: scottb at pixel-group.com
Cc: ale at ale.org
Subject: Re: [ale] PHP question


scottb at pixel-group.com wrote:
>
> I am new to php I usually use asp but I am trying to port over is am
triong
> to use an " if then " how do I go about doing that in php here are my
> samples
>
////////////////////////asp/////////////////////////////////////////////////
> /

>             if TitlePos then
>                 Title = Right(CurLine, Len(CurLine) - TitlePos - 6)
>                 'Title = Right(CurLine, Len(CurLine))
>                 Title = Left(Title, InStr(LCaseLine, "</title>"))
>             end if

I dont know what you're doing in asp but if you put the equivalent php
in the following
statement structure it should work.

/////////////////////////php/////////////////////////////////////////

<?

	if (test) {
		do something if;
	} elseif (test) {
		do something if else;
	} else {
		do something else;
	}

?>

<?

	if (TitlePos <!-- equiv php -->) {
		<!-- equiv php -->
		Title = Right(CurLine, Len(CurLine) - TitlePos - 6)
                Title = Right(CurLine, Len(CurLine))
                Title = Left(Title, InStr(LCaseLine, "</title>"))
		<!-- equiv php -->
	}

?>

-Michael

---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be
sent to listmaster at ale dot org.



---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be 
sent to listmaster at ale dot org.






More information about the Ale mailing list