RE: [PHP] About Speech

2002-11-30 Thread Mark Charette
> -Original Message- > From: Ing. Raúl González Rodríguez [mailto:[EMAIL PROTECTED]] > > I need to know if it's possible generate a wav, mid or mp3 file > from php. You could write a custom interface to _generate_ the file (MIDI is _very_ different than the other two types; are you sure yo

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

RE: [PHP] Mass Mailing

2002-12-21 Thread Mark Charette
In almost all cases the number of mail messages/time unit sent is a function of bandwidth, not CPU; my Pentium II 250Mhz machine saturates a 768K SDSL line no problem at all. Mark C. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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 coun

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 (http:/

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

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 thumbnail

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 agai

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; > > $pre

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

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

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] URGENT HELP NEEDED - After Upgrade to MySQL 4.0.1.2

2003-02-13 Thread Mark Charette
> -Original Message- > If it worked before then obviously the path is fine, > unless something has changed. Obviously something changed if it worked on 2 other servers. Check all your logs. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsu

Re: [PHP] mysql query manipulation vs php results manipulation

2003-02-19 Thread Mark Charette
On Wed, 19 Feb 2003, Larry Brown wrote: > How do you determine whether or not it is faster/more efficient to run a > complicated query or to run multiple simple queries and join / manipulate > the results with PHP? By empirical methods ... -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] Switch Statement || Case with multiple values?

2003-03-02 Thread Mark Charette
Check the manual: switch($foo) { case "fee": case "fie": ... break; case "fo": ... case "fum": ... break; } fee & fie are tied together, fie will also run the code presented by fum ...

RE: [PHP] Switch Statement || Case with multiple values?

