Re: [PHP] Simple Question, I think

2001-10-01 Thread Kath

Perhaps check the URL and direct as such using header();.  Use phpinfo(); to
find what var holds the current URL.

- k



- Original Message -
From: Ratfish [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, October 01, 2001 10:25 PM
Subject: [PHP] Simple Question, I think


 All I want to do is what an ASP page I have is doing.

 I just want to host multiple sites with one page like the one in the
article
 below until I can get my head around the real way of doing it.

 http://www.zdnet.com/devhead/stories/articles/0,4413,2418330,00.html

 Surely there is a PHP equivalent?

 Thanks
 Andrew

 --
 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] Re: PHPEd

2001-09-30 Thread Kath

I'm looking to support the company though and my boss said he would buy
software for us.

- k

- Original Message -
From: Henrik Hansen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, September 30, 2001 6:08 AM
Subject: [PHP] Re: PHPEd


 [EMAIL PROTECTED] (Kath) wrote:

   Is it worth picking up the retail NuSphere copy of PHPEd?
  
   I'm using the 1.75 Alpha now and enjoy it a lot over what I was using
   prior (Dreamweaver).
  
   Only peeve is what seems like a memory leak (PHPEd will crash after a
   bit of very minor web browser/message client/email use) in 1.75.  Have
   issues like this been resolved?

 get the latest free preview from phped.com version 2.96.1 is MUCH
 better than 1.75 and it's still free.

 --
 Henrik Hansen

 --
 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] Troublesome complex fetching from database

2001-09-30 Thread Kath

Quite an interesting quandry I have.

What I have is this:

Table schooltypes:
(typeid is a unique# iding the type, schooltypes is the type of school, say
Elementary School or High School)

| typeid | schooltypes |

Table schools:
(typeid is the type the school falls under, schoolid is the unique# iding
the school, schoolname is the general name like Park Shore High School)

| typeid | schoolid | schoolname |

Table teachers:
(tuserid is their unique id, salutation is the Mr/Mrs/Miss/Ms/Dr, last name
is well, duh :))

| tuserid | salutation | last name |

Table teachers_schools:
(tuserid is the teacher's id, next to the school they are assigned to.  Note
the possiblity for a teacher assigned to more than one school (hello,
cutbacks and skeleton budgets)).

| tuserid | schoolid |

What I need to be able to do is list all this information as such:

School type:

+ School 1
- Teacher and their Teacher ID
- Teacher and their Teacher ID

+ School 2
- Teacher and their Teacher ID
- Teacher and their Teacher ID
- Teacher and their Teacher ID

+ School 3
- Teacher and their Teacher ID
- Teacher and their Teacher ID

Another School Type:

+ School 5
- Teacher and their Teacher ID
- Teacher and their Teacher ID

+ School 7
- Teacher and their Teacher ID
- Teacher and their Teacher ID

Currently, I AM able to list the school type and the school correctly.
However, when I come to listing the teachers in the school, every teacher is
listed under every school, some more than one time.

Any ideas/code snips on how to do this?

In what direction should be I solving this?

Going from type-school-teachers assigned-teacher info?

Or teachers assigned-teacher info-schools-type?

Right now I am doing the first, sorta.

- k


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

2001-09-29 Thread Kath

Is it worth picking up the retail NuSphere copy of PHPEd?

I'm using the 1.75 Alpha now and enjoy it a lot over what I was using prior 
(Dreamweaver).

Only peeve is what seems like a memory leak (PHPEd will crash after a bit of very 
minor web browser/message client/email use) in 1.75.  Have issues like this been 
resolved?

- k



Re: [PHP] IMAP - create user?

2001-09-23 Thread Kath

http://phpclasses.upperdesign.com/browse.html/file/766

Try that class.

- k



- Original Message -
From: Tom Malone [EMAIL PROTECTED]
To: PHP Users [EMAIL PROTECTED]
Sent: Sunday, September 23, 2001 10:07 PM
Subject: [PHP] IMAP - create user?


 Is there a way to create a new user with an email address on my mail
