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 around

RE: [PHP] Function - Sending URL's

2001-01-11 Thread Cal Evans
There's a couple points here: 1: echo isn't what you want to do. You want to RETURN the value from you function. Try this: ? function testPassVar($url) { $name = "TEST"; echo "a href=\"$url\"Click/a"; return "a href=\"$url?name=$name\"Click/a"; } $url = 'asdfasdf.php3'; $newURL =

RE: [PHP] Function - Sending URL's

2001-01-11 Thread Cal Evans
ue; } $newURL = testPassVar("http://www.calevans.com?test=one","name","Cal"); Cal http://www.calevans.com -Original Message- From: Abe [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 11, 2001 3:51 PM To: Cal Evans; [EMAIL PROTECTED] Subject: Re:

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 To: [EMAIL

[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]; [EMAIL

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. Pretty soon we're

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

2001-01-13 Thread Cal Evans
PROTECTED]] Sent: Saturday, January 13, 2001 2:20 PM To: Cal Evans Cc: [EMAIL PROTECTED] Subject: RE: [PHP] load balancing with php/apache? We have a centralized DB server. Sessions are handled by us, the programmers, not the cluster. Jeremy Jeremy Brand :: Sr. Software Engineer :: 408-245-9058

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

2001-01-14 Thread Cal Evans
From everything I know, this can't be done easily. The only way I can think of to do it is to keep both sessions alive so that you still have a connection to the browser from the server. This is not real good. I would instead, explore options using JavaScript. I think I can see a couple of

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 with

RE: [PHP] PHP vs JSP

2001-01-14 Thread Cal Evans
Greetings Henti, While I personally prefer working I PHP after having just finished leading a team of developers on a large JSP project, I would advise you to use the technologies that your client is most comfortable with. Especially if they understand that it will cost more and are willing to

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: php

RE: [PHP] PHP vs JSP

2001-01-14 Thread Cal Evans
Actually, I understand what he's trying to say, even if I don't agree with him. The main problem people have had with load balancing is sessions. If a particular scripting language *cough*ASP stores session information in memory then the load balancing system has to always send the session from

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
Has anyone gotten PHP 4.04 to compile with PDFLIB support? I have successfully compiled pdflib and all of it's supporting libs. (It runs the tests that come with it) But when I ./configure php, I use: ./configure --with-pdflib=/usr/local/lib And in the output of configure I see: ...

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 ?PHP echo(phpinfo()); ? 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

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 PROTECTED]] Sent: Tuesday,

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 -Original Message-

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 mud? ;) Cal

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 List

RE: [PHP] how to rename a database

2001-01-24 Thread Cal Evans
Step 1: Ask this question on the MySQL mailing list. :) (Sorry, I couldn't resist) The easiest way I can think of is to use MySQLDump to dump the schema and data, delete the original database, change the output of mysqldump to reflect the new database name and pump it back into mysql.

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://www.calevans.com -Original Message-

RE: [PHP] PHP/MySQL Question

2001-03-10 Thread Cal Evans
Select * from table limit 5; http://www.calevans.com -Original Message- From: Kath [mailto:[EMAIL PROTECTED]] Sent: Saturday, March 10, 2001 6:01 PM To: [EMAIL PROTECTED] Subject: [PHP] PHP/MySQL Question Having some problems with syntax. If I wanted to SELECT only 5 instances of

RE: [PHP] reset in mysql?

2001-03-12 Thread Cal Evans
run it in a CRON job. Cal http://www.calevans.com -Original Message- From: McShen [mailto:[EMAIL PROTECTED]] Sent: Monday, March 12, 2001 10:28 PM To: [EMAIL PROTECTED] Subject: [PHP] reset in mysql? hi I have a database which tracks how many hits a website has sent me. I wanna

RE: [PHP] How do I get Variables out of a string?

2001-03-16 Thread Cal Evans
urldecode it first. Then explode it. Cal http://www.calevans.com -Original Message- From: Shawn Pritchard [mailto:[EMAIL PROTECTED]] Sent: Friday, March 16, 2001 10:16 AM To: [EMAIL PROTECTED] Subject: [PHP] How do I get Variables out of a string? Hello! I have been bashing my head

RE: [PHP] Can you recommend an ISP with the following?

2001-03-16 Thread Cal Evans
Have you looked at www.webmin.com? Cal http://www.calevans.com -Original Message- From: John Huggins [mailto:[EMAIL PROTECTED]] Sent: Friday, March 16, 2001 10:16 AM To: Jamie Jackson; [EMAIL PROTECTED] Subject: RE: [PHP] Can you recommend an ISP with the following? You mention a

RE: [PHP] Move data from one MySql table to another?

2001-03-22 Thread Cal Evans
Probably on the MySQL list. This is the PHP. (This is arguments,abuse is down the hall.) Try: http://www.mysql.com/documentation/lists.html Cal http://www.calevans.com -Original Message- From: YoBro [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 22, 2001 5:20 PM To: [EMAIL

RE: [PHP] Move data from one MySql table to another?

2001-03-22 Thread Cal Evans
Technically, that would be a COPY. The original data would still be there. To do a MOVE he would need to issue a delete in old_table after confirming that the insert into new_table succeeded. HTH, Cal http://www.calevans.com -Original Message- From: James Atkinson [mailto:[EMAIL

RE: [PHP] Hello $variable, whats your name?

2001-03-22 Thread Cal Evans
If it's in some kind of collections, you could iterate through the collection. ($HTTP_POST, $HTTP_GET, any associative array, etc.) Cal http://www.calevans.com -Original Message- From: JCampbell [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 12, 2000 6:06 PM To: Main PHP List

RE: [PHP] security

2001-03-22 Thread Cal Evans
check HTTP_REFERER. If it's not your server. toss it. It's not the most secure way but check the page, there are other variables you can use to accomplish the same thing. http://www.php.net/manual/en/language.variables.predefined.php Cal http://www.calevans.com -Original Message-

RE: [PHP] Array Cleansing

2001-03-23 Thread Cal Evans
One way to do it is to spin through the original array using a for/next loop and build a second array of only the rows you want to keep. Then, rename the new array to the old array. ($oldArray = $newArray;) Cal http://www.calevans.com -Original Message- From: [EMAIL PROTECTED]

RE: [PHP] security

2001-03-23 Thread Cal Evans
, March 23, 2001 12:51 PM To: 'Cal Evans'; Randy Johnson; [EMAIL PROTECTED] Subject: RE: [PHP] security check HTTP_REFERER. If it's not your server. toss it. It's not the most secure way but check the page, there are other variables you can use to accomplish the same thing. Even

RE: [PHP] Array Cleansing

2001-03-23 Thread Cal Evans
Try: if (!empty($work[$loop])) Cal http://www.calevans.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, March 23, 2001 2:07 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Array Cleansing This is the code I'm currently

RE: [PHP] equivalent to PERL's qq

2001-03-26 Thread Cal Evans
$this = "Select * From xsdfs Group by date Order by id"; Should work. Cal http://www.calevans.com -Original Message- From: Michael Hall [mailto:[EMAIL PROTECTED]] Sent: Monday, March 26, 2001 1:36 PM To: [EMAIL PROTECTED] Subject: [PHP] equivalent

RE: [PHP] Q: php.ini

2001-03-28 Thread Cal Evans
Did you bounce Apache after saving the change? Cal http://www.calevans.com -Original Message- From: Joe Rice [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 28, 2001 10:34 AM To: [EMAIL PROTECTED] Subject: [PHP] Q: php.ini Hi, I made a change to my php.ini and phpinfo()

RE: [PHP] Size Limit for PHP scripts

2001-03-30 Thread Cal Evans
If there is, I've not found it. I have many pages that include files that contain class definitions. My average page includes 8 classes and my average class is 250-400 lines of code. Have you debugged your individual scripts first before including them in other pages? Cal

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

2002-02-26 Thread Cal Evans
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 PROTECTED]] Sent: Tuesday, February 26, 2002 10

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

[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: Edward van

RE: [PHP] PHP on Pocket PC

2002-02-27 Thread Cal Evans
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 AM To: php

RE: [PHP] intranet security

2002-02-27 Thread Cal Evans
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: [PHP] intranet security I am

RE: [PHP] novice question

2002-02-28 Thread Cal Evans
Sumthin like this... ?PHP $a=10; $b=20; echo add($a,$b) function($one, $two){ return $one + $two } // function($one, $two) ? * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: me us [mailto:[EMAIL PROTECTED]] Sent: Wednesday

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.com * -Original

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
statement $ns1 = doubleval(number_format(rand(900,1200)*1000)) ; $cogs1 = doubleval(number_format(rand(450,600)*1000)) ; $gm1 = doubleval(number_format (($ns1 - $cogs1) * 1000)); echo '1:'.$ns1.\n; echo '2:'.$cogs1.\n; echo '3:'.$gm1.\n; ? * * Cal Evans * Journeyman Programmer * Techno-Mage * http

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: Monday

RE: [PHP] permissions

2002-03-04 Thread Cal Evans
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]] Sent: Monday

RE: [PHP] ?include?... another dumb question

