rejetto forum

Software => HFS ~ HTTP File Server => Topic started by: bmartino1 on April 14, 2014, 03:18:20 AM

Title: hfs and php/mysql
Post by: bmartino1 on April 14, 2014, 03:18:20 AM
I know it is a lot of pressure on the programes, but will there be a time where hfs and mysql/php will be intergrated for web a nd database software? I here if it is true or not that fhfs might include php in the new fhfs build. Coll if true.

Just currious if this is on a to do list or it it will be intergrated in future builds?
Title: Re: hfs and php/mysql
Post by: rejetto on April 26, 2014, 01:01:26 PM
direct support?
HFS 2 will not.
HFS 3 maybe,  but not a priority, and will take probably 30 years. :)

But in many cases you can make an integration through {.exec.} and {.load.}
Title: Re: hfs and php/mysql
Post by: raybob on April 28, 2014, 06:04:49 PM
Just use HFS' notes system for storing data.  PHP can be run from the command line through {.exec.} - FHFS is a good example :)
Title: Re: hfs and php/mysql
Post by: bmartino1 on April 30, 2014, 10:03:22 PM
since i'm going to be going back in to programing mode, can you give me some help on programing ie:

What programming language are you writing in
ie:
vba
C++
peral
python
other???
...

What program do you best recommend for writing and editing the source code?
notepad
visaul basic
bloodshed C++
other???
...

Any help would be appreciated, and thank you rejeto and raybob for the information you have provided already!

---------------

in the end this is what i will be working on and trying to accomplish:
as all i will be doing is adding a few execution of lines to programs and will have added three folder --1 php --1 mysql --1 programming notes and bits of code/readme

i will post my findings and end code as a winrar sfx (self  extracting zip file with the ssl source code

(I have no time frame nor a completion date (I will fix the open ssl update on the source i'm using...) and don't even know yet if this type of coding is too advance for me {bring in outside help of other coders... and this is all speculation as this will be my first time dividing into rejeto's HFS source code and silentplz source code http://www.rejetto.com/forum/hfs-~-http-file-server/for-testing-purpose-hfs-beta-279-including-ssl-tools/msg1059018/?topicseen#msg1059018)
Title: Re: hfs and php/mysql
Post by: rejetto on May 01, 2014, 11:54:11 AM
HFS can be scripted through its own language, sorry :)
The default template uses this language a lot.
You can find more about it by browsing the programmers' forum and the official documentation.
HFS can be configured to use any text editor for template and scripts.
Title: Re: hfs and php/mysql
Post by: bmartino1 on May 17, 2014, 11:50:46 PM
i'm haveing issues comiling your source. I've started with the current source, (nothing changed) ran the bath "compile ...etc....bat"

didn't have thoese programs, went after them, and recieve the same issue as i do with siletplz editions...
see png pic...

Is there a specila probram i need to compile it to an excutable? as dcc32.exe is not working atleast not for me...
Title: Re: hfs and php/mysql
Post by: Mars on May 18, 2014, 10:44:44 PM
turbo delphi 2006 portable
http://freecache31-free.uloz.to/Ps;Hs;fid=5895582;cid=764436158;rid=587271319;up=0;uip=86.213.250.162;tm=1400625243;ut=f;aff=ulozto.net;did=ulozto-net;He;ch=b9e0140b7da50f6051a959914a5e6516;Pe/5895582/turbo-delphi-portable.rar?bD&c=764436158&De&redirs=2

launch tdrun.exe
Title: Re: hfs and php/mysql
Post by: bmartino1 on May 19, 2014, 05:14:50 AM
thank you Mars, i appreciate the portable edition of this programming tool. Unfortunaley i'm stillhaving compiling issues with  the program you provided and with a fress downlaod of the curect builds source code...

see picture
Title: Re: hfs and php/mysql
Post by: bmartino1 on May 20, 2014, 03:21:25 PM
okay, i'm stuck at trying to compile the source which can lead me to debug(form the file menu {projects}) to make the exe file...

Ive downloaded the latest soucre build "hfs2.3a_289.src" opened hfs.dpr wen tto file menu projects compile / build/ run and i'm still getting an error with the scripts lib in whihc a forum of the debuger says it can't find the fastMM4.dcu...

i'm on a windows 7 machine (don't know if that might be the issue...) Is there an older "complete source in which i open the project file and using the progmra the mars has provided that will open up the source and compile it? or do i need to look at different ways/programs to compile it.

and or is it a setting in turbo delphie that i'm needing to turn off or on?

or is there some scripting i need to do to fix it?

attached 1 phont at compiler setting wiht the only info i have that gives 1 error ...etc...

any help appreciated!
Title: Re: hfs and php/mysql
Post by: bmartino1 on May 20, 2014, 04:10:43 PM
turbo delphi 2006 portable
---etc---

Thank you again for this programing tool...
I have sucessfule setup the programs need to run the batch file as now when i open the progmra and try to compile the program i get a fastmm4.dcu error... (still can't seem to find how to fix it....)

and when i run the batch script, i recieve the same error which leads me to believe that:
 1. this program is lacking something i need to make it work and i don't gaave the knowlegde to fix it since it is protable
 2. there is an issue with the source fil in which (in scriptlib) this fastmm4 file is not zipping and or downlaoding...
 3. there is someting on my end i'm doing wrong... (i doubt but it could be !)

Thank you again for all your help so far!
bmartino1

p.s. if it heps, runing the batch sccript:
-----recompile data----
brcc32 data.rc
dcc32 hfs.dpr
pause
------
*I adeed the pause to make sure and see what is going on: picture show output...
Title: Re: hfs and php/mysql
Post by: Mars on May 20, 2014, 04:42:14 PM
If there are errors, generaly it is missing some units for the compilation, in your case you can find them by doing a search on google of fastmm4

Title: Re: hfs and php/mysql
Post by: bmartino1 on May 20, 2014, 06:57:10 PM
If there are errors, generaly it is missing some units for the compilation, in your case you can find them by doing a search on google of fastmm4

Thank you for this information:

which i have done, but i don't know how nor where to place it..
https://groups.google.com/forum/#!msg/borland.public.delphi.commandlinetools/B_QXveJUEYI/xtYB5U6t3qkJ

in the portable edition where do i put these missing pascla sources?

-----
I have downloaded it(fastmm) form source forge...
anyways:

on silent plz source (which i would be using to add the programs as he has already incorpated a programs source area to pool programs and add to the interface....) i recive a different error all together as it has already found and uses fastmm4....
but now i need a pascal source: 'OverbyteIcsWSocket.dcu'

This is the first time i'm using delphi and i don't know where to add these packages to the projects nor where the should be in the directories. so the "tdrun.exe" knows and has them.

once i have a good complete source that compiles corectly i can then dive into the code and edit and add what i want and possilby fix some things (this openssl and stunel...)

Again i want to thank you for your help on this and i appreciate your time and effort

----
I have siletplz beta source and the latest hfs source

laste build:
fastmm4 error

beta source:
OverbyteIcsWSocket.dcu
(which i haven't stareted to search and look into yet.
Title: Re: hfs and php/mysql
Post by: bmartino1 on May 20, 2014, 07:48:15 PM
Okay, i think i understand the directories a bit more, thank you for setting me on the right path mars, as (thx to silent plz for adding the dcu form of it in his source, i was able to put them in the directory %your path to the portable version%\Turbo Delphi Portable\lib"

I'm now facing issues with the file i haven't searched up yet. Thank you again for your help!


Title: Re: hfs and php/mysql
Post by: bmartino1 on May 21, 2014, 02:52:08 AM
Theres a lot of old post that had users facing some of theese same issue, and mentiuon of a wiki somewhere to "programing notes" Can some one lasea post a link to that area for me?

--------Example---
I guess i have the same issue i have that the user silentplz did. except i'm using a protable edition.:
see forum post:
http://www.rejetto.com/forum/programmers-corner/last-beta-sources/30/

the user silentplz also goes over some of the exact files i'm looking for, so if posible need thoese "etc"pascal files and or compiled .dcu files if possible to continue...

any help would be apprecaited including a possible path to the programing notes
--------

I'm using a ariety of places to get the codes i need to recompile this suchas but not limited to googles code base:
http://code.google.com/p/dm-rc-server/source/browse/trunk/dm-rc-server/trunk/DM_RC_Client+%28Miranda%29/ICS/?r=12


----

as of now i'm facin isues with pascal files to run (need to search them and find them...)

jclfileutils
jvcomponentbase

I've downlaoded and had to find these to make it work so far:

---cmd dir of path that will be uploaded for other users...---
C:\Users\User>cd C:\Users\User\Desktop\Libary files

C:\Users\User\Desktop\Libary files>dir
 Volume in drive C has no label.
 Volume Serial Number is 7CC9-2BE0

 Directory of C:\Users\User\Desktop\Libary files

05/22/2014  12:09 PM    <DIR>          .
05/22/2014  12:09 PM    <DIR>          ..
05/20/2014  09:58 PM           164,482 DelphiZLib.123.2009.zip
05/22/2014  11:26 AM           526,201 fastmm-pascal.7z
05/20/2014  09:59 PM           205,452 gifimaged2010b.zip
05/22/2014  11:50 AM         4,476,016 icsv8w.zip
05/22/2014  11:58 AM           288,740 jcl.zip
05/22/2014  12:01 PM            10,054 JclNTFS.7z
05/22/2014  11:49 AM           181,720 overbyte-gogle.7z
05/20/2014  09:59 PM            43,867 RegExpE.zip
05/22/2014  12:09 PM            37,459 Unicode.7z
               9 File(s)      5,933,991 bytes
               2 Dir(s)  283,508,559,872 bytes free
--------------------

any help is appreciated!
Title: Re: hfs and php/mysql
Post by: bmartino1 on May 21, 2014, 04:02:29 AM
Probally should be its own post...

turbo delphi 2006 portable
http://freecache31-free.uloz.to/Ps;Hs;fid=5895582;cid=764436158;rid=587271319;up=0;uip=86.213.250.162;tm=1400625243;ut=f;aff=ulozto.net;did=ulozto-net;He;ch=b9e0140b7da50f6051a959914a5e6516;Pe/5895582/turbo-delphi-portable.rar?bD&c=764436158&De&redirs=2

launch tdrun.exe

Thank you again!
To whom it may concern i though that other users may want the terminal comand line version along with this portable version...

Befeore you continue to ensure that you don't corupt youyr system PLEASE DO A SYSTEM RESTORE!
CREATE A SYSTEM RESTOR POINT!

as we/ you will need to add files to your windows system32 folder!

----------
these files are needed in system32 to sucessfuly use the source batch script comand line:
brcc32 data.rc
dcc32 hfs.dpr
pause
---(which is used and the process to compile and make it an excutable!)---
(esentail the entire bin except 2 files [dcc32.cfg and dcc32])

you will need to edit 1 of thoses files and added it to system32 (this is the esentilaconfig file for dcc32 which puts the paths and directiories...

downlaod the required files:
https://drive.google.com/file/d/0B9u5dgydfOEudmc5UnN0M19oOVE/edit?usp=sharing

wokring config file(for me atleast):
--------------CFG File (dcc32.CFG)
-$A8
-$B-
-$C+
-$D+
-$E-
-$F-
-$G+
-$H+
-$I+
-$J-
-$K-
-$L+
-$M-
-$N+
-$O+
-$P+
-$Q-
-$R-
-$S-
-$T-
-$U-
-$V+
-$W-
-$X+
-$YD
-$Z1
-AWinTypes=Windows;WinProcs=Windows;DbiTypes=BDE;DbiProcs=BDE;DbiErrs=BDE
-B
-CG
-GP
-H+
-W+
-M
-$M16384,1048576
-K$00400000

//Use package
-LU vclx100

//Unit directories
-U"C:\Windows\System32\Turbo Delphi Portable\lib";"C:\Windows\System32\Turbo Delphi Portable\lib\Obj";"C:\Windows\System32\Turbo Delphi Portable\Imports"

//Package DPL output directory
-LE"C:\Windows\System32\Turbo Delphi Portable\Projects\Bpl"

//Package DCP output directory
-LN"C:\Windows\System32\Turbo Delphi Portable\Projects\Bpl"

//EXE and DLL output directory
-E "C:\Users\User\compiled"

//Resource directories
-R ""

//Object directories
-O""

//Include directories
-I""

-w-UNSAFE_TYPE
-w-UNSAFE_CODE
-w-UNSAFE_CAST

-------------

You will also need this (the program that mars has shared in the quoted text - nothing changed just another download link if needed...)

download file:
https://drive.google.com/file/d/0B9u5dgydfOEuaU1La2tnZ2FfWmM/edit?usp=sharing

Now you have delphi 6 command live compiler via cmd dcc32 version 18....

will add all the lib when i have them to make it easyer to downlaod and program and edit the soure!
(still having isues on that...)
Title: Re: hfs and php/mysql
Post by: bmartino1 on May 23, 2014, 05:25:29 AM
i think it is an issue with the jvcl pascal files, but i'm haveing isues compiling have fetched a lot of code... now i'm stuck trying to find a pascla source code called turbo.pas

error while compiling:
C:\Windows\System32\Turbo Delphi Portable\lib\JCL.INC(41) Fatal: F1026 File not found: '"C:\Windows\System32\Turbo.pas'

attached is the compile log via comand line


Title: Re: hfs and php/mysql
Post by: bmartino1 on May 23, 2014, 04:04:10 PM
* Post has been updated...

libs folder download:
https://drive.google.com/file/d/0B9u5dgydfOEuZ213a1UxdmdlLWs/edit?usp=sharing

if it helps, i have attached the lib folder which contains all of the source codes and pascal files that i'm using to attempt to compile the lattest build source. as posted previous post with updates modification and others....

I'm experiencing issues compiling hfs source code.

( I have given up trying to program the source code )

by using the only known(atleast to me) seemingly free program provided by mars ( portable turbo delphi )...

--------
i'm at the point where i question if this is even worth it....
It would have been a nice jester ...
---

it has come to my attention that this is a waste of my time seeing that i'm have been posting multiple times with very little to no responses... on editing the source code
---------

Issues that i have run into would be:
Once the program is download, to set it up:

for security measures there would have to be a batch to change the passwords and add account info to mysql, and some type of notes on prope setup to open multipe ports and incorporation of a database viewing program....
---------

Which is what i have separate and alone....

so if any one has a "cure" for:
C:\Windows\System32\Turbo Delphi Portable\lib\JCL.INC(41) Fatal: F1026 File not found: '"C:\Windows\System32\Turbo.pas'

please let me known other wise i'm waiting on a different form to download a base project...:
http://www.codeforge.com/article/906
(which will never be available)

or going through the libs and fixing the jedi vlc pascal files...

Made this post to explain and vent my issues as i found the program to be pointless to use as a compiler if it is missing. needing a pascal script to compile...

Previous post on asking what code language it was, after looking i would say it is Delphi Objective C code mixed with other coding languages (i could be wrong but that what i could decode and follow...)
Title: Re: hfs and php/mysql
Post by: rejetto on May 25, 2014, 10:13:52 PM
bmartino1, as i said you, you can use HFS scripting system to achieve what you want, you don't need to modify HFS itself, so you don't need to compile it.

You want to run commands to MySQL. Fine.
Create a software that reads from a file the query/command, and gives the output on the standard output.
Let's say this program is called "dbrun".
You can create this program with the language or tool you want.

Whenever you need to execute a command X in mysql from HFS you will just do this way

{.save|commands.txt|X.}
{.exec|dbrun|out=result.}
Title: Re: hfs and php/mysql
Post by: bmartino1 on May 27, 2014, 01:55:34 AM
*Have fixed spelling and updated.. sorry for the inconvience

bmartino1, as i said you, you can use HFS scripting system to achieve what you want, you don't need to modify HFS itself, so you don't need to compile it.

You want to run commands to MySQL. Fine.
Create a software that reads from a file the query/command, and gives the output on the standard output.
Let's say this program is called "dbrun".
You can create this program with the language or tool you want.

Whenever you need to execute a command X in mysql from HFS you will just do this way



Thank you for this, i have considered that path, but in the long run or at least form the user side, having a scripted "rarw possible" template that would do this would be very easy to misinterpret commands settings and configs.. i was going to attempt a beta such as silent plz has done that would incorporate the resource files(programs that i have used and currently using) and with a few clicks change major setting such as login access to mysql, config files and port setting for data translation...

It would probably be easier but once i post the "sfx zip" or what i have/had is what would be hard to leave for me as my mysql... its more because of  the username and password would then become public causing security issues... among other things...

It was more of an idea/thought that i would liked to have seen and a way for me to dive into the code to see what is actual running and making "HFS" tick....(as you claim it is open source, but source code "as i'm not a Delphi programmer.." is a bit confusing...)

I'm actual working on a template to incorporate the previous rarw template command such as what raybob has done with fhfs...(Although i would have like to have it pre-built within hfs and programmed it to incorporated tabs and other setting....)

here is an example so far: at least the breakdown of what i'm testing and trying to build..
---example/testing with the hfs default template....---
{.exec|"%path%\prgram.exe and/or mysql dos batch or other service..."}
---

Still would like a link to the wiki if possible
(found link and is further in posts)
Title: Re: hfs and php/mysql
Post by: rejetto on May 27, 2014, 11:21:28 AM
i don't understand some parts of your message because of the typos.


what about the wiki? what link do you want?
Title: Re: hfs and php/mysql
Post by: bmartino1 on May 27, 2014, 04:50:02 PM
Sorry, working with a bad keyboard... i think i found the wiki, thatnk youf or your help!
http://www.rejetto.com/wiki/index.php?title=HFS_Documentation_(English)

(the wiki link to the template info to program it with {exec}

or possible the programing links??? are they the same?)

was looking for this link:
http://www.rejetto.com/wiki/index.php?title=HFS:_Template_macros

and these link:
http://www.rejetto.com/wiki/index.php?title=HFS:_scripting_commands

http://www.rejetto.com/forum/html-templates/hfs-templates-vars-and-section-help/msg1010138/#msg1010138
Title: Re: hfs and php/mysql
Post by: bmartino1 on May 27, 2014, 10:41:48 PM
i guess i was trying to do something like this(as it has already been done), except use hfs not appache:

http://www.server2go-web.de/

Download forms(unkonw if it is free...)
http://www.server2go-web.de/download/download.html
Title: Re: hfs and php/mysql
Post by: rejetto on June 02, 2014, 05:41:41 PM
let me know if you have are successful with the commands
Title: Re: hfs and php/mysql
Post by: bmartino1 on June 06, 2014, 11:00:00 PM
computer "hfs machine" went down... busy at work, haven't tried full templating yet..., will get to it when i have some  free time. Thank you so far for your help and support
Title: Re: hfs and php/mysql
Post by: bmartino1 on June 17, 2014, 02:49:19 AM
i have stooped trying other and previous methods and will be trying something else:
I appreciate everyone's time and help on this so far and may not be continuing on it...

In a previous post with the "server to go", i will attempt to use and setup with hfs (with possible Apache as well )

And i'm starting over.

Again, i would like to thank all the users who have posted and given some form of help
As I would not have gotten this far with out there expertise and information!

THANK YOU

(I will post my finding with the server to go as most likely i will have to run Apache along side with hfs...)