Posts tagged this
WHY IS THIS PHP SCRIPT NOT WORKING?
Aug 3rd
//test.php
< ?php
if (isset($_POST['submit'])) {
if ($_POST['username']) == 'myusername') && ($_POST['password']) == 'mypassword')) {
header ('location: search.php');
exit();
}
}
?>
i wish to redirect the user to my search engine if their login was successful.
thanks a bunch.
whilikers, that is a great point, thanks. I have made the capitalization, but unfortunately it still does not work. something somewhere is wrong:-)
ADD:
what does it mean “if your web page receives any html or even blank space, the header() function wont work”?
Read More >>
*URGENT* HOW CAN I EDIT THIS SEARCH FUNCTION JAVASCRIPT TO WORK WITH MY WEBSITE?
Jul 18th

Hi guys,
I urgently require a search website function for a website I have built. I need it to simply search my website by keyword and deliver the results in an organised manor.
I have been iven a JAVASCRIPT solution which looks like it could work but I am an amature when it comes to JAVASCRIPT and have no idea which part of the code I need to edit to make it work with my site! I have some PHP experience but no JAVASCRIPT.
Below is the code – could someone please explain which bits to edit? Thank you for your time – you are properly saving my bacon!
CODE
———
Free JavaScripts provided
by The JavaScript Source
ps …. I SEE THE BIT THAT SAY’S “THIS IS WHERE THE MAGIC HAPPENS” BUT AM CONFUSED ABOUT WHAT VARIABLES TO ADD THERE …….. ! Any help would be truly appreciated – I have till the end of this day to complete!
Ta x
Read More >>
HAS ANYONE TRIED TO MAKE THEIR OWN SEARCH ENGINE WITH THIS WEBSITE?
Jul 6th
http://www.BuildaSearch.com
Read More >>
MY DOMAIN NAME AND HOSTING IS WITH YAHOO. WHY CAN’T THEIR OWN SEARCH ENGINE FIND IT. THIS JUST IS NOT RIGHT.
May 3rd
I believe Yahoo search should find a site that they have hosted without having to wait for weeks to have it crawled.
Read More >>
IS YAHOO DOING ANSWERS THIS TO MAKE A NEW SEARCH ENGINE, TO BUILD A COMMUNITY, OR WHAT?
Apr 23rd
Read More >>
I WANT TO BUILD A SEARCH ENGINE GOOGLE, IS THERE SEARCH ENGINE SOFTWARE THAT WILL LET ME DO THIS?
Mar 27th
i want to make my own google that enables people to search for websites, audio files, images, video and news with the built in pay per click advertising features of google. does anyone know of reputable company’s or software that will help me do this. i do not mind paying.
Read More >>
HOW DO YOU DO “SEARCH USING PART OF THIS SEARCH” IN A PHP SEARCH ENGINE?
Mar 23rd
what would you use if you wanted to only get part of the search back, not using exact terms for searching using php/mysql search engine???
how do you tell the php script to only search for whatever is part of the search? for instance…
i type in…
“php scripts plus” (excluding the quotes)
i want the php script to grant searching using part of the terms, so if theres a page that only has “scripts” on it, the page would come back positive.
please help
thanks
alex
Read More >>
IF SOMEONE USES A 301 REDIRECT, CAN THIS HARM MY SEARCH ENGINE RANKINGS?
Mar 15th
I have an affiliate script which is telling me to redirect the affiliate URL using a 301 redirect to my home page. is this safe for my search engines rankings? and is it only a 302 redirect which is risky? thanks in advance!
Read More >>
I NEED HELP WITH THIS PHP SCRIPT FOR MY SEARCH ENGINE. PLEASE!?
Mar 2nd
Okay. So in my search engine, for each array, there is a link to the page, where the page is located, and a description (a section from the body of the page) of the page.
By the way, I did not just make a bunch of keywords and titles and links and descriptions. I have over 3000 files on my website. I would not make keywords and titles and links and descriptions for each single one. It actually searches and sees if the keyword is in the body of any of the files on my website. If it has the keyword in it, it displays that page in the search results.
I have made a string called ‘$keyword’ which is the word that the user searches for. Well actually, the keyword they insert into the form is called ‘$keywordin’ and the actual word is called ‘$keyword’ but that is only so I can tell the difference between the two. And it also makes sure there is not two descriptions showing up. But I did state that $keywordin=$keyword; so they are the same thing.
That’s the same thing with ‘$desc’ and ‘$rdesc’. They are just different versions of the same thing. But they both have their own reason for being there. So just go along with me.
But anyway, in each description (which I have named $desc), I have told it that if it finds the inserted keyword anywhere in the description, to highlight the word. That works fine. But the problem is it capitalization-sensitive. So, I need help with this script I made to make it not capitalization-sensitive. Here is the script I am trying to use to do this:
//if the first letter of the inserted keyword isnt capitalized, make sure to
//highlight any $keywords in the $desc that do have their first letter capitalized
//along with the ones that dont
if(ucwords($keywordin) != true){
$uppercase = ucwords($keyword);
$replacek = “$uppercase”;
$replacementk = “$uppercase“;
$stringk = “$rdesc”;
$rdesc = ereg_replace($replacek, $replacementk, $stringk);
}
if(ucwords($keywordin) == true) {
strtolower($keywordin);
$lowercase = strtolower($keyword);
$replacek = “$lowercase”;
$replacementk = “$lowercase“;
$stringk = “$desc”;
$rdesc .= ereg_replace($replacek, $replacementk, $stringk);
}
The first part of the script works (the part that says: if(ucwords($keywordin) != true){ blah blah blah). If they insert a keyword that has a lowercase first letter, then it will highlight the keywords that have capitalized first letters along with those that have lowercase first letters..
But if they insert a keyword with a capitalized first letter, it only highlights the keywords with capitalized first letters. It doesn’t capitalize the keywords with lowercase first letters. But the second part of the script (if(ucwords($keywordin) == true) { blah blah blah) is supposed to make sure that it capitalizes all of them.
Can someone please help me?