[PHP] Address Standardization

2001-11-20 Thread Jeff Lacy

Hello,

Does anyone have a good function or ideas about address standardization?  I
need some form of it in a web-app I am trying to write, but I don't know
where to begin.

Thanks,

Jeff


-- 
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] PHP, Excel, .CSV's, and Regular Expressions Help Needed!

2001-07-23 Thread Jeff Lacy

Hello Everyone,

A client of mine is working with excel, and I need to move the data from
excel to something php can deal with a little better.  Naturally, I figured
using .csv would be easiest, but I am running into several problems.I
can get around them, but I need a regular expression (and I am NOT good at
writing those).

I'm not quite sure how I should explain what the regular expression ought to
do, so I am giving an example of the data ought to look like in php (after
the regular expressions), and how it looks in the .csv.

NOTE: I am exploding the data, so all ,'s must be changed into COMMA's.

+---++
| php  | .cvs
|
+---++
piCOMMA 3.14,hey is for horsespi, 3.14,hey is for horses
byeCOMMA bye,ciaoCOMMA ciaobye, bye, ciao, ciao
good morning,I'm Bob good morning, I'm Bob
sleep is good,IceCOMMACOMMAsleep is good,Ice,,


If those four examples aren't enough, please let me know.  I am NOT on the
php mailing list, so PLEASE send messages to me ([EMAIL PROTECTED] AND
to [EMAIL PROTECTED]).

Thank you very much (in advance),

Jeff







-- 
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] PHP, Excel, CSV and Problems!

2001-07-21 Thread Jeff Lacy

Hello Everyone,

A client of mine is working with excel, and I need to move the data from
excel to something php can deal with a little better.  Naturally, I figured
using .csv would be easiest, but I am running into several problems.I
can get around them, but I need a regular expression (and I am NOT good at
writing those).

I'm not quite sure how I should explain what the regular expression ought to
do, so I am giving an example of the data ought to look like in php (after
the regular expressions), and how it looks in the .csv.

NOTE: I am exploding the data, so all ,'s must be changed into COMMA's.



| php
| .csv   |


heyaCOMMA there,hey is for horses  heya, there,hey is
for horses
byeCOMMA bye,ciaoCOMMA ciao  bye, bye, ciao, ciao
good morning,I'm Bob Villa   good
morning, I'm Bob Villa
sleep is good,IceCOMMA ThingyCOMMA  sleep is good,Ice, Thingy,


If those four examples aren't enough, please let me know.  I am NOT on the
php mailing list, so PLEASE send messages to me ([EMAIL PROTECTED] AND
to [EMAIL PROTECTED]).

Thank you very much (in advance),

Jeff


-- 
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] session_register in function

2001-02-24 Thread Jeff Lacy

I had this same exact problem just today.  It all stems from the variable
namespace, I think

A similar code 'snippet' is shown below.  I just made it up, but I think it
illustrates my point.

?php
session_start ();
function crud ($user, $password) {
session_register ('user');
session_register ('password');
$GLOBALS['user'] = $user;
global $password;
/* NOTE: $GLOBALS['varname'] = $value is the same as global $varname.
Either will work*/
}
echo "User is $user and password is $password";
?

Good luck with whatever you are doing,

Jeff Lacy


""Jon Rosenberg"" [EMAIL PROTECTED] wrote in message
000901c09e7d$16835420$0100a8c0@slinkyboi5">news:000901c09e7d$16835420$0100a8c0@slinkyboi5...
 The variable I register before the function becomes available in the
session
 to other pages...the variable I register inside the function are not
 accessible in the session to ohter pages.  Is this normal?  How can I work
 around this?  Thanks!  PHP4.0.4pl1 on Linux.

 sample code:

 ?
 session_Start();

 $foo = "bar";
 session_register("foo");

 function bob($user){
 $username = $user . "one";
 $username2 = $user . "two";
 session_register("username");
 session_register("username2");
 return true;
 }
 ?


 --
 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 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] % Help

2001-02-20 Thread Jeff Lacy

Hello Everyone,

Could someone please explain the whole % thing?  I sort of understand it,
but not quite.  My goal is to have a table, and have every row alternate
between 4 colors.  I can alternate sort of alternate between 3, but not
quite.  I have tried lots of different combinations, but I can't figure it
out.  Thank you very much!


Maybe there should be a better link to it in the manual.  The only one I
could find was at http://www.php.net/manual/en/ref.math.php, but it is far
from clear (to me at least).

Jeff Lacy

P.S.  Please email me directly, and respond to the list because I am not
really subscribed to it.  When I look at the newsgroup, it crashes Outlook
Express, and the list is VERY high volume (for me).  Thanks again.


-- 
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] Telnet with php?

2001-02-09 Thread Jeff Lacy

If you are just looking for something better than the ms telnet program,
look at http://www.chiark.greenend.org.uk/~sgtatham/putty/.  it is so much
better than telnet.  I don't know if that is what you mean, though.

