
Q
Members-
Posts
50 -
Joined
-
Last visited
Never
Everything posted by Q
-
[SOLVED] php mail function not sending mails, nor returning errormessages
Q replied to Q's topic in Microsoft IIS
Okay.. Everything looks like it's supposed to on my end. I've given the task to the server administrator. Thanks for the help guys! -
[SOLVED] php mail function not sending mails, nor returning errormessages
Q replied to Q's topic in Microsoft IIS
Hi guys! - Thank you very much for the answers.. I have tried to turn error handling on in PHP, and there is no underlying errors - I'll try the other things monday morning! - Again.. Thank you! -
Or at least make the loading page insert the info for the images on loading, this will make sure you would never have to get the size of any image more than once..
-
How bout some AJAX?
-
[SOLVED] php mail function not sending mails, nor returning errormessages
Q replied to Q's topic in Microsoft IIS
No one's got anything? -
[SOLVED] php mail function not sending mails, nor returning errormessages
Q replied to Q's topic in Microsoft IIS
This is what the log contains: #Software: Microsoft Internet Information Services 6.0 #Version: 1.0 #Date: 2009-07-30 06:08:06 #Fields: time c-ip cs-method cs-uri-stem sc-status 06:08:06 10.128.0.196 HELO - 250 06:08:06 10.128.0.196 MAIL - 250 06:08:06 10.128.0.196 RCPT - 250 06:08:06 10.128.0.196 DATA - 250 06:08:06 10.128.0.196 QUIT - 240 -
Hi guys.. I've been banging my head against a wall the last two weeks. I simply can't get IIS Mail server to relay mails from my php scripts on the same server. I've been googling and tried everything I can imagine could help. Changing the smtp server in php.ini to all kinds of different settings, adding the sendmail_from, and still nothing. A weird thing though is that the mail function does not return any errors, not matter what I do. I've turned error reporting on in all different ways possible. Please, someone.. Bring me the magic cure! Edit: Just found out the mails is put in the C:\Inetpub\mailroot\queue folder, but never sent? Why is that?
-
You should look into cURL. Edit: typos..
-
Try turning on error reporting. ini_set("display_errors", E_ALL); This might give you the reason of the hang
-
No, your complete path like /public_html/site.tld/profile/avatars/blah.jpg
-
php.net's got the answer
-
You need to remember your curly brackets! <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-… <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Validate Credit Card</title> </head> <body> <H1> Validate Credit Card </H1><hr /> <?php if (!isset($_GET['ccnumber'])) { echo "<p>Enter your credit cad number.</p>"; } else { $Payment = $_GET['ccnumber']; $ValidPayment = str_replace("-", "", $Payment); $ValidPayment = str_replace(" ", "", $ValidPayment); if (!is_numeric($ValidPayment)) { echo "<p>You did not enter a valid credit card number!</p>"; } else { echo "<p>Your credit cardnumber is $ValidPayment.</p>"; ?> <form action="ValidateCreditCard.php" method="get" enctype="application/x-www-form-urlenc… <p><input type="text" name="ccnumber" size="20" value=""<?php if (!empty($_GET['ccnumber'])) echo $_GET['ccnumber'] ?> /></p> <p><input type="submit" value="Validate Credit Card" /> </form><hr /> </body> </html> You can't go and mix it all up like you've done..
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Home</title> </head> <body> <?php require_once("newlink.php"); $obj = new newlink(); if (isset($_GET["page"]) && $_GET["page"] == 1) { echo $obj->displayPage(); } else { echo $obj->displayLink(); } ?> </body> </html>
-
Okay? How bout using a session with an array of sites visited?
-
What kind of hosting do you have?
-
In that case you probably have a { or } too much somewhere
-
Can you try making a print_r() of your array? <pre> <?php print_r($myData); ?> </pre>
-
Google's got the answer! Edit: Thanks matey!
-
I'd return it as a result instead, so that you just echo your function call where you need your numbers of rows. I think this is the best practice for OOP too
-
Try enabling errors ini_set("display_errors", E_ALL);
-
I'm not sure I understand your problem? Could you elaborate it?
-
A quick read and it seems fine to me I only have one point I'd like to make, and it's nothing about your OOP; but you should really consider writing your MySQL functions in capital letters. Makes it so much easier to read. The SQL you have there would be written like this: SELECT * FROM contents ORDER BY id ASC
-
You know google gives you minus points if you have more than 5 meta keywords right? - I'd make a more advanced script that would search the string for the most relevant words, and pick 5 of those
-
How can I make a page restricted to three daily pageviews?
Q replied to jdock1's topic in PHP Coding Help
Example code snatched from php.net <?php // get contents of a file into a string $filename = "/usr/local/something.txt"; $handle = fopen($filename, "r"); $contents = fread($handle, filesize($filename)); fclose($handle); ?>