Hi,
I'think anybody knows highlight_file, highlight_string
or show_source, but these are not good enough.
For an application I need a more advanced technique,
which includes line numbers and let me control all
formatting instructions (not only font color...).
Is there any script out, written
Windows or Linux? These are editors, not viewers, though.
If Windows - UltraEdit; there are predefined files whihc are used to
colourize PHP HTML markup. You can add to then and extend them. Possible
HTMLKit as well.
If Linux - Bluefish, I guess, although you'll hear from VIM and Emacs
-Original Message-
From: Miles Thompson [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 26, 2001 7:42 PM
To: [EMAIL PROTECTED]; php
Subject: Re: [PHP] search for a better php source code viewer
Windows or Linux? These are editors, not viewers, though.
If Windows - UltraEdit
PROTECTED]; php
Subject: Re: [PHP] search for a better php source code viewer
I suggest ConTEXT. It's free, and it's for windows.
http://www.fixedsys.com/context
And for Linux, I suggest Nedit.
http://www.nedit.org/
Tyler
--
PHP General Mailing List (http://www.php.net
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
8:22
AM
Subject: [PHP] Search engine php/mysql
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, bo
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.
Regular
Tom,
I can't be sure, since I'm not too knowledgeable with this, but I would
think this would work just fine. The search engine should be seeing the URL
just as the user would. Further, a site I know does a similar trick (though
I'm not sure they use mod_rewrite) where /users/username is
PROTECTED]; [EMAIL PROTECTED]
Sent: Wednesday, May 09, 2001 1:46 PM
Subject: Re: [PHP] Search a string between foo/foo
On Wednesday 09 May 2001 16:14, Luiz Vitor wrote:
It's still not working.
I'm using the pattern ([^foo]*) and I'm getting the first match
correct, but it's not getting all
Hi...
I have a text and, some words of the text have the tags url/url 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 url/url, but when there are more than
The problem is that it matches the first foo with the first /foo and the
second foo witht eh /foo ( andmatches those properly) but it also matches
the first foo with the second /foo (thisnk of the logic of the regex).
What you need to do is rather than specify any character (.*) specify any
.* in your patten will match everything It's greedy like perl (unless you
compiled php not to be)
add a ? and it will make it none greedy
^[foo]* will not work ^ needs to be in [] to mean not else it means
start of string
Luiz Vitor [EMAIL PROTECTED] wrote in message
Subject: Re: [PHP] Search a string between foo/foo
.* in your patten will match everything It's greedy like perl (unless
you
compiled php not to be)
add a ? and it will make it none greedy
^[foo]* will not work ^ needs to be in [] to mean not else it means
start of string
Luiz Vitor
2001 15:14
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Search a string between foo/foo
It's still not working.
I'm using the pattern ([^foo]*) and I'm getting the first match correct,
but it's not getting all the other matches.
Thanks,
Luiz Vitor
- Original Message -
From: Toby Dacre
On Wednesday 09 May 2001 16:14, Luiz Vitor wrote:
It's still not working.
I'm using the pattern ([^foo]*) and I'm getting the first match
correct, but it's not getting all the other matches.
[^foo] means any character except '', 'f', 'o' and ''
You're looking for something like this:
$Text
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]
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:
Hi there
I have some scripts that do a search in a MySQL database
table.
I want to be able to return rows that match a query, in
order of relevancy.
For example, say I have a table that has the following data
|row_id| data
|--|-
| 1 | cat
| 2 |
PROTECTED]
http://www.chieftain.com
1-800-269-6397
-Original Message-
From: Jen Hall [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 19, 2001 7:57 AM
To: php3 Mailing List
Subject: [PHP] search results return by relevancy
Hi there
I have some scripts that do a search in a MySQL database
Note that a LIKE query like that is going to be very slow. You are
better off defining those fields as fulltext fields and using MySQL's
built-in fulltext search capability which will automatically return a
relevance value for each hit.
See http://www.mysql.com/doc/F/u/Fulltext_Search.html
Try "MATCH (FULLTEXT index columns) AGAINST ('keyword')"
Check the MySQL manual at: http://www.mysql.com and search for "match
against" or "fulltext"
You need to build FULLTEXT indexes on the columns you want to search
before you can use the above syntax.
However, it will search and sort by
However, note that MySQL does not include stopwords in the FULLTEXT index
--and it currently considers any word of three characters or less to be a
"stopword". So if you really are searching for words as short as "cat",
this isn't the solution (or else you're going to need to make some
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
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.
?php
$string = 'www.yahoo.com';
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:
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 e
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
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,"b$string/b",$field);
If I search for php, it will find PHP, PhP etc... but using the above only
php will will
You'll probably want to use preg_replace.
For instance:
$string = "/(PHP)/i";
$target = "Please highlight PhP for me.";
echo $target, 'br';
$target = preg_replace($string, "b\\1/b", $target);
echo $target, 'br';
\\1 is whatever was found in the first parentheses(sp).
--
Plutarck
Should
h 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]
ot;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"?
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
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
uot;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 i
"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
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
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
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
Check out this post :
http://marc.theaimsgroup.com/?l=php-generalm=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
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-generalm=98555149708325
The first two tutorials should help. Btw, no reconfigurations are
required.
Regards,
Philip
On Tue, 27 Mar
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
Is there a way to have php display all the .txt files in a directory? I
checked in the manual but didn't see anything that would seem to help me
do this. Thanks for any help.
-Andrew V. Romero
To reply personally, remove all numbers from my address.
--
PHP General Mailing List
On Wed, 14 Mar 2001 15:20, Andrew V. Romero wrote:
Is there a way to have php display all the .txt files in a directory?
I checked in the manual but didn't see anything that would seem to help
me do this. Thanks for any help.
Wasn't this already asked and answered today? Anyhow, see the
Wow, that exact question was asked. Sorry everyone.
Thanks anyway.
David Robley wrote:
On Wed, 14 Mar 2001 15:20, Andrew V. Romero wrote:
Is there a way to have php display all the .txt files in a directory?
I checked in the manual but didn't see anything that would seem to help
me do
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
In article
[EMAIL PROTECTED],
[EMAIL PROTECTED] (Peter Benoit) wrote:
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
OK, I'm a little new to this, else I would have known that. Any examples
out there I could use/modify?
thanks,
pete
-Original Message-
From: CC Zona [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 12, 2001 2:16 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] search a text file
[quotes returned to bottom-posting, for clarity]
In article
[EMAIL PROTECTED],
[EMAIL PROTECTED] (Peter Benoit) wrote:
In article
[EMAIL PROTECTED],
[EMAIL PROTECTED] (Peter Benoit) wrote:
I've got a bit of a task where I need to poll a text file for several
lines
of text which is
In article
[EMAIL PROTECTED],
[EMAIL PROTECTED] (Peter Benoit) wrote:
Very good info, but this text is located in a text file. How can I
reference it this way?
Get the contents of the text file--for example, using fopen() with
fread()--into a variable. Then use that variable as the
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
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
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
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
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
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
ages 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
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]
On Tue, 23 Jan 2001 13:33:00 +0100, Sander Pilon ([EMAIL PROTECTED])
wrote:
If you want to be totally searchengine-safe, do not use variables
on the
url, do not rely on cookies and do not rely on POST variables
for the pages
you want to have the searchengine spider.
How the heck do you
tsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
[EMAIL PROTECTED]
www.phpbeginner.com
-Original Message-
From: CDitty [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 13, 2001 3:29 AM
To: PHPBeginner.com
Subject: RE: [PHP] Search replace text
Thanks for the ide
ely,
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
[EMAIL PROTECTED]
www.phpbeginner.com
-Original Message-
From: PHPBeginner.com [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 13, 2001 11:34 PM
To: PHP; CDitty
Subject: RE: [PHP] Search repla
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
an
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:
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
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
(BC == "Brian Clark") [EMAIL PROTECTED] betokened:
BC I'm using Beta 2.10a (I'm in the Beta program), but I'm not
BC completely sure when this new feature was added (some where
BC between 2.00 and 2.10a):
BC If you go into settings and syntax for PHP in Preferences, I see a
BC 'function
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. É
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
'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 ont
any.
- Original Message -
From: "Jamie" [EMAIL PROTECTED]
To: "PHP" [EMAIL PROTECTED]
Sent: Thursday, January 25, 2001 10:20 AM
Subject: [PHP] Search for the documentation
I'm one of those ppl who find it hard to sit and read documentation
especially manuals like the
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
At 09:23 23.01.2001, Kristofer Widholm said:
[snip]
If you want to be totally searchengine-safe, do not use variables on the
url, do not rely on cookies and do not rely on POST variables for the pages
you want to have the searchengine spider.
How the heck
On Tuesday 23 January 2001 09:23, Kristofer Widholm wrote:
If you want to be totally searchengine-safe, do not use variables on
the url, do not rely on cookies and do not rely on POST variables for
the pages you want to have the searchengine spider.
How the heck do you build a dynamic site
At 13.33 +0100 01-01-23, Sander Pilon poked the keyboard as follows:
If you want to be totally searchengine-safe, do not use variables on the
url, do not rely on cookies and do not rely on POST variables
for the pages
you want to have the searchengine spider.
How the heck do you
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
-Original Message-
From: Sander Pilon [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 22, 2001 9:51 AM
To: Jamie; [EMAIL PROTECTED]
Subject: RE: [PHP] Search Engines and PHP
I was wondering if anyone can enlighten me about the ability of search
engines to read and list PHP pages. I have been
I have a site that uses PHP extensively. Each page has PHP, so of course each page
ends in the .php extension.
Does anyone know if this affects the way a search engine crawls a site? I have several
sites that are very successful, but this site does not even show up on the search
engines. All
On 01/17, Shane McBride rearranged the electrons to read:
Does anyone know if this affects the way a search engine crawls a site?
I have several sites that are very successful, but this site does not even
show up on the search engines.
It shouldn't. I have a few sites that use .php files
401 - 477 of 477 matches
Mail list logo