[PHP] Amount of memory per user

2004-03-08 Thread Cesar Cordovez
Hi List! I was just wondering... How can I know how much memory my scrips are using per connection, thread, or user? TIA Cesar -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Notify about your e-mail account utilization.

2004-03-04 Thread Cesar Cordovez
And I suppose this is a virus? (They are getting smart, huh?) [EMAIL PROTECTED] wrote: Dear user of e-mail server Php.net, Some of our clients complained about the spam (negative e-mail content) outgoing from your e-mail account. Probably, you have been infected by a proxy-relay trojan

Re: [PHP] pathinfo() basename()

2004-02-04 Thread Cesar Cordovez
extension is a string, $fullpath (parameter 1) is not. It is an array! Cesar =) John Taylor-Johnston wrote: I'm getting this error: Warning: basename() expects parameter 1 to be string, array given in /home/users/q/qx04t9mu/www/calendars/test3.php on line 8 What did I do wrong? $extension is

Re: [PHP] Document generation from XML

2004-02-03 Thread Cesar Cordovez
I had exactly the same problem some time ago... My solution was very similiar of what you are trying to do, but my internal format is not XML but a group of arrays (faster processing). Then using some OOP I created the diferent output formats for my reports, therefore I have a microsoft

[PHP] Urgent: PHP Programmer

2004-02-02 Thread Cesar Cordovez
Percentage travel : No Travel Position starts : 2/15/2004 Openings available : 3 Work Types : FullTime, Regular, Paid Contact information Cesar Cordovez 501 Brickell Key Drive Suite 203 Miami, FL, United States 33131 Primary Phone : (305) 379- Ext: 15 Email : [EMAIL PROTECTED] -- PHP General

[PHP] Encoding for uploaded files

2004-01-29 Thread Cesar Cordovez
Hi list! How can I know the encoding for an uploaded file? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Encoding for uploaded files

2004-01-29 Thread Cesar Cordovez
-upload.php, it spells out the entire upload process specifally, you want: $_FILES['userfile']['type'] = The mime type of the file, if the browser provided this information. An example would be image/gif. -Craig -Original Message- From: Cesar Cordovez [mailto:[EMAIL PROTECTED] Sent: January 29

Re: [PHP] Tip For The Day

2004-01-28 Thread Cesar Cordovez
Jay Blanchard wrote: I think that you meant to its already been broughten!, didn't you? Did you know that you will find that bracing style has been debated since the days of FORTRAN? Oh! Fortran 77! I remember those times! =) And I still think inline braces wins hands down!!! Cesar -- PHP

Re: [PHP] pass by reference

2004-01-23 Thread Cesar Cordovez
Kevin Waterson wrote: This one time, at band camp, Justin French [EMAIL PROTECTED] wrote: In other words, you HTML source looks like this: img src='images.php?id=45' NOT img src='{RAW BINARY DATA HERE}' Kevin, et all. Can this be posible? I mean img src='{RAWDATA}' where RAWDATA beening

Re: [PHP] How New Is HERE?

2003-12-26 Thread Cesar Cordovez
Change: $txtBoxCounter = $_POST['txtBoxCounter] $hdnCounter = $_POST['hdnCounter] to $txtBoxCounter = $_POST['txtBoxCounter']; $hdnCounter = $_POST['hdnCounter']; (Notice the ' at the end of txtBoxCounter and hdnCounter. Merry X'mas [EMAIL PROTECTED] wrote: Okay, for everyone took a break for

Re: [PHP] How New Is HERE?

2003-12-26 Thread Cesar Cordovez
Please post your code from line 30 to 40. Place a mark in line 34. =) [EMAIL PROTECTED] wrote: parse error: parse error, unexpected $ in [my path to this file] on line 34 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Addslashes limit

2003-12-17 Thread Cesar Cordovez
HI! Is it just me or addslahes truncates the result to 65535 chars? Any comments? Or can it be that a blob field in a MySQL database is just 65535 chars, I don't think so... Cesar. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Addslashes limit [SOLVED]

2003-12-17 Thread Cesar Cordovez
Hi. Turns out that addslashes is not guilty of truncating it's result. Marek is right here. Changed the type of the field from BLOB to LONGBLOB and everything works great! Thanks! Marek Kilimajer wrote: Cesar Cordovez wrote: HI! Is it just me or addslahes truncates the result to 65535

Re: [PHP] Re: mail question (mime)

2003-12-16 Thread Cesar Cordovez
...and talking about mail, is there a class to parse an incoming mail? Let me explain: I'm using the great POP3 pear class to receive mail, but I'm having trouble separating the different parts in an multipart/alternative type of msg. Is there a class to receive the result from POP3 class and

Re: [PHP] Re: mail question (mime)

2003-12-16 Thread Cesar Cordovez
W cool. I went there, but I thought this class only worked for sending mails. Great! Justin Patrin wrote: Well, you could look for yourself. ;-) Yes, there is. Mail_Mime does both encoding and decoding. http://pear.php.net/package/Mail_Mime -- PHP General Mailing List

