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

<    1   2