[PHP] Search

2002-02-04 Thread TV Karthick Kumar

Hi all,

Is there any other way to search all the html pages in a website with a
given keyword and link to those pages, wihout using the udmsearch and
mnogo... if so, please let me know...

Thanks.

TIA,
Karthick



_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] search

2001-02-16 Thread Brandon Feldhahn

How do i make a php and MySQL search engine?


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] SEARCH ?

2001-02-22 Thread Abe Asghar

Hi there,

I am implementing a search function on a site that we are working on.  We
have created a script that will search through the contents of a page and
looks for matches etc.  It works well but will get slow on a large site.

Does anybody know a tutorial or info on how to create an indexing system so
the search can just search the indexing page rather than all files on a
site.


Thanks


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] search

2001-03-07 Thread AJDIN BRANDIC

Hi,

I have a simple text file search. I do not want users to search on words 
such as 'is', 'and', 'or','the',etc. or single letters or numbers.  Has 
anyone got a 
dictionary with all of these in so I could do a search through it before 
starting the main search?

Thanks,

Ajdin 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] search

2001-07-03 Thread AJDIN BRANDIC

Hi all

I've got search facility (php-mysql) which is very simple. If i search 
for 'dog' it will find any records containing words 'dog' or 'dogs' or 
'dogowner' etc.  But if I search for 'dogs', words 'dog' and 'dogowner' 
will not be found.  This is a classic case so there must be a solution to 
it but I cannot find one.  I tried to do something like
if word is 'dogs' then I do the search,
then break word 'dogs' into an array and check if the last element is an
's'. If it is remove it, reconstrust the string,which will give 'dog', 
and do search for that too.
Then display results.  Well I connot find a way of breaking a string into 
an array. How do I break 'mynameis' into an array of 8 elements?
This has got loopholes but still it is better than what I have now.

Thanks 

Ajdin

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Search

2001-05-04 Thread Manesh

I need some sciprt to search my site.  My site has about 700 pages.  Also
all the pages are HTML Pages


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Search Engine

2002-01-15 Thread Yogesh Mahadnac

Hi all! I want to develop a search engine in PHP for a portal that I'm working on 
at the moment, and I'd be glad if someone could please show me how to do it, or if 
anyone knows of a link where i can find a tutorial for that.
Thanks and regards,
Yogesh Mahadnac



[PHP] Search Page

2002-02-08 Thread Georgie Casey

I'm making a search page on my site where users enter certain criteria and I
ouput the results like many other webistes: By first telling how many
results were generated, then having dynamic pages to view, say, 10 results
at a time.

So first I have to SQL the database to get totalresults, then cancel that
query and query again with a "LIMIT" tag on the end to display the first 10
results. Is there a more efficient way of doing what I'm trying to do?

I coded it myself so its probably poor, design-wise. Am I going about it the
right way?

--
Regards,
Georgie Casey
[EMAIL PROTECTED]

***
http://www.filmfind.tv
Ireland's Online Film Production Directory
***



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] search parse?

2002-06-14 Thread Lazor, Ed

Does anyone have a good function for parsing a search string into SQL?  I
know it will depend on the name of the field and table I'm searching
through.  Anything close will be helpful.  An example search string would
be:

beer AND pizza NOT anchovies

and the resulting search string would be

select ID, Title from Products where Title like '%beer%' AND Title like
'%pizza%' AND Title NOT LIKE '%anchovies%';


Another example search string would be:

beer OR pizza AND movies

Thanks! =)

-Ed

 

This message is intended for the sole use of the individual and entity to
whom it is addressed, and may contain information that is privileged,
confidential and exempt from disclosure under applicable law.  If you are
not the intended addressee, nor authorized to receive for the intended
addressee, you are hereby notified that you may not use, copy, disclose or
distribute to anyone the message or any information contained in the
message.  If you have received this message in error, please immediately
advise the sender by reply email and delete the message.  Thank you very
much.   

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] search

2001-02-17 Thread ..s.c.o.t.t..

it's such a complex question and answer that i really think
you need to ponder some more fundamental design concepts
before you ask for advice on actually coding the thing...

such as what type of database layout fits the type of
information you will be storing/searching/retrieving,
how you want to categorize the information in your
database, how the interface will look and operate
(do you want to allow boolean expressions, or just
search for any occurence of any word in the search field)

to get a very simple searcher thing working, it's not very
hard (ive done it in perl/MySQL for a site that had about 20
static HTML pages and some news stories in a database table)
and it took me about half a day

however, you have to know what you want to accomplish
beforehand or else you'll bang your head against the wall
quite often during development :)


if you're going for an exremely simple searcher with few features
and not too much flexibility, i'd reccomend creating a keyword
lookup table that simply relates keywords to the thing they
refer to (HTML page, PHP page, etc...)

the table might look a bit like this, if you had two pages and
a total of two keywords:
key| page
--|
"foo" | "firewall.html"
"bar" | "vpn.html"
"bar" | "firewall.html"

then, when people entered either "foo" or "bar" (or "foo bar")
into your search field, the resulting query would be a list of
pages that were associated with either (or both) of those keywords.

"foo" = "firewall.html"
"bar" = "vpn.html"
"foo bar" = "firewall.html" and "vpn.html"


> -Original Message-
> From: Brandon Feldhahn [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 16, 2001 23:07
> To: [EMAIL PROTECTED]
> Subject: [PHP] search
> 
> 
> How do i make a php and MySQL search engine?
> 
> 
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] search

2001-02-17 Thread Christian Reiniger

On Saturday 17 February 2001 08:07, Brandon Feldhahn wrote:
> How do i make a php and MySQL search engine?

If you want it to be good *and* if you want to write it youself, I'd 
start by doing several years of intensive research.
If you only want it to be good, use one of the existing ones 
(http://freshmeat.net/search/?q=search+engine)

-- 
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)

Drink wet cement. Get stoned.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] search engine

2001-02-18 Thread Brandon Feldhahn

Can some one tell me how i would make a search engine, like what talbes
and how many fields and what the form should look like


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Search Engine...

2001-01-25 Thread php4

Hello...
I would like to code a search engine to use just inside my home 
page...Anyone has an idea where can I find informations about how is the 
process to code a search engine with PHP??
Thank you

Felipe Lopes

MailBR - O e-mail do Brasil -- http://www.mailbr.com.br
Faça já o seu. É gratuito!!!

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Search Engines?

2001-03-15 Thread Wee Chua

Hi everyone,
Could any one tell me what is the search engine you always use? Thank.

Calvin

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] search engine

2001-03-28 Thread Augusto Cesar Castoldi

I'd like to do a search engine on my homepage. I'll search a cell phone in 
mysql database.

I want to search this cell phone and list in HTML table.

This list of cell phones must have 30 lines and the cell phones that I
found (searched) must be in the middle of the list.

I want to show the cell phones before and after of the one I search
(found), order by cellphone.

How could I do that?


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Search Engines

2001-04-01 Thread Joe Montiel

Hello,

I am new to the list and to php...I would like to know how php does with the
major search engines. Do I need to do something extra to make it work? Will
it index if I am pulling my content from text files? (If this is in an
archive somewhere, point me to it).

Thank you!

Joe


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Search Engines

2001-04-02 Thread Geoff Caplan

Steve,

You clearly know your stuff about search engines.

I was planning to use the header:

header("Expires: " . gmdate("D, d M Y H:i:s") . " GMT");

to ensure that pages are not cached in the client.

But reading your excellent contribution, I was wondering whether a
search bot would see this and decide not to index as the page was
about to expire.

Any advice much appreciated

Geoff Caplan



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] search

2001-07-03 Thread Tom Carter

Rather than trying to break it into an array, you can examine the rightmost
character as follows

$search="dogs";
if(substr($search,-1)=='s') $search=substr($search,0,-1);

This checks if the last character is an s and if it is then set search to
the same string but without the s.. note, does not handle multiple word
queries.. for this you would need to break the string into words (something
you would probably have to do anyway) and do this for each of those...

For more info on substr seet http://php.net/substr
- Original Message -
From: "AJDIN BRANDIC" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 03, 2001 11:10 AM
Subject: [PHP] search


> Hi all
>
> I've got search facility (php-mysql) which is very simple. If i search
> for 'dog' it will find any records containing words 'dog' or 'dogs' or
> 'dogowner' etc.  But if I search for 'dogs', words 'dog' and 'dogowner'
> will not be found.  This is a classic case so there must be a solution to
> it but I cannot find one.  I tried to do something like
> if word is 'dogs' then I do the search,
> then break word 'dogs' into an array and check if the last element is an
> 's'. If it is remove it, reconstrust the string,which will give 'dog',
> and do search for that too.
> Then display results.  Well I connot find a way of breaking a string into
> an array. How do I break 'mynameis' into an array of 8 elements?
> This has got loopholes but still it is better than what I have now.
>
> Thanks
>
> Ajdin
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] search

2001-07-03 Thread AJDIN BRANDIC

On Tue, 3 Jul 2001, Tom Carter wrote:

> Rather than trying to break it into an array, you can examine the rightmost
> character as follows
> 
> $search="dogs";
> if(substr($search,-1)=='s') $search=substr($search,0,-1);
OK, thanks. I am already breaking input search string into an array using 
a ',' as the seperator.  Then I loop while there are elements in this new 
array and build the search query.

Thanks again!

Ajdin

> 
> This checks if the last character is an s and if it is then set search to
> the same string but without the s.. note, does not handle multiple word
> queries.. for this you would need to break the string into words (something
> you would probably have to do anyway) and do this for each of those...
> 
> For more info on substr seet http://php.net/substr
> - Original Message -
> From: "AJDIN BRANDIC" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, July 03, 2001 11:10 AM
> Subject: [PHP] search
> 
> 
> > Hi all
> >
> > I've got search facility (php-mysql) which is very simple. If i search
> > for 'dog' it will find any records containing words 'dog' or 'dogs' or
> > 'dogowner' etc.  But if I search for 'dogs', words 'dog' and 'dogowner'
> > will not be found.  This is a classic case so there must be a solution to
> > it but I cannot find one.  I tried to do something like
> > if word is 'dogs' then I do the search,
> > then break word 'dogs' into an array and check if the last element is an
> > 's'. If it is remove it, reconstrust the string,which will give 'dog',
> > and do search for that too.
> > Then display results.  Well I connot find a way of breaking a string into
> > an array. How do I break 'mynameis' into an array of 8 elements?
> > This has got loopholes but still it is better than what I have now.
> >
> > Thanks
> >
> > Ajdin
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] search

2001-07-03 Thread Steve Werby

"AJDIN BRANDIC" <[EMAIL PROTECTED]> wrote:
> I've got search facility (php-mysql) which is very simple. If i search
> for 'dog' it will find any records containing words 'dog' or 'dogs' or
> 'dogowner' etc.  But if I search for 'dogs', words 'dog' and 'dogowner'
> will not be found.  This is a classic case so there must be a solution to
> it but I cannot find one.  I tried to do something like
> if word is 'dogs' then I do the search,
> then break word 'dogs' into an array and check if the last element is an
> 's'. If it is remove it, reconstrust the string,which will give 'dog',
> and do search for that too.
> Then display results.  Well I connot find a way of breaking a string into
> an array. How do I break 'mynameis' into an array of 8 elements?
> This has got loopholes but still it is better than what I have now.

Ajdin, you may want to take a look at mnoGoSearch, which is search engine
software with a C indexer, PHP front-end and ability to work with numerous
databases, including MySQL.  It's a great program, but even if it's not
suitable for what you're doing I suggest looking at the PHP code and
database structure.  mnoGoSearch has incorporated the ability to search for
related words by incorporating a dictionary file and a database table of
grammar rules so a search for one word can be made to find other forms of
that word.

FYI, to break a string into an array like you describe use strlen() to get
the length of the string, substr() to pull out the first N characters from
the string, then loop through and add each element to an array by adding as
follows (pseudocode):

for ( $i = strlen( $string ); $i >= 0; $i-- )
$array[] = substr( $string, 0, $i );

--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] search

2001-07-03 Thread scott [gts]

use split();

> -Original Message-
> From: AJDIN BRANDIC [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 03, 2001 6:10 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] search
> 
> 
> Hi all
> 
> I've got search facility (php-mysql) which is very simple. If i search 
> for 'dog' it will find any records containing words 'dog' or 'dogs' or 
> 'dogowner' etc.  But if I search for 'dogs', words 'dog' and 'dogowner' 
> will not be found.  This is a classic case so there must be a solution to 
> it but I cannot find one.  I tried to do something like
> if word is 'dogs' then I do the search,
> then break word 'dogs' into an array and check if the last element is an
> 's'. If it is remove it, reconstrust the string,which will give 'dog', 
> and do search for that too.
> Then display results.  Well I connot find a way of breaking a string into 
> an array. How do I break 'mynameis' into an array of 8 elements?
> This has got loopholes but still it is better than what I have now.
> 
> Thanks 
> 
> Ajdin
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] search

2001-07-03 Thread Lasse


- Original Message -
From: "AJDIN BRANDIC" <[EMAIL PROTECTED]>
To: "Tom Carter" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, July 03, 2001 2:57 PM
Subject: Re: [PHP] search


> On Tue, 3 Jul 2001, Tom Carter wrote:
>
> > Rather than trying to break it into an array, you can examine the
rightmost
> > character as follows
> >
> > $search="dogs";
> > if(substr($search,-1)=='s') $search=substr($search,0,-1);
> OK, thanks. I am already breaking input search string into an array using
> a ',' as the seperator.  Then I loop while there are elements in this new
> array and build the search query.

Actually strings are also arrays (at least in PHP4)...

Try this for example:

$s = 'dogs';

echo $s[strlen($s)-1];


HTH
--
Lasse



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] search engines

2001-07-28 Thread Jon Yaggie

it is common now that search engines use xml respondses to affiliate requests for 
information.  this is fine in that i can process the xml.  my concern is the sending 
and recieving of data.  how is is done?  the current project i have to parse a 
gigantic url with xml in it and send this.  but how do i get the info back and process 
it?  should i be using cURL? something else  sockets?(shiver)




Thank You,
 
Jon Yaggie
www.design-monster.com
 
And they were singing . . . 
 
'100 little bugs in the code
100 bugs in the code
fix one bug, compile it again
101 little bugs in the code
 
101 little bugs in the code . . .'
 
And it continued until they reached 0





[PHP] search highlighting

2001-04-12 Thread Matt Williams

Hi

I'm implementing a simple keyword search.
I want the results to be displayed with the keywords highlighted.
I am currently using this to highlight the keywords

str_replace($string,"$string",$field);

If I search for php, it will find PHP, PhP etc... but using the above only
php will will be highlighted, not PHP.
I've tried eregi_replace but I could only get that to change the case and
highlight that ie. PHP would become php.

Can anyone point me in the direction of how to highlight the string
regardless of case but keep the case for the match.

TIA

M@


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] search string

2001-04-15 Thread Joseph Bannon

What is the function to search a string? Basically, I want search a string
(a url) to see if it has "www.yahoo.com" in it and if yes, tell the user
their submission cannot be accepted.

J




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Search

2001-05-05 Thread heinisch

At 04.05.01  22:44, you wrote:
>
>I need some sciprt to search my site.  My site has about 700 pages.  Also
>all the pages are HTML Pages
Use grep
Oliver


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Search Engines

2001-08-06 Thread Tom Carter

Hi All,

Does anyone have any experience with registering sites on the major search
engines? I have a number of questions I hope to find help with (and please
do excuse that not all of them are directly PHP related)

-Do search engines treat .html and .php files differently in caching etc?

-I include a standard header on each page, and was originally going to put
into this standard all the various meta tags to describe the site, however
someone suggested to me that this counetd against you by some search
engineanyone have any knowledge on this?

-How is it best to create meta tags? does anyone know of php or other tools
or good guides?


Any other general advice more than appreciated!


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] search engine

2001-09-04 Thread Richard Kurth

Has anybody wrote a quality search engine in Php Something like
goto.com or googly. Not a site search engine. Preferably one that is a
pay per click search that pulls from a mysql database and also will
pull from other search engines. I am looking for one if you know were
there is one I would really like to know. Willing to pay for it.











Best regards,
 Richard  
mailto:[EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Search Engine

2002-01-15 Thread Jon Farmer

Hi all! I want to develop a search engine in PHP for a portal that I'm
working on at the moment, and I'd be glad if someone could please show me
how to do it, or if anyone knows of a link where i can find a tutorial for
that.

Use htdig
--
Jon Farmer
Systems Programmer, Entanet www.enta.net
Tel 01952 428969 Mob 07763 620378
PGP Key available, send email with subject: Send PGP Key




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Search Engine

2002-01-15 Thread Nick Wilson

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


* On 15-01-02 at 12:09 
* Yogesh Mahadnac said

> Hi all! I want to develop a search engine in PHP for a portal that I'm working 
>on at the moment, and I'd be glad if someone could please show me how to do it, or if 
>anyone knows of a link where i can find a tutorial for that.
> Thanks and regards,
> Yogesh Mahadnac

I don't think PHP is really a very good language for a genuine www
search engine. (although it works very well on site-wide basis)
I'm sure more knowledgeable people than I can make some alternative
suggestions but I'm certain that PHP won't be the best tool for the job.

- -- 

Nick Wilson

Tel:+45 3325 0688
Fax:+45 3325 0677
Web:www.explodingnet.com



-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8RA+BHpvrrTa6L5oRAtwKAJwMlEU3hpN/Zq5/LwLcuy0xJCkDFgCeKEXP
dnyOiXLqJKG5Dw/I2xLpNGA=
=9C59
-END PGP SIGNATURE-

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Search Engine

2002-01-15 Thread Greg Schnippel


> * On 15-01-02 at 12:09 
> * Yogesh Mahadnac said
> 
>> Hi all! I want to develop a search engine in PHP for a 
>> portal that I'm working on at the moment, and I'd be glad if 
>> someone could please show me how to do it, or if anyone knows 
>> of a link where i can find a tutorial for that.
>
> I don't think PHP is really a very good language for a genuine www
> search engine. (although it works very well on site-wide basis)
> I'm sure more knowledgeable people than I can make some alternative
> suggestions but I'm certain that PHP won't be the best tool 
> for the job.

I would concur with what everyone else is saying. If you need a search
engine and you have system-level access on your machine, your best
bet is to set up either htdig or mnogosearch (open source search
engine packages) because they already have done the hard work of 
figuring out fuzzy matching and search ranking.

http://www.htdig.org/
http://mnogosearch.org/

Alternatively, if you are using a database you can use some tricky sql 
statements to search your records for the user's search query. Here's 
a good tutorial that should get you started on this route:

http://www.devshed.com/Server_Side/PHP/Search_Engine/page1.html


-schnippy

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Search Engine

2002-01-15 Thread J Smith


PHP isn't totally bad for a search engine. Here's my story.

I was in a bit of a predicament when I first started work, because I had to 
develop a search engine for online video objects. My company is essentially 
a video re-purposing venture, where we take reams of analog, tape-based 
videos, encode them into something like MPEG or ASF or whatever, create 
clip indexes (i.e. a 30 minute clip is broken up into 10x 3-minute clips, 
with each clip described and categorized) and provide a search engine and 
interface to watch clips or videos on the web via a broadband connection. 

(An added bonus is that you can create your own "video" via personal 
playlists -- you can take 10 different clips from 10 different videos and 
run them together into one playlist, all online. In a few months, you'll be 
able to create your own clips if you don't like our predefined ones.)

Anyways, the search engine thing was my deal. I'm the only programmer 
(*period*) on our team, and I basically had to write a search engine, web 
site backend, admin interface and all that jazz for our app alone. I was 
hired March 6, 2001 or so, and I had until, oh, April 15, 2001 to do it. 
Plus there were a few conditions -- like, it should be portable and 
inexpensive.

PHP seemed like a good choice -- it was portable (Win32, *ix, whatever), it 
was cheap ($0) and it isn't too bad for rapid development.

So off I was. I did manage to finish the search engine and back end by 
April 15, but it was a mess. It wasn't exactly a stellar search engine, but 
more of a proof of concept, which was the whole point of the project -- to 
show that we could provide high quality streaming video through a browser 
with a relatively good interface.

After the proof-of-concept project, we started to get serious, and I 
dropped most of the code base and started again from scratch. 

Pretty much the entire search engine now is in PHP, with the sole 
exceptions being the keyword indexer (Perl, as PHP was a lot slower doing 
the indexing) and a few extensions to the PHP engine. 

The search engine itself is fairly fast -- it can do a keyword search on a 
collection of nearly 8,000 video objects in an average of 0.02 to 0.20 
seconds or so, depending on the complexity of the query. It's features 
include:


* "Boolean"-type searches. Okay, not really, as in you can't use AND, OR 
and NOT, but you can use +/- style prefixes like in mnoGoSearch and 
whatnot. Words are automatically OR'ed, +'d words are AND'ed and -'d words 
are NOT'ed.

* Decent search times. On a PIII 500 with 128 MB of RAM, it still averages 
less than 0.20 seconds for a collection of 8,000 video objects and over 
100,000 keywords.

* Filtering. We're mostly an education-based site, so you can filter by 
things like subject (Physics, Chemistry, etc.) and grades (Kindergarden, 
grade 10, college, etc.)

* Spellchecking and somewhat fuzzy searches. Spellchecks work okay, but the 
fuzzy searches is kind of lame. (Porter stemming.) I might shoehorn in 
something like Metaphone-type stuff eventually. 

* Search ranking. Yes, keywords are given weights, everything is ranked and 
all that jazz. You know, inverse document frequencies, collection 
distribution, all that stuff. In the end, video objects returned in a 
search are given a ranking of 1 to 4 based on how well they match your 
query. It's not terribly advanced, and could use some tuning, but it's 
surprising how well it works.

* XML-based. The search engine itself runs as it's own daemon on either 
it's own server or along side the web site, and just waits for connections 
via a UNIX domain socket or a TCP socket. When it receives a query, and 
sends back an XML document containing the search results. This is 
especially nice -- you can use it with anything for any purpose, not just a 
web site, i.e. you can build an native app for Windows and you can still 
use the search engine, and just format the results via an XSL or whatever.


There are a lot of other nifty features, like being able to do remote admin 
via telnet or whatever. But in the end, it's still just a decent search 
engine and definitely not Google or even htdig. It's very focused on our 
specific task, the searching of online educational videos, so something 
using something like htdig would have required a lot of hacking to get it 
to where we wanted it.

So the morale I guess is, sure, you can make a half-decent search engine 
out of PHP. Ours gets the job done. But remember, I only had, like, a scant 
few months to write one, plus a web-based app to go around it, and I was 
alone on this one. PHP was great for RAD, and the damn thing even works to 
boot. My search engine could handle a web site easily enough, maybe even a 
group of sites, but it would totally suck ass as a WWW indexer/spider-type 
search engine. 

So there ya go.

J



Greg Schnippel wrote:

> 
>> * On 15-01-02 at 12:09
>> * Yogesh Mahadnac said
>> 
>>> Hi all! I want to develop a search engine in

Re: [PHP] Search Engine

2002-01-16 Thread LaserJetter

If I wanted to do a search engine for the web (and maybe for just a site) I
would set up a MySQL database and have a record for each site which is
included in the index. There would be fields for URL, Page title, Keywords
and maybe description / text extract from the URL.
It would be quite a simple solution and I'm not sure about performance.
It would be quite easy to add /modify/delete records as well using this
method


"Greg Schnippel" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

> * On 15-01-02 at 12:09
> * Yogesh Mahadnac said
>
>> Hi all! I want to develop a search engine in PHP for a
>> portal that I'm working on at the moment, and I'd be glad if
>> someone could please show me how to do it, or if anyone knows
>> of a link where i can find a tutorial for that.
>
> I don't think PHP is really a very good language for a genuine www
> search engine. (although it works very well on site-wide basis)
> I'm sure more knowledgeable people than I can make some alternative
> suggestions but I'm certain that PHP won't be the best tool
> for the job.

I would concur with what everyone else is saying. If you need a search
engine and you have system-level access on your machine, your best
bet is to set up either htdig or mnogosearch (open source search
engine packages) because they already have done the hard work of
figuring out fuzzy matching and search ranking.

http://www.htdig.org/
http://mnogosearch.org/

Alternatively, if you are using a database you can use some tricky sql
statements to search your records for the user's search query. Here's
a good tutorial that should get you started on this route:

http://www.devshed.com/Server_Side/PHP/Search_Engine/page1.html


-schnippy



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] search results - details

2002-02-19 Thread mm fernandez

hi,

I'm working on a search results page. actually i have my search form and 
search results page working fine already. but i want to add something on the 
"results page". my search "results page" shows the following fields: 
lastname, firstname, middlename, yeargrad.
what i want is that the lastname results should be linked to a "more 
details" page. so for example, if i have a search result with 'garcia' as 
the lastname..i click on that and i should be transferred to a page showing 
me more details of that garcia..showing me more than just his/her 
firstname,middlename, and yeargrad.

What should i use as my sql statement for the "more details" page? And how 
do i tell the detail page to show which records to retrieve and display?
By the way, here's part of the code that i have for the results page:

// $r->lastname";
//   }
// ?>

if anyone can please help me. thanks.

// MM Fernandez

_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Search for words

2002-03-18 Thread Martin Kampherbeek

Hi,

Someone submits an URL to me. Now I want a script that checks for some words in the 
file right after submitting. When the word is in the file it must stop.
For example the words: house and school.





[PHP] PHP Search Engine?

2002-03-23 Thread lmlweb

Hello,

I've picked up a book called the PHP Developer's Cookbook, specifically
for the search engine that was featured in it. It required the use of
PEAR's File/Find.php, which my host hasn't installed, ..and very likely
will not.

Is there another way of coming up with a search engine in PHP that
doesn't require the use of subscription services?

Laurie M. Landry
http://www.lmlweb.com
voicemail/fax: (604) 693-1120



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Search engine indexing

2002-05-02 Thread Charl

Are PHP files indexed the same way as plain HTML files by search engines?

-- Charl



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Search - 'AND' ... 'OR'

2002-06-15 Thread Scott 'INtense!' Reismanis

Hey all,
 
I am in the middle of writing a script to allow users to search through
news archives on my website. Anyhow I am just wondering which logic you
believe best suits a search.
 
i.e. say a user types in 'games AND playstation' then only results
containing both those words will be returned
by the same token they could type in 'games OR playstation' then results
containing either word will be returned
 
However if a user does not explicity join there search critiera
i.e. 'games playstation' what should I assume?
 
What would you expect? Google for example wacks an 'AND' inbetween which
is wise considering they are searching billions of pages however my site
obviously will only be searching a few hundred so maybe I should assume
an 'OR'?
 
So basically I just am curious to know what you would expect when
entering multiple critera.
 
Regards,
 
 
   Scott
 



[PHP] Search & replace text

2001-02-11 Thread CDitty

Hello all.  I am trying to search through a text file on my server to 
replace the user email.  I can open the file and read it, but cannot get it 
to "find" the actual string and replace it.  Can someone look over my code 
and see what the problem is?  I am afraid that ereg is not my strongest 
point.

Also, at what point should I start writing the file out?  Wouldn't there be 
a permissions error if I was reading and writing at the same time?

Thanks
CDitty


$oldemail = "[EMAIL PROTECTED]";
$newemail = "[EMAIL PROTECTED]";
$user = "cditty";
$file = fopen("/path/to/the/user/file/$user.dat", "r");
if(!$file){
 echo "Unable to open remote file.\n";
 exit;
}else{
 echo "Success";
}
while (!feof($file)) {
 $line = fgets($file, 255);
 if(eregi($oldemail, $line, $out)) {
 str_replace($oldemail, $newemail, $line);
 }

echo $line . "";
}
fclose($file)


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] search engine

2001-02-18 Thread Dallas Kropka


hehe, And while they are at it, could that same person please tell me how
to achieve world domination with just a sponge, toothpick and some gum

hehe sorry Brandon I just couldn't resist... your going to have to get a
little more specific on your questions... we cant write the script for
you

What are you searching for? pages on your site? MP3s in your database?
Everything on the web??? If you are doing the last one, then I would suggest
you stop here if your asking this question, then you don't understand
that this can take LOTS of time and money... There are scripts out there now
that will allow you to do this. Not sure of any off the top of my head, but
someone will know, check www.hotscripts.com .

However, the other two are fairly simple... you will need a database table
with the page name, and list of keywords for that page then do something
like this...

SELECT pagePath FROM searchEngine WHERE keyWords LIKE
'$key_Word_User_Entered'

It's LIKE or IN I never remember which... (someone set me strait here.)

your form would be a 1 or 2 field form, one for the users search, the other
maybe a drop down list of possible categories to search in (Rap,
Country, Pets, Sports...) this would be to narrow the search...


but as always with PHP someone has written this already,... again, check
hotscrips.


Good luck...















-Original Message-
From: Brandon Feldhahn [mailto:[EMAIL PROTECTED]]
Sent: Sunday, February 18, 2001 2:35 AM
To: [EMAIL PROTECTED]
Subject: [PHP] search engine


Can some one tell me how i would make a search engine, like what talbes
and how many fields and what the form should look like


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] search engine

2001-02-18 Thread David Robley

On Sun, 18 Feb 2001 19:04, Brandon Feldhahn wrote:
> Can some one tell me how i would make a search engine, like what talbes
> and how many fields and what the form should look like

No need to reinvent the wheel - this uses MySQL and has a PHP front end - 
I believe that future versions of PHP will have more support for this app.

http://www.mnogosearch.ru/

-- 
David Robley| WEBMASTER & Mail List Admin
RESEARCH CENTRE FOR INJURY STUDIES  | http://www.nisu.flinders.edu.au/
AusEinet| http://auseinet.flinders.edu.au/
Flinders University, ADELAIDE, SOUTH AUSTRALIA

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] search + sitemap scripts

2001-02-27 Thread Ali

could anybody help with links to a good search and sitemap script written in
php. Thanks

Ali


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Search Engine...

2001-01-25 Thread Jason Jacobs

go to www.devshed.com
 Look in their PHP section, and there should be something there.

-j

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 25, 2001 3:47 PM
Subject: [PHP] Search Engine...


> Hello...
> I would like to code a search engine to use just inside my home
> page...Anyone has an idea where can I find informations about how is the
> process to code a search engine with PHP??
> Thank you
>
> Felipe Lopes
>
> MailBR - O e-mail do Brasil -- http://www.mailbr.com.br
> Faça já o seu. É gratuito!!!
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Search Engine...

2001-01-25 Thread Marko Perich

I am using htdig from htdig.org.
It is an external program that executes like a cgi.
It is simple, fast and configurable.
I recommend it.

Hope it helps
Marko.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] search safe URLs

2001-03-27 Thread Joe Sheble aka Wizaerd

In order to use URLs without ? and &, there has to be some re-configuration 
in Apache, correct?  So somebody who didn't have access to httpd.conf 
couldn't use this methodology?  Or if this is completely incorrect, where 
can I find more info on implementing it strictly in PHP?

Joseph E. Sheble
[EMAIL PROTECTED]

Wizaerd's Realm
http://www.wizaerd.com


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Search Engines

2001-04-01 Thread Matt Friedman

There are a few things that can help you get indexed by the search engines
if you are using a server side scripting language.

1. Try to avoid passing variables in the get string. That is, the stuff
after the "?" in a url.
2. If you want a page indexed, don't redirect from that page to another
page. The search spider will not follow the redirect.

Other than that, I can't think of more things that a spider wouldn't like
that have to do with php. If there are more, please correct me.

Matt Friedman
Spry New Media
http://www.sprynewmedia.com



- Original Message -
From: "Joe Montiel" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, April 01, 2001 8:52 PM
Subject: [PHP] Search Engines


> Hello,
>
> I am new to the list and to php...I would like to know how php does with
the
> major search engines. Do I need to do something extra to make it work?
Will
> it index if I am pulling my content from text files? (If this is in an
> archive somewhere, point me to it).
>
> Thank you!
>
> Joe
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Search Engines

2001-04-01 Thread Steve Werby

"Joe Montiel" <[EMAIL PROTECTED]> wrote:
> I am new to the list and to php...I would like to know how php does with
the
> major search engines. Do I need to do something extra to make it work?
Will
> it index if I am pulling my content from text files?

PHP produces HTML output which is sent to a browser, spider, etc.
Everything else being equal about content on a webpage, a PHP generated file
and a static HTML file are identical, with the possible exception of the
file extension.  There are a few "gotchas".  A search engine can recognize a
.php* file extension and assign it a penalty, though I'm not aware of this
happening.  If that's a fear you can always configure your webserver to
parse .html files using PHP.  Some search engines will ignore or penalize
webpages with query strings in them (query strings are variable-value pairs
following a "?" after the webpage name).  The logic for this makes sense
since a lot of pages like that are dynamically generated and a search engine
will be less effective if it indexes a page and a few days later a user does
a search, it appears in the results and the user goes there and the page no
longer exists or contains different content than was indexed.  An easy way
around this (at least in Apache) is to create dynamically generated webpages
that appear static.  This can be accomplished by using AliasMatch lines in
your Apache config. file to point a group of URLs (such as all beginning
with '/books/') to a single PHP file.  Then within the PHP file use a
combination of regular expressions and environment variables (among other
solutions) to pull the proper content from a file or database.

For example if you have a URL like '/books/516.html' you can do:
eregi( '^/books/(.*).html', $SCRIPT_URL, $regs ) )
// $regs[1] will contain '516'.
// Grab record from database with id 516.

Offhand, the only other things to watch for are don't do fast meta redirects
(or any redirects at all) and if your PHP file hasn't been updated in
months, but the database data it pulls from has updated recently, it's
likely that browsers and spiders may think their cached copies of your
webpage are current.  A solution is to use a combination of header()
functions like:

header( "Last-Modified: " . gmdate( "D, d M Y H:i:s" ) . " GMT" );

Making your webpages appear at the top of search engines for your desired
search phrases is another story.  Though I live talking about search engine
optimization strategies and steps, this isn't the right forum for giving
away all of the secrets.  

--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] search my site

2001-07-26 Thread kaab kaoutar


Hi,
I have a web site that contaains html files and mysql dbs!
I'd like to integrate a search tool in my site !
Can u point me to some already done tools tha t i can use, or ideas that can 
help me ?
Thanks


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] search highlighting

2001-04-12 Thread Plutarck

You'll probably want to use preg_replace.

For instance:

$string = "/(PHP)/i";

$target = "Please highlight PhP for me.";

echo $target, '';

$target = preg_replace($string, "\\1", $target);

echo $target, '';


\\1 is whatever was found in the first parentheses(sp).


--
Plutarck
Should be working on something...
...but forgot what it was.


""Matt Williams"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi
>
> I'm implementing a simple keyword search.
> I want the results to be displayed with the keywords highlighted.
> I am currently using this to highlight the keywords
>
> str_replace($string,"$string",$field);
>
> If I search for php, it will find PHP, PhP etc... but using the above only
> php will will be highlighted, not PHP.
> I've tried eregi_replace but I could only get that to change the case and
> highlight that ie. PHP would become php.
>
> Can anyone point me in the direction of how to highlight the string
> regardless of case but keep the case for the match.
>
> TIA
>
> M@
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] search string

2001-04-15 Thread Brian Clark

Hi Joseph,

@ 12:08:46 PM on 4/15/2001, Joseph Bannon wrote:

> What is the function to search a string? Basically, I want search a string
> (a url) to see if it has "www.yahoo.com" in it and if yes, tell the user
> their submission cannot be accepted.



-Brian
--
 PGP is spoken here: 0xE4D0C7C8
 Please, DO NOT carbon copy me on list replies.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] search string

2001-04-15 Thread Tobias Talltorp

I think you want regular expressions...

Try this on for size:
$str = "http://www.yahoo.com/somedir/somepage.html";

if (preg_match("/www.yahoo.com/i", $str)) {
 print "Your submission cannot be accepted";
} else {
 print "You are good";
}

If you want to read up on regular expressions:
http://www.php.net/manual/en/ref.pcre.php (Faster than ereg)
http://www.php.net/manual/en/ref.regex.php

// Tobias Talltorp


""Joseph Bannon"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> What is the function to search a string? Basically, I want search a string
> (a url) to see if it has "www.yahoo.com" in it and if yes, tell the user
> their submission cannot be accepted.
>
> J
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] search string

2001-04-15 Thread dempsejn

Even better, try strstr...it'll be faster than a regexp for a simple 
search of a string for another string.

-jack

- Original Message -
From: "Tobias Talltorp" <[EMAIL PROTECTED]>
Date: Sunday, April 15, 2001 7:20 pm
Subject: Re: [PHP] search string

> I think you want regular expressions...
> 
> Try this on for size:
> $str = "http://www.yahoo.com/somedir/somepage.html";
> 
> if (preg_match("/www.yahoo.com/i", $str)) {
> print "Your submission cannot be accepted";
> } else {
> print "You are good";
> }
> 
> If you want to read up on regular expressions:
> http://www.php.net/manual/en/ref.pcre.php (Faster than ereg)
> http://www.php.net/manual/en/ref.regex.php
> 
> // Tobias Talltorp
> 
> 
> ""Joseph Bannon"" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > What is the function to search a string? Basically, I want 
> search a string
> > (a url) to see if it has "www.yahoo.com" in it and if yes, tell 
> the user
> > their submission cannot be accepted.
> >
> > J
> >
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: php-list-
> [EMAIL PROTECTED]>
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: php-list-
> [EMAIL PROTECTED]
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] search string

2001-04-15 Thread Brian Clark

Hi Tobias,

@ 7:20:00 PM on 4/15/2001, Tobias Talltorp wrote:

> I think you want regular expressions...

> Try this on for size:
> $str = "http://www.yahoo.com/somedir/somepage.html";

> if (preg_match("/www.yahoo.com/i", $str)) {
>  print "Your submission cannot be accepted";
> } else {
>  print "You are good";
> }
...

I doubt there is a need to use regular expressions just to find out of
a string has yahoo.com in it.

-Brian
--
 PGP is spoken here: 0xE4D0C7C8
 Please, DO NOT carbon copy me on list replies.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Search Engines

2001-08-06 Thread Tim

The web site http://www.searchenginewatch.com is highly recommended. :)

I believe that some search engines may not grok .php files properly, but
that may be old information, given the amount of PHP out there these
days.  All of my clients sites that I run use .html as a PHP extension,
so that's not an issue for them.

- Tim

On 07 Aug 2001 01:47:28 +0100, Tom Carter wrote:
> Hi All,
> 
> Does anyone have any experience with registering sites on the major search
> engines? I have a number of questions I hope to find help with (and please
> do excuse that not all of them are directly PHP related)
> 
> -Do search engines treat .html and .php files differently in caching etc?
> 
> -I include a standard header on each page, and was originally going to put
> into this standard all the various meta tags to describe the site, however
> someone suggested to me that this counetd against you by some search
> engineanyone have any knowledge on this?
> 
> -How is it best to create meta tags? does anyone know of php or other tools
> or good guides?
> 
> 
> Any other general advice more than appreciated!
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Search Engines

2001-08-06 Thread rm

One of best tutorials around can be found at:
http://www.northernwebs.com/set/

rm


__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Search in Progress

2001-09-22 Thread Alexis Antonakis

Hi,

I am developing a simple site, in PHP4, which has three frames on it.

The first gives you the search options and the second two, the results.

What I was wondering was, while the database is being searched, is it
possible to display some text in the 'results' frame stating that the search
is in progress?


I also have another site which I would like do this on, however this one,
rather than using frames, uses tables, and it is only when the entire set of
data for each table has been retrieved that the page is actually displayed.

Any suggestions would be most appreciated
Alexis


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Search in Progress

2001-09-22 Thread Alexis Antonakis

Hi,

I am developing a simple site, in PHP4, which has three frames on it.

The first gives you the search options and the second two, the results.

What I was wondering was, while the database is being searched, is it
possible to display some text in the 'results' frame stating that the search
is in progress?


I also have another site which I would like do this on, however this one,
rather than using frames, uses tables, and it is only when the entire set of
data for each table has been retrieved that the page is actually displayed.

Any suggestions would be most appreciated
Alexis



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Search Engines

2001-09-23 Thread Don Read



On 23-Sep-2001 Heidi Belal wrote:
> Hi All,
> this may be a bit off topic, but i need/advise on
> where and how i can register a site in the top search
> engines.  I know there are all these sites where you
> can do it but do you have recommendations?
> My other question is, why do we have to pay for this,
> or what does paying provide from those where you don't
> have to pay do?
> 

Yahoo, Google, Netscape, Lycos, MSN, etc. all have a "submit your link" 
page that you can add it yourself; or you can pay somebody to do it for you.

> I thought there were robots that go around linking
> from page to page and indexing the webpages..so that
> when a search is run the pages relevant are found, so
> what does paying do?
> 

Their time to submit the link(s), the knowledge of where to submit 'em, &
their time to answer your questions.

> thanks!
> Heidi
> 

Yer welcome.
That'll be $45.00, please.

-- 
Don Read   [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to 
   steal the neighbor's newspaper, that's the time to do it.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] search engine submission

2001-09-24 Thread Krushna Kumar R

Hi,

Can someone help me by where i could get some free code for search engine submission

Regards
Krushna Kumar



RE: [PHP] search results - details

2002-02-19 Thread Martin Towell

I'm assuming you have an id in that table, so all you need to do is pass the
details page the id and the details page can then display whatever you want
it to display

-Original Message-
From: mm fernandez [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 20, 2002 3:21 PM
To: [EMAIL PROTECTED]
Subject: [PHP] search results - details


hi,

I'm working on a search results page. actually i have my search form and 
search results page working fine already. but i want to add something on the

"results page". my search "results page" shows the following fields: 
lastname, firstname, middlename, yeargrad.
what i want is that the lastname results should be linked to a "more 
details" page. so for example, if i have a search result with 'garcia' as 
the lastname..i click on that and i should be transferred to a page showing 
me more details of that garcia..showing me more than just his/her 
firstname,middlename, and yeargrad.

What should i use as my sql statement for the "more details" page? And how 
do i tell the detail page to show which records to retrieve and display?
By the way, here's part of the code that i have for the results page:

// $r->lastname";
//   }
// ?>

if anyone can please help me. thanks.

// MM Fernandez

_
Join the world's largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] search engine friendly urls

2002-03-21 Thread Kelly Meeks

Does anyone have any ideas/info (or can you point me to) regarding how to make dynamic 
php content more search engine friendly (losing the '?' when dealing with url 
variables)?

As a Cold Fusion convert, you could do something like this:

http://www.blabla.com/dynamicpage.cfm/205  were 205 would be a record number and would 
be conventionally represented as

http://www.blabla.com/dynamicpage.cfm?id=205  

Thanks in advance,

Kelly

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] PHP Search Engine?

2002-03-23 Thread Rasmus Lerdorf

So just put that file in your own directory and use it from there.  It is
just a PHP script.

On Sat, 23 Mar 2002, lmlweb wrote:

> Hello,
>
> I've picked up a book called the PHP Developer's Cookbook, specifically
> for the search engine that was featured in it. It required the use of
> PEAR's File/Find.php, which my host hasn't installed, ..and very likely
> will not.
>
> Is there another way of coming up with a search engine in PHP that
> doesn't require the use of subscription services?
>
> Laurie M. Landry
> http://www.lmlweb.com
> voicemail/fax: (604) 693-1120
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] PHP Search Engine?

2002-03-23 Thread lmlweb

I don't think my server even has PEAR installed, so even if I just put
the script on my own directory, it still needs the PEAR.php - will I
need to do that too?

> -Original Message-
> From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] 
> Sent: Saturday, March 23, 2002 1:56 PM
> To: lmlweb
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP] PHP Search Engine?
> 
> 
> So just put that file in your own directory and use it from 
> there.  It is just a PHP script.
> 
> On Sat, 23 Mar 2002, lmlweb wrote:
> 
> > Hello,
> >
> > I've picked up a book called the PHP Developer's Cookbook, 
> > specifically for the search engine that was featured in it. It 
> > required the use of PEAR's File/Find.php, which my host hasn't 
> > installed, ..and very likely will not.
> >
> > Is there another way of coming up with a search engine in PHP that 
> > doesn't require the use of subscription services?
> >
> > Laurie M. Landry
> > http://www.lmlweb.com
> > voicemail/fax: (604) 693-1120
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> 
> 
> 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] PHP Search Engine?

2002-03-23 Thread lmlweb

My correction - there is a Pear, and it was just a matter of finding the
location
(/root/php-4.1.2/pear/File/Find.php) - so I tried to use the full path -
owrked, but then the Find.php required the PEAR.php, which was one
level. So what I've done so far is to put the Find.php in my directory,
and then make the path to the PEAR.php in the Find.php.

I don't know if this will work for the search application from the PHP
Dev's Cookbook but so far it seem to be working this way.


> -Original Message-
> From: lmlweb [mailto:[EMAIL PROTECTED]] 
> 
> I don't think my server even has PEAR installed, so even if I 
> just put the script on my own directory, it still needs the 
> PEAR.php - will I need to do that too?
> 
> > -Original Message-
> > From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]]
> > Sent: Saturday, March 23, 2002 1:56 PM
> > Subject: Re: [PHP] PHP Search Engine?



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Search engine indexing

2002-05-02 Thread Rasmus Lerdorf

yup

On Tue, 30 Apr 2002, Charl wrote:

> Are PHP files indexed the same way as plain HTML files by search engines?
>
> -- Charl
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Search engine indexing

2002-05-02 Thread Miguel Cruz

On Tue, 30 Apr 2002, Charl wrote:
> Are PHP files indexed the same way as plain HTML files by search engines?

Search engines don't know or care how pages were generated (PHP, ASP,
Perl, telekinesis, cosmic rays, etc.). They'll slurp up anything with HTML
or text on it. Some will read PDFs and other types as well.

A few won't index pages with GET arguments 
(?this=that&theotherthing=whatever) on them, but they're in the minority.

miguel


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Search engine indexing

2002-05-02 Thread John Holmes

Most will index a plain PHP page just like an .html page. If there is a
query string in the URL, like index.php?id=34, then some search engines
won't index it. 

There are methods for creating your URL so that it can be indexed and
still pass values, read some tutorials on Devshed.com or PHPbuilder.com.

---John Holmes...

