RE: [PHP] variable placeholders in a text file

2013-01-07 Thread Nelson Green
On Sat, 5 Jan 2013 04:20:09 -0600, Kevin Kinsey wrote: > Nelson (et al), > > I've enjoyed reading this thread and apologize for dredging it up. > It's interesting to see your progression of thought and the templating > discussion is indeed a worthy one. > > H

RE: [PHP] variable placeholders in a text file

2013-01-01 Thread Nelson Green
> While using the *_once works in many cases, if you're doing a mass > mailing kind of thing, you want to use the standard include/require so > you can re-include it as your variables change: > > foreach ($customers as $customer) { > $fullname = $customer['fullname']; > $address = $customer['addre

RE: [PHP] SOLVED: variable placeholders in a text file

2012-12-31 Thread Nelson Green
ope this helps > > -- > Stephen Aha! Thanks for the more detailed explanation. I totally misunderstood your first reply. I understood why I was seeing "$user_name" instead of "Nelson", but I did not understand what you were trying to tell me. My greeter file is now:

RE: [PHP] variable placeholders in a text file

2012-12-31 Thread Nelson Green
On 2012-12-31, at 4:58 PM, tamouse mailing lists wrote: > I use the include("template") method for this alla time, it works > great. Most especially for HTML emails coming from a web site to a > group of users, just slick as anything. include does basically just > what your print_greeting functi

RE: [PHP] variable placeholders in a text file

2012-12-31 Thread Nelson Green
In other words the greeting on my page becomes: Hello $user_name. How are you today? I want to pass the name Nelson to the function, and have it output: Hello Nelson. How are you today? after the function reads in text file input that contains a variable placeholder for the user name. I actually h

RE: [PHP] variable placeholders in a text file

2012-12-31 Thread Nelson Green
On Mon, 31 Dec 2012 19:59:02, Ashley Sheridan wrote: ___ > > On Mon, 2012-12-31 at 13:39 -0600, Nelson Green wrote:   > My question is, is there another way to do something similar, such as > embedding a variable name directly into the text file? In

[PHP] variable placeholders in a text file

2012-12-31 Thread Nelson Green
if I don't have to. Plus the latter seems to be a more robust way of making the changes. Thanks, and apologies if this has been asked before and I missed it. I'm just not sure how to phrase this for a search engine. Nelson

Re: [PHP] Implicit FTPS

2012-01-05 Thread Todd Nelson
Thank you Nilesh, but ftp_ssl_connect is my problem! I know what it does now - I'd like to extend it. From that manual page: "ftp_ssl_connect() opens an explicit SSL-FTP connection to the specified host." Todd From: Nilesh Govindarajan To: Todd Nelson Cc:

[PHP] Implicit FTPS

2012-01-05 Thread Todd Nelson
ce if desired. Thank you. Todd Nelson

[PHP] Re: Retrieve subjectAltName from client certificate

2011-11-29 Thread Nelson Teixeira
substr($cert_dec, $pos + 8, 11); echo $birthdate; echo ""; echo $docnumber; If anyone has any solution better than this one I would be glad to know. -Nelson 2011/11/24 Nelson Teixeira > Hello, > > I'm trying to read subjectAltName field from a client certificate with > >

[PHP] Retrieve subjectAltName from client certificate

2011-11-24 Thread Nelson Teixeira
" where the real data should be. There's valid data there because I can see it in firefox's certificate view. I already have SSLOptions +StdEnvVars +ExportCertData configured in apache. I can read correctly serveral other fields. How can I receive correctly from apache and extract the real data ? -Nelson

Re: [PHP] include() and duplicate function definition

2010-11-03 Thread David Nelson
mplate?   the function you want to "overwrite", wont be > used, and therefore, wouldn't your app/template/whatever be updated > improperly than waht you expect it to be? Steve, maybe the above informs? In any case, the function to be overwritten is likely to remain fairly stabl

[PHP] include() and duplicate function definition

2010-11-03 Thread David Nelson
. Sticky problem, huh? :-) In any case, thanks for your kind help, :-) David Nelson P.S. Sorry about the direct mails: I keep forgetting to hit the "Replly to all" button. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] include() and duplicate function definition

2010-11-03 Thread David Nelson
ntly possible in PHP. Time for some lateral thinking. :-) David Nelson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] include() and duplicate function definition

2010-11-03 Thread David Nelson
Hi Peter, :-) On Wed, Nov 3, 2010 at 18:44, Peter Lind wrote: > You can check with function_exists to see if a function is already defined. > If not, create it. The function is definitely already defined, I just need to replace it without touching the file in which it's defined... D

[PHP] include() and duplicate function definition

2010-11-03 Thread David Nelson
ks for your answer. :-) David Nelson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] include() and duplicate function definition