Re: [PHP] PHP header command crashes IE6x/PC

2003-12-12 Thread Cesar Cordovez
Somebody, IIRC, told the list that the argument for header(Location... has to be a complete url, not just a directory, ie: header(Location: http://www.alenet.com/;); exit(); HTH Cesar Matt MacLeod wrote: John, Have tried this but unfortunately had no effect. Everything appears to fine if the

[PHP] Sync Outlook with MySQL via PHP

2003-12-12 Thread Cesar Cordovez
Hi List. I need to know how to sync Outlook with MySQL via PHP. I know this is an old topic, but I cant find a clue (is it friday?). Please advise. Thanks, Cesar -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] What do you say to someone who says...

2003-12-04 Thread Cesar Cordovez
People (and some boots): I'm not against or in favor of all this stuff, but exactly all the opposite... (lmao) Seriously, there is no kiddie nor professional languages out there, what is important is what you do with them. PHP will power yahoo in a couple of months more, that is a company

Re: [PHP] What do you say to someone who says...

2003-12-04 Thread Cesar Cordovez
: it is cheap, fast, scalable, cheap, reliable, cheap, easy to program and maintain, lots of info source (think this list), cheap, etc. Cesar PD. Did I mention that it is cheap and reliable. Also, secure and cross platform, too. Chris W. Parker wrote: Cesar Cordovez mailto:[EMAIL PROTECTED

Re: [PHP] What do you say to someone who says...

2003-12-04 Thread Cesar Cordovez
a fortune for each client or development station (think visual studio) or database hits (think microsoft sql server). Cesar CPT John W. Holmes wrote: From: Cesar Cordovez [EMAIL PROTECTED] I work on a project 100% made in PHP and MySQL that costs a lot of money (6 figures) a copy. PD. Did I

Re: [PHP] Intuitive Interfaces

2003-11-25 Thread Cesar Cordovez
Chris Shiflett wrote: Some Web sites I have visited think it is helpful to use some client-side scripting to move the focus from the first text field to the second after three numbers have been entered. So, when the user hits tab after entering the first three numbers, the second text field is

Re: [PHP] Add Reply-To to this list(s)

2003-11-25 Thread Cesar Cordovez
I had the same problem here until, I installed Netscape to handle my personal mail (this list). Works great! Chris: Why don't you give it a try? Chris W. Parker wrote: The problem with your theory is that some of us are in corporate environments where personal email is not allowed and

Re: [PHP] duvida com value

2003-11-18 Thread Cesar Cordovez
Mi portugues is very rusty, but I think the solution is: $url = a href='alterar.php?value= . urlencode($row-nome) . '; and then print $url where ever you want. Notice the quotes and single quotes around the url. You can learn more about this on php.net/urlencode Cesar Carlos Eduardo wrote:

[PHP] Miami User Group

2003-11-11 Thread Cesar Cordovez
And talking about user groups, is anybody interested in creating a Miami/Fort Lauderdale/Palm Beaches PHP user group? Contact me, off the list please. Cesar -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] dictionary

2003-11-05 Thread Cesar Cordovez
To the original poster: The data you posted is not text. Or it has been encrypted. I don't think that the idea of the dictionary will work. Keep us posted with your findings! I'll love to see the conclusion. Cesar -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] problem with intval and !=

2003-10-23 Thread Cesar Cordovez
Can somebody explain me why is this happening? $value = 12.3; $number = intval($value); echo Number: $number, Value: $valuebr; // echoes: Number: 12, Value: 12.3 if ($number != $value) { echo Bad; } else { echo Good; // echoes Good!! } The previous should be echoing Bad. (I

Re: [PHP] problem with intval and !=

2003-10-23 Thread Cesar Cordovez
profesional. Don't say a thing!!! I rather work on my mac!) =) Cesar Curt Zirzow wrote: * Thus wrote Cesar Cordovez ([EMAIL PROTECTED]): Can somebody explain me why is this happening? $value = 12.3; $number = intval($value); echo Number: $number, Value: $valuebr; // echoes: Number: 12, Value: 12.3

Re: [PHP] problem with intval and !=