server
 (for a web mail app i'm writing) using an IMAP or some other PHP function?

 Tom Malone
 Web Designer
 http://www.tom-malone.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]




[PHP] User's editting profiles

2001-09-22 Thread Kath

I have some user profiles and I'd like them to be able to update them as they see fit 
(Change their email, password etc etc).

However, their options are rather long and instead of having these turkeys have to 
type in stuff into 8 form fields, I'd like to display the current data in those 
fields and then let them just change what needs to be done.

What is the best way to do this?

My only problem is propogating all their data through the HTML form (I can manage 
doing one or two fields, but doing 15 is rather not fun) from the database (two 
different tables too, including checkboxes).

- k



Re: [PHP] randomly picking a variable from an array

2001-09-07 Thread Kath

Example if you do know the number of items in the array:
/* Begin */
$choice = rand(1, 6);

echo $array[$choice];
/* End */

That will randomly pick something from 1-6 in the array.

If you do not know the number of things in the array (say it is off a form
or something):

/* Begin */
$numinarray = count($array);

$choice = rand(1, $numinarray);

echo $array[$choice];
/* End */

HTH!

- k

- Original Message -
From: Joseph Bannon [EMAIL PROTECTED]
To: PHP (E-mail) [EMAIL PROTECTED]
Sent: Friday, September 07, 2001 3:08 PM
Subject: [PHP] randomly picking a variable from an array


 How do you randomly picking a variable from an array with PHP?

 Thanks,

 Joseph




 PS. Thanks to those who helped me with GD. If you go to my site, you'll
see
 the new counter I created at the top of the page.

 http://www.collegesucks.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] randomly picking a variable from an array

2001-09-07 Thread Kath

Which is more resource attentive however (Random question, not necessarily
pertaining to this)?

Making MySQL do extra work or PHP do some extra work?

- k

- Original Message -
From: King, Justin [EMAIL PROTECTED]
To: Rasmus Lerdorf [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, September 07, 2001 4:19 PM
Subject: RE: [PHP] randomly picking a variable from an array


But that would make sense rasmus... and I don't like to make sense =)...
if its an array filled from a database, randomizing on the database
level would still be better though.

--Justin King, School District of Superior Web Coordinator
(www.superior.k12.wi.us)


-Original Message-
From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 07, 2001 3:13 PM
To: King, Justin
Cc: Joseph Bannon; [EMAIL PROTECTED]
Subject: RE: [PHP] randomly picking a variable from an array

I'd say the easiest way would be to use array_rand()
See http://php.net/array_rand

-Rasmus

On Fri, 7 Sep 2001, King, Justin wrote:

 The easiest way I can think of would be to get a random number based
on
 the size of an array.  If you're querying your database and filling an
 array with all images, just use the database's random routine instead.
 (I.E. SELECT quote,author from randomQuote ORDER by RAND() LIMIT 1
in
 mysql)

 If this isn't the case, something like this should work..

   srand(time());
   $random=rand(0,sizeof($myVar)-1);

 Hope I could be of some help...

 --Justin King, School District of Superior Web Coordinator
 (www.superior.k12.wi.us)


 -Original Message-
 From: Joseph Bannon [mailto:[EMAIL PROTECTED]]
 Sent: Friday, September 07, 2001 2:08 PM
 To: PHP (E-mail)
 Subject: [PHP] randomly picking a variable from an array

 How do you randomly picking a variable from an array with PHP?

 Thanks,

 Joseph




 PS. Thanks to those who helped me with GD. If you go to my site,
you'll
 see
 the new counter I created at the top of the page.

 http://www.collegesucks.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]




[PHP] Best Methods for Storing Checkbox Information in a MySQL Database

2001-09-06 Thread Kath

I have some checkboxes on a form.

Now I figured out how to store them in a database sandwiched together (like
thing1,thing2,thing3,thing4).

However, what is the best method for storing them each in an individual
field.

This is what I'd really like:

| userid | otherthing |
|1 |azu   |
|1 |cde   |
|1 |foo|
|2 |bar|

Would it be something like:

Count the number of things, then do

for($x = 0, $x = $numberofthings; $x++) {

$sql = INSERT INTO table (userid, otherthing) VALUES ('$userid',
'$things[$x]');

$result = mysql_query($sql);

if (!$result) { blaherrorchecking(); }

}

What do you all think of that?  Is it a good solution?  Lousy?  A hack job?
Is there a better way?

- k


-- 
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] Sending Broadcast Email - will a large loop cause a crash?

2001-09-06 Thread Kath

Whats your time frame for deployment of the email?

You might want to stagnate it out... like loop through 100, pause for 10
secs, do the next 100, pause, repeat.  Maybe longer if you could.

You could always have it record the number, stop it and adjust higher/lower
as required.

Also, make sure that you are able to tell what emails are kicked back and
logged as not being received (User not found, other kind of error in
sending).

Please let us know what happens, it would be excellent reference.

- k

- Original Message -
From: Fotwun [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, September 06, 2001 7:16 PM
Subject: [PHP] Sending Broadcast Email - will a large loop cause a crash?


 Hi,

 I need to send a broadcast email to our customers (about 3,000 emails).
The
 data is being drawn for the DB, and will be personalized. Obviously, the
 code to do this is only a few lines. However, I am concerned with the load
 it will put on the system trying to loop through and mail() 3,000+ times.
 Because of the overhead I anticipate this will cause the server, I am
 planning to do it late in the evening.

 My concern is this... will such a loop calling mail() cause PHP/Apache/the
 box/etc to crash under normal circumstances? We have a pretty beefy box, I
 just have never tried broadcasting through PHP. Also, if there is any
 reasonable chance for such a failure, is it possible to put timed pauses
in,
 say half a second or so before it continues the loop. I've never heard of
 inserting pauses into the execution of PHP code, not sure if its possible.
 If it were, I would think this could combat some of the load, and prevent
 the bottleneck from building backlog until failure.

 Who knows, maybe this type of routine won't even make my box flinch
(P3-833,
 FreeBSD, 256 megs), that's why I'm asking ahead of time. I'd hate to see a
 crash, mainly because I'll have no idea where it left off, and will end up
 sending 2 or more emails to some people if I have to run it more than
once.

 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]




[PHP] Databases, arrays and woes

2001-08-30 Thread Kath

I have a MySQL table which stores information like this:

| Type | Place Name | Place Abbrv |

and lets say I have data in the table like:

Example #1:
| Office | Bill's Office | bo |
| Store | Millcreek Supply | mcs |
| Office | Harry's Office | ho |
| Store | Sam's Discount Taxidermy | sdt |
| Shipping | East Coast Distribution Facility | ecdf |

What I'd like to do is be able to have PHP grab the information out of the
database and sort like this on a webpage:

Type Name #1:
- Place Name (with hyperlink using the abbrv)
- Place Name (with hyperlink using the abbrv)

Type Name #2:
- Place Name (with hyperlink using the abbrv)
- Place Name (with hyperlink using the abbrv)

For a better illustration, using the information from Example #1:

Example #2:

Office
- Bill's Office  (link using bo)
- Harry's Office (link using ho)

Store
- Millcreek Supply (link using mcs)
- Sam's Discount Taxidermy (link using sdt)

Shipping
- East Coast Distribution Facility (link using ecdf)

So basically it has to group the common Type fields together and list them
together and make a hyperlink.

What is the best way to do this?  I've tried arrays, different MySQL calls,
voodoo, ouija boards and drinking, but nothing has gotten me what I need.

btw, the information in Type is not a set number.  There could be 2 or 200
different Type. (Otherwise this would be much easier and I might not have
a hangover from aforementioned drinking ;p )

- k


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

2001-08-08 Thread kath

I knew it was a joke yeah... really... I did ;)

- k

- Original Message -
From: Ryan Fischer [EMAIL PROTECTED]
To: kath [EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Tuesday, August 07, 2001 11:20 PM
Subject: Re: [PHP] close browser


 You wrote:
   You wrote:
Can anybody tell me what the code to close the browser is?
  
   ALT+F4.  ;)
  PHP cannot execute client side actions, afaik.
 
  - k

 'Twas a joke.  See the winky smilie?  You may all laugh now.  ;)

 --
  -Ryan :: ICQ - 595003 :: GigaBoard - http://www.gigaboard.net/



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

2001-08-07 Thread kath

PHP cannot execute client side actions, afaik.

- k

- Original Message - 
From: Ryan Fischer [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, August 07, 2001 10:39 PM
Subject: Re: [PHP] close browser


 You wrote:
  Can anybody tell me what the code to close the browser is?
 
 ALT+F4.  ;)
 
 -- 
  -Ryan :: ICQ - 595003 :: GigaBoard - http://www.gigaboard.net/
 
 
 
 -- 
 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] Spot the difference?

2001-08-04 Thread kath

I think the response to this will probably be equally informative and
hilarious.

- k

- Original Message -
From: Kyle Smith [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 02, 2001 7:34 PM
Subject: [PHP] Spot the difference?


Whats the difference between ASP and PHP cause ASP has gotta have something
good about it cause microsoft uses it!


-lk6-
http://www.StupeedStudios.f2s.com
Home of the burning lego man!

ICQ: 115852509
MSN: [EMAIL PROTECTED]
AIM: legokiller666





-- 
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] WSIWYG Editor using PHP?

2001-07-25 Thread kath

I use Quanta.  Sorry, don't have a link at the moment.  Try on freshmeat.net 
or sourceforge

- k

On Tuesday 24 July 2001 11:27 pm, Chip wrote:
 Joseph Blythe wrote:
  Try PHP Coder Pro! http://www.phpide.de

 Too bad it's a winblows-only app.  :-(

 Chip

  Regards,
 
  Joseph.
 
  -Original Message-
  From: Bob Clingan [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, 25 July 2001 9:18 AM
  To: [EMAIL PROTECTED]
  Subject: [PHP] WSIWYG Editor using PHP?
 
  Does anyone know of any WSIWYG editors that you can plug into a site
  using PHP.
 
  --
  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]

 --
 Regards,

 --
 Chip Wiegand
 CRW Computer Services
 www.wiegand.org
 [EMAIL PROTECTED]
 --
   Web page design
 Consulting
  PC Repair
 --

-- 
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] IMAP and Attachments

2001-07-23 Thread kath

Hiya all.

Doing the usual web based mail system.  

How can I check to see if a email has an attachment?  Then download it if the 
user clicks on it?

Preferably a class, documentation or something similar, if you have it.

Please don't link an RFC, I hate RFCs, it is like reading Aramaic upside, 
backwards and on a webpage with some horribly tiled background and yellow 
color font.

- k

-- 
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] Prevent user to close web browser

2001-07-19 Thread kath

Not with PHP.  Maybe some Javascript could.

But why would you want this?  Planning some infinite spawning pop up website? 
=)

- k

On Thursday 19 July 2001 08:28 am, you wrote:
 Hello,

 I need to prevent user to close the web browser on close button or by
 pressing ALT+F4.

 Is this possible?

 Thanks,
 Mihailo.


 _
 Do You Yahoo!?
 Get your free @yahoo.com address at http://mail.yahoo.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]




Re: [PHP] webmail

2001-07-09 Thread kath

Original message:
  I am trying to write a web-based email client for my site (or are there
  any samples) using php4 and POP3.

Reply:
 The one which I use which matches your requirements (non-PHP, perl-module
 driven) is NS WebMail,

He just said he was using PHP4, not Perl :)

- k

- Original Message -
From: Max Pyziur [EMAIL PROTECTED]
To: Adrian D'Costa [EMAIL PROTECTED]
Cc: php general list [EMAIL PROTECTED]
Sent: Monday, July 09, 2001 7:07 AM
Subject: Re: [PHP] webmail



 On Mon, 9 Jul 2001, Adrian D'Costa wrote:

  Hi,
 
  I am trying to write a web-based email client for my site (or are there
  any samples) using php4 and POP3.
 
  I have a book on professional PHP but that sample uses IMAP which is not
  installed on my system.
 
  Could anyone tell me where I can get some samples or how to proceed with
  this project.

 There are several good sources on the web which carry information about
 ongoing opensource projects.  To cite three:
 http://www.freshmeat.net/
 http://php.resourceindex.com/
 http://sourceforge.net/

 The one which I use which matches your requirements (non-PHP, perl-module
 driven) is NS WebMail, one which I use and gives basic webmail
 capablities, though missing some desired functionality (sort on date,
 sender, or subject; default sort is reverse chrono).  It's relatively easy
 to install.
 http://nikosoft.free.fr/nswm.htm

 For freshmeat's listing check here:
 http://freshmeat.net/search/?q=webmail

  TIA
 
  Adrian


 Max Pyziur BRAMA - Gateway Ukraine
 [EMAIL PROTECTED]  http://www.brama.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] Next Book

2001-07-08 Thread kath

 Web Application Development for PHP 4.0 (Ratschiller, Gerken)

I'm reading through this one now, I like it.

- k

- Original Message -
From: Chris Lambert - WhiteCrown Networks [EMAIL PROTECTED]
To: Chris Lott [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Sunday, July 08, 2001 4:31 AM
Subject: Re: [PHP] Next Book


 Good books for advanced topics are:
 PHP4 Developer's Guide (Schwendiman)
 PHP Developer's Cookbook (Hughes)
 Web Application Development for PHP 4.0 (Ratschiller, Gerken)

 And for MySQL,
 Surprisingly, O'Reilly's version is weak, but Dubois' MySQL for New
Riders
 is very comprehensive. NuSphere hired Dubois as a tech writer for them a
few
 months back, too... :-)

 /* Chris Lambert, CTO - [EMAIL PROTECTED]
 WhiteCrown Networks - More Than White Hats
 Web Application Security - www.whitecrown.net
 */

 - Original Message -
 From: Chris Lott [EMAIL PROTECTED]
 To: Php-General (E-mail) [EMAIL PROTECTED]
 Sent: Sunday, July 08, 2001 2:23 AM
 Subject: [PHP] Next Book


 | Finished with Beginning PHP from Wrox. Am eyeing Advanced PHP from Wrox.
 | Other good books I should think about? Recommendations? Reviews? I know
 the
 | PHP FAQ has pointers to books, but I am looking for recommendations on
 what
 | I SHOULD get as I transition from a Cold Fusion person to a PHP devotee
:)
 |
 | Also looking for a good book on MySQL. The MySQL/MSQL book from O'Reilly
 is
 | pretty dated.
 |
 | c
 |
 | --
 | 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]




Re: [PHP] I have a problem with phpMySqlAdmin

2001-05-17 Thread Kath

Do you have extension=mysql.so in your php.ini?

- Kath

