Jump to content

rhodesa

Staff Alumni
  • Posts

    5,253
  • Joined

  • Last visited

Everything posted by rhodesa

  1. The better, but slightly harder way is to use the cURL module to send the data via a server side POST (this doesn't involve the client at all)
  2. Agreed, a submit form should always use the methodology: Form Page ---submits to---> Email Sending Page ---header() redirect---> Thank you page That way, if they refresh, it just refreshes the Thank you page
  3. I agree with nikefido And unfortunately you are right. That is too much code for me to sift through right now. But I will suggest that if it works on 100, but not 10,000, that it is most likely an unexpected character in your data. Just start using the half method: Try it with 5,000. Doesn't work. Try it with 2,500. Does work. Try it with 3,750. etc,etc, etc. This will help you narrow down to what exact record is causing the issue.
  4. If you are referring to a normal form (not one submitted with ajax), the form should submit only once. Clicking the Submit button over and over shouldn't post multiple pages. (As far as I know)
  5. It was probably a firewall issue. Glad it works now though.
  6. I assumed you were talking about a PHP script that does 30 seconds of processing. And, while the page is loading (processing) in a browser, they push the refresh 'button'. This basically means they are issuing an abort, then asking for the page again. What am I missing here?
  7. Again...which OS? Windows, Linux, etc? If Windows, try running the MySQL Instance Config Wizard again and make sure TCP/IP Networking is enabled.
  8. what is the output from this script: <?php ini_set('display_errors','on'); $dbhost = 'localhost'; $dbuser = 'php'; $dbpass = '*****'; $dbname = 'chadd'; $conn = mysql_connect($dbhost, $dbuser, $dbpass) or die('Error connecting to mysql'); mysql_select_db($dbname) or die('Error selecting database'); echo "connection made"; ?>
  9. First...what OS/MySql version are you working with. Second...did you follow any instructions when setting it up? If so, please link.
  10. Depends on your ignore_user_abort setting in php.ini Visit http://us2.php.net/ignore_user_abort for more information
  11. Access to those elements is restricted for security reasons. If you want to track where users are coming from (and you are using PHP), you can use the $_SERVER['HTTP_REFERER'] variable. More info can be found here: http://www.informit.com/articles/article.aspx?p=29878&seqNum=4&rl=1
  12. yeah...make sure the following is set in your php.ini: allow_url_include = On
  13. 1) put that code into it's own file...let's call it image.php 2) on your website, refer to it like you would a normal image: <img src="image.php" />
  14. Merge the two and like magic.... public function display( ) { global $logged_in_member; $members = $this->model->getMembers( ); foreach ($members as $member) { $name = $member->getName( ); if ($logged_in_member->checkIfMemberOfGroup("Admin")) { echo "<p>Name: $name <a href='/delete/$name'>Delete</a></p>"; } else { echo "<p>Name: $name</p>"; } } }
  15. All of the formats for the date function are available at http://php.net/date $time = strtotime("Tue, 08 Jan 08 18:48:07 +0000"); print date("D, d M Y H:i:s T",$time);
  16. What version of PHP are you running? From the php.net site: You can always use readfile() instead of include.
  17. Installation instructions can be found at http://us.php.net/mysql Basically, remove the ';' before the following line in your php.ini file: extension=php_mysql.dll oh...and don't forget to restart apache
  18. put the following as the first line of php code and see if any more errors are printed: ini_set('display_errors','on');
×
×
  • 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.