PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → [WB19] GeneratePassword in PHP project
[WB19] GeneratePassword in PHP project
Iniciado por guest, 18,nov. 2014 09:49 - 8 respuestas
Publicado el 18,noviembre 2014 - 09:49
Hi everybody,
I've migrated a dynamic project to a PHP and I get an error from WB that 'GeneratePassword' fonction is not allowed in PHP.
Please, can anybody tell me how to generate a password in PHP?. It is a key point in my project.
Thanks in advance.
Jordi
Publicado el 18,noviembre 2014 - 10:27
Hi Jordi

The basic answer is: with Random, and the string's management functions...

After that, it all depends on how you want your password to be built (numbers only, any chars, words, uppercase/lowercase, etc)

Now the real question for me would be: WHY do you want to do it in webdev/PHP?

Best regards
Publicado el 18,noviembre 2014 - 12:51
Hi Fabrice,

In order to deploy my original webdev project I should install webdev server application in the server and this has an additional cost for me and also has a limitation of 10 users online at no cost.
In my current webdev project I'm using the generatepassword fonction in the way you say.
For this reason I've migrated to PHP.

Thanks for your attention.
Jordi
Publicado el 18,noviembre 2014 - 15:32
Hi Jordi

a shared webdev hosting starts at 5€/month...
A webdev server license cost less than 300€...

The time you are going to spend solving that password problem ALONE will cost you way more than that. And that is only ONE in a series of problems that you WILL have in webdev PHP.

So in case I wasn't clear before, I'll say it plainly now: you should just forget about webdev/PHP <img src="/NG2013_WEB/ui/smiley/1.gif" align=absmiddle border=0 alt=":-)">

Best regards
Publicado el 18,noviembre 2014 - 17:30
Hi Fabrice,

where can I see the prices and volum for shared webdev hosting?
I don't know how many concurrent users will be connected <img src="/NG2013_WEB/ui/smiley/2.gif" align=absmiddle border=0 alt=":(">

Jordi
Publicado el 18,noviembre 2014 - 20:23
Hi Jordi

the price I was giving you was from kalanda.net, for 2 sites and (if I remember correctly) 300 MB of DB

They have several other choices, of course, and are supposed to have their web site available in english at this point. If not, you can ask questions at contact@kalanda.net, they DO speak english

Best regards
Publicado el 18,noviembre 2014 - 20:38
Hi Jordi,

To add to Fabrice's voice, we are satisfied customers of Kalanda and are with them for quite some years now. We have good performances on a shared plan.

(Many years ago we switched from PHP to AWP because it was "just working" in AWP but there was always "something" with PHP. We never tried PHP since. Maybe it's better today, but we do not have the time to look into that.)

Best regards,
Alexandre Leclerc
Miembro registrado
409 mensajes
Publicado el 18,noviembre 2014 - 22:35
Hi Jordi, service at kalanda is extremely serious, and they are willing to help in any situation. You can ask them for a trial period on a shared server, so you can do your tests in the real world...

Have fun !

--
If it works, don't touch it, don't look at it, AND don't fix it ! No patches, no SP ! JUST DONT FIX IT.
Publicado el 19,noviembre 2014 - 02:09
Hi,

Is is possible to make some nice apps with php. I did. However if you want

- Graphs
- Print to PDF
- want to add a tiny editor in your app ( tried to get that to work in php and it just wasnot possible. eventough pcsoft sqid that it would work as with dynamic webdev this was not the case. Indynamic webdev modus it workd as expected in php it was not possible.
- Have a lot more functions in general
- OOp programming

Then it might be a good i dea to use webdev application server

However
If you donnot need those things . Just a quick way to create an application with mysql I still think it is a good way. to go. I made a saas application that runs on a 50 cent hosting account. ( still in test modus. I put it on the net so my client can play with it )
Nice thing with php is that php / mysql/apache is an industrie standard. So for me when the saas project goes live on a vps the vps people can just add more power if needed. They even can do loadbalancing etc . I donnot have to do anything for that I donnot know it that is the case with application server.

So i would not foreget about php modus . I hope pcsoft does so as well. I hope the add graphs etc to it


Regards

Allard