- Original Message -
From: John Monfort [EMAIL PROTECTED]
To: Enrique Ivorra Gómez [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, May 16, 2001 9:05 AM
Subject: Re: [PHP] I have a problem with phpMySqlAdmin




  Is your MySQl server on?

 What platform are you on?

 Also, make sure your username, password, and database name, are correct.

__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
The world is waiting, are you ready?
-+___+-

On Wed, 16 May 2001, [iso-8859-1] Enrique Ivorra Gómez wrote:

 Sorry, but I dont speak Englich very well.

 I have Apache, PHP and MYSQL which work well but I want to use
phpMySQLAdmin
 and I have an error:


 Fatal error: Call to undefined function: mysql_connect() in lib.inc.php on
 line 255

 Can anybody help me?

 Bye!


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




Re: [PHP] HallMark uses PHP!!!!

2001-05-14 Thread Kath

http://www.bbspot.com/News/2000/6/php_suspend.html

- Kath

- Original Message -
From: Joseph Blythe [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, May 14, 2001 12:30 AM
Subject: Re: [PHP] HallMark uses PHP


 [EMAIL PROTECTED] wrote:

  I was just looking at Hallmark Channels' website, and noticed them to be
using PHP, wow, PHP has rocketed to something, eh.

 Yes, when I first started using php nearly 2 years ago not many people
 even knew what it was (most thought it was some form of a drug). Now
 days you are hard pressed not to at least come across one site using it
 during a normal web browsing session.

 Long Live PHP,

 Joseph





 --
 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] What's wrong?

2001-05-01 Thread Kath

Don't you need a $ before acao on the line:
if (acao == 1) {

?

- Kath


- Original Message -
From: Rafael Faria [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, May 01, 2001 6:08 PM
Subject: [PHP] What's wrong?




 What's wrong with my php file?
 
 ?
 if (acao == 1) {
 if (!copy($MyFile,c:\\temp\\$MyFile_name)) {
  echo can't copy;
  exit;
  }
 }
 ?

 html
 head
 title/title
 /head

 body bgcolor=#FF text=#00 link=#00 alink=#00
vlink=#00
 marginwidth=10 marginheight=10 topmargin=10 leftmargin=10

 form action=teste.php method=post name=teste
ENCTYPE=multipart/form-data
 input type=hidden name=acao value=1
 table width=0 cellpadding=0 cellspacing=0 border=0
  tr bgcolor=#DD
td width=20%font face=verdana size=2bFile/b/font/td
tdinput type=file name=MyFile size=40/td
  /tr
 /table
 input type=submit name=submit value=test
 /form

 /body
 /html
 --
-
 ---

 [ r a f a e l   f a r i a] _
 [EMAIL PROTECTED]
 WebMaster Universo Online - http://www.uol.com.br
 Phone # +55 11 3038-8665


 --
 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.INI

2001-04-28 Thread Kath

Not with Linux, in my experience at least.

- Kath

- Original Message -
From: Manesh [EMAIL PROTECTED]
To: Taylor, Stewart [EMAIL PROTECTED]; 'Johannes
Rumpf' [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Saturday, April 28, 2001 8:56 AM
Subject: [PHP] PHP.INI


 Do u have to resart ur comp after you change ur PHP.INI

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

2001-04-28 Thread Kath

I would doubt it if they are in America.  But they are in England so it is
questionable.  If they were in America, they are protected by parody laws.

AOL tried to shutdown www.aolsucks.com and lost.  I think the only thing
they were able to do is to stop them from using directly taken AOL
copyrights.

Besides, as someone said, it is humor.  And Jason said Mockery is the
biggest form of flattery.

I don't think people are gonna goto phpsucks.net and seriously not use PHP
because of it.  I mean people still use AOL :/

- Kath


- Original Message -
From: Jack Lauman [EMAIL PROTECTED]
To: idban secandri [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Saturday, April 28, 2001 10:15 PM
Subject: Re: [PHP] php suck


 After 25 years in the advertising business, I'd say the PHP Group has
 a hell of a good copyright infringement and defamation case here.

 The bums are in Manchester, England...

 Jack

 idban secandri wrote:
 
  i found this when surfing this morning
  http://www.phpsucks.net/
 
  --
  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]




Re: [PHP] PHP Book?

2001-04-27 Thread Kath

I agree 100% with Professional PHP Programming.  It was my first book.

Also php fast and easy web development by Julie Meloni.

- Kath

- Original Message -
From: Angerer, Chad [EMAIL PROTECTED]
To: 'Hamed Nik' [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Friday, April 27, 2001 9:21 AM
Subject: RE: [PHP] PHP Book?


 Professional PHP by WROX.  Great book.  It provides you with some real
world
 examples.

 Chad Angerer
 HTML Programmer
 Internet Broadcasting Systems
 651.365.4006


 -Original Message-
 From: Hamed Nik [mailto:[EMAIL PROTECTED]]
 Sent: Friday, April 27, 2001 8:10 AM
 To: [EMAIL PROTECTED]
 Subject: [PHP] PHP Book?


 Hey everyone...

 I've been programming in perl for about 3 years now, i have installed php
 and have been working on it for about three weeks. I started by converting
 some of the programs I've written in Perl to PHP it seems its pretty
 similar to Perl and not very hard to learn for a perl programmer... but i
 need some reference book with some practical examples so i could work
 with... and probably something that gives me ideas on different types of
 programs and things that i could do in PHP... something that covers
 everything in PHP... and is NOT copied from the manual! :))

 I am sure most of you in this group have got some sort of a PHP book...
can
 you please tell me out of your experience which ones are good for me to
buy?

 Regards
 Hamed Nik




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




[PHP] PHP4, .php3 files and Apache

2001-04-27 Thread Kath

I run a Debian 2.2 server with Apache (from stable) and PHP4 (from stable).

I downloaded phpChat in order to setup a chat center on the website.  However, the 
files are named .php3.  

At first I thought I could be cute and just rename the files to .php, as .php is what 
we name our files on our web server.  However, I realized that all the links would not 
work, as the links and includes()/requires() in the files would call to the wrong name.

Now is there anyway to make Apache run a .php3 file with PHP4?  I should just need to 
add that extension somewhere in Apache (srm.conf), but I'm not familiar with how.

- Kath



Re: [PHP] PHP4, .php3 files and Apache

2001-04-27 Thread Kath

Thank you!  I wasn't doing the application/x-httpd-php part right!

Thanks!

- Kath



- Original Message - 
From: Philip Olson [EMAIL PROTECTED]
To: Kath [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, April 27, 2001 2:37 PM
Subject: Re: [PHP] PHP4, .php3 files and Apache


 
 do something similar to :
 
   AddType application/x-httpd-php .php .php3 .html .phtml .parsemephp
 
 
 regards,
 philip
 
 
 On Fri, 27 Apr 2001, Kath wrote:
 
  I run a Debian 2.2 server with Apache (from stable) and PHP4 (from
  stable).
  
  I downloaded phpChat in order to setup a chat center on the website.  
  However, the files are named .php3.
  
  At first I thought I could be cute and just rename the files to .php,
  as .php is what we name our files on our web server.  However, I
  realized that all the links would not work, as the links and
  includes()/requires() in the files would call to the wrong name.
  
  Now is there anyway to make Apache run a .php3 file with PHP4?  I
  should just need to add that extension somewhere in Apache (srm.conf),
  but I'm not familiar with how.
  
  - Kath
  
 
 
 -- 
 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] Is PHP code software?

2001-04-27 Thread Kath

Food for thought: Is PHP code software?

- Kath



Re: [PHP] Is PHP code software?

2001-04-27 Thread Kath

What makes something done for free (Say Linux or something infinitely
smaller, the forums I am writing) not software?

Isn't freeware a form of software?

- Kath

- Original Message -
From: Chris Anderson [EMAIL PROTECTED]
To: Kath [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Friday, April 27, 2001 11:13 AM
Subject: Re: [PHP] Is PHP code software?


 If it is being sold for profit it is.

 Chris Anderson   aka Null
 
 PHP Developer / Nulltech
 PHP-GTK Tester / gtk.php.net
 STA Administrator / www.stronger.org
 DOD Co-Owner / www.dayofdefeat.com

 - Original Message -
 From: Kath [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, April 27, 2001 4:29 PM
 Subject: [PHP] Is PHP code software?


  Food for thought: Is PHP code software?
 
  - Kath
 


 --
 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] Can I install Lihnux on My Windows 95 machine ?

2001-04-24 Thread Kath

This isn't really the list for this.

Read the docs here:

http://www.linuxdoc.org/HOWTO/Linux+Windows-HOWTO/index.html

http://www.linuxdoc.org/HOWTO/mini/Linux+Win95/index.html

You also might want to read the NHFs here:
http://www.linuxnewbie.org/nhf/intel/index.html

- Kath

- Original Message -
From: Manisha [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, April 24, 2001 9:10 PM
Subject: [PHP] Can I install Lihnux on My Windows 95 machine ?


 Hi all,

 I am having my own personal computer running on windows 95. I have C / D /
 E / F / G drives with FAT 32 file system with lot of information on it. I
 can format one drive out of these.

 Can I install Linux on it  ? (i.e. format F:\ and load Linux). Later on I
 want to load Apache also on it.

 Is it feasible ? Any information about this on web ? If I format one drive
 and load Linux whether other drive info will get affected ?

 manisha




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

2001-04-19 Thread Kath

In the future, do not post your mysql password on the list

Just a little piece of advice ;)

Also, try checking the online errata for the book (You didn't mention which
book so I can't point you in the right direction).

- Kath



- Original Message -
From: "Navid Yar" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, April 19, 2001 4:59 PM
Subject: [PHP] Authentication


 Hello,

 I'm somewhat new to PHP. I'm having problems with a script and I don't
know
 why. It is from a book, yet it does not work for some reason. Both Apache
 and MySQL are on and are working fine on my system. The code deals with
 creating tables within a database (the database already exists. The error
is
 that it could connect to the database, but couldn't create the table
within
 the specified DB. Below are two PHP files that work together for this
 specific project. Any help with this is much appreciated. Here are the
 scripts:

 Script #1


 ?php

 // Check that the user entered the info. If not then direct them back to
the
 form

 if ((!$table_name) || (!$num_fields)) {
 header ("Location:

http://localhost/examples/dynamic/authentication/auth_app/show_createtable.h
 tml");
 exit;
 }

 $form_block =  "form method=\"post\" action=\"do_createtable.php\"
 input type=\"hidden\" name=\"table_name\"
 value=\"$table_name\"
 table cellspacing=\"5\" cellpadding=\"5\"
 tr
 thFIELD NAME/ththFIELD TYPE/ththFIELD
 LENGTH/th/tr
 ";

 for ($i = 0; $i  $num_fields; $i++) {

 $form_block .= "tr
 td align=\"center\"input type=\"text\"
 name=\"field_name[]\" size=\"30\"/td

 td align=\"center\"
 select name=\"field_type[]\"
 option value=\"char\"char/option
 option value=\"date\"date/option
 option value=\"float\"float/option
 option value=\"int\"int/option
 option value=\"text\"text/option
 option value=\"varchar\"varchar/option
 /select
 /td

 td align=\"center\"input type=\"text\"
 name=\"field_length[]\" size=\"5\"/td
 ";
 }

 $form_block .= "tr
 td align=\"center\" colspan=\"3\"input type=\"submit\"
 value=\"Create Table\"/td
 /tr
 /table
 /form
 ";
 ?

 html
 head
 titleCreate a Database Table: Step 2/title
 /head
 body

 h1Define fields for ?php echo "$table_name"; ?/h1
 ?php echo "$form_block"; ?

 /body
 /html





 Script #2


 ?php

 $db_name="testDB";

 $connection = @mysql_connect("localhost", "afghan", "office939") or
 die ("Couldn't connect.");

 $db = @mysql_select_db($db_name, $connection)
 or die("Couldn't select database.");

 $sql = "CREATE TABLE $table_name (";

 for ($i = 0; $i  count($field_name); $i++) {
 $sql .= "$field_name[$i] $field_type[$i]";
 if ($field_length[$i] != "") {
 $sql .= "(field_length[$i]),";
 } else {
 $sql .= ",";
 }
 }

 $sql = substr($sql, 0, -1);

 $sql .= ")";

 $result = @mysql_query($sql,$connection) or die("Couldn't execute
query.");

 if ($result) {
 $msg = "p$table_name has been created!/p";
 }

 ?

 html
 head
 titleCreate a Database Table: Step 3/title
 /head
 body

 h1Adding table to ?php echo "$db_name"; ?.../h1

 ?php echo "$msg"; ?

 /body
 /html


 --
 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] Want a Good Book for Ref on PHP

2001-04-15 Thread Kath

Yes, they do.

- Kath

- Original Message -
From: "Manisha" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, April 15, 2001 11:11 PM
Subject: Re: [PHP] Want a Good Book for Ref on PHP


 Whether these books cover PHP 4 also ?

 manisha

 At 10:54 PM 4/15/01 -0400, Kath wrote:
 Professional PHP Programming:

http://www.amazon.com/exec/obidos/ASIN/1861002963/qid=987388364/sr=1-12/ref
=
 sc_b_13/002-2263539-0333643
 
 PHP Fast  Easy Web Development:

http://www.amazon.com/exec/obidos/ASIN/076153055X/qid=987388364/sr=1-9/ref=
s
 c_b_10/002-2263539-0333643
 
 I started with these books and STILL refer to them today.
 
 - Kath
 
 - Original Message -
 From: "Manisha" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Sunday, April 15, 2001 10:46 PM
 Subject: [PHP] Want a Good Book for Ref on PHP
 
 
   Hi all,
  
   I am just entering into PHP world. First what I did is, I signed for
PHP
   mailing list.
  
   I want to buy a good PHP book for my initial start and may be later on
as
 a
   reference. I know there are lot in the market. Can anybody suggest a
good
   book among them ?
  
   manisha
  
  
   --
   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]




Re: [PHP] login security

2001-04-09 Thread Kath

Sessions would do this.

- Kath

- Original Message - 
From: "kaab kaoutar" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, April 09, 2001 1:00 PM
Subject: [PHP] login  security


 Hi!
 i have developped a site using php, but i'd like to add a login acess
 for private pages, i mean only subscribed epople are allowed to access 
 certain pages , how can i do that and how can i overpass the problem of 
 showing the url , knowing that if someone saw the url he  may open it 
 without loging
 Thanks
 _
 Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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] anything wrong with php.net?

2001-04-08 Thread Kath

Can you traceroute it?  Maybe that can pinpoint the cause of the problem for
you.

Works for me.

- Kath

- Original Message -
From: "Christian Dechery" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, April 08, 2001 8:02 PM
Subject: [PHP] anything wrong with php.net?


 Is there anything wrong with www.php.net?

 I can't access it for two days now...
 
 . Christian Dechery (lemming)
 . http://www.tanamesa.com.br
 . Gaita-L Owner / Web Developer


 --
 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] The ubitquitous forum project

2001-03-25 Thread Kath

I guess I'm doing another rite of passage for a PHP programmer: The forum

Any advice?

I did code forums once before, but they were rather rudimentary (No OOP, poorly 
written, no DB abstraction).

- Kath



Re: [PHP] The ubitquitous forum project

2001-03-25 Thread Kath

I think what he means is this:

This is newsgroup style:

+ Main Post
|
| - Reply 1
|
| --- Reply 1 to Reply 1
| --- Reply 2 to Reply 1
   |
   | --- Reply 1 to Reply 2 to Reply 1
|
| - Reply 2

( I hope that formatted ok)

This is phorum style:

+ Main Post

- Reply 1

- Reply 2

- Reply 3

- Reply 4

I'm partial to phorum style, myself.

- Kath

- Original Message -
From: "Gfunk" [EMAIL PROTECTED]
To: "Stephan Ahonen" [EMAIL PROTECTED]; "PHP User Group"
[EMAIL PROTECTED]
Sent: Sunday, March 25, 2001 10:48 PM
Subject: Re: [PHP] The ubitquitous forum project


 What's the difference between newsgroup-style and phorum style threads?

 I'm always doing messageboards, and this thread got my attention

 --
--
   Gfunk - [EMAIL PROTECTED]
 http://www.gfunk007.com/
 --
--


 - Original Message -
 From: "Stephan Ahonen" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, March 26, 2001 1:46 PM
 Subject: Re: [PHP] The ubitquitous forum project


   Any advice?
 
  USENET style threads. I *really* hate Phorum-style threads, where
  everything's just tacked onto the end. Though Phorum-style is easier, it
  really detracts from the conversation when you have to write whose post
  you're replying to in your replies.
 
  Sig for a Day
  Stephan Ahonen, ICQ 491101
  "That's very funny Scotty, now beam down my clothes!"
  Come back tomorrow for a different sig!
  Backspace a single "s" to reply by email
 
 
  --
  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]




Re: [PHP] Create a Bulletin Board

2001-03-20 Thread Kath

 Just keep track of a parent message number.  You should be able
 to use that one field to trace any message back to a root message.
 And with that information, you should be able to build a "thread".

I concur on that.

However, I am more fond of the UBB/vBulletin style of threads, personally.

- Kath

- Original Message -
From: "Boget, Chris" [EMAIL PROTECTED]
To: "'Jimmy Bckstrm'" [EMAIL PROTECTED]; "PHP General List"
[EMAIL PROTECTED]
Sent: Tuesday, March 20, 2001 4:57 PM
Subject: RE: [PHP] Create a Bulletin Board


  Yo!
  I'm thinking of writing a bulletin board and I wonder about
  threads. I want the board to be built on threads but I don't
  know how to do it. I want it to look something like this:
  subject 1
 |
 |__ reply1 to 'subject 1'
 |   |
 |   |__ reply1 to 'reply1 to subject 1'
 |   |
 |   |__ reply2 to 'reply1 to subject 1'
 |
 |__ reply2 to 'subject 1'
  This is important to me so I'm thankful for any help I can get!

 Just keep track of a parent message number.  You should be able
 to use that one field to trace any message back to a root message.
 And with that information, you should be able to build a "thread".

 Chris



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

2001-03-18 Thread Kath

I tried emailing him 5 times with this, but I could never get through :|

I even found the script for him and tried to send it to him :|

- Kath

- Original Message - 
From: "Henrik Hansen" [EMAIL PROTECTED]
To: "Mick" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Sunday, March 18, 2001 4:58 PM
Subject: Re: [PHP] TraceRoute


 "Mick" [EMAIL PROTECTED] wrote:
 
   Hi,
   
   Anyone able to tell me where i can get a traceroute php script from?
 
 http://www.google.com/search?q=php+traceroute+scripthl=dalr=
 
 -- 
 Henrik Hansen
 
 
 -- 
 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] Using PHP as a shell script

2001-03-09 Thread Kath

Compile PHP as CGI and you should be able to.

- Kath

- Original Message -
From: "Alexandre Hautequest" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, March 09, 2001 1:07 PM
Subject: [PHP] Using PHP as a shell script


 Hi all.

 Can i use PHP as a shell script, like bash? Or this is inviable,
impossible
 and/or out of question?

 Thanks.

 --
 Alexandre Hautequest
 hquest at fesppr.br
 Fundao de Estudos Sociais do Paran - http://www.fesppr.br/
 Centro de Administrao de Redes - CAR

 "Ningum  melhor do que todos ns juntos."
 Equipe Zeus Competies

 -
 Esta mensagem foi enviada pelo WebMail da FESP.
 Conhea a FESP: http://www.fesppr.br/

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

2001-03-09 Thread Kath

Yeah.  I even see some PHP book authors, like Julie Meloni here on this
list.

There is never a question, no matter how retarded, that this list or #php on
irc.openprojects.net has never been able to answer.

- Kath


- Original Message -
From: "Krznaric Michael" [EMAIL PROTECTED]
To: "'Rick St Jean'" [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Friday, March 09, 2001 5:11 PM
Subject: RE: [PHP] Advanced PHP


 If I'm not mistaken, the big boys keep an eye out over here.

 Mike


 -Original Message-
 From: Rick St Jean [mailto:[EMAIL PROTECTED]]
 Sent: Friday, March 09, 2001 4:54 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] Advanced PHP


 Does anyone know of any other lists that are a little more advanced,
 And has a little less traffic?  I am not the end all be all by any means
of
 programming or PHP.  I just want to know where the big boys hang out
 and learn some secrets that require some understanding.

 Rick
 ##
 #  Rick St Jean,
 #  [EMAIL PROTECTED]
 #  President of Design Shark,
 #  http://www.designshark.com/
 #  Quick Contact:  http://www.designshark.com/messaging.ihtml
 #  Tel: 905-684-2952
 ##


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




Re: [PHP] Advanced PHP

2001-03-09 Thread Kath

Yes, lets please respect everyones beliefs and just drop this.

- Kath

- Original Message -
From: "Rick St Jean" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, March 09, 2001 7:44 PM
Subject: RE: [PHP] Advanced PHP


 if (you want to debate)
  {
  print ("email me.\n [EMAIL PROTECTED]") ;
  }
 else
  {
  print ("Break thread");
  };

 That is whole other debate that I feel very strongly about.  I am a born
again
 Christian and not going to waver.  If you want to debate this, I would
welcome
 it, but I think that the thread should go to sleep, if you interested make
 a poll.

 Rick



 At 04:18 PM 3/9/01 -0800, Keith Vance wrote:
 You don't think all living creatures could evolved on this planet,
 simply because the Earth has water and oxygen and sunlight to support
 life? I beleive in God, but let's be realistic here. Do you really think
 God just waved his hand and there appeared a chicken?
 
 Open your mind to other possibilities.
 
 Keith
 
 On Fri, 9 Mar 2001, Rick St Jean wrote:
 
   Of course... where did you think they came from... monkeys?
  
  
  
   At 04:01 PM 3/9/01 -0800, Keith Vance wrote:
   Where did the chicken come from, God?
   
   Keith
   
   On Fri, 9 Mar 2001, Jerry Lake wrote:
   
 The chicken did.

 as the Chicken is an actual chicken
 and the egg is a potential chicken.
 Actuality precedes potentiality

 Jerry Lake- [EMAIL PROTECTED]
 Web Designer
 Europa Communications - http://www.europa.com
 Pacifier Online   - http://www.pacifier.com


 -Original Message-
 From: Keith Vance [mailto:[EMAIL PROTECTED]]
 Sent: Friday, March 09, 2001 3:14 PM
 To: Kath
 Cc: Krznaric Michael; 'Rick St Jean'; [EMAIL PROTECTED]
 Subject: Re: [PHP] Advanced PHP


 What came first the chicken or the egg?

 Keith

 On Fri, 9 Mar 2001, Kath wrote:

  Yeah.  I even see some PHP book authors, like Julie Meloni here
  on this
  list.
 
  There is never a question, no matter how retarded, that this
list
  or #php
 on
  irc.openprojects.net has never been able to answer.
 
  - Kath
 
 
  - Original Message -
  From: "Krznaric Michael" [EMAIL PROTECTED]
  To: "'Rick St Jean'" [EMAIL PROTECTED];
 [EMAIL PROTECTED]
  Sent: Friday, March 09, 2001 5:11 PM
  Subject: RE: [PHP] Advanced PHP
 
 
   If I'm not mistaken, the big boys keep an eye out over here.
  
   Mike
  
  
   -Original Message-
   From: Rick St Jean [mailto:[EMAIL PROTECTED]]
   Sent: Friday, March 09, 2001 4:54 PM
   To: [EMAIL PROTECTED]
   Subject: [PHP] Advanced PHP
  
  
   Does anyone know of any other lists that are a little more
  advanced,
   And has a little less traffic?  I am not the end all be all by
any
means
  of
   programming or PHP.  I just want to know where the big boys
  hang out
   and learn some secrets that require some understanding.
  
   Rick
   ##
   #  Rick St Jean,
   #  [EMAIL PROTECTED]
   #  President of Design Shark,
   #  http://www.designshark.com/
   #  Quick Contact:  http://www.designshark.com/messaging.ihtml
   #  Tel: 905-684-2952
   ##
  
  
   --
   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]
 
 


 --
 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]
  
   ##
   #  Rick St Jean,
   #  [EMAIL PROTECTED]
   #  President of Design Shark,
   #  http

