collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18366
  • stats Total Topics: 2501
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Poll

Should optional support for non-default php extensions be put into bebot releases?

Yes, it's optional after all!
1 (20%)
Ys, but it will need a warning about possible consequences if you select it without the extension
2 (40%)
No, requiring outside modules is too much work
2 (40%)
Whats a php extension?
0 (0%)

Total Members Voted: 5

Author Topic: cURL and other non-default php extensions  (Read 9572 times)

0 Members and 1 Guest are viewing this topic.

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
cURL and other non-default php extensions
« on: November 11, 2008, 06:55:52 am »
There is an option to use libcURL to read websites in the Tools module right now, instead of the old way using direct socket connection. I haven't looked into cURL myself yet, but using a dedicated library there should be several advantages.

There is one thing worrying me though.

For all people that can manage their own linux server there shouldn't be much trouble to install libcurl and the curl php extension. Even if it's not default for php, most extensions relying on a third-party library aren't. EDIT: Ok, the php extension is in the full php download package, I guess you only need to enable it in php.ini and put the cURL libraries into the php directory. Haven't tried it though.

People running bebot under windows won't have heard about cURL most of the time. And expect for a few rare cases won't have it installed at all. Even if it is on the system it needs to be activated in php at configuration time, and most people under windows don't bother with that.

Which brings me to my point:
I'm not sure we should support something like that in the bebot releases. For many users it will be too much trouble to run it, on top of having to install mysql already.

But if enough people wish the support of modules like cURL we can keep it as an option.

If I missed some arguments please add them, too early in the morning :)

Offline Vhab

  • Contributor
  • *******
  • Posts: 180
  • Karma: +0/-0
    • VhaBot Forum
Re: cURL and other non-default php extensions
« Reply #1 on: November 11, 2008, 06:59:30 am »
What I really missed in your post is, what is the advantage of using libCURL over the current web fetching method?

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: cURL and other non-default php extensions
« Reply #2 on: November 11, 2008, 07:08:18 am »
Curl: altho currently commented out code, 1 good thing about it is th ability to send authntication to website allow it to get pages from sites that require a login, this is the main reason i got interested in cURL in the 1st place, Plus is nice to have the Option

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: cURL and other non-default php extensions
« Reply #3 on: November 13, 2008, 06:18:54 pm »
What I really missed in your post is, what is the advantage of using libCURL over the current web fetching method?
Good point there, I can't really answer it - Temar included it into trunk.

Which lead me to my question, I think it's the first non-default module used.

Offline Glarawyn

  • BeBot Hero
  • ******
  • Posts: 521
  • Karma: +0/-0
Re: cURL and other non-default php extensions
« Reply #4 on: November 14, 2008, 06:23:58 pm »
Which lead me to my question, I think it's the first non-default module used.

I've used some non-default modules in custom modules, but nothing that I ever put in trunk.  ;D

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: cURL and other non-default php extensions
« Reply #5 on: November 14, 2008, 10:11:44 pm »
well ofc it option but now with the aditional checks if the user doesnt have cURL the setting automaticly changes back :D

 

* Recent Posts
Com bot module by bitnykk
[November 25, 2024, 05:36:11 pm ]


0.8.x updates for AO by bitnykk
[June 23, 2024, 03:19:47 pm ]


0.8.x updates for AoC by bitnykk
[June 23, 2024, 03:19:44 pm ]


[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm ]


BeBot still alive & kicking ! by bitnykk
[December 17, 2023, 12:58:44 am ]

* Who's Online
  • Dot Guests: 91
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.
* Forum Staff
bitnykk admin bitnykk
Administrator
Khalem admin Khalem
Administrator
WeZoN gmod WeZoN
Global Moderator
SimplePortal 2.3.7 © 2008-2024, SimplePortal