2010-11-03 Thread David Nelson
Hi, :-) I'm making a child theme for WordPress. I need to rewrite one function defined in "../sometheme/functions/actions.php" and put that rewritten function in "wp-content/themes/sometheme-child/functions/actions.php". But I want to preserve "../sometheme/functions/actions.php" unchanged in any

[PHP] Execute a shell command using thttpd-php

2006-03-14 Thread Nelson Carreira
m the PHP, so right now I'm quite stucked. I tried to find help online and offline but wasn't able to find any. I just hope you guys can help me! Thanks, Nelson Carreira -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to retrieve form data?

2005-02-28 Thread Gregg Nelson
beginning to learn how to use PHP. I am now on my way. "John Nichel" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Gregg Nelson wrote: > > > Clicking on the submit button now produces: > >

Re: [PHP] How to retrieve form data?

2005-02-27 Thread Gregg Nelson
ing?If so, can I access the "item" array itself? I tried this in the script but nothing was echoed:echo $item[0] "John Nichel" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Gregg Nelson wrote: > > The first execution of the file below produces the

[PHP] How to retrieve form data?

2005-02-27 Thread Gregg Nelson
The first execution of the file below produces the expected output: Request Method: GET Clicking on the Submit button outputs: Request Method: POST $_POST array contains: Array Why don't I see one of the values from the select item?

[PHP] Pspell on win32 platform

2004-12-16 Thread Ethan Nelson
r. Permissions look like they are working. A phpinfo() command shows that I have php4.3.10 with pspell enabled. However, when I run the command pspell_check($pspell_link, "testt") in my web scripts, the page appears to header redirect on itself indefinitely. Please help. -Ethan Nelson, Modulus, LLC

Re: [PHP] php newsgroup portal?

2004-02-29 Thread Shane Nelson
To read this list I use thunderbird: http://www.mozilla.org/projects/thunderbird/ It's an email client instead of a newsgroup reader. Just filter the php-general messages into a separate folder and sort it by thread. Super easy to use and a very nice piece of software. Shane Zhang Weiwu wr

[PHP] apache mysql php windows

2004-02-24 Thread Shane Nelson
Hi Folks A few days ago on the list I saw someone mention a package that includes apache, mysql and php for Windows. The one install file included all these programs. Anyone remember what it was? I've checked google and searched through my email list but I can't seem to find it! Thanks, Sha

Re: [PHP] Detecting Binaries

2004-02-23 Thread Shane Nelson
Richard Davey wrote: Hello Axel, Monday, February 23, 2004, 7:03:38 PM, you wrote: AIM> Guys, this isn't THAT stupid of a question is it? From my perspective, AIM> the way PHP seems to see it is that I should already know what kind of AIM> file I'm looking at. In most cases that's not an unrea

Re: [PHP] Re: ftp software

2004-02-22 Thread Shane Nelson
I would highly recomend filezilla: http://filezilla.sourceforge.net/ It's open source, it works great and it doesn't have any ads or spyware like some of the other 'free' windows ftp programs. > > "Nathan McIntyre" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > Hello! > >

Re: [PHP] [Q] About "Method Not Allowed" error message

2004-02-20 Thread Shane Nelson
I don't think you can send a POST to a .html page. Maybe your page (register_new_member.html) should be .php instead? Either that or you might have to change your : > When I click the submit button (after completing a [member registration] > form), I get the following error message: > > Me

Re: [PHP] phpdoc commenter

2004-01-11 Thread Nelson Rodríguez-Peña Alarcón
you to add documentation to a function/class. It shouldn't be difficult to extend it to parse a complete script I guess... -- regards, ---- Nelson Rodríguez-Peña A. Diseño y Desarrollo

Re: [PHP] Bizzare form problem - Please Help!

2004-01-06 Thread Nelson Rodríguez-Peña Alarcón
PHP, then this wouldn't happen, something like: hope it helps. -- regards, ---- Nelson Rodríguez-Peña A. Diseño y Desarrollo Web & Multimedia -- PHP Ge

[PHP] Compile on Mac OS X --with-java?

2003-11-06 Thread Karl Nelson
Has anyone managed to get PHP to compile on Mac OS X with the --with-java flag in the configure command? I've tried it with PHP 4.3.2, 4.3.3, and 4.3.4, all without any luck. I'm using Mac OS X Server 10.2.8, with Java 1.4.1. I've tried ./configure --with-mysql --with-apxs --with-xml --with-jav

Re: [PHP] Sessions

2003-10-11 Thread Nelson Goforth
The "Session" documentation IS difficult to understand. I wrestled with it for some time (and still am). There's just no clear "cookie_lifetime" variable! All of Lowell Allen's instructions are the same that I've discovered, save that I set the 'session.gc_maxlifetime' to a large number - I

Re: [PHP] Please visit my php program

