Re: [PHP-DB] index.html or index.php

2006-09-29 Thread Philipp Schwarz
If you want to show only the filename and not the compleate path, you can use the basename() function: Philipp Schwarz Shaun A Riches schrieb: REQUEST_URI and a simple string manipulation will help you. ___ Shaun Riches Computer Science Student -Original Message---

Re: [PHP-DB] Search engine

2006-09-29 Thread Rezvan
It's not that complicated, after crawling your website at a specific time you can check for content created in your database after that time. Then you can search specific fields from that content for words and index them. If you need to find tags you'ld best use regular expressions to search th

Re: [PHP-DB] Search engine

2006-09-29 Thread Niel Archer
Hi Ron This doesn't sound like a Db problem then. You could open each page and use a regex to search for the links. Something like: preg_match_all("/(.*)<\a>/", $page, $matches, PREG_PATTERN_ORDER); which would produce an array ($matches[1]) of the addresses and a array ($matches[2]) of co

Re: [PHP-DB] I still have a bit more of the string to get rid of ...

2006-09-29 Thread Niel Archer
Hiya Ron see my post to your original thread for another answer to this. As noted there though, this is not a DB question, so this is not the list to be pursuing this enquiry. Niel -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DB] Array

2006-09-29 Thread Ron Piggott (PHP)
If I have the sentences Check one two three four. You did well to count to four. how do I put each word into an array (so there would be 12 components in the array) as well as remove the period and make the C in Check and the Y in You lower case Ron

Re: [PHP-DB] Array

2006-09-29 Thread Niel Archer
Hi Ron, > how do I put each word into an array (so there would be 12 components in > the array) as well as remove the period and make the C in Check and the > Y in You lower case This isn't a DB question, please ask questions in the appropriate list. But for reference, look up the str_replace, s

RE: [PHP-DB] Array

2006-09-29 Thread Hutchins, Richard
Use the strtolower function to reduce all letters to lower case. Then use the stripos() function to find where the spaces are in the string and use that position in the substr() function to parse out the individual words in the string. From there you can put the chunks into an array or a query or

RE: [PHP-DB] Array

2006-09-29 Thread Shaun A Riches
Title: RE: [PHP-DB] Array This is hardly database related but nonetheless. $myString = "Check one two three four.  You did well to count to four."; $myString = str_replace(".","",$myString); $myString = strtolower($myString); $myWords = explode(" ", $myString); // do stuff here with your