Forum Moderators: coopster

Message Too Old, No Replies

string position? HELP?

Call to undefined function: stripos() in /home/EXAMPLE/public_html/fa/f.php

         

GamingLoft

12:17 am on Feb 4, 2008 (gmt 0)

10+ Year Member



ok i have this...


<?php
$artist = urlencode($_GET['artist']);
$url = 'http://www.example.com/music/'.$artist.'/+wiki';
$file = file_get_contents($url);
$factbook = '<div class=\"lastPanel alt\">
<div class=\"h\"><h2>Factbox (<a href=\"/forum/markup#artistwikitags\" target=\"_help\" style=\"color: black;\" title=\"What\'s This?\">?</a>)</h2></div>
<div class=\"c\">
<dl class=\"sidebarInfoList\">';
$pos1 = stripos($file, $factbook);
echo $pos1;
?>

but im getting the following error:

Call to undefined function: stripos() in /home/EXAMPLE/public_html/fa/f.php

anyone got a solution, or know why this is occuring?

[edited by: eelixduppy at 6:55 am (utc) on Feb. 4, 2008]
[edit reason] example.com [/edit]

bkeep

12:24 am on Feb 4, 2008 (gmt 0)

10+ Year Member



maybe this?

strpos

Regards,
Brandon

GamingLoft

1:13 am on Feb 4, 2008 (gmt 0)

10+ Year Member



What a dumb mistake.

thanks a lot. it worked. :D:D