-
Posts
9,409 -
Joined
-
Last visited
-
Days Won
1
Everything posted by MadTechie
-
if you don't mind me asking but what's the sites url?
-
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); ?>
-
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!
-
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)
-
ok i need to join all this pages to make 1 neat code
MadTechie replied to the-botman's topic in PHP Coding Help
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.. -
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
-
Can you try it here as it seams okay to me, (I have included a get source code like as well) Test me
-
[SOLVED] Sorry for double posting, PHP Live Search code question
MadTechie replied to gene99's topic in PHP Coding Help
Your very welcome -
[SOLVED] Sorry for double posting, PHP Live Search code question
MadTechie replied to gene99's topic in PHP Coding Help
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 -
D'oh we had a insinuator, burn/insinuate tit for tat.
-
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!
-
I still have mine
-
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
-
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
-
[SOLVED] Sorry for double posting, PHP Live Search code question
MadTechie replied to gene99's topic in PHP Coding Help
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; ?> -
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.
-
http://www.classimoveisrn.com/lancamentos.php# seams to work fine, i would guess its nothing to do with the code you supplied
-
See a old example Dynamic DropDown PHP/AJAX
-
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.
-
[SOLVED] how do i fwrite a user profile AKA an entire php page?
MadTechie replied to emopoops's topic in PHP Coding Help
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 -
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 ?
-
Solved? if so please click topic solved ps that wouldn't give you a new id!