RE: [PHP] Need unrounded precision

2009-10-12 Thread Jaime Bozza
>> Couldn't this be done with just simple math functions? > >indeed: > >$a = 28.56018; >$b = $a * 10 % 10 >> 0; Hmmm... Didn't think about this, but % only works with int values, so $b = $a * 10 % 10; Should work as well. Jaime -- PHP General

RE: [PHP] Need unrounded precision

2009-10-12 Thread Jaime Bozza
h > > as 28.56018, which should be '5'. Couldn't this be done with just simple math functions? $a = 28.56018; $b = intval(($a*10)-(intval($a)*10)); or: $a = 28.56018; $b = intval(($a-intval($a))*10); Jaime -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Need unrounded precision

2009-10-12 Thread Jaime Bozza
robably just use intval() instead of >> since it's clearer and bitwise shifts aren't necessarily integer only either. Jaime -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] SESSION VARIABLES ACROSS DIFFERENT WINDOWS/TABS

2009-08-20 Thread Jaime Bozza
way for you to run multiple sessions against the same domain. OTOH, multiple InPrivate sessions running at the same time share the same frame, so they share the same session, so it would only be good for a single new session. If you need more, just use File - New Session. Jaime > -

Re: [PHP] Re: Re: Re: Design Patterns

2009-08-13 Thread Jaime Jose Perera Merino
ore memory? What is your proposal? I'm very interested in more opinions. 2009/8/13 Ralph Deffke > Thanks Jaime, > > very nice, but I'm a programmer since 1982 and into OOP since 1988 with the > outcome if IBM's C++ compiler on the OS2 platform. > > Don't

[PHP] Re: Re: Re: Design Patterns

2009-08-13 Thread Jaime Jose Perera Merino
n. I hope this helps you, Jaime

RE: [PHP] IE Issues

2003-07-21 Thread Jaime Bozza
Ctrl-MouseWheel will increase or decrease the text size in an IE browser window. I've found that I've accidentally increased the font size since I use the Mouse Wheel quite a bit. (As well as CTRL-W to close an IE window if one pops up) Jaime Bozza > -Original Messag

[PHP] Structered or Object Oriented?

2003-05-30 Thread Jaime Diaz
I would like to know wich is the best way to program in PHP, is it OO or structured, because I red in a book that if I program in OO PHP the performance of the page is slower than programming it in structured. But if i have a big web site isn´t it better to program Object Oriented. -- PHP Gen

[PHP] Problems (Apache + PHP) and conection to Oracle8i

2003-03-13 Thread Jaime Villarroel Valdera
I have problems to pass HTML content that contains accentuated characters from a form (editor) to un Oracle9i database ... through PHP. It is a problem of character set? or It is a problem of php?. Somebody knows this situation and how it is possible repair? Thanks !! Jaime Villarroel -- PHP

[PHP] Problems (Apache + PHP) and conection to Oracle8i

2003-03-13 Thread Jaime Villarroel Valdera
I have problems to pass HTML content that contains accentuated characters from a form (editor) to an Oracle9i database ... through PHP. It is a problem of character set? or It is a problem of php?. Somebody knows this situation and how it is possible repair? Thanks !! Jaime Villarroel -- PHP

[PHP] Can't set time zone

2002-12-24 Thread jaime
at it is GMT (instead of EST) while his believes that it is in CST (which is correct). Can anyone offer any suggestions on how to fix this? Or even clues of what might be the cause? Thanks in advance, Jaime -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Cookie handling, NS 4.x?

2002-12-10 Thread Jaime Bozza
y big issue for me there. CSS and Dynamic HTML support are horrible in NS4.x!) Jaime > -Original Message- > From: Chad Day [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, December 10, 2002 9:11 AM > To: Jaime Bozza > Cc: 'php general' > Subject: RE: [PHP] Cookie h

RE: [PHP] Cookie handling, NS 4.x?

2002-12-10 Thread Jaime Bozza
that and it doesn't work) Jaime > -Original Message- > From: Chad Day [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, December 10, 2002 8:17 AM > To: Jaime Bozza > Cc: 'php general' > Subject: RE: [PHP] Cookie handling, NS 4.x? > > > domain.com, but w

RE: [PHP] Cookie handling, NS 4.x?

2002-12-10 Thread Jaime Bozza
Hello, By any chance, is your website named http://domain.com or is it http://www.domain.com ? Jaime Bozza > -Original Message- > From: Chad Day [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, December 10, 2002 8:09 AM > To: [EMAIL PROTECTED]; php general > Subject: R

RE: Re: [PHP] Creating SSL Connection to Accept Credit Cards

2002-11-05 Thread Jaime Bozza
SL support. If not, you may need to change providers. :) Jaime > -Original Message- > From: Ben C. [mailto:benc@;cox.net] > Sent: Tuesday, November 05, 2002 12:19 PM > To: Jaime Bozza; 'Adam Voigt' > Cc: [EMAIL PROTECTED] > Subject: RE: Re: [PHP] Creating

