[ale] PHP question

Michael Barker mbarker68 at home.com
Wed Nov 21 17:03:22 EST 2001


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.






More information about the Ale mailing list