Simple Smiles Not so simple
Moderator: General Moderators
- jayshields
- DevNet Resident
- Posts: 1912
- Joined: Mon Aug 22, 2005 12:11 pm
- Location: Leeds/Manchester, England
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
Code: Select all
:)- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
Then what is this all about?
this function is looking for the string 'Smile' and it is trying to turn that into the image path.
Code: Select all
<?php
function addbbcode($vartoproc) {
return str_replace("Smile", '<img src="./image/smile.gif">', $vartoproc);
}
?>First of all, you can replace
with
Secondly, add
after
and post here your output!
Code: Select all
$temp= $page2.'.txt';
$page2 = $temp;Code: Select all
$page2 = $page2.'.txt';Code: Select all
echo $read;Code: Select all
$read = fread($fp, '1000');- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA