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,
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
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;
$ar[2]['
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
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 Mail
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 PR
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:
(?)
Try this (a little more comprehensive) :
preg_match_all("|(.*?)|i",
$rawHTML, $arrayoflinks);
$links = array_unique($arrayoflinks[0]);
$href = a
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 o
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 th
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
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, 200
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 w
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"]))
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 experien
Maybe I didn't myself clear enough. I don't want to catch every tag A on the
HTML but all the mail addresses that are not already inside a tag A.
The expression you sugest will catch every tag A, failing to catch mail
addresses outside the scope of a tag A.
Thanks anyway.
Manu.
"Burhan Khalid"
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 sho
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.
--
P
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 index.php
why use a cookie - the $_SESSION is itself a cookie
I'd code it like
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. An index.php that inc
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 SQLite-1.0
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
fa
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 di
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 Servi
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 allo
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
instance,
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
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, vis
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-- J
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 frança
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
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???
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
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
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 witho
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 unsub
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 num
> 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 nee
* 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
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)?
Templa
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
c
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 t
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 an
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
probl
43 matches
Mail list logo