Re: [PHP] Creating Arrays

2001-04-12 Thread Jeffrey Greer

[posted and emailed]

On 12 Apr 2001 12:48:52 -0700, [EMAIL PROTECTED] (Jeffrey
Greer) wrote:

>
>// putting the values in an array is trivial, but you should do it
>like this
>// or you will confuse your numeric ids with the ids that php
>puts in an array automatically

Whoops.  I was wrong about array.  Keys are only filled in
automatically if you do this:
$my_array[] = 'some value';
now $my_array[0] = 'some value';

>--
>Jeff Greer
>- B.S. computer science - Univ. MO - Rolla
>- I do web hosting and development.  Details
>  at http://www.singlesconnection.org/services/

--
Jeff Greer
- B.S. computer science - Univ. MO - Rolla
- I do web hosting and development.  Details
  at http://www.singlesconnection.org/services/

-- 
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] Creating Arrays

2001-04-12 Thread Jeffrey Greer

[posted and emailed]

If you're looking for a simple way to work with databases I would use
phplib.  Phplib is a db abstraction layer which supports over a dozen
databases including mysql.  You can get the libraries at
http://phplib.netuse.de/download/phplib-7.2c.tar.gz   You will need to
use "db_mysql.inc"

I think using mysql specific functions is bad programming.  Database
specific calls should be abstracted out whenever possible.

To do something like you would want to do you would use code like
this:

// create the db object

$db = new DB_Sql;

// initialize db parameters

$this->Host = ;
$this->Database = ;
$this->User = ;
$this->Password = ;

// E.g. make a simple query

$db->query("select username, uid, security_level from access where
username='$f_username' and password='$f_password';");

$db->next_record();
$db_username = $db->f("username");
$si_userid = (int)($db->f("uid"));
$si_security_level = (int)($db->f("security_level"));

// putting the values in an array is trivial, but you should do it
like this
//  or you will confuse your numeric ids with the ids that php
puts in an array automatically

$my_array["username"] = $db_username;
$my_array["userid"] = $si_userid;


On 11 Apr 2001 09:09:09 -0700, [EMAIL PROTECTED] ("Ashley M.
Kirchner") wrote:

>
>I need to convert an MySQL result into an Array...somehow.  The
>query returns the following:
>
>++---+
>| ID |  Project  |
>++---+
>|  1 | Home  |
>|  2 | Work  |
>|  3 |   Family  |
>|  4 |Misc.  |
>|  . |  ...  |
>|  . |  ...  |
>++---+
>
>...which I want to convert into:
>
>Array(1 => "Home", 2 => "Work", 3 => "Family", 4 => Misc.", etc);
>
>What's the best way to do this.
>
>AMK4
>
>--
>W |
>  |  I haven't lost my mind; it's backed up on tape somewhere.
>  |
>  ~
>  Ashley M. Kirchner    .   303.442.6410 x130
>  SysAdmin / Websmith   . 800.441.3873 x130
>  Photo Craft Laboratories, Inc. .eFax 248.671.0909
>  http://www.pcraft.com  . 3550 Arapahoe Ave #6
>  .. .  .  . .   Boulder, CO 80303, USA

--
Jeff Greer
- B.S. computer science - Univ. MO - Rolla
- I do web hosting and development.  Details
  at http://www.singlesconnection.org/services/

-- 
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] __ $8/mo php hosting on 24/7, OC3+ web server ___

2001-04-11 Thread Jeffrey Greer

On 10 Apr 2001 19:08:03 -0700, [EMAIL PROTECTED] (Seung-woo Nam)
wrote:

>Jeffrey Greer wrote:
>> 
>> I'm not trying to provide the level of service of a large isp or even
>> get 100 customers.  I would just like to pay for my half of the web
>> portal.  I thought $8/mo for my service would be a good value for php
>> programmers who do not need a high level of security.
>> 
>> Would you say $8/mo is not a good value for the level of service I
>> will provide?
>> 
>> Web hosting is not my main business.  I'm a software developer.
>> 
>Well, then what's that all about 'hosting your business' thing on your
>website? And I wonder how will you possibly garantee the uptime you talk
>about on the site? $8 is a cheap price only if you can actually provide
>certain level of service. 
>
>Seung-woo Nam

This site has been up for about 4 years.  Downtime has been less than
a couple hours.  Crackers have infiltrated the system once, but didn't
get very far.  Why would you worry about uptime so much?  Is 1/2 per
year too much down time?

I will be applying security updates.  

--
Jeff Greer
- B.S. computer science - Univ. MO - Rolla
- I do web hosting and development.  Details
  at http://www.singlesconnection.org/services/

-- 
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] __ $8/mo php hosting on 24/7, OC3+ web server ___

2001-04-10 Thread Jeffrey Greer

I'm not trying to provide the level of service of a large isp or even
get 100 customers.  I would just like to pay for my half of the web
portal.  I thought $8/mo for my service would be a good value for php
programmers who do not need a high level of security.

Would you say $8/mo is not a good value for the level of service I
will provide?

Web hosting is not my main business.  I'm a software developer.


Earlier I wrote:
> I'm no security expert, but I can apply the most important patches.
> Yesterday I added mod_ssl to apache.

I didn't mean adding ssl is a patch.  I know how to apply patches to
source code and make other updates.


On 10 Apr 2001 15:12:59 -0700, [EMAIL PROTECTED] ("Phillip Bow") wrote:

>Hi,
>I don't mean to bash, but these sort of answers don't give me a lot of
>faith in the service you are starting.  At the very least I expect my
>service provider to provide competent answers to questions,  and to know the
>basics of security.
>

--
Jeff Greer
- B.S. computer science - Univ. MO - Rolla
- I do web hosting and development.  Details
  at http://www.singlesconnection.org/services/

-- 
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] __ $8/mo php hosting on 24/7, OC3+ web server ___

