[PHP] Re: Cold Fusion conversion issues: app vars and cached queries

2002-12-04 Thread John Lim
Hi Steve, "Steve W" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > My company is looking to move our site away from Cold Fusion due to > the cost. We had talked about JSP, but I would highly prefer PHP. > After evaluation, with the generic database functions n

[PHP] A Date and Time Library for all seasons

2003-01-25 Thread John Lim
Download: http://php.weblogs.com/adodb_date_time_library PHP native date functions use integer timestamps for computations. Because of this, dates are restricted to the years 1901-2038 on Unix and 1970-2038 on Windows due to integer overflow for dates beyond those years. This has been frustrating

Re: [PHP] ODBC

2002-08-03 Thread John Lim
Have a look at http://php.weblogs.com/adodb_csv "Bob Lockie" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > >Can PHP be used on an Apache server (linux) to connect to a (remote) MS > >Access server (NT) through ODBC? > > Yes. > > > > If so, does anyone

Re: [PHP] I'm in need of a PHP web host recommendation

2002-11-17 Thread John Lim
I would recommend http://futurequest.net Good, reliable, and very skilled technical people, who know linux and web-hosting inside out. "John Kenyon" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > > Jason Reid wrote: > > >I suggest paying a visit to www.webho

Re: [PHP] Re: Re: PHP 4.2

2002-06-25 Thread John Lim
I use http://php.net/strnatcasecmp since version_compare is only available since 4.1.0, which is rather self-defeating :-) "Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > You mean like php.net/version_compare ? > > On Mon, 24 Jun 2002, Dreamriv

[PHP] Re: BREAK into the DB

2002-07-15 Thread John Lim
Also see wordwrap( ). "Blue Presley" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > the function you are looking for is called nl2br(). Translated it means > 'new line to .' when you pull you text from your database run it > through this and it will be corr

Re: [PHP] $PHP_SELF vs. functions, arrays and variable

2001-03-16 Thread John Lim
Hi Scott, Good question! $PHP_SELF is a global variable, so you need to declare it in functions: function a() { global $PHP_SELF; print $PHP_SELF; } John "Scott Fletcher" <[EMAIL PROTECTED]> wrote in message 98tjgv$40e$[EMAIL PROTECTED]">news:98tjgv$40e$[EMAIL PROTECTED]... > Hi! > > I

Re: [PHP] urlencode

2001-03-17 Thread John Lim
You have magic_quotes_runtime enabled which causes this behaviour. You can disable it by turning it off in your PHP.ini. See http://php.net/manual "rkirk.com Mail" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Help - I've a problem when using urlencode/deco

Re: [PHP] avoiding redirect

2001-03-17 Thread John Lim
>From memory, 3 will delay 3 seconds before redirect. Change to : printf ("http://coolsite/test/newfile.html\">"); mat t <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I have a form that allows user to either upload a file from the client to the server or t

Re: [PHP] urlencode

2001-03-17 Thread John Lim
Sorry, its magic_quotes_gpc -- i got confused. The magic_quotes_runtime one is for databases. Regards, John "Richard Kirk" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > No, its set to "off". > > > -Origina

Re: [PHP] Protecting JavaScripts from being Donwloaded

2001-04-16 Thread John Lim
A funny question! I presume you mean you want to protect your javascripts from being read by users, eg compiled. Internet explorer has a script encoder that scrambles your scripts that you can get from microsoft.com. Doesn't work with netscape. Regards, John ""Steve Haemelinck"" <[EMAIL PROTECTE

Re: [PHP] PCRE vs. POSIX

2001-04-16 Thread John Lim
Rasmus Lerdorf (inventor of PHP) has said that PCRE is generally faster, but i haven't benchmarked myself. Of course strpos( ) is the fastest. "bill" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > hi everyone, > > i have been using perl for quite some time, bu

Re: [PHP] baffled :<:

2001-04-17 Thread John Lim
""Peter Houchin"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > can any one see a problem with this loop? > >$db = include"connect.inc"; > $foo = "SELECT * FROM 6pci WHERE card='$card' ORDER BY card"; > > $result = mysql_query($foo,$db); > > > while ( ($

Re: [PHP] How do i include ASP script into PHP...??!

2001-04-17 Thread John Lim
Easy. Just use fopen('http://localhost/file.asp') then fread the data you want. I do this technique to read Access tables from a Linux box. ""Joe Truong"" <[EMAIL PROTECTED]> wrote in message 9bfd8q$gum$[EMAIL PROTECTED]">news:9bfd8q$gum$[EMAIL PROTECTED]... > How can i include ASP scripts int

Re: [PHP] Installing PHP Extentions for IIS - W2K - Is it possible?

2001-04-17 Thread John Lim
The PHP developers are a diverse and perverse group. You can get them from http://php4win.de ""SED"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > I was downloading the latest version of PHP (Win32 Binaries) for IIS server, > but no external extensi

Re: [PHP] Connecting to a MS Access database

2001-04-22 Thread John Lim
Your question is a bit too short to be answered. Explain why and we will try to explain how. The other poster is wrong however, u can use ADO and use the Jet OLEDB provider to connect to Microsoft Access. Søren Soltveit <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED

Re: [PHP] Multiple Result sets

2001-05-08 Thread John Lim
I don't think you can unless you use PHP's COM support and then use ADO's next recordset feature. Regards, John ""James Crowley"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > I've written a recursive stored procedure in MS SQL, which returns a number

Re: [PHP] ASP's Application("asdf") = "hello world"

2001-05-17 Thread John Lim
Sorry, PHP doesn't support application variables natively. You can get classes that emulate this behaviour at http://0x00.org/ or use shared memory or a database. ""elias"" <[EMAIL PROTECTED]> wrote in message 9e0aqb$8vv$[EMAIL PROTECTED]">news:9e0aqb$8vv$[EMAIL PROTECTED]... > Hello! > What's th

Re: [PHP] ASP's Application("asdf") = "hello world"

2001-05-17 Thread John Lim
; The Shared Memory functions doesn't work somehow on win32 ? > > ""John Lim"" <[EMAIL PROTECTED]> wrote in message > 9e0e2j$o33$[EMAIL PROTECTED]">news:9e0e2j$o33$[EMAIL PROTECTED]... > > Sorry, PHP doesn't support application variables nat

Re: [PHP] PHP Pros/Cons, Case Examples, PHP vs Servlets

2001-05-17 Thread John Lim
Visit http://php.weblogs.com/ There currently is a big debate on this issue. Also see the PHP advocacy pages. ""Scott A Winkle"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > Im currently running many scripts myself and other staff members wrote in

Re: [PHP] Server limits/recommendations

2001-05-18 Thread John Lim
Hi Ian, I've also been using PHP at HostPro. They are using PHP 4.0.1pl1 on our NT server, which is really old. What version do you have on your server? I definitely recommend you switch over to Linux or get HostPro to upgrade their PHP to a newer more stable version if possible. The config men

[PHP] adodb 1.10 released

2001-05-19 Thread John Lim
http://php.weblogs.com/adodb Database wrapper library 1.10. Now supports cached recordsets. Example below: include('adodb.inc.php'); include('tohtml.inc.php'); $ADODB_CACHE_DIR = '/usr/local/adodbcache'; $conn = &ADONewConnection('oracle');/* Oracle 8, use 'oci8' */ $conn->PConnect('','scott','

Re: [PHP] ok, are servlets/jsp faster than php4?

2001-05-20 Thread John Lim
Well if you had more RAM and a faster CPU, servlets/jsp would be faster :-) This link might not answer your question completely, but it could help... http://php.weblogs.com/jsp "Christopher Leigh" <[EMAIL PROTECTED]> wrote in message 000701c0e134$4223b800$01eea8c0@contrec">news:000701c0e134$422

Re: [PHP] using Delphi code with PHP

2001-05-22 Thread John Lim
See http://zend.com/zend/api.php Bye john ""Gilles Koffmann"" <[EMAIL PROTECTED]> wrote in message 9edaso$ro7$[EMAIL PROTECTED]">news:9edaso$ro7$[EMAIL PROTECTED]... > Hi, > > I'm trying to use some Delphi code with PHP without using COM (objective is > to port it to linux). > The first clue I ha

[PHP] Re: Creating rich interfaces for web applications??

2002-01-14 Thread John Lim
Hi Geoff, Have a look at phpLens at http://phplens.com/ It's a commercial php software that my company wrote that allows you to perform sort/filter/edit and validation too on your data. Many of our customers are using on Intranets/Extranets. Works well with NN 4/6 and IE browsers. Regards, John

Re: [PHP] Persistent Database Resources?

2002-01-15 Thread John Lim
Hi, Both PEAR DB/Cache and ADOdb database libraries support cacahed recordsets. See the PEAR sources and http://php.weblogs.com/adodb Rgds, John Nick Wilson <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > >

[PHP] Re: Adding 6 digits to a str?

2002-02-03 Thread John Lim
Try http://php.net/str_pad Andy <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi guys, > > I am trying to force a int to be 8 digits. If it is only 3 dig filling the > first ones with 0. > > Anyhow I tryed it with type casting, but it does not matter what I t

[PHP] Re: Multi Threading in PHP

2002-02-06 Thread John Lim
Hi Bart This can be simulated using non-blocking sockets. However this is one time when using Perl or Python might be a better solution (sigh). Bart Frackiewicz <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, a few days ago i saw here a thread about multi t

Re: [PHP] Re: Cross DB application

2002-04-16 Thread John Lim
Thanks Richard, ADOdb is also dual licensed under a more open license - BSD too. You might also find interesting this article: http://php.weblogs.com/portable_sql Regards, John Lim "Richard Ellerbrock" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAI

[PHP] Re: Performance question

2002-04-16 Thread John Lim
I suggest using a html caching solution. Generate your html once, and store it in a file. I like http://0x00.org/php/phpCache/ "Mike Fifield" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Ok I have a performance question. I run a wallpaper site; this is the u

Re: [PHP] Re: Cross DB application

2002-04-17 Thread John Lim
Manuel, > Prepared queries in practice are the same as what John Lim calls in this > document http://php.weblogs.com/portable_sql as "binding", except that > he doesn't seem to be aware that it is the same thing, so he says that > only some database can use it! :-

Re: [PHP] Re: Cross DB application

2002-04-17 Thread John Lim
Hi Manuel, "Manuel Lemos" <[EMAIL PROTECTED]> wrote > > Most of the popular database abstraction packages support prepared > queries, except for your PHP ADODb. So, think about this before you keep > throwing sand to the eyes of the users that do not know better, may be > you understand the point

[PHP] Re: srand thought