Jeff



""Brandon Orther"" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Hello,

 Is there a way to telnet with php?  If so does anyone know a good place to
 find a tutorial on it?

 Thank you,

 
 Brandon Orther
 WebIntellects Design/Development Manager
 [EMAIL PROTECTED]
 800-994-6364
 www.webintellects.com
 


 --
 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 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] neat html output

2001-02-01 Thread Jeff Lacy

You can also use tabs (\t).

This is an example using tabs and newlines:
echo "table\ntr\n\ttdHello There/td\n\ttdHow are
you/td\n/tr/table";

Note: You must use quotes because ticks don't work.

Jeff




""Mark"" [EMAIL PROTECTED] wrote in message
9597gb$4el$[EMAIL PROTECTED]">news:9597gb$4el$[EMAIL PROTECTED]...
 I'd like my html output to be neatly written, including newlines is
helpful
 but does anyone know of a better way to output newlines than appending
 ."\n"; to every echo statement.

 -Mark




 --
 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 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 Editors

2001-01-21 Thread Jeff Lacy

Textpad is pretty good on Micro$ucks products.  It has a free evaluation
which isn't very bothersome (unlike others...).  You can examine it as
www.textpad.com.


""Karl J. Stubsjoen"" [EMAIL PROTECTED] wrote in message
003701c0815f$b6f80e40$0afc020a@kstubsjoen">news:003701c0815f$b6f80e40$0afc020a@kstubsjoen...
 So what editor is recommended?  I'm a little familiar with Emacs (kinda
 cool, but I'm use to keywords and such being colored - as in Interdev).

 Thanks!


 --
 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 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] below10host.com as webhost?

2001-01-19 Thread Jeff Lacy

Okay.  I'll tell you a little more information.  The 'friend' of mine is
actually my local church.  I need ~20 email accounts because there should be
15 staff people (who will want/need email) and 5 for the future.  Since it
is a church, they don't have a lot of money to spend on stuff (i.e. a
website).  Their current host is at www.poconos.net, and the website of my
church is www.st-thomas-aquinas.com.  Poconos charges 19.95 a month, and I
was hoping they could get something less than that.

Does anyone know how to find out how much bandwidth my/my church's website
it getting?  Analog is installed, if that would help anyone figure something
out.  The stat's page is at www.st-thomas-aquinas.com/analog.html.

Right now I am thinking of going with CIS Management as the web host as they
seem to offer everything I need.  I am a little concerned about reliability
and stuff like that, so if someone with experience with them could say
something...

P.S. -- Could anyone give me advice/critics on the church's web site
(www.st-thomas-aquinas.com)?  The site really isn't much, but, not to
rationalize or anything, that isn't all my fault.  I am not a graphics
designer.  A few pics would probably make it look infinitely nicer, but I
don't know how to do them.

Thanks,

Jeff



""Jeff Lacy"" [EMAIL PROTECTED] wrote in message
948icc$9vs$[EMAIL PROTECTED]">news:948icc$9vs$[EMAIL PROTECTED]...
 I'm sorry, but why do you say webservpro doesn't make a lot of money?

 I am really looking for a good host for a 'friend' of mine.   He has a
small
 website (20mb) and I don't think it gets too many hits.  He doesn't have
 very much money to spend on a web host, so it must be something cheap.  It
 needs php (4 would be better), and at least 20 email accounts.  A mysql
 database would be really, really good.  Ftp access (to upload pages) is a
 must, but telnet/ssh is always a plus.  The host need to allow domain
names.
 I think this is about what my friend is looking for.  Does anyone have any
 ideas (besides below10host.com or phpwebhosting.com)?  Thanks again :-)

 Jeff



 "Egan" [EMAIL PROTECTED] wrote in message
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  On Thu, 18 Jan 2001 01:54:28 -0600, "Jeff Lacy"
  [EMAIL PROTECTED] wrote:
 
  anyone had thought/opinions on below10host.com as a web host?
 
  I'm speaking as a budding competitor, so keep that in mind. :-)
 
  According to their web page, below10host.com gives you 6GB per month
  for $9.95.  By way of comparison, webservpro charges $49.95 per month
  for the same 6GB.
 
  My analysis of costs tells me that at $49.95 for 6GB, webservpro does
  not have a large margin of profit in their price.  How can any hosting
  company sell the same 6GB per month for $9.95 and make enough profit
  to stay in business?
 
  At such a low price, I don't know how it's possible, unless a large
  majority of their customers consume so little of their quota so as to
  offset the loss incurred from customers who consume it all.
 
  6GB per month is a fairly active site.  If you really have that much
  traffic, to me at least, $49.95 would seem affordable.  OTOH, if you
  have much less traffic, you could choose a lower priced plan.
 
  I believe in the adage of getting what you pay for.  Value is a
  balance between low price on the one hand, vs. high quality on the
  other.  The lowest price is not necessarily the best value.
 
  Egan
 
 
 
 
  --
  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 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 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]