> -Original Message-
> From: Charl [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 30, 2002 1:08 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Search engine indexing
> 
> Are PHP files indexed the same way as plain HTML files by search
engines?
> 
> -- Charl
> 
> 
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Search a flat file.

2002-06-07 Thread Tom Ray

I want to be able to search a flat file line by line looking for data 
such as a username then display all the information in that line. Is 
there some way to search the following format:

record1:username:info:info:info
record2:username:info:info:info
record3:username:info:info:info


So if someone submits the username in record two for the search I want 
it to stop at record two and then display that information...

any suggestions?


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Search - 'AND' ... 'OR'

2002-06-15 Thread Lazor, Ed

Funny.  I asked a very similar question the other day.  Jason Morehouse was
nice enough to offer this advice:

If you use fulltext search (assuming you are using MySQL), it deals with
stop
words on its own as well as some additional search logic.

http://www.mysql.com/doc/F/u/Fulltext_Search.html

-J



> -Original Message-
> From: Scott 'INtense!' Reismanis [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, June 16, 2002 2:36 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Search - 'AND' ... 'OR'
> 
> 
> Hey all,
>  
> I am in the middle of writing a script to allow users to 
> search through
> news archives on my website. Anyhow I am just wondering which 
> logic you
> believe best suits a search.
>  
> i.e. say a user types in 'games AND playstation' then only results
> containing both those words will be returned
> by the same token they could type in 'games OR playstation' 
> then results
> containing either word will be returned
>  
> However if a user does not explicity join there search critiera
> i.e. 'games playstation' what should I assume?
>  
> What would you expect? Google for example wacks an 'AND' 
> inbetween which
> is wise considering they are searching billions of pages 
> however my site
> obviously will only be searching a few hundred so maybe I 
> should assume
> an 'OR'?
>  
> So basically I just am curious to know what you would expect when
> entering multiple critera.
>  
> Regards,
>  
>  
>Scott
>  
> 
 

This message is intended for the sole use of the individual and entity to
whom it is addressed, and may contain information that is privileged,
confidential and exempt from disclosure under applicable law.  If you are
not the intended addressee, nor authorized to receive for the intended
addressee, you are hereby notified that you may not use, copy, disclose or
distribute to anyone the message or any information contained in the
message.  If you have received this message in error, please immediately
advise the sender by reply email and delete the message.  Thank you very
much.   

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Search & replace text

2001-02-11 Thread David Robley

On Mon, 12 Feb 2001 06:41, CDitty wrote:
> Hello all.  I am trying to search through a text file on my server to
> replace the user email.  I can open the file and read it, but cannot
> get it to "find" the actual string and replace it.  Can someone look
> over my code and see what the problem is?  I am afraid that ereg is not
> my strongest point.
>
> Also, at what point should I start writing the file out?  Wouldn't
> there be a permissions error if I was reading and writing at the same
> time?
>
> Thanks
> CDitty
>
>
> $oldemail = "[EMAIL PROTECTED]";
> $newemail = "[EMAIL PROTECTED]";
> $user = "cditty";
> $file = fopen("/path/to/the/user/file/$user.dat", "r");
> if(!$file){
>  echo "Unable to open remote file.\n";
>  exit;
> }else{
>  echo "Success";
> }
> while (!feof($file)) {
>  $line = fgets($file, 255);
>  if(eregi($oldemail, $line, $out)) {
>  str_replace($oldemail, $newemail, $line);

You need to assign the output of this function to a string:
   $new_line = str_replace($oldemail, $newemail, $line);

>  }
>
> echo $line . "";

and then

echo $new_line . ';

> }
> fclose($file)

-- 
David Robley| WEBMASTER & Mail List Admin
RESEARCH CENTRE FOR INJURY STUDIES  | http://www.nisu.flinders.edu.au/
AusEinet| http://auseinet.flinders.edu.au/
Flinders University, ADELAIDE, SOUTH AUSTRALIA

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Search & replace text

2001-02-12 Thread PHPBeginner.com

instead of writing to you the code I'll give you an idea:

1. you open the file and read it line-by-line assigning it to an array,
2. you loop that array parsing it line by line changing it's values with
RegEx the way you want.
3. you open the same file and, looping the array writing it down overriding
any existing data in the file.

You are now set.


Sincerely,

 Maxim Maletsky
 Founder, Chief Developer

 PHPBeginner.com (Where PHP Begins)
 [EMAIL PROTECTED]
 www.phpbeginner.com




-Original Message-
From: CDitty [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 12, 2001 5:12 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Search & replace text


Hello all.  I am trying to search through a text file on my server to
replace the user email.  I can open the file and read it, but cannot get it
to "find" the actual string and replace it.  Can someone look over my code
and see what the problem is?  I am afraid that ereg is not my strongest
point.

Also, at what point should I start writing the file out?  Wouldn't there be
a permissions error if I was reading and writing at the same time?

Thanks
CDitty


$oldemail = "[EMAIL PROTECTED]";
$newemail = "[EMAIL PROTECTED]";
$user = "cditty";
$file = fopen("/path/to/the/user/file/$user.dat", "r");
if(!$file){
 echo "Unable to open remote file.\n";
 exit;
}else{
 echo "Success";
}
while (!feof($file)) {
 $line = fgets($file, 255);
 if(eregi($oldemail, $line, $out)) {
 str_replace($oldemail, $newemail, $line);
 }

echo $line . "";
}
fclose($file)


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Search & replace text

2001-02-12 Thread Christian Reiniger

On Monday 12 February 2001 01:22, David Robley wrote:
> > while (!feof($file)) {
> >  $line = fgets($file, 255);
> >  if(eregi($oldemail, $line, $out)) {
> >  str_replace($oldemail, $newemail, $line);
>
> You need to assign the output of this function to a string:
>$new_line = str_replace($oldemail, $newemail, $line);

Another little thing: You don't need the eregi() here - just do 
str_replace. If it doesn't find $oldemail it won't do anything.

-- 
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)

Nothing is more dangerous than an idea if it's the only one you have.

- Emil-Auguste Chartier, "Propos sur la religion", 1938

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Search & replace text

2001-02-13 Thread PHPBeginner.com

ok, here's a scratch:

$contents = file ($file);
for($i=0; $imailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 13, 2001 3:29 AM
To: PHPBeginner.com
Subject: RE: [PHP] Search & replace text


Thanks for the idea.  Can you give me an example of how to load a file into
an array?  My efforts failed.

Thanks

At 03:41 AM 2/12/01, you wrote:
>instead of writing to you the code I'll give you an idea:
>
>1. you open the file and read it line-by-line assigning it to an array,
>2. you loop that array parsing it line by line changing it's values with
>RegEx the way you want.
>3. you open the same file and, looping the array writing it down overriding
>any existing data in the file.
>
>You are now set.
>
>
>Sincerely,
>
>  Maxim Maletsky
>  Founder, Chief Developer
>
>  PHPBeginner.com (Where PHP Begins)
>  [EMAIL PROTECTED]
>  www.phpbeginner.com
>
>
>
>
>-Original Message-
>From: CDitty [mailto:[EMAIL PROTECTED]]
>Sent: Monday, February 12, 2001 5:12 AM
>To: [EMAIL PROTECTED]
>Subject: [PHP] Search & replace text
>
>
>Hello all.  I am trying to search through a text file on my server to
>replace the user email.  I can open the file and read it, but cannot get it
>to "find" the actual string and replace it.  Can someone look over my code
>and see what the problem is?  I am afraid that ereg is not my strongest
>point.
>
>Also, at what point should I start writing the file out?  Wouldn't there be
>a permissions error if I was reading and writing at the same time?
>
>Thanks
>CDitty
>
>
>$oldemail = "[EMAIL PROTECTED]";
>$newemail = "[EMAIL PROTECTED]";
>$user = "cditty";
>$file = fopen("/path/to/the/user/file/$user.dat", "r");
>if(!$file){
>  echo "Unable to open remote file.\n";
>  exit;
>}else{
>  echo "Success";
>}
>while (!feof($file)) {
>  $line = fgets($file, 255);
>  if(eregi($oldemail, $line, $out)) {
>  str_replace($oldemail, $newemail, $line);
>  }
>
>echo $line . "";
>}
>fclose($file)
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Search & replace text

2001-02-13 Thread PHPBeginner.com

Sorry, I made a small mistake in my code ...

this is correct:

$contents = file ($file);
for($i=0; $imailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 13, 2001 11:34 PM
To: PHP; CDitty
Subject: RE: [PHP] Search & replace text


ok, here's a scratch:

$contents = file ($file);
for($i=0; $imailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 13, 2001 3:29 AM
To: PHPBeginner.com
Subject: RE: [PHP] Search & replace text


Thanks for the idea.  Can you give me an example of how to load a file into
an array?  My efforts failed.

Thanks

At 03:41 AM 2/12/01, you wrote:
>instead of writing to you the code I'll give you an idea:
>
>1. you open the file and read it line-by-line assigning it to an array,
>2. you loop that array parsing it line by line changing it's values with
>RegEx the way you want.
>3. you open the same file and, looping the array writing it down overriding
>any existing data in the file.
>
>You are now set.
>
>
>Sincerely,
>
>  Maxim Maletsky
>  Founder, Chief Developer
>
>  PHPBeginner.com (Where PHP Begins)
>  [EMAIL PROTECTED]
>  www.phpbeginner.com
>
>
>
>
>-Original Message-
>From: CDitty [mailto:[EMAIL PROTECTED]]
>Sent: Monday, February 12, 2001 5:12 AM
>To: [EMAIL PROTECTED]
>Subject: [PHP] Search & replace text
>
>
>Hello all.  I am trying to search through a text file on my server to
>replace the user email.  I can open the file and read it, but cannot get it
>to "find" the actual string and replace it.  Can someone look over my code
>and see what the problem is?  I am afraid that ereg is not my strongest
>point.
>
>Also, at what point should I start writing the file out?  Wouldn't there be
>a permissions error if I was reading and writing at the same time?
>
>Thanks
>CDitty
>
>
>$oldemail = "[EMAIL PROTECTED]";
>$newemail = "[EMAIL PROTECTED]";
>$user = "cditty";
>$file = fopen("/path/to/the/user/file/$user.dat", "r");
>if(!$file){
>  echo "Unable to open remote file.\n";
>  exit;
>}else{
>  echo "Success";
>}
>while (!feof($file)) {
>  $line = fgets($file, 255);
>  if(eregi($oldemail, $line, $out)) {
>  str_replace($oldemail, $newemail, $line);
>  }
>
>echo $line . "";
>}
>fclose($file)
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] search + sitemap scripts

2001-02-27 Thread Clayton Dukes

Try DGS Search, very easy and works great!

http://www.digitalgenesis.com/software/dgssearch.html



- Original Message -
From: "Ali" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 27, 2001 2:22 PM
Subject: [PHP] search + sitemap scripts


> could anybody help with links to a good search and sitemap script written
in
> php. Thanks
>
> Ali
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Search Engines and PHP

2001-01-22 Thread Jamie

I was wondering if anyone can enlighten me about the ability of search
engines to read and list PHP pages.  I have been told that because PHP
produces a dynamic html page (i.e. one that possibly outputs different HTML
for each hit or request) that they are not easily added to search engines
(if this is true though what would be the point of having any html pages if
you can't update or change them at anytime?).  Another point was made to me
was that many PHP pages require additional commands to be passed through the
URL eg www.domain.com.au/writestufft.php?variable=foobar which search
engines find hard to deal with also.
If any of these are true or if there are such problems which could result in
the page not getting listed then what are the options.
My only idea has come from the [PHP]url hide thread in which a index.html
single 'wrapper frame' could be applied to the entire site.
Any Ideas

Jamie
Slightly confused and possibly mislead



[PHP] Search for the documentation

2001-01-24 Thread Jamie

I'm one of those ppl who find it hard to sit and read documentation
especially manuals like the PHP one - presented HTML with no inbuilt search
functions. Being a fairly novice programmer and more of a designer I'm not
even that familiar with the programming terms to figure out what sections to
find what I'm looking for.
Sooo
-has anyone written a PHP search script for the documentation. I'd like to
be able to be able to do it similar to the windows (or most other) find box
where it will sort through all the pages until it hits the string I'm after
then if that's not it I can hit next and go onto the next matching string
that it finds... I guess what I'm thinking of would have to run in a framed
html [search at top and manual at bottom] but any other suggestions would be
welcomed.

Jamie


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] search a text file

2001-03-12 Thread Peter Benoit

I've got a bit of a task where I need to poll a text file for several lines
of text which is buried deep within the file.  These lines change each day,
but the text surrounding them do not.

Is it possible to extract these lines of information based on the text
surrounding them?


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] search safe URLs

2001-03-27 Thread CC Zona

In article <[EMAIL PROTECTED]>,
 [EMAIL PROTECTED] (Joe Sheble aka Wizaerd) wrote:

> In order to use URLs without ? and &, there has to be some re-configuration 
> in Apache, correct?  So somebody who didn't have access to httpd.conf 
> couldn't use this methodology?  Or if this is completely incorrect, where 
> can I find more info on implementing it strictly in PHP?

Apache allows use of urls without "?" and "&" right out of the box.  That's 
just a URI without an optional query string: , for 
example.   I'm guessing you want to use URLs that *do have a query string 
and transform them into ones that don't: 
 becoming 
, right?

You can use an .htaccess file to direct Apache to rewrite URLs as long as 
mod_rewrite is installed.  See 
 for a detailed 
tutorial.

For a how-to on implementing this in PHP, check out some of the tutorial 
sites like phpbuilder.com,weberdev.com, webmonkey.com, etc.

-- 
CC

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] search safe URLs

2001-03-27 Thread Philip Olson

Check out this post :

  http://marc.theaimsgroup.com/?l=php-general&m=98555149708325

The first two tutorials should help.  Btw, no reconfigurations are 
required.

Regards,

Philip

On Tue, 27 Mar 2001, Joe Sheble aka Wizaerd wrote:

> In order to use URLs without ? and &, there has to be some re-configuration 
> in Apache, correct?  So somebody who didn't have access to httpd.conf 
> couldn't use this methodology?  Or if this is completely incorrect, where 
> can I find more info on implementing it strictly in PHP?
> 
> Joseph E. Sheble
> [EMAIL PROTECTED]
> 
> Wizaerd's Realm
> http://www.wizaerd.com
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] search safe URLs

2001-03-27 Thread Joe Sheble (Wizaerd)

thanx, I'll be looking these over vigarously...

At 05:11 PM 3/27/01 +, Philip Olson wrote:
>Check out this post :
>
>   http://marc.theaimsgroup.com/?l=php-general&m=98555149708325
>
>The first two tutorials should help.  Btw, no reconfigurations are
>required.
>
>Regards,
>
>Philip
>
>On Tue, 27 Mar 2001, Joe Sheble aka Wizaerd wrote:
>
> > In order to use URLs without ? and &, there has to be some 
> re-configuration
> > in Apache, correct?  So somebody who didn't have access to httpd.conf
> > couldn't use this methodology?  Or if this is completely incorrect, where
> > can I find more info on implementing it strictly in PHP?
> >
> > Joseph E. Sheble
> > [EMAIL PROTECTED]
> > 
> > Wizaerd's Realm
> > http://www.wizaerd.com
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Search engines and mod_rewrite

2001-05-13 Thread Tom Carter

hi all,

On one of my sites we make extensive use of variable passed through the
url, particullarly for browsing the main content of the site which is
organised into main and sub categories, eg
browse.php?maincat=Weather&subcat=sunny kind of thing.

I understand from colleagues who know much on these things that public
search engines bots (eg google) stop parsing thru that part of the site
when they reach a '?' (I could well be wrong on this).

a way around this that I have heard is installing the mod_rewrite module
in apache and mapping browse/weather/sunny to
browse.php?maincat=weather&subcat=sunny.

Would this in fact even  fix the problem? Its a hard thing to test!

Does anyone have any experience using this? And what is the advice from
people on how best to get google&co to spider your site and find your
content effectively?

Thanks in advance

Tom


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Search engine php/mysql

2001-06-20 Thread Mohamedou



Hello list,
 
I am coding a search engine that allow indexing and 
searching internet sites based on php/mysql.
 
My problm is:
 
How can i index a given site, I mean:
 
input: URL, like http://www.blabla.com/
Output: meta, body content, description that will 
be stored in a tables.
 
thnx in advance
 
Moh


[PHP] search based on array

2001-07-30 Thread Matthew Delmarter

How do I search mysql based on an array?

For example suppose I had an array of array(1,2,3). And I want to
search like so:

SELECT * FROM table WHERE id=arrayvalues

Regards,

Matthew


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] search array for value

2001-07-30 Thread Matthew Delmarter

How do I search an array? 

For example if I want to know if $array contains "1"...

Regards,

Matthew Delmarter

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] php search xml-file

2001-04-08 Thread Jan Grafström

Hi!
I have this xml:

car
ford
3600


-
and this php:
$filename = "list.xml";
$fp = fopen($filename, "r");
$string = fread($fp, filesize($filename));
$string = strip_tags($string);
$refined_string = explode(" ", $string);
if (in_array($needle." ", $refined_string)) {
print "found";
} else {
print "notfound";
}
fclose ($fp);
---
I always get notfound when I set $needle to a word inside the xml-file.
My script doesn´t work.
Is it possible also to write a script wich can find the word "ford" if
You only ask for "for"?
I have just started to learn about php search and I am very thankful for
any help.

Regards
Jan


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Search a string between

2001-05-09 Thread Luiz Vitor

Hi...

I have a text and, some words of the text have the tags  between them.
What i'm trying to do is to replace the word between that tags for a url, wich I'll 
search them in a database and convert to a url.

It's working fine when I have only one , but when there are more than one, 
the script converts all the text between the first  and the last 
.

I'm using this code:

if (eregi("(.*)", $string, $result)) {
   $string = str_replace($result[1], ''.$result[1].'', 
$string);
}


Someone knows what I have to do to put it to work???


Thanks in advance.

Luiz Vitor
Brazil



[PHP] "Search" code finds ANYTHING

2001-08-15 Thread Raphael Pirker

Hi,

function search_the_array($array) {
  global $search_tmp;
  $result = array_search($search_tmp, $array, TRUE);
   reset($array);
   while (!($result === FALSE) && (list($k, $v) = each($array)))
{
   // Or maybe you wanted ereg($search_tmp, $v) here...
   $result = ereg($v, $search_tmp) ? $k : FALSE;
   }
return ' '.$result; // extra space needed before the "key"
}

This code immediately returns a result, no matter what I type in there and
what the array consists of. I even tried searching "Singapore" for "I will
get a result no matter what I search for" and BANG... PHP fires back a
result. I didn't write the code myself so I have no idea what's going on
there... but I'd be glad if someone could help me. This code is supposed to
search an array until it finds "$search_tmp" inside it...

TIA,

Raphael



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Search in Progress

2001-09-22 Thread rm

to my knowledge what you're talking about is done
through html layers and javascript...I've seen it done
at other siteshttp://www.anywho.com/rl.html  uses
this process.

rm





--- Alexis Antonakis <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> I am developing a simple site, in PHP4, which has
> three frames on it.
> 
> The first gives you the search options and the
> second two, the results.
> 
> What I was wondering was, while the database is
> being searched, is it
> possible to display some text in the 'results' frame
> stating that the search
> is in progress?
> 
> 
> I also have another site which I would like do this
> on, however this one,
> rather than using frames, uses tables, and it is
> only when the entire set of
> data for each table has been retrieved that the page
> is actually displayed.
> 
> Any suggestions would be most appreciated
> Alexis
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> To contact the list administrators, e-mail:
> [EMAIL PROTECTED]
> 


__
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger. 
http://im.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Search in Progress

2001-09-22 Thread Gaylen Fraley

You don't need layers.  Just have a js routine that sends 2 different
location statements, i.e.


parent.resultsframe.location =
"javascript:'document.write(loading...');";
// then start your search code here


--
Gaylen
[EMAIL PROTECTED]
http://www.gaylenandmargie.com
PHP KISGB v1.2 Guestbook http://www.gaylenandmargie.com/publicscripts

"Rm" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> to my knowledge what you're talking about is done
> through html layers and javascript...I've seen it done
> at other siteshttp://www.anywho.com/rl.html  uses
> this process.
>
> rm
>
>
>
>
>
> --- Alexis Antonakis <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > I am developing a simple site, in PHP4, which has
> > three frames on it.
> >
> > The first gives you the search options and the
> > second two, the results.
> >
> > What I was wondering was, while the database is
> > being searched, is it
> > possible to display some text in the 'results' frame
> > stating that the search
> > is in progress?
> >
> >
> > I also have another site which I would like do this
> > on, however this one,
> > rather than using frames, uses tables, and it is
> > only when the entire set of
> > data for each table has been retrieved that the page
> > is actually displayed.
> >
> > Any suggestions would be most appreciated
> > Alexis
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > To contact the list administrators, e-mail:
> > [EMAIL PROTECTED]
> >
>
>
> __
> Do You Yahoo!?
> Get email alerts & NEW webcam video instant messaging with Yahoo!
Messenger. http://im.yahoo.com



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Search in Progress

2001-09-22 Thread hvm

Hi Alexis,

I have the same sort of settings but it is for me very difficult to get the
information from the find input field in to the session variables.
Do you have a solution how to do this?
I have no solution to your problem but it is for me also interesting to see
if someone comes with a solution.

Yours Hans.

- Original Message -
From: "Alexis Antonakis" <[EMAIL PROTECTED]>
To: "Php-General@Lists. Php. Net" <[EMAIL PROTECTED]>
Sent: Saturday, September 22, 2001 5:02 PM
Subject: [PHP] Search in Progress


> Hi,
>
> I am developing a simple site, in PHP4, which has three frames on it.
>
> The first gives you the search options and the second two, the results.
>
> What I was wondering was, while the database is being searched, is it
> possible to display some text in the 'results' frame stating that the
search
> is in progress?
>
>
> I also have another site which I would like do this on, however this one,
> rather than using frames, uses tables, and it is only when the entire set
of
> data for each table has been retrieved that the page is actually
displayed.
>
> Any suggestions would be most appreciated
> Alexis
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Search in Progress

2001-09-23 Thread Christian Reiniger

On Saturday 22 September 2001 14:41, Alexis Antonakis wrote:

> I am developing a simple site, in PHP4, which has three frames on it.
>
> The first gives you the search options and the second two, the results.
>
> What I was wondering was, while the database is being searched, is it
> possible to display some text in the 'results' frame stating that the
> search is in progress?

Little thing to think about: is your search so slow that you need to (or 
that it makes sense to) display an "in progress" text?

Go to 
http://www.google.com/search?q=e
and look at the info in the upper right corner of the page. That's how a 
search should work :)

