|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Subject: php3 Digest 18 Apr 2000 16:58:06 -0000 Issue 1615
From: php3-digest-help
lists.php.netDate: Tue Apr 18 2000 - 11:58:06 CDT
- Next message: php3-digest-help
lists.php.net: "php3 Digest 19 Apr 2000 04:58:04 -0000 Issue 1616"
- Previous message: php3-digest-help
lists.php.net: "php3 Digest 18 Apr 2000 04:58:10 -0000 Issue 1614"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
php3 Digest 18 Apr 2000 16:58:06 -0000 Issue 1615
Topics (messages 86413 through 86518):
netscape layering
86413 by: John <john
edlabs.com>
Biting the hand that feeds ...
86414 by: Richard Lynch <richard
zend.com>
Question about odbc_num_rows(int result_id)
86415 by: ÕÅ•F <rickzhang
kali.com.cn>
86438 by: "Manuel Lemos" <mlemos
acm.org>
86511 by: "Richard Allsebrook" <richard.allsebrook
easysoft.com>
86516 by: "Andrew Hill" <ahill
openlinksw.com>
Can PHP use Microsoft transaction server components
86416 by: "Leinenga, Leo" <Leo.Leinenga
nl.origin-it.com>
syntAX
86417 by: richard
zend.com (Richard Lynch)
San Francisco Bay Area PHP User's Group Meeting
86418 by: "Srimanth R.C." <srimanth
yahoo.com>
86422 by: Subhrajyoti Moitra <subhra
iitk.ac.in>
FastTemplates
86419 by: "PHPList" <phplist
wowmation.com>
86440 by: "Manuel Lemos" <mlemos
acm.org>
Source code security
86420 by: "Isiah Lau" <isiahlau
sanyoshk.com>
86424 by: "PHPList" <phplist
wowmation.com>
86439 by: "Manuel Lemos" <mlemos
acm.org>
Simple problem..
86421 by: richard
zend.com (Richard Lynch)
Shutting down a php script
86423 by: richard
zend.com (Richard Lynch)
Global.ASA Equivalent?
86425 by: "Srimanth R.C." <srimanth
yahoo.com>
86483 by: "Graeme Merrall" <gmerrall
ihug.com.au>
86493 by: "Jason Brooke" <jason
qgl.org>
PostgreSQL
86426 by: richard
zend.com (Richard Lynch)
where are the POST data in the 404 document?
86427 by: richard
zend.com (Richard Lynch)
help - install with IIS3
86428 by: richard
zend.com (Richard Lynch)
porting from MySQL to Oracle
86429 by: richard
zend.com (Richard Lynch)
86445 by: "Manuel Lemos" <mlemos
acm.org>
newbie help!!
86430 by: "Giulio Borrini" <gborrini
marketingmedia.it>
warnings with pg_fetch_array
86431 by: richard
zend.com (Richard Lynch)
86448 by: Doug Semig <dougslist
c3net.net>
86487 by: Juan Luis Baptiste <juancho
metallica.com>
86489 by: "Jason Brooke" <jason
qgl.org>
Problem with php on IIS
86432 by: Pavol Zibrita <zibrita
kopernik.cc.fmph.uniba.sk>
Sending PGP-signed email
86433 by: richard
zend.com (Richard Lynch)
the evil double quote
86434 by: richard
zend.com (Richard Lynch)
[Q] How to open a URL from within PHP?
86435 by: richard
zend.com (Richard Lynch)
FOR loop - Help
86436 by: richard
zend.com (Richard Lynch)
Arrays in URLs
86437 by: richard
zend.com (Richard Lynch)
ms access in php
86441 by: "Richard Allsebrook" <richard.allsebrook
easysoft.com>
PHP/MySQL slashes/apostrophes question..
86442 by: richard
zend.com (Richard Lynch)
T_OLD_FUNCTION, T_FUNCTION or T_VAR ??
86443 by: richard
zend.com (Richard Lynch)
Strange behaviour (win 98 + apache + access + PHP)
86444 by: Piotr L <piotr
is.aist-nara.ac.jp>
Please help !!!
86446 by: óÅÒÇÅÊ îÉËÏÌÁÅÎËÏ <real-web
peterlink.ru>
Apache 1.3.9 + PHP 3.0.16
86447 by: Ben Cairns <BenC
dgsltd.co.uk>
86450 by: Devon Young <webmaster
abreathoflife.com>
array not working
86449 by: Kevin Waterson <kevin
kevin.oceania.net>
86453 by: "Dave" <dave
calinet.com>
php4+ISAPI+classes
86451 by: Jiøí Mikulá¹ <guli
mujweb.cz>
86454 by: "Phil Driscoll" <phil
dialsolutions.co.uk>
InterBase & PHP4
86452 by: Jouni Ahto <jah
php.net>
uploading $ file names
86455 by: Gurkan Nisanci <nisanci
Bilkent.EDU.TR>
86514 by: "Andrew Sheh" <ashea
dmetechnologies.com>
uploading an image file
86456 by: Gurkan Nisanci <nisanci
Bilkent.EDU.TR>
86468 by: "Rob Hall" <rhall
newsquest.co.uk>
signal Segmentation fault (11)
86457 by: "Steven Glogger" <list
glogger.ch>
86458 by: "Steven Glogger" <list
glogger.ch>
86488 by: "Steven Glogger" <list
glogger.ch>
Strange URL
86459 by: "Srimanth R.C." <srimanth
yahoo.com>
86466 by: se
lakenet.no
86470 by: "Dave" <dave
calinet.com>
86476 by: Cynic <cynic
mail.cz>
window POP up
86460 by: Mark Lo <markloky
netvigator.com>
86461 by: "Dave" <dave
calinet.com>
86462 by: "George Papadakis" <georgep
forthnet.gr>
86464 by: Stefan Ubbink <stefan
evident.nl>
check if $string already exists?
86463 by: "Bartosz Aninowski" <bart
sonik.pl>
86465 by: Devon Young <webmaster
abreathoflife.com>
86469 by: "Dave" <dave
calinet.com>
86500 by: Wico de Leeuw <wico
cnh.nl>
CGI PHP sharred server security question
86467 by: Jamie.Beadle
bull.co.uk
Mail() Function Never Work.
86471 by: chchar <chchar
mcms.com>
86473 by: "George Papadakis" <georgep
phaistosnetworks.gr>
86474 by: "Nick Newbold" <nick
owta.net>
86477 by: "Dave" <dave
calinet.com>
Sessions on win2000 crashing isapi
86472 by: "Lukas Hazlehurst" <sofnology
xtra.co.nz>
Max execution time?
86475 by: "Yuhsaku Godai [Ronin]" <ronin
acemedia.com.tw>
86478 by: "Dave" <dave
calinet.com>
86479 by: "George Papadakis" <georgep
forthnet.gr>
help me
86480 by: vijay kumar <vijay_din
yahoo.com>
PGP_ENC.class
86481 by: "James Moore" <james
phpuk.org>
Hierarchy Links
86482 by: "Bryan - Utopian Web Productions" <bryan
uwebpro.com>
86484 by: "Dave" <dave
calinet.com>
86485 by: Bob Lutz <php3
lutz-engr.com>
Where can I download php_odbc.dll?
86486 by: Todd Cary <todd
aristesoftware.com>
Using sessions under windows NT
86490 by: "Lukas Hazlehurst" <sofnology
xtra.co.nz>
86497 by: Sascha Schumann <sascha
schumann.cx>
open file search and add if not exist
86491 by: "Bartosz Aninowski" <bart
sonik.pl>
COldFusion/Netobjects v.s. PHP
86492 by: Pablo A.Godel <godel
conectacom.com>
86496 by: "PHPList" <phplist
wowmation.com>
86499 by: Christopher Ditty <CDitty
email.usps.gov>
FILE DSN....
86494 by: Jêdrzej Kolesiñski <jedrek
plj.pl>
files or db?
86495 by: coolio <coolio
mdq.com>
86498 by: "Jason Brooke" <jason
qgl.org>
Installing PHP, MySQL and Apache
86501 by: Mike Hatcher <MikeH
KATOLIGHT.COM>
86508 by: "Jason Brooke" <jason
qgl.org>
Part time contractors needed for web portal gig
86502 by: Lara Fabans <lara
flashcom.net>
Use mod_php to run php scripts outside a page
86503 by: Duccio Gasparri <dgasparri
tin.it>
86504 by: Andrian Pervazov <andrian
truefire.com>
86509 by: "Jason Brooke" <jason
qgl.org>
Finding favourites: a tough job
86505 by: "Mr. Tate" <mrtate
tin.it>
mysql_connect PB need help
86506 by: "Patrick SILVA" <webmaster
cyse.net>
Fw: [PHP3] Hierarchy Links
86507 by: "Bryan - Utopian Web Productions" <bryan
uwebpro.com>
86515 by: "Rob Hall" <rhall
newsquest.co.uk>
Make Money through INTERNET!!!!
86510 by: "Priyendu S" <priyendu
mailroom.com>
PHP Module for NSAPI?
86512 by: jaykay
krithigai.engr.sgi.com (Jayakumar Muthukumarasamy)
oracle connection need help!
86513 by: Zack Beatty <ZackB
mamamedia.com>
please help on install php on redhat 6.1
86517 by: Leung Lai Yin Powis <powis
netvigator.com>
PHP + mySQL to sync linux system passwd
86518 by: "¦¶º³" <no.spam.chu_hei
geocities.com>
Administrivia:
To subscribe to the digest, e-mail:
php3-digest-subscribe
lists.php.net
To unsubscribe from the digest, e-mail:
php3-digest-unsubscribe
lists.php.net
To post to the list, e-mail:
php3
lists.php.net
----------------------------------------------------------------------
attached mail follows:
hi...
i coded a javascript function that pops up a menu OnMouseOver...
IE works perfectly..
But for Netscape , the text boxes, check boxes, radio button and submit
buttons.. are all covering my popup menu...
i played around with z-index.. but it doesn't work..
anyone knows how to correct it?
thanks.. john
attached mail follows:
I got this through a circuitous route, and haven't actually read the
PHP list since the news server is (was?) down today...
>-----Original Message-----
>From: Rasmus Lerdorf [mailto:rasmus
php.net]
>Sent: Monday, April 17, 2000 10:54 PM
>To: Mike Sheldon
>Cc: 'Toshihide Nakamura'; php3
lists.php.net
>Subject: RE: [PHP3] COldFusion/Netobjects v.s. PHP
Not that anybody will ever convince me to use CF with its ugly tags
instead of PHP... I do have to play devil's advocate. :-)
>> PHP has extremely strong native DB support. Different DBs have different
>> command syntax, making mid-stream database changes painful. A bit more
>> complex to retrieve results.
>
>Database abstraction is included in PHP 4. I still question this argument
>every time it comes up. By far the least of your worries when switching
>databases halfway through a project is the few PHP-level calls you will
>need to change. Modifying your schemas, stored procedures, triggers and
>SQL syntax will take much much more effort and none of this is made any
>easier by a database abstraction layer.
Not necessarily: If one is using a development laptop box with, say,
MySQL or even (blech) MS Access and a production box with Oracle,
*and* is willing to forgo funky Oracle SQL syntax in favor of
portability (perhaps sacrificing performance), it is not unfeasible
to wish for a simple switch from DB to DB.
Sure, if Oracle was chosen for performance reasons rather than
replication or non-technical (aka pointy-haired bosses or "because it
was there") reasons, this would be a foolish way to do things: But
it's not that radical an idea that you'd have Oracle on some hefty
web server but were using PHP to develop some sort of back-end
application for some low-traffic pages and wanted to use PHP to
develop on a different machine sans Oracle. Then just flip the
switch from MySQL to Oracle.
Of course, you can code such a thing readily and easily, and for PHP
to have too much database abstraction... I can't even begin to
envision how that can work internally and be useful without throwing
away all the super-fast native code. Fortunately, I'm not one of the
guys writing the software :-)
>> PHP has no formal error handling. (This can REALLY bite! Throwing error
>> messages to the browser is not acceptable behaviour.) What little
>> error-handling exists is inconsistent, and many errors cannot be trapped
>in
>> code at all.
>
>This is actually not true. All error messages can be trapped and/or
>redirected to an error_log file. You can easily prevent any and all error
>messages from showing up in the browser.
Folks have had some trouble with that one about uploaded files being
too large, and while it's fairly easy to *suppress* all the other
error messages, and even that one if you don't mind the denial of
service attack, handling all of them in a clean and efficient manner
is not as easy as it would be with a try/catch mechanism.
I never used try/catch much in C (my C-hacking days were before it
existed, I think), but assuming it's like Lisp's nestable
handler-bind error-catching mechanism, it sure would come in handy...
>> PHP has no search capability.
>
>I'd venture to say that such a search functionality has no place in a web
>scripting language. There are plenty of very good search engines out
>there. That's like the often-heard Apache criticism. "Apache is not a
>full featured web server because it doesn't support ftp." Apache happens
>to not support ftp because it is an http server and not an ftp server.
>PHP doesn't support site-wide searching because it is a web scripting
>language and not a search engine.
I've never had a client yet that didn't ask for a site-wide search
engine with their web-site.
And they never seem to understand that distinction between web
scripting language and search engines.
Whether they should or not is debatable :-)
Packaging a search engine with PHP is morally wrong, of course, but I
understand the desire for an all-in-one solution.
attached mail follows:
Hello, php!
I use php3 + pws + win98se + access as my developpment enviroment:
After query, I use odbc_num_rows(int_result_id) to determine the number of rows but always get -1. When in asp you can set the cursorlocation to aduseclient, how about php?
Thanks in advance
ÕÅ•F
http://www.rickzhang.com
rickzhang
kali.com.cn
OICQ: 329170
ICQ : 37175293
»¶Ó¶©ÔÄ<<ÿÈÕÓ¢Óï>>
http://czine.buzzcity.com/Top/rickzhang/
attached mail follows:
Hello ÕÅ•F,
On 18-Apr-00 04:32:38, you wrote:
> I use php3 + pws + win98se + access as my developpment enviroment:
> After query, I use odbc_num_rows(int_result_id) to determine the number of
> rows but always get -1. When in asp you can set the cursorlocation to
> aduseclient, how about php?
The question is why you need to know the number of result rows in advance? If
you really need to know the exact number, the recommended procedure
is to use if viable SELECT COUNT() before running the actual query to
retrieve the result rows.
If it is not viable, you may try to cache all the result rows in an array
until it reaches the end of the result set and then count the number of
rows in the array.
If you just want to know when you have reached the end of result, just call
odbc_fetch_row until it fails.
Regards,
Manuel Lemos
Web Programming Components using PHP Classes.
Look at: acm.org">http://phpclasses.UpperDesign.com/?user=mlemos
acm.org
-- E-mail: mlemosacm.org URL: http://www.mlemos.e-na.net/ PGP key: http://www.mlemos.e-na.net/ManuelLemos.pgp --
attached mail follows:
A minor problem with a select count(*)
- What if someone inserts/deletes rows from your result set in-between the count and the actual query?
To answer the original posting, odbc_num_rows() is not supported by all ODBC drivers :-(
I'm in the process of writing a new tutorial on this subject for the easysoft website:
http://www.easysoft.com/tech/php/main.phtml
Keep watching... _____
~ Richard Allsebrook ~ Applications Developer and Webmaster Easysoft Limited, No3 The Embankment, Leeds, LS1 4BJ http://www.easysoft.com <http://www.easysoft.com> The Home of Data Access Middleware "A computer lets you make more mistakes faster than any invention in human history-with the possible exceptions of handguns and tequila."
_____
-----Original Message-----
From: Manuel Lemos [mailto:mlemos
acm.org]
Sent: Tuesday, April 18, 2000 7:45 AM
To: ÕÅF
Subject: Re: [PHP3] Question about odbc_num_rows(int result_id)
Hello ÕÅ•F,
On 18-Apr-00 04:32:38, you wrote:
> I use php3 + pws + win98se + access as my developpment enviroment: > After query, I use odbc_num_rows(int_result_id) to determine the number of > rows but always get -1. When in asp you can set the cursorlocation to > aduseclient, how about php?
The question is why you need to know the number of result rows in advance? If you really need to know the exact number, the recommended procedure is to use if viable SELECT COUNT() before running the actual query to retrieve the result rows.
If it is not viable, you may try to cache all the result rows in an array until it reaches the end of the result set and then count the number of rows in the array.
If you just want to know when you have reached the end of result, just call odbc_fetch_row until it fails.
Regards, Manuel Lemos
Web Programming Components using PHP Classes.
Look at: acm.org">http://phpclasses.UpperDesign.com/?user=mlemos
acm.org
-- E-mail: mlemosacm.org URL: http://www.mlemos.e-na.net/ PGP key: http://www.mlemos.e-na.net/ManuelLemos.pgp --
-- PHP 3 Mailing List <http://www.php.net/> To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
I've found odbc_num_rows to not be supported by PHP, as our drivers do support it, and "-1" is still returned.
Best regards, Andrew ---------------------------------------------------- Andrew Hill Technical Support Consultant OpenLink Software http://www.openlinksw.com Universal Database Connectivity Technology Providers
-----Original Message-----
From: Richard Allsebrook [mailto:richard.allsebrook
easysoft.com]
Sent: Tuesday, April 18, 2000 12:20 PM
To: php
Subject: RE: [PHP3] Question about odbc_num_rows(int result_id)
A minor problem with a select count(*)
- What if someone inserts/deletes rows from your result set in-between the count and the actual query?
To answer the original posting, odbc_num_rows() is not supported by all ODBC drivers :-(
I'm in the process of writing a new tutorial on this subject for the easysoft website:
http://www.easysoft.com/tech/php/main.phtml
Keep watching... _____
~ Richard Allsebrook ~ Applications Developer and Webmaster Easysoft Limited, No3 The Embankment, Leeds, LS1 4BJ http://www.easysoft.com <http://www.easysoft.com> The Home of Data Access Middleware "A computer lets you make more mistakes faster than any invention in human history-with the possible exceptions of handguns and tequila."
_____
-----Original Message-----
From: Manuel Lemos [mailto:mlemos
acm.org]
Sent: Tuesday, April 18, 2000 7:45 AM
To: ÕÅF
Subject: Re: [PHP3] Question about odbc_num_rows(int result_id)
Hello ÕÅ•F,
On 18-Apr-00 04:32:38, you wrote:
> I use php3 + pws + win98se + access as my developpment enviroment: > After query, I use odbc_num_rows(int_result_id) to determine the number of > rows but always get -1. When in asp you can set the cursorlocation to > aduseclient, how about php?
The question is why you need to know the number of result rows in advance? If you really need to know the exact number, the recommended procedure is to use if viable SELECT COUNT() before running the actual query to retrieve the result rows.
If it is not viable, you may try to cache all the result rows in an array until it reaches the end of the result set and then count the number of rows in the array.
If you just want to know when you have reached the end of result, just call odbc_fetch_row until it fails.
Regards, Manuel Lemos
Web Programming Components using PHP Classes.
Look at: acm.org">http://phpclasses.UpperDesign.com/?user=mlemos
acm.org
-- E-mail: mlemosacm.org URL: http://www.mlemos.e-na.net/ PGP key: http://www.mlemos.e-na.net/ManuelLemos.pgp --
-- PHP 3 Mailing List <http://www.php.net/> To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 To contact the list administrators, e-mail: php-list-admin
lists.php.net
-- PHP 3 Mailing List <http://www.php.net/> To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
Hi,
I am using quite a lot of ASP now and I heard now of PHP. I was wondering if PHP is able to call and use activeX dll's stored in Microsoft transaction server.
Kind regards
Leo Leinenga Netherlands
Leo Leinenga
System Developer
Origin Business Solutions
Tel: 050-5258425 or 06-22464999
Fax:050-5254262
E-mail: leo.leinenga
nl.origin-it.com
Prive:
Tel: 050-5490293
Fax: 050-5493307
E-mail: leinenga
romyrides.com
Microsoft Certified Solution Developer
attached mail follows:
In article <v03102800b51fe2fd9e2c
[24.132.105.98]>, b-girl
dds.nl (eLine) wrote:
> I have a really stupid problem. the sys admin. tells me he got php > installed, i try this script for trial, it does nithing except showing me > the input field even if i input it goed right back to the page without > anything showing or wahtever.
Try something even simpler:
<?php phpinfo();?>
This tiny little script should spew out a whole page chock-full of interesting information. :-)
> What is atest syntax to see what is running on the server and how to > adress it ? > I tried puttin <?php ... ?> and <phtml> and all but it wont do anything .. > > <HTML> > <HEAD> > <TITLE>phtml plaatjes</TITLE> > </HEAD> > > <BODY> > > <form>
You really should use ACTION=samepage.php3 METHOD=POST there, but it oughta work.
> Zet welk plaatje je wilt zien > <INPUT TYPE="text" NAME="plaatje" MAXLENGTH=5> > <INPUT TYPE="submit" VALUE="Submit Form"> > </form> > > <? > if ($plaatje ="1"); > <IMG SRC="plaatje_1" ALT="plaatje 1" ALIGN=MIDDLE>1</img scr>; > elseif ($plaatje ="2"); > <IMG SRC="plaatje_2" ALT="plaatje 2" ALIGN=MIDDLE>; > else; > <IMG SRC="plaatje_3" ALT="plaatje 3" ALIGN=MIDDLE>; > endif; > ?>
This looks like PHP2/FI code, almost... What version of PHP are you using?
If it's PHP3 (or higher) you should not have semi-colons after the if()/else lines.
You also are not switching from PHP mode to HTML mode: So PHP is going to try to interpret your IMG tags as if they were PHP code. Either echo out the IMG tags: echo '<IMG SRC="plaatje_1" ALT="plaatje 1" ALIGN=MIDDLE>1'; or switch back and forth to PHP/HTML for each line: if ($plaatje == 1) ?> <IMG SRC=...> <?php elseif ($plaatje == 2) ?> <IMG SRC=...> <?php . . .
At any rate, the test in your if() statement should have == instead of =.
= will assign 1 to $plaatje, and then return that value (1), and then test that for a boolean result (true), so you'll always see the first image, and never the second.
Then, SRC= should probably have a GIF or JPEG, and the files should probably end in .gif or .jpg for them to be served up properly.
And there simply is no </img> tag at all: IMG is an all-in-one tag, like INPUT.
Oh yeah: There are probably some error messages in your page, but you are not seeing them due to HTML problems. Use "View Source" on your page to see what the browser is *REALLY* getting.
> </BODY> > </HTML>
attached mail follows:
What about the PHP users across the world who are not able to make it. I stay at the other end of the world (India). I hope that the snippets of the program will be provided by some one for the php mailing list...
regards, srimanth.
bob scott wrote:
>
> For those of you in the San Francisco Bay Area interested in
> meeting other PHP minded people......
>
> The San Francisco Bay Area PHP User's Group (BAPUG) will have
> it's first ever meeting on April 27, 2000 at 7:00 PM.
>
> The meeting will be held at CoffeeNet at 744 Harrison in San
> Francisco.
>
> Our speaker and special guest will be the one and only Rasmus
> Lerdorf, our esteemed creator of PHP. Rasmus will bring along
> his O'Reilly pocket PHP Reference Manual to be raffled off
> to 25 lucky attendees so come check it out and join in on the fun!
>
> To register at BAPUG and RSVP this meeting go to :
>
> http://www.phpgroup.org
>
> Hope to see you there!!
>
> Bob Scott
> Coordinator, BAPUG
> bob
phpgroup.org
>
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
> To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
> To search the mailing list archive, go to: http://www.php.net/mailsearch.php3
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
--------------------------------------------------------------------------------------
SECURITY IS A MYTH........!!!!!!!!
"Linux for people with avg. IQ above 98"
--------------------------------------------------------------------------------------
Subhrajyoti Moitra ------- C/112 Hall-I
email: subhra
iitk.ac.in
On Tue, 18 Apr 2000, Srimanth R.C. wrote:
> What about the PHP users across the world who are not able to make it. I
> stay at the other end of the world (India). I hope that the snippets of
> the program will be provided by some one for the php mailing list...
>
> regards,
> srimanth.
>
>
> bob scott wrote:
> >
> > For those of you in the San Francisco Bay Area interested in
> > meeting other PHP minded people......
> >
> > The San Francisco Bay Area PHP User's Group (BAPUG) will have
> > it's first ever meeting on April 27, 2000 at 7:00 PM.
> >
> > The meeting will be held at CoffeeNet at 744 Harrison in San
> > Francisco.
> >
> > Our speaker and special guest will be the one and only Rasmus
> > Lerdorf, our esteemed creator of PHP. Rasmus will bring along
> > his O'Reilly pocket PHP Reference Manual to be raffled off
> > to 25 lucky attendees so come check it out and join in on the fun!
> >
> > To register at BAPUG and RSVP this meeting go to :
> >
> > http://www.phpgroup.org
> >
> > Hope to see you there!!
> >
> > Bob Scott
> > Coordinator, BAPUG
> > bob
phpgroup.org
> >
> > --
> > PHP 3 Mailing List <http://www.php.net/>
> > To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
> > To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
> > To search the mailing list archive, go to: http://www.php.net/mailsearch.php3
> > To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
> To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
> To search the mailing list archive, go to: http://www.php.net/mailsearch.php3
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
attached mail follows:
Hi all
I was wondering if anyone has any significant experience of using FastTemplates as I'd be interested in knowing whether there are any performance hits with it. Also, and I'm not wanting to start the big Template debate which happened on this list a little while ago, are there any other template systems for PHP that have been developed?
Thanks
Ade
attached mail follows:
Hello Ade,
On 18-Apr-00 05:24:42, you wrote:
>I was wondering if anyone has any significant experience of using >FastTemplates as I'd be interested in knowing whether there are any >performance hits with it. Also, and I'm not wanting to start the big >Template debate which happened on this list a little while ago, are there >any other template systems for PHP that have been developed?
Jesus Castagnetto (co-author of Professional PHP book) developed a caching engine for FastTemplates that you may find here:
http://phpclasses.UpperDesign.com/browse.html/package/23
Regards, Manuel Lemos
Web Programming Components using PHP Classes.
Look at: acm.org">http://phpclasses.UpperDesign.com/?user=mlemos
acm.org
-- E-mail: mlemosacm.org URL: http://www.mlemos.e-na.net/ PGP key: http://www.mlemos.e-na.net/ManuelLemos.pgp --
attached mail follows:
I believe it is not a new question, but I really can't figure out the solution. (Maybe there is not solution at all?) How to keep my source code private if it runs on my client's server, which they hold the admin password?
attached mail follows:
Check out zend.com as they will be releasing their compiler at some point later in the year. Here is a link...
http://www.zend.com/zend/products.php#compiler
> I believe it is not a new question, but I really can't figure out the > solution. (Maybe there is not solution at all?) > How to keep my source code private if it runs on my client's server, which > they hold the admin password?
attached mail follows:
Hello Isiah,
On 18-Apr-00 05:05:04, you wrote:
>I believe it is not a new question, but I really can't figure out the >solution. (Maybe there is not solution at all?) >How to keep my source code private if it runs on my client's server, which >they hold the admin password?
Today all you can try is to pre-process your scripts and install that in the server. They may still steal your code but won't see the source. You may hard code some checks in the code to verify if it is running where it is expected to prevent it from being used elsewhere.
Later Zend will release a real PHP compiler that will be also much faster to run but you'll have to wait for now.
Regards, Manuel Lemos
Web Programming Components using PHP Classes.
Look at: acm.org">http://phpclasses.UpperDesign.com/?user=mlemos
acm.org
-- E-mail: mlemosacm.org URL: http://www.mlemos.e-na.net/ PGP key: http://www.mlemos.e-na.net/ManuelLemos.pgp --
attached mail follows:
In article <Pine.LNX.4.10.10004161450560.14541-100000
track.sdrm.org>,
brenda
train.sdrm.org ("b.b.") wrote:
> I'm new to PHP and programming in general. I think this is > a very simple thing to do and yet I have been unable to do > it.. > > What I'm trying to do is basically open a text file using fopen() > and taking the contents of the file, which is a number, adding > 1 to it and then replacing the existing contents of the file > with the new number.
Sounds like a counter...
Go ahead and code what Rasmus gave you for practice, but:
You should be aware that on a high-traffic site, you will run into a condition like this:
Joe Sixpack surfs your site Betsy Buick surfs your site Joe opens the file Joe gets the number Betsy opens the file Betsy gets the same number Joe adds one and writes the number Betsy adds one and writes the number Betsy closes the file Joe closes the file
So only one of the two hits will count.
Actually, it's worse than this: Sooner or later the two open files will collide in such a way that the whole thing will be wiped out! Your counter will reset to 0.
After you've played with this awhile, you'll need to use flock() (which will only scale up a little better before all your visitors are waiting for the counter file to be available) or you'll want to switch to a database-driven counter.
Or, better yet, forgo the counter entirely and use a log-analysis program such as Webalizer or Analog.
Fear not: Not everything that seems as simple as a counter turns out to be so complex :-)
attached mail follows:
In article <NDBBIDDFELNBLGHCIGGIKEBPCBAA.trho_ewu
ispchannel.com>,
trho_ewu
ispchannel.com ("Tom Rhodes") wrote:
> How do you shutdown an unruly php script using PWS 4.0 and PHP 4.0RC1 in > Windows 98? Thanks
*MAYBE* control-alt-delete like on NT?...
In theory, the PHP script will time out after 30 seconds, unless it's in a really tight loop.
I think outputting a space or something the browser will not interpret as meaningful in whatever context you're in will give PHP the opportunity to kill it if it's a tight loop.
attached mail follows:
Hi folks,
Is there any equivalent of Global.asa as in ASP.
ps: (for non-asp programmers) this is a file which ASP looks for prior to executing the scripts. there are four event handlers provided which are session_onstart(), session_onend(), application_onstart(), application_onend()
regards, srimanth.
attached mail follows:
> Hi folks, > > Is there any equivalent of Global.asa as in ASP. > > > ps: (for non-asp programmers) > this is a file which ASP looks for prior to executing the scripts. there > are four event handlers provided which are session_onstart(), > session_onend(), application_onstart(), application_onend() I'm not entirely up with the play with PHP4 session support but PHPLib (http://phplib.netuse/de/) has this sort of functionality built into it's session support. You can create an autostart.inc file (or whatever you want to call it) and put code in there which is executed when a session is created. However, it does not have the session and application onstart stuff that global.asa has.
Cheers, Graeme
attached mail follows:
Check your php3.ini file for a directive called auto_prepend_file - you can do it on a per-directory or file basis using apache config directives
jason
> > Hi folks, > > > > Is there any equivalent of Global.asa as in ASP.
attached mail follows:
In article
<Pine.LNX.4.21.0004170514500.24505-100000
localhost.localdomain>,
tony
crystaldonuts.com (Toshihide Nakamura) wrote:
> Thank you very much for your solution. > I've read it on the manual, but it was just so hard for me to believe that > such common method/function was not implemented yet. Is this some kind of > SQL version problem?(I don't know about SQL92...what is it??)
Since there's an easy workaround, it's probably not on the top of their ToDo list to implement it: While PostgreSQL rocks!, there is still plenty of work left to do :-)
[rant] SQL92 refers to the last multi-platform standardization of SQL in 1992. *EIGHT* *YEARS* *AGO*!!! This is, of course, unconscienable, but what can you expect from closed-source software developers charging 10s of thousands of dollars in an extremely vertical market whose underlying technologies are not really different: They want to lock users into their product, and standardization of SQL would actually require them to face real competition.
Small wonder the SQL-standardization committee has not come up with anything: It's not in the interests of their employers to agree.
Almost as bad as the airlines colluding on prices. [/rant]
attached mail follows:
In article <l03130302b520232617c8
[195.159.76.102]>, se
lakenet.no wrote:
> -i made this request handler script as a replacement for the > 404 and index documents. this script parses $REQUEST_URI > and builds pages by including files from a /template_directory/ > and data from MySQL selected on basis of REQUEST_URI > > -works like i charm :) -status 200/OK and everything, but i have > trouble getting to form data *POSTED* :( > > -i have looked all over: recursively listed $GLOBALS, apache > getallheaders(); etc... I suspect that apache discards the > post data before calling the 404 document, but i hope i can > find a way... > > -can i get to the HTTP_POST_VARS (raw or whatnot) in this situation?
I think you are correct that Apache is not maintaining them...
But look into the mod_rewrite article about how to do the same sort of thing using Apache instead of all-PHP solution. Don't know the URL offhand, but it's been listed here frequently.
attached mail follows:
In article <NDBBLEJOGLLPPACPIOJFEELLCAAA.banderso
ia.net>, banderso
ia.net
("Brian Anderson") wrote:
> Help..I believe I've installed everything correctly but when I run php.exe I > get missing dll errors..its missing ntwdblib.dll and msvcrtd.dll
Search the mailing list archives: I forget the answer, but it's in there somewhere. Use key 'msvcrtd' and 'ntwdblib'
attached mail follows:
In article <00f801bfa821$8837ab00$917889d0
roseta>, pat
wakeboarder.com
("Pat McCarthy") wrote:
> I'm working on a site right now that I need to setup originally in MySQL, > and then I'm going to have to port the site to use Oracle in the near > future. Are there any steps I should take initially to make this port as > easy and smooth as possible? Has anyone else done this and have any tips? > Certain database calls that are easy to change, etc?
Write wrapper functions to the two databases to connect/execute your SQL, and put that all in one file, then use those functions religiously to do all your database work.
There shouldn't be much SQL you can write in MySQL that won't work in Oracle, but test each SQL statement as you go in Oracle if at all possible.
attached mail follows:
Hello Richard,
On 18-Apr-00 05:31:04, you wrote:
>> I'm working on a site right now that I need to setup originally in MySQL, >> and then I'm going to have to port the site to use Oracle in the near >> future. Are there any steps I should take initially to make this port as >> easy and smooth as possible? Has anyone else done this and have any tips? >> Certain database calls that are easy to change, etc?
>Write wrapper functions to the two databases to connect/execute your SQL, >and put that all in one file, then use those functions religiously to do >all your database work.
>There shouldn't be much SQL you can write in MySQL that won't work in >Oracle, but test each SQL statement as you go in Oracle if at all >possible.
I wish that was anywhere near the truth. Oracle is a major pain to deal with. Many concepts work differently.
For instance, In Oracle a database is not the same thing as a database in MySQL. The CREATE DATABASE SQL statement in Oracle creates a new server instance while in MySQL it just creates a new table space in the current database server instance. If you really want to create a new fully isolated table space in Oracle you need to create a new user. That's a smart way from Oracle to make you pay an higher license fees.
But let's talk of simpler things that you user every day. If you don't have a function to count the number of rows in a result set because result retrieval is asynchronous so by the time you start getting result rows the server still doesn't know how many rows there will be in total in the whole result set.
If you want to LIMIT the number of rows that the server returns in a result set, in MySQL it is as simple appending the LIMIT keyword to your SELECT query. In Oracle there is no easy way that I know. You may request as many rows as you need, but if you want to skip a given amount of rows of the begining of the result set, I don't know any simple solution.
I was willing to pay a prize to any solution to do that in Oracle that would work with arbitrary SELECT queries (including those with ORDER BY clause), would not require any non-standard stored procedures and would return the names of the columns with the same names as when you don't LIMIT the returned rows.
That is not all, but to summarize, you'd better stick with an existing well tested database abstraction layer that isolates you from handling all these differences by yourself.
I had an hard time when I developed the Oracle driver for Metabase because all these difficulties, but in the end it resulted in something that will avoid having to recall all the differences all the time.
One thing that I bothered to take particular care that varies a lot between database servers is data formats. For instance each database server return dates in formats that may vary a lot. In Metabase, regardless of the server vendor (Oracle, MySQL, PostgreSQL), dates are alway returned in the ISO 3166 format (YYYY-MM-DD HH:MI:SS).
Imagine your surprise if you forgot things like that when you tried to move one database application to another server of a different vendor.
Regards, Manuel Lemos
Web Programming Components using PHP Classes.
Look at: acm.org">http://phpclasses.UpperDesign.com/?user=mlemos
acm.org
-- E-mail: mlemosacm.org URL: http://www.mlemos.e-na.net/ PGP key: http://www.mlemos.e-na.net/ManuelLemos.pgp --
attached mail follows:
hi to everyone,
i'm pretty new to php so my question is pretty stupid.
i'm implementing an automated news web sites where journalist can add news via web.
my problems are the images. i'm currently coping the image of each news from the temp in a directory called /images/. but if someone will upload two files with the same filename but different content the new one will overwrite the old one.
how can i solve it?
Thank you very much and excuse me for the english.
Giulio Borrini
attached mail follows:
In article <20000417063004.3502.cpmta
c003.sfo.cp.net>,
juancho
metallica.com (Juan Luis Baptiste) wrote:
> Hi, I have the following code: > > $sql= "SELECT id,nombre FROM empresa"; > $resultado=pg_exec($conn,$sql); > $row=0; > while($fila=pg_fetch_array($resultado,$row)) > { > echo "Name: ".$fila["nombre"]."<br>"; > $row++; > } > > The results are ok, but I got the following warning: > > Warning: Unable to jump to row 5 on PostgresSQL result index 2 in /home/httpd/html/karfi/listar_empresas.php3 on line 33 > > I can't figure it out, I always worked with MySQL abd never had this problem.
MySQL doesn't print errors by default, and PostgreSQL does.
You'll need to put an
sign in front of the pg_fetch_array, since it is
perfectly normal to ask for the next record when there aren't any, but
PostgreSQL insists on returning a warning for it. :-(
Just be careful in the future: Always add the
after checking the code
for other bugs, and if you alter that loop, take out the
until it's
tested for everything else.
Kinda of a pain, really. Still, if that's my only bitch about PostgreSQL (and it is) I have to admit it's pretty petty :-)
attached mail follows:
The
sign would work (as Richard Lynch said below...I didn't have the
original message so I had to reply to Richard's message)--leaving the while
condition checking for $fila to be false--or it could be coded just a bit
differently.
For example:
$sql= "SELECT id,nombre FROM empresa"; $resultado=pg_exec($conn,$sql); $row=0; $numrows = pg_numrows($resultado); // How many times do we loop? while ($row < $numrows) { $fila=pg_fetch_array($resultado,$row); echo "Name: ".$fila["nombre"]."<br>\n"; // Newline char helps when // reading HTML source $row++; }
BTW, I usually do a $row++ at the end of the call to pg_fetch_array(), and thereby save doing the $row++ at the end of the loop. But once one loop is working, they're all just copy & paste after that.
Doug
At 02:35 AM 4/18/00 -0500, you wrote:
>In article <20000417063004.3502.cpmta
c003.sfo.cp.net>,
>juancho
metallica.com (Juan Luis Baptiste) wrote:
>
>> Hi, I have the following code:
>>
>> $sql= "SELECT id,nombre FROM empresa";
>> $resultado=pg_exec($conn,$sql);
>> $row=0;
>> while($fila=pg_fetch_array($resultado,$row))
>> {
>> echo "Name: ".$fila["nombre"]."<br>";
>> $row++;
>> }
>>
>> The results are ok, but I got the following warning:
>>
>> Warning: Unable to jump to row 5 on PostgresSQL result index 2 in
>/home/httpd/html/karfi/listar_empresas.php3 on line 33
>>
>> I can't figure it out, I always worked with MySQL abd never had this
problem.
>
>MySQL doesn't print errors by default, and PostgreSQL does.
>
>You'll need to put an
sign in front of the pg_fetch_array, since it is
>perfectly normal to ask for the next record when there aren't any, but
>PostgreSQL insists on returning a warning for it. :-(
>
>Just be careful in the future: Always add the
after checking the code
>for other bugs, and if you alter that loop, take out the
until it's
>tested for everything else.
>
>Kinda of a pain, really. Still, if that's my only bitch about PostgreSQL
>(and it is) I have to admit it's pretty petty :-)
>
>
attached mail follows:
Thanks! it worked fine :-).
And you by the way answered me a question I had some time ago... what the hell means the
!!! :-P
Thanks,
On Tue, 18 April 2000, Richard Lynch wrote:
>
> In article <20000417063004.3502.cpmta
c003.sfo.cp.net>,
> juancho
metallica.com (Juan Luis Baptiste) wrote:
>
> > Hi, I have the following code:
> >
> > $sql= "SELECT id,nombre FROM empresa";
> > $resultado=pg_exec($conn,$sql);
> > $row=0;
> > while($fila=pg_fetch_array($resultado,$row))
> > {
> > echo "Name: ".$fila["nombre"]."<br>";
> > $row++;
> > }
> >
> > The results are ok, but I got the following warning:
> >
> > Warning: Unable to jump to row 5 on PostgresSQL result index 2 in
> /home/httpd/html/karfi/listar_empresas.php3 on line 33
> >
> > I can't figure it out, I always worked with MySQL abd never had this problem.
>
> MySQL doesn't print errors by default, and PostgreSQL does.
>
> You'll need to put an
sign in front of the pg_fetch_array, since it is
> perfectly normal to ask for the next record when there aren't any, but
> PostgreSQL insists on returning a warning for it. :-(
>
> Just be careful in the future: Always add the
after checking the code
> for other bugs, and if you alter that loop, take out the
until it's
> tested for everything else.
>
> Kinda of a pain, really. Still, if that's my only bitch about PostgreSQL
> (and it is) I have to admit it's pretty petty :-)
--------------------------------- Juan Luis Baptiste M. Pontificia Universidad Javeriana Ingenieria de Sistemas Linux Registered User #119248
"We're back to the times when men where men and wrote their own drivers" Linus Torvalds. --------------------------------- ______________________________________________________________________ Check out Metallica's Official Web Site at http://www.metallica.com For 200+ channel 24/7 commercial free music visit http://radio.www.com
attached mail follows:
The
character supresses error and waring messages
jason
> And you by the way answered me a question I had some time ago... what the
hell means the
!!! :-P
>
> Thanks,
attached mail follows:
Hi,
the php3 directory (and subfiles) have the rights of the user IUSR_(comp name).. but the problem seems to be somewhere else.
mysql is running on another server then php. So I assume that if it accept connections from other sites it should also from the one where the php is running...
On Mon, 17 Apr 2000, Frank M. Kromann wrote:
> Hi,
>
> When you are running php scripts from the console you have the same
> rights as the user you are logged in as. When running from a browser,
> the web server uses a user account (by standard IUSER_<computer name>).
> Check the rights for php and mysql for this user !
>
> - Frank
>
> >Hi.
> >
> > I have a problem with php3 on WinNT using IIS4. I have everything
> >(hope) done as said in the install guide. The php is now running on IIS
> >but there is a broblem, the php cann't make an mysql connection to mysql
> >server (running other server).
> >!! When I run the 'php.exe page.php3' command from console (not in browser
> >using IIS web server) the script connect's to mysql server succesfully.
> >But in browser..., here is the warning (used ip of the sql server in
> >script ):
> >Warning: MySQL Connection Failed: Can't connect to MySQL server on
> >my.computer (10013) in c:\... line ....
> >
> >When i use domain name of the sql server php generates:
> >Warning: MySQL Connection Failed: Unknown MySQL Server Host
> >(...) (0) in C:\... on line ....
> >Where is the problem? can someone help me??
> >Thanx
> >
> >Paul Zibrita.
> >
> >PS: please reply to my adres, i'm not in mailing list. thanx
> >
> >
> >--
> >PHP 3 Mailing List <http://www.php.net/>
> >To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
> >To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
> >To search the mailing list archive, go to: http://www.php.net/mailsearch.php3
> >To contact the list administrators, e-mail: php-list-admin
lists.php.net
> >
> >
> >
>
> Swwwing A/S
> Frank M. Kromann
> VP Development
> Phone: +45 70 20 77 20
> Fax: +45 70 20 77 21
> http://www.swwwing.com
>
attached mail follows:
In article <38FABA54.E7DFFF7B
kieser.net>, brad
kieser.net (brad) wrote:
> Anyone know how I can send an email with PHP with a PGP signature? > I want to pass the PGP key to the PGP routine and it returns the PGP > mail back to me. > > I have: a string variable with the mail body text in it at the moment. > > Anyone got any code to do this that they don't mind sharing?
I *think* PGP sigs are just sent as mime-attachments, so Manuel Lemos' mail class (or anybody else's who does attachments) will do most of what you need...
But I could be totally and completely wrong about how PGP sigs get there...
attached mail follows:
In article <00e501bfa83d$6cc144a0$71941e40
computer>, reed
froggernet.com
("Robert Reed") wrote:
> I'm having a heck of a time with escaping double quotes (and only double > quotes) out of a php variable so it can properly write to a document. I've > been using ereg_replace("\"", "\\\"","$article"), but it seems to just want > to actually print \" instead of properly escaping it.
Try commenting out the regex...
If it's printing \", and you don't want the \, then you must be adding more \ than you need...
(And you don't need quotes around $article)
attached mail follows:
In article <NCBBJKFMKJOHKDGLNBNAIEPMDEAA.donovan
namsys.com.au>,
donovan
namsys.com.au ("Donovan J. Edye") wrote:
> G'Day All, > > Can anyone tell me how I can achieve the following WITHOUT using Header() > calls? > > if (ValidLogin) > { > OpenSomeURL() > } else > { > OpenSomeOtherURL() > } > > I have seen the following done and would like to know how I would do this > using PHP. > > - Connect to unsecured site via HTTP > - Complete Login Form which has as its action a HTTPS url > - Should login be successfull a HTTP page is opened > - Should login be unsuccessfull a HTTPS connection is opened to another form > > I can see how this can be done using Header() calls, but that has the nasty > side effect that when you re-direct a user from the secure connection > (assuming their logon has succeeded) to the unsecured they get notified of > that fact by the browser (well in IE anyway). Can anyone suggest another > way??
You could fopen() the other URLs and spit them back out through your secure connection...
if (ValidLogin){ $fp = fopen('http://someURL'); } else{ $fp = fopen('http://otherURL'); } if ($fp){ while (!feof($fp)){ echo fread($fp, 1024); } fclose($fp); } else{ //Could not open other page... //display some sort of error message }
attached mail follows:
In article <005801bfa7e3$f97e9320$063ca8c0
comp06>, tvkarthick
mailops.com
("TV Karthick Kumar") wrote:
> Totally I have 10 categories in the list. Now my problem is, if I = > choose all the ten categories, I should be able to get all the = > categories (chosen one) at a shot. But now I am able to get only the = > last one / selected category stored in the checkbox name: messagecat. = > How to get all the selected categories / values in one name ?. Can I use = > array for this function ?. Then how to do it ?. I am getting the last = > selected value alone whenever I reload the page of re-input the values = > from the Form which is a html / static page. Please help me on this.
That's in the FAQ, as noted.
> I am storing the records if the user has chosen five categories as = > his involvement areas. Then the no. records will be inserted 5 times = > with the same userame and email address (example fields that I get from = > the user) with different five categories which he had chosen that he = > belongs to.=20
Once you are getting all the selected values, you'll want to do something like this to make the SQL:
$where = " where category in (0 "; //0 is an invalid ID //But that's okay: //It gets us started. while (list(,$catid) = each($category)){ $where .= ", $catid"; } $where .= ")"; $sql = "select * from categories $where ";
attached mail follows:
In article <3.0.32.20000417102334.009a4410
mailhost.adetti.iscte.pt>,
pedro.fonseca
iscte.pt (Pedro Fonseca) wrote:
> I thought it was possible to pass arrays on a URL. I use php4 RC1 but I > can't do it at all. Can anyone tell if it is indeed possible and if so, > what am I doing wrong?
Unless things have changed drastically...
$url = 'http://foo.com?bogus=1'; reset($array); while (list($key, $value) = each($array)){ $url .= "&array[$key]=" . urlEncode($value); }
attached mail follows:
Didn't see a response to this, so here goes:
You need to create yourself an ODBC data source on the box with the Access database file.
Go to control panel...ODBC Datasources Click the Add button Select the Microsoft Access Driver from the list of drivers Fill in the dialog
If you gave your datasource the name of "jedrek", you can connect to it with:
$hCon = odbc_connect("jedrek", "", "");
$hCon will return False if the connection failed.
If you have PHP running on a different box to your Access database file, you will need a product like the "Easysoft ODBC-ODBC Bridge 2000" to connect across the network. A free, fully functional version is available for download from:
http://www.easysoft.com/products/oob/main.phtml
Hope this helps...
_____
~ Richard Allsebrook ~ Applications Developer and Webmaster Easysoft Limited, No3 The Embankment, Leeds, LS1 4BJ http://www.easysoft.com <http://www.easysoft.com> The Home of Data Access Middleware "A computer lets you make more mistakes faster than any invention in human history-with the possible exceptions of handguns and tequila."
_____
-----Original Message-----
From: Jêdrzej Kolesiñski [mailto:jedrek
plj.pl]
Sent: Monday, April 17, 2000 7:58 PM
To: php3
lists.php.net
Subject: [PHP3] ms access in php
Hi,
Well i've installed this php3 and apache and its working (quite slowe but still its something). But the question is :
How to work with MS_Access base ? How to connect etc. ODBC ? The file is called : jedrek.mdb Maybe this : <? $connection = odbc_connect("jedrek.mdb", "", "");
$query = "SELECT * "; $query .= "FROM jedrek "; $result = odbc_do($connection, $query);
odbc_result_all($result, "BORDER=1");
odbc_close($connection); ?> but it gives me some errors....(partly in polish .... but if you understand :))
Warning: SQL error: [Microsoft][Mene¿er sterowników ODBC] Nazwa ¼ród³a danych nie zosta³a znaleziona a nie ma podanego sterownika domy¶lnego, SQL state IM002 in SQLConnect in c:\apache\htdocs/start.php3 on line 1
Warning: Bad ODBC connection number (0) in c:\apache\htdocs/start.php3 on line 1
Warning: Bad result index 0 in c:\apache\htdocs/start.php3 on line 1
Waiting for support ...
Jedrek
-- PHP 3 Mailing List <http://www.php.net/> To unsubscribe, send an empty message to php3-unsubscribelists.php.net To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
In article
<A8D9B16D2196D2118B6E00A0C9E307F4238418
beachpdc1.beachassociates.com>,
chad
beachassociates.com (Chad Day) wrote:
> Not sure if this is a PHP or MySQL question, so my apologies if this is the > wrong list.. bit of a newbie. > > I'm doing some updating on a PHP/MySQL database that I've been handed.. > still going through it to figure out all the workings, but I'm having a > problem when building in a search to the database. > > Sample DB dump entry: > > INSERT INTO Strips VALUES (10,22,'Quite dissapointing that the world > didn\\\'t end on Jan 1st 2000 isn\\\'t it. Here is my com > plaint about it.','951715624.jpg',1);
It sounds like your predecessor had magic_quotes off and you have it on...
At any rate, stripSlashes() should take care of any excess.
attached mail follows:
In article <38FB1BDE.D25FC2A1
fast.no>, kevin.porter
fast.no (kev) wrote:
> Hi, > > I can see nothing wrong with my code, but I get this error: > > Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or > `T_VAR' or `'}'' in megsoc/cache/cache.class on line 73 > > There is no mention of these constants in the manual or the mailing list > archives. > > What does it mean, why would I get this error, and how would I fix it?
Almost for sure you have unbalanced { or } in one of your function definitions.
Open your file in an editor that will show you matching brackets (BBEdit on a Mac, Emacs on Linux, and, errr, I dunno what on Windows).
Or triple-check your indentation and open/close brackets.
attached mail follows:
Hi all, I am using PHP3 in Windows 98 and Appache 1-3-12 and MS Access 97. System DSN in ODBC manager is set corectly. I can do "odbc_connect" and "odbc_close" successfully but when I try to use "odbc_exec" or "odbc_prepare" I am getting the following error:
Warning: SQL error: [Microsoft][ODBC Driver Manager] Driver does not support this function, SQL state IM001 in SQLSetStmtOption in C:\Program Files\Apache Group\Apache\htdocs/try.php3
Any comments would be appreciated.
Regards,
Piotr
attached mail follows:
Hello everybody,
I'm very new to php and I have a problem with installing it on Win98 with Apache Web-server. I followed all instruction in php documentation but I still have a server error. Apache shows me that it has Internal Server Error 500, and the error.log file contains this text:
[Tue Apr 18 11:39:57 2000] [error] [client 127.0.0.1] c:/php3/test.php3 is not executable; ensure interpreted scripts have "#!" first line [Tue Apr 18 11:39:57 2000] [error] [client 127.0.0.1] (2)No such file or directory: couldn't spawn child process: c:/php3/test.php3
If there is someone who can help me, please do so ...
Thanks in advance, Sergey.
-- Best regards, óÅÒÇÅÊ mailto:real-webpeterlink.ru
attached mail follows:
I have the above config on a Winnt 4 WKS (SP6).
When I try to run a script that has the: <? require 'file.inc' ?> in it, PHP says: Fatal error: Failed opening required 'lib.inc.php3' in c:\program files\apache group\apache\htdocs/new/index.php3 on line 3
But the file does exist. Why is this, how can I get round it?
Thanks in advance.
-- Ben Cairns, Derwent Graphics Systems Ltd.
E-Mail: BenC
dgsltd.co.uk | Web: http://www.dgsltd.co.uk
attached mail follows:
I've made the mistake of leaving the file in the wrong directory and not realizing it. Maybe it's in the wrong one for you too?
Ben Cairns wrote:
>
> I have the above config on a Winnt 4 WKS (SP6).
>
> When I try to run a script that has the:
> <?
> require 'file.inc'
> ?>
> in it, PHP says:
> Fatal error: Failed opening required 'lib.inc.php3' in c:\program
> files\apache group\apache\htdocs/new/index.php3 on line 3
>
> But the file does exist. Why is this, how can I get round it?
>
> Thanks in advance.
>
> -- Ben Cairns, Derwent Graphics Systems Ltd.
> E-Mail: BenC
dgsltd.co.uk | Web: http://www.dgsltd.co.uk
>
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
> To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
> To search the mailing list archive, go to: http://www.php.net/mailsearch.php3
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
I have a function that does not seem to be quite making it. My intention is that the function send an email to all users fitting a query result, I think I am getting lost about here. phps is at http://kevin.oceania.net/accounts/include/massmail.phps
/* declare the array as a variable */ $array = mysql_fetch_array($resultuser);
$key = key($array);
while (list($key,$UserName) = each($array)) {
Kind regards Kevin
attached mail follows:
What I usually do when using data from a query is:
while(list($field1, $field2, $field3, etc...) = mysql_fetch_row($result)) { print $field1."<br>\n"; print $field2."<br>\n"; print $field3."<br>\n"; etc...or whatever you need to do with each row.. mail($field1, "subject", etc...) }
: I have a function that does not seem to be quite making it.
: My intention is that the function send an email to all users
: fitting a query result, I think I am getting lost about here.
: phps is at
: http://kevin.oceania.net/accounts/include/massmail.phps
:
:
: /* declare the array as a variable */
: $array = mysql_fetch_array($resultuser);
:
: $key = key($array);
:
: while (list($key,$UserName) = each($array))
: {
:
: Kind regards
: Kevin
:
:
: --
: PHP 3 Mailing List <http://www.php.net/>
: To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
: To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
: To search the mailing list archive, go to:
http://www.php.net/mailsearch.php3
: To contact the list administrators, e-mail: php-list-admin
lists.php.net
:
:
attached mail follows:
> > Second problem is if i run it as CGI (i on NT+PWS4) can't send data bigger > > than 4KB (text or file) from > > FORM in POST mode (if i run PHP4 as ISAPI it`s working), is it my mistake (i > > That sounds like a limitation of PWS rather than PHP. Be sure you have > METHOD=POST in your FORM tag. METHOD=GET tends to have a smaller limit on > the data size. > > If you *do* have METHOD=POST, you may want to consider buying IIS, or > switching to Apache, Xitami, OmniHTTP, or any of the other web servers. > PWS does not really scale up well, and is quite limited in its feature-set > (particularly the number of simultaneous connections). > Hi. Thanks for help. I tried it on IIS4+NT Server too, but it still doesn't work... i have the POST method in my form... any ideas?, under IIS4 (PWS too) and PHP3.0.16 it works well.
attached mail follows:
>I tried it on IIS4+NT Server too, but it still doesn't work... i have the >POST method in my form... >any ideas?, under IIS4 (PWS too) and PHP3.0.16 it works well.
The bug which caused php to hang if more than about 4K was posted was fixed after RC1 was released. The current CVS should work fine on NT.
Cheers
-- Phil Driscoll Dial Solutions +44 (0)113 294 5112 http://www.dialsolutions.com http://www.dtonline.org
attached mail follows:
Dear InterBase users!
PHP4's InterBase module has finally reached the stage where it can be called alpha quality. If you are brave and willing to face problems, check out the current PHP4 cvs.
There seems still to be some problems when using several transactions and closing and opening database connections several times within a script, and also occasionally with prepared select queries using parameter placeholders. Due to my current workload, I must rely on your help to track down the situations when they occur.
If your needs are not that advanced, everything seems to be working ok. Seems.
If you are using InterBase 6, you should probably be using dialect 1 databases. I hope to be able to remove this restriction soon. Need to read the docs...
No DLL for Windows yet. Nicolas, I'd appreciate it if you could check if the module even compiles on Windows.
Sorry for the continuing lack of valid documentation... :(
-- Jouni Ahto Your worst nightmare when trying to use InterBase module
attached mail follows:
And also I want to keep the names of files that are uploaded in a database? How can I do it? Also as af ile can I keep it in a database?
attached mail follows:
>-----Original Message-----
>From: Gurkan Nisanci [mailto:nisanci
Bilkent.EDU.TR]
>Sent: Tuesday, April 18, 2000 2:34 AM
>To: php3
lists.php.net
>Subject: [PHP3] uploading $ file names
>
>
>And also I want to keep the names of files that are uploaded in a
>database? How can I do it? Also as af ile can I keep it in a database?
yes you can do that. but what database are you using?
Check the manual for examples to begin with on the basics, connection, insertion and selecting. http://www.php.net/
I prefer to store only the name location of the file in the database but it all depends on your application.
andres
attached mail follows:
Hi, I have a problem. How can a user upload an image file to teh server machine. How do we do upload operation in PHP? Also, how can we check if the file that is uploaded is a legal file? I mean, I want to check if the file is only .gif or .jpg. I don't want to allow the uploading of other files...Is there a sample code for this problem?
attached mail follows:
> Hi, > I have a problem. How can a user upload an image file to teh server > machine. How do we do upload operation in PHP? Also, how can we check if > the file that is uploaded is a legal file? I mean, I want to check if the > file is only .gif or .jpg. I don't want to allow the uploading of other > files...Is there a sample code for this problem?
Have a look at the code below.. I've extracted it from a working page on a site I'm developing! It should give you enough pointers to get going
Regards,
Rob Hall Web Technician Newsquest Digital Media
PHP -----
/* $upload is the filename of the upload stored on server */ /* In addition PHP provides :-*/ /* $upload_size upload size (bytes)*/ /* $upload_type MIME type of file*/ /* $upload_name is the original path/filename from the client */
if(isset($upload) && $upload != "none") /*ie reports upload as none*/ { $error = 0; if($upload_size > 50000) /* size checking*/ { /* some code*/ $error = 1; } if($upload_type != "image/gif" && $upload_type != "image/jpeg" && $upload_type != "image/pjpeg") { /* allow only gif, jpeg and progressively encoded jpeg */ echo "You can only upload Gif and Jpeg image types\n"; $error = 2; } if(!$error) { /* we have a valid image at this point!!*/ /* $upload contains the filename */ /* AFAIK its a temp file and should be copied to a permanant*/ /*location*/ $hasimage = 1; $imagefilename = $basedir.$siteurl."/".basename($upload); $imageurl = "./".basename($upload); copy($upload, $imagefilename); unlink($upload); } }
HTML ------ <form method="post" name="newpage" action="newpage.phtml" enctype="multipart/form-data"> <p>Upload Image <input type="file" name="upload"></P> <P><input type="submit" name="Submit" value="Submit"></P> </FORM>
attached mail follows:
anyone know's whats going wrong here...
each time i load a page from the webserver (html or php..it doesn't matter) i get: [Sat Apr 15 12:01:43 2000] [notice] child pid 26002 exit signal Segmentation fault (11) [Sat Apr 15 12:01:43 2000] [notice] child pid 26001 exit signal Segmentation fault (11) [Sat Apr 15 12:01:43 2000] [notice] child pid 25997 exit signal Segmentation fault (11) [Sat Apr 15 12:01:43 2000] [notice] child pid 19888 exit signal Segmentation fault (11)
i configured php 3.0.16 with: ./configure \ --with-mysql=/usr/local \ --with-config-file-path=/usr/local/apache/conf \ --enable-debug=yes \ --with-mcrypt=/usr/local/software/libmcrypt-2.4.2 \ --with-apache=/usr/local/software/apache_1.3.12 \ --sbindir=/usr/local/apache/bin \ --with-gd=/usr/local/software/gd1.3 \ --with-zlib=/usr/local/software/zlib-1.1.3 \ --enable-track-vars=yes \ --enable-force-cgi-redirect=yes \ --enable-discard-path=yes \ --with-imap=/usr/local/software/imap-4.7a \ --with-ftp \ --with-xml \ --with-snmp=/usr/local/software/ucd-snmp-4.0.1 \ --with-pdflib \ --with-zlib-dir=/usr/local/software/zlib-1.1.3 \ --with-jpeg-dir=/usr/local/software/jpeg-6b \ --with-tiff-dir=/usr/local/software/tiff-v3.5.5 \ --enable-magic-quotes=yes
and apache 1.3.12 via mod_ssl-2.6.2-1.3.12: ./configure \ --with-apache=/usr/local/software/apache_1.3.12 \ --activate-module=src/modules/auth_mysql/libauth_mysql.a \ --with-ssl=/usr/local/software/openssl-0.9.5 \ --prefix=/usr/local/apache \ --activate-module=src/modules/php3/libphp3.a \ --enable-module=info \ --enable-module=unique_id \ --enable-module=rewrite \ --enable-module=speling \ --enable-module=usertrack \ --enable-module=so \ --enable-module=mmap_static \ --add-module=mod_log_mysql.c
greetings
steven
attached mail follows:
anyone know's whats going wrong here...
each time i load a page from the webserver (html or php..it doesn't matter) i get: [Sat Apr 15 12:01:43 2000] [notice] child pid 26002 exit signal Segmentation fault (11) [Sat Apr 15 12:01:43 2000] [notice] child pid 26001 exit signal Segmentation fault (11) [Sat Apr 15 12:01:43 2000] [notice] child pid 25997 exit signal Segmentation fault (11) [Sat Apr 15 12:01:43 2000] [notice] child pid 19888 exit signal Segmentation fault (11)
i configured php 3.0.16 with: ./configure \ --with-mysql=/usr/local \ --with-config-file-path=/usr/local/apache/conf \ --enable-debug=yes \ --with-mcrypt=/usr/local/software/libmcrypt-2.4.2 \ --with-apache=/usr/local/software/apache_1.3.12 \ --sbindir=/usr/local/apache/bin \ --with-gd=/usr/local/software/gd1.3 \ --with-zlib=/usr/local/software/zlib-1.1.3 \ --enable-track-vars=yes \ --enable-force-cgi-redirect=yes \ --enable-discard-path=yes \ --with-imap=/usr/local/software/imap-4.7a \ --with-ftp \ --with-xml \ --with-snmp=/usr/local/software/ucd-snmp-4.0.1 \ --with-pdflib \ --with-zlib-dir=/usr/local/software/zlib-1.1.3 \ --with-jpeg-dir=/usr/local/software/jpeg-6b \ --with-tiff-dir=/usr/local/software/tiff-v3.5.5 \ --enable-magic-quotes=yes
and apache 1.3.12 via mod_ssl-2.6.2-1.3.12: ./configure \ --with-apache=/usr/local/software/apache_1.3.12 \ --activate-module=src/modules/auth_mysql/libauth_mysql.a \ --with-ssl=/usr/local/software/openssl-0.9.5 \ --prefix=/usr/local/apache \ --activate-module=src/modules/php3/libphp3.a \ --enable-module=info \ --enable-module=unique_id \ --enable-module=rewrite \ --enable-module=speling \ --enable-module=usertrack \ --enable-module=so \ --enable-module=mmap_static \ --add-module=mod_log_mysql.c
greetings
steven
attached mail follows:
i think, i know where the bug is.... it's not an apache bug or something else, it's an php 3.0.16 bug.... how someone has some experiences with it...
thx
steven
-----Ursprüngliche Nachricht-----
Von: Steven Glogger [mailto:list
glogger.ch]
Gesendet: Dienstag, 18. April 2000 11:34
An: php3
lists.php.net
Cc: phpexpert
aontic.com
Betreff: [PHP3] signal Segmentation fault (11)
Wichtigkeit: Hoch
anyone know's whats going wrong here...
each time i load a page from the webserver (html or php..it doesn't matter) i get: [Sat Apr 15 12:01:43 2000] [notice] child pid 26002 exit signal Segmentation fault (11) [Sat Apr 15 12:01:43 2000] [notice] child pid 26001 exit signal Segmentation fault (11) [Sat Apr 15 12:01:43 2000] [notice] child pid 25997 exit signal Segmentation fault (11) [Sat Apr 15 12:01:43 2000] [notice] child pid 19888 exit signal Segmentation fault (11)
i configured php 3.0.16 with: ./configure \ --with-mysql=/usr/local \ --with-config-file-path=/usr/local/apache/conf \ --enable-debug=yes \ --with-mcrypt=/usr/local/software/libmcrypt-2.4.2 \ --with-apache=/usr/local/software/apache_1.3.12 \ --sbindir=/usr/local/apache/bin \ --with-gd=/usr/local/software/gd1.3 \ --with-zlib=/usr/local/software/zlib-1.1.3 \ --enable-track-vars=yes \ --enable-force-cgi-redirect=yes \ --enable-discard-path=yes \ --with-imap=/usr/local/software/imap-4.7a \ --with-ftp \ --with-xml \ --with-snmp=/usr/local/software/ucd-snmp-4.0.1 \ --with-pdflib \ --with-zlib-dir=/usr/local/software/zlib-1.1.3 \ --with-jpeg-dir=/usr/local/software/jpeg-6b \ --with-tiff-dir=/usr/local/software/tiff-v3.5.5 \ --enable-magic-quotes=yes
and apache 1.3.12 via mod_ssl-2.6.2-1.3.12: ./configure \ --with-apache=/usr/local/software/apache_1.3.12 \ --activate-module=src/modules/auth_mysql/libauth_mysql.a \ --with-ssl=/usr/local/software/openssl-0.9.5 \ --prefix=/usr/local/apache \ --activate-module=src/modules/php3/libphp3.a \ --enable-module=info \ --enable-module=unique_id \ --enable-module=rewrite \ --enable-module=speling \ --enable-module=usertrack \ --enable-module=so \ --enable-module=mmap_static \ --add-module=mod_log_mysql.c
greetings
steven
-- PHP 3 Mailing List <http://www.php.net/> To unsubscribe, send an empty message to php3-unsubscribelists.php.net To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
Hi folks,
I want to develop something like an ads server. Every time i click on a link, i must get a different ad.
i can use mt_rand(first_ad_id, last_ad_id). but is this the only way i can achieve it or is there any sort of incremental id i can get? Any help???
Moreover, just try clicking this link below and each time it gives a new ad in the browser. I am totally baffled as to what page the following url calls...
http://ad.doubleclick.net/ad/main.auniv.com/;sz=468x60;ord=69?
any suggestions on what the url is doing????
regards, srimanth.
attached mail follows:
hi!
>I want to develop something like an ads server. Every time i click on a >link, i must get a different ad. > >i can use mt_rand(first_ad_id, last_ad_id). but is this the only way i >can achieve it or is there any sort of incremental id i can get? Any >help??? > > >Moreover, just try clicking this link below and each time it gives a new >ad in the browser. I am totally baffled as to what page the following >url calls... > >http://ad.doubleclick.net/ad/main.auniv.com/;sz=468x60;ord=69? > >any suggestions on what the url is doing????
the ad server at doubleclick takes care of finding a random ad for you (and so should probably the ad server you develop do too)
http://ad.doubleclick.net/ad/ << 'normal part'
main.auniv.com/ << this part tells the ad server wich server the ad is displayed on (an who should get the $$)
;sz=468x60 << this tells what size of banner you want (they have several)
;ord=69? << the value after 'ord=' is just some random value that changes every time you load the page (by using a timestamp on the server, or javascript in the client) it is *not* an ad id, it is there just to prevent the client from cacheing a previous ad...
if you make an ad server that can be used from several servers, you will end up with something like this. (the ad server takes care of picking a random (or not so random :) ad to show.
if you hust want to display a rondom ad on one server, you can make up a random id/selection in the page itself, and display like a regular image...
hth,
stein
attached mail follows:
The ";" ??
pretty much useless unless someone more learned has an idea. In my experience it would be a dead var...or pretty much nothing at all...
http://ad.doubleclick.net/ad/main.auniv.com/;sz=468x60;ord=69?
: phpads code works fine.. thanks..
: but still cannot figure out what the url does.. and why does he use a
: ";" ???
:
: srimanth.
:
: Dave wrote:
: >
: > I would recommend looking at Tobias' phpAds before committing to
developing
: > your own banner display/tracking system. It can be located at
: > http://www.htmlwizard.net/phpAds/
: >
: > sz
doubleclick.net is surely the image size, ord...I have no clue..
: >
: > -Dave
: >
: > : Hi folks,
: > :
: > : I want to develop something like an ads server. Every time i click on
a
: > : link, i must get a different ad.
: > :
: > : i can use mt_rand(first_ad_id, last_ad_id). but is this the only way
i
: > : can achieve it or is there any sort of incremental id i can get? Any
: > : help???
: > :
: > :
: > : Moreover, just try clicking this link below and each time it gives a
new
: > : ad in the browser. I am totally baffled as to what page the following
: > : url calls...
: > :
: > : http://ad.doubleclick.net/ad/main.auniv.com/;sz=468x60;ord=69?
: > :
: > : any suggestions on what the url is doing????
: > :
: > :
: > : regards,
: > : srimanth.
: > :
: > : --
: > : PHP 3 Mailing List <http://www.php.net/>
: > : To unsubscribe, send an empty message to
php3-unsubscribe
lists.php.net
: > : To subscribe to the digest, e-mail:
php3-digest-subscribe
lists.php.net
: > : To search the mailing list archive, go to:
: > http://www.php.net/mailsearch.php3
: > : To contact the list administrators, e-mail:
php-list-admin
lists.php.net
: > :
: > :
:
: --
: Srimanth R C
: Mahindra British Telecom
: Mumbai
:
: Phone : 91-22-8529000
: Fax : 91-22-8528959
: EMail : srimanth
MahindraBT.com
:
attached mail follows:
argument separator?
At 03:52 18.4.2000 -0700, Dave wrote the following:
--------------------------------------------------------------
>The ";" ??
>
>pretty much useless unless someone more learned has an idea. In my
>experience it would be a dead var...or pretty much nothing at all...
>
>http://ad.doubleclick.net/ad/main.auniv.com/;sz=468x60;ord=69?
>
>
>: phpads code works fine.. thanks..
>: but still cannot figure out what the url does.. and why does he use a
>: ";" ???
>:
>: srimanth.
>:
>: Dave wrote:
>: >
>: > I would recommend looking at Tobias' phpAds before committing to
>developing
>: > your own banner display/tracking system. It can be located at
>: > http://www.htmlwizard.net/phpAds/
>: >
>: > sz
doubleclick.net is surely the image size, ord...I have no clue..
>: >
>: > -Dave
>: >
>: > : Hi folks,
>: > :
>: > : I want to develop something like an ads server. Every time i click on
>a
>: > : link, i must get a different ad.
>: > :
>: > : i can use mt_rand(first_ad_id, last_ad_id). but is this the only way
>i
>: > : can achieve it or is there any sort of incremental id i can get? Any
>: > : help???
>: > :
>: > :
>: > : Moreover, just try clicking this link below and each time it gives a
>new
>: > : ad in the browser. I am totally baffled as to what page the following
>: > : url calls...
>: > :
>: > : http://ad.doubleclick.net/ad/main.auniv.com/;sz=468x60;ord=69?
>: > :
>: > : any suggestions on what the url is doing????
>: > :
>: > :
>: > : regards,
>: > : srimanth.
>: > :
>: > : --
>: > : PHP 3 Mailing List <http://www.php.net/>
>: > : To unsubscribe, send an empty message to
>php3-unsubscribe
lists.php.net
>: > : To subscribe to the digest, e-mail:
>php3-digest-subscribe
lists.php.net
>: > : To search the mailing list archive, go to:
>: > http://www.php.net/mailsearch.php3
>: > : To contact the list administrators, e-mail:
>php-list-admin
lists.php.net
>: > :
>: > :
>:
>: --
>: Srimanth R C
>: Mahindra British Telecom
>: Mumbai
>:
>: Phone : 91-22-8529000
>: Fax : 91-22-8528959
>: EMail : srimanth
MahindraBT.com
>:
>
>
>--
>PHP 3 Mailing List <http://www.php.net/>
>To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
>To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
>To search the mailing list archive, go to: http://www.php.net/mailsearch.php3
>To contact the list administrators, e-mail: php-list-admin
lists.php.net
------end of quote------
____________________________________________________________
Cynic:
A member of a group of ancient Greek philosophers who taught that virtue constitutes happiness and that self control is the essential part of virtue.
cynic
mail.cz
ICQ: 2808 2505
attached mail follows:
Hi,
I would like to know how to make a pop up window in PHP3.
I mean when i click the button , then a small window will pop up automatically..and let user fill in informations.
Thank You
Mark Lo
attached mail follows:
That is pretty much client-side although PHP can generate the script to send to the client...want to do it in PHP on bodyload? try:
<?php echo "<script>\nnew_win=window.open("page_to_display_in_win.html", "name", "window_params");\n</script>"; ?>
-Dave
: Hi,
:
: I would like to know how to make a pop up window in PHP3.
:
: I mean when i click the button , then a small window will pop up
: automatically..and let user fill in informations.
:
: Thank You
:
: Mark Lo
:
:
: --
: PHP 3 Mailing List <http://www.php.net/>
: To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
: To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
: To search the mailing list archive, go to:
http://www.php.net/mailsearch.php3
: To contact the list administrators, e-mail: php-list-admin
lists.php.net
:
:
attached mail follows:
Why dont you use javascript for it? window.open
Gp.
attached mail follows:
On Tue, 18 Apr 2000, George Papadakis wrote:
>Why dont you use javascript for it? >window.open
Do you think PHP can do this then?
I don't think PHP can do any actions that have to do with mousemovements, only things that are based on type of browser/OS or an form submit.
For things like mouseover actions you'll have to use javascript.
> >Gp. > Stefan Ubbink
-- 12:10pm up 33 days, 20:02, 3 users, load average: 0.23, 0.25, 0.23 on IRIX64 antarctica 6.5 01221553 IP27
attached mail follows:
Now I have got something like this <?php
$string;
if(!$string) { die ("Musisz podaæ adres e-mail.") ; }
elseif (!ereg("
", $string)) {
die ("Z³y format adresu") ; } else {
$fp = fopen("/tmp/test", "a"); fwrite($fp, "$string\n");
fclose($fp); }
?> This simple add e-mail addres to text file, what I should use to check if $string already exists in txt file? and if it exists - die ("already bla bla bla")
attached mail follows:
I've been a big fan of the file() when it comes to checking for something in a textfile. You could easily do a strstr() in each element of array (resulted from using file()), and find out if it's in there or not.
- Dev http://abreathoflife.com/
Bartosz Aninowski wrote:
>
> Now I have got something like this
> <?php
>
> $string;
>
> if(!$string) {
> die ("Musisz podaæ adres e-mail.") ;
> }
>
> elseif (!ereg("
", $string)) {
>
> die ("Z³y format adresu") ;
> }
> else {
>
> $fp = fopen("/tmp/test", "a");
> fwrite($fp, "$string\n");
>
> fclose($fp);
> }
>
> ?>
> This simple add e-mail addres to text file, what I should use to check if
> $string already exists in txt file?
> and if it exists - die ("already bla bla bla")
>
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
> To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
> To search the mailing list archive, go to: http://www.php.net/mailsearch.php3
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
Or also you could (from exec()) do a if(exec("grep ".$string." ".$filespec)) {} and see if it returns a line...if so then there is a match...else not..
-Dave
:
: I've been a big fan of the file() when it comes to checking for
: something in a textfile. You could easily do a strstr() in each element
: of array (resulted from using file()), and find out if it's in there or
: not.
:
: - Dev
: http://abreathoflife.com/
:
: Bartosz Aninowski wrote:
: >
: > Now I have got something like this
: > <?php
: >
: > $string;
: >
: > if(!$string) {
: > die ("Musisz podaæ adres e-mail.") ;
: > }
: >
: > elseif (!ereg("
", $string)) {
: >
: > die ("Z³y format adresu") ;
: > }
: > else {
: >
: > $fp = fopen("/tmp/test", "a");
: > fwrite($fp, "$string\n");
: >
: > fclose($fp);
: > }
: >
: > ?>
: > This simple add e-mail addres to text file, what I should use to check
if
: > $string already exists in txt file?
: > and if it exists - die ("already bla bla bla")
: >
: > --
: > PHP 3 Mailing List <http://www.php.net/>
: > To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
: > To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
: > To search the mailing list archive, go to:
http://www.php.net/mailsearch.php3
: > To contact the list administrators, e-mail: php-list-admin
lists.php.net
:
: --
: PHP 3 Mailing List <http://www.php.net/>
: To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
: To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
: To search the mailing list archive, go to:
http://www.php.net/mailsearch.php3
: To contact the list administrators, e-mail: php-list-admin
lists.php.net
:
:
attached mail follows:
Hiya
Try:
if (eregi($string, implode("", file($file)))) { bla ... } else { die("duplicate!"); }
Greetz,
Wico
At 12:10 18-4-2000 +0200, Bartosz Aninowski wrote:
>Now I have got something like this
><?php
>
>$string;
>
> if(!$string) {
> die ("Musisz podaæ adres e-mail.") ;
> }
>
> elseif (!ereg("
", $string)) {
>
> die ("Z³y format adresu") ;
> }
> else {
>
>$fp = fopen("/tmp/test", "a");
>fwrite($fp, "$string\n");
>
>fclose($fp);
>}
>
>
>?>
>This simple add e-mail addres to text file, what I should use to check if
>$string already exists in txt file?
>and if it exists - die ("already bla bla bla")
>
>
>
>
>
>--
>PHP 3 Mailing List <http://www.php.net/>
>To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
>To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
>To search the mailing list archive, go to: http://www.php.net/mailsearch.php3
>To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
Hi,
I'm having some trouble getting permissions and coding correct on my ISP's server. Basically I have a sensitive folder outside the web tree which is set to 0700 permissions. My ISP has wrapped PHP into CGI so all my scripts run as my UID and user etc.
Everything works fine and if I use another id on the ISP server I cannot view the contents of any of the files in this folder. Howver I have hit a problem and I don't know whether its my scripts or my lack of understanding of Unix permissions :
Some of my pages re-direct to my ISP's secure server - when I use these pages I get a Fatal error opening required ....... error message.
- however if I chmod the required file to 0777 then all works fine. So it seems permission related.
I could accept this if the UID or user/ group was different but its not (or doesn't seem to be) I have executed a getmyuid() and get_current_user() commands and displayed these values on both servers and they are the same!
Please tell me what I am missing - if this nis the wrong list I apologise - I do realise this may be more apache/ unix related.
Thanks
Jamie Beadle
*************************************************************************** Privileged/Confidential Information and/or Copyright Material may be contained in this e-mail. The information and Material is intended for the use of the intended addressee. If you are not the intended addressee, or the person responsible for delivering it to the intended addressee, you may not copy or deliver it to anyone else or use it in any unauthorised manner. To do so is prohibited and may be unlawful. If you receive this e-mail by mistake, advise the sender immediately by using the reply facility in your e-mail software.
Thank you. **************************************************************************
attached mail follows:
Hi,
I try out the mail() function in PHP, but it never work. I'm using PHP3
in Apache
Redhat 6.0. My mail server is MS Exchange 4.
Here is my example, but it never send email back to me.
mail("chchar
mcms.com", "test subject", "message 123");
I already configured the php3.ini configuration file and set the sendmail path to : ###### sendmail_path = "/usr/sbin/sendmail -t"
#####
I also checked the sendmail daemon is running ok.
#########
[root
INFONET lib]# ps -ax | grep sendmail
16420 ? S 0:00 sendmail: accepting connections on port 25
#########
Any help will be appreciated. TIA.
Regards,
begin 600 winmail.dat
M>)\^(
X+`0:0"``$```````!``$``0>0!
`(````Y`0```````#H``$(
`<`
M&````$E032Y-:6-R;W-O9G0
36%I;"Y.;W1E`#$(`06``P`.````T`<$`!(`
M!``F``X``
`G`0$
`,`#
```-`'!``2``4````+``(`_P`!"8`!`"$````X
M031&0S0Y,48W,31$-#$Q.3
V-3`P-C`Y-S-#.#9&,
#^!
$$
`$`'````$UA
M:6PH*2!&=6YC=&EO;B!.979E<B!7;W)K+
!+"0$-
`0``
````(``
`!`Y`&
M`,`'```K`````P`[
`
!
``````P````````$8`````4H4``+<-```>`#R`
M""`&``````#`````````1
````!4A0```0````0````X+C```P`]
`
!
``
M````P````````$8``````84````````+`#Z`""`&``````#`````````1
``
M```#A0````````L`/X`((`8``````,````````!&``````Z%`````````P!`
M
`
!
``````P````````$8`````$(4````````#`$&`""`&``````#`````
M````1
`````1A0````````,`0H`((`8``````,````````!&`````!B%````
M````'
!#
`
!
``````P````````$8`````-H4```$````!`````````!X`
M1(`((`8``````,````````!&`````#>%```!`````0`````````>`$6`""`&
M``````#`````````1
`````XA0```0````$``````````
$)$`$```";`
``
MEP(```($``!,6D9U)!LDL0,`"
!R8W!G,3(U%C(`^`M
;
X0,#,SG0'W(`*D
M`^,"`&-H"L#
<V5T,"`'$P*#`%!_`U00V0=M`H,.4`15`
!P?')Q$B$0]PA5
M![("
'TY"H%U8P!0"P,+M2!(7&DL"J(*A`J`(!E`26`
=')Y(`A
!4!T&&AE
M(`#``Q`H*2!`9G5N8W1I`B`
`0N`(%!(4"P
8D49X6D%0&YE=A:!=PD%L&LN
M&6`G;2!UUP"0#R`;<C,;0D$*L!#P.QHP&(12"8`1``5`-BY:,!S
31FP&E(
M$3!RYQQB!``%TD5X$/$/(!HPS#0N&(
+,'-B#T`!0/QS82*1&4$80`20&C`
MH4)M&;!E>&%M"U!ELQN]$3!N9"0`'^-B`-#J:QF`;QI`92&F$A(+\#8T(R(:
M4R(0\!#R0&V08VUS+
6
;2(;L`PB=`>0!4!S=6)J?060="E"!X$BT"%A#B`S
M^"(I.R&Z)N47Y1E#!T`9"7!A9!FP!:!N9FD.9PAP"8`:`W!H<#/Z+
N`:2W'
M'S`;$BX`)&#_+4`ED1$Q&
,E<AI2&(0*L&L:$"9B.AB$(S,3)M8R53$W7S(C
M/2E
+QU`<IXO(G`+
#5
,54
+2HP?R,B-K\WSSAG,KD8C"TR<Y\F
!Y1)D`N
M537'9&$EP+L;(
0
<AK0`P`=<6\<T`LRNC-'6P-
;W1`20!.1D].150
;#!I
M8ETC+K`$("UA4'
?"`)P7`Q/3%T-C08(3\X9
7P.&,PECHC`3%&.BU`8V-!
M4'\;`!UQ+=$<0!KS!"`;(7`]"1$
#C`^'
$Q&)M!;ML9L!H
;$%
`_!L)
$P
M85YP%4`%D`<P*8!D'.!4G$E!(:DA]0?P96<+$19S&'47`0!-$``+``(``0``
M`!X`<``!````'````$UA:6PH*2!&=6YC=&EO;B!.979E<B!7;W)K+
`"`7$`
M`0```!8````!OZDB-R:E.(#H%+T1U)'F`*`DZ'&+``!``#D`)B.A,R*IOP$#
M`/$_"00``!X`,4`!````+P```"]//4U)0U)/3B]/53U#35,P,R]#3CU%6$-(
M04Y'12!54T524R]#3CU#2$-(05(```,`&D``````'
`P0`$````O````+T\]
M34E#4D].+T]5/4--4S`S+T-./4580TA!3D=%(%5315)3+T-./4-(0TA!4
``
M`P`90``````#`/T_Y`0```,`)
```````P`V```````#`(`0_____P(!1P`!
M````-````&,]55,[83T
.W`]36EC<F]N.VP]7T--4S`S15A#2#$M,#`P-#$X
M,3`S.#$T6BTR-C$Q,0`"`?D_`0```$L`````````W*=`R,!"$!JTN0
`*R_A
M
$`````````+T\]34E#4D].+T]5/4--4S`S+T-./4580TA!3D=%(%5315)3
M+T-./4-(0TA!4
``'
#X/P$````'````8VAC:&%R```>`#A``0```"\````O
M3SU-24-23TXO3U4]0TU3,#,O0TX]15A#2$%.1T4
55-%4E,O0TX]0TA#2$%2
M```"`?L_`0```$L`````````W*=`R,!"$!JTN0
`*R_A
$`````````+T\]
M34E#4D].+T]5/4--4S`S+T-./4580TA!3D=%(%5315)3+T-./4-(0TA!4
``
M'
#Z/P$````'````8VAC:&%R```>`#E``0```"\````O3SU-24-23TXO3U4]
M0TU3,#,O0TX]15A#2$%.1T4
55-%4E,O0TX]0TA#2$%2``!```<P%KK6%R*I
MOP%```
PTBEB1"6IOP$>`#T``0````$`````````'
`=#
$````<````36%I
M;"
I($9U;F-T:6]N($YE=F5R(%=O<FLN``L`*0``````"P`C```````#``80
M4%>P0
,`!Q#A`0```P`0$``````#`!$0`````!X`"!`!````90```$A)+$E4
M4EE/55142$5-04E,*"E&54Y#5$E/3DE.4$A0+$)55$E43D5615)73U)+24U5
M4TE.1U!(4#-)3D%004-(15)%1$A!5#8P35E-04E,4T525D5225--4T580TA!
+3D=%-$
`````UJ8=
`
end
attached mail follows:
This mail function never worked to me too. I use a custom mail function..that does the trick.
Gp.
attached mail follows:
You could try the following to check sendmail is ok.
/usr/sbin/sendmail -bv -v chchar
mcms.com
I haven't ever had a problem with mail though so I'm not to sure what to advise.
Nick.
-----Original Message-----
From: chchar [mailto:chchar
mcms.com]
Sent: 18 April 2000 11:38
To: 'PHP Mailing List'
Subject: [PHP3] Mail() Function Never Work.
Hi,
I try out the mail() function in PHP, but it never work. I'm using PHP3
in Apache
Redhat 6.0. My mail server is MS Exchange 4.
Here is my example, but it never send email back to me.
mail("chchar
mcms.com", "test subject", "message 123");
I already configured the php3.ini configuration file and set the sendmail path to : ###### sendmail_path = "/usr/sbin/sendmail -t"
#####
I also checked the sendmail daemon is running ok.
#########
[root
INFONET lib]# ps -ax | grep sendmail
16420 ? S 0:00 sendmail: accepting connections on port 25
#########
Any help will be appreciated. TIA.
Regards,
This email has been virus scanned using Sophos Anti-Virus by intY (www.inty.net)
attached mail follows:
I would make sure that your sendmail binary exists in /usr/sbin and that it works correctly with something like:
echo 'To: your_email
your_domain' | /usr/sbin/sendmail -t
and make sure that you receive an email...if not it is a problem with SendMail not PHP...
-Dave
: Hi,
:
: I try out the mail() function in PHP, but it never work. I'm using PHP3
: in Apache
: Redhat 6.0. My mail server is MS Exchange 4.
: Here is my example, but it never send email back to me.
: mail("chchar
mcms.com", "test subject", "message 123");
:
: I already configured the php3.ini configuration file and set the
sendmail
: path to :
: ######
: sendmail_path = "/usr/sbin/sendmail -t"
:
: #####
:
: I also checked the sendmail daemon is running ok.
: #########
: [root
INFONET lib]# ps -ax | grep sendmail
: 16420 ? S 0:00 sendmail: accepting connections on port 25
: #########
:
: Any help will be appreciated. TIA.
:
: Regards,
:
:
----------------------------------------------------------------------------
----: : -- : PHP 3 Mailing List <http://www.php.net/> : To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net : To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net : To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 : To contact the list administrators, e-mail: php-list-admin
lists.php.net : :
attached mail follows:
Hello,
I'm running into a problem using sessions with PHP 4 rc1 on a win 2000 server with iis4 using isapi.
What is happening is that as soon as php encounters a session_start() call in a page it completely dies and the page stops, it doesn't hang, it just stops at that point.
When viewing the event log the following error is generated coming from the WAM service
The HTTP server encountered an unhandled exception while processing the
ISAPI Application '
php4isapi + 0x1137
wam!SE_TABLE::ReleaseExtension(class HSE_BASE *) + 0x6D6
wam!SE_TABLE::ReleaseExtension(class HSE_BASE *) + 0x1C3F
w3svc!_WamDictatorDumpInfo
8 + 0x4A5
w3svc!PARAM_LIST::CanonList(void) + 0x2386
w3svc!HTTP_REQ_BASE::BuildURLMovedResponse(class BUFFER *,class STR
*,unsigned long,int) + 0x38D6
w3svc!HTTP_REQ_BASE::BuildURLMovedResponse(class BUFFER *,class STR
*,unsigned long,int) + 0x3875
w3svc!HTTP_REQ_BASE::TestConnection(void) + 0x828
w3svc!HTTP_REQUEST::ReprocessURL(char *,enum HTTP_VERB) + 0x25D
w3svc!DumpW3InfoToHTML + 0xA89
w3svc!DumpW3InfoToHTML + 0x1754
w3svc!MULTISZ::~MULTISZ(void) + 0x182
w3svc + 0x1862
w3svc!ADDRESS_CHECK::UnbindAddr(void) + 0x175
w3svc!ADDRESS_CHECK::UnbindAddr(void) + 0xEF
ISATQ + 0x13D1
ISATQ + 0x1281
+ 0x1B9518EF
'.
I have seen other references to php sessions on NT being very sensitive to the save_path not being correct. I have this set to /tmp but as i'm not sure where php is looking for that i have basically put /tmp directories _everywhere_, still no luck.
Apart from this, the rest of PHP seems to be working really well under NT.
Any help would be really appreciated, Lukas
--Lukas Hazlehurst
Sofnology Ltd. sofnology
xtra.co.nz http://www.sofnology.pctv.co.nz/
attached mail follows:
Is there a way that I can set how long a PHP page waits for data to return from say a TCP/IP socket? I've already set my max_execute_time line in php3.ini to 300000 but it doesn't seem like it's waiting that long before showing me a timeout page. Any ideas?
-Ben
attached mail follows:
Is the function set_time_limit(int seconds); what you are looking for? (in the PHP docs)
-Dave
: Is there a way that I can set how long a PHP page waits for data to
: return from say a TCP/IP socket? I've already set my
: max_execute_time line in php3.ini to 300000 but it doesn't seem like
: it's waiting that long before showing me a timeout page. Any ideas?
:
: -Ben
:
: --
: PHP 3 Mailing List <http://www.php.net/>
: To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
: To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
: To search the mailing list archive, go to:
http://www.php.net/mailsearch.php3
: To contact the list administrators, e-mail: php-list-admin
lists.php.net
:
:
attached mail follows:
set_time_limit (seconds);
Gp.
attached mail follows:
i have installed php4 in my linux m/c. i have also installed mysql and apache web server. tell me where i have to put my first php program(tell met the extension of php4 version also)i.e. in which directory. i have made /www as my webservers path. also tell me if i have to compile separately my php program and then put there. i don't all these details. plz help me.
__________________________________________________ Do You Yahoo!? Send online invitations with Yahoo! Invites. http://invites.yahoo.com
attached mail follows:
Hi,
Just a note to say that I had just released pgp_enc.class, this class builds on Richard Heyes HTML_MIME_MAIL.class and enables the encryption and signing of text messages and attachments. I still have to add support for verifying as well as direct html encryption but I though I would release it now as Im away for a week and a half and a few people were asking about somthing similar yesterday.
You can get it from http://www.phpuk.org/
See Resources then Code
If you feel like improving it at all please let me have a copy at
james
phpuk.org so I can update the above link.
Thanks
James
attached mail follows:
Hello everyone,
First off, I want you all to know how much I have enjoyed reading the informative way people in this mail list correspond. I have found it very enlightening.
I am having a really tough time finding a way to create a dynamic hierarchy for links. The three variables (ID, name, destination) are held in a mySQL database. I would like to list the names under the hierarchy of each destination. Does this require two db tables? or can it be completed it with a single/multiple SELECT command?
I am currently using a WHILE statement to list all of the names, but this will soon become too large and unmanageable. I have taken a look at the Zend's code gallery and found something similar, but I'm not sure this will do the job.
Any suggestions?
Bryan
attached mail follows:
I am assuming you are wanting to stre data in a tree format in one table...yes?
I have done (and haven't had the time to finish) the same thing. Yes it can be done...I used a table similar to:
CREATE TABLE cat ( id mediumint(8) unsigned DEFAULT '0' NOT NULL, value varchar(100) NOT NULL, parent int(10) unsigned DEFAULT '0' NOT NULL, position tinyint(3) unsigned DEFAULT '0' NOT NULL, PRIMARY KEY (id), KEY parent (parent) );
and it sort of worked....;)
value = the text to display parent = an id (record) which is the parent for this record position = end of tree or not (Y/N, 0/1, etc)....
I had/have it working somewhat...although I am sure there is a better way to do it...
Let me know what you find...
-Dave
Hello everyone,
First off, I want you all to know how much I have enjoyed reading the informative way people in this mail list correspond. I have found it very enlightening.
I am having a really tough time finding a way to create a dynamic hierarchy for links. The three variables (ID, name, destination) are held in a mySQL database. I would like to list the names under the hierarchy of each destination. Does this require two db tables? or can it be completed it with a single/multiple SELECT command?
I am currently using a WHILE statement to list all of the names, but this will soon become too large and unmanageable. I have taken a look at the Zend's code gallery and found something similar, but I'm not sure this will do the job.
Any suggestions?
Bryan
attached mail follows:
The preferred way to set up the database is to normalize it by using two tables, one with destination and a destination index, the second with name, ID, and destination index. The resulting database takes up less space this way.
For the list, you can make one query:
"SELECT table1.*, table2.* FROM table1 JOIN table2 WHERE table1.destination_index = table2.destination_index ORDER BY table2.destination_name"
Then create sections by destination using nested while loops and creating a new destination section each time the destination name changes.
Bob
Bryan - Utopian Web Productions wrote:
> Hello everyone, First off, I want you all to know how much I have > enjoyed reading the informative way people in this mail list > correspond. I have found it very enlightening. I am having a > really tough time finding a way to create a dynamic hierarchy for > links. The three variables (ID, name, destination) are held in a mySQL > database. I would like to list the names under the hierarchy of each > destination. Does this require two db tables? or can it be completed > it with a single/multiple SELECT command? I am currently using a > WHILE statement to list all of the names, but this will soon become > too large and unmanageable. I have taken a look at the Zend's code > gallery and found something similar, but I'm not sure this will do the > job. Any suggestions? > Bryan
attached mail follows:
Kathy -
I think my difficulties are due to the fact that I have PHP 4 loaded *and* this is my first contact with PHP. Add to that the fact that I am using Win98 as my "take a look" platform before moving to Linux.
The result appears to be that MySQL is the DBMS of choice for those checking out PHP 4.0 - not Interbase.
Are my assumptions correct?
Todd
-- Todd Cary Ariste Software toddaristesoftware.com
attached mail follows:
Hello,
I apologise if i've sent this twice, i tried sending it thru the newsgroup interface but i'm having some trouble with my news reader software.
I'm running into a problem using sessions with PHP 4 rc1 on a win 2000 server with iis4 using isapi.
What is happening is that as soon as php encounters a session_start() call in a page it completely dies and the page stops, it doesn't hang, it just stops at that point.
When viewing the event log the following error is generated coming from the WAM service
The HTTP server encountered an unhandled exception while processing the
ISAPI Application '
php4isapi + 0x1137
wam!SE_TABLE::ReleaseExtension(class HSE_BASE *) + 0x6D6
wam!SE_TABLE::ReleaseExtension(class HSE_BASE *) + 0x1C3F
w3svc!_WamDictatorDumpInfo
8 + 0x4A5
w3svc!PARAM_LIST::CanonList(void) + 0x2386
w3svc!HTTP_REQ_BASE::BuildURLMovedResponse(class BUFFER *,class STR
*,unsigned long,int) + 0x38D6
w3svc!HTTP_REQ_BASE::BuildURLMovedResponse(class BUFFER *,class STR
*,unsigned long,int) + 0x3875
w3svc!HTTP_REQ_BASE::TestConnection(void) + 0x828
w3svc!HTTP_REQUEST::ReprocessURL(char *,enum HTTP_VERB) + 0x25D
w3svc!DumpW3InfoToHTML + 0xA89
w3svc!DumpW3InfoToHTML + 0x1754
w3svc!MULTISZ::~MULTISZ(void) + 0x182
w3svc + 0x1862
w3svc!ADDRESS_CHECK::UnbindAddr(void) + 0x175
w3svc!ADDRESS_CHECK::UnbindAddr(void) + 0xEF
ISATQ + 0x13D1
ISATQ + 0x1281
+ 0x1B9518EF
'.
I have seen other references to php sessions on NT being very sensitive to the save_path not being correct. I have this set to /tmp but as i'm not sure exactly where php is looking for i have basically put /tmp directories _everywhere_, still no luck.
Apart from this, the rest of PHP seems to be working really well under NT.
Any help would be really appreciated, Lukas
Sofnology Ltd.
sofnology
xtra.co.nz
http://www.sofnology.pctv.co.nz/
attached mail follows:
On Wed, Apr 19, 2000 at 01:10:37AM +1200, Lukas Hazlehurst wrote:
> Hello,
>
> I apologise if i've sent this twice, i tried sending it thru the newsgroup
> interface but i'm having some trouble with my news reader software.
>
> I'm running into a problem using sessions with PHP 4 rc1 on a win 2000
> server with iis4 using isapi.
>
> What is happening is that as soon as php encounters a session_start() call
> in a page it completely dies and the page stops, it doesn't hang, it just
> stops at that point.
>
> When viewing the event log the following error is generated coming from the
> WAM service
>
> The HTTP server encountered an unhandled exception while processing the
> ISAPI Application '
> php4isapi + 0x1137
> wam!SE_TABLE::ReleaseExtension(class HSE_BASE *) + 0x6D6
> wam!SE_TABLE::ReleaseExtension(class HSE_BASE *) + 0x1C3F
> w3svc!_WamDictatorDumpInfo
8 + 0x4A5
> w3svc!PARAM_LIST::CanonList(void) + 0x2386
> w3svc!HTTP_REQ_BASE::BuildURLMovedResponse(class BUFFER *,class STR
> *,unsigned long,int) + 0x38D6
> w3svc!HTTP_REQ_BASE::BuildURLMovedResponse(class BUFFER *,class STR
> *,unsigned long,int) + 0x3875
> w3svc!HTTP_REQ_BASE::TestConnection(void) + 0x828
> w3svc!HTTP_REQUEST::ReprocessURL(char *,enum HTTP_VERB) + 0x25D
> w3svc!DumpW3InfoToHTML + 0xA89
> w3svc!DumpW3InfoToHTML + 0x1754
> w3svc!MULTISZ::~MULTISZ(void) + 0x182
> w3svc + 0x1862
> w3svc!ADDRESS_CHECK::UnbindAddr(void) + 0x175
> w3svc!ADDRESS_CHECK::UnbindAddr(void) + 0xEF
> ISATQ + 0x13D1
> ISATQ + 0x1281
> + 0x1B9518EF
> '.
>
> I have seen other references to php sessions on NT being very sensitive to
> the save_path not being correct. I have this set to /tmp but as i'm not
> sure exactly where php is looking for i have basically put /tmp directories
> _everywhere_, still no luck.
Why don't you set it to c:\temp or some other existing directory?
>
> Apart from this, the rest of PHP seems to be working really well under NT.
>
> Any help would be really appreciated,
> Lukas
>
> Sofnology Ltd.
> sofnology
xtra.co.nz
> http://www.sofnology.pctv.co.nz/
>
>
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
> To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
> To search the mailing list archive, go to: http://www.php.net/mailsearch.php3
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
- Sascha
attached mail follows:
<?php
// check if exists
if (!$string) { die ("Musisz podaæ adres e-mail.") ; }
// check if looks good
elseif (!ereg("
", $string)) {
die ("Z³y format adresu") ; }
// check if exists in txt
function subscribed($string){ $path = "/tmp/test"; $fd = fopen($path, "r") or die("Couldnt open $path<BR>Check permissions"); $found = 0; while (!feof($fd) && !$found){ $line = fgets($fd, 1000000); file://Trim off newline fgets leaves (I think) $line = substr($line, 0, -1); $found = ($line == $string); } fclose($fd); return $found; }
// and problem, I want to add $string if doesn't exist in txt, but nothing happen, next 6 lines are avoided and "elseif" is executed and if $string exists or not I see "bla bla is subscribed"
if (!$string) { $fp = fopen("/tmp/test", "a"); fwrite($fp, "$string\n"); fclose($fp) ; echo "$string zostal dodany do bazy"; }
elseif et($ ng))
die ("$string is subscribed");
}
?>
what is wrong?
attached mail follows:
You can disable "error displaying" editing php.ini and also you can send all error messages to a file, so you can check it periodically for bugs...
What more do you want?
Regards, Pablo Godel
Quoting Mike Sheldon <msheldon
desertraven.com>:
> I actively develop in both CF and PHP, and tend to use each for their > strengths. >
> Error-handling: > CF has good try/catch functionality, making formal error handling possible. > PHP has no formal error handling. (This can REALLY bite! Throwing error > messages to the browser is not acceptable behaviour.) What little > error-handling exists is inconsistent, and many errors cannot be trapped in > code at all.
-- Pablo Godel godelconectacom.com Conectacom, Inc.
attached mail follows:
I personally think that CF's error reporting is better than PHP's. I don't use CF any more (for fairly obvious reason) but I wish that PHP had the reporting which CF has.
Ade
----- Original Message -----
From: Pablo A.Godel <godel
conectacom.com>
To: Mike Sheldon <msheldon
desertraven.com>
Cc: 'Toshihide Nakamura' <tony
crystaldonuts.com>; <php3
lists.php.net>
Sent: Tuesday, April 18, 2000 2:41 PM
Subject: RE: [PHP3] COldFusion/Netobjects v.s. PHP
> You can disable "error displaying" editing php.ini and also you can
> send all error messages to a file, so you can check it periodically
> for bugs...
>
> What more do you want?
>
> Regards,
> Pablo Godel
>
> Quoting Mike Sheldon <msheldon
desertraven.com>:
>
> > I actively develop in both CF and PHP, and tend to use each for
> their
> > strengths.
> >
>
> > Error-handling:
> > CF has good try/catch functionality, making formal error handling
> possible.
> > PHP has no formal error handling. (This can REALLY bite! Throwing
> error
> > messages to the browser is not acceptable behaviour.) What little
> > error-handling exists is inconsistent, and many errors cannot be
> trapped in
> > code at all.
>
>
>
> --
> Pablo Godel
> godel
conectacom.com
> Conectacom, Inc.
>
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
> To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
> To search the mailing list archive, go to:
http://www.php.net/mailsearch.php3
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
attached mail follows:
something like, <CFERROR>. This is a brief description from CF about CFERROR - Provides the ability to display customized HTML pages when errors occur.
Just my $.02
CDitty
______________________________ Reply Separator _________________________________
Subject: Re: [PHP3] COldFusion/Netobjects v.s. PHP
Author: php3-return-86496-CDitty=email.usps.gov
lists.php.net at INTERNET
Date: 4/18/00 10:59 AM
I personally think that CF's error reporting is better than PHP's. I don't use CF any more (for fairly obvious reason) but I wish that PHP had the reporting which CF has.
Ade
----- Original Message -----
From: Pablo A.Godel <godel
conectacom.com>
To: Mike Sheldon <msheldon
desertraven.com>
Cc: 'Toshihide Nakamura' <tony
crystaldonuts.com>; <php3
lists.php.net>
Sent: Tuesday, April 18, 2000 2:41 PM
Subject: RE: [PHP3] COldFusion/Netobjects v.s. PHP
> You can disable "error displaying" editing php.ini and also you can
> send all error messages to a file, so you can check it periodically
> for bugs...
>
> What more do you want?
>
> Regards,
> Pablo Godel
>
> Quoting Mike Sheldon <msheldon
desertraven.com>:
>
> > I actively develop in both CF and PHP, and tend to use each for
> their
> > strengths.
> >
>
> > Error-handling:
> > CF has good try/catch functionality, making formal error handling
> possible.
> > PHP has no formal error handling. (This can REALLY bite! Throwing
> error
> > messages to the browser is not acceptable behaviour.) What little
> > error-handling exists is inconsistent, and many errors cannot be
> trapped in
> > code at all.
>
>
>
> --
> Pablo Godel
> godel
conectacom.com
> Conectacom, Inc.
>
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
> To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
> To search the mailing list archive, go to:
http://www.php.net/mailsearch.php3
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
-- PHP 3 Mailing List <http://www.php.net/> To unsubscribe, send an empty message to php3-unsubscribelists.php.net To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
Hi...
I know how to connect to db (ms access)thru SYSTEM DSN but how about FILEdsn (more freq. i will use it -i think ))
Jedrek
attached mail follows:
Hi... I´m going to do a web site with a lot of news... and I will do it with forms from where some journalist will upload the news... the doubt that I have is: is better use a database to store the news, or generate a file for each news? what do you think? I will also use an internal search engine for my site, in mysql..
-- Best regards, coolio mailto:cooliomdq.com
attached mail follows:
Database without question, especially if you want a search engine
jason
> Hi... I´m going to do a web site with a lot of news... and I will do > it with forms from where some journalist will upload the news... > the doubt that I have is: is better use a database to store the news, > or generate a file for each news? > what do you think? I will also use an internal search engine for my > site, in mysql..
attached mail follows:
Where can I find a good tutorial for installing PHP, MySQL and Apache on Red Hat 5.2?
Thank you in advanced.
attached mail follows:
Try the INSTALL.REDHAT file in the source distribution
jason
> Where can I find a good tutorial for installing PHP, MySQL and Apache on
Red
> Hat 5.2?
>
> Thank you in advanced.
>
>
>
>
>
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
> To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
> To search the mailing list archive, go to:
http://www.php.net/mailsearch.php3
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
>
attached mail follows:
Some people say: post jobs. Some people say: don't post jobs. Guess someone's going to be offended no matter what. Hopefully the subject will turn away those who are offended by job postings.
The main site was done with midgard, but there's a lot of little things that need updating or integrating. Please call Hugh Kominars at 703-963-1200 if you're interested. He's in Virginia which is EDT for those in other parts of the world.
They're a good group.
Lara in Los Gatos, CA
attached mail follows:
Hi all, maybe it's a dumb question, but i haven't found any answer yet, so... I have installed mod_php and apache, and would like to write some little scripts in php outside html pages to run as standalone programs. Is it possible? How should i do it?
Thank you, Duccio.
attached mail follows:
Duccio Gasparri wrote: > > Hi all, maybe it's a dumb question, but i haven't found any answer yet, > so... I have installed mod_php and apache, and would like to write some > little scripts in php outside html pages to run as standalone programs. Is > it possible? How should i do it? > > Thank you, > Duccio.
In general, this should be done with the CGI version of PHP (and rumor has it, you can have both the mod_php and Apache on the same machine). Otherwise you'll need a browser to call the script. At least on Unix you can use lynx with the -dump or -source option to run the script from the command line or from a cron file.
Andrian
attached mail follows:
Compile php as a standalone binary and insert #!/usr/local/bin/php -q at the top of your php program and set the executeable bit on the program's permissions - just as you would any shell or perl script
jason
> Hi all, maybe it's a dumb question, but i haven't found any answer yet, > so... I have installed mod_php and apache, and would like to write some > little scripts in php outside html pages to run as standalone programs. Is > it possible? How should i do it? > > Thank you, > Duccio.
attached mail follows:
First of all, this is my first attempt at posting to this NG, so please forgive me if I ask questions already answered. I checked myself here and in the archive and couldn't find any reference to what I'm asking.
It looks like I'm having a lot of trouble finding an answer, so I thank in advance anyone who can share a thought on this.
I have a MySQL database that handles a quizzes high scores. Database has name of the quiz, score and name of the player. At the end of every quiz I would like to recommend the player other quizzes, based on what other players played. This is something similar to what Amazon does with books and videos. My logical steps would be: 1) Finding a DISTINCT list of every player who played, say, quiz A. I will call this list of player "A-Players". 2) Finding a DISTINCT list of every quiz played by those contained in the "A-Players" list. I will call this list "A-Players-Favourites". 3) Count the "A-Players-Favourites" list and sort it so that I can have just the 3-4 top played quizzes. 4) Suggest every player who plays the quiz A the first 3-4 quizzes of "A-Players-Favourites" list.
Is there a way to do this using a PHP file? If not, is there anything similar to this?
Thanks very much in advance!
attached mail follows:
Hello
I use PHP3 with MySQl on NT server
When I try the function mysql_connect (example FaceMySQL) I have a error message : call unsuported or undefined function is someone can help me
many thanks
Patrick SILVA
/---------------------------------------------/
Cyse Informatique
105 avenue du Général LECLERC
77400 Lagny sur Marne
T : 01 64 30 32 32 - F : 01 64 30 32 22
http://www.cyse.com
psilva
cyse.com
/---------------------------------------------/ with M
attached mail follows:
Thank you Bob for your reply. This is what I am attempting to get the results I want (but not quite). This routine is showing the results of only one destination and a list of it's names, and then stops. What am I doing wrong?
$no_sql="SELECT destination,ID,name FROM $table_name ORDER BY destination,name ASC";
$housesresult=mysql_db_query($data_base, $no_sql, $conn);
$records=
mysql_num_rows($housesresult);
$nextrecord=$records+1;
echo " <tr align='left' valign='top'> <td width='10'> </td> <td><font size='5'><a href='houses.php'><br> Houses </a></font><font size='2'>($records)</font></td> </tr> <tr align='left' valign='top'> <td width='10'> </td> <td>";
while ($row = mysql_fetch_row($housesresult)) { $housedest=$row[0];
echo " <table width='100%' border='0' cellspacing='0' cellpadding='1'> <tr> <td width='10%' align='center'><img src='../graphics/links/dot_blue.gif' width='10' height='10'> </td> <td colspan='2'>$housedest</td> </tr>";
while ($row = mysql_fetch_row($housesresult)) { $ID=$row[1]; $housename=$row[2]; echo " <tr> <td colspan='2' align='right'><img src='../graphics/links/dot_red.gif' width='10' height='10'></td> <td><a href='houses_02.php?houseID=$ID'>$housename</a></td> </tr>"; } echo " </table>";
}
Bryan
----- Original Message -----
From: Bob Lutz
To: Bryan - Utopian Web Productions
Cc: php3
lists.php.net
Sent: Tuesday, April 18, 2000 8:19 AM
Subject: Re: [PHP3] Hierarchy Links
The preferred way to set up the database is to normalize it by using two tables, one with destination and a destination index, the second with name, ID, and destination index. The resulting database takes up less space this way. For the list, you can make one query:
"SELECT table1.*, table2.* FROM table1 JOIN table2 WHERE table1.destination_index = table2.destination_index ORDER BY table2.destination_name"
Then create sections by destination using nested while loops and creating a new destination section each time the destination name changes.
Bob
Bryan - Utopian Web Productions wrote:
Hello everyone, First off, I want you all to know how much I have enjoyed reading the informative way people in this mail list correspond. I have found it very enlightening. I am having a really tough time finding a way to create a dynamic hierarchy for links. The three variables (ID, name, destination) are held in a mySQL database. I would like to list the names under the hierarchy of each destination. Does this require two db tables? or can it be completed it with a single/multiple SELECT command? I am currently using a WHILE statement to list all of the names, but this will soon become too large and unmanageable. I have taken a look at the Zend's code gallery and found something similar, but I'm not sure this will do the job. Any suggestions? Bryan
attached mail follows:
You have a nested call to mysql_fetch_row. As such when your routinue exits the house output (inner) while loop there are no further rows to fetch in the destination while (outer) loop.
Try something like, it's not elegant but it should work :-
$housedest=""; while ($row = mysql_fetch_row($housesresult)) { if($housedest!=$row[0]) { if(!empty($housedest)) echo "</table>";
$housedest=$row[0]; echo "<table width='100%' border='0' cellspacing='0' cellpadding='1'> <tr> <td width='10%' align='center'><img src='../graphics/links/dot_blue.gif' width='10' height='10'> </td> <td colspan='2'>$housedest</td> </tr>"; }
$ID=$row[1]; $housename=$row[2]; echo "<tr><td colspan='2' align='right'><img src='../graphics/links/dot_red.gif' width='10' height='10'></td> <td><a href='houses_02.php?houseID=$ID'>$housename</a></td> </tr>"; }
Regards,
Rob Hall Web Technician Newsquest Digital Media
attached mail follows:
Hello All, It's easy to make money through internet. Simply surfing the web and reading e-mails!! visit : www.easymoney.indianet.org Sign up! Earn Cash! Regards Priyendu S
attached mail follows:
Is there a PHP Module for NSAPI? I couldn't find any with the PHP distributions. Is there a reason why this isn't supported yet? Thanks very much.
attached mail follows:
I added the entry into the tnsnames.ora file on my server to talk to the database server. Now what do I do. The Oracle functions in PHP still can't connect to the database. The phpinfo() function prints rows for "Oracle" and "OCI8", but they are blank. The oracle dll's have been added to the php.ini file.
Extensions Extensions Additional Information Calendar No additional information. Microsoft SQL Allow persistent links: Yes Persistent links: 0/Unlimited Total links: 0/Unlimited Application name: PHP Client API information: MSSQL 6.5 Imap 4R1 Imap Support enabled Imap c-client Version: Imap 4.1 Oracle OCI8 Basic Functions No additional information. etc. etc.
Any ideas? I use PHP 3.014 (Win32 binary) on NT 4.0. Thanks again. -Zack
> ______________________________________
> Zack Beatty | Enterprise Software Consultant
> zackb
mamamedia.com
>
> http://www.MaMaMedia.com
> Named one of the “100 Best Sites for 2000,”
> Yahoo! Internet Life, January 2000.
>
> MaMaMedia, Inc.
> 110 Greene Street, 3rd Floor
> New York, NY 10012
> Phone: 212.334.3277 x477
> Fax: 212.334.3276
-----Original Message-----
From: Mitch Pirtle [mailto:mitchy
buzzwerks.com]
Sent: Wednesday, April 12, 2000 10:01 AM
To: Zack Beatty
Subject: RE: oracle connection need help ,please suggest me
On Wed, 12 Apr 2000, you wrote: > Any luck with the Oracle connection? I can't connect PHP (on Windows NT) to > a remote Oracle server. Do I need to configure Net8 or do something with a > "tnsnames.ora" file? > Please help. > -zack
Hey Zack,
You will need to configure Net8 to get from the webserver to the database box. Basically, if you can use sqlplus (or whatever GUI client that Oracle ships for NT) and get to the database, you are golden.
This is done by adding an entry in the tnsnames.ora file (which, in typical installations, is scattered all about the filesystem). Sadly, for each Oracle product you install (Oracle8i, Enterprise Manager, Application Server, etc.) there will be yet another tnsnames.ora file to deal with. I always "Find file..." for tnsnames.ora and copy the edit to all of the files.
Let me know if you still have trouble, ok?
Let me know how the Oracle thing goes.
--01101101 01101001 01110100 01100011 01101000 01111001
attached mail follows:
Dear sir,
i have already follow the instruction on the page
http://www.e-gineer.com/instructions/install-php3xx-for-apache1xx-on-linux.p html
and finally if i type "httpd -v"
the result is ..
Server Version: Apache/1.3.9 (Unix) (Red hat/linux) Server Built: Sep 21 1999 10:46:27
it seems can't install php properly....
if i type "./apachectl status" result is
Not Found
The requested URL / server-status was not found on this server.
how can i slove the problem??
Thx, Powis ****************************** *Leung Lai Yin Powis *ICQ UID : 1567759 *Moblile phone no. : 96721959 ******************************
attached mail follows:
is there any method by using PHP and mySQL to sync linux system (or vpop) passwd?
Cuz I need this for web-mail service...thanks!
I have seen a homepage mentioned in here...and explaining with example to show how liunx system passwd can be sync with a mySQL database. can anyone pls post the links?
Thanks for your help~
-- Vincent Chu, HKSAR http://www.BeUnion.net
- Next message: php3-digest-help
lists.php.net: "php3 Digest 19 Apr 2000 04:58:04 -0000 Issue 1616"
- Previous message: php3-digest-help
lists.php.net: "php3 Digest 18 Apr 2000 04:58:10 -0000 Issue 1614"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]