Re: [PHP] Disadvantages of output buffering

2007-06-26 Thread William Lovaton
These two reasons are in fact of little impact. The real problem I have with output buffering in my web app is that it doesn't handle .xls and .pdf files generated on the fly with PHP. Every time the browser is going to download those kind of files it will get corrupted. The only solution I coul

Re: [PHP] Php script diagnostic app?

2007-06-25 Thread William Lovaton
If you have little knowledge about C you can use sysprof on a relatively new Linux distribution and you can see on a live system where the CPU is consumed the most. [] http://www.daimi.au.dk/~sandmann/sysprof/ [] http://live.gnome.org/Sysprof With a little help of Google you can map C functions t

Re: [PHP] How to detect charset encoding with PHP and command line?

2007-04-17 Thread William Lovaton
Any idea with this one? please?? El lun, 02-04-2007 a las 07:51 -0500, William Lovaton escribió: > Hi there, > > I'd like to know a way to detect the file encoding from PHP and Linux > command line too. > > In PHP I tried mb_detect_encoding() but it doesn't work

[PHP] How to detect charset encoding with PHP and command line?

2007-04-02 Thread William Lovaton
Hi there, I'd like to know a way to detect the file encoding from PHP and Linux command line too. In PHP I tried mb_detect_encoding() but it doesn't work reliable, first I have to specify a list of posible encodings and second it always returns the first encoding I put in the list no matter what.

Re: [PHP] Language detection with PHP

2007-03-29 Thread William Lovaton
Hi, Thanks to all of you who made suggestions. Stayman, I was aware of many of the things you said in your post but I wasn't aware of some details, thanks for being so specific. In my original post I was rather simplistic in explaining my approach of using spell checkers, it is in fact a little

[PHP] Language detection with PHP

2007-03-27 Thread William Lovaton
Hi there, I am trying to implement language detection with PHP for a web site I am trying to build. The idea is to take a piece of text and try to guess the language it is written in. I have two options but I'd like to know if you guys have a better idea. 1) I implemented a detector using spell

RE: [PHP] IP to City detection

2007-03-23 Thread William Lovaton
Hi, Thanks to all of you who helped me out. I think this one is the best option for now, it even has an API for PHP 4 and another one for PHP 5. PHP 4: http://www.maxmind.com/download/geoip/api/php/ PHP 5: http://pear.php.net/package/Net_GeoIP/ Cheers, -William El mié, 21-03-2007 a las 14:

[PHP] IP to City detection

2007-03-21 Thread William Lovaton
Hi people, Is there a way to detect the city of a person based on the IP address? I mean something like ip2nation http://www.ip2nation.com/ but for cities so I can use it in my PHP web application. Thanks for any help you can give me, -William -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Re: Strange slowdowns in PHP

2006-02-28 Thread William Lovaton
Ohhh I see now. Yes, it should be putting things into a buffer before sending the data to the client. I guess shutdown function executes after the content have been sent. My users are usually working on LAN connections but sometimes there are network problems and this could be one of the symptom

Re: [PHP] Expiring other resources with HTTP headers

2006-02-27 Thread William Lovaton
El lun, 27-02-2006 a las 12:35 -0500, tedd escribió: > ps: your email address has generated a couple of bounced blog stuff thus far. Yeah, I seen that a couple of time now. What is going on? I have not anything to do with blogger.com, I don't know what is happening. What can I do to solve this?

Re: [PHP] Re: Strange slowdowns in PHP

2006-02-27 Thread William Lovaton
Hi Manuel, El lun, 27-02-2006 a las 18:54 -0300, Manuel Lemos escribió: > Hello, > > on 02/27/2006 06:15 PM William Lovaton said the following: > > Looking at the log I get the following information: > > - Execution time: 29.3 secs > > - Request started at: 11:08:06 AM

Re: [PHP] Strange slowdowns in PHP

2006-02-27 Thread William Lovaton
hen that happens and > see if it correlates with your problem? > > Cheers, > Rob. > > On Mon, 2006-02-27 at 16:15, William Lovaton wrote: > > Hi there, > > > > I just setted up some changes to the Apache configuration and made some > > programming in PHP to

[PHP] Strange slowdowns in PHP

