I was thinking of a new project for making a bot that scans daniweb for information and enters useful information into a database then people can ask the website questions and php+mysql will provide answers in paragraph form for the user to read. Is this ok on the legal side of things as I have written bots for my personal use before and have made a tutorial. Also if this is ok by the mods then any help with the algorithm would be appreciated.
cwarn23 387 Occupation: Genius Team Colleague Featured Poster
kvprajapati commented: So nice that work. Simple yet elegant. +4
Recommended Answers
Jump to PostI've posted the question to the moderator lounge:
Jump to PostNobody beside mod or admin can follow that link
Jump to PostNot many replies yet, dont think dani has seen it yet. Happygeek (administrator) has and its currently being discussed.
Jump to PostSome tips for your code cwarn:
Don't use preg_* functions unless absolutely necessary, if you're comparing a static string use strpos or stripos.
Define reused regular expressions in one place (you use
/(.*)[.]([^.\?]+)(\?(.*))?/
three times in the same script, define it once in a variable and use …
Jump to PostAlthough that's good advice Shawn and I will take note of that.
The only thing I would disagree with is the unset(). I have noticed in the past when reassigning string to variable in a loop a few million times the server runs out of memory where as if unset …
All 21 Replies
kvprajapati 1,826 Posting Genius Team Colleague
digital-ether 399 Nearly a Posting Virtuoso Team Colleague
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster
cwarn23 387 Occupation: Genius Team Colleague Featured Poster
jbennet 1,618 Most Valuable Poster Team Colleague Featured Poster
digital-ether 399 Nearly a Posting Virtuoso Team Colleague
cwarn23 387 Occupation: Genius Team Colleague Featured Poster
ShawnCplus 456 Code Monkey Team Colleague
cwarn23 387 Occupation: Genius Team Colleague Featured Poster
ShawnCplus 456 Code Monkey Team Colleague
cwarn23 387 Occupation: Genius Team Colleague Featured Poster
digital-ether 399 Nearly a Posting Virtuoso Team Colleague
cwarn23 387 Occupation: Genius Team Colleague Featured Poster
somedude3488 228 Nearly a Posting Virtuoso
cwarn23 387 Occupation: Genius Team Colleague Featured Poster
somedude3488 228 Nearly a Posting Virtuoso
cwarn23 387 Occupation: Genius Team Colleague Featured Poster
somedude3488 228 Nearly a Posting Virtuoso
cwarn23 387 Occupation: Genius Team Colleague Featured Poster
cwarn23 387 Occupation: Genius Team Colleague Featured Poster
cwarn23 387 Occupation: Genius Team Colleague Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.