RE: [PHP] Please help me

2007-01-02 Thread zoticaic


--
 My Seeding Blog | http://bytes.nullp0inter.com
 Hire me as Freelancer | http://www.getafreelancer.com/affiliates/shockx/
 -Original Message-
 From: Anju Prasad [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, January 02, 2007 5:13 PM
 To: php-general@lists.php.net
 Subject: [PHP] Please help me
 
 When I send a mail using php using mail(), and using html tags in message
 body , these tags are being displayed as it is.
 Please let me know if there's any way of how to tackle with this.

You need to add some headers that should indicate that the type of mail you are
sending is an HTML email.

Take this link from our friendly manual and see through Example 4 : Sending HTML
Emails 
http://www.php.net/manual/en/function.mail.php

HTH
Jervin

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



RE: [PHP] Please help me

2007-01-02 Thread zoticaic
1. Try displaying the message first on the browser and see if it renders
properly.

2. Try viewing the headers of the actual sent message and check if they are
properly transmitted. Sometimes spaces/punctuations or typo errors on header
generation wholly disregards our intent on sending HTML type emails.

 

--
 Outsource Now | GetAFreelancer
http://www.getafreelancer.com/affiliates/shockx/ 

  _  

From: Anju Prasad [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 02, 2007 5:26 PM
To: zoticaic
Cc: php-general@lists.php.net
Subject: Re: [PHP] Please help me

 

I am doing that but still not getting any fruitful results. 

On 1/2/07, zoticaic [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  wrote:



--
 My Seeding Blog | http://bytes.nullp0inter.com
 Hire me as Freelancer | http://www.getafreelancer.com/affiliates/shockx/
 -Original Message-
 From: Anju Prasad [mailto: [EMAIL PROTECTED]
 Sent: Tuesday, January 02, 2007 5:13 PM
 To: php-general@lists.php.net
 Subject: [PHP] Please help me 

 When I send a mail using php using mail(), and using html tags in message
 body , these tags are being displayed as it is.
 Please let me know if there's any way of how to tackle with this. 

You need to add some headers that should indicate that the type of mail you are
sending is an HTML email.

Take this link from our friendly manual and see through Example 4 : Sending HTML
Emails
http://www.php.net/manual/en/function.mail.php

HTH
Jervin

 



[PHP] Search Results Accuracy

2006-12-18 Thread zoticaic
Hello,

 

I'm just wondering, from a list of search results from a database query, how do
we trim down and return the most accurate one? 

 

Hints, links and suggestions are most welcome.

 

TIA

Jervin

 

--
 Outsource Now | GetAFreelancer
http://www.getafreelancer.com/affiliates/shockx/ 

 



RE: [PHP] Search Results Accuracy

2006-12-18 Thread zoticaic
Hi,

 

I'm not really sure which is the best path to go but let me give you an example
scenario : 



1. We already have a database of varchar data : 

+---+

|   links  |

+---+

| 340-golfers-dream-and-swimmers|

+---+

| 89-golfers-dream   |

+---+

| 45-golf-equipments|

+---+

| 3-best-golf-training |

+---+

| 0-golf-equipment-and-training  |

+---+

| 39-golf-training  |

+---+



 

2. From data above if we search the database for '%golf%' it would return all
rows as results, if we search for '%golf%training%' it would return three rows .

 

How do I choose from the multiple results? For the '%golf%' query, the desired
result is golf-equipments or golf-training, while for '%golf%training%' the
desired result should be 39-golf-training alone . This is sort of like search
engine ranking their results, but for this how do I set the criteria using MySQL
queries or if not possible using PHP .

 

I hope it makes it more clear, questions are welcomed.

 

TIA

Jervin

 

--
 Outsource Now | GetAFreelancer
http://www.getafreelancer.com/affiliates/shockx/ 

  _  

From: Shafiq Rehman [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 19, 2006 2:07 PM
To: zoticaic
Subject: Re: [PHP] Search Results Accuracy

 

Hello,

Your question is not very clear, please elaborate it.

btw, Are you talking about the fulltext search?

-- 
Shafiq Rehman
Sr. Web Engineer
http://www.phpgurru.com  http://www.phpgurru.com 



On 12/19/06, zoticaic [EMAIL PROTECTED] wrote:

Hello,



I'm just wondering, from a list of search results from a database query, how do
we trim down and return the most accurate one?



Hints, links and suggestions are most welcome.



TIA

Jervin



--
 Outsource Now | GetAFreelancer
http://www.getafreelancer.com/affiliates/shockx/











RE: [PHP] Search Results Accuracy

2006-12-18 Thread zoticaic
Thanks,

 

All I needed was that to get started with.

 

Regards

jervin

--
 Outsource Now | GetAFreelancer
http://www.getafreelancer.com/affiliates/shockx/ 

  _  

From: Shafiq Rehman [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 19, 2006 2:41 PM
To: zoticaic
Subject: Re: [PHP] Search Results Accuracy

 

Hello,

In searching, like queries are not recommended because these are the most
slowest queries. You must use full text searching. It will rocks your search
speed and suits your scenario. Here is an article for fulltext searching 

http://www.onlamp.com/pub/a/onlamp/2003/06/26/fulltext.html

-- 
Shafiq Rehman
Sr. Web Engineer
http://www.phpgurru.com



On 12/19/06, zoticaic [EMAIL PROTECTED] wrote:

Hi,

 

I'm not really sure which is the best path to go but let me give you an example
scenario : 

1. We already have a database of varchar data : 

+---+

|   links  |

+---+

| 340-golfers-dream-and-swimmers|

+---+

| 89-golfers-dream   |

+---+

| 45-golf-equipments|

+---+

| 3-best-golf-training |

+---+

| 0-golf-equipment-and-training  |

+---+

| 39-golf-training  |

+---+



 

2. From data above if we search the database for '%golf%' it would return all
rows as results, if we search for '%golf%training%' it would return three rows .

 

How do I choose from the multiple results? For the '%golf%' query, the desired
result is golf-equipments or golf-training, while for '%golf%training%' the
desired result should be 39-golf-training alone . This is sort of like search
engine ranking their results, but for this how do I set the criteria using MySQL
queries or if not possible using PHP .

 

I hope it makes it more clear, questions are welcomed.

 

TIA

Jervin

 

--
 Outsource Now | GetAFreelancer
http://www.getafreelancer.com/affiliates/shockx/  

  _  

From: Shafiq Rehman [mailto: [EMAIL PROTECTED] 
Sent: Tuesday, December 19, 2006 2:07 PM
To: zoticaic
Subject: Re: [PHP] Search Results Accuracy

 

Hello,

Your question is not very clear, please elaborate it.

btw, Are you talking about the fulltext search?

-- 
Shafiq Rehman
Sr. Web Engineer
http://www.phpgurru.com  http://www.phpgurru.com 

On 12/19/06, zoticaic [EMAIL PROTECTED] wrote:

Hello,



I'm just wondering, from a list of search results from a database query, how do
we trim down and return the most accurate one?



Hints, links and suggestions are most welcome.



TIA

Jervin



--
 Outsource Now | GetAFreelancer
http://www.getafreelancer.com/affiliates/shockx/














RE: [PHP] Automating PHP email

2006-12-12 Thread zoticaic
--
 My Seeding Blog | http://bytes.nullp0inter.com
 Hire me as Freelancer | http://www.getafreelancer.com/affiliates/shockx/

 -Original Message-
 From: clr [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, December 12, 2006 5:02 PM
 To: php-general@lists.php.net
 Subject: [PHP] Automating PHP email
 
 I am creating a PHP/mySQL site that enables members to set criteria for
 email notification
 As my site changes and clients criteria are met they need to be
 notified.
 I can generate a list of email address and info quite simply using mySQL
 
 My question is how to trigger or initiate this process as I am a bit
 weary of using cron
 
 Can anyone suggest how I can automate this using PHP ?
 
 Many thanks
 
 Colin

Colin,

First, you need to established when and what triggers this actions.

As for the solution I would usually go through these steps : 

- Create a shell PHP script to execute the emailing routine. Such script would
maintain a log of when it was last executed and some other status info, this can
be through a text file of MySQL database. This script can also be used with cron
if you desire or decide to switched back to a more reliable solution :)
- On another script (one that is always called whena user request a page on your
site i.e. global.php). On this script checks the status of the shell script from
its logs, it will determine if IT'S TIME TO RUN THE SCRIPT AGAIN.

This is my oldschool solution :D . I'd still love to hear other's.

Regards,
Jervin

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



[PHP] PHP 4 on Apache 1.3

2006-12-12 Thread zoticaic
Hello,

 

I've been trying for a couple of times now but seems to not find the solution as
to why this error occurs.

 

I have Apache 1.3.37 installed on a Fresh CentOS 4.4 machine with this configure
line : ./configure -enable-module=so -enable-module=rewrite

 

I tried building PHP 4.4.4 using ./configure -with-mysql
-with-apxs=/usr/local/apache/bin/apxs but kept getting this error : 

 

Sorry, I cannot run apxs.  Possible reasons follow:

 

1. Perl is not installed

2. apxs was not found. Try to pass the path using --with-apxs2=/path/to/apxs

3. Apache was not built using --enable-so (the apxs usage page is displayed)

 

The output of apxs follows:

./configure: line 5656: apxs: command not found

configure: error: Aborting

 

--

1. I have verified that Perl is installed perl -v 

2. /usr/local/apache/bin/apxs does exists

3. I have configured apache to enable the so module.

 

Am I missing something?

 

TIA

Jervin

--
 Outsource Now | GetAFreelancer
http://www.getafreelancer.com/affiliates/shockx/ 

 



RE: [PHP] CSS / PHP / Javascript

2006-11-14 Thread zoticaic
I guess the $_SERVER predefined variable can be used determining the
platform and browser/user-agent and loading the CSS of choice.

http://www.php.net/manual/en/reserved.variables.php

Enjoy!

Jervin

 -Original Message-
 From: Ed Lazor [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, November 15, 2006 12:01 PM
 To: PHP General List
 Subject: [PHP] CSS / PHP / Javascript
 
 I'm reading a book on CSS and how you can define different style
 sheets for different visitors.  I'm wondering how you guys do it.
 The book recommends using Javascript functions for identifying the
 user's browser and matching them with the corresponding style
 sheets.  Anyone using PHP for this instead - specifically with
 defining style sheets for different target browsers and platforms?
 
 -Ed
 
 --
 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