Re: [PHP] how do i get a variable type? - not that simple

2001-03-18 Thread Mark Charette
Personally I'd perform a query into MySQL and get what _it_ thinks the values should be ... before doing anything else. It allows generality in your error checking code. Look at mysql_list_fields() et al. mark C. - Original Message - From: "phpman" [EMAIL PROTECTED] To: [EMAIL

RE: [PHP] Opening a new window.

2001-12-14 Thread Mark Charette
I would use target=_blank in the anchor tag so it would work just fine _without_ javascript ... Mark C. -Original Message- From: Mehmet Kamil ERISEN [mailto:[EMAIL PROTECTED]] I would use javascript for that. --- Brandon Orther [EMAIL PROTECTED] wrote: Does anyone know how I could

RE: [PHP] Opening a new window.

2001-12-14 Thread Mark Charette
bar, or the toolbar? I was actually using little popups with jscript. If I can get rid of JS that would be great. --- Mark Charette [EMAIL PROTECTED] wrote: I would use target=_blank in the anchor tag so it would work just fine _without_ javascript ... -- PHP General Mailing List (http

RE: [PHP] printf()?

2001-12-16 Thread Mark Charette
-Original Message- From: Ray Gaylog [mailto:[EMAIL PROTECTED]] I've been using PHP for just a little while, however I have noticed somthing. In the doc's I've noticed you can do this: printf(line1 \n line2 \n); Now..this should (like C) print two seperate lines..however It

RE: [PHP] Mailling Lists

2001-12-26 Thread Mark Charette
-Original Message- From: Bogdan Stancescu [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 26, 2001 11:16 PM To: Ben Clumeck Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Mailling Lists I'm really unable to discuss the mailing-list topic because I have nil expertise in this

RE: [PHP] Re: PEAR vs PHPLIB

2001-12-28 Thread Mark Charette
From: Manuel Lemos [mailto:[EMAIL PROTECTED]] Unlike PEAR-DB and PHPlib, Metabase provides true database independence to your applications. Actually - no. Querys/conformance to specs/sequences/stored procs and more are different from DB to DB. While the abstration layers help a little, they

RE: [PHP] Re: [PHP-DEV] Re: strtok bug

2002-01-13 Thread Mark Charette
-Original Message- From: Manuel Lemos [mailto:[EMAIL PROTECTED]] Before somebody decides to repress my opinion again, Hah! That's got to be one of the funniest things I've ever read! Downloads do not imply usage, only curiosity. I've downloaded a large number of PHP class libraries

Re: [PHP] Re: Only one value.

2002-01-27 Thread Mark Charette
From: Michael Kimsal [EMAIL PROTECTED] Philip J. Newman wrote: Don't know is this is a Mysql problem or PHP, but I have a table with 100 records in it. One of the field names is $iName. When listing all the records I want only the 1st Uneak value to be displayed. For excample if

RE: [PHP] output_buffering

2002-06-23 Thread Mark Charette
What exactly are you measuring and how? -Original Message- From: James Drabb [mailto:[EMAIL PROTECTED]] Sent: Sunday, June 23, 2002 9:09 AM To: php-general Subject: [PHP] output_buffering I was running some speed tests on a page that returns 1000 records from a db and spits them into a

RE: [PHP] is there a function like javascript's window.open in PHP

2002-06-23 Thread Mark Charette
This is a common question, related to the lack of understanding of client/server architectures I believe. PHP is all server side - a browser is all client side. Servers can send data only to the browser, nothing else. The server can inquire and gather data from text files and databases, but it

RE: [PHP] Javascript to PHP?

2002-06-29 Thread Mark Charette
Or setting a cookie in JavaScript. It will be transmitted on the next page request. -Original Message- From: John Holmes [mailto:[EMAIL PROTECTED]] Sent: Saturday, June 29, 2002 3:30 PM To: 'Jed Verity'; [EMAIL PROTECTED] Subject: RE: [PHP] Javascript to PHP? Not possible. You must

RE: [PHP] Problem with SQL query

2002-07-07 Thread Mark Charette
LIMIT was not included in the SQL92 SQL standards and very few vendors implement all of SQL99; the use of ANSI standards to promote portable programs has always been beset by this kind of problems. Mark Charette Former ANSI X3H3.1 member -Original Message- From: Alberto Serra [mailto

RE: [PHP] HTTPS vs. HTTP ?

2002-07-07 Thread Mark Charette
Or, even easier and no tech, I get a low-paying job in some convenience store, and make copies of the credit card receipts. Game Over. Using a credit card anywhere involves trust. Period. End of story. -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED]] How about an even

RE: [PHP]Erik Hegreberg (Moderator)

2002-07-10 Thread Mark Charette
Of course not on an open list that's crossed to the newsgroups ... However, there's a deny list on ezmlm that the moderator can add addresses to. As a manager of a number of ezmlm mailing lists I've done that - which really infuriates the spammers - they still get the posts until they

RE: [PHP] IMAGING WITH PHP

2002-04-13 Thread Mark Charette
Since you get width height the ratio is trivial. mark C. -Original Message- From: Vins [mailto:[EMAIL PROTECTED]] Sent: Saturday, April 13, 2002 3:02 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] IMAGING WITH PHP There is nothing in there about image ratios but let me double

RE: [PHP] Convert

2002-04-18 Thread Mark Charette
How to convert string in windows-1250 to asci, I need convert special national characters to standard english characters. Discard all characters with a value over 127 (high bit set). ASCII is only defined for 7 bit encoding. Mark Charette -- PHP General Mailing List (http://www.php.net

RE: [PHP] Better standards in PHP-coding

2002-04-20 Thread Mark Charette
Hehehe. And I thought the OTBSW (One True Brace Style Wars) had passed into memory back some 10 or 15 years ago! Lo! They resurface yet again! 30 years in this business and still I hear them argue. Perhaps a cb style program for PHP so people can write any blasted style they feel like and then

RE: [PHP] phpLISTMAN

2002-04-21 Thread Mark Charette
From: Randum Ian [mailto:[EMAIL PROTECTED]] Control Panel -Add User -Delete User -Validate Email -Send Mail (HTML/Text) -Archive Mail HTML Generator -Subscription Box -Unsubscribe Box -Statistics Let's see. Double opt-in with cryptographic/time security, automatic bounce message

RE: [PHP] phpLISTMAN

2002-04-21 Thread Mark Charette
Just about all of them can have/do have simple HTML interfaces that can send data to them. I built one for ezmlm in about 20 minutes ... and then found a number of them already available. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Sun, 21 Apr 2002

RE: [PHP] setcookie()

2002-05-11 Thread Mark Charette
You've just pointed out that you're a clueless newbie, that's' all, and can't read a spec worth a whit. -Original Message- From: jtjohnston [mailto:[EMAIL PROTECTED]] Sent: Saturday, May 11, 2002 4:50 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] setcookie() Rasmus server-side /

RE: [PHP] Re: Is This Possible? (Database - PHP)

2002-05-13 Thread Mark Charette
Or read the man page on mysql_pconnect/mysql_connect ? -Original Message- From: Jochem [mailto:[EMAIL PROTECTED]] Sent: Monday, May 13, 2002 9:25 AM To: [EMAIL PROTECTED] Subject: [PHP] Re: Is This Possible? (Database - PHP) Why don't you install Mysql on your local machine and do your

RE: [PHP] Sessions Without Cookies or SID Passing...

2002-05-14 Thread Mark Charette
If it ain't foolproof then only a fool would use it ... IP addresses are just about the worst way to identify anyone. -Original Message- From: Martin Towell [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 14, 2002 8:17 PM To: 'Rasmus Lerdorf'; Matthew Walker Cc: [EMAIL PROTECTED] Subject:

RE: [PHP] Speed comparison of PHP vs. PERL (not conclusive)

2002-06-01 Thread Mark Charette
From: Jason Wong [mailto:[EMAIL PROTECTED]] Try comparing reading 10K rows from a DB using Perl and PHP would be a more useful benchmark. --- When's the last time you wrote a Web page that needed 10K rows displayed? Writing good _and relevant_ benchmarks is one of the more difficult things to do

RE: [PHP] RTRIM() - Won't accept 2nd Param

2002-07-27 Thread Mark Charette
From the man page: Note: The second parameter was added in PHP 4.1.0 -Original Message- From: Monty [mailto:[EMAIL PROTECTED]] Sent: Saturday, July 27, 2002 7:28 PM To: [EMAIL PROTECTED] Subject: [PHP] RTRIM() - Won't accept 2nd Param When I issue this command to remove any commas at

RE: [PHP] Save ability... Duplicate DB entries

2002-08-10 Thread Mark Charette
Or, of course, a selection of fields as a unique key. The insert will fail if there is an exisiting record with that key; you can interrogate the error and report on the exisitence of a duplicate record. The select/lock method is used for update purposes ('select for update' et al.), not to keep

RE: [PHP] why do i get this error please tell me?

2002-08-31 Thread Mark Charette
Ahem. Why not check out the MySQL docs for reserved words (they _are_ right there ...): http://www.mysql.com/doc/en/Reserved_words.html PHP Docs are for PHP. MySQL Docs are for MySQL. PHP != MySQL. -Original Message- From: victor [mailto:[EMAIL PROTECTED]] Sent: Saturday, August 31,

RE: [PHP] RE: [PHP-DB] RE: [PHP] why do i get this error please tell me?

2002-08-31 Thread Mark Charette
interfere with... - Victor www.argilent.com -Original Message- From: Mark Charette [mailto:[EMAIL PROTECTED]] hem. Why not check out the MySQL docs for reserved words (they _are_ right there ...): http://www.mysql.com/doc/en/Reserved_words.html PHP Docs are for PHP. MySQL Docs are for MySQL

RE: [PHP] UPDATE Query

2002-08-31 Thread Mark Charette
No, only one db at a time may be updated. The where clauses can contain multiple db. -Original Message- From: Sascha Braun [mailto:[EMAIL PROTECTED]] Sent: Saturday, August 31, 2002 7:04 PM To: PHP Mailingliste Subject: [PHP] UPDATE Query I want to know if its possible to update two

RE: [PHP] REGISTER_SHUTDOWN_FUNCTION() BUG -- Please Fix.

2002-09-17 Thread Mark Charette
Hey, Jason, since you really need this BUG fixed, and the PHP developers would welcome good, well-documented, and tested code ... Why not devote some of your precious time to helping them along? If _you_ write, document, and test the code, and then pass the code to the development team you'll

RE: [PHP] Re: Image resolution and php

2002-09-18 Thread Mark Charette
Images don't have a resolution per se; display devices have a resolution. Images (the formats you're talking about, anyway) are measured in pixel width and height. The height and width in any units other than pixels of course necessitates conversion - for an easy example, a 300x300 image on a