-- 
Christian Reiniger
LGDC Webmaster (http://lgdc.sunsite.dk/)

"These are the people who proudly call themselves "hackers" --
not as the term is now abused by journalists to mean a computer
criminal, but in its true and original sense of an enthusiast,
an artist, a tinkerer, a problem solver, an expert."

- ESR

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] search engine submission

2001-09-24 Thread Jon Haworth

You can find this code all over the web, an example of it can be seen at
most search engines on the "Add a URL" page :-)

What are you trying to do?

Cheers
Jon


-Original Message-
From: Krushna Kumar R [mailto:[EMAIL PROTECTED]]
Sent: 24 September 2001 15:08
To: [EMAIL PROTECTED]
Subject: [PHP] search engine submission


Hi,

Can someone help me by where i could get some free code for search engine
submission

Regards
Krushna Kumar


**
'The information included in this Email is of a confidential nature and is 
intended only for the addressee. If you are not the intended addressee, 
any disclosure, copying or distribution by you is prohibited and may be 
unlawful. Disclosure to any party other than the addressee, whether 
inadvertent or otherwise is not intended to waive privilege or confidentiality'

**

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] search engine submission

2001-09-24 Thread Jonathan Chum

I believe that he wants an automated URL submission script. I've seen one
that just been released like a week or two ago. It's good script from what I
remember looking at the code with "success" page verification. If I can find
the URL, I'll be sure to reply. I can't seem to find it my IE's history. I
think the Windows XP Pro upgrade on Win2k did something to the browser's
history.