RE: Re: [PHP] Creating SSL Connection to Accept Credit Cards

2002-11-05 Thread Jaime Bozza
Except that https:// doesn't work with fopen until PHP 4.3.0. Suggestions are only good if they work with a current version of PHP. :) (No, I don't consider 4.3.0 current until it's at *least* released) Regardless, until then, CURL support is probably the way to go. Assuming you have curl support

RE: [PHP] sessions

2002-10-24 Thread Jaime Bozza
ittle check on how different the IP Address is and base it off of that) Or, if you want to make it more difficult and only accept cookies (which makes it harder for the average joe to accidentally hijack a session), PHP 4.3 will have "session.use_only_cookies" as a variable. Jaime B

RE: [PHP] sessions

2002-10-24 Thread Jaime Bozza
uct (Norton Internet Security) will block HTTP_REFERER by default also. (It also has the ability to block the browser agent, but it's not on by default) I've seen others that change HTTP_REFERER into HTTP_WEFERER and hash the data so you can't see what it was originally. I'm n

RE: [PHP] sessions

2002-10-24 Thread Jaime Bozza
ything about multihoming and BGP.) Even Linux has the ability (eql is one of the products) to combine multiple upstream gateways (whether they be dialup/ISDN/DSL/T1's, etc) in a simple "round-robin" form. Cisco routers even have the support (ip load-sharing per-destination) that doesn

RE: [PHP] sessions

2002-10-24 Thread Jaime Bozza
reasons why you haven't had a complaint. Personally I find it easier to go somewhere else than complain to a website that I'm having problems with. I'm just pointing out the issues, I'm not forcing anyone to listen. :) Jaime Bozza -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] sessions

2002-10-24 Thread Jaime Bozza
problems if you run into any of the problems above (and others that cause the IP Address to change during a session) Jaime Bozza > -Original Message- > From: Adam Voigt [mailto:adam@;cryptocomm.com] > > You could, on the page where it initially creates there session, >

RE: [PHP] Credit card checks?

2002-07-23 Thread Jaime Bozza
This may help with the specific formats. (And how to calculate the check digit yourself to verify) http://www.beachnet.com/~hstiles/cardtype.html Jaime Bozza -Original Message- From: Kristopher Yates [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 23, 2002 1:42 PM To: [EMAIL

RE: [PHP] Equivalent of this in php

2002-06-12 Thread Jaime Bozza
PHP has "heredoc" capability, though it'll look a little strange since you'll need the () around the parameters. It's also used a little bit differently. Here's the code: $fp = popen("$Openssl_cmd req -new -config /usr/lib/openssl.cnf " . "-key $cert_dir/key -days $days -out $cert_

RE: [PHP] PHP URLs not opening from email in Outlook XP

2002-05-31 Thread Jaime Bozza
t will open the link in a new browser window.) If you weren't hitting the shift-key, it could be possible that one of your shift-keys are stuck, which is "emulating" the shift-click. Not much more I can tell you other than that, since the link (and all others) work just fine for m

RE: [PHP] Post 4.1.0 PHP

2002-05-30 Thread Jaime Bozza
... } can now be written as: function myfunc() { $somevar = $_POST["somevar"]; } Sure you can extract the old ($HTTP_) arrays into the new, but you still don't get the same functionality. (Yes, you could put a 'global $_POST;' in the new way, but that defeats the

RE: [PHP] form posting to a fake page