2003-10-23 Thread Cesar Cordovez
and, believe it or not HyperCard!!!) Cesar. Cesar Cordovez wrote: Curt: My fault! You are right, but thats not what I want. $value comes from a form filled by a user. I want $value to be an integer. Not a float. So if the user types 12.3 the system has to send an error msg. Therefore

Re: [PHP] problem with intval and !=

2003-10-23 Thread Cesar Cordovez
the procedure. This is not good. Any sugestions on how to now if the user types an integer number in a field? Cesar Curt Zirzow wrote: * Thus wrote Cesar Cordovez ([EMAIL PROTECTED]): Curt: My fault! You are right, but thats not what I want. $value comes from a form filled by a user. I want

Re: [PHP] problem with intval and !=

2003-10-23 Thread Cesar Cordovez
Because is_integer(12thisisnotanumber) retuns true. Andrea Pinnisi wrote: why don't you use this?? http://it.php.net/manual/it/function.is-integer.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] problem with intval and !=

2003-10-23 Thread Cesar Cordovez
solved the problem with preg_match(/^([0-9]+)$/, $value) Thanks for your help, list =) Robert Cummings wrote: On Thu, 2003-10-23 at 11:41, Cesar Cordovez wrote: Because is_integer(12thisisnotanumber) retuns true. Not for me it doesn't. Returns false. Prolly because it's a string. Even

Re: [PHP] problem with intval [CONCLUSION]

2003-10-23 Thread Cesar Cordovez
Everybody: This problem solved. It is not PHP's fault, It is mine. When I fixed some problems that I thought where non intrusive in this problem, everything started working as a charm. Here is the finished function, it is part of a class called xValidate. function integer($msg, $prompt,

Re: [PHP] Slow searches in large database

2003-10-16 Thread Cesar Cordovez
Manu, et al, The database in alenet.com is rather tiny (about 28 docs, as you mentioned). I developed the procedure for a intranet with some 5000 records. It is working fine. It has some 20+ clients that are constantly hitting the database. The server is a desktop (nothing out of the

Re: [PHP] Slow searches in large database

2003-10-16 Thread Cesar Cordovez
Curt, et al: You just described my procedure! I do exacly that, plus, I also save a soundex or metaphone code for each word so I can check spelling and closest matches. Cesar. Curt Zirzow wrote: Instead of just adding a word to table of words, you add a field that holds the qty of times it

Re: [PHP] Slow searches in large database

2003-10-14 Thread Cesar Cordovez
Hi! I think that you will need a keyword table to speed up this procedure. The basic idea is to create an index of words in your fields, therefore you will not use like but = making things run much, much faster. The steps for doing this are: 1. Every time you save a record in the table

Re: [PHP] One variable not equal to 2 values.

2003-09-25 Thread Cesar Cordovez
corection to last postBut then... you have to use and not or like:/corection to last post if (($thisvar != this value) and ($thisvar != thatvalue)) { // do stuff } Cesar Cordovez wrote: if (($thisvar != this value) or ($thisvar != thatvalue)) { // do stuff } cesar =) Ed Curtis wrote

Re: [PHP] PHP Editor - which to use?

2003-09-24 Thread Cesar Cordovez
THE best text/code editor in this planet is BBEdit. No questions about it. It is a pitty it only runs on Macs. I have used it to write text, code fortran, pascal, c, c++, html, css and php (among others). It is great, I love it. Kudos to Bare Bones! Great find/replace utility. Incredible

Re: [PHP] count() numerical arrays....

2003-09-09 Thread Cesar Cordovez
Use explode instead... $num_list_array = explode(, $num_list) more information at php.net/explode Cesar CF High wrote: Hey all. Another simple, yet baffling for me, question: I have a comma delimited list of numbers; e.g. $num_list = 1,2,3,4 I split the number list to array --

Re: [PHP] can pdf forms be used to submit data into db?

2003-08-27 Thread Cesar Cordovez
Yes you can! All the information is on www.php.net/fdf. Cesar [EMAIL PROTECTED] wrote: hi guys and gals, aloha from hawaii, Not sure if this is the right place to ask, but i just need to know if it is technically possible to have a pdf form be filled out online and then once the user hits

Re: [PHP] Cannot pass values from one page to another

2003-08-27 Thread Cesar Cordovez
CPT John W. Holmes wrote: From: [EMAIL PROTECTED] Ok this is a major vulnerability that you are coding. Register globals on and password being stored in the session is like having a banner on your home page saying 'come and hack me'. Please explain how you've come to this conclusion...

Re: [PHP] HIPAA EDI X12 stuff?

2003-08-26 Thread Cesar Cordovez
Is this related with HIPPA compliance? I'm VERY interested too... Richard Lynch wrote: I don't suppose anybody has any HIPAA stuff implementing something like: ASC X12N 270/271 (004010X092) or its subsequent standards in PHP?... Email off-list if you have any idea what I'm talking about, since

Re: [PHP] redhat 8: upgrade php from 4.2.2 to 4.3.2

2003-08-15 Thread Cesar Cordovez
You can use apachetoolbox.com to install apache and php... Chris W. Parker wrote: I want to upgrade my php install from 4.2.2 to 4.3.2. I'm pretty new to linux so I don't know how to install from source and I haven't been able to find any Redhat 8 rpm's. -- PHP General Mailing List

Re: [PHP] FDF support in RedHat

2003-08-14 Thread Cesar Cordovez
Now I have 4 versions: FDFTK.H, fdftk.h, FdfTk.h, Fdftk.h. Same problem. Cesar Cordovez wrote: Weird. Is the file Fdftk.h or fdftk.h? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] FDF support in RedHat (make error)

2003-08-14 Thread Cesar Cordovez
of .so? Standard Object? Where is the unpacked distribution directory? Cesar Jason Wong wrote: On Saturday 09 August 2003 00:05, Cesar Cordovez wrote: I moved fdftk.h to /usr/local/includes and libfdftk.so to /usr/local/lib and everything worked! Sigh, that's what happens when you RTFM

Re: [PHP] FDF support in RedHat

2003-08-14 Thread Cesar Cordovez
I guess my problem is: manual source=php.net/fdf Note: If you run into problems configuring PHP with fdftk support, check whether the header file fdftk.h and the library libfdftk.so are at the right place. The configure script supports both the directory structure of the FDF SDK distribution

Re: [PHP] FDF support in RedHat

2003-08-14 Thread Cesar Cordovez
I have 3 versions of it. FDFTK.H, fdftk.h and FdfTk.h. I will try Fdftk.h... Jay Blanchard wrote: Weird. Is the file Fdftk.h or fdftk.h? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] FDF support in RedHat

