Jump to content
UBot Underground

How Do You Use Php &ubot


Recommended Posts

i just started my journey into php ( gotta love the udemy courses),

and i was wondering you uses php in there bots and what do you use it for?

as i learn i, i want to see how they can be tied together.

thanx

stanf

  • Like 1
Link to post
Share on other sites

my own 2 cents,since the topic relates to you beginning learning a language,I do not know any PHP

 

if you are starting your first language,javascript for making bots can be very rewarding for web bots,making custom pages,even apps.

 

I do however regret it as javascript is just very difficult,easy to pick up as their are no syntax's but to get good at it, is very very difficult,countless days spent solving what should be easy problems.I havnt really progressed at all since I got to a certain point,still at beginner level.However even just past beginner level gives you a MASSIVE edge for making bots especially with adding some command line Node JS packages.

 

Python on the other hand,is amazingly simple,you can literally read it probably easier than Ubot code,eventhough you know ubot code and have not ever even read Python,it is very well written and makes sense.Not to mention making robots etc with raspberry pi.And you can use python on Ubot.

 

Example here is a script I took for a raspberry pi today,for motion tracking,comparing two images to determine movement,yes it uses an additional library to do the real hard stuff,but look how simple this code is for doing such a complex operation,obviously I cannot write the code,but I can understand it from reading it,I could not do that with Javascript snippets,that can be not half as complex operations

https://raw.githubusercontent.com/pageauc/motion-track/master/motion-track.py

  • Like 1
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...