PHP Classes

example not working

Recommend this page to a friend!

      Small Google Translator  >  All threads  >  example not working  >  (Un) Subscribe thread alerts  
Subject:example not working
Summary:example not working
Author:Ravikiran Marella
Date:2010-09-30 05:01:49
Update:2010-09-30 05:20:03


  1. example not working   Reply   Report abuse  
Picture of Ravikiran Marella Ravikiran Marella - 2010-09-30 05:01:49
I've tried running the sample example provided in the package and it's showing the following errors. can you please help??

Warning: include(../plugins/ [function.include]: failed to open stream: No such file or directory in C:\wamp\www\app\pdTest\ravi\translator\example.php on line 3

Warning: include() [function.include]: Failed opening '../plugins/' for inclusion (include_path='.;C:\wamp\bin\php\php5.2.9-2\PEAR') in C:\wamp\www\app\pdTest\ravi\translator\example.php on line 3
Original: Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.

Translated from English to German:

Fatal error: Class 'SmallGoogleTranslator' not found in C:\wamp\www\app\pdTest\ravi\translator\example.php on line 18


  2. Re: example not working   Reply   Report abuse  
Picture of Pawan Adhikari Pawan Adhikari - 2010-09-30 05:20:03 - In reply to message 1 from Ravikiran Marella
Mr.Ravikiran Marella,

The Warning : Warning: include(../plugins/ is showing up due to the file path error.
Please put the Class Source File and the example file in the same Directory.

and replace Warning: include(../plugins/
as include('') in the example script.

Then your problem will be solved.

Thanks for the query.