2001-04-10 Thread Jeffrey Greer

On 10 Apr 2001 12:08:01 -0700, [EMAIL PROTECTED] (Kurth Bemis)
wrote:

>At 06:15 PM 4/10/2001, Jason Lotito wrote:
>
>no no - its an OC3+ web server.must be an overseas brand..or 
>something..i've never heard of it.maybe its an SGI or something 
>they have wacky names for their stuff  :-)
>

It is at least OC3.  I forgot what comes next after OC3.

>no bandwidth sucking sites?  on an OC3...we're talking gigabits per sec 
>here.
>

You would max out the 100Mb/s network card first.

>no pron?  damn!  that puts me out!
>

I am a co-administrator.  I don't have a problem with porn sites, but
my partner would object.  But if you're really interested and you pay
us lots of money we can take care of you.

>what about security?  are they on top of the latest versions and 
>patches.i mean after all...it is REDHACK..
>

I'm no security expert, but I can apply the most important patches.
Yesterday I added mod_ssl to apache.

>spammers are funny people :-)
>
>~kurth
>

I'm not your average spammer.  I am a computer scientist dedicated to
the struggle against the fascist MS hegemony and all other fascist
corporations who try to control computer technology.  Support my
business and you'll be doing the world a favor. ;^)
--
Jeff Greer
- B.S. computer science - Univ. MO - Rolla
- I do web hosting and development.  Details
  at http://www.singlesconnection.org/services/

-- 
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] __ $8/mo php hosting on 24/7, OC3+ web server ___

2001-04-10 Thread Jeffrey Greer

Hello,

I am offering php hosting with features at a price no one else has, as
far as I know.  I'm not going to create a giant web hosting service.
I'm doing this to pay for my web portal.

- This web portal has been operated by the same person (my partner)
for over four years. I have been a co-administrator for about six
months.
- this is on a dedicated server with OC3+ connection, bandwidth is
guaranteed
- 24/7 uptime is guaranteed, last reboot was 2/12/01. This site will
not be down for more than one hour per year.
- The computer running this site is at a web server farm in a
protected building. Any hardware that fails is replaced immediately.
- no bandwidth sucking sites are allowed, e.g. porno, fileserver,
video, etc.
- php 4.02 is installed
- perl 5.0x and DBI are installed
- MySQL 3.23.32 and PostgreSQL 7.0.3 are set up
- You get a total of two databases
- You get five email addresses, telnet, ssh, and ftp access
- I will set up your domain name for an extra $15 or you can put your
site at www.singlesconnection.org/
- you get 40MB of hd space
- webserver is Apache 1.3.12 and Red Hat Linux with kernel 2.2.18
- hardware - Pentium II with 128MB ram, scsi hard drive


My name is Jeffrey Greer. You can mail me at
[EMAIL PROTECTED]
You can view more info at
http://www.singlesconnection.org/services/php_hosting.php

--
Jeff Greer
- B.S. computer science - Univ. MO - Rolla
- I do web hosting and development.  Details
  at http://www.singlesconnection.org/services/

-- 
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] $8/mo php hosting on 24/7, OC3+ web server

2001-04-10 Thread Jeffrey Greer

Hello,

I am offering php hosting with features at a price no one else has, as
far as I know.  I'm not going to create a giant web hosting service.
I'm doing this to pay for my web portal.

- This web portal has been operated by the same person (my partner)
for over four years. I have been a co-administrator for about six
months.
- this is on a dedicated server with OC3+ connection, bandwidth is
guaranteed
- 24/7 uptime is guaranteed, last reboot was 2/12/01. This site will
not be down for more than one hour per year.
- The computer running this site is at a web server farm in a
protected building. Any hardware that fails is replaced immediately.
- no bandwidth sucking sites are allowed, e.g. porno, fileserver,
video, etc.
- php 4.02 is installed
- perl 5.0x and DBI are installed
- MySQL 3.23.32 and PostgreSQL 7.0.3 are set up
- You get a total of two databases
- You get five email addresses, telnet, ssh, and ftp access
- I will set up your domain name for an extra $15 or you can put your
site at www.singlesconnection.org/
- you get 40MB of hd space
- webserver is Apache 1.3.12 and Red Hat Linux with kernel 2.2.18
- hardware - Pentium II with 128MB ram, scsi hard drive


My name is Jeffrey Greer. You can mail me at
[EMAIL PROTECTED]
You can view more info at
http://www.singlesconnection.org/services/php_hosting.php

