Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. This topic has been moved to PHP Applications. http://www.phpfreaks.com/forums/index.php?topic=326314.0
  2. You speak of 'framework' like it is one specific thing. There are many frameworks written for PHP. I think you'll find most decent programmers are using frameworks. It would be a very small project where writing from scratch would be considered IMO.
  3. One method would be to use the imap extension. http://php.net/imap
  4. Apache does not provide session storage, PHP does, or you can use your own. What is the issue?
  5. This is the most common of errors. See http://www.phpfreaks.com/forums/index.php?topic=37442.0
  6. trq

    wysiwyg

    There are plenty of wysiwyg editors around (google them) that are easy to place into your pages. PS: Because these are obviously implemented on the client side, they have little to do with PHP. They are usually implemented in JavaScript.
  7. You can only set the include_path directive once, you are setting it once (using invalid paths anyway) to include PEAR, then again to include smarty. You need to separate your paths by ; within one call to include_path. include_path = ".;C:\xampp\php\PEAR;C:\xampp\Smarty\libs" The first . ensures the current directory is on your path and that the include functions will work.
  8. Considering you have provided zero information, no.
  9. Sounds to me like you have broken your include_path within your ini file. Can we see that?
  10. This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=326179.0
  11. Surely you wouldn't have been assigned an assignment based on stuff you don't (or shouldn't know). In other words, if the assignment is designed to test your ability with 'some server side language' and you don't yet know 'some server side language' you will fail said assignment. Even if you download code which fulfills these requirements, it will be licensed and will generally require the authors name be maintained along with the code.
  12. A user doesn't create other Users either. A User_Manager (or similar) might.
  13. Considering a User doesn't sound like it should be related to a Post probably the later. I would call the method simply 'add' too, if this class is Post we should know whats it's adding automatically.
  14. Install ssmtp, (see http://linux.die.net/man/8/ssmtp) it is a small sendmail alternative. Config for Gmail would look something like: mailhub=smtp.gmail.com:587 rewriteDomain=yourdomain.com hostname=yourdomain.com UseSTARTTLS=YES AuthUser=user@yourdomain.com AuthPass=userpass FromLineOverride=YES You will likely want to setup a separate email user (done through the Gmail GUI) for your server to use.
  15. Assuming this is being executed on Linux.... You don't even need Perl. find -type f -name '*.php' -exec sed -i 's/search_string/replace_string/g' {} \; of course you could still use it.... find -type f -name '*.php' -exec perl -pi -w -e 's/search_string/replace_string/g;' {} \;
  16. You should be able to get this done in one query especially considering your using Ajax (because you can execute the query as soon as a single item is moved, not just after all the moves have happened and the form has been submitted). You need to rethink your logic. Tell us more about what it is you are doing.
  17. Unless you implement your own session functionality it is provided via the $_SESSION array in php.
  18. We don't need a link to your site, it just makes you post wreak of spam. What exactly do you need help with?
  19. Not that simply echoing things like 'connection failed' is good error handling in the first place, but removing error handling will make your code worse, not improve it. You should be trying to catch as many possible error conditions as you can.
  20. You don't connect to shares. Mount it, then access it. What exactly do you want to do with it from php?
  21. We have discussions on this board that have thousands of replies, do you really think they are all stored alongside the initial question? No. You need to relate a 'post' to a reply. So, all posts have an id and parent_id column. Original posts have a parent_id of 0 while replies to posts have a parent_id that is equal to the original posts id. This is a simple relationship.
  22. This topic has been moved to PHP Regex. http://www.phpfreaks.com/forums/index.php?topic=326004.0
  23. If your using Mysql, you will then also (at least) need to run your data through mysql_real_escape_string after using the above function.
  24. User inputted data should not be just blindly inserted into a database, it needs to be validated and sanitized first. Without form() being defined, this code would ALWAYS generate a fatal error.
×
×
  • 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.