Re: [PHP] Object References Problem

2003-10-31 Thread Gareth Williams
Boyan, Michael and Mike, Thanks for the help, I now understand what is going on, and you guys have saved me from pulling my hair out in frustration. I'm more used to doing OOP in Delphi and Perl, and the peculiarities of PHP are somewhat confusing. Once again, thanks for the help. On Friday,

RE: [PHP] Connection AS400-Windows PHP

2003-10-31 Thread James Lobley
1. Install IBM Client Access on your NT machine 2. Add details of your AS400 to Client Access 3. Create a Client Access data source in ODBC 4. Use ODBC calls within PHP, for example: $connect = odbc_connect(AS400, username, password); $query = SELECT free FROM stock

[PHP] nested tree

2003-10-31 Thread Daniel Demacek
Hi all, I have a sorted associative array that represents nested tree in the form of (note: parent=0 is the top level): $ar[0]['id']=1; $ar[0]['parent_id']=0; $ar[0]['name'] = 'john'; $ar[1]['id']=4; $ar[1]['parent_id']=1; $ar[1]['name'] = 'mary'; $ar[2]['id']=7; $ar[2]['parent_id']=1;

[PHP] Couldn't open stream with imap_open

2003-10-31 Thread Mr.Suthee Jia
How to correct this warning? Warning: Couldn't open stream {localhost:143} ??? We are constructing a webmail, and we use the function imap_open. Please, to return reply. Grateful, Suthee Jia -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Web Service in PHP/XML

2003-10-31 Thread neko
And if you can't be arsed with SOAP, try XML-RPC, which does the job for me. Check PEAR for an implementation, or try Keith Deven's library, which is easy to use (you only deal with PHP types, and leave the XML to the library) http://keithdevens.com/software/xmlrpc/ -neko -- PHP General

[PHP] PHP and Interbase !

2003-10-31 Thread Luiz Gustavo Sarubi Macchi
Please, I´m using Mandrake 9.1. has anyone a tutorial or a url to find how to build php with interbase and pdf lib ? I know that i should put --with-interbase[=DIR], but what else should i put at ./configure ? The Interbase runs ok ? thanks any help -- Luiz Gustavo Sarubi Macchi [EMAIL

Re: [PHP] Trying to craft a regexp

2003-10-31 Thread Burhan Khalid
Manuel Vázquez Acosta wrote: Hi all: I'm trying to find every simple mail address in an HTML that is not inside an A tag. I have tried this regexp: (?!maito\:)([EMAIL PROTECTED](?:\.\w+)+)(?![^]*?/a) Try this (a little more comprehensive) : preg_match_all(|a(.*?)href=[\'](.*?)[\'](.*?)(.*?)/a|i,

Re: [PHP] Oh, for a sureset() (orthogonal to isset())

2003-10-31 Thread Tom Rogers
Hi, Friday, October 31, 2003, 5:31:01 AM, you wrote: wlcn I'm sure I'm not the first person to find strict checking of whether wlcn or not variable (or array index) is set painful. I've considered wlcn just setting error_reporting() to some lax level on every script I wlcn write for the rest of

[PHP] using existing mysql connection in a php extension

2003-10-31 Thread Adrian
hello, is it possible to use an existing mysql connection created from php-code $conn=mysql_connect('localhost','root','secret'); in an php-extensions, e.g. by giving the ressource id to the extension as an argument: my_extemsion_function('do_something',$conn); ? because if i have to connect to

Re: [PHP] PHP Apache 2

2003-10-31 Thread Dean E. Weimer
I have been running it since 02-02-2003 without a problem on A FreeBSD Server. I started with Apache 2.0.44, PHP 4.3.0, and FreeBSD-RELEASE 4.7. I have upgraded every step of the way to currently running with Apache 2.0.48, PHP 4.3.3, and FreeBSD-RELEASE 4.8. It is a low use server, Apache only

Re: [PHP] using existing mysql connection in a php extension

2003-10-31 Thread Gareth Williams
Hi there, Try this: mysql_pconnect($_host, $_user, $_password) or die(Could not connect: . mysql_error());; This open a permanent mysql connection. The first time you run it, it opens the connection, and the second time, etc, it just uses the one already opened. On Friday, Oct 31,

[PHP] Handling a BLOB (zip file) called from MySQL

2003-10-31 Thread SpyProductions Support Team
I am trying to figure out how to best handle a record that contains a zip file (BLOB) in MySQL. When I call it out from the table, is the best way to handle the file by writing it to a temporary directory? The BLOB represents a '.zip' file, so should I be using: zip_open /zip_read / zip_close

[PHP] Session for creating a unique shopping cart for each user

2003-10-31 Thread Tore E. Mackay
Hi, I am creating a shopping cart but experiensing some difficulty in creating unique shopping carts for each user. When I try to create a session I get this error message: Warning: session_start(): Cannot send session cookie - headers already sent This is the code: if(isset($_COOKIE[cartId])) {

Re: [PHP] Session for creating a unique shopping cart for each user

2003-10-31 Thread Gareth Williams
Have you already sent anything to the browser? Once the first echo has been performed, you can't send header information, as the header is sent with the first bit of text. On Friday, Oct 31, 2003, at 15:47 Europe/Amsterdam, Tore E. Mackay wrote: Hi, I am creating a shopping cart but

Re: [PHP] Session for creating a unique shopping cart for each user

2003-10-31 Thread Tore E. Mackay
Don't realy know. Here is what I have: 1. An index.php that inculdes products.php if $file=products.php. 2. products.php includes db.php that contains databse connection and the code for creating a session. 3. When I click add product $file=cart.php and cart.php includes the db.php file that

[PHP] Re: Object References Problem

2003-10-31 Thread Manuel Vázquez Acosta
I think, as for PHP4, that the problem is this function: function object_2($parent_object) { $this-my_parent = $parent_object; } Although you are passing the object by reference you're assigning a copy of it. Try this: $this-my_parent = $parent_object; Manu. -- PHP

Re: [PHP] Session for creating a unique shopping cart for each user

2003-10-31 Thread Gareth Williams
Do you see any information in your browser before the error appears? Perhaps you could also do a view source from the browser to see if anything has been sent out. On Friday, Oct 31, 2003, at 16:06 Europe/Amsterdam, Tore E. Mackay wrote: Don't realy know. Here is what I have: 1. An

Re: [PHP] Session for creating a unique shopping cart for each user

2003-10-31 Thread pete M
why use a cookie - the $_SESSION is itself a cookie I'd code it like php session_start() if (!isset($_SESSION['cart_id'])) { // code to get cart_id $_SESSION['cart_id'] = $cart_id; } include(db) include(products) Tore E. Mackay wrote: Don't realy know. Here is what I have: 1.

[PHP] Can't Get PHP Configured Properly To Use SQLite

2003-10-31 Thread JR
Hello All, I am having a devil of a time getting PHP configured to work properly with SQLite. I am running PHP 4.3.3 on Redhat ES 2.1. My configure statement for PHP is below. I have run: pear download http://pecl.php.net/get/SQLite-1.0.tgz, no problem here. Then I run: pear install

RE: [PHP] php temp table question (for mysql)

2003-10-31 Thread Larry Brown
I'm now finding that persistent connections is allowing the temp table to remain. I have a sql query that creates the table and another that joins the temp table to another for a result set that I use. If I press refresh on the browser window I get an error that the sql query creating the table

[PHP] help!

2003-10-31 Thread Mårten Palm
I have installed PHP 4.3.3 with the installer. i am runnig a PWS server on my Windows Me. I have turned the cgi.force-redirect to 0. When ii try to install acces a certain php script (the install script for PHPBB2 forum) i get an error which says: Security Alert! The PHP CGI cannot be accessed

php-general Digest 31 Oct 2003 19:29:09 -0000 Issue 2388

2003-10-31 Thread php-general-digest-help
php-general Digest 31 Oct 2003 19:29:09 - Issue 2388 Topics (messages 168213 through 168233): Re: Connection AS400-Windows PHP 168213 by: James Lobley nested tree 168214 by: Daniel Demacek Couldn't open stream with imap_open 168215 by: Mr.Suthee Jia Re: Web

Re: [PHP] php temp table question (for mysql)

2003-10-31 Thread Marek Kilimajer
Session should not have any influence. Perhaps Keep-alive connection, then by closing the browser the connection ends. If you would wait enough the connection will be closed anyway. But certainly this is valueable knowledge. Larry Brown wrote: I'm now finding that persistent connections is

[PHP] Php processor and return window

2003-10-31 Thread Robb Kerr
I am just learning PhP. When I was teaching myself Lingo (Macromedia Director's programming language) I found an object called the MESSAGE window quite helpful. This window allowed you to execute little snippets of code and get the results without having to execute your entire script. For

[PHP] IRC

2003-10-31 Thread Jonathan Villa
Are there any PHP IRC that anyone is aware of? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: IRC

2003-10-31 Thread Jon Kriek
server: irc.freenode.net channels: #phpfreaks, #php, #binaryphp -- Jon Kriek http://phpfreaks.com Jonathan Villa [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Are there any PHP IRC that anyone is aware of? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Re: IRC

2003-10-31 Thread Nathan Taylor
Sure Jon, pimp Daeken's channel... BinaryPHP is not what he needs Nathan - Original Message - From: Jon Kriek To: [EMAIL PROTECTED] Sent: Friday, October 31, 2003 4:11 PM Subject: [PHP] Re: IRC server: irc.freenode.netchannels: #phpfreaks, #php, #binaryphp--

[PHP] Windows PHP

2003-10-31 Thread mohamad taghlobi
Thank you very match, James LOBLEY ! For your answer to my previous message. I would also like to know WINDOWS support(bear), PHP. Otherwise, you would have an idea of what it is necessary to make? - Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en

Re: [PHP] help!

2003-10-31 Thread Haseeb Iqbal
in php.ini (that will be in wondows folder or in wondows/systems folder) search for cgi.force_redirect and the set it to 0 HTH Haseeb - Original Message - From: Mårten Palm [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, November 01, 2003 12:11 AM Subject: [PHP] help! I have

[PHP] Generating Numbers from Strings

2003-10-31 Thread John Ryan
I've a bit of a problem, I want a random keyword pulled from my database. But I dont want it random all the time. I just want it random to each page. So I have the filename variable of the page. How do I somehow generate a 'constant' random number from this string that is constant to each file???

[PHP] Re: Generating Numbers from Strings

2003-10-31 Thread Thomas Seifert
On Sat, 1 Nov 2003 00:37:32 - [EMAIL PROTECTED] (John Ryan) wrote: I've a bit of a problem, I want a random keyword pulled from my database. But I dont want it random all the time. I just want it random to each page. So I have the filename variable of the page. How do I somehow generate a

[PHP] Re: Generating Numbers from Strings

2003-10-31 Thread John Ryan
I've done that, but how do I generate a number out of that that's in a certain range? Thomas Seifert [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Sat, 1 Nov 2003 00:37:32 - [EMAIL PROTECTED] (John Ryan) wrote: I've a bit of a problem, I want a random keyword pulled from my

Re: [PHP] Php processor and return window

2003-10-31 Thread Robert Cummings
On Fri, 2003-10-31 at 14:53, Robb Kerr wrote: I am just learning PhP. When I was teaching myself Lingo (Macromedia Director's programming language) I found an object called the MESSAGE window quite helpful. This window allowed you to execute little snippets of code and get the results without

[PHP] Templates/Separate content from presentation

2003-10-31 Thread Pedro Pais
Hi! I've coded in PHP for a while, but I had to leave it for some time. Now I'm back, and I'd like to know what's currently being used to separate content from presentation, besides Smarty (that seems to be Google's top choice)? Thanx -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Re: Generating Numbers from Strings

2003-10-31 Thread Filip de Waard
On Sat, 2003-11-01 at 01:37, John Ryan wrote: I've a bit of a problem, I want a random keyword pulled from my database. But I dont want it random all the time. I just want it random to each page. So I have the filename variable of the page. How do I somehow generate a 'constant' random number

Re: [PHP] Templates/Separate content from presentation

2003-10-31 Thread Greg Donald
I've coded in PHP for a while, but I had to leave it for some time. Now I'm back, and I'd like to know what's currently being used to separate content from presentation, besides Smarty (that seems to be Google's top choice)? I tried Smarty for several weeks and found it was more than I

Re: [PHP] php temp table question (for mysql)

2003-10-31 Thread Curt Zirzow
* Thus wrote Larry Brown ([EMAIL PROTECTED]): I'm now finding that persistent connections is allowing the temp table to remain. I have a sql query that creates the table and another that joins the temp table to another for a result set that I use. If I press refresh on How are you creating

Re: [PHP] Templates/Separate content from presentation

2003-10-31 Thread Robert Cummings
On Fri, 2003-10-31 at 22:23, Pedro Pais wrote: Hi! I've coded in PHP for a while, but I had to leave it for some time. Now I'm back, and I'd like to know what's currently being used to separate content from presentation, besides Smarty (that seems to be Google's top choice)?

[PHP] Re: Templates/Separate content from presentation

2003-10-31 Thread Greg Beaver
Hi Pedro, try http://www.phpsavant.com Regards, Greg Pedro Pais wrote: Hi! I've coded in PHP for a while, but I had to leave it for some time. Now I'm back, and I'd like to know what's currently being used to separate content from presentation, besides Smarty (that seems to be Google's top

[PHP] Array maybe? Or many SQL insert queries

2003-10-31 Thread Jake McHenry
Hi everyone, here's what I'm doing. As of right now, I don't have anything implemented, but here's what I need to do. I have a web page, with a drop down list of hotels, an input box for the users frequent hotel number, and a add button. At the bottom of the page is a update and continue button

[PHP] Beginner

2003-10-31 Thread Jason T. Davidson
I am new to php and seeking some help. I have a couple of books and maybe I just am not seeing my error. If you go to www.mspartcc.com/test.htm and look at the source code you will see what I am trying to do. The only problem is that the date is not displaying. I really appreciate in advance

Re: [PHP] Beginner

2003-10-31 Thread Justin French
On Saturday, November 1, 2003, at 04:33 PM, Jason T. Davidson wrote: I am new to php and seeking some help. I have a couple of books and maybe I just am not seeing my error. If you go to www.mspartcc.com/test.htm and look at the source code you will see what I am trying to do. The only