RE: [PHP] return the amount of records in a mysql databace

2002-09-22 Thread Mark Charette
select count(*) as n from ... where ... -Original Message- From: Philip J. Newman [mailto:[EMAIL PROTECTED]] Can someone point me in the right direction to find out how i can return the amount of records in a mysql databace ? -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] Mail problem with more than 1k users

2002-09-23 Thread Mark Charette
I've had no problems using qmail-inject and MySQL to send over 100K emails in a day. I doubt it's an MySQL problem unless you've done something drastically wrong; perhaps you're bandwidth limited? -Original Message- From: Research and Development [mailto:[EMAIL PROTECTED]] Hello. I

RE: [PHP] Encryption Question

2002-09-23 Thread Mark Charette
Just how are you going to decrypt it? Password encryption is ordinarily one-way - you have no choice. You have to compare encrypted passwords. -Original Message- From: Tom Ray [mailto:[EMAIL PROTECTED]] SI want to compare a password to a encrypted password stored in my mySQL database

RE: [PHP] getting ip address of the user.

2002-09-24 Thread Mark Charette
This comes up so very often ... The answer is - you may be able to get _an_ IP number for a machine that accesssed your site. It is meaningless as a means of identification: Proxies use 1 IP for a number of users. -Original Message- From: Anil Garg [mailto:[EMAIL PROTECTED]] hi, Can

Re: [PHP] buffers ...

2001-09-27 Thread Mark Charette
Flush() is the right call, but please note (from the manual): -- Note: flush() has no effect on the buffering scheme of your webserver or the browser on the client side. Several servers, especially on Win32, will still buffer the output from your script until it terminates before

RE: [PHP] how to move one element of an array to the end of the array

2001-10-19 Thread Mark Charette
Don't bother with doing it in PHP, do it in MySQL with a functional ordering: Select Make from your_db order by if(left(Make,7)='no make','',Make) -Original Message- From: Tom Beidler [mailto:[EMAIL PROTECTED]] Sent: Friday, October 19, 2001 11:53 AM To: php list Subject: [PHP]

RE: [PHP] Re: regular expresion

2001-10-19 Thread Mark Charette
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Richard) wrote: Hi, I want to validate that a variable only contains numbers. I came up with this code I came up with this code: is_numeric($var) mark C. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail:

RE: [PHP] Safely Storing Delivering PDFs

2001-11-25 Thread Mark Charette
If you have access to the Apache server why not set up auth-mysql as the authentication method? It checks for authentication login/password pairs out of MySQL. mark C. -Original Message- From: Miles Thompson [mailto:[EMAIL PROTECTED]] Sebastian, I believe I have to do what you do,

RE: [PHP] PHP 4.1 out?

2001-11-29 Thread Mark Charette
-Original Message- From: ~~~i LeoNid~~ [mailto:[EMAIL PROTECTED]] It could be stated on the site, or (and) tar could be re-moved. As far as I am concerned, as soon as something is placed on the web, you have no control over reference to it.. And access you can regulate of

RE: [PHP] Anyone got PHP to work under RedHat 7.2

2001-12-03 Thread Mark Charette
Yes, I have PHP running just fine under 7.2 (source compile). PHP doesn't care one whit about your browser; however, Netscape is picky (as it should be) about end tags. The most common problem when pages display under IE but not under Netscape is the lask of a /table or /tr tag. Mark C.

RE: [PHP] Something wrong with the file() command.

2001-12-03 Thread Mark Charette
From: Jose [mailto:[EMAIL PROTECTED]] $temp[]=file($y); \\ To load the file into the array. --- file() returns an array! So, you ended up with an array ($temp) with element 0 an array (returned from file() ). Read the manual very carefully ... You probably meant to say

RE: [PHP] header(Location:blah...) - passing variables

2001-12-04 Thread Mark Charette
I cheat and just include the original form on error ... Almost all my input values are set to PHP variables in the form. The 1st time through none are set, so the values are blank. After submitting the form, I check for validity. If there are errors I mark the errors, generate an error string,

Re: [PHP] Re: The future of PHP -- accessory libraries

2001-08-29 Thread Mark Charette
Considering that they haven't figured out how to use the spell checker, does it surprise you that they haven't figured out how to do an dynamic load (apxs) of PHP? Or save their last good configuration (config.status). mark C. -- The phrase computer literate user really means the person has been

Re: [PHP] RE: [PHP-WIN] Can PHP and Java work together?

2001-08-31 Thread mark Charette
From: Robin Bolton [EMAIL PROTECTED] Also, if you are considering using JavaScript to validate your form, you may want to reconsider doing it in PHP as JavaScript is easy to circumvent. I think most if not all of us doing industrial-strength Web programming for our living end up doing it at

Re: [PHP] php's future

2001-09-02 Thread Mark Charette
And, of course, the JSP was running 2 x 2 iterations, or 400,000,000 iterations, in a few seconds. Yeah, right. Intersting. I tried the following code (which gives much more detailed time info, check it out - stolen from Andrey Hristov on php-db), and my times, on our P2-266

Re: [PHP] Re: Pulling a random image

2001-09-03 Thread Mark Charette
what does that entail? Rasmus Lerdorf [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Why not just configure your server to use an auto_prepend_file ? Reading the documentation that's easily available. -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Sending Broadcast Email - will a large loop cause a crash?

2001-09-06 Thread Mark Charette
From: Miles Thompson [EMAIL PROTECTED] Well, try it - find a willing victim and just do a simple loop. Alternately, set up an account with a local, high-bandwidth ISP, batch in groups of 330-, and use BCC. Miles At 04:16 PM 9/6/01 -0700, Fotwun wrote: Hi, I need to send a broadcast

Re: [PHP] for loop changes?

2001-09-14 Thread Mark Charette
From: Michael Gerholdt [EMAIL PROTECTED] I want the week and month days to have leading zeros - how can I make the new environment replicate the old? Loop using the numeric but use printf for the formatting (which is really what you should have used originally). Refer to the manual for the

Re: [PHP] Protecting variables and functions? Like C#

2001-09-19 Thread Mark Charette
- Original Message - From: Tim [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 19, 2001 9:35 AM Subject: Re: [PHP] Protecting variables and functions? Like C# Private methods and variables are necessary for any serious language that supports class libraries, IMHO.

Re: [PHP] PC MAG article

2001-05-09 Thread Mark Charette
Considering Websphere/EJB was mentioned ... Where's the BEA Weblogics review -- 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] mysql: UPDATE statment

2001-05-10 Thread Mark Charette
Reading the MySQL manual on the UPDATE statement (my, what a concept - actually looking at a manual, especially when you have no clue ...) would show you that your statement is invalid and why. Something about using a set column-name=data rather than an invalid values() statement. Mark C. -

Re: [PHP] PHP, Templates, XSLT

2001-07-03 Thread Mark Charette
From: Leonardo Dias [EMAIL PROTECTED] Anyways, has anyone experienced it with Sablotron? Yes. How did you like it? Worked as advertised. Which is a bear sometimes - but that's due to XML limitations, not Sablotron's fault. Was it any good? Yup. Is it fast enough for big websites? Well,

Re: [PHP] Determining the length of a string

2001-07-07 Thread Mark Charette
Hmmm ... If I didn't know something like that I'd probably do something stupid like go to http://www.php.net, type in string or length for a keyword in the Search box, look at what came back (including the function strlen) and explore the other calls nearby, too. Mark C. - Original Message

Re: [PHP] Restoring a Dump File With PHP

2001-07-07 Thread Mark Charette
How does this _not_ work (as long as you supply the path to mysql, the username, and the password mark C. - Original Message - From: Chris Anderson [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, July 07, 2001 3:25 PM Subject: [PHP] Restoring a Dump File With PHP I created

Re: [PHP] PHP map?

2001-07-07 Thread Mark Charette
Start at ftp://sepftp.stanford.edu/pub/World_Map/ which is a copy of the CIA world data. http://hjem.get2net.dk/bnielsen/ciaworld.html gives some info for conversion of the cbd format to lat/long. Projections (a science unto itself) is best left to the interested reader. It ain't as simpla as it

Re: [PHP] Getting any possible value inside an array

2001-07-07 Thread Mark Charette
$newarray=array_flip($myarray) $newarray will have unique key values made up of the second element of $myarray. Mark C. - Original Message - From: Aaron Bennett [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, July 08, 2001 12:51 AM Subject: [PHP] Getting any possible value inside

Re: [PHP] Question about how to do this...

2001-07-08 Thread Mark Charette
This is probably not a good idea if the data is mostly static. There's no real reason to use the power of a db engine for something this trivial, and static serving will be faster than a DB system. Mark C. - Original Message - From: Ben Bleything [EMAIL PROTECTED] To: [EMAIL PROTECTED];

Re: [PHP] Global Variables -- why not have them?

2001-07-08 Thread Mark Charette
I dislike the GLOBAL statement in that many of the bugs that get me scratching my head are to do with when I have forgotten to use it. Then you're probably using it way too often. Global scope variable are inherently dangerous and cause more problems than they're worth. I've been in this

Re: [PHP] easy mysql question

2001-07-08 Thread Mark Charette
On Sunday 08 July 2001 21:48, [EMAIL PROTECTED] wrote: Since I first made the tables for my site I've had to modify them quite a bit. I always keep a copy of the commands I used to make the tables in case I need to move a site. Is there a way to ask mysql to list the create table commands?

Re: [PHP] Download function for php

2001-07-09 Thread Mark Charette
To download a file from the server needs no special magic - just a link to the file. Mark C. - Original Message - From: Mark Lo [EMAIL PROTECTED] To: php general [EMAIL PROTECTED] Sent: Monday, July 09, 2001 9:36 AM Subject: [PHP] Download function for php Hi, Is there any php

Re: [PHP] stripping white space?

2001-07-09 Thread Mark Charette
From: Maxim Maletsky [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, July 10, 2001 1:05 AM Subject: RE: [PHP] stripping white space? I think it IS a good practice if you only practicing HTML to be outputted by PHP. Why, if you know that it's illegal XHTML and XML,

Re: [PHP] Web application?

2001-07-14 Thread Mark Charette
From: Christopher Ostmo [EMAIL PROTECTED] The lack of transactions can easily be overcome by proper programming logic. That, unfortunately, is totally untrue if there's the possibility of more than one person manipulating data at one time on tables. The old fashioned way of locking all

Re: [PHP] sending to large mailing list

2001-07-16 Thread Mark Charette
From: Adrian Teasdale [EMAIL PROTECTED] The idea is that this database will expand to quite a few thousand in the near future and I want to know that we'll be able to handle it :) The problem is that I cleverly added the feature that each email has a salutation which personalized to the

Re: [PHP] Bad Practices

2001-02-13 Thread Mark Charette
From: "Philip Olson" [EMAIL PROTECTED] They're very useful. Also, regarding SQL, don't do "SELECT * ..." all the time as it's overkill if not all fields are being used. And, in fact, doing a "SELECT *" ends up precluding most optimizations within a query engine! Selecting only what you really

Re: [PHP] what is quicker...

2001-02-15 Thread Mark Charette
And why, pray tell, son't you determine the quicker of the 1st 2 empirically? It's not very hard to roll time a loop ... and then you won't have 10 different people guessing the answer. Mark C. "When the unknown is thought to be unknowable, gaps in knowledge are too readily filled by fancy, so

Re: [PHP] PostgreSQL vs InterBase

2001-03-01 Thread Mark Charette
From: "Shaun Thomas" [EMAIL PROTECTED] The point about Oracle is that it *lets* you do all of those optimizations, and if you're good at it, it will outperform almost any other database you throw at it. Trust me on this one. I'm sorry, I can't trust you very much on this. Having worked as a

Re: [PHP] if statement with or comparison (newbie)

2006-09-09 Thread Mark Charette
Robert Cummings wrote: On Fri, 2006-09-08 at 18:38 -0400, tedd wrote: At 5:03 PM -0400 9/8/06, JD wrote: In all of the answers given thus far, no one mentioned that the use of $_REQUEST has a security issue with regard to where the $_REQUEST originated. $_REQUEST is an array

Re: [PHP] if statement with or comparison (newbie)

2006-09-09 Thread Mark Charette
Stut wrote: Mark Charette wrote: However, looking at it from a 'knowing early the data is tainted' perspective, not from a 'validating and cleaning perspective', if you have coded that (for instance) a variable is set via COOKIE, then only looking for that variable set via COOKIE

Re: [PHP] if statement with or comparison (newbie)

2006-09-09 Thread Mark Charette
Robert Cummings wrote: On Sat, 2006-09-09 at 11:30 -0400, Mark Charette wrote: Stut wrote: Mark Charette wrote: However, looking at it from a 'knowing early the data is tainted' perspective, not from a 'validating and cleaning perspective', if you have coded that (for instance

Re: [PHP] Re: Reducing size of htm output

2005-05-07 Thread Mark Charette
M. Sokolewicz wrote: Rory Browne wrote: What might be more useful is stripping out comments, If you don't use javascript it is simply a case of replacing all !-- anything -- with a blank space. If you do though it's more complicated since it is considered good practice to place js inside !--

Re: [PHP] PHP vs. ColdFusion

2005-07-01 Thread Mark Charette
Stéphane Bruno wrote: Once you get to do very advanced things, you need to code using Object Oriented approaches, modular programming, web services, etc. which both products allow you to do. I guess those non-linear crash codes I wrote in Fortran not so many years ago aren't very advanced

Re: [PHP] email to db

2006-02-25 Thread Mark Charette
chris smith wrote: On 2/25/06, Mark [EMAIL PROTECTED] wrote: Does anyone know if its possible or how difficult it would be to have a user send an email from outlook express to a websites mysql database and update records. You could write a script to parse the email and do the update.

Re: [PHP] Include Problem

2006-04-15 Thread Mark Charette
Shaun wrote: Warning: main(/cms/templates/footer.php): failed to open stream: No such file or directory in /home/m/y/mysite/public_html/cms/news/index.php on line 38 Most assuredly the file isn't there (do you have the include path set?) or the permissions are not sufficient to open the

Re: [PHP] Creating an OO Shopping Cart

2006-05-03 Thread Mark Charette
Chris W. Parker wrote: I'm definitely open to suggestions on how we can minimize our customers' risk At least run GPG on the data immediately, keep the private key somewhere other than on the server, and decrypt only for the moment its needed. -- PHP General Mailing List

Re: [PHP] What means Fatal error: pcntl_fork(): Error 11?

2006-05-04 Thread Mark Charette
Oz wrote: First I wanted to create a queue for tasks; instead of forking directly only a limited number of processes should be run from the queue, when one finishes another should start. But I decided not to do this, because the queue can easily grow to reach the memory limit. If the queue

Re: [PHP] GET, POST, REQUEST

2006-06-17 Thread Mark Charette
Satyam wrote: In general, user input should never be trusted. Someone once told me that if you ask for yes or no, you should always validate for yes, no and don't know (of course, this was before windowed environments where the users can only click what you offer them). Users can submit

Re: [PHP] Re: Email Validation built-in? RFC

2005-10-24 Thread Mark Charette
Ben Litton wrote: You could certainly write an extension to do so. That's what I did (mostly I was writing one for another purpose and added a function I stole from O'Reilly. As you stated in your article, it isn't rfc822 compliant (it isn't even close). Richard was pretty specific in

Re: [PHP] What software do you use for writing PHP?

2005-12-07 Thread Mark Charette
TECO rox! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] help register domain name

2006-01-05 Thread Mark Charette
Al wrote: John Nichel wrote: n.g. wrote: hi, i want to register a domain name through NetworkSolutions.com, but it require a credit card which i dont have to pay the bill. if you have a credit card, i can transfer to your account, and then you please regiter the domain using my info. or

Re: [PHP] Re: Clone of the concurrent users limit of Zend Encoder 4.0 ?

2006-02-12 Thread Mark Charette
Let me give an example: on fileplanet.com, they have something so called download slot and lines. They limit the number of concurrent downloads. If there are too many users, they will disallow new user to download their files. As I know, they do it with custom HTTP server. Not so custom

Re: [PHP] Searching for array keys

2001-05-03 Thread Mark Charette
What's the best way of finding out if a specific array key is in an array? I have an associative array which *may* look like (car =saab, house = mansion, countyW= A) but can equally well look like (boat = daycruiser, house = flat, county = B). I want to find out if the key car is

Re: [PHP] cache engine

2005-03-05 Thread Mark Charette
Evert - Rooftop Solutions wrote: I heard that shared memory is actually slower than writing and reading a file and it is not available on windows systems. Hmmm ... that's an interesting thing you heard concerning shared memory. Care to share _who_ told you that? I'd like to make sure I don't

Re: [PHP] cache engine

2005-03-05 Thread Mark Charette
Evert - Rooftop Solutions wrote: Check it out, is in old article, but it says |shm| -- The |shm| container stores the cached data in the shared memory. Benchmarks indicate that the current implementation of this container is much slower than the |file| container. Which, of course, is miles away

Re: [PHP] WORK WITH PHP FILES REMOTELY WITH NotePad ? YES/NO ?

2005-03-19 Thread Mark Charette
Leonidas Savvides wrote: ATTENTION: I DO NOT MEAN SAVE IT TO MY HDD FIRST AND AFTER UPLOAD IT !!! TELL ME THIS SAMELY FOR Dreamweaver MX ? Not in PHP. It's a client side trick (done with machine and/or OS specific code). Even Web-based Documentum (eRooms) uses a staging directory on the users

Re: [PHP] PHP vs ASP .NET

2005-04-23 Thread Mark Charette
Reynier Perez Mira wrote: Hi list: I have a problem with ASP .NET community in my Universty and I need to solve it. The thing is that they say me that ASP .NET is better than PHP, so I need information to response they about this theme. Can you put me some sites, statics, intrview to big

Re: [PHP] case statement?

2002-12-19 Thread Mark Charette
On Thu, 19 Dec 2002, Max Clark wrote: Hi- I was wondering if php had a case function? Instead of building a large if/elseif/else block I would like to do a case $page in (list). The documentation and search capabilities at http://www.php.net are your frientd. It would behhove you to at

RE: [PHP] Sessions and AOL

2003-01-03 Thread Mark Charette
From: Gerard Samuel [mailto:[EMAIL PROTECTED] I was wondering, if for example, an AOL user browses your site that uses php sessions, do the session ids change when they hop ip addresses? No. Sessions are not (or should not be!) tied to IP numbers. Im looking for a better way to

RE: [PHP] Perl PHP

2003-01-05 Thread Mark Charette
The first line of the script had the magic incantation: #!/usr/local/bin/perl (or something very similar) which makes the leading 'perl' superfluous. PHP scripts can be made into self executing scripts in a similar fashion if the 1st line looks like: #!/path/to/the/php/command/line/executable

RE: [PHP] mysql_num_rows() error

2003-01-09 Thread Mark Charette
And which database are you using?? (hint - mysql_select_db() might be a good idea ...) -Original Message- From: Phil Powell [mailto:[EMAIL PROTECTED]] Anyone know why this is happening? I have mySQL on Win2000 Server with IIS and PHP: -- PHP General Mailing List

RE: [PHP] sending array

2003-01-15 Thread Mark Charette
You know, if you actually looked at the link you've created you'd find your answer ... -Original Message- From: D.M. van Gladbach [mailto:[EMAIL PROTECTED]] There not much in there because I strip it for testing. test1.php ? $org[index-A]=1701; $org[index-B]=1209; print

RE: [PHP] GD jpg thumbnail - ugly discollored

2003-01-25 Thread Mark Charette
make sure you use: ImageCreateTrueColor() to create the thumbnail image and ImageCopyResampled() when you copy the image. Mark C. -Original Message- From: Victor [mailto:[EMAIL PROTECTED]] I have a script that takes uploaded images (jpeg only) and makes proportionate thumbnails

RE: [PHP] Masive mail Advice

2003-01-25 Thread Mark Charette
It is incredibly easy to write a short little php script that edits a template and submits it directly to qmail-inject; if you're using qmail already php mail()/sendmail is just a wrapper to qmail-inject. I use qmail-inject directly because it allows me to write my own VERP and process bounces

RE: [PHP] Using MySQL user variables in PHP

2003-01-26 Thread Mark Charette
-Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED]] 2. $tempQuery1 = SELECT @most_recent:=MAX(date) from presenters; $tempQuery2 = SELECT @recent_presenter:=presenter FROM presenters WHERE date=@most_recent; $presenterQuery =

RE: [PHP] Re: Masive mail Advice

2003-01-26 Thread Mark Charette
-Original Message- From: Manuel Lemos [mailto:[EMAIL PROTECTED]] That number of messages is small and with today's servers you can queue that volume of personalized is less than a minute. Your problems will start as you enter in the tens of thousands of recipients, not because qmail

RE: [PHP] Re: Masive mail Advice

2003-01-26 Thread Mark Charette
-Original Message- From: Manuel Lemos [mailto:[EMAIL PROTECTED]] On 01/26/2003 08:22 PM, Mark Charette wrote: -Original Message- From: Manuel Lemos [mailto:[EMAIL PROTECTED]] That number of messages is small and with today's servers you can queue that volume

RE: [PHP] Re: Associative vs normal arrays

2003-02-02 Thread Mark Charette
All arrays in PHP are associative; we sometimes use integers to refer to them, but the order of the array internally is not necessarily the same as the integers; indeed, any array can have holes in them. So the question is moot. There are no different indexed and associative array types in PHP,

RE: [PHP] I'm really getting annoyed with PHP

2003-07-23 Thread Mark Charette
From: Beauford.2005 [mailto:[EMAIL PROTECTED] It's obvious though that PHP can not handle it. Since thousands of people and websites use the header() function without your problems ... It's obvious at this point you've got a bug and can't figure out how to fix it, even though you've been

RE: [PHP] Help with Apache

2003-07-26 Thread Mark Charette
-Original Message- From: Corey Edwards @ Dreamstar Computer Software I finally set up an Apache Web Server. I didn't realize you needed that to run php until now. That's only true if you need to serve Web pages; php runs fine from the command line ... -- PHP General Mailing List

RE: [PHP] Too Advanced? Re: Cookies Hidden Image

2003-09-05 Thread Mark Charette
From: Nicole [mailto:[EMAIL PROTECTED] Thanks. The cookie sets fine using the redirect. The problem is accessing the cookie when the script is called via the image tag. If the script is called directly, the cookie is accessible. Images have their own connection (which is why you can see a

RE: [PHP] How do I replace browser history using Header()?

2003-06-14 Thread Mark Charette
-Original Message- From: Neil Freeman [mailto:[EMAIL PROTECTED] Is there any way that I can do a PHP Header() statement that does the equivalent of JavaScript's window.self.location.replace(http://www.mysite.com/mypage.php;)? No. JavaScript (if turned on) is your only choice.

  1   2   >