I have ported my PERL submission script to PHP, however I'm waiting for a
particular feature in PHP, rather a function to be more "developed" before I
release my port.

"Jon Haworth" <[EMAIL PROTECTED]> wrote in message
67DF9B67CEFAD4119E4200D0B720FA3FB5F105@BOOTROS">news:67DF9B67CEFAD4119E4200D0B720FA3FB5F105@BOOTROS...
> You can find this code all over the web, an example of it can be seen at
> most search engines on the "Add a URL" page :-)
>
> What are you trying to do?
>
> Cheers
> Jon
>
>
> -Original Message-
> From: Krushna Kumar R [mailto:[EMAIL PROTECTED]]
> Sent: 24 September 2001 15:08
> To: [EMAIL PROTECTED]
> Subject: [PHP] search engine submission
>
>
> Hi,
>
> Can someone help me by where i could get some free code for search engine
> submission
>
> Regards
> Krushna Kumar
>
>
> **
> 'The information included in this Email is of a confidential nature and is
> intended only for the addressee. If you are not the intended addressee,
> any disclosure, copying or distribution by you is prohibited and may be
> unlawful. Disclosure to any party other than the addressee, whether
> inadvertent or otherwise is not intended to waive privilege or
confidentiality'
>
> **



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] search engine submission

2001-09-25 Thread Krushna Kumar R

Hi,

I have a website which i would like to submit to the search engines
frequently, so i thought i could write a program for this, not depending on
other free web sites  for submission

Rgds
Krushna Kumar

- Original Message -
From: "Jon Haworth" <[EMAIL PROTECTED]>
To: "'Krushna Kumar R'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, September 24, 2001 7:36 PM
Subject: RE: [PHP] search engine submission


> You can find this code all over the web, an example of it can be seen at
> most search engines on the "Add a URL" page :-)
>
> What are you trying to do?
>
> Cheers
> Jon
>
>
> -Original Message-
> From: Krushna Kumar R [mailto:[EMAIL PROTECTED]]
> Sent: 24 September 2001 15:08
> To: [EMAIL PROTECTED]
> Subject: [PHP] search engine submission
>
>
> Hi,
>
> Can someone help me by where i could get some free code for search engine
> submission
>
> Regards
> Krushna Kumar
>
>
> **
> 'The information included in this Email is of a confidential nature and is
> intended only for the addressee. If you are not the intended addressee,
> any disclosure, copying or distribution by you is prohibited and may be
> unlawful. Disclosure to any party other than the addressee, whether
> inadvertent or otherwise is not intended to waive privilege or
confidentiality'
>
> **
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] search engine submission

2001-09-26 Thread Marian Vasile

All you need to learn, about submission is just forms (post get) and some
javascript, to simulate perfectly like user is typing the info.
Youca use two frames for that and it's really easy... :)

Yours
Marian

"Krushna Kumar R" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
>
> I have a website which i would like to submit to the search engines
> frequently, so i thought i could write a program for this, not depending
on
> other free web sites  for submission
>
> Rgds
> Krushna Kumar
>
> - Original Message -
> From: "Jon Haworth" <[EMAIL PROTECTED]>
> To: "'Krushna Kumar R'" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
> Sent: Monday, September 24, 2001 7:36 PM
> Subject: RE: [PHP] search engine submission
>
>
> > You can find this code all over the web, an example of it can be seen at
> > most search engines on the "Add a URL" page :-)
> >
> > What are you trying to do?
> >
> > Cheers
> > Jon
> >
> >
> > -Original Message-
> > From: Krushna Kumar R [mailto:[EMAIL PROTECTED]]
> > Sent: 24 September 2001 15:08
> > To: [EMAIL PROTECTED]
> > Subject: [PHP] search engine submission
> >
> >
> > Hi,
> >
> > Can someone help me by where i could get some free code for search
engine
> > submission
> >
> > Regards
> > Krushna Kumar
> >
> >
> > **
> > 'The information included in this Email is of a confidential nature and
is
> > intended only for the addressee. If you are not the intended addressee,
> > any disclosure, copying or distribution by you is prohibited and may be
> > unlawful. Disclosure to any party other than the addressee, whether
> > inadvertent or otherwise is not intended to waive privilege or
> confidentiality'
> >
> > **
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
> >
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Search Engine risk using $HTTP_HOST?

2002-02-26 Thread Kevin Stone

Does anyone know if there is a risk of search engine's banning you (or
reducing your status) if you use $HTTP_HOST to redirect visitors to two
separate domains such as in the example below?  Note:  It's not a header
redirect.  Instead I use an include statement which works because both
websites exist in separate folders locally on the same account.
 
file: index.php

 
Just making sure!  :-)
 
Thanks,
Kevin Stone
[EMAIL PROTECTED]



Re: [PHP] search engine friendly urls

2002-03-21 Thread Rasmus Lerdorf

You can do exactly the same thing with PHP.  The 205 would show up in the
$PATH_INFO variable.

-Rasmus

On Thu, 21 Mar 2002, Kelly Meeks wrote:

> Does anyone have any ideas/info (or can you point me to) regarding how to make 
>dynamic php content more search engine friendly (losing the '?' when dealing with url 
>variables)?
>
> As a Cold Fusion convert, you could do something like this:
>
> http://www.blabla.com/dynamicpage.cfm/205  were 205 would be a record number and 
>would be conventionally represented as
>
> http://www.blabla.com/dynamicpage.cfm?id=205
>
> Thanks in advance,
>
> Kelly
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] search engine indexing and redirects

2002-05-17 Thread Adrian Murphy

Hi all,
firstly: i know nowt about search engines/crawlers spiders really.
i'm giving users fake sub-domains i.e
www.username.mysite.com gets redirected to www.mysite.com/users/sites/username via 
mod_rewrite/wildcard dns
so i'm wondering if search engines will have any trouble indexing those sites.
i was talking to an 'internet consultant' who
has a flash red sports car and earns about 5 times more than me and he said i should 
look into this.
i would have thought that server-side redirects are no problem for crawlers.
i set up a google adwords thingy for one of the sites and it
worked for a while but now they've come back to me saying the url 
doesn't work when it clearly does.i've asked the google folks about this and am 
waiting for them to get back.
was just wondering if anyone had experience of this sort of thing.
thanks
adrian



[PHP] Search Engine Friend Dynamic Pages

2002-06-05 Thread Scott Reismanis

Hey all,

Just a quick question regarding developing search engine friendly 
pages. Basically I am re-writing my site so that say mysite.com?
page=support&action=help becomes mysite.com/support/help/ Reason why is 
it looks nicer and is search engine friendly, as some search engines 
cannot spider URLS with query strings.

Anyhow my preferable method of achiving this is having all pages raise 
a 404 error, which then loads my custom 404 page which shall output 
a "200 ok header" and load the appropiate content. I have heard 
somewhere though, that despite overwriting the 404 header, search 
engines wont index the page because they think it does not exist... is 
this the case? If so I shall use another method, such as one where I 
crop the *.php extension off my files and force apache to interpret 
them as mime type php.

Thanks for your time everyone
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




  1   2   >