2006-02-27 Thread William Lovaton
Hi there, I just setted up some changes to the Apache configuration and made some programming in PHP to log a request (and information about that request) when it is taking a lot of time to finish (let's say > 20 secs). In the logs, there have been lots of useful information and I already improve

Re: [PHP] Expiring other resources with HTTP headers

2006-02-27 Thread William Lovaton
Hi Tedd, That's not exactly what I am looking for. That would cause the JavaScript file to be requested to the web server every single time. I just want the browser to request the file only when it have been modified on the server. Let's say that by default, those JavaScript files expires every

Re: [PHP] Re: Expiring other resources with HTTP headers

2006-02-27 Thread William Lovaton
El lun, 27-02-2006 a las 16:21 +0100, Barry escribió: > Set the HTML expire to yesterday. > Therfore the browser will reload the whole page. > > Barry Hi Barry, I don't think this would work, this should refresh the HTML page only but the link pointing to the javascript file will be taken from t

Re: [PHP] Expiring other resources with HTTP headers

2006-02-27 Thread William Lovaton
; use this for your application by including menu.js?ver=$ver in each of > your pages. When the menu is modified and regenerated, increment $ver. > Every client will refetch menu.js as it views it as a different file. > > > David > > William Lovaton wrote: > > Hello eve

[PHP] Expiring other resources with HTTP headers

2006-02-27 Thread William Lovaton
Hello everybody, I write here to find out if this is possible: I want to expire an static file in the web browser through an HTTP header (Expires, Cache-Control or something else) sent from a PHP program. The usual thing is that those headers apply only to the program or file sending those heade

Re: [PHP] PEAR::SOAP returns objects instead of associative arrays

2005-02-03 Thread William Lovaton
ith some of the PEAR::SOAP maintainers and he told me there is an option/constant that controls this behavior. Does any one know where it is? I couldn't find it. -William El jue, 03-02-2005 a las 09:04 +0100, Jochem Maas escribiÃ: > William Lovaton wrote: > > Hello, > > >

[PHP] PEAR::SOAP returns objects instead of associative arrays

2005-02-02 Thread William Lovaton
Hello, I just found out that since version 0.7, PEAR::SOAP returns stdClass objects instead of associative arrays. http://pear.php.net/package-changelog.php?pacid=87&release=0.7.3 What is the reason for this? I _need_ to get associative arrays, how do I revert to the old behavior? -William --

[PHP] PEAR::SOAP returns objects instead of associative arrays

2005-02-02 Thread William Lovaton
Hello, I just found out that since version 0.7, PEAR::SOAP returns stdClass objects instead of associative arrays. http://pear.php.net/package-changelog.php?pacid=87&release=0.7.3 What is the reason for this? I _need_ to get associative arrays, how do I revert to the old behavior? -William --

Re: [PHP] Persistent PHP web application?

2005-01-07 Thread William Lovaton
Hi everybody in this thread, The phpbeans (or sockets) kind of solutions won't work as Josh Whiting (original author of this thread) would expect. phpbeans is a good idea to share (complex) business logic and data between many web servers but it will have to serialize and unserialize the data to

Re: [PHP] Persistent PHP web application?

2005-01-06 Thread William Lovaton
El jue, 06-01-2005 a las 10:52 -0800, Rasmus Lerdorf escribió: > William Lovaton wrote: > >From my PHP library I use shm_put_var() and shm_get_var(). If > > serialization is done this way then it is implicit... right? > > Yes, these functions serialize/unserialize behing th

Re: [PHP] Persistent PHP web application?

2005-01-06 Thread William Lovaton
El jue, 06-01-2005 a las 10:26 -0700, Adrian Madrid escribió: > I think I understand where you're coming from. I've had a similar > problem and the best solution I've found is eAccelerator (previously > known as Turck MMCache). Hold on a second! I use Turck MMCache but I didn't know about the c

Re: [PHP] Persistent PHP web application?

2005-01-06 Thread William Lovaton
Rasmus, El jue, 06-01-2005 a las 08:23 -0800, Rasmus Lerdorf escribió: > On Thu, 6 Jan 2005, William Lovaton wrote: > > This is great. In my high performance web app I created a PHP library > > that abstracted this to use several backends. For instance I have a > > F

Re: [PHP] Re: Total Server Sessions

2005-01-06 Thread William Lovaton
Additionally you can check the access time to see which of those sessions has been accessed in the last, let's say, 10 minutes or something. But there are several problems with this. Relying on session files is not good enough, they might be stored in a database or in shared memory. Other problem

Re: [PHP] Persistent PHP web application?

2005-01-06 Thread William Lovaton
Hi Rasmus, El lun, 03-01-2005 a las 14:13 -0500, Rasmus Lerdorf escribió: > If you need to do something fancier you can stick things in shared > memory. Many of the accelerators give you access to their shared memory > segments. For example, the CVS version of pecl/apc provides apc_store() >

Re: [PHP] Re: apache 1 vs 2 w/php

2005-01-06 Thread William Lovaton
Rasmus, I see much better performance with Apache 2. I'm not an expert in the internals of Apache nor PHP but I guess one of the improvements in apache is the log mechanism, I think it use a different technique that makes it faster that Apache 1.3 The reason I say this is because Apache 1.3 log

Re: [PHP] Re: apache 1 vs 2 w/php

2005-01-06 Thread William Lovaton
My experience dictates the contrary. Apache 2 is much faster with PHP that Apache 1.3. I run an enterprise web application in my company with about 950 users concurrently. I configured the apache logs to add the execution time for each request (this is done with %T in the LogFormat). We started

Re: [PHP] Re: Image support

2004-06-28 Thread William Lovaton
Read The F***ing Manual. El lun, 28-06-2004 a las 17:23, Gus escribió: > I don't understand, but thanks for answering. > > "Red Wingate" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > RTFM > > > > Gus wrote: > > > > > I have PHP 4.3.6 > > > I want to add image support to manip

RE: [PHP] PHP and AS/400

2004-04-30 Thread William Lovaton
El vie, 30-04-2004 a las 10:42, Jay Blanchard escribió: > [snip] > So, is this possible? is this a viable solution for a production system? > [/snip] > > Did you even read this article posted by Travis earlier? > http://publib-b.boulder.ibm.com/Redbooks.nsf/RedpieceAbstracts/redp3639. > html Yes,

RE: [PHP] PHP and AS/400

2004-04-30 Thread William Lovaton
El vie, 30-04-2004 a las 10:24, Jay Blanchard escribió: > [snip] > > [snip] > > Is there a way to integrate PHP with AS/400?? > > [/snip] > I do have experience with AS/400. So, is this possible? is this a viable solution for a production system? -- PHP General Mailing List (http://www.php.net/

RE: [PHP] PHP and AS/400

2004-04-30 Thread William Lovaton
El vie, 30-04-2004 a las 08:12, Jay Blanchard escribió: > [snip] > Is there a way to integrate PHP with AS/400?? > [/snip] > > Probably. http://catb.org/~esr/faqs/smart-questions.html I just hoped that someone could actually answer me. Someone that have experience with AS/400. -William -- PH

[PHP] PHP and AS/400

2004-04-30 Thread William Lovaton
Hi, Is there a way to integrate PHP with AS/400?? -William -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Call to external function

2004-04-23 Thread William Lovaton
No... PHP and JavaScript are executing at different time and at different place. Besides, they are executed by different programs. Are you trying to measure execution time of a query?? Look at: http://www.php.net/microtime -William El vie, 23-04-2004 a las 09:09, Jeff McKeon escribió: > Is t

Re: [PHP] OK SQL experts...

2004-04-23 Thread William Lovaton
How are you manipulating the whole SQL string?? $sql = "SELECT..."; ??? or $sql = 'SELECT...'; ??? In this case you will have to use double quotes because PHP won't parse single quote strings for searching embedded PHP variables. May be this is the problem. -William El vie, 23-04-2004 a

[PHP] Apache 2 and PHP 4.3

2004-04-22 Thread William Lovaton
Hello there, Does someone know if Apache 2 support in PHP is stable when using Apache 2 as prcoess spawning only, I mean, no threads. Somebody has seen performance improvements in Apache 2 when compared to Apache 1.3?? I know it is experimental because of the threads configuration in the new Apa

Re: [PHP] Whats faster? text files or mysql?

2004-04-21 Thread William Lovaton
El mar, 20-04-2004 a las 08:24, John Nichel escribió: > Jay Blanchard wrote: > > > > There is always awk! > > > > Aw, no votes for cat | grep? ;) No, that would be worse since the system needs to spawn a new process and this is slow too. Specially on a high loaded system. If you are conc

RE: [PHP] Whats faster? text files or mysql?

2004-04-21 Thread William Lovaton
Hi Jay, El mar, 20-04-2004 a las 07:52, Jay Blanchard escribió: > [snip] > I have two text files with two rows of data on each line sperated by a > tab for about 20 lines in each file. Would it be faster accessing this > data by putting it in a mysql table? > [/snip] > > Sounds like the perfect o

Re: [PHP] slow upload with http post

2004-04-21 Thread William Lovaton
Mmmm... do you have another test box? How much time does it take using, let's say, ftp or samba?? -William El mi? 21-04-2004 a las 00:57, Yavuz Maşlak escribió: > full duplex > - Original Message - > From: "William Lovaton" <[EMAIL PROTECTED]> &g

Re: [PHP] slow upload with http post

2004-04-20 Thread William Lovaton
full duplex or half duplex? El mar, 20-04-2004 a las 02:00, Yavuz Maşlak escribió: > Hello > I have a webserver that running php4.3.x,mysql3.5x,apache1.3.x on Mandrake9. > I intended to transfer this server to another server. > I installed Freebsd4.9 on newserver. and certainly apache1.3x,php4,

Re: [PHP] PHP and Oracle RAC

2004-04-14 Thread William Lovaton
Hi Kevin, Well, I use Oracle 8.1.7 in the DB server (not a RAC) and Oracle 9.2.0 in the web server (Linux). It works fine. AFAICT, there is no need to do something else in order to be able to connect to a RAC. You just have to (optionally) define a load balancing option in the tnsnames.ora in t

Re: [PHP] automatic doc generation for classes

2004-04-13 Thread William Lovaton
Give phpxref a try, it is nice. it is on sf.net -William El mar, 13-04-2004 a las 14:10, Andy B escribió: > does anybody have any good recommendations for anything to do auto doc > generation for php classes/functions and stuff.. like phpdoc or something of > that sort? > > what ones are the b

Re: [PHP] Why not use assertions for input validation?

2004-04-13 Thread William Lovaton
Well, what ever I say might be wrong because I'm not an expert in assertions. First of all, I didn't know that PHP had assertions... so, cool! :-) Second, I know that assertions are used in non-interpreted languages, like C for example, and it gives a way to make some kind of debugging when the c

Re: AW: AW: [PHP] After calling a Function the Script aborts withoutanyerror :-\

2004-04-13 Thread William Lovaton
Hi Ben, Pretty weird problem... let's see, El mar, 13-04-2004 a las 11:08, Ben escribió: > now i tried get_included_files() that shows me all the files that i > wanted to include correctly. > but in the list of get_defined_functions(), in the user list are just > some, but not all the functions,

Re: [PHP] Call to undefined function: dbase_open()

2004-04-13 Thread William Lovaton
May be you should load the corresponding extension in your php.ini and restart the web server. Something like this: extension=dbase.so Then look back at your phpinfo(), you should see information about that module. -William El mar, 13-04-2004 a las 02:26, Joukje de Haan escribió: > Yes, the

Re: AW: [PHP] After calling a Function the Script aborts without anyerror :-\

2004-04-12 Thread William Lovaton
p (win2k, same PHP) and on a LAMP RH9 same > PHP > it didn't work. > > > -----Ursprüngliche Nachricht- > Von: William Lovaton [mailto:[EMAIL PROTECTED] > Gesendet: Montag, 12. April 2004 22:33 > An: [EMAIL PROTECTED] > Betreff: Re: [PHP] After calling a Functi

Re: [PHP] After calling a Function the Script aborts without any error :-\

2004-04-12 Thread William Lovaton
El lun, 12-04-2004 a las 14:12, Don Read escribió: > > Sometimes I have this problems too, no matter if that setting is on. > > > > If the error occurs within a table element on a web page, Mozilla won't > display because it's waiting for the '' to begin figuring > out the display properties. I

Re: [PHP] requests per s with php and mysql queries

2004-04-12 Thread William Lovaton
William, > > how do you messure your statistics? I would be interested in comparing > those numbers. Do you use a special tool? > > Thanx > > Merlin > > > William Lovaton wrote: > > > I have never used any kind of stress tool in my web app. Right now

Re: [PHP] After calling a Function the Script aborts without any error :-\

2004-04-12 Thread William Lovaton
Hi, El lun, 12-04-2004 a las 09:27, John W. Holmes escribió: > From: "Ben" <[EMAIL PROTECTED]> > > > i got a big problem. I have a script which includes some other script i > > tried include, require and require once. The problem is, if i do a > > function call to a function in one of these inclu

Re: [PHP] requests per s with php and mysql queries

2004-04-12 Thread William Lovaton
I have never used any kind of stress tool in my web app. Right now it is in production under heavy load and some statistics are: Authenticated users: 520 (this are the active sessions) Dynamic requests per second: 25 Average Max. Dynamic requests per second: 60 to 80 (these are peak values) When

