Jump to content
Larry Ullman's Book Forums

Dale

Members
  • Posts

    4
  • Joined

  • Last visited

Dale's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. At the moment, I'm still working with CodeLite, Eclipse, and Netbeans. Don't know any of them well enough to reach a decision, but I noticed they all have features I don't need at the moment, but would come in handy in the future. After screwing up my site by uploading files, I'm now looking in to SVN and GIT to version things (once I figure out how versioning works and how it is incorporated into the IDEs. Don't have plans to collaborate with anyone, besides myself. So far, that's been bad enough. I found your book PHP for the Web: Visual QuickStart Guide (5th Edition) helpful in understanding what I've been doing over the years, but for a lot of it I already knew from trial and error. Was please to know I had actually learned something while copy/pasting lines of code. Seems like I'm ready for PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide. Does that book cover php7 and mysqli? Also, do any of your books cover making templates with php or how to use Twig? Thanks for your time, and for writing these books. For so long, my main source of understandable information came from googling forever to find an answer that not only worked, but was comprehensible. Dale
  2. (My setup is in my sig) Here's my code function decode($source) { $source = html_entity_decode($source, ENT_QUOTES, "ISO-8859-1"); $source = preg_replace('/(\d+);/me',"chr(\\1)", $source); $source = preg_replace('/([a-f0-9]+);/mei',"chr(0x\\1)", $source); return $source; } Errors Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback Revised code Seems simple enough. so I changed preg_replace with preg_replace_callback New Errors Warning: preg_replace_callback(): Requires argument 2, 'chr(\1)', to be a valid callback Warning: preg_replace_callback(): Requires argument 2, 'chr(0x\1)', to be a valid callback I have been trying to fix this for two days now, and am posting here to find the answer. Since I'm so new to PHP, the pages on php.net don't make sense to me for this, and the answers that popup on StackOverflow are mostly criticisms of the questions people have posted about them, rather than answering the questions or providing a link to the duplicate question they complain about. My favorite answer was on a website that said to turn off warnings as the solution. Got a giggle from that one. I can't believe the fix is complicated, but for the life of me, I can't find it. Dale
  3. And thanks for your answer! I burned through the 30 use trial of RapidPHP before I could connect it with xdebug, and the 30 day trial of ZendStudio, which I quit early, as I couldn't see much difference between it and eclipse, which is free. RapidPHP is only $39.95, but PHP7 seems like an afterthought. ZendStudio has a personal use license for $89.00, but as I said, it seems like a paid clone of eclipse. I have been having some success with both CodeLite, Netbeans, and Eclipse (all free), but if there was paid software out there that would be a lot better for writing and debugging code, at this point, I'd say my price point is around $100.00 Dale
  4. Hello - I'm far enough into the book to discover other than the fact that IDEs are frequently mentioned in how to create or edit php files ("use text editor or IDE"), there is no explanation of what an IDE is, how they are used, which ones are useful, or which one you recommend for starters. After searching the Internet to find what one was, I have download three of them, to see which best suits my needs and my learning curve tolerance. Still sorting through them, but they already are more useful than a simple text editor, especially for a beginner such as myself. That said, would you mind answering those "missing" questions here? Being on a budget, I am exploring three free ones: Netbeans, Eclipse, and CodeLite Thanks, Dale
×
×
  • Create New...