Re: [PHP] Apache + Oracle + PHP on HPUX

2001-07-26 Thread infoz
I've got an HP-UX 10.20 and I would like to install Apache + Oracle + PHP. You have my deepest sympathies. :) I installed and maintained PHP3 PHP4 + Oracle + OpenSSL + Apache on a system like that for 2 years before we were finally able to retire it and move to a Solaris environment. The

Re: [PHP] CAN'T connect to db when running PHP as Cron

2001-07-18 Thread infoz
I would gather the output from phpinfo() for each case (web server cron job) and compare them. Often a path or environment variable will be different. This is especially true of Oracle which is somewhat fussy about having it's environment set properly in order to connect. - Tim

Re: [PHP] Upcoming wrox php/flash book?

2001-07-13 Thread infoz
Yep, the Flash 4/5 LoadVariables function will let you call a PHP script that sends the data back as URL encoded variables. Works great! - Tim http://www.phptemplates.org - Original Message - From: Andrew Chase [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, July 13, 2001 11:43

Re: [PHP] Web application?

2001-07-13 Thread infoz
I do this on several large high-traffic sites, as part of a content-management system, and it works fine. If you also use a script cache product (Zend Cache or APC) and a cacheing template engine (cough, cough) together in this kind of environment, you should see excellent results, with the

Re: [PHP] how do i get url: response codes?

2001-07-12 Thread infoz
Here's some code I've been using for that. YMMV. :) - Tim http://www.phptemplates.org // // checks $url, returns true/false and sets the response code in $response // function dt_checklink($url, $response) { $ua = parse_url($url); $host = $ua[host]; $port = ($ua[port] != 0) ?

Re: [PHP] Speed of loding PHP pages

2001-07-11 Thread infoz
Netscape is notoriously slug-like when it comes to loading large tables (i.e. the output of phpinfo()). - Tim As an experiment, I have a page that issues a phpinfo(). WIth I.E. 5.5, it takes about 3 seconds. With Netscape 4.77, it takes almost 20 seconds. -- PHP General Mailing List

Re: [PHP] Not sure how to describe this problem..

2001-07-10 Thread infoz
I agreee that it sounds like you're running into concurrency issues with mySQL. I would just adopt a statistical approach, and pick a banner at random each time...if the random number generator works properly, then you'll get an even distribution over the universe of available banners. If you

Re: [PHP] Average of column...

2001-07-10 Thread infoz
You can name the pseudo-column by doing select AVG(age) as avgage from ... and then accessing it as avgage. - Tim http://www.phptemplates.org - Original Message - From: Jeff Lewis [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 10, 2001 11:27 AM Subject: [PHP] Average of

Re: [PHP] Storing serialized classes in database

