Re: [PHP] for loop problem

2002-03-20 Thread cal
$message = "Dear $cusname,".$originalMessage; $fromaddress = "[EMAIL PROTECTED]"; mail($to, $subject, $message, $fromaddress); }//end of for }//end of if * * Cal Evans * Techno-Mage * http://www.calevans.com

Re: [PHP] for loop problem

2002-03-20 Thread cal
; $subject = "hello"; $message = "Dear $cusname,".$originalMessage; $fromaddress = "[EMAIL PROTECTED]"; mail($to, $subject, $message, $fromaddress);

Re: [PHP] Newbie help

2002-03-21 Thread cal
the EASIEST thing to do is create VFP COM objects to do the dirty work and call them from your PHP pages. There are other ways but not as reliable. HTH, =C= * * Cal Evans * Techno-Mage * http://www.calevans.com * - Original Message - From: "Tony Alanis" <[EMAIL PROTECTED]

Re: [PHP] variable question

2002-04-15 Thread cal
store $name on one line and $welcomemssg on a separate line. Then just remember that all odd numbered liens are names and even numbered lines are messages. =C= * * Cal Evans * Techno-Mage * http://www.calevans.com * - Original Message - From: "Jule Slootbeek" <[EMAIL P

Re: [PHP] Problem with inheritance mechanism.

2002-04-16 Thread cal
it to fire. Kinda goofy but no more so than the lack of overloading. (I REALLY miss overloading functions!) =C= * * Cal Evans * Techno-Mage * http://www.calevans.com * - Original Message - From: "Steve Dix" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday

Re: [PHP] forcing file downloads

2002-06-12 Thread cal
ex code for a space. When the url get 'URLENCODED' any non-valid characters get converted to hex. In some (broken?) browsers a space in the URL may work but it's generally not a good idea. =C= * * Cal Evans * Techno-Mage * http://www.calevans.com * -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Editor

2002-06-14 Thread cal
URL?? :) * * Cal Evans * Techno-Mage * http://www.calevans.com * - Original Message - From: "Adrian Greeman" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, June 14, 2002 8:18 AM Subject: [PHP] Editor > I am just surprised that noone mention

RE: [PHP] Sessions and switching between php and htm documents