2002-04-17 Thread Jaime Bozza
data *is* only parsed when REQUEST_METHOD=POST, so it may end up only being a single line patch) Let us know if you plan on requesting a new feature. Jaime Bozza -Original Message- From: [ rswfire ] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 17, 2002 4:04 PM To: [EMAIL PROTEC

RE: [PHP] form posting to a fake page

2002-04-17 Thread Jaime Bozza
. (Testing this with both IE and Netscape) Jaime Bozza -Original Message- From: [ rswfire ] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 17, 2002 2:36 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: RE: [PHP] form posting to a fake page Yes it works fine if I access it directly

RE: [PHP] viewing get/post variables

2002-04-16 Thread Jaime Bozza
Hmmm... I'm not sure why that would be (unless, of course, your php.ini has it there.) Either way, it sounds like a potential bug in either phpinfo() or the register_globals code itself. Jaime Bozza -Original Message- From: Martín Marqués [mailto:[EMAIL PROTECTED]] Sent: Tu

RE: [PHP] viewing get/post variables

2002-04-16 Thread Jaime Bozza
Read the NEWS file for PHP 4.2.0. (It should be located in the base directory of the source distro) If you're using the Windows package, try here: http://cvs.php.net/co.php/php4/NEWS?r=1.885.2.17 Jaime Bozza -Original Message- From: Martín Marqués [mailto:[EMAIL PROT

RE: [PHP] Sessions that last for ever

2002-02-17 Thread Jaime Bozza
he same session around, just use the function 'session_set_cookie_params()' and set the lifetime to be some huge number, or use the session.cookie_lifetime setting in php.ini. Jaime Bozza -Original Message- From: Nigel Gilbert [mailto:[EMAIL PROTECTED]] Sent: Saturday, February

RE: [PHP] Having a problem with sessions, Part Deux.

2002-01-21 Thread Jaime Bozza
Henrik, Which session handler are you using? Files, mm, User? Jaime Bozza -Original Message- From: Henrik Hudson [mailto:[EMAIL PROTECTED]] Sent: Sunday, January 20, 2002 11:55 PM To: [EMAIL PROTECTED] Subject: [PHP] Having a problem with sessions, Part Deux. Just FYI. I

RE: [PHP] session problems not finding my variables..

2002-01-16 Thread Jaime Bozza
' before I use the header function. This assures me that the data is written. Jaime Bozza -Original Message- From: Peter Lavender [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 15, 2002 7:35 PM To: php-general Subject: [PHP] session problems not finding my variables.. Hi everyone,

RE: [PHP] Session troubles

2002-01-03 Thread Jaime Bozza
Hmmm... So, there are yet more problems with the session functions. :) Are you using 4.1.1 or 4.0.6? Jaime -Original Message- From: Junior, Ricardo [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 9:34 AM To: 'Jaime Bozza'; [EMAIL PROTECTED] Subject: RE: [PH

RE: [PHP] Session troubles

2002-01-03 Thread Jaime Bozza
m is that he's using "return false" in his session read function. The session read function should return a blank value ('') and not false when there's no data. This was never clear in the documentation (and complaint I made) but is quite true. Once switching over to

RE: [PHP] Session troubles

2002-01-02 Thread Jaime Bozza
Returning false is invalid for the session read function, and has caused *MANY* issues with PHP and Sessions. (Check the archives as well as the bugs database. I have a couple in there myself) Change: return false; To: return ''; And things should start working as expected. J

RE: [PHP] Session troubles

2002-01-02 Thread Jaime Bozza
What do you have for the return values for your session_read function? (Specifically, what do you return when there's no data available?) Jaime Bozza -Original Message- From: Sean LeBlanc [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 02, 2002 11:20 AM To: [EMAIL PROT

RE: [PHP] Session troubles

2002-01-02 Thread Jaime Bozza
I agree. Perhaps make a feature request that disallows session starting if save_handler=user and you haven't defined a session handler?Then it could spit out a more correct error message. Jaime Bozza -Original Message- From: Sean LeBlanc [mailto:[EMAIL PROTECTED]] Sent: Tu

RE: [PHP] Session troubles

2001-12-31 Thread Jaime Bozza
i file has: session.save_handler = files And *NOT*: session.save_handler = user That will make a big difference. Jaime Bozza -Original Message- From: Sean LeBlanc [mailto:[EMAIL PROTECTED]] Sent: Saturday, December 29, 2001 1:21 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Session troubl

RE: [PHP] Mommy, is it true that...?

2001-12-21 Thread Jaime Bozza
Another way I validate input is by using settype(); For instance: settype($id, "integer"); I use addslashes and settype on all data coming from a browser that ends up being using in a query. (abs will convert negative numbers, which may be what you want, but then again. ) J

RE: [PHP] Session storage and the --with-mm option

2001-12-17 Thread Jaime Bozza
John (and all), I was using --with-mm on my system and immediately saw a jump in memory usage and I wasn't even using the mm session support! The memory doubled from 4.0.6 to 4.1.0. I've since removed it from my compile. Jaime Bozza GeoComm International Corp. -Origin

RE: [PHP] Re: PHP 4.1.0 and User-defined Sessions

2001-12-13 Thread Jaime Bozza
e mm code. Like I said, I was a bit confused on that as well. I can certainly write a bug report up for that, but I don't know if you'd classify that as a bug. Jaime Bozza -Original Message- From: Yasuo Ohgaki [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 13, 2001 1:01 PM

RE: [PHP] Re: PHP 4.1.0 and User-defined Sessions

2001-12-13 Thread Jaime Bozza
tsoever. The last paragraph explains my attempts on using enable-debug. Jaime Bozza -Original Message- From: Yasuo Ohgaki [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 12, 2001 9:04 PM To: [EMAIL PROTECTED]; Jaime Bozza Subject: [PHP] Re: PHP 4.1.0 and User-defined Sessions Search

[PHP] PHP 4.1.0 and User-defined Sessions

2001-12-12 Thread Jaime Bozza
core file I'm kind of out of luck on tracing. All I can tell you now is that using user-defined handlers for sessions started causing me lots of problems. (As near as I can tell, you need to have some sort of a decent load on your servers - Single client access didn't ever seem to allow

[PHP] Re: read file

2001-11-23 Thread Jaime Iniesta Aleman
print "$file_read"; } ** Jaime Iniesta Alemán - IT Specialist IBM Global Services Tel. 34-91-3977450 - e-mail: [EMAIL PROTECTED] ** $content = file('file_name.txt'); $HTML .=''; forea

[PHP] Cool?

2001-11-22 Thread Jaime Iniesta Aleman
Well, my site about Talking Heads is kinda cool, and I'm using PHP in it, more and more everyday. Soon it'll let visitors add their own comments to the pages, just like the anotated PHP manual: http://thismustbetheplace.net Jaime From: "Carry Ian" <[EMAIL PROTECTED

[PHP] Name of file?

2001-11-20 Thread Jaime Iniesta Aleman
Here goes an easy one... I need a script that returns me the name of the page it is in. I mean, if this script is in a page called "test3.php", then it should return "test3.php", and if it is on a page called "heynow.php" it should return, you guessed it, "heynow.php". Thanks! -- PHP General

[PHP] Sending mail without using mail()

2001-11-16 Thread Jaime Iniesta Aleman
Ok, where can I find a tutorial about sending mail using fsockopen ? *** > Hi, is it possible to send SMTP mail if the server where are my pages > hosted forbids the use of the mail() function ? I mean, by opening a > sockets connection to an external SMTP server and writing the commands > the

[PHP] Sending mail without using mai() ?

2001-11-14 Thread Jaime Iniesta Aleman
Hi, is it possible to send SMTP mail if the server where are my pages hosted forbids the use of the mail() function ? I mean, by opening a sockets connection to an external SMTP server and writing the commands there directly... Jaime -- PHP General Mailing List (http://www.php.net/) To

[PHP] a DOT or a BLANK SPACE

2001-06-20 Thread Jaime Torres
ranted that any blank space is a dot since my inputs names are using them. How can I identify between this two variable names? Thanks for your help! Regards, Jaime -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAI

RE: [PHP] include() in a file incuded()

2001-05-20 Thread Jaime Torres
Thanks for your answer George. But I still have a problem. What if I need to get another variables values from the main.php file? Do I need to pass them with the URL? Something like: mailto:[EMAIL PROTECTED]] Enviado el: domingo 20 de mayo de 2001 13:22 Para: Jaime Torres; [PHP] General List

[PHP] include() in a file incuded()

2001-05-20 Thread Jaime Torres
e the $open URL defined before, but it isn't defined here. What am I doing wrong? How can I get $open's value from this file? Thanks! Jaime -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To c

RE: [PHP] File upload !!!!

2001-05-14 Thread Jaime Bozza
I haven't been involved in. :) I read the list all the time, so I don't think I need two copies sent to me. Jaime Bozza GeoComm International Corp. -Original Message- From: Kevin Williams [mailto:[EMAIL PROTECTED]] Sent: Sunday, May 13, 2001 1:46 PM To: [EMAIL PROTECTED

[PHP] Sending mail from a Unix

2001-05-11 Thread Jaime Torres
nly work if I'm running WinNT. Note: I can't send it via sendmail command line (local). Any ideas? Thanks, Jaime -- 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] Getting a binary file from URL

2001-04-22 Thread Jaime Torres
docs said: "Fread() reads up to length bytes from the file pointer referenced by fp. Reading stops when length bytes have been read or EOF is reached, whichever comes first." How do I use fread to read until EOF? Note: I don't know the file size, it could be from 1 byte to xx

[PHP] Getting a binary file from URL

2001-04-22 Thread Jaime Torres
If I use $filename="local_file" the script works great, but if I use $filename="http://myserver.com/remote_file" the resultant local file is empty. How can I do this? Thanks in advance, Jaime -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

RE: [PHP] More Email ereg Validation

2001-04-05 Thread Jaime Bozza
Up to you. Make sure you use eregi instead of just ereg, or lowercase the email address before you check it. We also go a step further and use checkdnsrr to see if there are any (type ANY that is) records available for the hostname part. Not great, but it at least tries to see if the hostname exists

[PHP] RE: Bug IDs #8772, #9002, maybe #9724 - session write handler and register_globals

2001-03-16 Thread Jaime Bozza
t; handler gets called correctly. I'm not sure if this will fix anybody else's problems, but if you change your read handler to return a blank string instead of a FALSE condition, it may start working for you as well! (If it DOES help you out, please let me know.) Jaime Bozza --