Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: PHP: Translating Text Using Google [cURL]

  1. #1
    chetan's Avatar
    chetan is offline PHP Coder
    Join Date
    Mar 2009
    Location
    India , Nagpur
    Posts
    74
    Thanks
    3
    Thanked 6 Times in 5 Posts

    PHP: Translating Text Using Google [cURL]

    Download the attached files and run.


    Dependency : class.XMLHttpRequest.php


    P.S : Its Developed By Me


    Cheers !!!
    Attached Files Attached Files
    Visit : Paste-Bin | Yahoo Tracer | Twitter Signatures
    Contact Me For PHP Works
    An cURL Expertise

  2. #2
    Aziz's Avatar
    Aziz is offline no investment, no glory
    Join Date
    May 2009
    Location
    IL
    Posts
    736
    Thanks
    588
    Thanked 243 Times in 168 Posts
    Can you explain more? I for example have never touched cURL

    Please post detailed tutorial with a demo if possible

    thank you

  3. #3
    chetan's Avatar
    chetan is offline PHP Coder
    Join Date
    Mar 2009
    Location
    India , Nagpur
    Posts
    74
    Thanks
    3
    Thanked 6 Times in 5 Posts
    Quote Originally Posted by Aziz View Post
    Can you explain more? I for example have never touched cURL

    Please post detailed tutorial with a demo if possible

    thank you


    Just download it



    and open translate.php or run it u will understand everything.Try it
    Visit : Paste-Bin | Yahoo Tracer | Twitter Signatures
    Contact Me For PHP Works
    An cURL Expertise

  4. #4
    Aziz's Avatar
    Aziz is offline no investment, no glory
    Join Date
    May 2009
    Location
    IL
    Posts
    736
    Thanks
    588
    Thanked 243 Times in 168 Posts
    Fatal error: Call to undefined function curl_init() in WWWPATHHERE/class.XMLHttpRequest.php on line 132

  5. #5
    chetan's Avatar
    chetan is offline PHP Coder
    Join Date
    Mar 2009
    Location
    India , Nagpur
    Posts
    74
    Thanks
    3
    Thanked 6 Times in 5 Posts
    I think the curl is disabled on your server or local server .Were you tested it ?
    Visit : Paste-Bin | Yahoo Tracer | Twitter Signatures
    Contact Me For PHP Works
    An cURL Expertise

  6. #6
    Aziz's Avatar
    Aziz is offline no investment, no glory
    Join Date
    May 2009
    Location
    IL
    Posts
    736
    Thanks
    588
    Thanked 243 Times in 168 Posts
    localhost. How do I enable cURL?

  7. #7
    chetan's Avatar
    chetan is offline PHP Coder
    Join Date
    Mar 2009
    Location
    India , Nagpur
    Posts
    74
    Thanks
    3
    Thanked 6 Times in 5 Posts
    Quote Originally Posted by Aziz View Post
    localhost. How do I enable cURL?
    Simple


    in php.ini

    Quick Search for keyword "curl"

    u will see such code

    Code:
    .
    .
    .
    ;extension=php_crack.dll
    ;extension=php_curl.dll
    ;extension=php_cvsclient.dll
    ;extension=php_db.dll
    ;extension=php_dba.dll
    .
    .
    .
    Remove ; from ;extension=php_curl.dll , that is uncomment it

    Code:
    extension=php_curl.dll

    And Restart Apache

    Curl Will be loaded \m/
    Visit : Paste-Bin | Yahoo Tracer | Twitter Signatures
    Contact Me For PHP Works
    An cURL Expertise

  8. #8
    Aziz's Avatar
    Aziz is offline no investment, no glory
    Join Date
    May 2009
    Location
    IL
    Posts
    736
    Thanks
    588
    Thanked 243 Times in 168 Posts
    enabled.

    Now:

    Deprecated: Function ereg() is deprecated in class.XMLHttpRequest.php on line 187

    Deprecated: Function ereg_replace() is deprecated in class.XMLHttpRequest.php on line 292
    prova

  9. #9
    chetan's Avatar
    chetan is offline PHP Coder
    Join Date
    Mar 2009
    Location
    India , Nagpur
    Posts
    74
    Thanks
    3
    Thanked 6 Times in 5 Posts
    Quote Originally Posted by Aziz View Post
    enabled.

    Now:



    Man,Which application have you installed on localhost ???

    ereg is dam comman .... and its not enabled with you and the part is with class file .Its dam famous My whole business is upon that file so error is with localhost
    Visit : Paste-Bin | Yahoo Tracer | Twitter Signatures
    Contact Me For PHP Works
    An cURL Expertise

  10. #10
    Aziz's Avatar
    Aziz is offline no investment, no glory
    Join Date
    May 2009
    Location
    IL
    Posts
    736
    Thanks
    588
    Thanked 243 Times in 168 Posts
    I've got WAMP running. do you know how to fix this issue? o_O

Page 1 of 2 12 LastLast

Similar Threads

  1. WordPress Curl Replacement
    By Andy101 in forum Programming
    Replies: 0
    Last Post: 12 October, 2010, 14:37 PM
  2. How to stop translating...
    By CyberWizard in forum Translation Script Support
    Replies: 2
    Last Post: 5 August, 2010, 06:54 AM
  3. How to Install cURL in WAMP
    By Charles in forum Programming
    Replies: 3
    Last Post: 20 April, 2010, 09:37 AM
  4. Translating text in PHP code into another Language
    By harunkaraman in forum Programming
    Replies: 11
    Last Post: 26 September, 2009, 21:12 PM
  5. cURL scraper queries
    By DickTracy in forum Programming
    Replies: 3
    Last Post: 1 January, 2009, 06:18 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •