HBTIP, PHP, MySQL and ofcourse HMG
Moderator: Rathinagiri
- Rathinagiri
- Posts: 5471
- Joined: Tue Jul 29, 2008 6:30 pm
- DBs Used: MariaDB, SQLite, SQLCipher and MySQL
- Location: Sivakasi, India
- Contact:
Re: HBTIP, PHP, MySQL and ofcourse HMG
So, by this way, we can filter the usage of sql.
Thanks for the nice code Raumi.
Thanks for the nice code Raumi.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
South or North HMG is worth.
...the possibilities are endless.
- Roberto Lopez
- HMG Founder
- Posts: 4004
- Joined: Wed Jul 30, 2008 6:43 pm
Re: HBTIP, PHP, MySQL and ofcourse HMG
I've give a deeper look and tested your program.rathinagiri wrote:Here is a small sample to connect to a MySQL database through a small PHP script using HBTIP.
<...>
It's a really nice piece of code!
The better of this model, is that you can have web and desktop clients using the same simple, standard server infrastructure.
Congratulations.
Regards,
Roberto.
Regards/Saludos,
Roberto
(Veritas Filia Temporis)
Roberto
(Veritas Filia Temporis)
- Rathinagiri
- Posts: 5471
- Joined: Tue Jul 29, 2008 6:30 pm
- DBs Used: MariaDB, SQLite, SQLCipher and MySQL
- Location: Sivakasi, India
- Contact:
Re: HBTIP, PHP, MySQL and ofcourse HMG
Thanks a lot Roberto.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
South or North HMG is worth.
...the possibilities are endless.
- Roberto Lopez
- HMG Founder
- Posts: 4004
- Joined: Wed Jul 30, 2008 6:43 pm
Re: HBTIP, PHP, MySQL and ofcourse HMG
I'm working again with MySql and I've found two problems:rathinagiri wrote:Here is a small sample to connect to a MySQL database through a small PHP script using HBTIP.
This is acutally a preliminary one. Don't try this in live data.
<...>
The server refuses to execute a PHP script when it is invoked from an HMG applications (like yours) with a 403 error. It previously worked fine on this host (ByetHost). I've solved trying another free service and worked, but the server automatically added HTML at the beginning and to the end to the data sent by the script, creating a problem (the data should be filtered).
Had you experienced such problems?
There is any way to avoid (both) them.
TIA.
Regards,
Roberto.
Regards/Saludos,
Roberto
(Veritas Filia Temporis)
Roberto
(Veritas Filia Temporis)
- Roberto Lopez
- HMG Founder
- Posts: 4004
- Joined: Wed Jul 30, 2008 6:43 pm
Re: HBTIP, PHP, MySQL and ofcourse HMG
I've solved the first problem (html content returned). It was my mistake (using hbtip, not a server problem).Roberto Lopez wrote:I'm working again with MySql and I've found two problems:rathinagiri wrote:Here is a small sample to connect to a MySQL database through a small PHP script using HBTIP.
This is acutally a preliminary one. Don't try this in live data.
<...>
The server refuses to execute a PHP script when it is invoked from an HMG applications (like yours) with a 403 error. It previously worked fine on this host (ByetHost). I've solved trying another free service and worked, but the server automatically added HTML at the beginning and to the end to the data sent by the script, creating a problem (the data should be filtered).
Had you experienced such problems?
There is any way to avoid (both) them.
TIA.
Regards,
Roberto.
Regarding the http error 403 trying to execute scripts from applications (working fine from browser) stills unsolved.
Regards,
Roberto.
Regards/Saludos,
Roberto
(Veritas Filia Temporis)
Roberto
(Veritas Filia Temporis)
- Rathinagiri
- Posts: 5471
- Joined: Tue Jul 29, 2008 6:30 pm
- DBs Used: MariaDB, SQLite, SQLCipher and MySQL
- Location: Sivakasi, India
- Contact:
Re: HBTIP, PHP, MySQL and ofcourse HMG
I will try today and come with the results, Roberto.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
South or North HMG is worth.
...the possibilities are endless.
- Roberto Lopez
- HMG Founder
- Posts: 4004
- Joined: Wed Jul 30, 2008 6:43 pm
Re: HBTIP, PHP, MySQL and ofcourse HMG
Thanks!rathinagiri wrote:I will try today and come with the results, Roberto.
Regards,
Roberto.
Regards/Saludos,
Roberto
(Veritas Filia Temporis)
Roberto
(Veritas Filia Temporis)
- Roberto Lopez
- HMG Founder
- Posts: 4004
- Joined: Wed Jul 30, 2008 6:43 pm
Re: HBTIP, PHP, MySQL and ofcourse HMG
Well... I've tested other servers and the problem not occurred again.rathinagiri wrote:I will try today and come with the results, Roberto.
I guess that the problem could be related to byethost only. Maybe they check for client browser name and version.
This is the only explanation that comes to me right now...
Sorry to disturb you with this.
Regards,
Roberto.
Regards/Saludos,
Roberto
(Veritas Filia Temporis)
Roberto
(Veritas Filia Temporis)
- Rathinagiri
- Posts: 5471
- Joined: Tue Jul 29, 2008 6:30 pm
- DBs Used: MariaDB, SQLite, SQLCipher and MySQL
- Location: Sivakasi, India
- Contact:
Re: HBTIP, PHP, MySQL and ofcourse HMG
No problem Roberto.
I too had checked with my host. It doesn't give any problem here.
I too had checked with my host. It doesn't give any problem here.
In that case, what can we do?!Maybe they check for client browser name and version.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
South or North HMG is worth.
...the possibilities are endless.
- Roberto Lopez
- HMG Founder
- Posts: 4004
- Joined: Wed Jul 30, 2008 6:43 pm
Re: HBTIP, PHP, MySQL and ofcourse HMG
I don't know.rathinagiri wrote:No problem Roberto.
I too had checked with my host. It doesn't give any problem here.
In that case, what can we do?!Maybe they check for client browser name and version.
I have not enough free time now, but we'll should start reviewing HBTIP code, maybe the answer be there.
Regards,
Roberto.
Regards/Saludos,
Roberto
(Veritas Filia Temporis)
Roberto
(Veritas Filia Temporis)