2002-05-03 Thread John Lim
Hello Gerard, The point is that we wanted adodb to work "out of the box" so that is why srand( ) is called. You can do it yourself if you want to (and comment out the srand) , or let adodb do it for you. Regards John "Gerard Samuel" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[

[PHP] Re: Help on PHP vs JAVA

2002-02-21 Thread John Lim
Hi Any consultant will tell you that all you need to do is define the comparison criteria and you can choose the winner easily. PHP: ease of use, low cost of ownership, etc. Java: scalability, choice of implementations, etc. I just hope you can live with your choices! Regards, John Berlina <[

[PHP] Re: php 4.1.1 vs 4.0.6

2002-02-23 Thread John Lim
Cc Zona <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > In article <[EMAIL PROTECTED]>, > [EMAIL PROTECTED] (Ezra Nugroho) wrote: > > > I am deciding between 4.0.6 and 4.1.1 (or maybe 4.1.2 if it's comming soon). > > I heard that there is some significant diff

[PHP] Re: ASP vs PHP

2002-03-30 Thread John Lim
Hello Ciro, For database access and automatic generation of forms, see http://phplens.com/ You can create search/edit/new record forms automatically through the web user interface with little coding. It also has a low level PHP interface for deep coding. This is a commercial product, developed by

[PHP] phplib, pear db, metabase, adodb, and native mysql benchmarks

2001-10-24 Thread John Lim
Someone asked me to benchmark PHPLib also. Here is the revised benchmarks, with some minor speedups for PEAR DB and Metabase. Benchmark was to select 82 rows from the products table 200 times. The tests were repeated 5 times. Connection times were excluded from the benchmark. Lower values are bet

[PHP] Re: Class for database-access doesn't work

2001-11-11 Thread John Lim
Leave out the second $. Eg, $this->database is correct. Next time when debugging, set error_reporting(E_ALL); This will catch this error I believe. Bye, John Alexander Czernay <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > I just tried to write a si

[PHP] Re: ASP, ODBC, IIS 5, and PHP

2001-11-11 Thread John Lim
Run in CGI mode. The ISAPI is still a bit unstable. Sigh. Kevin Pratt <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I appear to be having a problem where when I run a PHP script that uses ODBC > calls my ASP/ODBC driven pages stop functioning. When I run a P

[PHP] Re: Faking MS Access on MySQL linux box

2001-11-09 Thread John Lim
See http://php.weblogs.com/adodb_csv "ADODB also supports SQL communications through HTTP as a database proxy. In plain English, if you have a FoxPro or Access database that you need to connect to from Unix, you can do so via HTTP (eg. Apache talking to IIS, which talks to a small PHP program [th

[PHP] Re: Design for Large OO poject

2001-11-09 Thread John Lim
Hi Daniel, Most OOP projects contain multiple hierarchies, not just one. Normally DB is not made the base class. Think in terms of whether the objects have is-type-relationships or use-part-relationships. Eg. Boring_News uses-the-part MySQL_DB, so Boring_News uses the MySQL_DB object as a membe

[PHP] Re: Associative Arrays Performance under Linux

2001-11-09 Thread John Lim
This is just a suggestion. Rather than creating the associative array from scratch, prebuild one and just use copies of that associative array when you need it. I don't know whether it will be faster, but intutitively it should. This is analogous to pre-allocating structs in memory before using t

Re: [PHP] Re: Faking MS Access on MySQL linux box

2001-11-10 Thread John Lim
u think? >mweb > > On Sat, Nov 10, 2001 13:02:14 at 01:02:14PM +0800, John Lim wrote: > > See http://php.weblogs.com/adodb_csv > > > > "ADODB also supports SQL communications through HTTP as a database proxy. In > > plain English

Re: [PHP] Advantages of php

2001-11-17 Thread John Lim
See http://php.weblogs.com/php_vs_asp and http://php.weblogs.com/php_asp_7_reasons The articles need to be updated for Microsoft.Net though. Jason G. <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > You could check the list archives... This question flys by ev

[PHP] Re: Version Contol for PHP site

2001-11-19 Thread John Lim
Hi Jeff There is a Windows version of WinCVS (see http://wincvs.org/ ). John Jeff Bearer <[EMAIL PROTECTED]> wrote in message 1006195598.1407.7.camel@jbearer">news:1006195598.1407.7.camel@jbearer... > Hello, > I'm trying to come up with a workable solution to implement version > control for our

Re: [PHP] PHPhish Logo

2001-12-13 Thread John Lim
Hi Also see http://www.web-cards.de/create.php3?rubrik=29 P for Pachyderm! John Rasmus Lerdorf <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Not that I think PHP needs a mascot, but I have always liked the > mole/groundhog. Someone even drew up some logos

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

2001-12-14 Thread John Lim
This doesn't explain why mm is causing such a memory bloat though. Mark, are you storing big arrays as session variables? I am using mm myself for sessions and never have these problems (I only store less than 1K of data in sessions anyway). Regards, John Jeremy Allen <[EMAIL PROTECTED]> wrote

[PHP] Re: Unable to return object references from functions

2001-12-15 Thread John Lim
Hi Yasuo, I seem to remember having similar problems understanding objects and references also and you guided me here. Manuel is a good programmer and if he also has problems, I'm a bit worried for novices. Objects and references are not intuitive :( Regards, John Yasuo Ohgaki <[EMAIL PROTECTED

[PHP] Re: i get a warning after upgrading to 4.1.0 (repost)

2001-12-15 Thread John Lim
This is a known bug with persistent database connections. Switching to non-persistent connections or ISAPI avoids this problem. Phillip Oertel <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > does anyone know what > > Warning: Unknown persistent list entry type

[PHP] Re: Using persistent connection to database

2001-12-17 Thread John Lim
I would recommend switching to the oci_* functions. More reliable. Bye, John Berlina <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi to everybody, > > first sorry for my poor english. > > im trying to use persistents connections to an Oracle Database throug

Re: [PHP] Metabase Opinions

2001-04-03 Thread John Lim
a database abstraction layer as an insurance policy (changing databases)? If so then just choose the one that provides you an easier upgrade path. John Lim PS: ADODB is modelled on Microsoft's ADO, so it's popular among converted ASP programmers. If you one of these people, ADODB might be attract

Re: [PHP] Change in date() in php4.0.4...

2001-04-03 Thread John Lim
I haven't checked date( ) in the manual, but could work? "Boget, Chris" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > In the previous version we had (4.0.3), the following > worked: > > echo date( "m/d/Y h:ia" ); > > to display the date on the first line an

[PHP] Finer points of debugging: vardump vs. print_r

2001-04-09 Thread John Lim
Just a question that has been besetting me for a while: which is better for debugging -- vardump( ) or print( ) ? Does anyone have a preference? Why? Is one better than the other? Thanks for answering this prickly question! John Lim -- PHP General Mailing List (http://www.php.net/) To

[PHP] Re: Smarty + JavaScript

2001-09-08 Thread John Lim
>From the smarty manual {literal}