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

2006-09-28 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:[EMAI

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

2006-09-28 Thread Ron Piggott (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

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

2006-09-28 Thread Bastien Koert
same again on the back end Bastien From: "Ron Piggott (PHP)" <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: Bastien Koert <[EMAIL PROTECTED]> CC: PHP DB Subject: [PHP-DB] I still have a bit more of the string to get rid of ... Date: Thu, 28 Sep 2006 22:13:59 -0400 Where '$eachLine' is a

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

2006-09-28 Thread Ron Piggott (PHP)
Where '$eachLine' is a line of HTML code the following command echo str_replace("http://www.actsministrieschristianevangelism.org/christianliving/quiet_time_quotations_and_reflection_topics.html";>here. I want to get rid of everything including and following the " What do I do next?

RE: [PHP-DB] Searching PHP strings

2006-09-28 Thread Bastien Koert
eregi_replace or str_replace can do that for you Bastien From: "Ron Piggott (PHP)" <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: PHP DB Subject: [PHP-DB] Searching PHP strings Date: Thu, 28 Sep 2006 21:12:18 -0400 I have been playing tonight for a few minutes. The following code: P

[PHP-DB] Searching PHP strings

2006-09-28 Thread Ron Piggott (PHP)
I have been playing tonight for a few minutes. The following code: Produces me output like: 137 http://www.actsministrieschristianevangelism.org/christianliving/quiet_time_quotations_and_reflection_topics.html";>here. What I want to do now is to remove the http://www.actsministrieschristia

[PHP-DB] two versions of php on same box, on has mysql support the other can't find it?

2006-09-28 Thread Peloke
I have two php versions on one server. One of them has mysql support, the other has mssql support and is used to run scripts via the comand line. I am trying now to compile in mysql support to the command line one and I keep getting: configure: error: Cannot find MySQL header files under yes.

[PHP-DB] two versions of php on same box, on has mysql support the other can't find it?

2006-09-28 Thread Eddie Peloke
I have two php versions on one server. One of them has mysql support, the other has mssql support and is used to run scripts via the comand line. I am trying now to compile in mysql support to the command line one and I keep getting: configure: error: Cannot find MySQL header files under yes.

[PHP-DB] Re: Search engine

2006-09-28 Thread Ron Piggott
Part of why I want to do this is for the programming experience. This is why I didn't implement the google solution already. Ron On Wed, 2006-09-27 at 22:44 -0400, Ron Piggott (PHP) wrote: > Has anyone wrote a search engine for the web site? I am wondering if > someone has the time to help me

RE: [PHP-DB] SQL query

2006-09-28 Thread Miguel Guirao
OK, this makes my day clear!! I have versiĆ³n 3.23.49-3 of MySQL Thanks Dwight! -Original Message- From: Dwight Altman [mailto:[EMAIL PROTECTED] Sent: Jueves, 28 de Septiembre de 2006 11:32 a.m. To: php-db@lists.php.net Subject: RE: [PHP-DB] SQL query Check your version. Subselects were

RE: [PHP-DB] SQL query

2006-09-28 Thread Dwight Altman
Check your version. Subselects were only added in MySQL Version 4.1. Regards, Dwight > -Original Message- > From: Edwin Cruz [mailto:[EMAIL PROTECTED] > Sent: Thursday, September 28, 2006 10:53 AM > To: 'Miguel Guirao'; php-db@lists.php.net > Subject: RE: [PHP-DB] SQL query > > Make sur

Re: [PHP-DB] Search engine

2006-09-28 Thread Jeffrey
Truth be told, Google's free slap-it-on-your-web site search tool (http://www.google.com/services/websearch.html) will do everything you want and save you a lot of coding. Assuming this is for actsministries.org which seems to be a useful resource of information; it is probably well indexed by

RE: [PHP-DB] SQL query

2006-09-28 Thread Edwin Cruz
Make sure that your second query is returning only one row, if it dont help, try this: $query="select email from usuarios where userName in (select username from fussv where folio = 'FUSS-130-2006')" MySQL think that you second query returns more than 1 row, that's why mysql dont accept your quer

[PHP-DB] SQL query

2006-09-28 Thread Miguel Guirao
Hello list, Whats wrong with my SQL query: $query="select email from usuarios where userName = (select username from fussv where folio = 'FUSS-130-2006')"; I get an error! I have tested the two individual sentences and they worked OK! --- Miguel Guirao Aguilera Logisti

RE: [PHP-DB] Search engine

2006-09-28 Thread Ron Piggott (PHP)
What I haven't figured out is how to crawl my site. If I knew how to crawl my site I could write a basic search engine and develop it over time. This is the crucial issue I need help with. I have a really basic search engine I wrote last year. I told my web site what pages the user could sea

Re: [PHP-DB] Search engine

2006-09-28 Thread Niel Archer
Hi > What about the MySQL "LIKE" command? Research it. An excellent start for searching a db, but did you miss the point of the question. He wanted to know if anyone had experience with this to save him building from the ground up. I haven't, l so didn't reply If no other help is forthcoming,

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) [