2003-03-02 Thread Mark Charette
Duh. make that "fo" will also run the code presented by "fum" ... > -Original Message- > From: Mark Charette [mailto:[EMAIL PROTECTED] > > switch($foo) > { > case "fee": > case "fie"

Re: [PHP] Re: Red Hat 9, Apache 2, and PHP

2003-07-03 Thread Mark Charette
Apache 2.x.x IS a production quality server, just not with PHP. Works great with Tomcat, mod_jk2, Struts, etc. - Original Message - From: "Shena Delian O'Brien" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, July 03, 2003 8:04 PM Subject: Re: [PHP] Re: Red Hat 9, Apache 2, an

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 gi

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

RE: [PHP] $_SERVER[REMOTE_ADDR]

2003-04-02 Thread Mark Charette
> -Original Message- > From: thomas [mailto:[EMAIL PROTECTED] > > $_SERVER["REMOTE_ADDR"] > > If the user have a proxy the real IP is: > $_SERVER["HTTP_X_FORWARDED_FOR"] Maybe. If it's set and is set correctly. Even then: How are 127.0.0.1 or 192.168.1.1 going to help you, supposing that

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 choic

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, 200

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

2002-08-31 Thread Mark Charette
y filed that those words might 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 Doc

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 d

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 sta

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 1200

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 unsubs

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 wrote

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 usin

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 i

RE: [PHP] Predefined variables not set?

2002-10-13 Thread Mark Charette
In this context it makes no difference whether or not " or ' is used (" allows variable substitution within the quoted string, ' does not) since there's no substitution taking place. Insert a phpinfo() in the top of your code to see all the variables that _are_ being set. -Original Message--

RE: [PHP] How many is too many?

2002-10-25 Thread Mark Charette
I'm storing somewhere over 100,000 separate articles on my site, using ht://dig to index them. They're organized as //MM/nn. No performance problems to speak of on a pretty popular non-commercial site (2-3 pageviews/sec, 24x7) whether they just browse through the directories or or use ht://

RE: [PHP] MySQL and images

2002-10-29 Thread Mark Charette
There are times, especially in highly dynamic situations, where backing up and restoring of images and metadata from a database or for security reasons, where storing the images within a database makes real sense. Separating the physical storage areas for the two types of data (metadata & images) a

RE: [PHP] Re: File Random Access

2002-10-30 Thread Mark Charette
-Original Message- From: David Robley [mailto:robleyd@;paradise.net.nz] I'm going to stick my neck out here - as I understand it, this is not an omission in php, rather it is a restriction of the underlying OS/file system. To the best of my knowledge, neither the FAT based system of M$DOS

RE: [PHP] Re: XSLT Sablotron output

2002-11-03 Thread Mark Charette
There's nothing to "solve"; without the complete XML doc & the XSL stylesheet, there's no way to know if in fact everything is being parsed as expected. I don't know if it's CDATA, xsl:text, a strip-spaces directive, etc. And ... I'd expect anyone using XML & XSL to double check and re-reference al

RE: [PHP] Wildcard search

2002-11-08 Thread Mark Charette
> -Original Message- > From: Mako Shark [mailto:phpman2000@;yahoo.com] > do I have to do a > readdir() and read the filename of every file until I find an > HTML or until all files have been read. This is what the shell expression supplied by Marco Tabini actually does; doing it in PHP (re

RE: [PHP] Fractions

2002-11-16 Thread Mark Charette
You gotta be kidding me, no? When did you learn decimals? I think I started by 3rd or 4th grade ... -Original Message- From: Stephen [mailto:[EMAIL PROTECTED]] Sent: Saturday, November 16, 2002 1:36 PM To: PHP List Subject: [PHP] Fractions I'm wanting to make a simple PHP scri

RE: [PHP] Fractions

2002-11-16 Thread Mark Charette
Well, seeing as you're in the 7th or 8th grade (at least according to your Website) - my sincere apologies ... Just use 5.0/9.0 in your formula. Mark C. -Original Message- From: Stephen [mailto:[EMAIL PROTECTED]] Sent: Saturday, November 16, 2002 1:36 PM To: PHP List Subject: [P

Re: [PHP] Unlink

2002-11-20 Thread Mark Charette
On Wed, 20 Nov 2002, JohnMeyer wrote: > Does unlink work with wildcards e.g unlink("somefile*.*"); No. unlink() is a thin veneer on the system unlink() call. Wildcard expansion like you have it is done by a shell glob function. You would need to replicate what the shell does - use it as a regul

RE: [PHP] Ip address as 32bit int?

2002-11-22 Thread Mark Charette
> From: Noodle Snacks [mailto:[EMAIL PROTECTED]] > the reason I ask is because it is alot more efficient space wise > in a db to > be storing a 32bit number rather that a char or varchar field. While it is more efficient space-wise (4 bytes vs. 12 bytes), the price of the additional disk storage

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 w

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 refr

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 Ser

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 eve

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 unsubsc

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

Re: [PHP] null character - file related function

2003-10-06 Thread Mark Charette
On Mon, 6 Oct 2003, Martin Straka wrote: > > Is somewhere documented that everything after NULL (0x00 %00) character > is ignored for example in functions include, fopen etc? Interestingly, no, it's not documented in the manual (at least I couldn't find any official documentation on NULL terminate

Re: [PHP] null character - file related function

2003-10-06 Thread Mark Charette
On 6 Oct 2003, Robert Cummings wrote: > > Strings in PHP are binary safe and thus do not rely on null temrination. You are, of course, right (just a brainfart on my part ...). There are a number of functions that depend on null termination of strings; handing a string with embedded nulls in it t

Re: [PHP] strpos() act funny when searching for "]]>"....

2003-11-21 Thread Mark Charette
On Fri, 21 Nov 2003, Scott Fletcher wrote: > Well, I seem to have problem understanding the word, 'offset' to the > strpos() function because it is a bad choice of word strpos() and the word "offset" used with it is probably older than you ... :) -- PHP General Mailing List (http://www.php.ne

RE: [PHP] PHP Session Variables Not Being Set For Certain Browsers

2003-12-27 Thread Mark Charette
> -Original Message- > From: Andy Higgins [mailto:[EMAIL PROTECTED] > Can anyone confirm whether > AOL (or any > other ISPs for that matter) change a user's IP address as seen by the web > server (for eample through a proxy) within the same session? It's been pointed out and confirmed many

RE: [PHP] Re: Ver 5.0 Questions ...

2004-01-14 Thread Mark Charette
If you read through the archives you'll find it isn't so much that PHP is the problem per se, but many of the PHP modules. If you use the multi-threading model of Apache 2 (the raison d'etre for using Apache 2 for most people) then all the modules have to be thread-safe, and that's a non-trivial ma

RE: [PHP] what PHP really needs

2004-01-24 Thread Mark Charette
> -Original Message- > From: Hamid Hossain [mailto:[EMAIL PROTECTED] > As a ColdFusion Certified Developer I can say: You are right! > > In CF you can fire a sql statment and store its result in a > variable which > is not going to be removed from the server's memory after > responding to

RE: [PHP] what PHP really needs

2004-01-24 Thread Mark Charette
On Sat, 24 Jan 2004, Marlon Moyer wrote: > Like Hamid Said, if the ColdFusion server has the query already in memory. > It doesn't need to send traffic to another server to get the information > again. Most systems I've worked on have the db and the web server on > different areas of a firewall,

Re: [PHP] Can we make .exe programs with php?

2004-01-24 Thread Mark Charette
On Sat, 24 Jan 2004, pehepe php wrote: > Can we make .exe programs with php? for example we can do it with delphi, > vbasic.but can we do with php? No (and .exe is a convention that isn't universal, btw). PHP is an interpreted language, not a compiled one. -- "Half the people know what they're

Re: [PHP] Threading & PHP

2004-01-24 Thread Mark Charette
On Sat, 24 Jan 2004, Galen wrote: > Hi, > > This may be completely crazy, but let me tell you what I want to do: > thread PHP. Can you set processor affinity on your system? If so, you can "pseudo thread" by assigning processes to different CPUs; e.g., run your main Webserver on one processo

RE: [PHP] what PHP really needs

2004-01-24 Thread Mark Charette
f stock, etc. > > [Marlon Moyer] > This isn't a situation that you would use a cached query. You > would only use > it when something doesn't change that often, or you have control > of when it > changes. Hell, I have stuff like that - it's called generate an include file with a cron job. Trivial.

Re: [PHP] Threading & PHP

2004-01-26 Thread Mark Charette
On Sun, 25 Jan 2004, Galen wrote: > I'm not 100% sure what you're talking about, to be honest. I think I'm > in the second half of the people... :) > > As far as I can tell, Apache runs as many processes (httpd) as needed > on my local machine. As far as my server, I haven't seen this behavior,

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 a

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 PROTEC

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

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

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, th

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

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 L

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 ha

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 boun

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 20

RE: [PHP] MySQL and RH 7.2

2002-05-11 Thread Mark Charette
"find" is your friend ... Go to the install directory and type find mysqladmin -Original Message- From: Todd Cary [mailto:[EMAIL PROTECTED]] Sent: Saturday, May 11, 2002 2:44 PM To: [EMAIL PROTECTED] Subject: [PHP] MySQL and RH 7.2 I am completely new to MySQL and I just installed it

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 / client-si

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 d

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

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

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

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

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 c0u

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 or tag. Mark C. -Original M

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 $temp=fil

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, an

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 cou

RE: [PHP] Opening a new window.

2001-12-14 Thread Mark Charette
arget browser > properties using html? > Lise the Location 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 th

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

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?

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 Me

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 cr

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 in

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 PROTE

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 b

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 the

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 a

  1   2   >