php-windows Digest 9 May 2002 19:05:52 -0000 Issue 1136
Topics (messages 13642 through 13659):
Re: php with ADO
13642 by: Christoph Grottolo
13645 by: Scott Carr
13646 by: Frank M. Kromann
13647 by: Asendorf, John
13648 by: Scott Carr
13650 by: Scott Carr
13652 by: John Lim
13658 by: Roberto Valverde
PHP 4.2.0 & Informix
13643 by: Juraj Hasko
register_globals and php 4.2
13644 by: brother
13653 by: Shrock, Court
how do i split text on multi linez .... ????
13649 by: toby z
13651 by: Dash McElroy
13657 by: Mike Flynn
how do i display errors
13654 by: Mauricio
13656 by: Mauricio
test in 09/05/2002
13655 by: Mauricio
Simple function question
13659 by: Matt Babineau
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
> Is there any way that I can use ADO with php.
http://php.weblogs.com/adodb
Christoph
--- End Message ---
--- Begin Message ---
The adodb stuff is different from MSADO. The name is the same, but the adodb
that they are talking about is much like the PEAR::DB as far as I can tell.
--
Scott Carr
OpenOffice.org
Whiteboard-Doc Maintainer
http://whiteboard.openoffice.org/doc/
Quoting Christoph Grottolo <[EMAIL PROTECTED]>:
> > Is there any way that I can use ADO with php.
>
> http://php.weblogs.com/adodb
>
> Christoph
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/
--- End Message ---
--- Begin Message ---
Hi Scott,
You can access the ADO stuff through COM
See example 2 in the manual http://www.php.net/manual/en/class.com.php
- Frank
> The adodb stuff is different from MSADO. The name is the same, but the adodb
> that they are talking about is much like the PEAR::DB as far as I can tell.
> --
> Scott Carr
> OpenOffice.org
> Whiteboard-Doc Maintainer
> http://whiteboard.openoffice.org/doc/
>
>
> Quoting Christoph Grottolo <[EMAIL PROTECTED]>:
>
> > > Is there any way that I can use ADO with php.
> >
> > http://php.weblogs.com/adodb
> >
> > Christoph
> >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>
> -------------------------------------------------
> This mail sent through IMP: http://horde.org/imp/
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
I would suggest the following:
http://php.weblogs.com/adodb
I use it for almost all of my databases now: MySQL, PostgreSQL, Access,
MSSQL... (I haven't started trying it with Oracle yet... but I'm going to
port soon I think) it's the BOMB!
I think the Pear::DB stuff is still less friendly and less polished than the
adodb stuff at the address above, unless you're only using MySQL...
John
---------------------
John Asendorf - [EMAIL PROTECTED]
Web Applications Developer
http://www.lcounty.com - NEW FEATURES ADDED DAILY!
Licking County, Ohio, USA
740-349-3631
Nullum magnum ingenium sine mixtura dementiae fuit
> -----Original Message-----
> From: Roberto Valverde [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 08, 2002 2:20 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] php with ADO
>
>
> Hi,
>
> Is there any way that I can use ADO with php.
>
> Rob
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
Ya, I have actually written a class for the MS ADO for PEAR::DB, using COM. I
was just making sure everyone understood that adodb and msadodb are two
different things.
--
Scott Carr
OpenOffice.org
Whiteboard-Doc Maintainer
http://whiteboard.openoffice.org/doc/
Quoting "Frank M. Kromann" <[EMAIL PROTECTED]>:
>
> Hi Scott,
>
> You can access the ADO stuff through COM
>
> See example 2 in the manual http://www.php.net/manual/en/class.com.php
>
> - Frank
>
> > The adodb stuff is different from MSADO. The name is the same, but the
> adodb
> > that they are talking about is much like the PEAR::DB as far as I can
> tell.
> > --
> > Scott Carr
> > OpenOffice.org
> > Whiteboard-Doc Maintainer
> > http://whiteboard.openoffice.org/doc/
> >
> >
> > Quoting Christoph Grottolo <[EMAIL PROTECTED]>:
> >
> > > > Is there any way that I can use ADO with php.
> > >
> > > http://php.weblogs.com/adodb
> > >
> > > Christoph
> > >
> > >
> > > --
> > > PHP Windows Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> > >
> >
> >
> > -------------------------------------------------
> > This mail sent through IMP: http://horde.org/imp/
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/
--- End Message ---
--- Begin Message ---
Sorry, didn't realize ADOdb used MS ADO as well. Let me remove my foot from my
mouth, please. ;-)
--
Scott Carr
OpenOffice.org
Whiteboard-Doc Maintainer
http://whiteboard.openoffice.org/doc/
Quoting "Asendorf, John" <[EMAIL PROTECTED]>:
> I would suggest the following:
>
> http://php.weblogs.com/adodb
>
> I use it for almost all of my databases now: MySQL, PostgreSQL, Access,
> MSSQL... (I haven't started trying it with Oracle yet... but I'm going to
> port soon I think) it's the BOMB!
>
> I think the Pear::DB stuff is still less friendly and less polished than
> the
> adodb stuff at the address above, unless you're only using MySQL...
>
> John
>
> ---------------------
> John Asendorf - [EMAIL PROTECTED]
> Web Applications Developer
> http://www.lcounty.com - NEW FEATURES ADDED DAILY!
> Licking County, Ohio, USA
> 740-349-3631
> Nullum magnum ingenium sine mixtura dementiae fuit
>
>
> > -----Original Message-----
> > From: Roberto Valverde [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, May 08, 2002 2:20 PM
> > To: [EMAIL PROTECTED]
> > Subject: [PHP-WIN] php with ADO
> >
> >
> > Hi,
> >
> > Is there any way that I can use ADO with php.
> >
> > Rob
> >
> >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/
--- End Message ---
--- Begin Message ---
Hi Scott,
ADODB supports the microsoft ADO also.
Regards, John
"Scott Carr" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> The adodb stuff is different from MSADO. The name is the same, but the
adodb
> that they are talking about is much like the PEAR::DB as far as I can
tell.
> --
> Scott Carr
> OpenOffice.org
> Whiteboard-Doc Maintainer
> http://whiteboard.openoffice.org/doc/
>
>
> Quoting Christoph Grottolo <[EMAIL PROTECTED]>:
>
> > > Is there any way that I can use ADO with php.
> >
> > http://php.weblogs.com/adodb
> >
> > Christoph
> >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>
> -------------------------------------------------
> This mail sent through IMP: http://horde.org/imp/
--- End Message ---
--- Begin Message ---
Thanks to all for your help, I will have a try, to see what happends.
Rob
"Scott Carr" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> Sorry, didn't realize ADOdb used MS ADO as well. Let me remove my foot
from my
> mouth, please. ;-)
> --
> Scott Carr
> OpenOffice.org
> Whiteboard-Doc Maintainer
> http://whiteboard.openoffice.org/doc/
>
>
> Quoting "Asendorf, John" <[EMAIL PROTECTED]>:
>
> > I would suggest the following:
> >
> > http://php.weblogs.com/adodb
> >
> > I use it for almost all of my databases now: MySQL, PostgreSQL, Access,
> > MSSQL... (I haven't started trying it with Oracle yet... but I'm going
to
> > port soon I think) it's the BOMB!
> >
> > I think the Pear::DB stuff is still less friendly and less polished than
> > the
> > adodb stuff at the address above, unless you're only using MySQL...
> >
> > John
> >
> > ---------------------
> > John Asendorf - [EMAIL PROTECTED]
> > Web Applications Developer
> > http://www.lcounty.com - NEW FEATURES ADDED DAILY!
> > Licking County, Ohio, USA
> > 740-349-3631
> > Nullum magnum ingenium sine mixtura dementiae fuit
> >
> >
> > > -----Original Message-----
> > > From: Roberto Valverde [mailto:[EMAIL PROTECTED]]
> > > Sent: Wednesday, May 08, 2002 2:20 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: [PHP-WIN] php with ADO
> > >
> > >
> > > Hi,
> > >
> > > Is there any way that I can use ADO with php.
> > >
> > > Rob
> > >
> > >
> > >
> > > --
> > > PHP Windows Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>
> -------------------------------------------------
> This mail sent through IMP: http://horde.org/imp/
--- End Message ---
--- Begin Message ---
Hello all,
I would like to use informix functions of php, but I didn't find php_ifx.dll in last
php 4.2.0/win32 bundle. Could you tell me where will I find it ?
Thanks in advace.
Juraj Hasko
--- End Message ---
--- Begin Message ---
I'm trying to rewrite my code so it will be useful under PHP 4.2.
the links at my site are in this format
index.php?pagetype=newsarchive&id=15&read=1 this will make php to look fpr
the file /newsarchive/data.php and use the $id var to get the correct
newsline from the databse, however, when the register_globals is set to off
I can't use this and I cann't figre out how to do it, HELP!
the index.php starts with the code:
if (!isset($pagetype)) {
$pagetype = "news";
}
so all links displays the news page and that's not my goal =)
/brother
--- End Message ---
--- Begin Message ---
Replace all references of "$pagetype" with "$_GET['pagetype']" (without the
doube-quotes, of course) or have the line "$pagetype = $_GET['pagetype']" at
the beginning of your file. Repeat this same idea with your other variables
and you should be okay.
> -----Original Message-----
> From: brother [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 09, 2002 5:11 AM
> To: '[EMAIL PROTECTED]'
> Subject: [PHP-WIN] register_globals and php 4.2
>
>
> I'm trying to rewrite my code so it will be useful under PHP 4.2.
> the links at my site are in this format
> index.php?pagetype=newsarchive&id=15&read=1 this will make
> php to look fpr
> the file /newsarchive/data.php and use the $id var to get the correct
> newsline from the databse, however, when the register_globals
> is set to off
> I can't use this and I cann't figre out how to do it, HELP!
>
> the index.php starts with the code:
> if (!isset($pagetype)) {
> $pagetype = "news";
> }
>
> so all links displays the news page and that's not my goal =)
>
> /brother
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
guyz ... im stuck .... yet again .....
this time it is .....
im taking input from user .... a whole article and its
summary ....
its writing to the file fine ....
but it gives out the summary and the article in a
single line .....
starts from the first word and sees it thru the last
... ON THE SAME LINE .......
my code iz ....
<?php
$fp=fopen("c:\\name.txt", "wb");
fwrite($fp, "$lastName,$firstName ");
fwrite($fp, "\r\n");
fwrite($fp, "\r\n");
fwrite($fp, "$lang ");
fwrite($fp, "\r\n");
fwrite($fp, "\r\n");
fwrite($fp, "$cat ");
fwrite($fp, "\r\n");
fwrite($fp, "\r\n");
fwrite($fp, "$title ");
fwrite($fp, "\r\n");
fwrite($fp, "\r\n");
$string = fwrite($fp, "$summary ");
$array = preg_split( "/[ \t]+/", $string );
$myarray = explode("\r\n", "$string");
fwrite($fp, "\r\n");
fwrite($fp, "\r\n");
fwrite($fp, "$body ");
fwrite($fp, "\r\n");
fwrite($fp, "\r\n");
fclose($fp);
?>
so .... i have tried it with preg_split, explode ....
togather az well az seperately .....
but ...... (N) .....
vat can i do to fix it ?????
thnx a million .......
toby ....
__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Mother's Day is May 12th!
http://shopping.yahoo.com
--- End Message ---
--- Begin Message ---
Have you tried adding a <pre> before the <?php and a </pre> after the ?>?
-Dash
-----Original Message-----
From: toby z [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 09, 2002 9:56 AM
To: php hlp list
Subject: [PHP-WIN] how do i split text on multi linez .... ????
guyz ... im stuck .... yet again .....
this time it is .....
im taking input from user .... a whole article and its
summary ....
its writing to the file fine ....
but it gives out the summary and the article in a
single line .....
starts from the first word and sees it thru the last
... ON THE SAME LINE .......
my code iz ....
<?php
$fp=fopen("c:\\name.txt", "wb");
fwrite($fp, "$lastName,$firstName ");
fwrite($fp, "\r\n");
fwrite($fp, "\r\n");
fwrite($fp, "$lang ");
fwrite($fp, "\r\n");
fwrite($fp, "\r\n");
fwrite($fp, "$cat ");
fwrite($fp, "\r\n");
fwrite($fp, "\r\n");
fwrite($fp, "$title ");
fwrite($fp, "\r\n");
fwrite($fp, "\r\n");
$string = fwrite($fp, "$summary ");
$array = preg_split( "/[ \t]+/", $string );
$myarray = explode("\r\n", "$string");
fwrite($fp, "\r\n");
fwrite($fp, "\r\n");
fwrite($fp, "$body ");
fwrite($fp, "\r\n");
fwrite($fp, "\r\n");
fclose($fp);
?>
so .... i have tried it with preg_split, explode ....
togather az well az seperately .....
but ...... (N) .....
vat can i do to fix it ?????
thnx a million .......
toby ....
__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Mother's Day is May 12th!
http://shopping.yahoo.com
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Better yet, use the nl2br function to convert newline characters (\n) into
<br> tags.. see:
http://www.php.net/manual/en/function.nl2br.php
At 05:56 PM 5/9/02 +0100, toby z wrote:
>guyz ... im stuck .... yet again .....
>
>this time it is .....
>
>im taking input from user .... a whole article and its
>summary ....
>its writing to the file fine ....
>but it gives out the summary and the article in a
>single line .....
>starts from the first word and sees it thru the last
>... ON THE SAME LINE .......
>
>my code iz ....
>
>
><?php
>
>
>$fp=fopen("c:\\name.txt", "wb");
>fwrite($fp, "$lastName,$firstName ");
>
>fwrite($fp, "\r\n");
>fwrite($fp, "\r\n");
>
>
>fwrite($fp, "$lang ");
>fwrite($fp, "\r\n");
>fwrite($fp, "\r\n");
>
>
>fwrite($fp, "$cat ");
>fwrite($fp, "\r\n");
>fwrite($fp, "\r\n");
>
>
>fwrite($fp, "$title ");
>fwrite($fp, "\r\n");
>fwrite($fp, "\r\n");
>
>$string = fwrite($fp, "$summary ");
>
>$array = preg_split( "/[ \t]+/", $string );
>
>$myarray = explode("\r\n", "$string");
>
>
>fwrite($fp, "\r\n");
>fwrite($fp, "\r\n");
>
>
>fwrite($fp, "$body ");
>fwrite($fp, "\r\n");
>fwrite($fp, "\r\n");
>
>fclose($fp);
>
>?>
>
>
>
>so .... i have tried it with preg_split, explode ....
>togather az well az seperately .....
>but ...... (N) .....
>
>vat can i do to fix it ?????
>
>thnx a million .......
>
>toby ....
>
>__________________________________________________
>Do You Yahoo!?
>Yahoo! Shopping - Mother's Day is May 12th!
>http://shopping.yahoo.com
>
>--
>PHP Windows Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
-- Mike Flynn --
mike @ mikeflynn . net
home => work => home => shop => home [adbusters]
--- End Message ---
--- Begin Message ---
Hi for all.
I configured my php.ini using:
display_errors = On
log_erros = On
but, my browser don't show erros yet.
Could Anyone help me?
Thanks in advance.
--- End Message ---
--- Begin Message ---
Hi for all.
I configured my php.ini using:
display_errors = On
log_erros = On
but, my browser don't show erros yet.
Could Anyone help me?
Thanks in advance.
--- End Message ---
--- Begin Message ---
test in 09/05/2002
--- End Message ---
--- Begin Message ---
Ok, I just read a section in a book about functions. In my cost I have
some variables set:
$var1 = "1";
And I have a function I wrote that needs to utilize that variable.
function runvar() {
query database looking for $var1;
}
I get horrible errors though. In the book it talked about the local
fuciton scope not being able to communicate with the global scope. How
can I pass $var1 into the function so it can be used?
Matt Babineau
Freelance Internet Developer
-----------------------------------------
e: <mailto:[EMAIL PROTECTED]>
[EMAIL PROTECTED]
p: 603.943.4237
w: <http://www.illuminatistudios.com/> http://www.illuminatistudios.com
--- End Message ---