trq
Staff Alumni-
Posts
30,999 -
Joined
-
Last visited
-
Days Won
26
Everything posted by trq
-
http://au2.php.net/manual/en/ini.core.php#ini.upload-max-filesize
-
Sorry, but its not at all clear what your wanting to do.
-
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.
-
Nightmare setup PHP,IIS7 and mssql
trq replied to phlymo's topic in PHP Installation and Configuration
http://sqlsrvphp.codeplex.com/ -
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.
-
url_encode
-
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.
-
mysql_query("UPDATE table SET user = '{$name}text' WHERE id = '5'");
-
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");
-
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.
-
This topic has been moved to PHP Regex. http://www.phpfreaks.com/forums/index.php?topic=320197.0
-
Form1 field to auto populate Form2 same domain
trq replied to AllenHobson's topic in PHP Coding Help
http://www.tuxradar.com/practicalphp/10/3/0 -
Cool, all sorted then.
-
Form1 field to auto populate Form2 same domain
trq replied to AllenHobson's topic in PHP Coding Help
My answer remains. Use sessions. -
Form1 field to auto populate Form2 same domain
trq replied to AllenHobson's topic in PHP Coding Help
You'll need to pass the data through the $_SESSION array or via hidden form fields. -
Have you actually added these paths to your include_path or how are you trying to include files?
-
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>
-
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.
-
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/
-
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.
-
This topic has been moved to Ajax Help. http://www.phpfreaks.com/forums/index.php?topic=320161.0
-
This topic has been moved to Other Web Server Software. http://www.phpfreaks.com/forums/index.php?topic=320152.0
-
Question about Automatic MySQL Backups using Cron Jobs
trq replied to galvin's topic in Other Web Server Software
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 -
Don't refetch all 4 entries, just get entries that are newer than what your displaying.