Jump to content

MadTechie

Staff Alumni
  • Posts

    9,409
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by MadTechie

  1. if you don't mind me asking but what's the sites url?
  2. As your not writing the image back to a file the second code won't work, try this instead replace imagecopyresampled($image_p, $image, 0, 0, 0, 0, $width, $height, $width_orig, $height_orig); imagejpeg($image_p, null, 100); ?> <?php $x=0; $y=0; $height= 86; imagecopyresampled($image_p, $image, 0, 0, $x, $y, $width, $height, $width_orig, $height_orig); imagejpeg($image_p); ?>
  3. If you can see them via FTP then yes, if its via http then no (unless PHP crashes) if his a friend then just ask him!
  4. Personally I love it when people download an illegal copy of an anti-virus, considering that is the perfect place to put a virus! has any tried panda cloud ? (its free and supposed to be quite good)
  5. Your need to explain the problem, no one is going to read thought all your code and debug it, its one of the things you need to learn.. first question is always "what is the problem" this has still not be answered. yes theirs bugs in your code but until you learn to identify them you will not be able to resolved them..
  6. Their isn't going to be a foolproof way as your call will always come from the clients PC, I covered this an other options in my last post
  7. Can you try it here as it seams okay to me, (I have included a get source code like as well) Test me
  8. I don't mind, of course I couldn't exactly stop you either It may be worth including a link back to here (if its allowed), but I'll leave it up to you
  9. D'oh we had a insinuator, burn/insinuate tit for tat.
  10. Was part of my failed campaign, research showed that 89% of women looks away 98% of men didn't notice a message on the shirt. So it went down to a vote and 100% of the male campaign organisers agreed that it failed and all shirts should removed an burnt instantly, so sadly no shirts remained! But it was on hell of a night!
  11. I still have mine
  12. You shouldn't have to click submit, You can change the form to post anywhere, as it doesn't affect the drop downs, as they are controlled via ajax
  13. Agreed! Windows provides the Application Data folder for apps to store data!, but games want to write to the program files, that is just bad design with no respect for the OS developers who are attempting to make it secure I currently have Win7 on my laptop.. (admittedly I don't use it , I thought it would be a nice punishment for my girlfriend) but it does run better (than Vista) theirs been some weird things happening but on a whole its not bad, (again compared to Vista), no real issues with the UAC pop-up! Oh an about the fan, have you tried compressed air on the fan as it could be a dust clot, I know vista has some fan issues with some laptops (can't remember the details) but you may want to check you have the latest ACPI drivers? in addition No idea if this helps
  14. OKay i assume the XML looks like this <pages> <link> <title>PHP Freaks - This is a sample</title> <description>I am a description</description> <url>http://www.phpfreaks.com/forums/index.php/topic,277452.0/topicseen.html</url> </link> <link> <title>PHP Freaks Main Page</title> <description>PHP Freaks is a website dedicated to learning and teaching PHP. Here you will find a forum consisting of 86915 members who have posted a total of 963580 </description> <url>http://www.phpfreaks.com/forums</url> </link> </pages> from that this should work fine <?php /** $q='description'; // returns 1 $q='Freaks'; // returns 2 */ $xmlDoc = new DOMDocument(); $xmlDoc->load('c:\277452.xml'); $x=$xmlDoc->getElementsByTagName('link'); //get the q parameter from URL $q=$_GET["q"]; //lookup all links from the xml file if length of q>0 if (strlen($q) > 0){ $hint=""; for($i=0; $i<($x->length); $i++){ $a=$x->item($i)->getElementsByTagName('title'); $b=$x->item($i)->getElementsByTagName('description'); $c=$x->item($i)->getElementsByTagName('url'); if ($a->item(0)->nodeType==1){ //find a link matching the search text if (stristr($a->item(0)->childNodes->item(0)->nodeValue,$q) || stristr($b->item(0)->childNodes->item(0)->nodeValue,$q)){ $hint .= "<a href='" . $c->item(0)->childNodes->item(0)->nodeValue . "' target='_blank'>" . $a->item(0)->childNodes->item(0)->nodeValue . "</a>". $b->item(0)->childNodes->item(0)->nodeValue . "<br />\n"; } } } } // Set output to "no suggestion" if no hint were found // or to the correct values if ($hint == "") { $response="no suggestion"; }else{ $response=$hint; } //output the response echo $response; ?>
  15. If you read the notes and comments, you should see, try the single file example and play with it, any problem just let me know.
  16. http://www.classimoveisrn.com/lancamentos.php# seams to work fine, i would guess its nothing to do with the code you supplied
  17. See a old example Dynamic DropDown PHP/AJAX
  18. Yes you should set it to empty before then as you do want it unset/removed, setting it to empty is just incase they fail.
  19. all your doing is removing details then removing the item itself Now just say the session didn't get removed from the server (for whatever reason) that means the users details are still floating around on the server waiting to timeout right ? Well by setting the details to an empty array they are no use to anyone so it doesn't matter as much compared to then holding valid user details.
  20. a mod rewrite would show up (in the URL) as domain.com/MadTechie but would infact be this page profile.php?user=MadTechie 3 simple reason why it would be better, system standardisation easier maintainable less resource these happen to the 3 things I think about when writing any system, but with that said being comfortable with the system you have is also high on my list
  21. add $_SESSION = array(); under session_start() it will clear the session details, yes i know your deleting them but its a just in case measure, you could also redirect them to the home page ie at the end add header("Location: index.php");
  22. if you send a activation email to the user who register, then anyone who spams you can ban from the system, as for matching them up, can't you just have a drop down so the user can select their college ?
  23. Sure that just sets the cookies expire time to a time in the pasted (forces it to delete itself)
  24. Solved? if so please click topic solved ps that wouldn't give you a new id!
×
×
  • 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.