[PHP] Odd PHP/MySQL Question

2001-03-01 Thread Kath

I have a user database where a year has to be put in.

Now, I want to compile a list of each different year and how many users are in that 
year.

Is there a way to do this beyond coding for each year:

SELECT * FROM students WHERE year = '1983' ?

- Kath



Re: [PHP] php4 as a module AND a cgi

2001-02-26 Thread Kath

I'd like to see this also.

- Kath

- Original Message -
From: "colin olkowski" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, February 26, 2001 3:58 PM
Subject: [PHP] php4 as a module AND a cgi


 hi all,

 thanks for the replies.  many of you asked why I want to use php4 as a
cgi.

 basically it boils down to this, using PHP as CGI you can run PHP scripts
 via cron tab, which eliminates the need for shell scripting (yeah baby).

 i did some investigation a few months ago (when I was on a virtual host)
and
 found that cron could not call PHP scripts due to the fact that it's
Apache
 calling the cron process not root (or another user).

 a work around seems to be sending everything to Lynx (or the equivalent)
but
 at the time my hosting provider would not allow me to do this.

 anyone have a faster, more secure way to call PHP via cron?

 p.s. in reply to my earlier post i got differing reports as to the
security
 concerns of running PHP as a cgi.  one person replied that cgi shoudl be
 avoided at all costs while another said that he thought it was the way to
 go.

 thoughts?

 p.p.s thanks for the replies to my questions, it's extremely helpful.

 colin o.

 colin olkowski - [EMAIL PROTECTED]
 cell 917.549.8395
 land 212.414.4481



 --
 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] No same username