Re: [PHP] Validating form field text input to be a specificvariable type

2004-04-07 Thread William Lovaton
Red, Chris, Good advice, I rarely have to use it, though. -William El mi? 07-04-2004 a las 16:44, Chris Shiflett escribió: > --- William Lovaton <[EMAIL PROTECTED]> wrote: > > Yeah, sometimes this is an annoying problem with PHP. Somehow, "", > > null, 0 and &

Re: [PHP] Re: Can someone with list access please remove these two?

2004-04-07 Thread William Lovaton
me too! -William El mi? 07-04-2004 a las 16:44, Justin Patrin escribió: > Richard Davey wrote: > > Hi, > > > > Subject says it all - they're causing auto-responder junk to any list > > poster and it's annoying: > > > > Information Desk <[EMAIL PROTECTED]> > > Advance Credit Suisse Bank <[EMAIL

Re: [PHP] Validating form field text input to be a specificvariable type

2004-04-07 Thread William Lovaton
Yeah, sometimes this is an annoying problem with PHP. Somehow, "", null, 0 and "0" is the same thing. The last two are considered empty() too. -William El mi? 07-04-2004 a las 16:34, Red Wingate escribió: > JFYI : > > var_dump ( '' == 0 ) eq TRUE >

Re: [PHP] Validating form field text input to be a specificvariable type

2004-04-07 Thread William Lovaton
this level this is not a good idea. -William El mi? 07-04-2004 a las 12:39, Red Wingate escribió: > No, as this would be yet another line of source. Maybe get those guys > to add another function > > ctype_digit_and_not_empty(); > > -- red > > [...] > > > * T

Re: [PHP] Validating form field text input to be a specificvariable type

2004-04-07 Thread William Lovaton
Hi Curt, El mi? 07-04-2004 a las 10:29, Curt Zirzow escribió: > * Thus wrote William Lovaton ([EMAIL PROTECTED]): > > > > or modify is_numeric() to explictly perform an integer validation: > > is_numeric(mixed value [, bool is_integer = false]) > > um.. ctype_digit()

Re: [PHP] Validating form field text input to be aspecificvariable type

2004-04-07 Thread William Lovaton
That's not bloat. And using a lot of lines of code to do a simple validation like this is not fun. -William El mi? 07-04-2004 a las 09:54, John W. Holmes escribió: > Don't add more bloat to the code. Don't be afraid of actually using a couple > of lines to accomplish something instead of deman

Re: [PHP] Validating form field text input to be a specificvariable type

2004-04-07 Thread William Lovaton
f ( $len1 == $len2 ) { >echo 'yuuhooo'; > } else { > echo 'd\'oh'; > } > > [...] > > > From: "William Lovaton" <[EMAIL PROTECTED]> > > > > > > > Instead of doing a lot of casting, you can use is_numeric() to see if a >

Re: [PHP] Validating form field text input to be a specificvariable type

2004-04-07 Thread William Lovaton
El mi? 07-04-2004 a las 08:05, John W. Holmes escribió: > From: "William Lovaton" <[EMAIL PROTECTED]> > > > Instead of doing a lot of casting, you can use is_numeric() to see if a > > variable is a number or a numeric string. > > Yeah, but the OP wanted t

Re: Re[2]: [PHP] Validating form field text input to be a specificvariable type

2004-04-07 Thread William Lovaton
Hi, El mi? 07-04-2004 a las 08:38, Richard Davey escribió: > Hello John, > > Wednesday, April 7, 2004, 2:05:22 PM, you wrote: > > JWH> Yeah, but the OP wanted to be able to tell an integer from a real number > JWH> from a string. is_numeric() is going to validate 5, 5.5, and 5.05E6, for > JWH> e

Re: [PHP] Validating form field text input to be a specific variable type

2004-04-07 Thread William Lovaton
Instead of doing a lot of casting, you can use is_numeric() to see if a variable is a number or a numeric string. -William El mar, 06-04-2004 a las 14:19, John W. Holmes escribió: > Well, if "(int)$string == $string", then the value is an integer. Same for > "(float)$string == $string" for a real

Re: [PHP] assigning NULL to a variable

2004-04-06 Thread William Lovaton
El mar, 06-04-2004 a las 07:41, Marek Kilimajer escribió: > Andy B wrote: > > how would you assign NULL to a variable if its original value is ""? otherwise > > leave it with its value... > > if($var === '') $var = NULL; what about: if ($var == '') unset($var); -William -- PHP General Maili

Re: [PHP] Re: Reusing MySQL Connections - Can it be done?

2004-04-06 Thread William Lovaton
This is weird, it works for me, I use Oracle though. The real application uses ADODB but it should work with the PHP native resources. I do this: 1. Define a singleton function, for example: getDBConnection() function &getDBConnection() { $db =& GLOBALS['APP_DB_CONNECTION']; if

Re: [PHP] passing variables

2004-04-05 Thread William Lovaton
You can use $_REQUEST too, it has $_GET, $_POST and $_COOKIES. -William El s?, 03-04-2004 a las 11:30, Larry E.Ullman escribió: > > When using a link like xxx.proceed.php?language=gbr > > the 'proceed.php' script does not receive any $language variable. > > > > Does someone know how to get it ru

Re: [PHP] Zend Optimizer 2.5.1 + PHP5 RC1 + WinXP + Apache 2 not happy together?

2004-04-02 Thread William Lovaton
I don't think Zend Optimizer can work with PHP 5 by the moment. El vie, 02-04-2004 a las 01:28, Elisamuel Resto escribió: > I've installed Apache and PHP5 RC1 fine, added my needed modules fine, then > I installed Zend Optimizer 2.5.1 and it doesn't load? phpinfo() doesn't show > it as loaded. ph

Re: [PHP] I think this is a bug...cant use exec commands.

2004-04-01 Thread William Lovaton
May be you can look at exec() function: http://www.php.net/manual/en/function.exec.php I know this doesn't solve the problem but gives you an option to workaround the problem. The curious thing about the warning message is: where are the backquotes in your code?? -William El jue, 01-04-2004 a

Re: [PHP] PHP and HTTPS POSTs

2004-04-01 Thread William Lovaton
Well, I remember I did a project for a company and in my development machine I didn't configured HTTPS but the production environtment use HTTPS... I never heard anything wrong about it and the application had some huge forms. By then I was using PHP 4.0.6 and then PHP 4.1.X. Try this: Send an H

Re: [PHP] Re: TUX web server replacement

2004-03-31 Thread William Lovaton
Hi Manuel, El mar, 30-03-2004 a las 18:11, Manuel Lemos escribió: > > This might work... I gues that any web server to make advantage of the > > new kernel 2.6 has to make explicit use of the sendfile() system call. > > I know for sure that boa does it. I don't know about thttpd or apache2. > >

Re: [PHP] Re: TUX web server replacement

2004-03-30 Thread William Lovaton
Hi Manuel, El mar, 30-03-2004 a las 17:38, Manuel Lemos escribió: > Hello, > > On 03/30/2004 09:38 AM, William Lovaton wrote: > > Well, I'am aware of that but the application is already made and it is > > big and development continue, so change it will be a hu

Re: [PHP] TUX web server replacement

2004-03-30 Thread William Lovaton
Hi Alister, Thanx for the links and the example. This link is very useful too: [] http://ftp.ucr.ac.cr/solrhe/chap28sec231.html I have it working now with good results. Regards, -William El mar, 30-03-2004 a las 16:35, Alister escribió: > On 29 Mar 2004 15:28:38 -0500 > William L

Re: [PHP] ocilogon

2004-03-30 Thread William Lovaton
You need the Oracle cliente libraries installed where you have PHP for this to work. the third parameter in OCILogon() is the connection string configured in tnsnames.ora ($ORACLE_HOME/network/admin) Let's say that you make connection to Oracle using sqlplus: User: scott pass: tiger dbstring: tes

Re: [PHP] Re: TUX web server replacement

2004-03-30 Thread William Lovaton
ffers the same features. :-( -William El lun, 29-03-2004 a las 21:08, Manuel Lemos escribió: > Hello, > > On 03/29/2004 04:45 PM, William Lovaton wrote: > > I've tried boa, thttpd, but none of these can do that, the only thing > > they can do is "redirect" whi

Re: [PHP] What's the use in OOP?

2004-03-29 Thread William Lovaton
I agree, but the reuse of code is also posible in an structured oriented fashion and it is not inherent in OOP. Simply saying that you are going to use OOP doesn't means that the code reuse is granted, like in structured oriented programming you have to think very carefully how to design your appl

Re: [PHP] TUX web server replacement

2004-03-29 Thread William Lovaton
't supposed to reach the web server. right?? -William El lun, 29-03-2004 a las 15:10, Alister escribió: > On 29 Mar 2004 14:45:57 -0500 > William Lovaton <[EMAIL PROTECTED]> wrote: > > > I would like to know if there are others fast user space web servers > > t

[PHP] TUX web server replacement

2004-03-29 Thread William Lovaton
Have been a very very long time since my last post. I have a big enterprise web application running in my company with a lot of traffic, I'm using Apache 1.3, PHP 4.3 and Oracle 8i. The production server was a RedHat 9 box and I configured it to use tux, the kernel web server available in Linux 2

[PHP] ODBC Cobol Driver

2002-03-06 Thread William Lovaton
Hello people, I would like to use a Cobol database with PHP... it's urgente to get the information contained in that DB. I need the ODBC driver for cobol, it doesn't care the operating system, it could be Linux, Windows 2000 or Windows 98. Especifically, I have a .NDX file (indexed i guess) but

Re: [PHP] How does attachment works with sybase?

2002-03-06 Thread William Lovaton
mmm... an attachment could be anything, a text file, a picture, a song, etc. May be you will need a BLOB. Look for the BLOB (at least in Oracle) data type in the SyBase documentation William. El mié, 06-03-2002 a las 10:47, Caleb Carvalho escribió: > Hi, > > How does attachment works with sy

Re: [PHP] REQUEST QUESTION

2002-03-05 Thread William Lovaton
That is impossible. If you want to store two values you will need two variables! William. El mar, 05-03-2002 a las 11:21, karthikeyan escribió: > Hi Guys, > > I allready posted this question in detail but I believe I didn't explain it >properly. > > There are 2 hidden variable in my FOR

Re: [PHP] Non printable page

2002-03-01 Thread William Lovaton
But you could save the page... change the colors and then print it. William. El vie, 01-03-2002 a las 15:11, Scott St. John escribió: > Black background, white text used to work :) > > > On Fri, 1 Mar 2002, Diana Castillo wrote: > > > Is there any way tomake a page that cannot be printed??

Re: [PHP] error msg

2002-03-01 Thread William Lovaton
You have to check your php.ini and set a valid tmp directory for storing session data. Look for the session section. William. El vie, 01-03-2002 a las 02:52, mm fernandez escribió: > hi. i get this error message whenever i open my page (except during the > first time i open it). Can someone

Re: [PHP] Overriding session headers

2002-03-01 Thread William Lovaton
May be this helps: http://www.php.net/manual/en/function.ob-start.php William. _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: ht

Re: [PHP] PHP and passwords

2002-03-01 Thread William Lovaton
If you use just and .inc file any user with a browser can hit in the URL: http://www.site.com/connect.inc and see what is inside. So, de recomendation is: Use a .php extension: connect.inc.php William El jue, 28-02-2002 a las 14:16, Sam Masiello escribió: > > What you could do is have a sc

Re: [PHP] Writing to files

2002-02-28 Thread William Lovaton
There is no need to use cookies, sessions, write to a file or somethings like that... just pass the vars from a page to another through hidden fields in the next page form. Eg. William El mié, 27-02-2002 a las 02:18, Chris Kay escribió: > > Question I have is, Anyway know of a better way t

Re: [PHP] Sessions and switching between php and htm documents

2002-02-28 Thread William Lovaton
Did you register de variable? look for session_register() in the manual. You can see this articles too: http://www.phpbuilder.com/columns/mattias2312.php3 http://www.phpbuilder.com/columns/mattias2105.php3 William. El mar, 26-02-2002 a las 23:36, Dave escribió: > login.htm > f

Re: [PHP] is PHP4.0.3 on a commercial webserver Justifiable ?

2002-02-26 Thread William Lovaton
Well, every version of every program have security issues, PHP 3 have security issues as well as PHP 4. Ask them for what specifics security problems are they talking about. William. El mar, 26-02-2002 a las 14:29, Tim Thorburn escribió: > Hi, > > Consider yourself lucky - my hosting compan

Re: [PHP] is PHP4.0.3 on a commercial webserver Justifiable ?

2002-02-26 Thread William Lovaton
Even... there are a lot of people still working with PHP 3 El mar, 26-02-2002 a las 13:44, John Cuthbert escribió: > My Webhost, www.easily.co.uk wou.ld appear to be running PHP 4.0.3 even > although PHP 4.1.1 is out. (www.jsa3d.co.uk/test.php) as you can see. > I will be writing to them about th

RE: [PHP] Help needed with Sessions

2002-02-26 Thread William Lovaton
You can look at this articles too: http://www.phpbuilder.com/columns/mattias2312.php3 http://www.phpbuilder.com/columns/mattias2105.php3 William. El mar, 26-02-2002 a las 10:27, Johnson, Kirk escribió: > Start here: http://www.php.net/manual/en/ref.session.php > > You will need to cal

Re: [PHP] Why Remember Session ??

2002-02-25 Thread William Lovaton
Well, you have to destroy the session... see session_destroy() I never tried this, but you can call a PHP script on the onUnLoad event of the body page... so when the window is closed, it calls a given script and this script destroy the session. William. El lun, 25-02-2002 a las 12:29, Beta e

Re: [PHP] get out of frameset?

2002-02-25 Thread William Lovaton
try this: Log out or Log out William El lun, 25-02-2002 a las 12:00, Jan Grafström escribió: > Hi! > > I have build a webshop inside a framset using sessions, and move around in > my mainframe. > I wonder how to get out of the mainframe when I logg out and destroy the > session. > It doese

Re: [PHP] PHP & Frames?

2002-02-25 Thread William Lovaton
You have to pass the params received in index.php to the rest of the pages in the frames... eg: http://mysite.com/index.php?s=1 so, the index.php script will looks something like this: name=menu>"; name=main>"; name=foot>"; William. El lun, 25-02-2002 a las 03:03, Jason Cal

Re: [PHP] creating dropdown lists from fetched arrays.

2002-02-25 Thread William Lovaton
El dom, 24-02-2002 a las 17:39, Matthew Darcy escribió: > Hi, > > I want to create a dropdown list with options from a table. > > ie > > > > > $sql_select = "select * from dropdown_options"; > $results = mysql_query($sql_select); > > while ($row = mysql_fetch_array($results); > { > e

Re: [PHP] login determines content on page

2002-02-24 Thread William Lovaton
El sáb, 23-02-2002 a las 01:56, jtjohnston escribió: > What's the difference between > if (isset($submit_happening)) > and > if $submit_happening) if (isset($var)) evaluates whether $var exists or not if ($var) evaluates de value of $var $var = 1; if(isset($var)) --> TRUE if($var) -->

Re: [PHP] Array HELL!!!!

2002-02-22 Thread William Lovaton
El vie, 22-02-2002 a las 04:54, jas escribió: > I don't know what it is but I am having a hell of a time trying to get some > results of a query setup into an array or variable (too much of a newbie to > know which) that can be passed to a confirmation page before deleting the > record from a tab

[PHP] Miliseconds with PHP4

2002-02-22 Thread William Lovaton
Hello there, I want to know the execution time of some scripts I made, I'm using the difference of seconds (time() function) between the start and the end of the script. But, I would like to get a greater precision... so, I was wondering if there is a chance to get miliseconds. TIA William