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

2006-09-29 Thread Shaun A Riches
Title: RE: [PHP-DB] index.html or index.php






?
echo I am currently viewing  . $_SERVER[REQUEST_URI];
?

REQUEST_URI and a simple string manipulation will help you.

___
Shaun Riches
Computer Science Student



-Original Message-
From: Ron Piggott (PHP) [mailto:[EMAIL PROTECTED]]
Sent: Fri 29/09/2006 04:46
To: PHP DB
Subject: [PHP-DB] index.html or index.php

I have used both index.html and index.php in the various directories.
Is there a way to tell which was loaded if a user visited:

www.domain.com/directory/

?

Ron






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

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 array
?

How is that?

___
Shaun Riches
Computer Science Student
http://www.sh4un.co.uk



-Original Message-
From: Ron Piggott (PHP) [mailto:[EMAIL PROTECTED]]
Sent: Fri 29/09/2006 16:21
To: PHP DB
Subject: [PHP-DB] Array

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







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

RE: [PHP-DB] Search engine

2006-09-28 Thread Shaun A Riches
Title: RE: [PHP-DB] Search engine






What about the MySQL LIKE command? Research it.

This is assuming your data is stored properly without redundant data and in a MySQL database.

___
Shaun Riches
Computer Science Student



-Original Message-
From: Ron Piggott (PHP) [mailto:[EMAIL PROTECTED]]
Sent: Thu 28/09/2006 03:44
To: PHP DB
Subject: [PHP-DB] Search engine



___
Shaun Riches
Computer Science Student



-Original Message-
From: Ron Piggott (PHP) [mailto:[EMAIL PROTECTED]]
Sent: Thu 28/09/2006 03:44
To: PHP DB
Subject: [PHP-DB] Search engine

Has anyone wrote a search engine for the web site? I am wondering if
someone has the time to help me walk through doing this. Ron






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