hewtluca
asked on
I need to change this into CGI please help Urgent
If it is wrote in perl how do I include it in an html page to call it
the script
if(isset($account)) {
$contents = file_get_contents("bia.dat ");
if (strpos($contents, $account) === false) {
$alert2 = "";
}
else {
$alert2 = "Alert Account Exists";
echo $alert2;
}
}
this is what i had in the html page
<?php $ip = "12233432"; $account ="6763364"; include ("check.php") ?>
Thanks
the script
if(isset($account)) {
$contents = file_get_contents("bia.dat
if (strpos($contents, $account) === false) {
$alert2 = "";
}
else {
$alert2 = "Alert Account Exists";
echo $alert2;
}
}
this is what i had in the html page
<?php $ip = "12233432"; $account ="6763364"; include ("check.php") ?>
Thanks
ASKER
Uh..... It is a php script .... I know for sure!!! I wrote it. And it is what I do for a living. I just did not put <?php ?>
All I want is to have it changed into cgi I am a Php programmer not CGI
Thanks,
Hewt
All I want is to have it changed into cgi I am a Php programmer not CGI
Thanks,
Hewt
I'm sure PHP doesn't use === for comparisons. I think you meant ==
To turn it into a CGI script, you just need to add a MIME header to the output,:
Content-Type: text/html
Make sure you have a blank lline after the header.
Not familar with PHP, but I assume you do
echo "Content-Type: text/html\n\n"
To turn it into a CGI script, you just need to add a MIME header to the output,:
Content-Type: text/html
Make sure you have a blank lline after the header.
Not familar with PHP, but I assume you do
echo "Content-Type: text/html\n\n"
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
>> I'm sure PHP doesn't use === for comparisons. I think you meant ==
=== returns true if the values are equal and of the same type.
http://us2.php.net/manual/en/language.operators.comparison.php
=== returns true if the values are equal and of the same type.
http://us2.php.net/manual/en/language.operators.comparison.php
Shows you how much I know about PHP.
It seems to be a combination of all three, hence it won't run.
First you need to decide which language you want to use, then we can work on how to call it.
If you really want Perl, then you call it via SSI or CGI.