Jump to content

Daniel0

Staff Alumni
  • Posts

    11,885
  • Joined

  • Last visited

Everything posted by Daniel0

  1. Maybe you should check out what var_dump does
  2. We cannot really tell. You would check the length immediately before inserting it into the database. It is probably doing some other sort of validation during the form processing. If you have absolutely no experience with programming whatsoever, you should start a simpler project though.
  3. The PHP documentation team can. is_dir is_file
  4. if (strlen($string) > 140) { echo 'too long'; } Then remove the part that makes it moderated.
  5. lol (for real).
  6. Do you have error reporting on?
  7. I suppose you can do this: return strpos($string, 'No <b><a href="http://dmoz.org/">Open Directory Project</a></b> results found') !== false; Then it'll return false if there is no listing for that domain.
  8. Daniel0

    PHP CLI

    You can do it on any platform. Check out the PHP manual for more information. It's got a section about the CLI.
  9. Daniel0

    PHP CLI

    That is because CLI means Command Line Interface. So PHP CLI would be using PHP from the command line.
  10. I've got a VPS. A dedicated server would be overkill for my needs.
  11. That's quite a surprise to me. As I said, it is something I would expect from any web host. Then again, I've never purchased shared hosting.
  12. I would expect all webhosts to have that.
  13. That doesn't necessarily mean you cannot write a TDD primer.
  14. What do you mean with "doing .htaccess on a folder"? .htaccess files just contain Apache configuration directives. Not only does it have nothing to do with PHP whatsoever, but it can all be looked up in the Apache documentation.
  15. Here is yet another alternative: http://devzone.zend.com/article/4571-Fetching-multiple-random-rows-from-a-database
  16. A sub query returns a result, like all queries do, and you can use that result as a variable in your query. That's it, essentially.
  17. http://web.archive.org/web/20080209154336/http://www.phpit.net/article/simple-mvc-php5/
  18. A login script is essentially so simple that it's not even worth dedicating a tutorial for that. Stuff involved is essentially form processing, database access and sessions/cookies. We have a tutorial for sessions and cookies and we have one for database access and another one focusing on joins and unions. Then you have form processing, but that's fairly straightforward. You simply read from the $_GET or $_POST superglobal. You might also be interested in this blog post that talks about breaking a script/application down into logical elements the same way I just did.
  19. You mean like this? http://www.phpfreaks.com/tutorial/debugging-a-beginners-guide
  20. Please do not post links to download copyrighted material that you do not have the right to redistribute yourself.
  21. I'll sticky this for further reference and in case other people might know books that people might find useful.
  22. I can't remember when I've last used FTP. I always use SSH, SCP and SVN.
  23. I've read some of SitePoint's Simply JavaScript. At the time I read it I found it pretty good.
  24. [quote author=lukkyjay link=topic=119433.msg728404#msg728404 date=1193718287] I'm just now starting to learn php for a project on my own site.  I don't understand how a WYSIWYG would work with php, but that would be awesome if it were actually possible.  Can you get specific about the best WYSIWYG for a beginner? [/quote] WYSIWYG is for HTML only. Best is a matter of personal preference and hence the reason why this and [url=http://www.phpfreaks.com/forums/index.php/topic,54859.0.html]this[/url] topic are created.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.