Re: [PHP] Scripts not running on OS X 10.3
Odd. To be sure it's using the conf file you want, have you tried starting Apache with the command.? /path/to/httpd -f /path/to/httpd.conf I tried your suggestion but the system won't let me modify it even with su permissions. I'm too tired and frustrated to continue tonight. Clearly, the installer must have messed something important up so I'm just going to reinstall Panther tomorrow (have to partition my drive anyway so what the heck) Thanks for all your help. Ken -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Scripts not running on OS X 10.3
Ken Tozier wrote: Ken Tozier wrote: I can't get even the test script to run on my Mac. I turned personal web sharing on, checked the httpd.config file (all is well) type 127.0.0.1/test.php in the browser and get a "source view" of the page (ie: shows up in the browser winbdow). What am I doing wrong? Thanks Ken > Got a line like this in your httpd.conf? > AddType application/x-httpd-php .php Yeah. both of these are uncommented in httpd.conf: AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps Restarted Apache? Yep. same result. Possibly have another httpd.conf file that Apache is reading? Possibly. I used the package installer from Marc liyannage's web site which seems to have done something odd to the httpd.conf file but I don't know enough unix yet to fix it without possibly screwing up. there are the following config files in the /private/etc/httpd directory: httpd.conf httpd.conf.applesaved httpd.conf.bak httpd.conf.default httpd.conf.entropy-backup.1059884513 httpd.conf.entropy-temp In addition to these, there is another config file named "httpd.conf.php" in the "/usr/local/php/" directory Which one Apache is using is a mystery to me. Anything in the error logs when you start Apache? No. this appears to be in order. Odd. To be sure it's using the conf file you want, have you tried starting Apache with the command.? /path/to/httpd -f /path/to/httpd.conf -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Scripts not running on OS X 10.3
Ken Tozier wrote: I can't get even the test script to run on my Mac. I turned personal web sharing on, checked the httpd.config file (all is well) type 127.0.0.1/test.php in the browser and get a "source view" of the page (ie: shows up in the browser winbdow). What am I doing wrong? Thanks Ken > Got a line like this in your httpd.conf? > AddType application/x-httpd-php .php Yeah. both of these are uncommented in httpd.conf: AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps Restarted Apache? Yep. same result. Possibly have another httpd.conf file that Apache is reading? Possibly. I used the package installer from Marc liyannage's web site which seems to have done something odd to the httpd.conf file but I don't know enough unix yet to fix it without possibly screwing up. there are the following config files in the /private/etc/httpd directory: httpd.conf httpd.conf.applesaved httpd.conf.bak httpd.conf.default httpd.conf.entropy-backup.1059884513 httpd.conf.entropy-temp In addition to these, there is another config file named "httpd.conf.php" in the "/usr/local/php/" directory Which one Apache is using is a mystery to me. Anything in the error logs when you start Apache? No. this appears to be in order. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] deleting characters from strings
On Sat, 1 Nov 2003 11:25:09 -0600, you wrote: >I feel really stupid posting this but I can't seem to find the correct >syntax in the language guide. I have a string which has been progressively >built during a FOREACH loop through an array (a SELECT statement in which >the WHERE part is built with ORs from the array of entries). The final >query winds up with an extra "OR" at the end. I need to simply delete >characters (STRLEN($string) - 3) through STRLEN($string). What's the proper >syntax? Slightly more sensible approach: -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Web Applications and C++?
On Sat, 1 Nov 2003 20:19:13 -0500, you wrote: >Inappropirate but intruiging nonetheless. I've always been curious >how Amazon handles the amount of traffic their site generates and now >I've got a slightly better idea. I know eBay uses CGI as I've already >seen discussion of it. Amazon mostly look for people with Perl, C++ and Java over Unix. Typical example: "Competence in C/C++, Perl, and UNIX is essential. Java is a plus." Take a look at their job ads. My guess would be an Oracle database (hence the Java), C++ backend, some Perl glue around the edges, and a big, big server farm. Of course with a big distributed application like Amazon, different bits are bound to be written in different languages. The net-facing machines claim to be Apache (Stronghold) over Linux, and may have been Solaris in the past, but that doesn't tell you much. Their desire for RPC/SOAP experience is probably more about integrating the supply chain than improving Amazon Web Services. All guesswork, of course. Pinch of salt advised. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Scripts not running on OS X 10.3
Ken Tozier wrote: I can't get even the test script to run on my Mac. I turned personal web sharing on, checked the httpd.config file (all is well) type 127.0.0.1/test.php in the browser and get a "source view" of the page (ie: shows up in the browser winbdow). What am I doing wrong? Thanks Ken > Got a line like this in your httpd.conf? > AddType application/x-httpd-php .php Yeah. both of these are uncommented in httpd.conf: AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps Restarted Apache? Possibly have another httpd.conf file that Apache is reading? Anything in the error logs when you start Apache? -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php selecting problem
On Sun, 2 Nov 2003 00:06:46 +0100, you wrote: >if($bok==1) >{$query = "select compno,thCompany from main_company where thCompany LIKE >'%0123456789%'";} > >I have looked in the DB and i see quite a few companies have a number in the >beginning, but still this returns me no rowsany ideas why? That query is looking for any record where thCompany includes the text "0123456789" at any point. Compare "LIKE '1%'" and read the chapter on string comparison functions in the MySQL manual. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Test, Please Ignore.
Test. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Object Aggregation Usage - OK for production use?
Hi, I'm just discovering how I can effectively emulate interfaces using the object aggregation extension. This is a major benefit to me so I'd like to know if others are using this extension. It is marked as experimental. Does that mean the api might change in PHP4? I'm guessing it won't - I do understand that this extension will be removed in PHP5 but I need this feature now so I'm looking to make use of it. Anyone have an opinion regarding how suitable this extension is in a production environment? I can guarantee that I'll be using at least PHP version 4.4.3 I think if there comes a time I need to port the application to php5, I'll be able to replace the aggregation with actual interfaces. Thoughts? Thanks, Matt. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] deleting characters from strings
Hi, Sunday, November 2, 2003, 3:25:09 AM, you wrote: RK> I feel really stupid posting this but I can't seem to find the correct RK> syntax in the language guide. I have a string which has been progressively RK> built during a FOREACH loop through an array (a SELECT statement in which RK> the WHERE part is built with ORs from the array of entries). The final RK> query winds up with an extra "OR" at the end. I need to simply delete RK> characters (STRLEN($string) - 3) through STRLEN($string). What's the proper RK> syntax? change your logic and put the OR first like this $string = ''; for($x=0;$x<4;$x++){ if(!empty($string)) $string .= ' OR '; $string .= 'word'; } This way OR only gets added if there is already something in the string -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Scripts not running on OS X 10.3
I can't get even the test script to run on my Mac. I turned personal web sharing on, checked the httpd.config file (all is well) type 127.0.0.1/test.php in the browser and get a "source view" of the page (ie: shows up in the browser winbdow). What am I doing wrong? Thanks Ken > Got a line like this in your httpd.conf? > AddType application/x-httpd-php .php Yeah. both of these are uncommented in httpd.conf: AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Scripts not running on OS X 10.3
Ken Tozier wrote: I can't get even the test script to run on my Mac. I turned personal web sharing on, checked the httpd.config file (all is well) type 127.0.0.1/test.php in the browser and get a "source view" of the page (ie: shows up in the browser winbdow). What am I doing wrong? Thanks Ken Got a line like this in your httpd.conf? AddType application/x-httpd-php .php -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Scripts not running on OS X 10.3
I can't get even the test script to run on my Mac. I turned personal web sharing on, checked the httpd.config file (all is well) type 127.0.0.1/test.php in the browser and get a "source view" of the page (ie: shows up in the browser winbdow). What am I doing wrong? Thanks Ken -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] recursive acronym - PHP
Becoming Digital wrote: Personally, I love things like this. I have a feeling that those of us not fond of such recursive acronyms are also not fan's of the old "Who's on first?" routine. I don't give a damn. ;) -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Web Applications and C++?
> but that question is rather inappropriate for this list... Inappropirate but intruiging nonetheless. I've always been curious how Amazon handles the amount of traffic their site generates and now I've got a slightly better idea. I know eBay uses CGI as I've already seen discussion of it. Regardless, perhaps the thread would have been better if prefaced by an "OT." Thanks for the tidbit, Nathan. :) Edward Dudlik "Those who say it cannot be done should not interrupt the person doing it." wishy washy | www.amazon.com/o/registry/EGDXEBBWTYUU - Original Message - From: "Nathan Taylor" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; "John Ryan" <[EMAIL PROTECTED]> Sent: Saturday, 01 November, 2003 14:08 Subject: Re: [PHP] Web Applications and C++? They tend to use dlls and the sort, but that question is rather inappropriate for this list... - Original Message - From: John Ryan To: [EMAIL PROTECTED] Sent: Saturday, November 01, 2003 12:33 PM Subject: [PHP] Web Applications and C++? I assume sites like Amazon and Ebay does not use PHP to generate its pages. Does it use CGI and C++?? If so, does that mean a C++ program is run each time I request a page. -- 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
Re: [PHP] recursive acronym - PHP
Personally, I love things like this. I have a feeling that those of us not fond of such recursive acronyms are also not fan's of the old "Who's on first?" routine. Edward Dudlik "Those who say it cannot be done should not interrupt the person doing it." wishy washy | www.amazon.com/o/registry/EGDXEBBWTYUU - Original Message - From: "Nathan Taylor" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; "Joachim Krebs" <[EMAIL PROTECTED]> Sent: Saturday, 01 November, 2003 16:28 Subject: Re: [PHP] recursive acronym - PHP Why must the powers that be create such mind-bendingly painful terms such as these? They are the sort of things that send my brain into an infinite loop. Nathan - Original Message - From: Joachim Krebs To: [EMAIL PROTECTED] Sent: Saturday, November 01, 2003 3:23 PM Subject: Re: [PHP] recursive acronym - PHP Or LAME for "Lame Ain't an MP3 Encoder" Larry E . Ullman wrote: >> Why PHP is a recursive acronym?, I know that before was called >> Personal Home Page, I now is Hypertext PreProcessor, but why is >> recursive?, I person told me that it could be wroten as Pre Hypertxt >> Processor, thanks. > > > PHP stands for "PHP: Hypertext Preprocessor". It's called a recursive > acronym because it uses itself in its definition. Another example: GNU, > for "GNU's Not Unix". > > Larry -- 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
Re: [PHP] eliminating dupes from MySQL query results
On Sat, 2003-11-01 at 16:29, Robb Kerr wrote: > It's not exactly a Php problem, but MySQL and Php seem to be so intertwined > and this newsgroup has been so unbelievably helpful that I thought I'd post > the question here. > > I've got a query which returns a group of records. the field which I want > to display in a list contains many duplicates. I need to remove all > duplicates so that each entry is only displayed once. Another query based > upon a selection from this list will display all of the appropriate > records. > > Can anybody help with the syntax? Do I need a loop or is there a MySQL > command/function which I am overlooking? > > Thanx, > -- > Robb Kerr > Digital IGUANA > Helping Digital Artists Achieve their Dreams > http://www.digitaliguana.com > http://www.cancerreallysucks.org You'll want to do a SELECT DISTINCT rather than simply a SELECT for your SQL query. SELECT DISTINCT filters out duplicate results from a query. Hope this helps. - Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP 5
On Sat, 01 Nov 2003 23:42:06 +0100, Marek Kilimajer wrote: > There will certainly be security updates, but it will not be futher > enhanced. > > Leonel Nunez wrote: >> hello : >> >> When php 5 is released will there be support for php 4.3.x ? >> >> thanks >> >> leonel >> this is what I needed to now Security updates thanks I hope so Leonel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] php selecting problem
Hi, Is this PHP's or Mysql fault or my own ( most likely)? I'm doing a simple query to the DB and want any companies which start with a number as the first "letter" to come up... eg: 1company 23blah company 007bonds company 7lucky seven etc This is my query: if($bok==1) {$query = "select compno,thCompany from main_company where thCompany LIKE '%0123456789%'";} I have looked in the DB and i see quite a few companies have a number in the beginning, but still this returns me no rowsany ideas why? Thanks in advance, -Ryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP 5
There will certainly be security updates, but it will not be futher enhanced. Leonel Nunez wrote: hello : When php 5 is released will there be support for php 4.3.x ? thanks leonel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP 5
He is obviously asking if PHP 5 will support (run, execute, bla bla bla) code that currently runs in 4.3.x! P.S.: I don't know the answer! Chris Shiflett wrote: --- Leonel Nunez <[EMAIL PROTECTED]> wrote: When php 5 is released will there be support for php 4.3.x? Support from whom? What type of support? Do you consider there to be support for 4.3.x now? Chris = My Blog http://shiflett.org/ HTTP Developer's Handbook http://httphandbook.org/ RAMP Training Courses http://www.nyphp.org/ramp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP 5
--- Leonel Nunez <[EMAIL PROTECTED]> wrote: > When php 5 is released will there be support for php 4.3.x? Support from whom? What type of support? Do you consider there to be support for 4.3.x now? Chris = My Blog http://shiflett.org/ HTTP Developer's Handbook http://httphandbook.org/ RAMP Training Courses http://www.nyphp.org/ramp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: eliminating dupes from MySQL query results
Look into the DISTINCT keyword for MySQL. Robb Kerr wrote: It's not exactly a Php problem, but MySQL and Php seem to be so intertwined and this newsgroup has been so unbelievably helpful that I thought I'd post the question here. I've got a query which returns a group of records. the field which I want to display in a list contains many duplicates. I need to remove all duplicates so that each entry is only displayed once. Another query based upon a selection from this list will display all of the appropriate records. Can anybody help with the syntax? Do I need a loop or is there a MySQL command/function which I am overlooking? Thanx, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] mail() another example - error
I use this script: I got this error: Warning: mail(): SMTP server response: 550 not local host ojpp.myftp.org, not a gateway in D:\htdocs\ojpp\functions\mail\2.php on line 19 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] mail() another example - error
I use this script: I got this error: Warning: mail(): SMTP server response: 550 not local host ojpp.myftp.org, not a gateway in D:\htdocs\ojpp\functions\mail\2.php on line 19
[PHP] mail() another example - error
I use this script: I got this error: Warning: mail(): SMTP server response: 550 not local host ojpp.myftp.org, not a gateway in D:\htdocs\ojpp\functions\mail\2.php on line 19 thanks, for any help. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] eliminating dupes from MySQL query results
It's not exactly a Php problem, but MySQL and Php seem to be so intertwined and this newsgroup has been so unbelievably helpful that I thought I'd post the question here. I've got a query which returns a group of records. the field which I want to display in a list contains many duplicates. I need to remove all duplicates so that each entry is only displayed once. Another query based upon a selection from this list will display all of the appropriate records. Can anybody help with the syntax? Do I need a loop or is there a MySQL command/function which I am overlooking? Thanx, -- Robb Kerr Digital IGUANA Helping Digital Artists Achieve their Dreams http://www.digitaliguana.com http://www.cancerreallysucks.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: mail function error - win32
Hello, On 11/01/2003 07:10 PM, [EMAIL PROTECTED] wrote: I try to send from my pc a mail with the function mail(), but if doesn't work, I have tried several time, but nothing, I don't know what could be, because the same script work well in a remote host. You need to specify valid sender and recipient addresses. If you still have problems, you may want to try this class that has workarounds for some of the problems of the mail() function: http://www.phpclasses.org/mimemessage -- Regards, Manuel Lemos Free ready to use OOP components written in PHP http://www.phpclasses.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] recursive acronym - PHP
Why must the powers that be create such mind-bendingly painful terms such as these? They are the sort of things that send my brain into an infinite loop. Nathan - Original Message - From: Joachim Krebs To: [EMAIL PROTECTED] Sent: Saturday, November 01, 2003 3:23 PM Subject: Re: [PHP] recursive acronym - PHP Or LAME for "Lame Ain't an MP3 Encoder" Larry E . Ullman wrote: >> Why PHP is a recursive acronym?, I know that before was called >> Personal Home Page, I now is Hypertext PreProcessor, but why is >> recursive?, I person told me that it could be wroten as Pre Hypertxt >> Processor, thanks. > > > PHP stands for "PHP: Hypertext Preprocessor". It's called a recursive > acronym because it uses itself in its definition. Another example: GNU, > for "GNU's Not Unix". > > Larry -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] recursive acronym - PHP
Why must the powers that be create such mind-bendingly painful terms such as these? They are the sort of things that send my brain into an infinite loop. Nathan - Original Message - From: Joachim Krebs To: [EMAIL PROTECTED] Sent: Saturday, November 01, 2003 3:23 PM Subject: Re: [PHP] recursive acronym - PHP Or LAME for "Lame Ain't an MP3 Encoder" Larry E . Ullman wrote: >> Why PHP is a recursive acronym?, I know that before was called >> Personal Home Page, I now is Hypertext PreProcessor, but why is >> recursive?, I person told me that it could be wroten as Pre Hypertxt >> Processor, thanks. > > > PHP stands for "PHP: Hypertext Preprocessor". It's called a recursive > acronym because it uses itself in its definition. Another example: GNU, > for "GNU's Not Unix". > > Larry -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] mail function error - win32
When you use the mail function, you must give the first argument. The 'to' is not in the headers Try this, it should work -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Envoyé : samedi 1 novembre 2003 22:11 À : [EMAIL PROTECTED] Objet : [PHP] mail function error - win32 I try to send from my pc a mail with the function mail(), but if doesn't work, I have tried several time, but nothing, I don't know what could be, because the same script work well in a remote host. in my php.ini, I put: [mail function] ; For Win32 only. SMTP = mail.serbis.com I also put [mail function] ; For Win32 only. SMTP = mail.webdevfm.com I also put (the local mail server that I have): [mail function] ; For Win32 only. SMTP = ojpp.myftp.org the errors are the follow: ** First error - When the mailserver (ojpp.myftp.org - localhost) is deactivated Warning: mail(): Failed to connect to mailserver at "ojpp.myftp.org" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in d:\htdocs\ojpp\ojppresume\contact.php on line 118 Warning: mail(): Failed to connect to mailserver at "ojpp.myftp.org" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in d:\htdocs\ojpp\ojppresume\contact.php on line 138 ** Code in line 118 $validar = mail('', $materia, $cuerpo, "To: $para\n" . "From: test <$email>\n" . "MIME-Version: 1.0\n" . "Content-type: text/html; charset=iso-8859-1"); ** Code in line 138 $validar = mail('', $materia, $cuerpo, "To: $para\n" . "From: Webdevfm <$email>\n" . "MIME-Version: 1.0\n" . "Content-type: text/html; charset=iso-8859-1"); ** Second error - When the mailserver (mail.webdevfm.com) is actived Warning: mail(): SMTP server response: 503 valid RCPT command must precede DATA in d:\htdocs\ojpp\ojppresume\contact.php on line 118 ** Third error - When the mailserver (mail.serbis.com) is actived Warning: mail(): SMTP server response: 503 must have sender and recipient first in d:\htdocs\ojpp\ojppresume\contact.php on line 118 Error enviando correo electrónico a [EMAIL PROTECTED] ** fourth error - When the mailserver (ojpp.myftp.org - localhost) is actived Warning: mail(): SMTP server response: 503 Bad sequence of commands in d:\htdocs\ojpp\ojppresume\contact.php on line 118 --- thanks, for the help. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] mail function error - win32
I try to send from my pc a mail with the function mail(), but if doesn't work, I have tried several time, but nothing, I don't know what could be, because the same script work well in a remote host. in my php.ini, I put: [mail function] ; For Win32 only. SMTP = mail.serbis.com I also put [mail function] ; For Win32 only. SMTP = mail.webdevfm.com I also put (the local mail server that I have): [mail function] ; For Win32 only. SMTP = ojpp.myftp.org the errors are the follow: ** First error - When the mailserver (ojpp.myftp.org - localhost) is deactivated Warning: mail(): Failed to connect to mailserver at "ojpp.myftp.org" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in d:\htdocs\ojpp\ojppresume\contact.php on line 118 Warning: mail(): Failed to connect to mailserver at "ojpp.myftp.org" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in d:\htdocs\ojpp\ojppresume\contact.php on line 138 ** Code in line 118 $validar = mail('', $materia, $cuerpo, "To: $para\n" . "From: test <$email>\n" . "MIME-Version: 1.0\n" . "Content-type: text/html; charset=iso-8859-1"); ** Code in line 138 $validar = mail('', $materia, $cuerpo, "To: $para\n" . "From: Webdevfm <$email>\n" . "MIME-Version: 1.0\n" . "Content-type: text/html; charset=iso-8859-1"); ** Second error - When the mailserver (mail.webdevfm.com) is actived Warning: mail(): SMTP server response: 503 valid RCPT command must precede DATA in d:\htdocs\ojpp\ojppresume\contact.php on line 118 ** Third error - When the mailserver (mail.serbis.com) is actived Warning: mail(): SMTP server response: 503 must have sender and recipient first in d:\htdocs\ojpp\ojppresume\contact.php on line 118 Error enviando correo electrónico a [EMAIL PROTECTED] ** fourth error - When the mailserver (ojpp.myftp.org - localhost) is actived Warning: mail(): SMTP server response: 503 Bad sequence of commands in d:\htdocs\ojpp\ojppresume\contact.php on line 118 --- thanks, for the help. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] mail function error - win32
I try to send from my pc a mail with the function mail(), but if doesn't work, I have tried several time, but nothing, I don't know what could be, because the same script work well in a remote host. in my php.ini, I put: [mail function] ; For Win32 only. SMTP = mail.serbis.com I also put [mail function] ; For Win32 only. SMTP = mail.webdevfm.com I also put (the local mail server that I have): [mail function] ; For Win32 only. SMTP = ojpp.myftp.org the errors are the follow: ** First error - When the mailserver (ojpp.myftp.org - localhost) is deactivated Warning: mail(): Failed to connect to mailserver at "ojpp.myftp.org" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in d:\htdocs\ojpp\ojppresume\contact.php on line 118 Warning: mail(): Failed to connect to mailserver at "ojpp.myftp.org" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in d:\htdocs\ojpp\ojppresume\contact.php on line 138 ** Code in line 118 $validar = mail('', $materia, $cuerpo, "To: $para\n" . "From: test <$email>\n" . "MIME-Version: 1.0\n" . "Content-type: text/html; charset=iso-8859-1"); ** Code in line 138 $validar = mail('', $materia, $cuerpo, "To: $para\n" . "From: Webdevfm <$email>\n" . "MIME-Version: 1.0\n" . "Content-type: text/html; charset=iso-8859-1"); ** Second error - When the mailserver (mail.webdevfm.com) is actived Warning: mail(): SMTP server response: 503 valid RCPT command must precede DATA in d:\htdocs\ojpp\ojppresume\contact.php on line 118 ** Third error - When the mailserver (mail.serbis.com) is actived Warning: mail(): SMTP server response: 503 must have sender and recipient first in d:\htdocs\ojpp\ojppresume\contact.php on line 118 Error enviando correo electrónico a [EMAIL PROTECTED] ** fourth error - When the mailserver (ojpp.myftp.org - localhost) is actived Warning: mail(): SMTP server response: 503 Bad sequence of commands in d:\htdocs\ojpp\ojppresume\contact.php on line 118 --- thanks, for the help.
[PHP] php5
hello : will there be support for php 4.3.X after php5 is released ? Thanks Leonel nunez -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP 5
hello : When php 5 is released will there be support for php 4.3.x ? thanks leonel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] start-condition stack underflow
Fatal error: start-condition stack underflow Have not seen this error in 4 years of programming PHP. Came up in looping SMTP socket test. Anyone knows what this means? Thanks Buiten Westen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] recursive acronym - PHP
Or LAME for "Lame Ain't an MP3 Encoder" Larry E . Ullman wrote: Why PHP is a recursive acronym?, I know that before was called Personal Home Page, I now is Hypertext PreProcessor, but why is recursive?, I person told me that it could be wroten as Pre Hypertxt Processor, thanks. PHP stands for "PHP: Hypertext Preprocessor". It's called a recursive acronym because it uses itself in its definition. Another example: GNU, for "GNU's Not Unix". Larry -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] recursive acronym - PHP
Why PHP is a recursive acronym?, I know that before was called Personal Home Page, I now is Hypertext PreProcessor, but why is recursive?, I person told me that it could be wroten as Pre Hypertxt Processor, thanks. PHP stands for "PHP: Hypertext Preprocessor". It's called a recursive acronym because it uses itself in its definition. Another example: GNU, for "GNU's Not Unix". Larry -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Persisting MySQL connection accross scripts
First, POST method is not any safer than GET method. Just because the username/password combination is not in the location bar does not mean that it is hidden. Anyone can view the html source. The straightforward answer to this (and it is done fairly regularly) is that you require() a file that reads configuration (usualy another file) and connects to the database, and also does other usefull things. rich wrote: How can I establish a connection with a MySQL database and have it persist accross multiple script files? I've found the mysql_pconnect() function but this doesn't seem to do the job - which is fairly logical actually because the connection is stored in a variable: $connect = mysql_pconnect(); and that variable $connection won't be available in another script.n I would have thought there would be a straightforward answer to this as it seems that its someting which must be done fairly regularly. The only workaround I can think of is sending the username, password and database name to every script. But how would you do this securely? When establishing the initial connection I got the username and password from a form which used the method="POST" method. But if I want to have a link to a script, say 'add_item.php', how can I do it securely? would not use the POST method. I could use forms for every link but this seems ridiculously over-complicated! Thanks in advance for any pointers! Richard. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] recursive acronym - PHP
> Why PHP is a recursive acronym?, I know that before was called Personal Home > Page, I now is Hypertext PreProcessor, but why is recursive?, I person told > me that it could be wroten as Pre Hypertxt Processor, thanks. > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] recursive acronym - PHP
Why PHP is a recursive acronym?, I know that before was called Personal Home Page, I now is Hypertext PreProcessor, but why is recursive?, I person told me that it could be wroten as Pre Hypertxt Processor, thanks.
Re: [PHP] Web Applications and C++?
They tend to use dlls and the sort, but that question is rather inappropriate for this list... - Original Message - From: John Ryan To: [EMAIL PROTECTED] Sent: Saturday, November 01, 2003 12:33 PM Subject: [PHP] Web Applications and C++? I assume sites like Amazon and Ebay does not use PHP to generate its pages. Does it use CGI and C++?? If so, does that mean a C++ program is run each time I request a page. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Persisting MySQL connection accross scripts
With persistent connections, you actually have to have the mysql_pconnect statement in each script you want to use the connection in. The function will use an already-existing connection if one is available. If no existing connection could be found, it will initiate the link. The manual at php.net says this as well: "First, when connecting, the function would first try to find a (persistent) link that's already open with the same host, username and password. If one is found, an identifier for it will be returned instead of opening a new connection." Joachim Rich wrote: How can I establish a connection with a MySQL database and have it persist accross multiple script files? I've found the mysql_pconnect() function but this doesn't seem to do the job - which is fairly logical actually because the connection is stored in a variable: $connect = mysql_pconnect(); and that variable $connection won't be available in another script. I would have thought there would be a straightforward answer to this as it seems that its someting which must be done fairly regularly. The only workaround I can think of is sending the username, password and database name to every script. But how would you do this securely? When establishing the initial connection I got the username and password from a form which used the method="POST" method. But if I want to have a link to a script, say 'add_item.php', how can I do it securely? would not use the POST method. I could use forms for every link but this seems ridiculously over-complicated! Thanks in advance for any pointers! Richard. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Persisting MySQL connection accross scripts
How can I establish a connection with a MySQL database and have it persist accross multiple script files? I've found the mysql_pconnect() function but this doesn't seem to do the job - which is fairly logical actually because the connection is stored in a variable: $connect = mysql_pconnect(); and that variable $connection won't be available in another script. I would have thought there would be a straightforward answer to this as it seems that its someting which must be done fairly regularly. The only workaround I can think of is sending the username, password and database name to every script. But how would you do this securely? When establishing the initial connection I got the username and password from a form which used the method="POST" method. But if I want to have a link to a script, say 'add_item.php', how can I do it securely? would not use the POST method. I could use forms for every link but this seems ridiculously over-complicated! Thanks in advance for any pointers! Richard. -- UEA/MUS -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Syntraxhighlighting for Java
I'd like to know if any of you out there know where I can find a "highlight_file()" sort of function, but for Java-files. Would be very helpfull in my shared development. //Simon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Web Applications and C++?
I assume sites like Amazon and Ebay does not use PHP to generate its pages. Does it use CGI and C++?? If so, does that mean a C++ program is run each time I request a page. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] deleting characters from strings
Look at substr Robb Kerr wrote: I feel really stupid posting this but I can't seem to find the correct syntax in the language guide. I have a string which has been progressively built during a FOREACH loop through an array (a SELECT statement in which the WHERE part is built with ORs from the array of entries). The final query winds up with an extra "OR" at the end. I need to simply delete characters (STRLEN($string) - 3) through STRLEN($string). What's the proper syntax? Thanx, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] deleting characters from strings
I feel really stupid posting this but I can't seem to find the correct syntax in the language guide. I have a string which has been progressively built during a FOREACH loop through an array (a SELECT statement in which the WHERE part is built with ORs from the array of entries). The final query winds up with an extra "OR" at the end. I need to simply delete characters (STRLEN($string) - 3) through STRLEN($string). What's the proper syntax? Thanx, -- Robb Kerr Digital IGUANA Helping Digital Artists Achieve their Dreams http://www.digitaliguana.com http://www.cancerreallysucks.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Register Procedure - AOLServer / TCL - PHP Equivalent
Hello all, when using AOL Server you can register a procedure against the server and use this as your web page. for example a procedure that prints "Hello World" as an HTML page name helloproc So if I call up http://server/helloproc the procedure serves up the page to the client browser Is such a feature provided under Apache / PHP? If so, how is it implemented? A short example would be helpful. thanks, Ahbaid. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Array maybe? Or many SQL insert queries
> -Original Message- > From: Burhan Khalid [mailto:[EMAIL PROTECTED] > Sent: Saturday, November 01, 2003 11:16 AM > To: Jake McHenry; [EMAIL PROTECTED] > Subject: Re: [PHP] Array maybe? Or many SQL insert queries > > > Jake McHenry wrote: > >>-Original Message- > >>From: Burhan Khalid [mailto:[EMAIL PROTECTED] > >>Sent: Saturday, November 01, 2003 3:50 AM > >>To: Jake McHenry; [EMAIL PROTECTED] > >>Subject: Re: [PHP] Array maybe? Or many SQL insert queries > >> > >> > >>Jake McHenry wrote: > >> > >> > >>>Hi everyone, here's what I'm doing. > >>> > >>>As of right now, I don't have anything implemented, but > >> > >>here's what I > >> > >>>need to do. > >>> > >>>I have a web page, with a drop down list of hotels, an > >> > >>input box for > >> > >>>the users frequent hotel number, and a add button. At the bottom > > > > of > > > >>>the page is a update and continue button to move the user > >> > >>to the next > >> > >>>page with more options. > >>> > >>>What my boss wants is, when someone puts in a number, and > >> > >>clicks add, > >> > >>>he wants it to take that number and put it below the box, > >> > >>all on the > >> > >>>fly. I know I could do this through repeated sql insert > >> > >>querys, but I > >> > >>>was wondering if I could just put them into an array, then > >> > >>update the > >> > >>>database with one query after the user clicks the update > >> > >>and continue > >> > >>>button at the bottom, to get them to the next page? > >> > >>This sounds like something javascript can fix. If you can be > >>a bit more > >>precise "below the box" doesn't mean much. What box? Is it a > >>big green > >>box? Blue box? Box of boxes? > >> > >>If you want "on the fly" then its javascript. For php to work, you'd > > > > > >>have to send a request to the server, which would kill your > >>"on the fly" > >>part. > >> > > I don't know why I said on the fly.. Lol.. > > > > The box I'm referring to is the input field box. I just need what's > > submitted via the input field and add button to show up in a list > > below the input box, to show the account numbers that were > entered. I > > can either insert them into the database each time the add > button is > > clicked, or my preference if possible, put them in an array of some > > kind then submit them all at once. To get a picture of what > I want...: > > > > > > > > > >Site Logo > > __ > > |__| ADD > > > > > > Submit and Continue > Submit and Exit > > > > > > > > > > That's basically what this page looks like. What I need is when the > > person inputs the account number in the input box, and > clicks add, it > > needs to refresh the page with the added number below that > box, then > > again for each number they enter. > > You can attach a javascript function to the onclick event of the Add > button that populates your drop down. Of course, this assumes > that you > have a predefined array of all possible values (in > javascript) that the > user can enter. > > However, if your user can arbitrarily enter values, and all > you need to > do is "add" them to the drop down list, then some simple > javascript DOM > is all you need. Then when the user clicks on the Submit and Continue > button, use php to read the dropdown array (appending [] to the name > attribute's value will help -- like this then > $_POST['foo'][0] would hold the value of your selected index). > > If you are not a big fan of javascript + DOM (this is, after > all, a PHP > list) -- you can use PHP to dynamically populate the dropdown by > appending the value of the entered box to the array. > Something along the > lines of (untested): > > $textbx = isset($_POST['textbx']) ? $_POST['textbx'] : NULL; > $menu = array(); if ($textbx != NULL) { > $menu['somevalue'] = $textbx; > } else { echo " selected=\"selected\">Please enter a value"; } > > /* we now assume that the array was populated */ > echo "\n"; > echo "Value Entered > Below\n"; > while(list($k,$v) = each($menu)) > { > echo "".$v."\n"; > } > echo ""; > > > Hope this helps. > > -- > Burhan Khalid > phplist[at]meidomus[dot]com > http://www.meidomus.com > I'm not making a drop down box, I just want the contents of what is added to be displayed on the page. I got all of this done by creating an array and storing it in a session variable. Here's the code... if ($_POST['2_Add'] != "") { if (($_POST['Frequent_Flyer_Program'] != "") && ($_POST['Frequent_Flyer_Number'] != "")) { $array = array(); $new = "{$_POST['Frequent_Flyer_Program']},{$_POST['Frequent_Flyer_Number']}" ; $old = $_SESSION['Frequent_Flyer']; $array = array_merge($old, $new); $_SESSION['Frequent_Flyer'] = $array; } header("Location: profile2.php"); } The only dilema I have now is... How can I allo
Re: [PHP] Array maybe? Or many SQL insert queries
Jake McHenry wrote: -Original Message- From: Burhan Khalid [mailto:[EMAIL PROTECTED] Sent: Saturday, November 01, 2003 3:50 AM To: Jake McHenry; [EMAIL PROTECTED] Subject: Re: [PHP] Array maybe? Or many SQL insert queries Jake McHenry wrote: Hi everyone, here's what I'm doing. As of right now, I don't have anything implemented, but here's what I need to do. I have a web page, with a drop down list of hotels, an input box for the users frequent hotel number, and a add button. At the bottom of the page is a update and continue button to move the user to the next page with more options. What my boss wants is, when someone puts in a number, and clicks add, he wants it to take that number and put it below the box, all on the fly. I know I could do this through repeated sql insert querys, but I was wondering if I could just put them into an array, then update the database with one query after the user clicks the update and continue button at the bottom, to get them to the next page? This sounds like something javascript can fix. If you can be a bit more precise "below the box" doesn't mean much. What box? Is it a big green box? Blue box? Box of boxes? If you want "on the fly" then its javascript. For php to work, you'd have to send a request to the server, which would kill your "on the fly" part. I don't know why I said on the fly.. Lol.. The box I'm referring to is the input field box. I just need what's submitted via the input field and add button to show up in a list below the input box, to show the account numbers that were entered. I can either insert them into the database each time the add button is clicked, or my preference if possible, put them in an array of some kind then submit them all at once. To get a picture of what I want...: Site Logo __ |__| ADD Submit and Continue Submit and Exit That's basically what this page looks like. What I need is when the person inputs the account number in the input box, and clicks add, it needs to refresh the page with the added number below that box, then again for each number they enter. You can attach a javascript function to the onclick event of the Add button that populates your drop down. Of course, this assumes that you have a predefined array of all possible values (in javascript) that the user can enter. However, if your user can arbitrarily enter values, and all you need to do is "add" them to the drop down list, then some simple javascript DOM is all you need. Then when the user clicks on the Submit and Continue button, use php to read the dropdown array (appending [] to the name attribute's value will help -- like this then $_POST['foo'][0] would hold the value of your selected index). If you are not a big fan of javascript + DOM (this is, after all, a PHP list) -- you can use PHP to dynamically populate the dropdown by appending the value of the entered box to the array. Something along the lines of (untested): $textbx = isset($_POST['textbx']) ? $_POST['textbx'] : NULL; $menu = array(); if ($textbx != NULL) { $menu['somevalue'] = $textbx; } else { echo "Please enter a value"; } /* we now assume that the array was populated */ echo "\n"; echo "Value Entered Below\n"; while(list($k,$v) = each($menu)) { echo "".$v."\n"; } echo ""; Hope this helps. -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] RE: {Spam?} [PHP] Congratulations Yoiu are a Winner
What the? Can you say SPAM? Thanks, Jake McHenry Nittany Travel MIS Coordinator http://www.nittanytravel.com > -Original Message- > From: Francis Weeny [mailto:[EMAIL PROTECTED] > Sent: Saturday, November 01, 2003 6:11 PM > To: [EMAIL PROTECTED] > Subject: {Spam?} [PHP] Congratulations Yoiu are a Winner > > > SUNSWEETWIN PROMO LOTTERY,THE NETHERLANDS. > ALFONSTRAAT B56, > 1002 BS AMSTERDAM, THE NETHERLANDS. > TO THE MANAGER > FROM: THE DESK OF THE PROMOTIONS MANAGER, > INTERNATIONAL PROMOTIONS/PRIZE AWARD DEPARTMENT, > REF: OYL /26510460037/02 > BATCH: 24/00319/IPD > ATTENTION: > RE/ AWARD NOTIFICATION; FINAL NOTICE > We are pleased to inform you of the announcement > today, 31st October 2003 of winners of the SUNSWEETWIN PROMO > LOTTERY,THE > NETHERLANDS/ INTERNATIONAL, PROGRAMS held on 28th August 2003 > > Your company,is attached to ticket number > 023-0148-790-459, with serial number 5073-11 drew > the lucky numbers 43-11-44-37-10-43, and consequently > won the lottery in the 3rd category. > You have therefore been approved for a lump sum pay > out of US$5,500.000.00 in cash credited to file REF > NO. OYL/25041238013/02. This is from total prize money > of > US$80,400,000.00 shared among the seventeen > international winners in > this category. All participants were selected through > a computer > ballot > system drawn form 25,000 names from Australia, New > Zealand, America, Europe, North America and Asia as > part of > International Promotions Program, which is conducted > annually. > CONGRATULATIONS! > Your fund is now deposited with a Security company > insured in your name. Due to the mix up of > some numbers and names, we ask that you keep this > award strictly > from > public notice until your claim has > been processed and your money remitted to your > account. > This is part of our security protocol to avoid > double claiming or unscrupulous acts by participants > of > this program. > We hope with a part of you prize, you will > participate in our end of year high stakes US$1.3 > billion > International Lottery. > To begin your claim, please contact your claim > agent; Mr Francis weeny at this email address below. > [EMAIL PROTECTED] > For due processing and remittance of your prize > money to a designated account of your choice. > Remember, all prize money must be claimed not later > than 10th November 2003. After this date, all funds will > be returned as unclaimed. > NOTE: In order to avoid unnecessary delays and > complications, please remember to quote your > reference and batch numbers in every one of your > orrespondences with your agent. > Furthermore, should there be any > change of your address, do inform your claims agent > as soon as possible. > Congratulations again from all our staff and thank > you for being part of our promotions program. > > Sincerely, > Clark Wood > THE PROMOTIONS MANAGER, SUNSWEETWIN PROMO LOTTERY,THE > NETHERLANDS. NB. Any breach of confidentiality on the part of > the winners will result to disqualification. > SORRY FOR THE LATE INFORMATION THANKS > CLARK WOOD > > > > > -- > 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
Re: [PHP] Congratulations Yoiu are a Winner
Yippee! I won and I never win anything! All you guys, stay away, its my money all minelast time you guys claimed now my turn but dont worry, i'll share the first million _that if recive from them_ with everyone on the list. Cheers, -Ryan Private note to the jerk who sent this to the lists, including PHP-DB: Go f%#! yourself @ss%#^. SUNSWEETWIN PROMO LOTTERY,THE NETHERLANDS. ALFONSTRAAT B56, 1002 BS AMSTERDAM, THE NETHERLANDS. TO THE MANAGER FROM: THE DESK OF THE PROMOTIONS MANAGER, INTERNATIONAL PROMOTIONS/PRIZE AWARD DEPARTMENT, REF: OYL /26510460037/02 BATCH: 24/00319/IPD ATTENTION: RE/ AWARD NOTIFICATION; FINAL NOTICE We are pleased to inform you of the announcement today, 31st October 2003 of winners of the SUNSWEETWIN PROMO LOTTERY,THE NETHERLANDS/ INTERNATIONAL, PROGRAMS held on 28th August 2003 Your company,is attached to ticket number 023-0148-790-459, with serial number 5073-11 drew the lucky numbers 43-11-44-37-10-43, and consequently won the lottery in the 3rd category. You have therefore been approved for a lump sum pay out of US$5,500.000.00 in cash credited to file REF NO. OYL/25041238013/02. This is from total prize money of US$80,400,000.00 shared among the seventeen international winners in this category. All participants were selected through a computer ballot system drawn form 25,000 names from Australia, New Zealand, America, Europe, North America and Asia as part of International Promotions Program, which is conducted annually. CONGRATULATIONS! Your fund is now deposited with a Security company insured in your name. Due to the mix up of some numbers and names, we ask that you keep this award strictly from public notice until your claim has been processed and your money remitted to your account. This is part of our security protocol to avoid double claiming or unscrupulous acts by participants of this program. We hope with a part of you prize, you will participate in our end of year high stakes US$1.3 billion International Lottery. To begin your claim, please contact your claim agent; Mr Francis weeny at this email address below. [EMAIL PROTECTED] For due processing and remittance of your prize money to a designated account of your choice. Remember, all prize money must be claimed not later than 10th November 2003. After this date, all funds will be returned as unclaimed. NOTE: In order to avoid unnecessary delays and complications, please remember to quote your reference and batch numbers in every one of your orrespondences with your agent. Furthermore, should there be any change of your address, do inform your claims agent as soon as possible. Congratulations again from all our staff and thank you for being part of our promotions program. Sincerely, Clark Wood THE PROMOTIONS MANAGER, SUNSWEETWIN PROMO LOTTERY,THE NETHERLANDS. NB. Any breach of confidentiality on the part of the winners will result to disqualification. SORRY FOR THE LATE INFORMATION THANKS CLARK WOOD -- 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
[PHP] Congratulations Yoiu are a Winner
SUNSWEETWIN PROMO LOTTERY,THE NETHERLANDS. ALFONSTRAAT B56, 1002 BS AMSTERDAM, THE NETHERLANDS. TO THE MANAGER FROM: THE DESK OF THE PROMOTIONS MANAGER, INTERNATIONAL PROMOTIONS/PRIZE AWARD DEPARTMENT, REF: OYL /26510460037/02 BATCH: 24/00319/IPD ATTENTION: RE/ AWARD NOTIFICATION; FINAL NOTICE We are pleased to inform you of the announcement today, 31st October 2003 of winners of the SUNSWEETWIN PROMO LOTTERY,THE NETHERLANDS/ INTERNATIONAL, PROGRAMS held on 28th August 2003 Your company,is attached to ticket number 023-0148-790-459, with serial number 5073-11 drew the lucky numbers 43-11-44-37-10-43, and consequently won the lottery in the 3rd category. You have therefore been approved for a lump sum pay out of US$5,500.000.00 in cash credited to file REF NO. OYL/25041238013/02. This is from total prize money of US$80,400,000.00 shared among the seventeen international winners in this category. All participants were selected through a computer ballot system drawn form 25,000 names from Australia, New Zealand, America, Europe, North America and Asia as part of International Promotions Program, which is conducted annually. CONGRATULATIONS! Your fund is now deposited with a Security company insured in your name. Due to the mix up of some numbers and names, we ask that you keep this award strictly from public notice until your claim has been processed and your money remitted to your account. This is part of our security protocol to avoid double claiming or unscrupulous acts by participants of this program. We hope with a part of you prize, you will participate in our end of year high stakes US$1.3 billion International Lottery. To begin your claim, please contact your claim agent; Mr Francis weeny at this email address below. [EMAIL PROTECTED] For due processing and remittance of your prize money to a designated account of your choice. Remember, all prize money must be claimed not later than 10th November 2003. After this date, all funds will be returned as unclaimed. NOTE: In order to avoid unnecessary delays and complications, please remember to quote your reference and batch numbers in every one of your orrespondences with your agent. Furthermore, should there be any change of your address, do inform your claims agent as soon as possible. Congratulations again from all our staff and thank you for being part of our promotions program. Sincerely, Clark Wood THE PROMOTIONS MANAGER, SUNSWEETWIN PROMO LOTTERY,THE NETHERLANDS. NB. Any breach of confidentiality on the part of the winners will result to disqualification. SORRY FOR THE LATE INFORMATION THANKS CLARK WOOD -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Templates/Separate content from presentation
"Pedro Pais" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I've coded in PHP for a while, but I had to leave it for some time. Now > I'm back, and I'd like to know what's currently being used to separate > content from presentation, besides Smarty (that seems to be Google's top > choice)? Try also TemplateTamer, it comes with dev environment for tempalte based development. rush -- http://www.templatetamer.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Templates/Separate content from presentation
Thank you all for the information you gave me! :) I'll study every one of it and tell you in a short time about my choice :P Boyan Nedkov wrote: Harry Fuecks (phpPaterns(), see the link below) has a quite interesting opinion concerning php and the use of templates, with which I generally agreed, after spending some hard time to investigate the most suitable for me templating ideology/approach/system. I would suggest you first read this article and then decide whether to 'succumbing to the lure of templates' or to find your best way to use php itself as a template engine. 'Templates and Template Engines' http://phppatterns.com/index.php/article/articleview/4/1/1/ Some more resources that may help answering your question: 'Compiling a list of PHP Template Engines' http://www.phppatterns.com/index.php/article/articleview/69/1/11/ http://www.bernhardseefeld.ch/archives/67.html http://www.phpbuilder.com/mail/php-general/2003042/1730.php http://www.massassi.com/php/articles/template_engines/old/ http://www.scripps.edu/~jesusmc/cachedtpl/CachedTemplate.html http://zend.com/zend/trick/tricks-nov-2001.php Cheers, Boyan Nedkov -- Pedro Pais wrote: Hi! I've coded in PHP for a while, but I had to leave it for some time. Now I'm back, and I'd like to know what's currently being used to separate content from presentation, besides Smarty (that seems to be Google's top choice)? Thanx -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] References and memory efficiency
Hi there, I've been working on a database wrapper class for a while now, MySQL to be specific. Until now, I've simply had a fetch function that returned an array of all the rows that the database returned, only because I have gotten so tired of always writing the same while loop to iterate through all the rows. However, I have discovered that the method I'm using, passing around large multidimensional arrays of text by copy, is extremely memory inefficient, so I am working on a new method. Tell me if this is any better: Rather than using something like: $sql = 'SELECT text, date, etc FROM news WHERE blah=\'foo\''; if (!$myquery = $db->query($sql)) { echo 'uh oh'; } if (!$db->numrows($myquery)) { echo 'no rows found'; } $news = $db->fetchNews($myquery); I could do something like: $news = array(); $db->fetch($myquery, $news); Where fetch($query, &$array) is the header. In the second case, the fetch function would therefore write the rows directly to the array which was passed as a reference rather than returning a copy. Am I right in thinking that this is a better method? Should I shut up and do a while loop? Thanks, Joachim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Beginner
Jason T. Davidson wrote: I am new to php and seeking some help. I have a couple of books and maybe I just am not seeing my error. If you go to www.mspartcc.com/test.htm and look at the source code you will see what I am trying to do. The only problem is that the date is not displaying. I really appreciate in advance any help I get. Jason Davidson One of two things... 1) You don't have php installed 2) Apache isn't configured to parse *.htm as php files. If number one is the issue, install php. If number two is the issue, change the file extension to one that Apache knows is a php file (commonly *.php), or configure Apache to 'see' *.htm files as php. -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Japanese entry into MySQL and into emails
Thank you Edwin, Marek, and Eugene for your responses and advice. For storing the Japanese names in kanji in the database, I've changed the column to "blob". Storing and retrieving the fields seems to work okay in all my tests, and this solution seemed to be the easiest and without any potential impact on the rest of the database. Thank you for this solution. For sending the email in Japanese, I am still not quite getting it. At first I attempted to attach character set information within the mail() command like so: $addheaders = 'From: ' .$email .'\r\nContent-Type: text/html; charset=iso-2022-jp'; mail ($toaddress, $subject, $mailcontent, $addheaders); This sends the mail correctly, but the content is still coming out as ASCII gibberish. I then attempted to use the mb_send_mail() command, like so (this time a "From: " address being the only additional header: mb_language(Japanese); mb_send_mail($toaddress, $subject, $mailcontent, $fromaddress); But this had exactly the same result. I see on the http://jp2.php.net/manual/en/function.mb-send-mail.php web page there is lots of additional comments on the use of mb-send-mail(), but the technical vocabulary is beyond me. Can someone help me tweak this code to successfully send a kanji email? -- Cheers! Dave G [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Call to undefined function: xml_parser_create()... but CGI compiled --with-xml
a production box running 4.2.2 recently had a script added to it requiring use of xml functionality. The box was already compiled (a few versions earlier) with the --with-xml option. Since then, have upgraded this box twice (though it is due for another) using config.nice to ensure the same options are installed. have configured this as an apache module and as the CGI... the apache module uses the XML functions just fine. The CGI however gives the error in the subject. Have compared phpinfo() on each, and added extension_dir and include_dir to the standalone php's php.ini so that it matches the apache module version, still no joy. Any thoughts, recommendations, or hints as to what I may be missing which would cause the cgi version not to compile with the xml features even when the --with-xml option is and has been specified since 4.0.x and through every upgrade since then thanks to using the same config.nice. thanks Dave -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Templates/Separate content from presentation
Harry Fuecks (phpPaterns(), see the link below) has a quite interesting opinion concerning php and the use of templates, with which I generally agreed, after spending some hard time to investigate the most suitable for me templating ideology/approach/system. I would suggest you first read this article and then decide whether to 'succumbing to the lure of templates' or to find your best way to use php itself as a template engine. 'Templates and Template Engines' http://phppatterns.com/index.php/article/articleview/4/1/1/ Some more resources that may help answering your question: 'Compiling a list of PHP Template Engines' http://www.phppatterns.com/index.php/article/articleview/69/1/11/ http://www.bernhardseefeld.ch/archives/67.html http://www.phpbuilder.com/mail/php-general/2003042/1730.php http://www.massassi.com/php/articles/template_engines/old/ http://www.scripps.edu/~jesusmc/cachedtpl/CachedTemplate.html http://zend.com/zend/trick/tricks-nov-2001.php Cheers, Boyan Nedkov -- Pedro Pais wrote: Hi! I've coded in PHP for a while, but I had to leave it for some time. Now I'm back, and I'd like to know what's currently being used to separate content from presentation, besides Smarty (that seems to be Google's top choice)? Thanx -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Put output of mysql into an Array
On Sat, 2003-11-01 at 12:26, Frank Keessen wrote: > O.K. > > When i do this: > > // open database connection > $connection = mysql_connect($host, $user, $pass) or die ("Unable to > connect!"); > // select database > mysql_select_db($db) or die ("Unable to select database!"); > > $query = "SELECT markhow, COUNT(*) FROM prospects GROUP BY markhow"; > $result = mysql_query($query) or die ("Error in query: $query. " . > mysql_error()); > while ($row = mysql_fetch_assoc($result)) > { > echo $row['markhow']; > } > > O.k. This is working.. Can someone tell me how to retrieve the COUNT > function? Use 'COUNT(id) AS count_result', then you can access the value with $row['count_result']; -- Regards, Filip de Waard Net Collective www.netcollective.nl Tel. 06 - 48 01 22 40 Fax. 013 - 455 87 53 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Put output of mysql into an Array
O.K. When i do this: To: "Frank Keessen" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Saturday, November 01, 2003 11:59 AM Subject: Re: [PHP] Put output of mysql into an Array > Frank Keessen wrote: > > > Hi, > > > > Can somebody help me with the following? > > > > I want to have the outcome of this: > > > > $query = "SELECT markhow, COUNT(*) FROM prospects GROUP BY markhow"; > > $result = mysql_query($query) or die ("Error in query: $query. " . mysql_error()); > > > > Put into an array like this (for example); > > > > array( > > "January 12" => 52, > > "August 4" => 45 > >); > > http://www.php.net/mysql-fetch-array > http://www.php.net/mysql-fetch-assoc > > Before asking next time, try reading the manual. :| > > -- > Burhan Khalid > phplist[at]meidomus[dot]com > http://www.meidomus.com > > -- > 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
RE: [PHP] Array maybe? Or many SQL insert queries
> -Original Message- > From: Burhan Khalid [mailto:[EMAIL PROTECTED] > Sent: Saturday, November 01, 2003 3:50 AM > To: Jake McHenry; [EMAIL PROTECTED] > Subject: Re: [PHP] Array maybe? Or many SQL insert queries > > > Jake McHenry wrote: > > > Hi everyone, here's what I'm doing. > > > > As of right now, I don't have anything implemented, but > here's what I > > need to do. > > > > I have a web page, with a drop down list of hotels, an > input box for > > the users frequent hotel number, and a add button. At the bottom of > > the page is a update and continue button to move the user > to the next > > page with more options. > > > > What my boss wants is, when someone puts in a number, and > clicks add, > > he wants it to take that number and put it below the box, > all on the > > fly. I know I could do this through repeated sql insert > querys, but I > > was wondering if I could just put them into an array, then > update the > > database with one query after the user clicks the update > and continue > > button at the bottom, to get them to the next page? > > This sounds like something javascript can fix. If you can be > a bit more > precise "below the box" doesn't mean much. What box? Is it a > big green > box? Blue box? Box of boxes? > > If you want "on the fly" then its javascript. For php to work, you'd > have to send a request to the server, which would kill your > "on the fly" > part. > > > -- > Burhan Khalid > phplist[at]meidomus[dot]com > http://www.meidomus.com > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > I don't know why I said on the fly.. Lol.. The box I'm referring to is the input field box. I just need what's submitted via the input field and add button to show up in a list below the input box, to show the account numbers that were entered. I can either insert them into the database each time the add button is clicked, or my preference if possible, put them in an array of some kind then submit them all at once. To get a picture of what I want...: Site Logo __ |__| ADD Submit and Continue Submit and Exit That's basically what this page looks like. What I need is when the person inputs the account number in the input box, and clicks add, it needs to refresh the page with the added number below that box, then again for each number they enter. Like I said, I can do this with multiple accesses to the database, but I would like to know of a way I could submit them all at once instead of multiple accesses to the database. Let me know if you need more info. Thanks, Jake McHenry Nittany Travel MIS Coordinator http://www.nittanytravel.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Put output of mysql into an Array
Frank Keessen wrote: Hi, Can somebody help me with the following? I want to have the outcome of this: $query = "SELECT markhow, COUNT(*) FROM prospects GROUP BY markhow"; $result = mysql_query($query) or die ("Error in query: $query. " . mysql_error()); Put into an array like this (for example); array( "January 12" => 52, "August 4" => 45 ); http://www.php.net/mysql-fetch-array http://www.php.net/mysql-fetch-assoc Before asking next time, try reading the manual. :| -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Put output of mysql into an Array
Hi, Can somebody help me with the following? I want to have the outcome of this: $query = "SELECT markhow, COUNT(*) FROM prospects GROUP BY markhow"; $result = mysql_query($query) or die ("Error in query: $query. " . mysql_error()); Put into an array like this (for example); array( "January 12" => 52, "August 4" => 45 ); Thanks for your help! Regards, Frank
Re: [PHP] XML Validate
Cosmin wrote: Is there a function to validate a XML document(make sure tags are closed/nested)? The xml parser will throw an error if you try and pass it an invalid xml document (which you can catch and process). However, it would be best if you can validate your xml document first before running it through the parser. -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Templates/Separate content from presentation
Pedro Pais wrote: Hi! I've coded in PHP for a while, but I had to leave it for some time. Now I'm back, and I'd like to know what's currently being used to separate content from presentation, besides Smarty (that seems to be Google's top choice)? http://pear.php.net/package/HTML_Template_Flexy http://pear.php.net/package/HTML_Template_PHPLIB http://pear.php.net/package/HTML_Template_Sigma http://pear.php.net/package/HTML_Template_Xipe -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Array maybe? Or many SQL insert queries
Jake McHenry wrote: Hi everyone, here's what I'm doing. As of right now, I don't have anything implemented, but here's what I need to do. I have a web page, with a drop down list of hotels, an input box for the users frequent hotel number, and a add button. At the bottom of the page is a update and continue button to move the user to the next page with more options. What my boss wants is, when someone puts in a number, and clicks add, he wants it to take that number and put it below the box, all on the fly. I know I could do this through repeated sql insert querys, but I was wondering if I could just put them into an array, then update the database with one query after the user clicks the update and continue button at the bottom, to get them to the next page? This sounds like something javascript can fix. If you can be a bit more precise "below the box" doesn't mean much. What box? Is it a big green box? Blue box? Box of boxes? If you want "on the fly" then its javascript. For php to work, you'd have to send a request to the server, which would kill your "on the fly" part. -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
php-general Digest 1 Nov 2003 08:47:33 -0000 Issue 2389
php-general Digest 1 Nov 2003 08:47:33 - Issue 2389 Topics (messages 168234 through 168254): Re: php temp table question (for mysql) 168234 by: Marek Kilimajer 168248 by: Curt Zirzow Php processor and return window 168235 by: Robb Kerr 168244 by: Robert Cummings IRC 168236 by: Jonathan Villa 168237 by: Jon Kriek 168238 by: Nathan Taylor Windows & PHP 168239 by: mohamad taghlobi Re: help! 168240 by: Haseeb Iqbal Generating Numbers from Strings 168241 by: John Ryan 168242 by: Thomas Seifert 168243 by: John Ryan 168246 by: Filip de Waard Templates/Separate content from presentation 168245 by: Pedro Pais 168247 by: Greg Donald 168249 by: Robert Cummings 168250 by: Greg Beaver Array maybe? Or many SQL insert queries 168251 by: Jake McHenry Beginner 168252 by: Jason T. Davidson 168253 by: Justin French XML Validate 168254 by: Cosmin Administrivia: To subscribe to the digest, e-mail: [EMAIL PROTECTED] To unsubscribe from the digest, e-mail: [EMAIL PROTECTED] To post to the list, e-mail: [EMAIL PROTECTED] -- --- Begin Message --- Session should not have any influence. Perhaps Keep-alive connection, then by closing the browser the connection ends. If you would wait enough the connection will be closed anyway. But certainly this is valueable knowledge. Larry Brown wrote: I'm now finding that persistent connections is allowing the temp table to remain. I have a sql query that creates the table and another that joins the temp table to another for a result set that I use. If I press refresh on the browser window I get an error that the sql query creating the table fails. I prepend a query that removes the table before the sql that creates it and then hit refresh and the query works. If I close the browser thus ending the session and reopen the browser and log in, the script fails to remove the temp table since it hasn't been created yet (and must have been removed). I changed my method of connecting to use mysql_connect instead of mysql_pconnect and removed the drop temp sql and it loads and reloads fine. Perhaps it is the combination of mysql_pconnect with sessions that creates this problem. -Original Message- From: CPT John W. Holmes [mailto:[EMAIL PROTECTED] Sent: Monday, October 27, 2003 4:43 PM To: Larry Brown; PHP List Subject: Re: [PHP] php temp table question (for mysql) From: "Larry Brown" <[EMAIL PROTECTED]> Does anyone know whether the use of persistent connections with php will allow a temp table created by a script to linger around No, the table will still be removed at the end of the script whether you use persistant connections or not. and cause a problem with the next execution of the script when it tries to create the temp table Temporary tables are unique for that specific question. So you can have the same script creating the "same" temporary table and 100 people hit it without issues. Each script creates it's own temporary table with a unique name that only that connection has access to. ---John Holmes... --- End Message --- --- Begin Message --- * Thus wrote Larry Brown ([EMAIL PROTECTED]): > I'm now finding that persistent connections is allowing the temp table to > remain. I have a sql query that creates the table and another that joins > the temp table to another for a result set that I use. If I press refresh on How are you creating the temp table? > the browser window I get an error that the sql query creating the table > fails. I prepend a query that removes the table before the sql that creates > it and then hit refresh and the query works. If I close the browser thus > ending the session and reopen the browser and log in, the script fails to > remove the temp table since it hasn't been created yet (and must have been > removed). I changed my method of connecting to use mysql_connect instead of > mysql_pconnect and removed the drop temp sql and it loads and reloads fine. > Perhaps it is the combination of mysql_pconnect with sessions that creates > this problem. If this is the case it most likey is a mysql issue not a php one. Curt -- "My PHP key is worn out" PHP List stats since 1997: http://zirzow.dyndns.org/html/mlists/ --- End Message --- --- Begin Message --- I am just learning PhP. When I was teaching myself Lingo (Macromedia Director's programming language) I found an object called the MESSAGE window quite helpful. This window allowed you to execute little snippets of code and get the results without having to execute your entire script. For instance, you could create a variable and give it a value then run an if/then statement or loop on it and quickly see the results. This is quite convenient when you're learning the language because you can test your syntax line-by-
[PHP] XML Validate
Is there a function to validate a XML document(make sure tags are closed/nested)? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php