Recent

Author Topic: FreeSpider 1.1.0 released  (Read 60870 times)

motaz

  • Sr. Member
  • ****
  • Posts: 495
    • http://code.sd
Re: FreeSpider 1.1.0 released
« Reply #30 on: February 24, 2010, 08:29:12 am »
I think you can add ExecCGI in Options of cgi-bin alias without being .cgi. In Linux it works fine for me:

Code: [Select]
<Directory "/Library/WebServer/CGI-Executables">
    AllowOverride None
    Options ExecCGI
    Order allow,deny
    Allow from all
</Directory>

IndianaJones

  • Hero Member
  • *****
  • Posts: 509
Re: FreeSpider 1.1.0 released
« Reply #31 on: February 28, 2010, 09:46:54 pm »

Sorry for the late response, adding Options ExecCGI solved the case.
Thanks.

motaz

  • Sr. Member
  • ****
  • Posts: 495
    • http://code.sd
Re: FreeSpider 1.1.0 released
« Reply #32 on: March 01, 2010, 08:57:16 am »
Thanks, now we can say that FreeSpider is officially tested under Mac

IndianaJones

  • Hero Member
  • *****
  • Posts: 509
Re: FreeSpider 1.1.0 released
« Reply #33 on: March 04, 2010, 10:33:22 am »

Hi motaz,
Yes, it is officially tested under Mac OS X (Leopard) mostly the procedure as same in the Snow Leopard 10.6.x.
Anyway, if you dont mind, whould you like to add a database example into FreeSpider (MySql, Firebird vs...)
Thanks.
 

motaz

  • Sr. Member
  • ****
  • Posts: 495
    • http://code.sd
Re: FreeSpider 1.1.0 released
« Reply #34 on: March 04, 2010, 01:20:54 pm »
Ok, nice suggestion, I'll see what can I do with FireBird

motaz

  • Sr. Member
  • ****
  • Posts: 495
    • http://code.sd
Re: FreeSpider 1.1.0 released
« Reply #35 on: March 04, 2010, 08:39:14 pm »
As you suggested. Now I've write a simple News example and uploaded it in my site: http://motaz.freevar.com/freespider.htm

please check

you need to put news.fdb in firebird databases folder (or any accessible folder for firebird) and change IBConnection1 parameters according to your firebird settings

Leledumbo

  • Hero Member
  • *****
  • Posts: 8819
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: FreeSpider 1.1.0 released
« Reply #36 on: March 12, 2010, 08:39:51 am »
I just discover FreeSpider and find it to be interesting. However, I can't seem to debug it from within the IDE. Is it currently unsupported or I just don't know how?

motaz

  • Sr. Member
  • ****
  • Posts: 495
    • http://code.sd
Re: FreeSpider 1.1.0 released
« Reply #37 on: March 12, 2010, 08:44:21 am »
Debugging is not supported, because you can not run the CGI executable from Lazarus, the browser does.
This problem was inherited from Delphi's WebBroker technology. But I hear that it can be supported.
Anybody can help us on debugging such external applications?

IndianaJones

  • Hero Member
  • *****
  • Posts: 509
Re: FreeSpider 1.1.0 released
« Reply #38 on: May 20, 2010, 06:28:10 am »

Hi Motaz,

Have you ever tested your new example with the latest lazarus svn on ubuntu 10.04?
I compiled news example with the lazarus svn 25525 and ubuntu 10.04, compiling news is successful but the rest is a little bit confusing. Executing the news from the
http://127.0.0.1/cgi-bin/news gives 500 Internal Server Error.
Anyway spidersample works fine.
Thanks.

Leledumbo

  • Hero Member
  • *****
  • Posts: 8819
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: FreeSpider 1.1.0 released
« Reply #39 on: May 20, 2010, 06:46:52 am »
Do you plan to add more advanced template handling as in fpWeb? Right now I'm still confused between the two. I need FreeSpider smart module loading, but I miss fpWeb's advanced template handling.

Leledumbo

  • Hero Member
  • *****
  • Posts: 8819
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: FreeSpider 1.1.0 released
« Reply #40 on: May 21, 2010, 05:28:28 am »
Quote
compiled news example with the lazarus svn 25525 and ubuntu 10.04, compiling news is successful but the rest is a little bit confusing. Executing the news from the
http://127.0.0.1/cgi-bin/news gives 500 Internal Server Error.
I think I know the problem. When it's run from console, here's the few top lines:
Quote
EnumFontFamiliesEx is not yet implemented for this widgetset
EnumFontFamiliesEx is not yet implemented for this widgetset
EnumFontFamiliesEx is not yet implemented for this widgetset
CONTENT-TYPE: TEXT/HTML

<html><header><title>News Center</title></header>
<body>
<h3>News center</h3>
<table width=100%><tr><td>
<a href="/cgi-bin/news.exe">Refresh</a></td><td>
...
As you can see, the CONTENT-TYPE appears after that EnumFontFamiliesEx message. That's why the server generates internal error. It must be something in the LCL.

IndianaJones

  • Hero Member
  • *****
  • Posts: 509
Re: FreeSpider 1.1.0 released
« Reply #41 on: May 21, 2010, 01:42:18 pm »
Thanks for the investigation Leledumbo.
By the way, how can you debug the problem?
« Last Edit: May 22, 2010, 03:57:12 am by IndianaJones »

Leledumbo

  • Hero Member
  • *****
  • Posts: 8819
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: FreeSpider 1.1.0 released
« Reply #42 on: May 22, 2010, 04:18:58 am »
A CGI program is actually a pure CLI as well. Just run in from a console / command prompt.

IndianaJones

  • Hero Member
  • *****
  • Posts: 509
Re: FreeSpider 1.1.0 released
« Reply #43 on: May 22, 2010, 12:19:28 pm »
Aha, i see. it seems to me that there would be another way.
Secondly, I prepare a simple test cgi application, whenever executing the application on the console, it doesnt produce any output. To open the app with the firefox I get the same 500 Internal Server error. Tested with the Ubuntu 10.04, Lazarus SVN 25572, FPC 2.4.0.
One last thing is spidersample is executed without any error.
Thanks.
« Last Edit: May 22, 2010, 01:57:26 pm by IndianaJones »

Leledumbo

  • Hero Member
  • *****
  • Posts: 8819
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: FreeSpider 1.1.0 released
« Reply #44 on: May 24, 2010, 01:54:34 am »
Quote
Secondly, I prepare a simple test cgi application, whenever executing the application on the console, it doesnt produce any output.
Code please... and if you're on Windows, make sure -WG in compiler options isn't checked (that would close standard streams).

 

TinyPortal © 2005-2018