- Messages
- 399
- Reaction score
- 0
- Points
- 26
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2
Gawa kang form na may file na input type.
Tapos dun sa php when you submit, read mo yong file.
It would be better to use the file() of php. Then loop mo cya.
Be careful on ===, it should be that way. Read on strpos for more details.
Mga sir patulong nman po dito.. pano ko g2win eto dko alam kung pano ko si2mulan to
bale eto ung task n pnapgwa samin
bale sir eto ung kailngan niang i-analyze n file..
http://www.mediafire.com/download.php?uw9pi48mqr7sbhp
Hint, tips, or advice pano ko ga2win eto or ano ung dapat kong pag-aralan para magawa ko eto mga sir.. need help badly.. maraming slamat
Gawa kang form na may file na input type.
Code:
<form>
<input type="file" name="upload_file" />
</form>
Tapos dun sa php when you submit, read mo yong file.
It would be better to use the file() of php. Then loop mo cya.
Code:
<?php
$result = file("filename.log");
foreach ($result as $key => $value)
{
if (strpos($value, "warning") === TRUE)
{
//found warning.
}
elseif (strpos($value, "error") === TRUE)
{
//found error.
}
else
{
//message.
}
}
?>
Be careful on ===, it should be that way. Read on strpos for more details.