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
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
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
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
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
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
-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
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
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
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
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
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
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
...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
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
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
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
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
: 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
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
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
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
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:
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
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:
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
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
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
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
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
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
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,
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
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
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
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
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
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 --
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
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...
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
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
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
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
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
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
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
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
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
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
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
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
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'
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
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
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,
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:
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
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
[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,
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
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
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
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
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
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
66 matches
Mail list logo