Jessica
Staff Alumni-
Posts
8,968 -
Joined
-
Last visited
-
Days Won
41
Everything posted by Jessica
-
As I said before, I'm not angry. You can't tell what I'm feeling because all you can see is the words I type. You might interpret it as me being angry, just as many people would interpret your "poking fun" as genuine arguing. You told me you knew all along I was right and yet just wanted to start an argument - and that's what you got. Yet you seem surprised when people are angry or offended. I am simply no longer interested in chit-chatting with you over IM, as all you ever seem to do is try to insult me and anger me. You spend so much effort trying to upset people and you call it fun, yet you're telling me to think about how I make other people feel. When people get offended at things I say, it's normally an accident - there are some people who I don't like and might purposefully be mean to, but usually I'm simply trying to help them and I just lack tact. You on the other hand are purposefully "joking" in a manner which can easily be mistaken for genuine malice. You can take what I said about redarrow's grammar to be an insult. Honestly, it doesn't matter to me, as I wasn't talking to you. If he was insulted, he can feel bad about it, or he can realize that I never said "Redarrow is a moron who can't spell", but that I said spelling correctly can make your point clearer. People often get offended by people pointing out their mistakes - that isn't what I was trying to do. When I correct someone's grammar, it's usually to try to figure out what they were saying. Or I think English isn't their first language and in that case, they just simply don't know. If someone corrected my Spanish or German, I would try to remember the correction, not get angry or offended. There is only one person on this forum I have purposefully insulted because of their grammar, but I insulted them for other things too. Yes, I do think there are people here who might be too stupid to realize that I was right in the first place, just as there are some who are "too stupid" to realize your jokes are jokes. All of your "jokes" towards me involve insulting and what you call "poking fun", which isn't usually fun for both people. It's fun for you, but not for me, so I asked you to admit that you were joking. You keep trying to act like you know so much about me, that you can somehow tell what my emotions are by my "big words". I don't know you, and you don't know me. I simply know the way you have talked to me recently isn't very friendly and never funny. I'm tired of it so I told you to f- off. Does that mean I'm "red in the face" and going to seriously go cry? No, it means I'm going to stop messaging you and ignore your "jokes", instead of considering you someone I enjoy talking to.
-
http://us3.php.net/file_get_contents "Identical to file(), except that file_get_contents() returns the file in a string,"
-
Turn MySQL date into nice-reading PHP date
Jessica replied to markkanning's topic in PHP Coding Help
print date("F d, Y", strtotime($date)); -
$mailto = info@cleavageonline.com' ; Missing your first ' $mailto = 'info@cleavageonline.com' ;
-
If you make it an int, UPDATE users SET order = order+1
-
$rss = fetch_rss( $url ); What does fetch_rss do? PHP 4 & 5 handling of objects did change, so it could cause problems.
-
I don't think either is right. I'm not too familiar with the ternary, but I think it needs to be like this: $myVar[$i]["var"] = ($a>1?true:false); $a=true and $a=false will both return true, so in your first one it will always be true, because you get the value of that operation. Check out the example on this page: http://us2.php.net/ternary Example 15.3. Assigning a default value And this one: Note: Is is recommended that you avoid "stacking" ternary expressions. PHP's behaviour when using more than one ternary operator within a single statement is non-obvious: Example 15.4. Non-obvious Ternary Behaviour
-
*sniffle*
-
I'm not angry, if I were angry I'd go away :-P
-
Ugh, my comment went on the other topic. Nice title btw My spell checker doesn't have an issue with grammatic, but I guess I meant "sense grammatically".
-
You might consider setting $comments as a constant instead. That automatically makes it global. define('COMMENTS_PER_PAGE', 10); then in the function use it print COMMENTS_PER_PAGE; If you want to be able to change it that won't work, but as you said it's a setting I figure a constant will work better.
-
If you're going to allow every tag except just a few, that's not very safe. That's why I suggested strip_tags, you can allow just the ones you want. Wordpress has a html validator which fixes missing tags, perhaps if you looked through the code for it you might get some ideas.
-
I didn't jump down anyone's case - I was trying to explain to Ted why most people think redarrow wants to host the site, not license it. I normally spell check my posts, and I do make an effort to write coherently. Yes, it's always ironic when someone says something like "Nice Grammer Moron" or something, and we all laugh at "Grammer". I didn't do that - what I wrote was spelled correctly and makes sense grammatically, as I showed in my posts, and you seem to be unwilling to admit it. Where have I made a post so incoherent that people have to decipher it to figure out what I was asking? That would be ironic, if I made posts like the one redarrow did, and then made fun of him for it. I didn't make fun of anyone here, I tried to explain what I thought he was saying and point out why it was difficult for him to get help. If anyone's "jumping down someone's case" here, it's you. This is off-topic now, so I'm done.
-
Do you just not get what you're doing with the code? <?php if ($_SERVER['REQUEST_METHOD']=="POST"){ // we'll begin by assigning the To address and message subject $to=$HTTP_POST_VARS['ToEmail']; $subject="E-mail with attachment"; // get the sender's name and email address // we'll just plug them a variable to be used later $from = stripslashes($_POST['FirstName'])."<".stripslashes($_POST['EMail']).">"; // generate a random string to be used as the boundary marker $mime_boundary="==Multipart_Boundary_x".md5(mt_rand())."x"; // store the file information to variables for easier access $tmp_name = $_FILES['filename']['tmp_name']; $type = $_FILES['filename']['type']; $name = $_FILES['filename']['name']; $size = $_FILES['filename']['size']; $myTitle = $HTTP_POST_VARS['Title']; $myFirstName = $HTTP_POST_VARS['FirstName']; $myLastName = $HTTP_POST_VARS['LastName']; $myTelephone = $HTTP_POST_VARS['Telephone']; $myEmail = $HTTP_POST_VARS['EMail']; $myMessage = $HTTP_POST_VARS['Message']; $ContactBy = $HTTP_POST_VARS['ContactBy']; $FoundUs = $HTTP_POST_VARS['FoundUs']; // here we'll hard code a text message // again, in reality, you'll normally get this from the form submission $message = " My Title is: $myTitle, My First Name is: $myFirstName, My Second Name is: $myLastName, My Telephone number is: $myTelephone, My Email is: $myEmail, Message: $myMessage, Contact Me via: $ContactBy, Found us via: $FoundUs"; // now we'll build the message headers $headers = "From: $from\r\n" . "MIME-Version: 1.0\r\n" . "Content-Type: multipart/mixed;\r\n" . " boundary=\"{$mime_boundary}\""; // next, we'll build the message body // note that we insert two dashes in front of the // MIME boundary when we use it $message = "This is a multi-part message in MIME format.\n\n" . "--{$mime_boundary}\n" . "Content-Type: text/plain; charset=\"iso-8859-1\"\n" . "Content-Transfer-Encoding: 7bit\n\n" . $message . "\n\n"; // if the upload succeded, the file will exist if (file_exists($tmp_name)){ // check to make sure that it is an uploaded file and not a system file if(is_uploaded_file($tmp_name)){ // open the file for a binary read $file = fopen($tmp_name,'rb'); // read the file content into a variable $data = fread($file,filesize($tmp_name)); // close the file fclose($file); // now we encode it and split it into acceptable length lines $data = chunk_split(base64_encode($data)); } // now we'll insert a boundary to indicate we're starting the attachment // we have to specify the content type, file name, and disposition as // an attachment, then add the file content and set another boundary to // indicate that the end of the file has been reached $message .= "--{$mime_boundary}\n" . "Content-Type: {$type};\n" . " name=\"{$name}\"\n" . //"Content-Disposition: attachment;\n" . //" filename=\"{$fileatt_name}\"\n" . "Content-Transfer-Encoding: base64\n\n" . $data . "\n\n" . "--{$mime_boundary}--\n"; } // now we just send the message if (@mail($to, $subject, $message, $headers)) echo "Thank you for applying to AgilityWorks."; else echo "Failed to send"; } else { ?>
-
Ah good point, I was thinking of min-height - but I will keep my eye out for a min-width one
-
strip_tags() allows you to select which tags to allow, which is sort of what you want.
-
You're not only anal, but pedantic. You're completely missing the point, however I must defend my sentence. You're correct in that "This is why grammar and spelling are important." is a grammatically correct sentence. But I didn't say "This is why grammar and spelling is important." I said "This is why using proper grammar and spelling is important." The second IS which you keep replacing with ARE is referring to the ACT of USING. Not the two items which are being used. Example: "Bikes and horses are fun." <-- right "Bikes and horses is fun" <-- wrong "Riding bikes and horses are fun" <-- wrong "Riding bikes and horses is fun" <-- right.
-
Because I didn't ask other people a question that can be answered by looking in the manual - I simply forgot how to do something which was available and did it another way. You asked us for information which was available, you didn't post another way to do it. Edit: plus what Obsidian said.
-
Well, we can't do anything without the errors.
-
If you're passing $data_array, you don't also use global $data_array. Pick one or the other...
-
[SOLVED] How to get ++ to work in a $list table
Jessica replied to Greaser9780's topic in PHP Coding Help
mgall's code has a missing ", as obvious by the colors. $list is a string of html. $rank++ is php incrementing a variable. That's why they don't go together.... -
So you need to move the mail statement outside of the if statement. Right now it will only send when there is an attachment because you only tell it to mail if there is. Move it outside of the if() stuff.
-
[SOLVED] How to get ++ to work in a $list table
Jessica replied to Greaser9780's topic in PHP Coding Help
Put $rank=1 outside the loop, and inside it do $rank++;