
mam problem chce zrobic rozpoznywanie emotikonek wiec...poszukalem na forum i znalazlem tutka
no i przystapilem do pracy moj efekt
Warning: main(buzka.php): failed to open stream: No such file or directory in /home/accounts_r/raffal/public_html/sysnews2.php on line 68
Warning: main(): Failed opening 'buzka.php' for inclusion (include_path='.:/var/iws/php/php4-fcgi/lib/php') in /home/accounts_r/raffal/public_html/sysnews2.php on line 68
tak wyglada class.php
<? class buzki { var $src; var $buzki; var $format; function sciezki( $tablica ) { foreach( $tablica AS $index => $wartosc ) { $gotowa[] = '<img src="' . $this -> pliki . $wartosc . '.' . $this -> format . '">'; } return $gotowa; } function Buzki() { include( './config.php' ); $this -> sciezka = $sc; $this -> format = $format; $this -> buzki = $buzki; } function zamien( $tekst ) { return $wynik; } ?>
a tak
config.php
<!--config.php--> <?php $src= '/buzki/'; $format='gif' "smile" => '/:)/', "sad" => '/:(/', "happy" => '/:D/', "angry" => '/:[/', "crying" => '/;(/', "laughing" => '/;)/', "wassat" => '/;[/', "wink" => '/;)/', ); >? ?>
a tak wywoluje
<?php include("buzka.php"); ?>
moge prosic o pomoc..........