2003-08-14 Thread Cesar Cordovez
Tried with --with-fdftk... same problem. I deleted all the versions except for fdftk.h that I moved to /usr/local/include (found this bug: http://bugs.php.net/bug.php?id=8840) Then issued the configuration command and got something like checking for FDFOpen in -lfdftk.. no Then die with error

[PHP] FDF support in RedHat (make error)

2003-08-14 Thread Cesar Cordovez
Ja! I got it! I moved fdftk.h to /usr/local/includes and libfdftk.so to /usr/local/lib and everything worked! Then, I issued a make command and unfortunately I got a new error: /usr/include/ucd-snmp/asn1.h:7:2 Please update your headers or configuer using --enable-ucd-snmp-compatibility Then

Re: [PHP] FDF support in RedHat (make error)

2003-08-14 Thread Cesar Cordovez
Exactly! I agree with you 100%. That's why, even if you RTFM, google your question and search the archives, you need to ask some (very basic) questions to the list. Questions like: If the manual says fdftk.h is a header file, why it should be in the includes directory as opposed to the

Re: [PHP] FDF support in RedHat

2003-08-14 Thread Cesar Cordovez
Cool. I managed to dowlonad php-4.2.2.tar.gz and uncompress it into /usr/local/php4.2.2. (I'm so proud of my self!) lol Also, I downloaded fdftkv5 and installed it following the instructions at php.net/fdf (by mirage at rateaprof dot com) Copy/pasted configuration commands from phpinfo() to

Re: [PHP] FDF support in RedHat (conclusion)

2003-08-14 Thread Cesar Cordovez
Hi List! First off all, let me thank Jay for all his efforts! Compiling PHP and then Apache is just to complicated for me. I would love to learn all of this stuff, but, I don't have the time to do it. (and that is a petty). Any how, the problem is still there. Apache and PHP are running

[PHP] Recompile PHP with FDF support.

2003-08-14 Thread Cesar Cordovez
Hi! It's me again! =) I have great news: I finally hire somebody to recompile apache, php and fdf together. My servers are running very smoothly now. I'm so happy. Anyhow, the technician (lunix/unix nerd+geek) used ApacheToolbox, a utility to compile Apache in any linux system with many

Re: [PHP] FDF support in RedHat

2003-08-14 Thread Cesar Cordovez
Jay: You can find the configuration script at the end of this msg. I went to adobe.com (following the instruction at php.net/fdf) and downloaded the stuff you ask for at /usr/local/. I'm ready for step 2. =) Mucho Thanks. Cesar './configure' '--host=i686-pc-linux-gnu'

Re: [PHP] FDF support in RedHat (make error)

2003-08-14 Thread Cesar Cordovez
It is still giving me problems. I deleted the --with-snmp options and then I receive a new problem related with apache (something like apache2module or so) I managed to download the apache 2.0.48 source, compile it and install it, but the (*^%$#@ program installs in /usr/local/apache2 instead

Re: [PHP] FDF support in RedHat

2003-08-09 Thread Cesar Cordovez
Jay: Thanks for your help. I have only one question for you... Where is the PHP directory (where the php library files are) ... Cesar PD. How can you know if I have the sources for php in my machine? And where are they? Jay Blanchard wrote: 2. In the PHP directory (where the php library

Re: [PHP] FDF support in RedHat

2003-08-09 Thread Cesar Cordovez
manual You must compile PHP with --with-fdftk[=DIR]. /manual Maybe for you, Jay, this is crystal clear, but for me, is like greek. =) I will ask again... how do you compile php with fdf support in red hat? Jay Blanchard wrote: [snip] the manual is so far away [/snip] The manual is right here,

Re: [PHP] FDF support in RedHat

2003-08-08 Thread Cesar Cordovez
Did it. Same error. =( Jay Blanchard wrote: [snip] configure: error: Fdftk.h not found, please install it again. [/snip] I am proud of you! Now type locate fdftk.h When you locate it move it to /usr/local and go again -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] FDF support in RedHat

2003-08-07 Thread Cesar Cordovez
Hi List! I know this is old history, but the archives has nothing, the manual is so far away and google is kind of slow this morning, so... Can somebody teach me how to compile php with fdf support in red hat linux 8 as if I where a 5 year old? (which I am =) Thanks. PD. My mother will

Re: [PHP] PHP should know my data!

2003-07-25 Thread Cesar Cordovez
And he signs IT Professional and he wants to go back to COBOL! LOL Cesar John Manko wrote: I just wrote a web app, but I'm completely disgusted with PHP. The application works great, but PHP is not smart enough to know what data belongs in my database. Really, I have to enter the stuff in

Re: [PHP] arguments against moving site from Linux/Apache/PHP serverto Windows/IIS/PHP needed

2003-07-23 Thread Cesar Cordovez
[EMAIL PROTECTED] wrote: Can you help me? I need some reasons like things that won't work under windows version of PHP (or at least MySQL) and that are not easy to fix. I've already found that IIS doesn't provide $_SERVER[DOCUMENT_ROOT] but it's not too much work to fix that.. In windows,

Re: [PHP] explode and escape character for string separator

2003-07-18 Thread Cesar Cordovez
Among other things, this is why XML exists. Use XML. FLASH can handle it, PHP can handle it, everything out there can handle it. Use XML. Delimiters will sooner or later break down. Use XML. Over and out. Grant Rutherford wrote: Chris Shiflett wrote: --- Reuben D. Budiardja wrote: I

Re: [PHP] Re: Form 2 PDF 2 Form

2003-07-01 Thread Cesar Cordovez
I had the exact same problem with a form some time ago. Definetely the best way to do it is spanning the form. I don't think the temp table will do. I did it with a session variable wich saves the info from the form and what part of the form you are. So the user can flip between pages in

[PHP] Nothing to do with PHP

2003-06-30 Thread Cesar Cordovez
But, I'm sure someone in this list have the answer to my question: I have written a lot of statements using the LIMIT clause in MySQL, like for example: SELECT * FROM system_users WHERE lastname like C% LIMIT 0,10 ...and I love it. specially when you are doing next page, previous page kind of

Re: [PHP] Re: client side cache

2003-06-24 Thread Cesar Cordovez
Hi! I used to have this problem until I started using in all of my scripts the following: ?php $t = time("U"); // this is the time in seconds from 1/1/1970 $url = "whateveryouwant.php?t=$t"; // place here something like: printf("a href='%s'Click

RE: [PHP] My non-windows friends please help

2003-06-18 Thread Cesar Cordovez
Mike: If it is possible, I would like to see the code you have to detect the diferent browsers and platforms. I'm doing the same here! Maybe we can share some code? Cesar -Original Message- From: Mike Mannakee [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 1:56 PM To: [EMAIL

[PHP] Help with algorithm

2001-12-12 Thread Cesar Cordovez
label=Norton Utilities value=Norton Utilities/option /optgroup -- etc. Any help will be apreciated. TIA. Cesar Cordovez V. [EMAIL PROTECTED] (305) 461 0012 x202 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands