Re[4]: [PHP] End slash, small problem.

2004-01-03 Thread Tom Rogers
Hi, Saturday, January 3, 2004, 4:50:44 PM, you wrote: C You forgot to double slash the windows slash like: '\\' C I would write that same functionality as follows: C $sep = (PHP_OS == 'Windows')? '\\':'/'; C if(substr($template_path,-1) == $sep)) $template_path .= $sep; Not in single quotes I

[PHP] php stub

2004-01-03 Thread Dan Mahoney
So it's, at the time of this writing, 2:47 AM. Keep this in mind. I was looking at my webserver configuration. I am in love with Suexec. It's a gift from god for web hosts. Not only does it secure your directories, but as a bonus it forces your users to keep their stuff secure (i.e. by not

RE: [PHP] A hint...

2004-01-03 Thread Burhan Khalid
-Original Message- From: Jeremy Russell [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 30, 2003 11:17 PM To: [EMAIL PROTECTED] Subject: [PHP] A hint... Hello list.. I was needing a small hint on how to make a sort of status page... What I have is a function that takes a few

[PHP] Wondering If Upgrading Might Be in Order

2004-01-03 Thread [EMAIL PROTECTED]
I don't know, but maybe part of the trouble I have making canned code to learn PHP/MySQL is that I'm using older versions? I'm on a Macintosh G3 PowerBook with OS 10.2.1. PHP is version 4.3.0; MySQL, 3.23.53; and phpmyAdmin, 2.4.0. What are the latest available post-beta, stable, fully-baked

[PHP] encoding problem

2004-01-03 Thread Pedro Salgueiro
Hi. I have made a script in php that calls a java program. This java program will make a connection to a PostgreSQL db and do some operations. That java program works just fine if I run it on a console, but when it is php to runing it, it gives some errors related to the charset encoding. The

[PHP] Problem with call_user_func_array and passing an array of objects

2004-01-03 Thread Jon Goodwin
Hi, I wish to call function f($params) using call_user_func_array() and pass to f() an array of two objects as a parameter. When I call f() directly, it works as expected. Function f() recognises that 2 objects are in the array and I can access their member variables. When I call the same

[PHP] Compare Array Elements

2004-01-03 Thread wknit
I am a novice, I am sure this is pretty simple... I have two arrays of integers, equal length. The arrays elements consists of the integers 0 through 9. The order of the numbers in the arrays should always be different. Example 1: Is ok xArray: 2 9 6 0 1 3 4 5 8 7 yArray: 3 7 1 9 0 8 6 2 4 5

Re: [PHP] example of posting board or shoutbox

2004-01-03 Thread Richard Davey
Hello Austin, Saturday, January 3, 2004, 1:29:14 AM, you wrote: A how do i make something where some1 enters text, a name, and email A address, etc. and can post it onto a textarea or something, in a format of http://www.hotscripts.com/cgi-bin/search.cgi?bool=ANDquery=shoutboxcatid=2 -- Best

[PHP] Re: Compare Array Elements

2004-01-03 Thread Geoffrey Thompson
One approach: for ($i=0; $i sizeof($xArray); $i++) { if ($xArray[$i] == $yArray[$i]) { new_yArray(); break; } } Wknit [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I am a novice, I am sure this is pretty simple... I have two arrays of integers, equal

[PHP] PHP $_SESSION Expiring in IE

2004-01-03 Thread Tarrant Costelloe
Hello, I have recently launched the new Planet-Tolkien.com, one would think that writing a message board from scratch and a dynamic weather system, a simple session login would be the least of my problems right? Wrong. It would appear that for Mozilla and Opera keep a $_SESSION is not an issue

RE: [PHP] PHP $_SESSION Expiring in IE

2004-01-03 Thread Larry Brown
I use sessions with IE all the time without such a problem. Are there any points in the program that redirect the user off site and back or something with that affect that IE might be handling in a wierd way? Do you have pages that detect the browser and feed alternate content based on the

RE: [PHP] PHP $_SESSION Expiring in IE

2004-01-03 Thread Tarrant Costelloe
Are there any points in the program that redirect the user off site and back or something with that affect that IE might be handling in a weird way? Nope Do you have pages that detect the browser and feed alternate content based on the browser? Nope do you always run the session_start before

Re: [PHP] Production Websites (error loggin)

2004-01-03 Thread Marek Kilimajer
Does apache have permissions to write to the file and directory? Aidan Lister wrote: If anyone has successfully got php error logging working on a production website, could you please reply with the steps taken? I'm using RH7.3, Apache1.3x, PHP4.3x My php.ini has: log_errors = On error_log =

[PHP] Re: Redirection to a named frame

2004-01-03 Thread Martin Helie
How about simply: echo SCRIPT window.top.main.location= 'http://localhost/phase1/report.php''; /SCRIPT; ? Geoffrey Thompson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I was only able to find one reference to targeting a named frame on a redirection, in the MySQL Cookbook

[PHP] fsockopen to conect to ssl sites

2004-01-03 Thread Jorge Castaneda
WHERE IS THE ERROR? The username and the password are the correct and the name of the variables (login and pass) also match. I tried to get data from a secure site but I always receive the next message instead of the page I request: We are connected with somesecuredomain.com

php-general Digest 3 Jan 2004 20:25:12 -0000 Issue 2510

2004-01-03 Thread php-general-digest-help
php-general Digest 3 Jan 2004 20:25:12 - Issue 2510 Topics (messages 173674 through 173690): Strange counter behavior 173674 by: Cesar Aracena Re: End slash, small problem. 173675 by: Chris 173676 by: Tom Rogers php stub 173677 by: Dan Mahoney Re: A

Re: [PHP] PHP $_SESSION Expiring in IE

2004-01-03 Thread Kirk Babb
Have you tried the header(Cache-control: private) workaround for IE6? I seem to remember reading something about that on one of the web dev sites (devshed probably). Use that immediately after session_start() and see if it makes a difference. Kirk Tarrant Costelloe [EMAIL PROTECTED] wrote in

RE: [PHP] PHP $_SESSION Expiring in IE

2004-01-03 Thread Tarrant Costelloe
Doesn't seem to have solved the problem... My session include file at the top of all documents looks like: session_save_path($some_path/sessions); ini_set('session.use_cookies', 1); ini_set('session.gc_probability', 1); ini_set('session.gc_maxlifetime', 60 * 60); ini_set('session.auto_start',

[PHP] How to do this? 6 lines of code...Parse error

2004-01-03 Thread Ryan A
Hi, am a bit confused as to how you do this...first let me explain the flow of input: I will be getting $product1,$product2,$product3 etc from another script...I dont know till what numberright now I am trying to catch the values till 20 with a for loop. My problem is how do I attach the $i

[PHP] Re: PHP $_SESSION Expiring in IE

2004-01-03 Thread Al
IE and Moz have different JAVA script engines. Try turning off JAVA and see if IE maintains it's session. Tarrant Costelloe wrote: Hello, I have recently launched the new Planet-Tolkien.com, one would think that writing a message board from scratch and a dynamic weather system, a simple

[PHP] Question about an array

2004-01-03 Thread Vernon
I want to create an array with some text. Let's say the following: $sometext = array(explode( , Objective: Position as a Machine Attendant and or Operator Summary - Over 16 years experience in packaging and maintenance of various operating machinery. - 13 years experience in cutting steel and

[PHP] Piping email

2004-01-03 Thread Adrian Teasdale
Is it possible to pipe email directly to PHP like it's possible to do with perl? I need to do this using Exim which I'm also unfamiliar with so if anyone has done this I'd appreciate knowing how! :) Thanks Ade -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: Question about an array

2004-01-03 Thread Matt Grimm
If you're going to build your array that way, then you need to loop through $sometext[0], not $sometext. You're creating an array in the first element of the $sometext array, so $sometext element zero is an array containing your exploded words. Instead, try: $sometext = explode( , your long

Re: [PHP] Production Websites (error loggin)

2004-01-03 Thread Aidan Lister
I can't belive it... I checked the file permissions on so many occasions, I even used /tmp/phperror_log just to make sure (why that doesn't work I'm not sure). However sure enough, the directory wasn't world writeable. Thanks Marek, I really appreciate your help. Marek Kilimajer [EMAIL

[PHP] Re: How to do this? 6 lines of code...Parse error

2004-01-03 Thread Aidan Lister
Firstly I'd rewrite your other script to store the data in an array. The benefits of doing so are simply demonstrated: ?php foreach ($products as $product) dosomethingto($product); ? However, if you are unable to rewrite your script: The correct syntax is: ?php ${'product' . $i} ? Ryan A

[PHP] [Newbie Guide] For the benefit of new members

2004-01-03 Thread Ma Siva Kumar
=== This message is for the benefit of new subscribers and those new to PHP. Please feel free to add more points and send to the list. === 1. If you have any queries/problems about PHP try http://www.php.net/manual/en

Re: [PHP] Re: How to do this? 6 lines of code...Parse error

2004-01-03 Thread Ryan A
Hey, OK, got it, thanks! -Ryan On 1/4/2004 1:00:04 AM, Aidan Lister ([EMAIL PROTECTED]) wrote: Firstly I'd rewrite your other script to store the data in an array. The benefits of doing so are simply demonstrated: ?php foreach ($products as $product) dosomethingto($product); ?

Re: [PHP] PHP $_SESSION Expiring in IE

2004-01-03 Thread Kirk Babb
Guess I'm being nosy here, so forgive me, but why are you settting an alternate save path and using ini_set at the start of each document? I know that has nothing to do with the problem, but I was just wondering. Are you hosting multiple sites off your server and have different session settings

[PHP] finding phpize

2004-01-03 Thread Ryan A
Hi guys, I am trying to install Turck MMCache on our server but have no idea about linux...I have gone through all the steps a fellow list user (R'twick) gave me to install this, up till $PHP_PREFIX/bin/phpize when I type that it says: no file or directory by that name so after searching on the

[PHP] Server independent URL optimization

2004-01-03 Thread Shawn McKenzie
I searched the archives and Google but couldn't find a solution. I would like to know if there is a good server independent method method for optimizing URLs that contain GET queries for search engines. Server URL rewriting (i.e. mod_rewrite, etc...) is not an option unless it is compatible with