2002-02-26 Thread Cal Evans
middle page in the chain a HP, start the session and test for the variable. If it does not work then the problem is not the middle page being html. =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: Dave [mailto:[EMAIL PROTECTE

RE: [PHP] Sessions and switching between php and htm documents

2002-02-26 Thread Cal Evans
Not HP!!! HTML!!! ( I HATE Outlook's spellchecker sometimes.) =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: Cal Evans [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 26, 2002 10:46 PM To: Dave; [EMAIL PROTECTED] Su

[PHP] RE: Sessions not working between documents (was: Sessions and switching between php and htm documents)

2002-02-27 Thread Cal Evans
When you check your info page, do sessions automatically start? If not, make sure you do a session_start(); in there somewhere before you start checking things. Not sure why (lost in the annuls of time) but I always manually start/stop my sessions. =C= * * Cal Evans * Journeyman Programmer

RE: [PHP] textarea

2002-02-27 Thread Cal Evans
I think, what he's trying to say is check to make sure it's not an errant quote and not a string length issue. The same behavior may be caused by an errant quote. =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From:

RE: [PHP] PHP on Pocket PC

2002-02-27 Thread Cal Evans
that I am aware of. (Your language options for writing programs for a PocketPC are very limited.) * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: Craig Westerman [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 27, 2002 11:44

RE: [PHP] intranet security

2002-02-27 Thread Cal Evans
e that works and can be easily implemented, please share. =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: Scott St. John [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 27, 2002 12:41 PM To: [EMAIL PROTECTED] Subject:

RE: [PHP] novice question

2002-02-28 Thread Cal Evans
Sumthin like this... * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: me us [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 27, 2002 3:23 PM To: [EMAIL PROTECTED] Subject: [PHP] novice question Hi Id reelly

RE: [PHP] Can mysql add qty directly?

2002-02-28 Thread Cal Evans
Assuming soldQty is a number and not a string: "UPDATE products SET soldqty=soldqty+$sqty WHERE articelno='$articleno'"; If ArticleNo is a number you might want to remove the quotes there too. =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.c

RE: [PHP] Can I use PHP to check server software????

2002-02-28 Thread Cal Evans
you COULD...actually, you would need to either open a socket or use the curl functions to talk to the server, retrieve a page, examine the headers and find the type. Might just be easier to go to www.netcraft.com =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com

RE: [PHP] arithmetic operation inconsistent

2002-02-28 Thread Cal Evans
Hm...you may be on to something. If you run this code you will see that about 30% of the time $ns1 IS actually 1. the funny thing is that if you remove the doubleval calls, $ns1 purports to have a value > than 1. Interesting... * * Cal Evans * Journeyman Programmer * Techno-Mage * h

RE: [PHP] how do I use php and mysql to print mailing lables

2002-03-04 Thread Cal Evans
Personally, I'm leaning towards generating a PDF, displaying that for the user and letting them click the print button. =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: Ivan Carey [mailto:[EMAIL PROTECTED]] Sent: M

RE: [PHP] permissions

2002-03-04 Thread Cal Evans
he OS at the file level (or the O'Reilly Horse book) and check www.phph.net for additional info on how PHP deals with this. HTH, =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: John Gurley [mailto:[EMAIL PROTECTED]] Se

RE: [PHP] ... another dumb question

2002-03-05 Thread Cal Evans
k with the tradition. =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: Team GotFusion [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 6:59 AM To: [EMAIL PROTECTED] Subject: [PHP] ... another dumb question I have people telling

RE: [PHP] How to question...

2002-03-05 Thread Cal Evans
No. Wrapping in PHP or any other scripting language won't hide the HTML from the user. For the browser to render it, you HAVE to send the HTML to the browser. =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: jas [m

RE: [PHP] Homesite 5.0 and PHP

2002-03-09 Thread Cal Evans
5. If you can purchase a copy of 4.5, it too has color coded syntax for PHP (That's about all the support that I found in 5.0 also) and it rocks...as long as you don't try to use the FTP thingy...but that's another rant. =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * h

RE: [PHP] which linux?

2002-03-09 Thread Cal Evans
e, and SGL (now defunct, at least until the author gets his head out of his butt) and Gentoo. Gentoo is by far the best. But be prepared. There's no graphical installer. It takes time and patience to get it running. My $0.02, =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * htt

RE: [PHP] Is it possible to call an external client or server program?

2002-03-31 Thread Cal Evans
ill require a lot of hand holding. My $.02 worth. Hope you found an answer somewhere among the rant. :) =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: martinahingis [mailto:[EMAIL PROTECTED]] Sent: Sunday, March 31, 200

RE: [PHP] Is it possible to call an external client or server program?

2002-03-31 Thread Cal Evans
really. Since the PHP never gets executed on the client machine. The best you could hope for was a JavaScript/VBScript solution. Of the two, I'd look hardest at VBscript since M$ likes it better. =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Ori

RE: [PHP] Issues with long SQL inserts

2002-03-31 Thread Cal Evans
Have you tried shaving the article off a couple of chrs before the last one and seeing if the insert works? Also, what is the size limit on a MySQL TEXT field? http://www.mysql.com/documentation/mysql/bychapter/manual_Reference.html#BLO B May give a hint. =C= * * Cal Evans * Journeyman

RE: [PHP] Issues with long SQL inserts

2002-03-31 Thread Cal Evans
My guess is that you are banging your head against the upper limit. I did notice that it has a BIGTEXT type. Maybe try that. It still won't solve the problem but it may give you more room. HTH, =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Ori

RE: [PHP] Issues with long SQL inserts

2002-03-31 Thread Cal Evans
ople there who could help you better than I. Sorry I wasn't more help, =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: Chris Snyder [mailto:[EMAIL PROTECTED]] Sent: Sunday, March 31, 2002 5:06 PM To: [EMAIL PROTECTED] Cc:

RE: [PHP] Issues with long SQL inserts

2002-03-31 Thread Cal Evans
he source, is there a PHP error masked by an HTML tag in there? (grasping at straws here) =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: Chris Snyder [mailto:[EMAIL PROTECTED]] Sent: Sunday, March 31, 2002 5:22 PM To: [EM

RE: [PHP] arguments against php / mysql?

2002-04-10 Thread Cal Evans
ed application development. =C= Get on the M$ treadmill. There's a toll-booth every 10 steps. * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: Mallen Baker [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 10, 2002 11:30 AM

RE: [PHP] unsetting an instance from within its class

2002-04-10 Thread Cal Evans
Never actually tried to do this (Never actually thought it was a good idea) but: this = null; may do the trick. Then again it may cause your php page to blow chow all over your screen. =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message

RE: [PHP] Secure storage of credit card information

2002-04-10 Thread Cal Evans
main database. Change the mysql password daily. Make sure it's different form the password to get into your main server. Is this secure? No. Does it make it harder to get the CC info? Yes. Harder is all you can hope for. Impossible is...well, impossible. :) HTH, =C= * * Cal Evans *

RE: [PHP] Secure storage of credit card information

2002-04-10 Thread Cal Evans
e the advantage of not compromising very sensitive data if the rest of the data is compromised. My $0.2 worth, again, not arguing with you...:) =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: SHEETS,JASON (Non-HP-Boise,ex1) [m

RE: [PHP] Including only I want

2002-04-13 Thread Cal Evans
Break those lines out into another file... =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: Alberto Wagner [mailto:[EMAIL PROTECTED]] Sent: Saturday, April 13, 2002 4:33 AM To: Php General Mailling List Subject: [PHP] Including

RE: [PHP] Mailings Lists?

2002-04-13 Thread Cal Evans
www.list.org * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: Randum Ian [mailto:[EMAIL PROTECTED]] Sent: Saturday, April 13, 2002 7:44 AM To: PHP Subject: [PHP] Mailings Lists? Hi there, I want to be able to send an email to

RE: RE: [PHP] Including only I want

2002-04-13 Thread Cal Evans
I guess it would help if you explained what you are trying to do. the answer to your initial question is no. =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: Alberto Wagner [mailto:[EMAIL PROTECTED]] Sent: Saturday, April 13

RE: [PHP] special charicters in form output

2002-04-13 Thread Cal Evans
If you are using METHOD=GET, your browser is probably doing it. Try METHOD=POST =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: Paul Roberts [mailto:[EMAIL PROTECTED]] Sent: Saturday, April 13, 2002 12:14 PM To: php Subject

RE: [PHP] globals in functions

2002-04-13 Thread Cal Evans
} else { return false; } } // function myFunction($formArray=null) WARNING: I have not tried the code above. Use at your own risk. But the concepts are there. * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: Paul Roberts [

RE: RE: RE: [PHP] Including only I want

2002-04-13 Thread Cal Evans
them in a table in a database but that's up to you. If you need to read in and execute PHP code, you MIGHT could get away with reading them in as described above and then using eval() to do execute them one at a time...but I'd steer clear of this. =C= * * Cal Evans * Journeyman P

RE: [PHP] Multiple Threads?

2002-04-14 Thread Cal Evans
PHP can fork but the docs say not to do it in a web server environment. basically, it's only usable on *nix machines and in a shell scripting environment. =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: Matthew W

RE: [PHP] make a set of variables available to all visitors?

2002-04-14 Thread Cal Evans
Actually, if they are static variables that rarely or never change, I would stick with the include file. It's faster than making a database connection and selecting them. =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message-

RE: [PHP] ASP to PHP

2002-04-23 Thread Cal Evans
Having moved a moderately sized website last year from ASP to PHP I can say from experience that if you can re-write it, the move will go smoother and you will have fewer lines of code. I ended up with about 1/2 as many lines of code to maintain after the port was done. =C= * * Cal Evans

RE: [PHP] PHP Security Leak (plaintext)

2002-04-25 Thread Cal Evans
It's not PHP's place to do this. That being said, check out ADODB. It's a data abstraction layer for several different databases that will give you this functionality. =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message---

RE: [PHP] return multiple value from function

2002-04-29 Thread Cal Evans
no, it's not possible to do it that way. If you need to return multiple values from a function, your best bet is to return an array or some kind of record structure. By design, in almost all languages, functions only return a single value. =C= * * Cal Evans * Journeyman Programmer * T

RE: [PHP] Text File Formating.

2002-04-29 Thread Cal Evans
the manual is your friend. http://www.php.net/manual/en/function.nl2br.php * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: Randum Ian [mailto:[EMAIL PROTECTED]] Sent: Monday, April 29, 2002 10:20 AM To: PHP Subject: [PHP] Text

RE: [PHP] Secure MySQL connections in PHP with 'stunnel'

2002-04-29 Thread Cal Evans
ecure in transport. =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: Stefen Lars [mailto:[EMAIL PROTECTED]] Sent: Monday, April 29, 2002 10:24 AM To: [EMAIL PROTECTED] Subject: [PHP] Secure MySQL connections in PHP with 'stunnel

RE: [PHP] javascript and PHP

2002-04-29 Thread Cal Evans
World';) Then your PHP script can execute and see the value of $_GET['data'] HTH, Cal * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: Steve Buehler [mailto:[EMAIL PROTECTED]] Sent: Monday, April 29, 2002 10:30 AM

RE: [PHP] Cannot add header information

2002-04-29 Thread Cal Evans
It means that something has already output to the outbuffer in unbuffered mode. Therefore, whatever header operation you are trying to do (start a session? redirect?) cannot be done. IMHO, the biggest culprit of this is blank lines in your include files. =C= * * Cal Evans * Journeyman

RE: [PHP] In Addition to [PHP] PHP Security

2002-04-29 Thread Cal Evans
e level of comfort. (but not a lot) =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: Jan Peuker [mailto:[EMAIL PROTECTED]] Sent: Monday, April 29, 2002 1:45 PM To: [EMAIL PROTECTED] Subject: [PHP] In Addition to [PHP] PHP Securi

RE: [PHP] Is it possible to verify that a form submision is not being "spoofed"?

2002-04-30 Thread Cal Evans
Generate a random number when creating a form, store it in the session and in a hidden on the form. Then when the post comes back, make sure the hidden is there and that it matches the one in the session. Cal * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com

RE: [PHP] Self Destruct code

2002-05-07 Thread Cal Evans
IANAL! It's against the law in most states to create booby-traps in your code. As others have suggested, don't turn over the code until you've received payment. IMHO, you really should have specified the payment schedule in your contract. =C= * * Cal Evans * Journeyman Prog

RE: [PHP] How to stop site flipping?

2002-05-13 Thread Cal Evans
sweet. Very nice solution. * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: Justin French [mailto:[EMAIL PROTECTED]] Sent: Monday, May 13, 2002 10:18 PM To: David McInnis; [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED

RE: [PHP] Making Multiple Pages

2002-05-16 Thread Cal Evans
Do a google search for ADODB. It's a PHP database abstraction layer. It has built in 'pagination' methods (Previous X, next X) along with an example of how to use them. =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message--

RE: [PHP] ADODB - whaddya think?

2002-05-17 Thread Cal Evans
I've been using it for about 4 months and it's very stable. =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: Jerome Houston [mailto:[EMAIL PROTECTED]] Sent: Friday, May 17, 2002 4:05 PM To: [EMAIL PROTECTED] Sub

RE: [PHP] newbie: cron jobs

2002-05-30 Thread Cal Evans
implement a cron job on any machine you care about. My $0.02 worth, =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: Edgard Berendsen [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 30, 2002 8:11 AM To: [EMAIL PROTECTED] Subject: [

RE: [PHP] arrays and same index

2002-05-30 Thread Cal Evans
ot;][4] // = 1; or: $x = $array["untitled_1.jpg"]; echo $x[0]; echo $x[1]; echo $x[2]; echo $x[3]; echo $x[4]; HTH, =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: Victor Spang Arthursson [mailto:[EMAIL PROTECTED]] Sen

RE: [PHP] nested if parse error

2002-05-30 Thread Cal Evans
if (1){ if (1) {echo "hello";} } else { } ?> * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: Miroslav Figlar [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 30, 2002 7:05 AM To: [EMAIL PROTECTED]

RE: [PHP] 1 session, 2 subdomains

2002-06-03 Thread Cal Evans
Store your session information in a database. Assign it an ID and send that ID to the cookie or the URL in the new domain. Then you can write a session handler that retrieves the session info form the database. =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com

RE: [PHP] 1 session, 2 subdomains

2002-06-03 Thread Cal Evans
your own session handler is one way to do it. But if you have no session info to pass, why is it a problem? =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: Jason Dulberg [mailto:[EMAIL PROTECTED]] Sent: Monday, June 03, 2002 3:08

RE: [PHP] open a new html page

2002-06-05 Thread Cal Evans
store the user's preference in a database. Once they have logged in, use their login or userID to retrieve it form the database and redirect to the appropriate page. =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: Re

RE: [PHP] E-Commerce and "small" intranet solution

2002-06-05 Thread Cal Evans
have you searched freshmeat.net? google.com? both of those can give you the examples you are looking for. * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: Jay Fitzgerald [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 05, 2002 2

RE: [PHP] HTTP1.1

2002-06-27 Thread Cal Evans
n omit the http:// and the host name if you like. =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: Gerard Samuel [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 27, 2002 12:40 PM To: php-gen Subject: [PHP] HTTP1.1 Kinda off topi

RE: [PHP] Why isn't this working?

2002-06-28 Thread Cal Evans
Have you tried: $query = "UPDATE poll_options SET votes = votes + 1"; * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: JJ Harrison [mailto:[EMAIL PROTECTED]] Sent: Friday, June 28, 2002 8:05 AM To: [EMAIL PROTECTED] Sub

RE: [PHP] Populate Popup Menu from Database

2002-06-29 Thread Cal Evans
Hi Mike, Check out ADODB. It's a database abstraction layer for PHP that has functions to do this. (php.weblogs.com) Otherwise it's kinda easy to do this, here's some psuedo-code that shoudl get you going. fields['departmentID']; ?>">fields['depa

RE: [PHP] ASP style "application-level" variables

2002-06-29 Thread Cal Evans
. Thanks for your cooperation, =C= p.s. I accomplish applicaiton level variables by storing them in a table called application in my application's database. This way I can change them on the fly and all my pages can see them. I have objects that read them in on the pages that need them. *

RE: [PHP] php & SMS (or phone contact)

2002-07-01 Thread Cal Evans
don't reinvent the wheel. (Unless you jsut REALLY want to) Try www.nagios.org It has support for SMS. (Be prepared to spend about 3-4 hours setting it up) =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: Duncan [mailto:[

RE: [PHP] Re: MySQL fetch data

2002-07-01 Thread Cal Evans
Jeff, Also, try php.weblogs.com ADODB if you absolutly MUST have all of your data in an array. I'll agree with Richard that it's not a great idea unless there is a specific need. While loops for displaying the contents of many records are much better. (IMHO, etc...) =C= * *

RE: [PHP] Authentication

2002-07-03 Thread Cal Evans
I agree with Ed. Use sessions. It's more secure that how you are doing it because theusername is not stored in the page and retransmitted each page. =C= * * Cal Evans * The Virtual CIO * http://www.calevans.com * -Original Message- From: Peter [mailto:[EMAIL PROTECTED]]

RE: [PHP] function for size of array

2002-07-05 Thread Cal Evans
size_of() (insert obligatory RTFM comment here) =C= * * Cal Evans * The Virtual CIO * http://www.calevans.com * -Original Message- From: Scott Fletcher [mailto:[EMAIL PROTECTED]] Sent: Friday, July 05, 2002 9:16 AM To: [EMAIL PROTECTED] Subject: [PHP] function for size of array Is

Re: [PHP] don't want to receive but email please

2002-07-08 Thread Cal Evans
only if user stupidity can be considered a virus. =C= - Original Message - From: "Lazor, Ed" <[EMAIL PROTECTED]> To: "PHP List" <[EMAIL PROTECTED]> Sent: Monday, July 08, 2002 11:37 AM Subject: RE: [PHP] don't want to receive but email please > So is this a new virus? > > -Origi

RE: [PHP] Access a printer via PHP

2001-02-07 Thread Cal Evans
and write to it like it were any other file. My preference would be to write the order out to a file and then issue a system command to print that file. Cal http://www.calevans.com -Original Message- From: ThoVer Webproducties [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 07,

RE: [PHP] question about PHP use

2001-02-07 Thread Cal Evans
Yeppers, it'll do that for you. Cal http://www.calevans.com -Original Message- From: Don [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 07, 2001 4:09 PM To: php list Subject: [PHP] question about PHP use Hi, I've been looking at using PHP but am unsure if it will

[PHP] PDFLib, PHP 4.0.4, Arrrrrrgh!

2001-02-18 Thread Cal Evans
Ok this used to work but now I've done something to break it. My info.php says that I have PHP support: pdf PDF Support enabled PDFLib Version 3.03 CJK Font Support yes In-memory PDF Creation Support yes BUT when I try and run the clock test code, I get: Fatal error: Call to undefined function

RE: [PHP] sessions and objects

2001-02-22 Thread Cal Evans
Why is this good design? If I create a user object, populate it, kill the connection to the database (or return it to the pool) and cache the object then I can retrieve it any time I want without having to hit the database. Not arguing, just curious as to your perspective. Cal http

RE: [PHP] looking for a PHP editor

2001-01-10 Thread Cal Evans
What extensions and where can you get them? Cal http://www.calevans.com p.s. love homesite use it for everything from HTML to Java to php. -Original Message- From: Wacks, David [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 10, 2001 10:59 AM To: 'Egan'; [EMAIL PROTECTE

RE: [PHP] PHP simulator

2001-01-10 Thread Cal Evans
there's an implementation of PHP for IIS. -Original Message- From: Todd Cary [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 10, 2001 4:15 PM To: [EMAIL PROTECTED] Subject: [PHP] PHP simulator Is there a PHP simulator for NT? One that can be used for testing and development? Todd

RE: [PHP] How can I get a random number

2001-01-10 Thread Cal Evans
Put a web cam on it and we've got a winner! :) Cal -Original Message- From: Monte Ohrt [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 10, 2001 4:21 PM To: [EMAIL PROTECTED]; Brandon Orther Subject: Re: [PHP] How can I get a random number You can blow some ping pong balls a

RE: [PHP] Function -> Sending URL's

2001-01-11 Thread Cal Evans
> 2: in the last line, you try to echo $name. $name is defined within the function testPassVar() and goes out of scope when that function is done At this point in your script, $name does not exist. Hope this helps, Cal http://www.calevans.com -Original Message- From: Abe [mailto:[EMAI

RE: [PHP] Function -> Sending URL's

2001-01-11 Thread Cal Evans
$url, $keyValuePairs) A simpler method is to pass in a single key and value and let the function add them and return you the newly munged URL. function testPassVar($url, $key, $value) { //won't work if it's the first pair. need to test for that! return $url."&".$key.&quo

RE: [PHP] Making PHP Hold the hundreth place, instead of dropping the 0

2001-01-11 Thread Cal Evans
I think you are looking for printf. Check the manual. it won't hold it, but you can make it PRINT it. (Which, I'm asumming, is what you really want) Cal http://www.calevans.com -Original Message- From: JB [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 11, 2001 9:09 AM

[PHP] RE: [PHP-DB] Autonomous Mass Mail List System (Broadcast Email)

2001-01-10 Thread Cal Evans
Don't reinvent the wheel. It will take you longer to write it than it will to learn to admin majordomo or any of 10 other programs like it. IMHO, Cal -Original Message- From: Jason Beebe [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 10, 2001 7:49 PM To: [EMAIL PROTECTED]; [

RE: [PHP] mixing HTML and PHP code

2001-01-12 Thread Cal Evans
HAR! :) cal -Original Message- From: Tim Zickus [mailto:[EMAIL PROTECTED]] Sent: Friday, January 12, 2001 6:22 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] mixing HTML and PHP code > that's why I didn't implement one of those keyword things in binarycloud. > ergh. P

RE: [PHP] load balancing with php/apache?

2001-01-13 Thread Cal Evans
How does it deal with sessions? Or do use store sessions in the database? Cal -Original Message- From: Joe Stump [mailto:[EMAIL PROTECTED]] Sent: Saturday, January 13, 2001 11:22 AM To: Rasmus Lerdorf Cc: [EMAIL PROTECTED] Subject: Re: [PHP] load balancing with php/apache? > h

RE: [PHP] load balancing with php/apache?

2001-01-13 Thread Cal Evans
When you say "handled by us" do you mean you: 1) Write the sess_* files to a shared drive 2) Store them in the database 3) ignore them totally, who needs users anyhow? 4) some other option? Cal http://www.calevans.com -Original Message- From: jeremy brand [mailto:[EMAIL

RE: [PHP] Refresh particular browser while updating another browser

2001-01-14 Thread Cal Evans
ouple of ways that you could use JavaScript to force a refresh of a window that it has a handle to, upon an event. (Like pressing the submit button in a browser.) Cal http://www.calevans.com -Original Message- From: Hendry Sumilo [mailto:[EMAIL PROTECTED]] Sent: Sunday, January 14, 2001 1:

RE: [PHP] load balancing with php/apache?

2001-01-14 Thread Cal Evans
I agree. You've piqued my curiosity. Can you go into details? Cal http://.calevans.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Saturday, January 13, 2001 10:19 PM To: jeremy brand Cc: [EMAIL PROTECTED] Subject: RE: [PHP] load balancing wit

RE: [PHP] PHP vs JSP

2001-01-14 Thread Cal Evans
don' get it. If you want the contract then I would go JSP. If you don't want' it/need it, walk away. Cal http://.calevans.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Sunday, January 14, 2001 9:35 PM To: PHP list Subject: [PHP] PHP

RE: [PHP] submit opens two windows/pages

2001-01-14 Thread Cal Evans
I'd do it with JavaScript. Dynamically composed JavaScript if need be. But it seems to me that it would be easier to do this on the client side. Cal http://www.calevans.com -Original Message- From: Tom Beidler [mailto:[EMAIL PROTECTED]] Sent: Sunday, January 14, 2001 2:33 PM To

RE: [PHP] PHP vs JSP

2001-01-14 Thread Cal Evans
a poorly tuned Oracle database. My $0.02, Cal http://www.calevans.com -Original Message- From: Alex Black [mailto:[EMAIL PROTECTED]] Sent: Sunday, January 14, 2001 7:02 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] PHP vs JSP http://www.zdnet.com/enterprise/stories/linux/0,12249,2646052,00.ht

RE: [PHP] simple division.. but how?

2001-01-15 Thread Cal Evans
$a= intvalue(10/3) echo($a) Cal http://www.calevans.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, January 15, 2001 12:53 PM To: [EMAIL PROTECTED] Subject: [PHP] simple division.. but how? if you want to do 10 / 3 i want it to show 3 and

[PHP] PDFLIB 3.0 PHP 4.04

2001-01-15 Thread Cal Evans
I see: ... checking whether to include Pdflib 3.x support... /usr/local/lib no ... I can't seem to figure out how to make it say YES! Any help would be greatly appreciated. Cal Cal http://www.calevans.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROT

RE: [PHP] PDFLIB 3.0 PHP 4.04

2001-01-15 Thread Cal Evans
You sir (or madam), are a god among men! Thanks for the assist. Cal http://www.calevans.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jani Taskinen Sent: Monday, January 15, 2001 3:59 PM To: Cal Evans Cc: [EMAIL PROTECTED] Subject: Re: [PHP

RE: [PHP] PHP locking up

2001-01-17 Thread Cal Evans
try a blank page with as the only line. Does that work? Cal http://www.calevans.com -Original Message- From: Phil Scopes [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 17, 2001 5:01 PM To: [EMAIL PROTECTED] Subject: [PHP] PHP locking up I have installed PHP 4.0 with Apache

RE: [PHP] String to Variable converstion

2001-01-17 Thread Cal Evans
try: http://www.zend.com/manual/function.eval.php Cal http://www.calevans.com -Original Message- From: Paul Cohen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 17, 2001 6:14 PM To: [EMAIL PROTECTED] Subject: [PHP] String to Variable converstion Hello all, I am trying to build

RE: [PHP] check null value

2001-01-23 Thread Cal Evans
I would try: if (isset($fieldname) && empty($fieldname)){ // do something here with the variable } else { $fieldname="na"; } // if (isset($fieldname) && empty($fieldname)) Cal http://www.calevans.com -Original Message- From: Jacky@lilst [mailto:[EMAIL

RE: [PHP] Non-existant folders??

2001-01-23 Thread Cal Evans
Yes, it can be done. No it's not easy. No, it's not advisable. Mixing content like that is a recipe for disaster. If you feel you absolutely must do it without creating dirs, consider putting the content of the pages in a database. Cal http://www.calevans.com -Origin

RE: [PHP] ->

2001-01-24 Thread Cal Evans
It's means that what's on the right is part of the object on the left. i.e. $myObject->myMethod(); fires the method myMethod() of the object $myObject. echo $myObject->myAttribute; displays the value of the attribute myAttribute of the object $myObject. Clear as mu

RE: [PHP] ->

2001-01-24 Thread Cal Evans
$generic is an object. Somewhere you've got a line in your code that instantiates it. (i.e. $generic = new ...) Cal http://www.calevans.com -Original Message- From: Karl J. Stubsjoen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 24, 2001 1:18 PM To: Cal Evans; PHP Mailing

RE: [PHP] how to rename a database

2001-01-24 Thread Cal Evans
mysql. Depending on your database size, this may or may not work. Cal http://www.calevans.com -Original Message- From: Fang Li [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 24, 2001 3:21 PM To: [EMAIL PROTECTED] Subject: [PHP] how to rename a database Does anyone know how to rename a dat

RE: [PHP] Function / syntax varying from version to version?

2001-01-24 Thread Cal Evans
Guessing here: Define can't take a variable. It has to have a constant. define("RUSER", 1); would compile but not give you the results you want. I'm not sure you can do what you want. have you tried: define("RUSER", '$REMOTE_USER'); Cal http://

  1   2   >