2001-02-25 Thread Kath


 $sql = "SELECT username FROM main_users WHERE username = '$username'";

 $result = mysql_query($sql);

 $num = mysql_numrows($result);

 if ($num  "0") { die ("That username already exists, please chose
another"); }
-----
That could do it :)

- Kath

- Original Message -
From: "Brandon Feldhahn" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Sunday, February 25, 2001 7:33 AM
Subject: [PHP] No same username


 how do i make somthing with my database that knows it the username
 entered is already a name in use?


 --
 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] select name=....

2001-02-24 Thread Kath

Don't forget to close the /SELECT.  Netscape doesn't like it without that
sometimes.

- Kath

- Original Message -
From: "PHPBeginner.com" [EMAIL PROTECTED]
To: "Peter Houchin" [EMAIL PROTECTED]; "PHP MAIL GROUP"
[EMAIL PROTECTED]
Sent: Saturday, February 24, 2001 1:16 AM
Subject: RE: [PHP] select name=


 No it will give you the same value twice...

 you need a loop


 SELECT NAME="state" SIZE="1"
 OPTION VALUE="Canberra"ACT/OPTION
 OPTION VALUE="Victoria"VIC/OPTION



 looping the rows .,...{

echo "OPTION
VALUE=\"".$row['state']."\"".$row['state_abbr']."/OPTION
 ";

 }

 /SELECT


 Sincerely,

  Maxim Maletsky
  Founder, Chief Developer

  PHPBeginner.com (Where PHP Begins)
  [EMAIL PROTECTED]
  www.phpbeginner.com






 -Original Message-
 From: Peter Houchin [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 23, 2001 1:17 PM
 To: PHP MAIL GROUP
 Subject: [PHP] select name=


 if i have a form with a select box in it how an i get the values to echo a
 php value ...

 ie

 SELECT NAME="state" SIZE="1"
 OPTION VALUE="Canberra"ACT/OPTION
 OPTION VALUE="Victoria"VIC/OPTION
 /SELECT

 can i change it to say
 SELECT NAME="state" SIZE="1"
 OPTION VALUE="? echo $state ?"ACT/OPTION
 OPTION VALUE="?echo $state ?"VIC/OPTION
 /SELECT

 so that when the page loads it shows which ever option is in the Data
base?

 Peter Houchin
 Sun Rentals
 [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]




Re: [PHP] woe is me

2001-02-19 Thread Kath

Think of it this way:
Now you'll know both ASP and PHP for your next clients and can charge them
more because of your increased talents  :)

- Kath

- Original Message -
From: "Adrian Murphy" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, February 19, 2001 7:21 AM
Subject: [PHP] woe is me


 i'm sorry,i just had to share this with people who'd understand.
 we've just secured clients who are m$ affiliated and they insist
 everthing be done with asp.
 excuse me while i go off for a little cry.


 --
 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] Session support in PHP

2001-02-19 Thread Kath

Make sure there are no lines (except a ?php of course) above your
session_start(), INCLUDING blank lines.

Example that will work:
?php
session_start();
?
HTML
yadda yadda yadda etc etc etc

Example that will not work:
?php

session_start();
?
HTML
yadda yadda yadda etc etc

Hope this helps,
Kath

- Original Message -
From: "Sascha Andres" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, February 19, 2001 2:38 PM
Subject: [PHP] Session support in PHP


 hi,

 when doing a session_start() followed by session_register(...)
 before the html header the first call stops with the error
 'html header already written'. how can i prevent the html header
 to be written until the session_start() is called?
 sascha

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

2001-02-19 Thread Kath

Why do a lot of people use libraries like PHPLib?

I find it a lot better to write my own basic functions.

Is it just the attitude "Someone else coded it already, why should I?"

- Kath



Re: [PHP] Determining what kind od software a remote server is running

2001-02-19 Thread Kath

http://www.netcraft.com/whats/ ?

- Kath

- Original Message -
From: "Jeremy Bowen" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, February 19, 2001 4:36 PM
Subject: [PHP] Determining what kind od software a remote server is running


 Hey,

 A while back someone posted a link to a page where you can enter a url and
the
 page returns the type of software the remote server is running.

 Did anyone save that link?

 Thanks,

 Jeremy

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

2001-02-19 Thread Kath

I don't exactly try to reinvent a new and better wheel... I just find that
writing my own libraries makes the site feel like it is more all mine.

- Kath


- Original Message -
From: "Martin A. Marques" [EMAIL PROTECTED]
To: "Kath" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, February 19, 2001 4:59 PM
Subject: Re: [PHP] Libraries


 Mensaje citado por: Kath [EMAIL PROTECTED]:

  Why do a lot of people use libraries like PHPLib?
 
  I find it a lot better to write my own basic functions.
 
  Is it just the attitude "Someone else coded it already, why should I?"

 Like some said to me "Don't re-invent the wheel"

 Saludos... :-)




-- 
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] Quick hellp, How do I stip new lines?

2001-02-16 Thread Kath

You want to totally remove \n?

$something = ereg_replace("\n"," ",$something);

That should do it.  If you mean making \n into BR:

$something = ereg_replace("\n","br",$something);

- Kath

