Re: [PHP] PHP equivalent to Perl $0

2007-01-31 Thread Mark Charette
Richard Luckhurst wrote: Hi Richard, RL And, frankly, why would you want to do that? It only sows confusion RL in ps output. :-) Unless you're talking about apps spawned by inetd and its cousins. ps shows the name as specified in arguments in the inetd.conf file, not the name of the

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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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 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] 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] 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] Apache 2.0.52 / PHP 4.3.10 Integration Question...

2004-12-31 Thread Mark Charette
Robin Getz wrote: Andrew Kreps wrote: I had to add this line to my httpd.conf: AddType application/x-httpd-php .php I have this and the DirectoryIndex - the problem is that my script does not end in a .php extention. (GForge ) If I rename the file projects.php and point to that, it works, but

Re: [PHP] Apache 2.0.52 / PHP 4.3.10 Integration Question...

2004-12-31 Thread Mark Charette
John Holmes wrote: Robin Getz wrote: I have a file named /www/projects which is a php script. When I type the url: www.site/projects/variable I want variable passed to the script projects I have the the http.conf set up as: Files projects SetInputFilter PHP SetOutputFilter PHP

Re: [PHP] Simple math failing - PHP Bug?

2004-11-01 Thread Mark Charette
From: Chris Shiflett [EMAIL PROTECTED] To: Jason Wong [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, November 01, 2004 12:22 AM Subject: Re: [PHP] Simple math failing - PHP Bug? --- Jason Wong [EMAIL PROTECTED] wrote: Most computer languages handling floating point calculations just as

Re: [PHP] Tempnam not working??

2004-10-17 Thread Mark Charette
- Original Message - From: Brent Clements [EMAIL PROTECTED] When I run the following $fname = tempnam('mytmp/', 'PREFIX_'); and then echo $fname, it returns /tmp/FILENAME rather than mytmp/FILENAME -- From the manual: Creates a file with a unique filename in the specified

RE: [PHP] Is Function Constants the Correct Term?

2004-07-18 Thread Mark Charette
The specific statements: From http://us2.php.net/manual/en/language.constants.php 'Once a constant is defined, it can never be changed or undefined.' 'Only scalar data (boolean, integer, float and string) can be contained in constants.' 'Constants may not be redefined or undefined once they have

RE: [PHP] Re: Query Query

2004-05-30 Thread Mark Charette
From: Khan [mailto:[EMAIL PROTECTED] you have 'company_name' in SET and then again in WHERE. This looks fishy. Very common, often required, and perfectly legal. Mark C. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP5 bloats the code

2004-04-24 Thread Mark Charette
From: Marek Kilimajer [mailto:[EMAIL PROTECTED] Well, what I always know about my variables is if they are arrays or scalar ;) And I don't consider warning to be much nicer then error Hmmm ... my current methods and functions in PHP 4.x oftentimes adapt to the type passed to them since PHP

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

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

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 processor and

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. All

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

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] 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.net/)

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 terminated

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 to

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] 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] 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] 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, and PHP

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.

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 those

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 ... Even

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: ... break; case fo: ... case fum

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

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

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

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

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:

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

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. Extends neck more To the best of my knowledge, neither the FAT based

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)

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

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

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

  1   2   >