2003-09-29 Thread Nelson Rodríguez-Peña Alarcón
-- regards, Nelson Rodríguez-Peña A. Diseño y Desarrollo Web y Multimedia -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Date class and Span.php

2003-09-06 Thread Nelson Goforth
includes and I do not get an error, but I'm unable to get any return from Span.php. I'm trying to use the method addSpan($span), but I have no idea how to 'phrase' the $span variable. If I want to add a span of 6 months, how do I do so? Anyone out there with some expe

Re: [PHP] Re: rich text editing

2003-08-21 Thread Nelson Rodríguez-Peña Alarcón
regards, ---- Nelson Rodríguez-Peña A. Diseño y Desarrollo Web y Multimedia -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] is the list getting virus spammed?

2003-08-19 Thread Nelson Rodríguez-Peña Alarcón
Hi, Matt Babineau wrote: Hmmwondering why I keep receiving email sent to the list, that has this stupid attachment...anyone else getting these? Yes, I also got those mails. It's Sobig-F. -- regards, Nelson Rodríguez-Peña A. D

[PHP] Can you turn off safe_mode for a global alias path or directory?

2003-08-14 Thread Andrew Nelson
Hi, I'm using the FreeBSD Port mod_php4-4.3.1 I have lots of name-based virtual sites which all have: php_admin_value open_basedir "/domains/sitename.com/ php_admin_value safe_mode "1" so they can't use PHP to browse around the server. I do however set a global alias: Alias /admin "/usr/l

RE: [PHP] IE Issues

2003-07-22 Thread Nelson Rodriguez-Pena
SS. regards, ---- Nelson Rodriguez-Pena A. Diseno y Desarrollo Web y Multimedia [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Trouble connection to Postgres DB

2003-07-21 Thread Nelson Ferreira Jr
Any help? Nelson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Form Elements - user adding dynamically

2003-06-17 Thread Nelson Goforth
port Javascript! - Nelson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Form Elements - user adding dynamically

2003-06-17 Thread Nelson Goforth
just under the existing slot. I've got something worked out that is beginning to work, but I wondered if anyone on the list had faced a similar problem or knows of an example script that handles a problem like that. Thanks, Nelson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] I get a "File Download" dialogue box from http://localhost

2003-02-10 Thread nelson
I am trying to configure run PHP4 on Apache on Windows XP. When I type http://localhost/ all I get is a "File Download" dialogue box, instead of the normal Apache server page. Does anyone know whats is going on here? Please tell me if you need any more information. -Nelson

[PHP] Returning to a Previous Page

2003-02-09 Thread Nelson Goforth
an concatenate HOST and URI variables to get what I want, but am I missing something here? I am running sessions in this application. Thank you for any assistance, Nelson Nelson Goforth htt

RE: [PHP] ODBC text file connection problem

2002-09-10 Thread Ethan Nelson
er "text driver limitations" that I should be able to run select statements using the odbc_exec command. http://support.microsoft.com/default.aspx?scid=kb;en-us;Q178717 Anyone know of any really good ODBC resources? -Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTE

RE: [PHP] ODBC text file connection problem

2002-09-10 Thread Ethan Nelson
in \ ***:\***\***\***\basecsv2.html on line 53 -Ethan -Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 10, 2002 12:03 PM To: Ethan Nelson; [EMAIL PROTECTED] Subject: RE: [PHP] ODBC text file connection problem [snip] As you can see, If I'

RE: [PHP] ODBC text file connection problem

2002-09-10 Thread Ethan Nelson
can't guarantee the format of the csv in any way that is easy to work with... for instance, the first data line might look like this: "2","Ethan Nelson","My favorite quote is ""To hell with them"".","just a test"\r\n As you can se

[PHP] ODBC text file connect problem

2002-09-10 Thread Ethan Nelson
Good morning... I've got one for ya. I've been trying to conenct to a csv text file (comma delimited, \r\n row separators, and " text qualifiers) using the odbc_connect command and then run simple select statements through it. It doesn't work and I'm at a loss for why. Here's the meat (I re

[PHP] ODBC text file connection problem

2002-09-10 Thread Ethan Nelson
Good morning... I've got one for ya. I've been trying to conenct to a csv text file = (comma delimited, \r\n row separators, and " text qualifiers) using the = odbc_connect command and then run simple select statements through it. = It doesn't work and I'm at a loss for why. Here's the meat (I

Re: [PHP] faxing

2002-08-28 Thread Nelson Asinowski
Mike Mannakee wrote: >Does anyone know of a solution to get a script to actually connect with the >POTS system (even through a 3rd party provider) and send a fax? > >Mike > There are several "fax over the internet" providers out there. I used to work for one. That service was via email. You se

[PHP] Error in Configuring PHP 4.2.1 httpd.h cannot be found

2002-05-22 Thread Nelson . Broat
Possible reasons: 1. Perl is not installed; 2. Apache was not compiled with DSO support (--enable-module=so); 3. 'apxs' is not in your path. Try to use --with-apxs=/path/to/apxs The output of /usr/local/apache/bin follows ./configure: /usr/local/apache/bin: cannot execute confi

[PHP] PDF bug question?

2002-03-29 Thread Ethan Nelson
or("$pdf","fill","cmyk",.73,.26,.05,0); I'm using php 4.05 RC1. I know there was a bug about the last options being required but ignored for color options, such as RGB, that doesn't make use of them, but I don't know of one re

[PHP] Paging through MySQL results in PHP

2002-01-04 Thread Nelson Goforth
HREF="results.php?firstitem=1&items=25&kw=$kw...); but end up just showing that kw=array. Can anyone put me on the right track or point me to some resource? This seems like it should be simple but... Thanks, Nelson -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Allowing user login, but NOT requiring?

2001-11-21 Thread Nelson Goforth
ess . I found some basic information in the book "Professional PHP Programming", but could someone point me to another resource that might give a bit more detail? Thanks, Nelson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional com

Re: [PHP] looping through database results

2001-09-30 Thread Karl Nelson
Thanks for your help, Andrew, but it didn't seem to work. As I read the manual (http://www.php.net/manual/en/function.mysql-fetch-array.php), mysql_fetch_array is much like mysql_fetch_row, except that it uses the field names instead of numbers as the array key. Somebody correct me if I'm wrong

[PHP] looping through database results

2001-09-30 Thread Karl Nelson
I'm working on a basic calendar app in PHP, but I've hit a snag. The events are stored in a MySQL database, and the goal is to have the events displayed on the correct day on the calendar. The calendar is generated through a couple of while() statements that loop through the weeks and days. I'm

Re: [PHP] Content management

2001-09-10 Thread Nelson Goforth
tinker with HTML if you feel the need) - and for many, many websites at the same time. I'm hoping to take a little of this a build a single site that will handle _something_. Nelson At 5:07 PM -0500 9/10/01, Michael Champagne wrote: >I am looking for something like this as w

Re: [PHP] calling javascript functions inside PHP

2001-09-10 Thread Nelson Goforth
ion ('one-way') like PGP allows two separate keys for encryption and decryption, neither of which can be derived from the other. The encryption key is made public, but the decryption key is kept secret. Nelson >I use a PHP self-validating form for taking orders off my site. (on subm

[PHP] Hierarchic menus using Javascript and PHP?

2001-09-10 Thread Nelson Goforth
list into an arry I think I could make this work. Or possibly use another JavaScript script inside the PHP portion of the page in order to force it to mark the appropriate item "SELECTED"? I tried this but couldn't make it work. Any help is appreciated - Thanks, Nelson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] php.net's index.php

2001-07-29 Thread Nelson Goforth
Use the DirectoryIndex directive in your '.htaccess' file, as Ryan states. You'll find more information at: http://httpd.apache.org/ Nelson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAI

Re: [PHP] Opening another page in code (PROPOSED FAQ)

2001-07-25 Thread Nelson Goforth
ot to figure out how to circumvent that. Thanks again, Nelson >I have seen this question alot recently. Maybe it is time for an >FAQ. Maybe somebody >else would like to have an attempt at wording this better: > -- ==

[PHP] Opening another page in code

2001-07-25 Thread Nelson Goforth
ders. What have I missed? Thanks, Nelson -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] Variable scope problem

2001-03-28 Thread Joe Nelson
I have two functions like the ones below. If the first one creates a variable as global, shouldn't it be accesible to the second function? function setGlobal() { global $test; $test = "123"; } function getGlobal() { global $test; echo $test; } -- PHP General

[PHP] Get rid of da Zero's

2001-01-25 Thread Ethan Nelson
>I need to format decimals that are percise to the second place in the >following format: > >4.00 to 4 >4.50 to 4.5 >4.25 to 4.25 > >As you can see, I just want to drop the trailing zeros, and if necessary the >decimal. > >Thanks > >__

[PHP] Question about dopping zeros

2001-01-25 Thread Ethan Nelson
I need to format decimals that are percise to the second place in the following format: 4.00 to 4 4.50 to 4.5 4.25 to 4.25 As you can see, I just want to drop the trailing zeros, and if necessary the decimal. Thanks ___ Ethan Nelson, Systems Administrator Net

php-general@lists.php.net

2001-01-25 Thread Ethan Nelson
Hello, I've got 4.25, 4.50 and 4.00. I want to format them so that they give back 4.24, 4.5 and 4 I've already seen a pattern replacement that looks close to what I want, but not quite. Thanks ahead of time Ethan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMA