Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. http://au2.php.net/manual/en/ini.core.php#ini.upload-max-filesize
  2. Sorry, but its not at all clear what your wanting to do.
  3. Your entire authentication logic is flawed as well IMO. if ($result = mysql_query("SELECT id FROM users WHERE username = '$username' && `password` = '$password' LIMIT 1")) { if (mysql_num_rows($result)) { // valid, log user in } else { // invalid. show error } } else { // query failed, handle error } Letting crackers know that they have a valid user name but not a valid pass & vice verso is never a good idea.
  4. Cool. I run a few different sites from servers at home too. I'm using a pretty simple virtualization (openvz), but it suites me fine. There's allot of good articles on that particular site I linked you too.
  5. Sorry, there is not. We are working on a bunch of new stuff at the moment so (not yet announced) .... this might be something for the future.
  6. mysql_query("UPDATE table SET user = '{$name}text' WHERE id = '5'");
  7. Yes what? There is nothing there that puts any paths on your include path. How about.... <?php defined('DS') ? null : define('DS', DIRECTORY_SEPARATOR); defined('SITE_ROOT') ? null : define('SITE_ROOT', $_SERVER['DOCUMENT_ROOT']); defined('LIB_PATH') ? null : define('LIB_PATH', SITE_ROOT.DS.'includes'); set_include_path(get_include_path() . PATH_SEPARATOR . LIB_PATH); require_once("config.php"); require_once("functions.php"); // core objects require_once("session.php"); require_once("database.php"); require_once("pagination.php"); require_once("PHPMailer".DS."class.phpmailer.php"); require_once("PHPMailer".DS."class.smtp.php"); Then instead of.... require_once("../../../includes/initialize.php"); which should have been.... require_once(LIB_PATH.DS."initialize.php"); anyway shouldn't it? You can now use.... require_once("initialize.php");
  8. Well, any will be capable of building the site. the infrastructure underneath might be a different kettle of fish though because its more Linux specific scripting.
  9. This topic has been moved to PHP Regex. http://www.phpfreaks.com/forums/index.php?topic=320197.0
  10. You'll need to pass the data through the $_SESSION array or via hidden form fields.
  11. Have you actually added these paths to your include_path or how are you trying to include files?
  12. You would need to place the id in the <option> elements value attribute or somewhere. Something like.... <option value="<?php echo $row->getId(); ?>"><?php echo $row->getName();?></option>
  13. The menu script looks like it uses mootools. This will interfere with jQuery and vice versa. See (here) for how to adjust jQuery to play nice with other frameworks.
  14. Assuming you meant on Linux because Windows is a wimp when it comes to anything to do with servers. http://library.linode.com/email/postfix/
  15. That seriously sounds like you simply have a crap host, or crap hosting plan. There are more bad hosts out there than good ones. Hell, we have people around here asking question about Linux & Apache because they've never used them before only to start providing hosting days later. There are good cheap(ish) cloud hosting providers around but most of them you'll need to manage the server yourself. if you can't do that 9and you shouldn't without at least some experience) there are others that off managed vps accounts for a bit more.
  16. How should we know? What are you expecting the $facebook object to be? Do you have a facebook class?
  17. This topic has been moved to Ajax Help. http://www.phpfreaks.com/forums/index.php?topic=320161.0
  18. This topic has been moved to Other Web Server Software. http://www.phpfreaks.com/forums/index.php?topic=320152.0
  19. So, its a php script you need to run? A few ways to do it. If you know the absolute file system path to the you should use that and execute the script via php's command line interpreter. This way you can remove it from your website so that no one can request it and execute your backup. So, to do that would look something like.... /usr/bin/php /home/yourusername/script.php This tells Bash (your shell) to execute script.php using php's cli which is usually installed into /usr/bin/php If you can't do it that way and must execute the script via your server (and therefore a url) you will need to use a program that can execute http requests. Curl or wget are your best options. /usr/bin/wget http://www.mydomain.com/script.php
  20. Don't refetch all 4 entries, just get entries that are newer than what your displaying.
×
×
  • 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.