2001-07-09 Thread infoz
The way we do commonly this in Dreamtime is to have a container object (essentially an associative array with a wrapper (http://www.phptemplates.org/old/classref/dot_Container.html) that allows you to get/set the profile data elements by name. That whole object is then serialized as the (single)

Re: [PHP] HTML/PHP's static state problem.

2001-07-09 Thread infoz
If it's not prohibitive, you can pre-load all the possibilities into javascript arrays via PHP, and decide which to subset to display using javascript. I did this on a large on-line kid's encyclopedia, where the page could display different lists of links using javascript depending on where they

Re: [PHP] Sessions and redundant servers

2001-07-05 Thread infoz
The load-balanced cluster implementations I've worked with define a PHP session handler that uses a database to store session data, and so it doesn't matter which web server a particular session comes from, the data is stored in a centralized place. - Tim http://www.phptemplates.org How do

Re: [PHP] sending 5000+ emails - use PHP?

2001-07-03 Thread infoz
Can't say that I agree. Once you get through to the SMTP port you can tell it that the following message is supposed to go to a list of people and you only connect once, vs. connecting once for each recipient. More efficient all the way around, I would think. Mind you, I haven't tried this on

Re: [PHP] sending 5000+ emails - use PHP?

2001-07-02 Thread infoz
We regularly use PHP to send messages to a 100,000+ member mailing list. No problem. I did insert some periodic pauses to give the mail server some breathing room. :) - Tim http://www.phptemplates.org From: Matthew Delmarter [EMAIL PROTECTED] I at looking at using PHP to send a monthly

Re: [PHP] sending 5000+ emails - use PHP?

2001-07-02 Thread infoz
We use mail(). I have on my list to re-write it to use SMTP sometime to see if it works any faster, but it also goes into the if it ain't broke, don't fix it category. If all the messages were identical, we might be able to get some efficiency by sorting the list by domain name and batching

Re: [PHP] What does this error mean?

2001-06-30 Thread infoz
The user the web server runs as (often 'nobody') does not have write access to the logs directory. - Tim http://www.phptemplates.org - Original Message - From: Jimi Malcolm [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, June 28, 2001 3:17 PM Subject: [PHP] What does this

Re: [PHP] date - day

2001-06-26 Thread infoz
Use mktime() and then date(). http://www.php.net/manual/en/function.mktime.php http://www.php.net/manual/en/function.date.php - Tim http://www.phptemplates.org - Original Message - From: Tyler Longren [EMAIL PROTECTED] To: php-general [EMAIL PROTECTED] Sent: Monday, June 25, 2001

Re: [PHP] Help with PHP/Oracle and serializing data

2001-06-26 Thread infoz
If the data will be less than ~4K, use 'varchar2', otherwise use 'long'. - Tim http://www.phptemplates.org - Original Message - From: Michael Champagne [EMAIL PROTECTED] To: PHP General Mailing List [EMAIL PROTECTED] Sent: Monday, June 25, 2001 2:42 PM Subject: [PHP] Help with

Re: [PHP] Help with PHP/Oracle and serializing data

2001-06-26 Thread infoz
In Oracle, 'long' is a variable-length character data column up to 2GB in size. Roughly equivalent to 'text' in mysql, I think. You can also use 'blob', 'clob' and/or 'nclob' instead, but I think access to those types is less straightforward than the 'long' type. - Tim

Re: [PHP] PHP Uptime error

2001-06-26 Thread infoz
It sounds like it might be the permissions on /proc itself. What does 'ls -ld /proc' say? - Tim http://www.phptemplates.org - Original Message - From: Peter Phillips [EMAIL PROTECTED] Subject: Re: [PHP] PHP Uptime error Thanks for your help, this is what I get when I try a uptime

Re: [PHP] Help with PHP/Oracle and serializing data

2001-06-26 Thread infoz
I used them all over on a large PHP3 (and later PHP4) site for several years until we migrated to PostgreSQL in January, with no problems. What's the correct alternative...CLOB's? - Tim http://www.phptemplates.org - Original Message - From: Thies C. Arntzen [EMAIL PROTECTED] If the

Re: [PHP] damn $REQUEST_URI

2001-06-25 Thread infoz
$HTTP_HOST Run a page with ? phpinfo() ? on your server you'll see all sorts of goodies in there. - Tim http://www.phptemplates.org - Original Message - From: Peter Van Dijck [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 25, 2001 7:10 AM Subject: [PHP] damn $REQUEST_URI

Re: [PHP] php as cron

2001-06-22 Thread infoz
If you're partial to the approach of using a web-based program to do this (often a bad idea, for security reasons) then look at 'curl' or 'wget' instead of 'lynx'. (you can find them on Freshmeat.net) Much better is to build the CGI version of PHP, and use PHP as a script processor just like

Re: [PHP] Another Template Engine (code)

2001-06-21 Thread infoz
You may want to take a look at Dreamtime's template engine. I've had pretty good feedback on it so far. The template language supports things like loops, if-then, pre-compiling templates, etc., which makes assembling complex pages pretty easy. We replaced a whole heap of Cold Fusion code with

Re: [PHP] protect source code

2001-06-21 Thread infoz
APC is a script cache engine, like the Zend Cache, it doesn't protect your source code. - Tim http://www.phptemplates.org - Original Message - From: Reuben D Budiardja [EMAIL PROTECTED] Sent: Thursday, June 21, 2001 9:58 AM Subject: Re: [PHP] protect source code Someone told me that

Re: [PHP] Apache config + PHP include paths

2001-06-21 Thread infoz
Yes, in httpd.conf, just add the appropriate line, i.e. php_value include_path blah in the section for each virtual host. - Tim http://www.phptemplates.org is there a way to set up a different include path per virtual host in the apache config or in the php.ini ? -- PHP General

Re: [PHP] Parse error..help!

2001-05-18 Thread infoz
It should be something like: function AccessHit() { ... } -- 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] preprocessing

2001-05-17 Thread infoz
There's a public domain function kicking around called post_to_host or something like that which will do exactly what you wish. If you search the list archives I'm sure there will be several pointers to where you can find it. - Tim -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] preprocessing

2001-05-17 Thread infoz
You'll actually want to do a little more than that, i.e. read the socket and dump it to the browser so that the output from the page you're posting to gets displayed. There is another version of that function around that handles that too. I can post it later today if nobody else finds it

Re: [PHP] print url of refering domain

2001-05-08 Thread infoz
I would like to be able to display the refering domain name on the page along with a small text message (under construction) etc, to save me having to create sites for each domain. Under Apache and with an HTTP/1.1 client, $HTTP_SERVER_VARS[HTTP_HOST] contains the value you're looking for, I