2002-03-05 Thread Cal Evans
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] ?include?... 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 [mailto

RE: [PHP] Homesite 5.0 and PHP

2002-03-09 Thread Cal Evans
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 * http://www.calevans.com

RE: [PHP] which linux?

2002-03-09 Thread Cal Evans
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 * http://www.calevans.com

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

2002-03-31 Thread Cal Evans
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, 2002 6:26 PM To: [EMAIL

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

2002-03-31 Thread Cal Evans
then not 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 * -Original

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
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 * -Original Message- From: Chris

RE: [PHP] Issues with long SQL inserts

2002-03-31 Thread Cal Evans
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: [EMAIL PROTECTED] Subject

RE: [PHP] Issues with long SQL inserts

2002-03-31 Thread Cal Evans
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: [EMAIL PROTECTED] Cc: [EMAIL

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

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

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
:// 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 topic, but it deals

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] Subject: [PHP

RE: [PHP] Populate Popup Menu from Database

2002-06-29 Thread Cal Evans
='departmentID' ?PHP //While !EOF ? ?PHP option value=PHP echo $rs-fields['departmentID']; ?PHP echo $rs-fields['departmentName']; ? ? ?PHP // loop ? /SELECT =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: Mike Tuller [mailto

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. * * Cal

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:[EMAIL

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= * * Cal Evans

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

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

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? -Original

RE: [PHP] html entry within XML database

2002-07-13 Thread Cal Evans
As a general rule of thumb you should ALWAYS validate the information posted as a form before sending it on to whatever backend you are using. =C= * * Cal Evans * The Virtual CIO * http://www.calevans.com * -Original Message- From: William S. [mailto:[EMAIL PROTECTED]] Sent: Saturday

RE: [PHP] How come this will echo No or nothing?

2002-07-13 Thread Cal Evans
because $row['plevel'] is NEVER == '0' It is probably == 0 though. (note the missing quotes. ) :) HTH, =C= * * Cal Evans * The Virtual CIO * http://www.calevans.com * -Original Message- From: JJ Harrison [mailto:[EMAIL PROTECTED]] Sent: Friday, July 12, 2002 11:01 PM To: [EMAIL

RE: [PHP] How come this will echo No or nothing?

2002-07-13 Thread Cal Evans
Have you done a var_dump on $row to make sure that plevel exists? =C= * * Cal Evans * The Virtual CIO * http://www.calevans.com * -Original Message- From: JJ Harrison [mailto:[EMAIL PROTECTED]] Sent: Friday, July 12, 2002 11:11 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] How come

RE: [PHP] Newbie question

2002-07-13 Thread Cal Evans
++ is an incrementor. $i=1; $i++; echo $i; =C= p.s. -- is a decrementor. * * Cal Evans * The Virtual CIO * http://www.calevans.com * -Original Message- From: Jay [mailto:[EMAIL PROTECTED]] Sent: Saturday, July 13, 2002 8:32 PM To: [EMAIL PROTECTED] Subject: [PHP] Newbie question

RE: [PHP] How come this will echo No or nothing?

2002-07-13 Thread Cal Evans
off the top of my head, I'd suggest : if(intval($row['plevel']) == 0){ Grasping at straws here but you've moved beyond a simple question into a debigging process. (Which doesn't work too well for email.) Sorry I couldn't be of more help. =C= * * Cal Evans * The Virtual CIO * http

RE: [PHP] Alley-OOP! ... or not?

2002-07-15 Thread Cal Evans
interaction) or an abstraction of a physical object (Person, Invoice, Order) then I use object. The code in the page mainly creates objects and manipulates them. HTH, =C= * * Cal Evans * The Virtual CIO * http://www.calevans.com * -Original Message- From: Martin Clifford [mailto:[EMAIL

RE: [PHP] Accessing Ports

2002-07-18 Thread Cal Evans
No. No. PHP runs on the server. It knows nothing of the client. =C= * * Cal Evans * The Virtual CIO * http://www.calevans.com * -Original Message- From: Thomas omega Henning [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 18, 2002 5:33 AM To: [EMAIL PROTECTED] Subject: [PHP

RE: [PHP] Banner Ad Serving...

2002-07-23 Thread Cal Evans
Tell apache that .html files are to be served through php * * Cal Evans * The Virtual CIO * http://www.calevans.com * -Original Message- From: Dave at Sinewaves.net [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 23, 2002 11:00 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] Banner Ad

RE: [PHP] globals in functions

2002-04-13 Thread Cal Evans
; } } // 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 [mailto:[EMAIL PROTECTED]] Sent: Saturday

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

2002-04-13 Thread Cal Evans
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 Programmer * Techno-Mage * http

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 Walker

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

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- From: Joshua

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 * Techno

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
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' Hello all I

RE: [PHP] javascript and PHP

2002-04-29 Thread Cal Evans
';) 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 To: [EMAIL PROTECTED

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
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 Security Sorry

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 Programmer * Techno

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- From: Jason

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] Subject: [PHP

  1   2   >