|
Hi,
I've been writing PHP for a few months now. It was fairly easy to pick up after knowing PERL. My question is this:
In PERL, you can design a static web page with variables such as USERNAME.. and then in your PERL script you can open the static web page into an array and do a search and replace for the variable, USERNAME, and replace USERNAME with let's say the input variable $username.. so it would look something like this:
Example:
open(STATIC, "staticwebpage.htm") || die "Unable to open web page";
@STATICARRAY = <STATIC>;
close(STATIC);
foreach $line (@STATICARRAY) {
$line =~ s/USERNAME/$username/g;
}
then, you know, print out array..
anyways.. is there a way of doing this in PHP.. bringing static pages into and array and search and replacing content with input variables? what would be the most effective way of doing this in PHP?
Warm Regards,
Angus Bay
__________________
Please login or register to view this content. Registration is FREE || 1-832-667-7240
Web Hosting and Domain Names with Personalized HTML Support
Please login or register to view this content. Registration is FREE
|