- Original Message - 
From: "Brandon Orther" [EMAIL PROTECTED]
To: "PHP User Group" [EMAIL PROTECTED]
Sent: Friday, February 16, 2001 9:38 PM
Subject: [PHP] Quick hellp, How do I stip new lines?


 Hello,
 
 Hey I can't remeber how to do it but I'm sure one of you will.  How do I
 strip the \n from a variable?
 
 
 
 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] OOP in web development

2001-02-13 Thread Kath

I find the ability to write something once (say a mysql_connect();
statement) and be able to run it on any page just with $db-connect(); is
pretty cool.

While that may not seem cool, if you some day change a a PHP statement that
exists on many pages, this lets you change it in one place, instead of
having to copy it to dozens of other places.

Also, what happens if you change your database password and now need to
change a bunch of pages to have the new password?

Problem solved in OOP, because the vars are all in the same file.

- Kath, a recent converter to OOP, but enjoying every minute of it!

- Original Message -
From: "Joe Sheble (Wizaerd)" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, February 13, 2001 11:41 AM
Subject: [PHP] OOP in web development


 I've been using PHP for over a year now and have been successfully running
 three different websites developed with PHP, but I've never done anything
 with classes or objects.  Even when returning data from a mySQL database,
I
 use mysql_fetch_array() instead of mysql_fetch_object().

 What am I missing by not using objects and classes, other than
 reusability?  What are the real benefits to using OOPs in PHP?


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

2001-02-11 Thread Kath

Hell yes to phpmyadmin, IMHO.

I use it on all my servers.

- Kath

- Original Message -
From: "php php" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, February 11, 2001 2:17 PM
Subject: [PHP] afraid !


 Hi!
 i've just joined ur mailing list!
 i used to work on asp with oracle and access!
 i'm working on windont NT but i want to publish my site at a provider that
 has linux? do i have to change my code for that ?
 do u know any provider that accepts acces and mysql with php4?
 i'm afraid of using mysql with php cause i'm in hurry and that i
discovered
 that mysql interface is not as good and easy as of oracle and access! is
it
 true that if i want to insert data to a table i have to do it from the
 commend line?
 Thanks   a lot
 _
 Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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]




[PHP] General Question: OOP

2001-02-05 Thread Kath

This isn't PHP related, but I hope it isn't too off topic for this list.

Does anyone here have an explanation guide to object oriented programming?  I look at 
stuff like $this-something and haven't the foggiest what it means.  Would a book on 
OOP be best?

- Kath, procedural programmer 4EVER



Re: [PHP] Editor

2001-01-30 Thread Kath

I'm partial to PHPEd.

- Kath

- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, January 30, 2001 2:37 AM
Subject: [PHP] Editor


 Hi,

 I know this has been asked before but I can`t seem to get the archive
email
 thingy to work, basically I`m looking for a free or cheap editor that has
the
 lines numbered so that it`s a bit easier for me to debug my scripts.

 TIA
 Ade

 --
 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] oops, little problem with mysql

2001-01-22 Thread Kath

Do you still have r00t access to the database?

- Kath

- Original Message - 
From: "Dominick Vansevenant" [EMAIL PROTECTED]
To: "Php-General" [EMAIL PROTECTED]
Sent: Monday, January 22, 2001 9:05 AM
Subject: [PHP] oops, little problem with mysql


 Hello,
 
 I deleted all the records from the privileges tables (mysql database) and
 restarted the daemon.
 
 Now off course I cannot access the databases, what can I do?
 
 D.
 
 
 
 -- 
 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] I love/hate FrontPage - need another HTML editor.

2001-01-17 Thread Kath

ROFLMAO =D

- Kath

- Original Message -
From: "Chris Aitken" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, January 16, 2001 8:11 PM
Subject: Re: [PHP] I love/hate FrontPage - need another HTML editor.


 At 09:06 PM 16/01/2001, Kath wrote:
 Hey,
 
 To get Frontpage to recognize PHP files (at least to let you edit them),
do
 the following (I'm assuming FP2000):
 
 1 - Open FP
 2 - Click on Tools
 3 - Click on Options
 4 - Click on the Configure Editors tab
 5 - Hit Add
 6 - Make file type "php"
 7 - Make editor name "FrontPage"
 8 - Make command "frontpg.exe"
 9 - Hit ok
 10 - It should work :D


 There is a much easier and simpler way to handle Frontpage and PHP than
this ..

 1 - Open Control Panel
 2 - Open Add/Remove Programs
 3 - Click on Frontpage 2000
 4 - Click on Uninstall
 5 - Uninstall
 6 - Click on Start
 7 - Click on Run
 8 - Type 'Notepad'
 9 - Press Enter
 10 - It DOES work :)


 A much more realistic windows solution in half the time (and about a
 thousandth of the HD space :) You can add in a Step 11 if needed which is
 to Slap yourself over the wrist 5 times for wanting to use Frontpage in
the
 first place.




 Chris


 --
 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] Anything similar to phpmyedit?

2001-01-17 Thread Kath

I like phpMyAdmin

- Kath

- Original Message - 
From: "Gerry Chu" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, January 17, 2001 12:44 AM
Subject: [PHP] Anything similar to phpmyedit?


 I'm looking for something exactly like phpmyedit (mysql database
 displayer/editor) but where I can edit more than one database row at a
 time.  Is there anything like this?
 
 Thanks,
 
 Gerry
 
 
 -- 
 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] I love/hate FrontPage - need another HTML editor.

2001-01-16 Thread Kath

Hey,

To get Frontpage to recognize PHP files (at least to let you edit them), do
the following (I'm assuming FP2000):

1 - Open FP
2 - Click on Tools
3 - Click on Options
4 - Click on the Configure Editors tab
5 - Hit Add
6 - Make file type "php"
7 - Make editor name "FrontPage"
8 - Make command "frontpg.exe"
9 - Hit ok
10 - It should work :D

- Kath

- Original Message -
From: "Murph" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, January 16, 2001 8:50 PM
Subject: [PHP] I love/hate FrontPage - need another HTML editor.


Hi.

FrontPage sucks for working with PHP.

I've been doing all my coding by hand and that's fine as far as it goes but
I just got a promotion at work where everyone uses FrontPage so I bought it
to see how I can use it to show these old dogs some new tricks.

Nice program. Allows for workgroups where different people can work on
different parts of a project. That'll come in handy. It also has some nice
tree charts to show you where the project is branching out and generates
some useful reports like where the dead links are.

What I *really* liked about it was the ability to apply a common theme
across all my pages. Man, that was pretty cool. Plus, let's face it, using
an HTML editor really takes some of the drudgery out of designing your
pages.

The problem is, if the web page that is designed with FrontPage doesn't end
with a regularly accepted filename extension like *.htm, FrontPage doesn't
seem to really know how to handle it and I need it to handle pages that end
with *.php.

What are my options? I don't think I missed anything with FrontPage after
scouring the manual and online and inline help pages.

Anyone out there using an HTML editor that they'd like to recommend? Why?
Are there any FAQs I should be reading for this answer?

Maybe I should just use a style sheet for a common look and for the rest,
suck it up and take it like a man?

Yours,
Murph

www.murphatnight.com
__
Brian Murphy - 193A Lowell St., Apt. 24 - Methuen, MA 01844 - (978) 725-6654




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