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
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
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
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
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
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
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
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
>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
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
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
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
""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 ( ($
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
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
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
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
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
; 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
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
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
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','
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
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
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
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
>
>
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
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
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
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
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! :-
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
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:[
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 <[
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
>From the smarty manual
{literal}