--
Jeff Greer
- B.S. computer science - Univ. MO - Rolla
- web developer/software engineer,
dedicated to the struggle against the fascist
Microsoft hegemony

-- 
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] $8/mo php hosting on 24/7, OC3+ web server

2001-04-06 Thread Jeffrey Greer

Hello,

I am offering php hosting with features at a price no one else has, as
far as I know.  I'm not going to create a giant web hosting service.
I'm doing this to pay for my web portal.

- This web portal has been operated by the same person (my partner)
for over four years. I have been a co-administrator for about six
months.
- this is on a dedicated server with OC3+ connection, bandwidth is
guaranteed
- 24/7 uptime is guaranteed, last reboot was 2/12/01. This site will
not be down for more than one hour per year.
- The computer running this site is at a web server farm in a
protected building. Any hardware that fails is replaced immediately.
- no bandwidth sucking sites are allowed, e.g. porno, fileserver,
video, etc.
- php 4.02 is installed
- perl 5.0x and DBI are installed
- MySQL 3.23.32 and PostgreSQL 7.0.3 are set up
- You get a total of two databases
- You get five email addresses, telnet, ssh, and ftp access
- I will set up your domain name for an extra $15 or you can put your
site at www.singlesconnection.org/
- you get 40MB of hd space
- webserver is Apache 1.3.12 and Red Hat Linux with kernel 2.2.18
- hardware - Pentium II with 128MB ram, scsi hard drive


My name is Jeffrey Greer. You can mail me at
[EMAIL PROTECTED]
You can view more info at
http://www.singlesconnection.org/services/php_hosting.php

--
Jeff Greer
- B.S. computer science - Univ. MO - Rolla
- web developer/software engineer,
dedicated to the struggle against the fascist
Microsoft hegemony

-- 
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] form code for download - very powerful, object oriented

2001-03-12 Thread Jeffrey Greer

Hello,

I've created some form code.  It is not finished yet, but it is usable
and powerful.  I've looked at other form code, but none is object
oriented.  I've put this code up before it is finished so I can get
some suggestions for future development.

With this form class you can create your own inputs which inherit from
the base class input.  You could also add one more level of
inheritance for javascript functionality.  This form class also
supports style sheets.

Check it it.  I have a working example at:
http://www.showmethenet.com/~cleaner/code/code.php

The source is free.
--
Jeff Greer
- B.S. computer science - Univ. MO - Rolla
- web developer/software engineer,
dedicated to the struggle against the fascist
Microsoft hegemony

-- 
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] payment

2001-03-10 Thread Jeffrey Greer

On 9 Mar 2001 22:43:08 -0800, [EMAIL PROTECTED] (Aaron Tuller)
wrote:

>At 12:27 AM -0600 3/10/01, Jeffrey Greer wrote:
>>With paypal's business account there are no credit checks and the rate
>>is 2.2% for cc payments.
>

You bring up valid points, but I still think paypal could be good for
a lot of e-commerce sites.

>except you can't really integrate it into your web site.  

Have you looked at web accept?  I think this is pretty integrated.

>who knows 
>how long paypal will be around.  

With its low rates and ease of use I think paypal will be around
awhile.

>it shoes up as paypal on people's 
>credit card statements, that's not very proffesional.  

I don't think this would be bad in all situations.

>you can't do 
>recurrent billing.

That is a problem.

>  you are forcing your customer to give their info 
>to a third party.
>

I wouldn't think this is so bad.  Many web sites I go to use a third
party to do their payments.

>there's no time delay between the authorization of a card and the 
>capture of the funds which means you need to ship the product right 
>away, which sometimes, is impossible.

Why does this mean you have to ship the product right away.  Don't you
have at least 30 days, by law, to ship a product after you have
charged for it.

>
>paypal might be good for ebay.  it's not good for e-commerce sites. 
>I don't think so anyway.


Maybe paypal is not good for some sites, but I wouldn't say it is not
good for all e-commerce sites.  My web developer partner has been
using paypal for a year and he has had not trouble.  His site is at:

http://singles.showmethenet.com/

I'll email paypal and ask them if they plan to move to the level of
professional service offered by other companies.

--
Jeff Greer
- B.S. computer science - Univ. MO - Rolla
- web developer/software engineer,
dedicated to the struggle against the fascist
Microsoft hegemony

-- 
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] payment

2001-03-09 Thread Jeffrey Greer

On 9 Mar 2001 14:15:37 -0800, [EMAIL PROTECTED] (Rick St Jean)
wrote:

>How to people typically integrate payment processors with PHP?
>And what processors are used most often?  I know that a number
>of people are scrambling after cybercash died.  There is a site out
>there www.opay.com that says it supports payment processors
>on any platform, anyone ever use it?
>

Why hasn't any mentioned paypal.com.  Everything else is a joke.  What
company has a better deal than paypal?

With paypal's business account there are no credit checks and the rate
is 2.2% for cc payments.
--
Jeff Greer
- B.S. computer science - Univ. MO - Rolla
- web developer/software engineer,
dedicated to the struggle against the fascist
Microsoft hegemony

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