Create GUI for webapp lazarus / 13-General ---------------------------------------------------------------------- seba22 · 2009-03-20 09:12 Hi, I have to develop a GUI for webapp. Does Lazarus provide library what's allow me to send request throught HTML (PHP)  ? Including sessions and cookies, (it's very important). Regards ---------------------------------------------------------------------- Leledumbo · 2009-03-20 11:20 I think you can start from here. ---------------------------------------------------------------------- bee · 2009-03-20 11:48 Or follow this thread to look at other available alternatives. ---------------------------------------------------------------------- seba22 · 2009-03-20 11:50 Thank you for reply, but i don't looking how to create a server. I need to create a GUI for my php app. I don't want to create public administrator panel, i want to create app for my users. No gui on webserver, only php files,  and clear output. Someone wan't to delete something send by post action=delete id=12 and webserver reply 12 was succesfull Only this, and this read my app, and put into controlls such as list box, any many more. Beter compatibility! No XSS hacks ! No leaks ! No CSRF ! I'm working on this in delphi, and with good result, but now i'm using linux, some people too, so i need to create app working on windows and linux. I hear about Lazarus give chance to compile project on both systems. I don't want use wine to emulate windows software. I don't know C++, im working only with pascall and delphi, that's the point of operation... I thing this is good idea. For my team,  app for moderators , administrators everything in exe file. Regards ---------------------------------------------------------------------- bee · 2009-03-20 12:04 > I don't know C++, im working only with pascal and delphi, that's the point of operation. If you're only working with Delphi and Pascal, so what does PHP do on the server? Anyway... > Only this, and this read my app, and put into controlls such as list box, any many more. I assumed you're about to make a desktop application which communicates with server (PHP in this case) through HTTP. Am I correct? If correct, how did you do it on Delphi on Windows? What library/component you're using? I believe it's some kind of HTTP communication component. Synapse? WinInet? If so, there are plenty of things like that in FPC/Lazarus. Or, if your component supports FPC/Lazarus, then you don't need to recode everything. If not, you may use lNet, Synapse, Indy, or the built-in FPC socket component. There are also many third party or custom components out there. ---------------------------------------------------------------------- seba22 · 2009-03-20 12:13 Yes,  I wan't to create desktop app, using web server and php. I say this about php becous i need sessions and be able to send data, not only retrive by get. I conencted to my computer in archive and i know in delphi i use this component's  Code: [Select]   HTTP: TIdHTTP;     CookieManager: TIdCookieManager; Sending data by POST Code: [Select]CookieManager:= TIdCookieManager.Create(nil); Input := TStringStream.Create(''); Output := TStringStream.Create('');     Input.WriteString('user_name='+login+'&user_pass='+password+'&logi n=Loguj');     HTTP.Post('http://im.mojserwer.eu/login.php',Input, Output);     HTTP.Request.CustomHeaders.Values['Cookie'] := CookieManager.GenerateCookieList(HTTP.URL);     input.free;     output.free; end; I'm working on this 2 years ago, so this may by not userfull now. Any idea for component like idHTTP and CookieMenager for Lazarus ? ---------------------------------------------------------------------- bee · 2009-03-20 12:22 > I say this about php becous i need sessions and be able to send data, not only retrive by get. Dude, seriously, Pascal can do *everything* what PHP can do. Session and cookie in web programming is simple. You can even write your own. Anyway... > HTTP: TIdHTTP; Ah, I'm quite sure it's Indy components. Lucky you, Indy does support FPC/Lazarus. You may start it from here. Good luck! ---------------------------------------------------------------------- seba22 · 2009-03-21 08:41 Hi, I'm trying to compile this package under my ubuntu 8.10 box, but without result. Code: [Select] install -d debian/indy-fpc # Add here commands to install the arch part of the package into # debian/tmp. FPCVER={fpc} /usr/bin/make install INSTALL_BASEDIR=/home/seba22/Pulpit/indy-10.2.0.1/fpc/debian/indy- fpc//usr/lib/fpc/2.2.2 make[1]: Wejście do katalogu `/home/seba22/Pulpit/indy-10.2.0.1/fpc' /usr/bin/fpcmake -p -Ti386-linux Makefile.fpc Processing Makefile.fpc Error: Target "linux", package "fcl" not found make[1]: *** [fpc_install] Błąd 1 make[1]: Opuszczenie katalogu `/home/seba22/Pulpit/indy-10.2.0.1/fpc' make: *** [install-arch] Błąd 2 dpkg-buildpackage: niepowodzenie: fakeroot debian/rules binary zwrócił status błędu 2 root@seba22-desktop:/home/seba22/Pulpit/indy-10.2.0.1/fpc# There are no .deb packages for this files ? I cant compile this... wrrr ---------------------------------------------------------------------- Leledumbo · 2009-03-23 03:44 FCL has been classified into sub-packages, perhaps the Makefile.fpc needs tweaking. See FCL. ---------------------------------------------------------------------- seba22 · 2009-03-23 08:41 Hi, I have already installed this library. Regards ---------------------------------------------------------------------- aime2nice · 2009-04-13 13:49 Hi I have the same message about fcl when I try install or build package Indy 10. Have you solve the problem? Thanks in advance. ---------------------------------------------------------------------- seba22 · 2009-04-13 14:30 No, i don't :/