quiphics Posted February 28, 2008 Share Posted February 28, 2008 Ok, I had a simple PHP script, sending form data to an email address, and it works fine on my server (linux). I put the same form, with the same code, on my client's server (microsoft - aplus.net) and it no longer works; now it posts this error message PHP Warning: PHP Startup: SV�t$W�=���VhH��j: Unable to initialize module Module compiled with module API=20020429, debug=0, thread-safety=1 PHP compiled with module API=20060613, debug=0, thread-safety=1 These options need to match in Unknown on line 0 PHP Warning: PHP Startup: SVWj: Unable to initialize module Module compiled with module API=20020429, debug=0, thread-safety=1 PHP compiled with module API=20060613, debug=0, thread-safety=1 These options need to match in Unknown on line 0 PHP Warning: PHP Startup: SVWj: Unable to initialize module Module compiled with module API=20020429, debug=0, thread-safety=1 PHP compiled with module API=20060613, debug=0, thread-safety=1 These options need to match in Unknown on line 0 Now, I don't know anything about PHP, I used a freeware script, so I have no idea how to debug, or what this means. Can anyone help out a little? If you want the mailing script, or to see the form in action, let me know. Quote Link to comment https://forums.phpfreaks.com/topic/93576-phpmicrosoftproblem/ Share on other sites More sharing options...
premiso Posted February 28, 2008 Share Posted February 28, 2008 Sounds like the server on the clients side does not have php installed correctly. I would check with his host and ask them what the heck. Quote Link to comment https://forums.phpfreaks.com/topic/93576-phpmicrosoftproblem/#findComment-479521 Share on other sites More sharing options...
vicodin Posted February 28, 2008 Share Posted February 28, 2008 Def server error... Talk to your hosting company or if you installed it; reinstall it... Quote Link to comment https://forums.phpfreaks.com/topic/93576-phpmicrosoftproblem/#findComment-479537 Share on other sites More sharing options...
fireMind Posted February 28, 2008 Share Posted February 28, 2008 Hmm post the script someplace if you can, I couldn't imagine a host has straight up just a janky PHP install (at least not for long if they want to keep any customers;) It could be a problem trying to initialize/access an uncommon or non-existant PHP module on the server. More common issue. Also, I don't know the specifics, but from what I understand, the email functionality of PHP is typically strenuous on the server and thus several alternatives have been developed/deployed to cope, so maybe it's trying to use an alternative that isn't yet installed on the server/isn't accessible. Anyway, yes, plz, post or msg the script if you can, I'd be happy to take a look. Quote Link to comment https://forums.phpfreaks.com/topic/93576-phpmicrosoftproblem/#findComment-479577 Share on other sites More sharing options...
quiphics Posted February 29, 2008 Author Share Posted February 29, 2008 Right, I thought it might be a problem with the server, and they refused to speak to me; if I can tell them specifically what needs tweaking they will look into it. Horrible hosting company, overseas support (and obvious about it) *shudder* keep far away. Anyways, here is the actual script; remember, already working on my (linux) server... <?php //This is a very simple PHP script that outputs the name of each bit of information (that corresponds to the <code>name</code> attribute for that field) along with the value that was sent with it right in the browser window, and then sends it all to an email address (once you've added it to the script). if (empty($_POST)) { print "<p>No data was submitted.</p><p>Please use the back button on your browser and try again.</p>"; exit(); } //Creates function that removes magic escaping, if it's been applied, from values and then removes extra newlines and returns to foil spammers. Thanks Larry Ullman! function clear_user_input($value) { if (get_magic_quotes_gpc()) $value=stripslashes($value); $value= str_replace( "\n", '', trim($value)); $value= str_replace( "\r", '', $value); return $value; } //Create body of message by cleaning each field and then appending each name and value to it $body ="Here is the data that was submitted:\n"; foreach ($_POST as $key => $value) { $key = clear_user_input($key); $value = clear_user_input($value); if ($key=='extras') { if (is_array($_POST['extras']) ){ $body .= "$key: "; $counter =1; foreach ($_POST['extras'] as $value) { //Add comma and space until last element if (sizeof($_POST['extras']) == $counter) { $body .= "$value\n"; break;} else { $body .= "$value, "; $counter += 1; } } } else { $body .= "$key: $value\n"; } } else { $body .= "$key: $value\n"; } } extract($_POST); //removes newlines and returns from $email and $name so they can't smuggle extra email addresses for spammers $email = clear_user_input($email); $name = clear_user_input($name); //Create header that puts email in From box along with name in parentheses and sends bcc to alternate address $from='From: '. $email . "(" . $name . ")" . "\r\n" . 'Bcc: [email protected]' . "\r\n"; //Creates intelligible subject line that also shows me where it came from $subject = 'Online Application Info'; //Sends mail to me, with elements created above mail ('[email protected]', $subject, $body, $from); ?> Quote Link to comment https://forums.phpfreaks.com/topic/93576-phpmicrosoftproblem/#findComment-479666 Share on other sites More sharing options...
trq Posted February 29, 2008 Share Posted February 29, 2008 It is definately a server error. PHP is having trouble loading. It could be a problem trying to initialize/access an uncommon or non-existant PHP module on the server. Considering that php does not ehave modules you can count that out. However, PHP runs as an ASAPI module with IIS, and that is what appears to be having issues loading. Quote Link to comment https://forums.phpfreaks.com/topic/93576-phpmicrosoftproblem/#findComment-479671 Share on other sites More sharing options...
fireMind Posted February 29, 2008 Share Posted February 29, 2008 Nothin funky in there. Only thing I would suspect is the mail function, which sometimes has limited functionality (if not disabled altogether). If nothing else I would run a simple test of the mail function mail('[email protected]', 'mail function test', 'Just a test of PHPs mail function'); And if that DOES work, then perhaps something else needs attention. Im headed offline right now but good luck. Quote Link to comment https://forums.phpfreaks.com/topic/93576-phpmicrosoftproblem/#findComment-479673 Share on other sites More sharing options...
quiphics Posted March 2, 2008 Author Share Posted March 2, 2008 ok, i put the mail function in a blank page. i got the email, but still received the error message after loading the page, the same thing - here it is copied and pasted: PHP Warning: PHP Startup: SV�t$W�=���VhH��j: Unable to initialize module Module compiled with module API=20020429, debug=0, thread-safety=1 PHP compiled with module API=20060613, debug=0, thread-safety=1 These options need to match in Unknown on line 0 PHP Warning: PHP Startup: SVWj: Unable to initialize module Module compiled with module API=20020429, debug=0, thread-safety=1 PHP compiled with module API=20060613, debug=0, thread-safety=1 These options need to match in Unknown on line 0 PHP Warning: PHP Startup: SVWj: Unable to initialize module Module compiled with module API=20020429, debug=0, thread-safety=1 PHP compiled with module API=20060613, debug=0, thread-safety=1 These options need to match in Unknown on line 0 any specifics as to what I can tell the server company? Quote Link to comment https://forums.phpfreaks.com/topic/93576-phpmicrosoftproblem/#findComment-481901 Share on other sites More sharing options...
wildteen88 Posted March 2, 2008 Share Posted March 2, 2008 That error normally means PHP is trying to startup a library/extension which is not of the same build as the PHP interpreter. Quote Link to comment https://forums.phpfreaks.com/topic/93576-phpmicrosoftproblem/#findComment-481906 Share on other sites More sharing options...
quiphics Posted March 3, 2008 Author Share Posted March 3, 2008 Ok, I forwarded that message to the hosting company; I doubt they will do anything though. If anybody else can think of a different possible solution, I would appreciate it. Thanks for all your help! Quote Link to comment https://forums.phpfreaks.com/topic/93576-phpmicrosoftproblem/#findComment-482005 Share on other sites More sharing options...
quiphics Posted March 3, 2008 Author Share Posted March 3, 2008 Ok, the hosting company has sent me the configurations that are set for PHP. Unfortunately, I don't really know what it all means. Any help? Configurations for the server are at http://www.bluechipbros.com/test.php Any help is much appreciated! Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/93576-phpmicrosoftproblem/#findComment-482347 Share on other sites More sharing options...
quiphics Posted March 4, 2008 Author Share Posted March 4, 2008 *Bump Quote Link to comment https://forums.phpfreaks.com/topic/93576-phpmicrosoftproblem/#findComment-482560 Share on other sites More sharing options...
quiphics Posted March 5, 2008 Author Share Posted March 5, 2008 *bump Quote Link to comment https://forums.phpfreaks.com/topic/93576-phpmicrosoftproblem/#findComment-483625 Share on other sites More sharing options...
wildteen88 Posted March 5, 2008 Share Posted March 5, 2008 It is hard to recommend anything by looking at the phpinfo page. I don't know what to suggest sorry. Quote Link to comment https://forums.phpfreaks.com/topic/93576-phpmicrosoftproblem/#findComment-484108 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.