|
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 9 Feb 2000 18:00:02 -0000 Issue 1468
From: php3-digest-help
lists.php.netDate: Wed Feb 09 2000 - 12:00:02 CST
- Next message: php3-digest-help
lists.php.net: "php3 Digest 10 Feb 2000 06:00:03 -0000 Issue 1469"
- Previous message: php3-digest-help
lists.php.net: "php3 Digest 9 Feb 2000 06:00:01 -0000 Issue 1467"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
php3 Digest 9 Feb 2000 18:00:02 -0000 Issue 1468
Topics (messages 75154 through 75245):
Kind of a gateway
75154 by: Richard Lynch <rlynch
ignitionstate.com>
75160 by: garyb
fxt.com
Mail function & funny results
75155 by: Richard Lynch <rlynch
ignitionstate.com>
Mail()
75156 by: Richard Lynch <rlynch
ignitionstate.com>
Maximum string length
75157 by: Richard Lynch <rlynch
ignitionstate.com>
Hacker Proof Password Protection
75158 by: Stan <stan
webmouse.net>
hi
75159 by: tpah
popsmail.com
75170 by: "Dave VanHorn" <dvanhorn
cedar.net>
Installing PHP as an Apache Module.
75161 by: "Omer BARLAS" <obarlas
barlas.com.tr>
my most often made stupid mistakes, just for your viewing pleasure!
75162 by: rubys
us.ibm.com
75163 by: "Murray Shields" <murray
mu.com.au>
75171 by: "Dave VanHorn" <dvanhorn
cedar.net>
75204 by: "Paul Meagher" <paul
datavore.com>
75209 by: Grönvall Johan <johan.gronvall
btj.se>
variables and include command..
75164 by: Maniac <maniac
online.ee>
Editor for Linux with PHP3 enlaightment
75165 by: Schindler Jiøí <schindler
scom.cz>
75166 by: Soren Staun-Pedersen <staun
cs.auc.dk>
75167 by: Marius ANDREIANA <rocky
ss.pub.ro>
75168 by: "M.Plate" <plate
hrz.uni-kassel.de>
75173 by: "John P . Looney" <valen
tuatha.org>
75174 by: Green J M K <jmkgre
essex.ac.uk>
75229 by: elliot d schlegelmilch <elliot
rightnowtech.com>
PHP on Linux: How to connect to MS-SQL 7.0 ?
75169 by: Maarten Stolte <M.Stolte
Samhoud.nl>
75214 by: "Erik Mathy" <erik
butlerandco.com>
75215 by: Maarten Stolte <M.Stolte
Samhoud.nl>
75217 by: "Andrew Hill" <ahill
openlinksw.com>
[PHP4b3]Mail
75172 by: David So <david.so
twc-asia.com>
PHP extension doesn't work in PWS
75175 by: "Greg Brunet" <GBrunet
SemperSoft.com>
Safe mode problem with uids
75176 by: Marc Druilhe <marc.druilhe
bull.net>
75220 by: rasmus
php.net
PHP and MySQL
75177 by: michael graute <graute
nhs.com>
75178 by: "Peter Johansson (BCS)" <Peter.Johansson
bcs.ericsson.se>
75183 by: Fernando Caamaño <fernando
conecta-t.com>
75184 by: "Martin Edelius" <martin.edelius
spirex.se>
75195 by: "Brian R" <brianr
rochester.rr.com>
75197 by: "Chris Cosentino" <mansemat
mindspring.com>
75205 by: "Rossi Designs" <webmaster
rossidesigns.net>
75237 by: curt <curtpdx
inetarena.com>
Security Risk in <? include ?>
75179 by: "Mark Nold" <MarkN
awi.com.au>
Password protection
75180 by: "Mark Nold" <MarkN
awi.com.au>
Database searches (Oracle)
75181 by: "Mark Nold" <MarkN
awi.com.au>
Getting page name
75182 by: "Mark Nold" <MarkN
awi.com.au>
phpAdmin on NT? & Dutch company
75185 by: "Roldano De Persio" <persius
libero.it>
75192 by: Maarten Stolte <M.Stolte
Samhoud.nl>
75193 by: Wico de Leeuw <wico
cnh.nl>
Different Breed of 'not a mysql index' error
75186 by: Thomas Merlin <thomas.merlin
mixad.com>
Some clarifications
75187 by: "Sumit Kashyap" <sumitk
sigmaonline.net>
75188 by: Michael Orlov <michael
mail.snunit.k12.il>
Compile Question
75189 by: Tim Gustafson <tim
netspaces.net>
Problem with php module on redhat 6.1 with oracle.
75190 by: Rudi Heitbaum <rudi
darx.com>
Interbase
75191 by: "Hojan" <rychtation
sin.cvut.cz>
Help: HTTP GET data getting reposted over and over?
75194 by: John L Grantham <jgrantha
hannover.sgh-net.de>
Good PHP & MySQL books?
75196 by: "Chris Fankhauser" <chrisf
swdata.com>
75198 by: Paul DuBois <paul
snake.net>
75228 by: "john m howitt" <jmhowitt
egolight.com>
75240 by: curt <curtpdx
inetarena.com>
PHP on Win32
75199 by: Bob Lutz <rlutz
lutz-engr.com>
75203 by: "Paul Meagher" <paul
datavore.com>
75213 by: "Phil Driscoll" <phil
dialsolutions.co.uk>
Phorum Help!
75200 by: "ddhanoa
golden.net" <ddhanoa
stomped.com>
Mysql & php3 slow?
75201 by: Bob Lutz <rlutz
lutz-engr.com>
Manipulate test string
75202 by: "Dan Larsson" <dl
tyfon.net>
75206 by: "NickM" <nick
regiocom.net>
75207 by: "Jason Brooke" <jason
qgl.org>
75212 by: "NickM" <nick
regiocom.net>
sql ?
75208 by: "Rossi Designs" <webmaster
rossidesigns.net>
Post vs. Get
75210 by: "Shaun Thomas" <shaun_thomas
inlet.com>
php, oracle, unix, apache...blah...blah...blah
75211 by: "Von A. Neel" <von
bbkstudio.com>
75216 by: "NickM" <nick
regiocom.net>
browser email
75218 by: Tim Cross <tcross
swu.edu>
75219 by: "John P . Looney" <valen
tuatha.org>
Any function in PHP3 for newsgroup posting?
75221 by: "Andrew Yan" <ayan
blinco.com>
75222 by: Stanislav Malyshev <stas
zend.com>
DEFINED vars in sql-query
75223 by: "Andy Krause" <archiver
db.geocrawler.com>
slow on windows, fast on mac?
75224 by: "Mark Neurdenburg" <archiver
db.geocrawler.com>
Code execution inside table
75225 by: "Joao Duraes" <jduraes
netcomuk.co.uk>
pdflib
75226 by: Jim Ide <JIde
madentech.com>
replace in string problemito
75227 by: Peter Van Dijck <pedro3
geo.net.co>
75231 by: "alex" <alex
quad.com.ar>
PHP 4?
75230 by: Thomas Deliduka <thomas
neweve.com>
Splitting up XMLified string
75232 by: Tim Fountain <tim
tfountain.co.uk>
75239 by: Paul DuBois <paul
snake.net>
Time Tracking - Project Management
75233 by: PinkeshP
aol.com
extranet security
75234 by: "Chris Carbaugh" <Chris
LeerElectric.com>
75238 by: "Paul Meagher" <paul
datavore.com>
php vs pearl
75235 by: Floyd Baker <fbaker
wzrd.com>
Help pleaaase...
75236 by: "Jean-Claude Levieux" <jclevieux
sud2000.com>
PHP3 and IE5 Problems
75241 by: Doug Williams <dwilliams
ifleet.com>
Error message for ora_do??
75242 by: "Xuejia Miao" <xuejiam
revelex.com>
Problem with MySQL Result
75243 by: StefanMueller <stefan
tourquest.ch>
75244 by: "Enrique Gonzalvo" <kike
bytenet.es>
redeclare a function
75245 by: "Mark Peoples" <gascsd
gascairlines.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:
At 04:46 PM 2/5/00 +0100, you wrote:
>It shall return the data just as it was served, both text, html, applets,
>images etc. I cant use the redirect/"Location: " way, as I am goint to do
>some text processing if the returned data is html. All data has to go
>through my script.
Each separate content type is a separate request.
You can't change that.
-- "TANSTAAFL" http://CHaTMusic.com http://EmphasisEntertainment.com http://L-I-E.com http://JadeMaze.com http://CatCatalani.com http://MGMH.com http://VoodooKings.net http://UncommonGround.com
attached mail follows:
Richard said, > At 04:46 PM 2/5/00 +0100, you wrote: > >It shall return the data just as it was served, both text, html, applets, > >images etc. I cant use the redirect/"Location: " way, as I am goint to do > >some text processing if the returned data is html. All data has to go > >through my script. > > Each separate content type is a separate request. > > You can't change that.
Well, I have to hedge a bit. HTTP/1.1 supports pushing multiple files through a single HTTP connection. Apache supports this, but browser support is minimal. But I would think it's theoretically possible for PHP to emulate the behavior of Apache in sending the multiple files down the same connection. I wouldn't want to try to make this work, myself.
attached mail follows:
At 02:43 PM 2/8/00 -0000, you wrote: > POSTDATA.ATT which contains all the data in a long string. It also >sends multiple copies (usually 3 or 4 of them) Is the mail function >failing? Am I doing something wrong? Is it a IE problem? Thanks in
Wild Guess: Try using \r\n instead of just \n, so you're in strict compliance with RFCs.
-- "TANSTAAFL" http://CHaTMusic.com http://EmphasisEntertainment.com http://L-I-E.com http://JadeMaze.com http://CatCatalani.com http://MGMH.com http://VoodooKings.net http://UncommonGround.com
attached mail follows:
At 12:50 PM 2/6/00 -0600, you wrote:
>Hello,
>
>Is there some problems with the mail() function in php4 beta 3?
>I ask because I have this simple script to shoot off an email:
>
><?php
>
>mail("bradb
saintjoe.edu", "Subject", "Subject Line",
>"FROM:bradb
saintjoe.edu\nREPLY-TO:bradb
saintjoe.edu");
>?>
>
>it does not work or do anything with php4 beta3, but when I put it on
>the production machine with php3 running it works liks a charm. Am
>I missing something?
Check sendmail path in php.ini Use phpinfo() to be sure it's what you think it is. Use \r\n instead of \n Use 'From: ' instead of 'FROM:' (note spacing) 'Reply-To: ' ...
-- "TANSTAAFL" http://CHaTMusic.com http://EmphasisEntertainment.com http://L-I-E.com http://JadeMaze.com http://CatCatalani.com http://MGMH.com http://VoodooKings.net http://UncommonGround.com
attached mail follows:
At 11:00 AM 2/8/00 +0100, you wrote: > > > I'm concatenating all the persons from a distribution list into a single string to form the "to" field for the mail function. This works fine with 65 people on the list but it fails with 120 people. > >There could be 2 reasons for that: > - sendmail limits the "to" field. > - the string becomes too long to handle properly in php > >Is there anybody who knows if there is a string limit in php?
The maximum string limit in PHP is documented as "How much RAM do you have available?" It seems unlikely that your RAM is limited to 120 email addresses. :-)
There are frequently limits set on To: and Cc: fields in various mail packages.
Change the configuration of your mailer, or use Cc: or break the mailing up or use Manuel Lemos' (or other) mail class.
-- "TANSTAAFL" http://CHaTMusic.com http://EmphasisEntertainment.com http://L-I-E.com http://JadeMaze.com http://CatCatalani.com http://MGMH.com http://VoodooKings.net http://UncommonGround.com
attached mail follows:
When are you protecting yourself from hacker attacks, are you assuming someone has gotton a username and is trying every password to get in. And not by some other backdoor way.
attached mail follows:
.
<hr size="1" width="463" align="left"><font color="#0066FF"><b><span style="font-family: µ¸¿ò, Arial; font-size: 9pt">E-Mail</span></b></font> <span style="font-family: µ¸¿ò, Arial; font-size: 9pt">tpah
popsmail.com, 0522444002
popsmail.com</span><br><font color="#0066FF"><b><span style="font-family: µ¸¿ò, Arial; font-size: 9pt">Voice/Fax Mail</span></b></font> <span style="font-family: µ¸¿ò, Arial; font-size: 9pt">02-6276-8484</span> <font color="#0066FF"><b><span style="font-family: µ¸¿ò, Arial; font-size: 9pt">Phone ID</span></b></font> <span style="font-family: µ¸¿ò, Arial; font-size: 9pt">0522444002</span>
<hr size="1" width="463" align="left"><font color="#0066FF"><span style="font-family: µ¸¿ò, Arial; font-size: 9pt">tpah</span></font><span style="font-family: µ¸¿ò, Arial; font-size: 9pt">´ÔÀÌ ÆË½º¸ÞÀÏÀ» ÃßõÇÕ´Ï´Ù!</span><br> <span style="font-family: µ¸¿ò, Arial; font-size: 9pt">ÆË½º¸ÞÀÏÀº ÃÑ <font color=red>50MB</font>ÀÇ E-Mail, º¸À̽º¸ÞÀÏ, ÆÑ½º¸ÞÀϰú ¸ÞÀÏ ¼ö½ÅÀ» ÇÚµåÆùÀ¸·Î<br> ¾Ë·Áµå¸®´Â ¼ºñ½º¸¦ ¸ðµÎ ¹«·á·Î Á¦°øÇϰí ÀÖ½À´Ï´Ù.</span> <br><span style="font-family: µ¸¿ò, Arial; font-size: 9pt">ÇöÀç Ãßõ°¡ÀÔÀÚ°¡ 10¸í ÀÌ»óÀÌ¸é ¹®È»óǰ±Ç 2¸Å¸¦ µå¸®´Â À̺¥Æ®°¡ ÁøÇàÁßÀÔ´Ï´Ù.</span><br> <A HREF="http://www.popsmail.com/popsmail/reg_form.php3?flag=1&intro=tpah" target=new><span style="font-family: µ¸¿ò, Arial; font-size: 9pt">Áö±Ý °¡ÀÔ</span></a><span style="font-family: µ¸¿ò, Arial; font-size: 9pt">ÇϽøé ÃßõÀÎÀº</span> <font color="#0066FF"><span style="font-family: µ¸¿ò, Arial; font-size: 9pt">tpah</span></font><span style="font-family: µ¸¿ò, Arial; font-size: 9pt">´ÔÀÌ µË´Ï´Ù.</span> <HR size="1" width="463" align="left"><a href="http://www.popsmail.com" target='_top'><img src="http://www.popsmail.com/image/small_logo.gif" border="0"></a><br>
attached mail follows:
I suspect this isn't a PHP question.
attached mail follows:
I couldn't find any documents or anything about how to install PHP as a module on Apache server. I am using PHP on win98.
-- Omer BARLAS obarlasbarlas.com.tr obarlas
artemis.efes.net.tr ICQ # : 4588951
attached mail follows:
Peter Van Dijck wrote: > So what are your most often made stupid mistakes in PHP??
here we go: - echo $foo.bar;
should be - echo $foo->bar;
- Sam Ruby
attached mail follows:
> Peter Van Dijck wrote: > > So what are your most often made stupid mistakes in PHP?? > > here we go: > - echo $foo.bar; > > should be > - echo $foo->bar; > > - Sam Ruby
while (condition_statement); dothis();
======================================================================
Murray Shields Email: murray
globalcat.com.au
Global Catalogs Pty Ltd WWW: http://www.globalcat.com.au
Brisbane Australia Phone: +61 7 3351 4777
----------------------------------------------------------------------
Professional Internet Services for Business: Retail Web Catalogs, Web
Design, Corporate Email Delivery, Inhouse Web Servers and Consultancy.
======================================================================
attached mail follows:
any_php_line () ; comment
(Semicolons mean "comment" in assembler, my native language)
attached mail follows:
My frequent stupid mistake is:
if ($var = $value) { blah... }
when it should be
if ($var == $value) { blah... }
Regards, Paul Meagher
----- Original Message -----
From: Murray Shields <murray
mu.com.au>
To: <rubys
us.ibm.com>; php3 <php3
lists.php.net>
Sent: Wednesday, February 09, 2000 1:49 AM
Subject: Re: [PHP3] my most often made stupid mistakes, just for your viewing pleasure!
> > Peter Van Dijck wrote:
> > > So what are your most often made stupid mistakes in PHP??
> >
> > here we go:
> > - echo $foo.bar;
> >
> > should be
> > - echo $foo->bar;
> >
> > - Sam Ruby
>
> while (condition_statement);
> dothis();
>
> ======================================================================
> Murray Shields Email: murray
globalcat.com.au
> Global Catalogs Pty Ltd WWW: http://www.globalcat.com.au
> Brisbane Australia Phone: +61 7 3351 4777
> ----------------------------------------------------------------------
> Professional Internet Services for Business: Retail Web Catalogs, Web
> Design, Corporate Email Delivery, Inhouse Web Servers and Consultancy.
> ======================================================================
>
>
> --
> 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:
This hasn't happened yet but sure will some day (probably a Monday):
Emacs make backup files with an extra tile at the end of the filename. As you all know these files never gets parsed by PHP if you haven't made a rule for it in your http.conf - which I hasn't. So, this is a security threat and therefor the ~files must be removed:
rm *~
Doesn't backspace reside too close to the Enter key? One day I will slip 8( This is especially annoying for us in Sweden where asterisk and tile also are next to the enter key.
You have been warned! Solution: Make 'rm *~' an alias.
/Johan
attached mail follows:
Hi!
I'm using a database to store specific info from other web pages. basically wget downloads them, awk strips all the extras stuff and adds a some text to the variables. basically the line is this:
$firma=ETL; $ost=112.50; $myyk=113.25; $mutuus=113.50;
if I write it into a php3 file, it work normally, but when I include the line from another page (from a html file, if it matters), it just show's it on screen. I there a way to to not show it and use the lines as a variable. (mysql will then update the info based on those variables)
Any help will be appreciated.
Maniac
attached mail follows:
Hello, please do you know some editor for Linux with PHP3 enlaightment? Thanks George
attached mail follows:
> Hello, please do you know some editor for Linux with PHP3 enlaightment? > Thanks George
Learn emacs. It pays off in the end.
Cheers,
Soeren Staun-Pedersen - Staun
SunSITE.auc.dk
------
"The internet is full, beat it"
- Me.
attached mail follows:
> Hello, please do you know some editor for Linux with PHP3 enlaightment?
about every month this question is asked ... check out mail arhives
BlueFish ( linux ) at bluefish.linuxbox.com, has experimental highlighting in the latest devel version
Marius
-- Your mouse has moved. In order for the change to take effect, Windows must be restarted. Reboot now ? [OK] http://www.linuxstart.com/~marius
attached mail follows:
On Wed, 9 Feb 2000, [windows-1250] Schindler Jiøí wrote:
> Hello, please do you know some editor for Linux with PHP3 enlaightment? > Thanks George
Nedit does PHP highlighting if you apply a *pats-file. Look at http://nedit.org
CU
Michael
attached mail follows:
On Wed, Feb 09, 2000 at 09:09:22AM +0100, Schindler Jiøí mentioned: > Hello, please do you know some editor for Linux with PHP3 enlaightment? > Thanks George
Vim (www.vim.org) has excellent support, once you put "syntax on" in it's ~/.vimrc (though it things .lib and .inc files are COBOL ;) The file "filetype.vim" can be changed to specific whatever file extensions you consider to be PHP.
Kate
- application/pgp-signature attachment: stored
attached mail follows:
On Wed, 9 Feb 2000, John P . Looney wrote:
> On Wed, Feb 09, 2000 at 09:09:22AM +0100, Schindler Jiøí mentioned: > > Hello, please do you know some editor for Linux with PHP3 > enlaightment? > > Thanks George > > Vim (www.vim.org) has excellent support, once you put "syntax on" in > it's > ~/.vimrc (though it things .lib and .inc files are COBOL ;) The file > "filetype.vim" can be changed to specific whatever file extensions you > consider to be PHP.
Yeah, just don't copy or link the .vim file to other filetypes such as phtml.vim, it wont work - you need to alter th filetypes configuration file instead (really easy).
James.
attached mail follows:
emacs in c++ mode works great
At 09:09 AM 2/9/2000 +0100, you wrote:
>Hello, please do you know some editor for Linux with PHP3 enlaightment?
>Thanks George
>
>--
>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,
The MSSQL code in php is only available in PHP4, and I think you are using php3. What you can do is use an ODBC interface, like iODBC or unixodbc (see their respective .org domains for more info). Those interfaces can then be used to access ODBC compatible platforms using products like ODBC-ODBC bridge (www.easysoft.com) or Openlink's software (www.openlink.com). There is also an xml based ODBC product available which is opensource, but I haven't tested that one (yet). If you have further questions, search the mailinglists from www.php.net for ODBC , lots has been said on the subject.
goodluck,
Maarten Stolte &Samhoud NetVenture
-----Original Message-----
From: Franck Martin [mailto:Franck
sopac.org.fj]
Sent: Tuesday, February 08, 2000 11:50 PM
To: 'php3
lists.php.net'
Subject: [PHP3] PHP on Linux: How to connect to MS-SQL 7.0 ?
Sorry for such trivia...
I'm starting to use PHP on a linux box and I'm trying to convert my asp page to PHP on Linux. I have many ASP pages that connect to MS-SQL 7.0. I do not know how to do that in PHP on Linux. The manual makes only reference to the commands not how to install and some sample code. There is a reference to a php_mssql.so but I cannot find it. There is also a reference to an "interface file", but no information on it...
Please help.
Thanks.
Franck Martin
Network and Database Development Officer
SOPAC South Pacific Applied Geoscience Commission
Fiji
E-mail: franck
sopac.org.fj <mailto:franck
sopac.org.fj>
Web site: www.sopac.org.fj <http://www.sopac.org.fj>
-- 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:
Morning! (well, at least for me it is...)
>The MSSQL code in php is only available in PHP4, and I think you are using >php3.
Could you clarify that? It makes it sound like PHP3 doesn't have any MSSQL calls, which it does. They only really work in you're running PHP3 on an NT box, but they do work. 8)
>What you can do is use an ODBC interface, like iODBC or unixodbc (see their >respective .org domains for more info). >Those interfaces can then be used to access ODBC compatible platforms using >products like ODBC-ODBC bridge (www.easysoft.com) or Openlink's software >(www.openlink.com). >There is also an xml based ODBC product available which is opensource, but I >haven't tested that one (yet). >If you have further questions, search the mailinglists from www.php.net for >ODBC , lots has been said on the subject.
Has anyone used the xml based ODBC product? I've also heard about it but haven't had the chance to play with it. If there's someone out there who can give it a little "review" in terms of ease of use, power under the hood, etc... that would be pretty damn cool.
Salute! - Erik
attached mail follows:
ewps.. thanks for the correction on the php3 part. The xml calls could/should (?) be integrated into php asap it seems..they would make it even better then now. The calls would/should resemble the ones which work with the mssql function on NT as i just learnt ;)
Maarten
-----Original Message-----
From: Erik Mathy [mailto:erik
butlerandco.com]
Sent: Wednesday, February 09, 2000 3:49 PM
To: php3
lists.php.net
Subject: Re: [PHP3] PHP on Linux: How to connect to MS-SQL 7.0 ?
Morning! (well, at least for me it is...)
>The MSSQL code in php is only available in PHP4, and I think you are using >php3.
Could you clarify that? It makes it sound like PHP3 doesn't have any MSSQL calls, which it does. They only really work in you're running PHP3 on an NT box, but they do work. 8)
>What you can do is use an ODBC interface, like iODBC or unixodbc (see their >respective .org domains for more info). >Those interfaces can then be used to access ODBC compatible platforms using >products like ODBC-ODBC bridge (www.easysoft.com) or Openlink's software >(www.openlink.com). >There is also an xml based ODBC product available which is opensource, but I >haven't tested that one (yet). >If you have further questions, search the mailinglists from www.php.net for >ODBC , lots has been said on the subject.
Has anyone used the xml based ODBC product? I've also heard about it but haven't had the chance to play with it. If there's someone out there who can give it a little "review" in terms of ease of use, power under the hood, etc... that would be pretty damn cool.
Salute! - Erik
-- 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:
ODBC will work fine :) I've laid out the architecture of a Multi-tier connection for Access a few times on the list, but SQLServer is even simpler:
Linux with Openlink driver ------> MS box with Openlink broker -----> Openlink SqlServer Agent.
There is a HOWTO available on compling PHP/Apache with ODBC support at: www.iodbc.org
And a correction; Openlink's site is: www.openlinksw.com
Best regards, Andrew ---------------------------------------------------- Andrew Hill Technical Support Consultant OpenLink Software http://www.openlinksw.com Universal Database Connectivity Technology Providers
> -----Original Message-----
> From: Erik Mathy [mailto:erik
butlerandco.com]
> Sent: Wednesday, February 09, 2000 9:49 AM
> To: php3
lists.php.net
> Subject: Re: [PHP3] PHP on Linux: How to connect to MS-SQL 7.0 ?
>
>
> Morning! (well, at least for me it is...)
>
> >The MSSQL code in php is only available in PHP4, and I think you
> are using
> >php3.
>
>
> Could you clarify that? It makes it sound like PHP3 doesn't have any MSSQL
> calls, which it does. They only really work in you're running
> PHP3 on an NT
> box, but they do work. 8)
>
> >What you can do is use an ODBC interface, like iODBC or unixodbc
> (see their
> >respective .org domains for more info).
> >Those interfaces can then be used to access ODBC compatible
> platforms using
> >products like ODBC-ODBC bridge (www.easysoft.com) or Openlink's software
> >(www.openlink.com).
> >There is also an xml based ODBC product available which is
> opensource, but
> I
> >haven't tested that one (yet).
> >If you have further questions, search the mailinglists from
> www.php.net for
> >ODBC , lots has been said on the subject.
>
>
> Has anyone used the xml based ODBC product? I've also heard about it but
> haven't had the chance to play with it. If there's someone out
> there who can
> give it a little "review" in terms of ease of use, power under the hood,
> etc... that would be pretty damn cool.
>
> Salute!
> - Erik
>
>
>
> --
> 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 have problem with the mail function...it says 'Parse error'...i don't know y...
at first i thought it's becoz i didn't put in the path...or correct sendmail path in my php.ini... but...when i check phpinfo()...it's correct!
here is the line of code that got the Parse error msg:
$mailsuccess = mail($u_email,$mailsubject,$mailbody);
pls help....
i am using PHP4B3 + Apache 1.3.9 + Suse 6.3
thanxx
Dave
attached mail follows:
Hi:
I've installed PHP 3 on a Win 98 machine running PWS. Once I did that, I was able to get a short TEST.PHP3 script to run, and if I name it TEST.PHTM3 it also runs, but if I name it TEST.PHP it just comes straight across (no PHP processing). I ran the [php_iis_reg.inf] file and used RegEdit to verify that all 3 extensions (PHP, PHP3, PHTM3) are registered, but PHP files aren't processing. Any idea what could be causing this? When I look at the files in explorer, all three are identified as PHP Script files, and when I double-click them, they all open a DOS window & display the processed output. I also tried installing the 4 beta and got the same results.
Also, I found that I had to turn on the Execute option within Web Sharing in order to get PHP running (instead of just turning on Scripts like I had to for ASP files). Is that the correct behavior?
Thanks, -- Greg
attached mail follows:
Thanks Rasmus, but I need some more explanations.
> > The directory in which I try to create this directory is owned by uid 1764 (my > > user) => PHP allow the script to create a directory owned by uid 99 (nobody). > > but _WHY_ PHP doesn't allow to create a file in a directory that is owned by > > the user under which the httpd runs (and that was created by itself) ??? > > Because a process can't create a file that is owned by a different user > than it itself is running as. Yes, I agree but I don't want the file to be owned by a different user ! I just want nobody (who runs httpd) to be able to create a file in a directory owned by nobody (itself) !!! I don't understand why a file or directory can be created by 'nobody' in the directory owned by 'someuser' but a file cannot be created by 'nobody' in a directory owned by 'nobody' w/ permissions set to 777 ?
Excuse me for my insistence but I would like to understand the reason !!
I suppose that the control is made upon the owner of the script which tries to create a file but it also could be done upon the owner uid of the directory (which in that case is the same that the uid of the running process).
>Your httpd process is running as user nobody and thus all files are owned by user nobody. That's what I want, but in SAFE mode, PHP only allows files (owned by user nobody) to be created in a directory owned by the same user that the owner of the script but not in a directory owned by the user nobody.
> There is no workaround other than turning off safe-mode. Safe-mode restricts you in > many annoying ways, this is just one of them. SAFE mode is turned on on many ISP sites and most of users don't have access to the configuration.
Thanks anyway for your time. Marc.
PS: please send a copy of your replies by email, I just registered on the digest mailing list.
attached mail follows:
> > Because a process can't create a file that is owned by a different user > > than it itself is running as. > Yes, I agree but I don't want the file to be owned by a different user ! > I just want nobody (who runs httpd) to be able to create a file in a directory owned by nobody > (itself) !!! > I don't understand why a file or directory can be created by 'nobody' in the directory owned by > 'someuser' but a file cannot be created by 'nobody' in a directory owned by 'nobody' w/ permissions > set to 777 ? > > Excuse me for my insistence but I would like to understand the reason !!
Because safe-mode and unix-level permissions don't have very much in common. If the script that is creating the directory is owned by 'nobody' then this script can indeed create another directory owned by nobody in a directory owned by nobody. Otherwise it cannot.
> I suppose that the control is made upon the owner of the script which tries to create a file but it > also could be done upon the owner uid of the directory (which in that case is the same that the uid > of the running process).
It could, but that isn't how it currently works unless you use the open-basedir feature.
-Rasmus
attached mail follows:
Hi there! I'm using a Linux machine with apache 1.3.9, php3 and MySQL installed, and each php and MySQL are running well, but if I run a php test script to test the MySQL connection via PHP I get the following error message:
Fatal error: Call to unsupported or undefined function mysql_connect() in /home/httpd/php_try.php3 on line 6
I'm really lost! Any suggestions?
Michael
attached mail follows:
> Hi there! > I'm using a Linux machine with apache 1.3.9, php3 and MySQL installed, > and each php and MySQL are running well, but if I run a php > test script > to test the MySQL connection via PHP I get the following > error message: > > Fatal error: Call to unsupported or undefined function mysql_connect() > in /home/httpd/php_try.php3 on line 6
PHP must be compiled with MySQL-support (--with-mysql when compiling) in order to use MySQL-functions. You can check what your current compilation supports by calling phpinfo() in your script.
// Peter
attached mail follows:
you have to enable the mysl functions in php3.ini I think...
Fernando Caamaño
Soporte técnico Conecta97
Travesera de Gracia 342-344
tel: 934465028
fax: 934465029
www.conecta-t.com
----- Mensaje original -----
De: Peter Johansson (BCS) <Peter.Johansson
bcs.ericsson.se>
Para: 'michael graute' <graute
nhs.com>; <php3
lists.php.net>
Enviado: miércoles, 09 de febrero de 2000 11:54
Asunto: RE: [PHP3] PHP and MySQL
> Hi there! > I'm using a Linux machine with apache 1.3.9, php3 and MySQL installed, > and each php and MySQL are running well, but if I run a php > test script > to test the MySQL connection via PHP I get the following > error message: > > Fatal error: Call to unsupported or undefined function mysql_connect() > in /home/httpd/php_try.php3 on line 6
PHP must be compiled with MySQL-support (--with-mysql when compiling) in order to use MySQL-functions. You can check what your current compilation supports by calling phpinfo() in your script.
// Peter
-- 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:
Have you compiled PHP with MySQL support? It's not enabled out of the box...
Best regards, Martin Edelius
Spirex Digital Design
--------------------------------
www: http://www.spirex.se
Mail: martin.edelius
spirex.se
Phone: +46-31-514651, 0708-113711
Fax: +46-31-514331
Aröds Industriväg 3c
S-422 43 Hisings Backa
--------------------------------
If I haven't got back to you or done what I'm supposed to, let me know again
as I have too much to do for my own good...
----- Original Message -----
From: "Peter Johansson (BCS)" <Peter.Johansson
bcs.ericsson.se>
To: "'michael graute'" <graute
nhs.com>; <php3
lists.php.net>
Sent: Wednesday, February 09, 2000 11:54 AM
Subject: RE: [PHP3] PHP and MySQL
> > Hi there!
> > I'm using a Linux machine with apache 1.3.9, php3 and MySQL installed,
> > and each php and MySQL are running well, but if I run a php
> > test script
> > to test the MySQL connection via PHP I get the following
> > error message:
> >
> > Fatal error: Call to unsupported or undefined function mysql_connect()
> > in /home/httpd/php_try.php3 on line 6
>
> PHP must be compiled with MySQL-support (--with-mysql when compiling) in
order to use MySQL-functions. You can check what your current compilation
supports by calling phpinfo() in your script.
>
> // Peter
>
>
> --
> 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:
maybe posting the script (or part of it) would allow someone to pick out any syntax errors ...
Brian
----- Original Message -----
From: "michael graute" <graute
nhs.com>
To: <php3
lists.php.net>
Sent: Wednesday, February 09, 2000 5:50 AM
Subject: [PHP3] PHP and MySQL
> Hi there!
> I'm using a Linux machine with apache 1.3.9, php3 and MySQL installed,
> and each php and MySQL are running well, but if I run a php test script
> to test the MySQL connection via PHP I get the following error message:
>
> Fatal error: Call to unsupported or undefined function mysql_connect()
> in /home/httpd/php_try.php3 on line 6
>
> I'm really lost! Any suggestions?
>
> Michael
>
>
> --
> 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:
Soubds like you didn't compile with the "--with-mysql" flag.
-Chris
> ----- Original Message -----
> From: "michael graute" <graute
nhs.com>
> To: <php3
lists.php.net>
> Sent: Wednesday, February 09, 2000 5:50 AM
> Subject: [PHP3] PHP and MySQL
>
>
> > Hi there!
> > I'm using a Linux machine with apache 1.3.9, php3 and MySQL installed,
> > and each php and MySQL are running well, but if I run a php test script
> > to test the MySQL connection via PHP I get the following error message:
> >
> > Fatal error: Call to unsupported or undefined function mysql_connect()
> > in /home/httpd/php_try.php3 on line 6
> >
> > I'm really lost! Any suggestions?
> >
> > Michael
> >
> >
> > --
> > 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 have the same problem. How do I recompile on win98?
Rossi Designs
(904) 226-8979
P.O. Box 1084, Holly Hill, Florida 32125-1084
http://rossidesigns.net
----- Original Message -----
From: Peter Johansson (BCS) <Peter.Johansson
bcs.ericsson.se>
To: 'michael graute' <graute
nhs.com>; <php3
lists.php.net>
Sent: Wednesday, February 09, 2000 5:54 AM
Subject: RE: [PHP3] PHP and MySQL
| > Fatal error: Call to unsupported or undefined function mysql_connect() | > in /home/httpd/php_try.php3 on line 6 | | PHP must be compiled with MySQL-support (--with-mysql when compiling) in order to use MySQL-functions. You can check what your current compilation supports by calling phpinfo() in your script. | | // Peter |
attached mail follows:
michael graute wrote:
> Hi there!
> I'm using a Linux machine with apache 1.3.9, php3 and MySQL installed,
> and each php and MySQL are running well, but if I run a php test script
> to test the MySQL connection via PHP I get the following error message:
>
> Fatal error: Call to unsupported or undefined function mysql_connect()
> in /home/httpd/php_try.php3 on line 6
>
> I'm really lost! Any suggestions?
>
> Michael
>
> --
> 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
**********************************************************************************************
For PHP, I like Professional PHP Programming, Wrox Press, ISBN 1-861002-96-3. Seems well-written, especially for a newbie (me), though I'm only through 1/4 of
the book. Also, they're using a combination of PHP, Apache and MySQL throughout
the book, which is the same setup I'm using.
For MySQL (newbie here too), I too have the O'Reilly book which I like (other than the book's spine falling apart after too short a time). Another one I've been fingering but haven't bought yet is MySQL, by Paul Dubois, just out in the past month or two. The author is one of the writers of the MySQL manual, and a few minutes browsing through it gave me a veryphp good impression. It too delves into PHP, Apache, etc.
Lotsa luck,
Curt
attached mail follows:
Kevin,
I personnally always put include files outside the document root for security.
What i dont understand is what benefit would you gain by having them inside the doc root?
mn
Mark Nold
markn
alverstone.com.au
Systems Consultant
"Change is inevitable - except from vending machines"
>>> kev <kevin.porter
fast.no> 02/08 8:26 pm >>>
Hi,
I found this thread interesting, as I'd been wondering about it myself. I'd like to keep my .inc files in the apache doc tree. I've tried the <Location> and <FILE> directives that appeared in this thread but neither of them worked for me. Any suggestions?
- Kev
Lars Torben Wilson wrote:
> Ben Munoz writes:
> > A question about security risks with include files with extension ".inc":
> >
> > If you include your database connection information including username and
> > password in an .inc file under the document root, aren't they visible as
> > plain text if a user guesses the URL? Example
> > ("http://www.foo.com/includes/connect.inc");
> >
> > I don't remember reading about this in any PHP books, though they often use
> > this extension in their example code. Experienced PHP users, how do you use
> > <?includes?>
> >
> > 1. Do you give them a .php3 extension?
> > 2. or put them outside the htdocs directory?
> > 3. Or configure apache to recognize .inc files as php scripts?
> >
> > thanks,
> > Ben
>
> For myself, I just put them outside the docuement root. In situations
> where this is impracticable, you can use something like
>
> <Location *.inc>
> Deny from all
> </Location>
>
> PHP scripts will still be able to load the file, but they will not be
> served to users directly and will return a 'Forbidden' message. I
> haven't really extensively looked into this, so YMMV. It works for me
> in virtual hosts.
>
> Torben
>
> --
> +----------------------------------------------------------------+
> |Torben Wilson <torben
php.net> Netmill iTech|
> |http://www.coastnet.com/~torben http://www.netmill.fi|
> |Ph: 1 250 383-9735 torben
netmill.fi|
> +----------------------------------------------------------------+
>
> --
> 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:
Depending on which web server you use.... if you use apache you could put a .htaccess with a filesmatch (i think) for *.pdf and set it to "require group PDFUSERS" or something similar.
mn
Mark Nold
markn
alverstone.com.au
Systems Consultant
"Change is inevitable - except from vending machines"
>>> <rasmus
php.net> 02/08 2:45 pm >>>
> I would love to use php to password protect *.pdf files.
>
> Is it possible?
If you wrap them in a simple PHP layer, sure. One that spits out the auth headers and then serves up the pdf file through a simple Header() call to set the PDF content-type followed ReadFile() to actually fetch the file and send it out. The PDF files should be placed outside of your web tree.
-Rasmus
attached mail follows:
Kevin,
I tend to do something like
$searchterm = strtoupper($searchterm);
$qry = " select * from news where upper(title) like '%$searchterm%' or upper(story) like '%$searchterm%' ";
Since oracle likes are case sensitive. You may also want to escape characters such as quotes, single quotes etc.
mn
Mark Nold
markn
alverstone.com.au
Systems Consultant
"Change is inevitable - except from vending machines"
>>> kev <kevin.porter
fast.no> 02/08 9:59 pm >>>
Hi,
I need to implement some sort of searching of the records in an Oracle database. Both the user-inputs-terms-into-searchbox type, and also some under-the-cover searches to show relevant stuff when a user goes into a certain section on a website. The kind of things I'll need to search will be varchar2 fields for URLs, news headlines, etc, and also LONG fields for news stories, featured articles, etc. Is there any software out there that will help with this, or do I need to write it myself? If I have to write the code myself, can I do anything other than simple select statements like the following (assuming searching our news articles) - "select * from news where title like '%$searchterm%' or story like '%$searchterm%'".
Any advice anyone can give me on this subject would be much appreciated.
thanks, - Kev
attached mail follows:
Wouldnt it be easier to use the basename() and dirname() functions, it would also be more portable as the windows version of PHP doesnt support PCRE's (i think)?
mn
Mark Nold
markn
alverstone.com.au
Systems Consultant
"Change is inevitable - except from vending machines"
>>> "Shaun Thomas" <shaun_thomas
inlet.com> 02/08 10:14 pm >>>
> give the name of the current page, but I am still clueless on how
> to strip it of a preceding / and the trailing file extention. Any
> ideas on how to do this?
This is exceedingly easy. People have given you str_replace solutions, but they don't seem to have actually read your question. $PHP_SELF and $SCRIPT_NAME both return the full path to a page, so if you want to take all of that off, you'll need the help of regular expressions. Try this:
$myFile = $GLOBALS["SCRIPT_NAME"]; $myFile = preg_replace("|^.*/(.*)\\.php3?$|", "\\1.jpg", $myFile);
The part "^.*/" strips off all of the directories. The part "(.*)\\.php3?" is matched at the end of the string with the 3 being optional just in case you use that instead of .php3 as your file extension. As you can see, I then append a .jpg extension.
See? Easy.
-- Shaun Thomas Programmer InternetWorks McLeodUSA 319.790.5037 / fax 319.369.3089
attached mail follows:
Hi
Only two questions:
Is there something like phpAdmin in Win? I mean phpAdmin is very good if you want interact with MySql on Linux, but i d like to know if there is something that run on NT or at least on Win 98 and intereract with Access.
Are there dutch companies that use PHP ? If someone can send me some list about it I'll be grateful
Thanks in advance for your answers
Roldano De Persio
persius
libero.it
attached mail follows:
Hi,
For the Mysql admin's on NT, there are some downloads on www.mysql.com, but none have mysqladmin's possibilities.. Try them for yourself though. We use PHP, we are &Samhoud NetVenture, www.samhoud.nl, and have used it on our website and our Intranet. I know one there are some others, but I don't know their names.
regards,
Maarten Stolte
-----Original Message-----
From: Roldano De Persio [mailto:persius
libero.it]
Sent: Wednesday, February 09, 2000 12:47 PM
To: php3
lists.php.net
Subject: [PHP3] phpAdmin on NT? & Dutch company
Hi
Only two questions:
Is there something like phpAdmin in Win? I mean phpAdmin is very good if you want interact with MySql on Linux, but i d like to know if there is something that run on NT or at least on Win 98 and intereract with Access.
Are there dutch companies that use PHP ? If someone can send me some list about it I'll be grateful
Thanks in advance for your answers
Roldano De Persio
persius
libero.it
-- 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:
Hiya
Try mysqladmin in html url is somewhere on www.php.net/links.php3
Greetz,
Wico
At 13:51 9-2-00 +0100, Maarten Stolte wrote:
>Hi,
>
>For the Mysql admin's on NT, there are some downloads on www.mysql.com, but
>none have mysqladmin's possibilities..
>Try them for yourself though.
>We use PHP, we are &Samhoud NetVenture, www.samhoud.nl, and have used it on
>our website and our Intranet.
>I know one there are some others, but I don't know their names.
>
>regards,
>
>Maarten Stolte
>
>-----Original Message-----
>From: Roldano De Persio [mailto:persius
libero.it]
>Sent: Wednesday, February 09, 2000 12:47 PM
>To: php3
lists.php.net
>Subject: [PHP3] phpAdmin on NT? & Dutch company
>
>
>Hi
>
>Only two questions:
>
>Is there something like phpAdmin in Win?
>I mean phpAdmin is very good if you want interact with MySql on Linux,
>but i d like to know if there is something that run on NT or at least on Win
>98
>and intereract with Access.
>
>Are there dutch companies that use PHP ?
>If someone can send me some list about it
>I'll be grateful
>
>Thanks in advance for your answers
>
>
>Roldano De Persio
>persius
libero.it
>
>
>
>
>--
>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:
Hello,
>M>> Warning: 2 is not a MySQL link index in sendcard.php3 on line 13 > >This error means that either you didn't succeed in connecting to MySQL >(mysql_connect failed) or you supplied as a link ID something that >isn't. Your case seems to be the first one.
Then I'm second :-) (probably not since this message was posted hours ago...) I also got this error, first time today...anything to do with today's date ? :-)
Anyway, I'm running Win32 and if I try a simple request in DOS mode, it works...looks like the connect fails via Apache or something...
Thomas.
attached mail follows:
Sir,
I have some doubts regarding php3. pl clarify them.
1) Which is the default scripting language for php3
2) Can I use VBScript with php3
3) I have enabled the <% %> asp tags in php.ini file, i'm able to print the variable values and execute client side scripting, but I am unable to use the object like request.form or request.cookie. Is this feature available with php.
can u tell me more about the scripting languages that can be used with php other than cgi and the links of some sites which will help me to use some scripting language with php3.
------------------ thanks and bye sumit.
REPLY TO: sumitk
sigmaonline.net
- image/gif attachment: stored
attached mail follows:
Hello Sumit Kashyap,
Wednesday, February 09, 2000, 1:58:54 PM, you wrote:
SK> Sir,
SK> I have some doubts regarding php3. pl clarify them.
SK> 1) Which is the default scripting language for php3
SK> 2) Can I use VBScript with php3
SK> 3) I have enabled the <% %> asp tags in php.ini file, i'm able to print the variable values and execute client side scripting, but I am unable to use the object like request.form or
SK> request.cookie. Is this feature available with php.
SK> can u tell me more about the scripting languages that can be used with php other than cgi and the links of some sites which will help me to use some scripting language with php3.
SK> ------------------ thanks and bye sumit.
SK> REPLY TO: sumitk
sigmaonline.net
php is the language by itself :) So look in the http://www.php.net u can find everything there.
***************************************************************************
Linux is like living in a teepee.
No Windows, no Gates, Apache in house.
- Usenet signature
***************************************************************************
Best regards, wishes and hopes,
Michael Orlov mailto : michael
mail.snunit.k12.il
***************************************************************************
====================================== *| Snunit Center for the Advance of |* *| Web Based Learning |* *| Hebrew University of Jerusalem, |* *| Israel |* *| |* *| tel: (972)-2-6586509 |* *| |* ======================================
attached mail follows:
>It's not supposed to matter, but try a full path to --with-apache... > >There's some combination where it does matter, for some reason.
Nope, that didn't work either. Same exact error message. Any other ideas?
Tim
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Tim Gustafson - tim
netspaces.net - www.netspaces.net
(631)369-7177 Phone Fax (631)369-6692
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Share your knowledge - it's a way to achieve immortality.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
attached mail follows:
On Wed, Feb 09, 2000 at 07:20:39PM +1100, Mark Nold wrote: > > Rudi, > > Does Oracle work by itself? > > I have had no problems with RH 6.1 & Ora 8.0.5 (plus two lots > of patches, one for general issues and one for Redhat). But have > never tried 8.1.5.
No problems at all, I have even have the oracle_auth and oracle_owa apache modules running fine. It is just the php that is not behaving.
> I have compiled php3.0.14 with the following
>
> [root
jafar rudi]# autoconf
> [root
jafar rudi]# CFLAGS=-fPIC ./configure --prefix=/usr
> --with-apxs=/usr/sbin/apxs --with-config-file-path=/etc/httpd
> --enable-safe-mode --with-exec-dir=/usr/bin --with-system-regex
> --disable-debug --with-zlib --enable-debugger --enable-magic-quotes
> --enable-track-vars --with-oracle
>
> and are getting core dumps when apache starts.
>
> Here is the stack trace from the failure:
>
> Core was generated by `/usr/sbin/httpd -X'.
> #0 0x4092d6a8 in pthread_reap_children () at manager.c:474
> #1 0x400f43fa in _IO_new_file_close_it (fp=0x80c3198) at fileops.c:136
> #2 0x400f027d in _IO_new_fclose (fp=0x80c3198) at iofclose.c:50
> #3 0x4034a46f in php3_init_config () from /usr/lib/apache/libphp3.so
> #4 0x4033fe77 in php3_config_ini_startup () from /usr/lib/apache/libphp3.so
> #5 0x40340992 in php3_module_startup () from /usr/lib/apache/libphp3.so
> #6 0x4033e4da in php3_create_dir () from /usr/lib/apache/libphp3.so
> #7 0x80555b4 in ap_single_module_configure ()
> #8 0x80502ed in ap_get_server_built ()
> #9 0x80544f4 in ap_clear_module_list ()
> #10 0x8054aec in ap_handle_command ()
> #11 0x8054b38 in ap_srm_command_loop ()
> #12 0x8054ea7 in ap_process_resource_config ()
> #13 0x8055524 in ap_read_config ()
> #14 0x805c687 in ap_child_terminate ()
> #15 0x805cd4f in main ()
> #16 0x400b71eb in __libc_start_main (main=0x805cad0 <main>, argc=2,
> argv=0xbffffce4, init=0x804f75c <_init>, fini=0x807ce5c <_fini>,
> rtld_fini=0x4000a610 <_dl_fini>, stack_end=0xbffffcdc)
> at ../sysdeps/generic/libc-start.c:90
>
> The machine setup is:
>
> apache 1.3.11
> mod_ssl 2.5.0
> redhat 6.1
> oracle 8.1.5.0.2
>
> Environment variables set for Oracle when starting httpd
>
> LD_LIBRARY_PATH=/u01/app/oracle/product/8.1.5/lib
> ORACLE_HOME=/u01/app/oracle/product/8.1.5
>
> Any pointers on what the problem is?
>
> TIA
>
> Rudi
>
> --
> Rudi Heitbaum Ph: +61-3-9822 1216
> Managing Director Fax: +61-3-9822 1728
> DARX Consulting Pty Ltd Mobile: 04-1122 6244
> mailto:rudi
darx.com http://www.darx.com/
>
> PGP public key: http://www.darx.com/pgp/
Regards
Rudi
-- Rudi Heitbaum Ph: +61-3-9822 1216 Managing Director Fax: +61-3-9822 1728 DARX Consulting Pty Ltd Mobile: 04-1122 6244 mailto:rudidarx.com http://www.darx.com/
PGP public key: http://www.darx.com/pgp/
attached mail follows:
Hi, I want to add a web interface to my linux ib4.0 database. I tried to compile PHP3.0.14 as an Apache module using '--with-interbase --with-apache=...' option. This was done correctly, but now i am unable to compile the Apache itself. "./configure --prefix=... --activate-module=src/modules/php3/libphp3.a" fails telling me that some gds libraries couldn't be found. Maybe it's because i'm using a little bit "outdated" version of Interbase.
If someone uses PHP+Interbase solution, please give me an advice.
Thank You ..
Jan Rychtar
hojan
sin.cvut.cz
attached mail follows:
On 9.2.00 6:43 am, Ron Chmara at ron
Opus1.COM was inspired to say:
>John L Grantham wrote: >> Some customers using the site have noticed that their orders have been >> getting submitted repeatedly--twice (19 seconds apart) at a time, then >> again every four days, when it again submits the order twice (19 seconds >> apart). > >Ah, yes. Been there, got the T-shirt.. Gotta love surfers. There's usualy a >very *mundane* set of reasons for this.... mostly having to do with the way >web-app users think. > >Surf like a *user*, not a programmer. Go forward. hit "back" on your browser, >for no good reason.
That's what I thought at first, too--but I found the problem, and it blew my mind. It's proxies (as you also hinted at). The whole URL apparently got stored via HTTP-GET (i.e. query string), and the "order" was getting resubmitted from time to time by the proxy checking to see if the page was still there. That explains the weird regularity of the resubmitted orders (the timeframe is different for each users, but the time interval for each user is nearly exactly the same each time--usually a matter of days).
I've already worked around it by switching to POST (which I should have had from the beginning--silly me) and cycling through the HTTP_POST_VARS by echoing INPUT TYPE="HIDDEN" fields to pass the data on to succeeding pages. Now everything seems to work. As an added insurance policy I've added a random element to the order number, and assigned the number earlier, to ensure that the orders are unique. (Until now it looked as if the orders were all different, which I only spotted because of the timestamps.)
So the lesson of this? Don't use GET for order forms...aaarrrgggh...
On a side note, I'd like to add a shopping-cart like function to the site I'm working on, but would prefer to do it without a database (for hosting reasons, and also I've never used it, so I'm gunshy of trying something new on an important project). Would anyone recommend cookies? Or some other way? Obviously I'd need to store the shopping cart data somewhere...
Thanks,
John
---John Grantham | Freelance Graphic and Web Designer | Dipl.-Designer (FH) | Homepage: http://surf.to/multimedia | MacLinux: http://www.maclinux.de/
attached mail follows:
What are some good php and/or mysql books? I currently own "Core PHP Programming" which I think is a very nice book both for learning PHP and for reference. I also own the msql/mysql orielly (the-little-birds-which-i-don't-know-the-names-of book), which has been a nice reference so far. Any other recommendations?
Chris Fankhauser Southwest Data Systems
attached mail follows:
At 7:28 AM -0600 2000-02-09, Chris Fankhauser wrote: >What are some good php and/or mysql books? I currently own "Core PHP >Programming" which I think is a very nice book both for learning PHP and for >reference. I also own the msql/mysql orielly >(the-little-birds-which-i-don't-know-the-names-of book), which has been a >nice reference so far. Any other recommendations?
The O'Reilly book has kingfishers on the cover. See the colophon page near the back, right after the index.
-- Paul DuBois, paulsnake.net
attached mail follows:
Gosh I much preferred "the-little-birds-which-i-don't-know-the-names-of book" than the more rational and precise explanation. john m howitt +44 (0)7050 102 572
www.egolight.com Don't anthropomorphise computers; they don't like it!
----- Original Message -----
From: Paul DuBois <paul
snake.net>
To: Chris Fankhauser <chrisf
swdata.com>; <php3
lists.php.net>
Sent: Wednesday, February 09, 2000 1:46 PM
Subject: Re: [PHP3] Good PHP & MySQL books?
> At 7:28 AM -0600 2000-02-09, Chris Fankhauser wrote:
> >What are some good php and/or mysql books? I currently own "Core PHP
> >Programming" which I think is a very nice book both for learning PHP and
for
> >reference. I also own the msql/mysql orielly
> >(the-little-birds-which-i-don't-know-the-names-of book), which has been a
> >nice reference so far. Any other recommendations?
>
>
> The O'Reilly book has kingfishers on the cover. See the colophon page
> near the back, right after the index.
>
> --
> Paul DuBois, paul
snake.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:
Chris Fankhauser wrote:
> What are some good php and/or mysql books? I currently own "Core PHP
> Programming" which I think is a very nice book both for learning PHP and for
> reference. I also own the msql/mysql orielly
> (the-little-birds-which-i-don't-know-the-names-of book), which has been a
> nice reference so far. Any other recommendations?
>
> Chris Fankhauser
> Southwest Data Systems
>
> --
> 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
For PHP, I like Professional PHP Programming, Wrox Press, ISBN 1-861002-96-3. Seems well-written, especially for a newbie (me), though I'm only through 1/4 of
the book. Also, they're using a combination of PHP, Apache and MySQL throughout
the book, which is the same setup I'm using.
For MySQL (newbie here too), I too have the O'Reilly book which I like (other than the book's spine falling apart after too short a time). Another one I've been fingering but haven't bought yet is MySQL, by Paul Dubois, just out in the past month or two. The author is one of the writers of the MySQL manual, and a few minutes browsing through it gave me a very good impression. It too delves into PHP, Apache, etc.
Lotsa luck,
Curt
attached mail follows:
The answers should be Yes, No, No :)
Bob Lutz
Thomas Deliduka wrote:
> Sorry, newbie Question:
>
> Is PHP3 stable and does it run good on NT?
>
> Are there any things I should be concerned with?
>
> Will it conflict with FrontPage?
> --
>
> Thomas Deliduka
> IT Manager
> --------------------
> New Eve Media
> 5629 Westlake Drive
> Galloway, OH 43119-8498
> Phone: 614-870-3098
> Fax: 614-870-7486
> Mobile: 614-537-6445
>
> --
> 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 installed phpMyAdmin on NT recently and have not run into any problems so far. All I did was get the latest versions of PHP4, MySQL, and Apache working and then I copied phpMyAdmin into my webspace. When I pointed my browser at it it worked. No hassles.
phpMyAdmin is a pretty flat application in the sense that it doesn't call or invoke scripts within subdirectories so it doesn't have to deal too much with the issue of / versus \ when specifying paths. The only subdirectory is an image directory. The images appear to work fine which was puzzling because the code references images with a unix forward slash - or I'm missing something.
I did want to ask the question about what approach people use to create file references that work on NT and *nix.
I was thinking of defining an $OS variable in a configuration file and then changing its value when I move from my scripts from my NT box to my Unix box.
$OS = "nt";
Throughout my scripts, I would then check the $OS variable and set the file path accordingly:
if ($OS = "nt") { $path = "images\foobar.gif"; } else { $path = "images/foobar.gif"; }
echo "<img src=\"$path\">";
Is there a better way to create cross platform file references?
Regards, Paul Meagher
----- Original Message -----
From: Bob Lutz <rlutz
lutz-engr.com>
To: <php3
lists.php.net>
Sent: Wednesday, February 09, 2000 7:47 AM
Subject: Re: [PHP3] PHP on Win32
> The answers should be Yes, No, No :)
>
> Bob Lutz
>
> Thomas Deliduka wrote:
>
> > Sorry, newbie Question:
> >
> > Is PHP3 stable and does it run good on NT?
> >
> > Are there any things I should be concerned with?
> >
> > Will it conflict with FrontPage?
> > --
> >
> > Thomas Deliduka
> > IT Manager
> > --------------------
> > New Eve Media
> > 5629 Westlake Drive
> > Galloway, OH 43119-8498
> > Phone: 614-870-3098
> > Fax: 614-870-7486
> > Mobile: 614-537-6445
> >
> > --
> > 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:
>Is there a better way to create cross platform file references?
If you only care about unix and NT don't worry about it. NT is quite happy with '/' as a directory separator. Win95 and 08 on the other hand are not!
Cheers
-- Phil Driscoll Dial Solutions +44 (0)113 294 5112 http://www.dialsolutions.com http://www.dtonline.org
attached mail follows:
Has anyone used Phorum before?
I keep getting a:
Warning: Can't connect to MySQL server on (10049) in ./abstract.php3 on line 70 version: 3.0.8
when I go to the admin.php3 page. I have added the following code to abstract.php3 with the correct information (not show here) and, yes the account is activated as it works with other scripts.
$host = "url"; $user = "username"; $password = "pass"; $database = "dbname";
but I keep getting the above error..
- D
ps - I have tried the phorum mailing list but no one seems to be using it or it is down!
attached mail follows:
With 60 columns in your table, it sounds like you could normalize that data more efficiently. Having more tables with fewer columns and only grabbing the data you need to display (as opposed to SELECT *) should boost performance. I also agree with the comment re. indices. This could help a great deal.
Bob Lutz
Brian Smith wrote:
> BACKGROUND:
> I am a beginner at php3 and mysql, I have only been using it about 9
> months. I have just recently finished writing a site using php3 to access
> mysql. every page reads from and/or writes to a mysql database.
>
> HARDWARE:
> Apache/linux running on a Dual PIII-500 Raid 5 system with 18 GB total HD
> space 1 GB RAM. The site is the bigest site on the server which only
> houses 20 other sites. which are small.
>
> QUESTION:
> To get to the point, my site is slow loading. the database that I have
> itelf has about 2500 records which have about 60 fields. I have other
> relaional databases which have a few thousand reocrds each.
> My site seems fast in the morning, but by noon it gets slower and slower.
> So the question is why is my site getting slow sometimes? What obvious
> things could I have missed that will make my site slow.
>
> I noticed that i open a connection to the mysql database at the beginning
> of my script do I need to close it at the end? Is this messing things up
> on my server?
>
> The site get a few thousand unique users a day, and the search script is
> run alot. is there something I could be doing in my script that bogs the
> machine down? Are there processes that are getting left open?
>
> if I ramble forgive me.
>
> any help would be appreciated.
>
> THE SITE:
> http://www.itickets.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
attached mail follows:
I want to manipulate a certain text string so that only the first letters in each word is capitalized. What php commands should I look into to acomplish this?
Regards ------------ Dan Larsson
attached mail follows:
ucfirst(strtolower($string));
If this has lots of words then do an explode or split first.
Nick
----- Original Message -----
From: "Dan Larsson" <dl
tyfon.net>
To: "[PHP-Users-List] (E-mail)" <php3
lists.php.net>
Sent: Wednesday, February 09, 2000 3:00 PM
Subject: [PHP3] Manipulate test string
> I want to manipulate a certain text string so that only the first letters
in
> each word is capitalized.
> What php commands should I look into to acomplish this?
>
> Regards
> ------------
> Dan Larsson
>
>
>
> --
> 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:
Dan - there's a function in the manual which does precisely what you're asking for:
http://www.php.net/manual/function.ucwords.php3
I highly recommend bookmarking the online manual and using it when you need to know how to do something in php
jason
> I want to manipulate a certain text string so that only the first letters in > each word is capitalized. > What php commands should I look into to acomplish this? > > Regards > ------------ > Dan Larsson
attached mail follows:
Urrgg, I must be blind, I was looking one above.
Nick
----- Original Message -----
From: "Jason Brooke" <jason
qgl.org>
To: <dl
tyfon.net>; "[PHP-Users-List] (E-mail)" <php3
lists.php.net>
Sent: Wednesday, February 09, 2000 3:17 PM
Subject: Re: [PHP3] Manipulate test string
>
> Dan - there's a function in the manual which does precisely what you're
> asking for:
>
> http://www.php.net/manual/function.ucwords.php3
>
> I highly recommend bookmarking the online manual and using it when you
need
> to know how to do something in php
>
> http://www.php.net/manual
>
> jason
>
>
> > I want to manipulate a certain text string so that only the first
letters
> in
> > each word is capitalized.
> > What php commands should I look into to acomplish this?
> >
> > Regards
> > ------------
> > Dan Larsson
>
>
>
> --
> 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'm making my first mysql site and have a question about the best way to create my tables. The site is a business directory. I have two types of listings free and paid.
free list contains these fields category, subcategory, business_name, address, city, state, zip, phone
& paid list contains all of the above plus url, email, description
I intend to put the records on the page 10 at a time with all paid listings before the free listings. my two questions are:
1. would it be better to make a freelist table and a paidlist table, or a listing table and say an extrastuff table and then join them.
2. depending on how #1 is answered how would the limit clause be written?
Thanks Rossi Designs (904) 226-8979 P.O. Box 1084, Holly Hill, Florida 32125-1084 http://rossidesigns.net
attached mail follows:
> > thanks... > > A side note... > > but how can a user fake a post? > > -Brad > > saving the html to the hard disk and editing the form > anyway, I think this can be avoided somehow, but I dont > know for sure.... > anyone?
Faking posts is my specialty. Here at work, we've used PHP for a multi-tiered back-end, and in order to do so, some of our scripts have to do posts to other pages to get information back (provision accounts, do billing, etc.) If you read the HTTP 1.0 RFC, you can learn exactly how information must be passed. Here's a modified version of the function we use in order to fake posts:
function PostToHost($host, $path, $data_to_send, $port = 80, $authorization = "", $socks=FALSE) { if ($socks) { // This is a file we use to do an fsockopen from behind a firewall // to the outside world. include ("socksify_fsockopen.php3"); $fp = socksified_fsockopen($host, $port, &$err, &$errstr); } else $fp = fsockopen($host, $port);
$data_to_send = "xml=$data_to_send";
// Fix the blocking mode... it doesn't quite work right yet. set_socket_blocking($fp, TRUE); $length = strlen($data_to_send);
fwrite($fp, "POST $path HTTP/1.0\n"); if($authorization != "") { fwrite($fp, "Authorization: Basic " . base64_encode($authorization) . "\n"); }
fwrite($fp, "Host: $host\n"); fwrite($fp, "Content-type: application/x-www-form-urlencoded\n"); fwrite($fp, "Content-length: $length\n"); fwrite($fp, "Connection: close\n\n"); fwrite($fp, $data_to_send);
// Make a nice value for us to use to slurp up the results we get // back from the linkup file.
$results = ""; while(!feof($fp)) { $results .= fread($fp, 10000000); }
fclose($fp); return $results; }
Notice how this function can not only poke through a firewall, but it can talk to an authenticating server so long as you know the username. You could also use this function to continually poll username / password combinations so long as the server lets you.
Especially notice the $data_to_send variable. Right now, I'm just sending a variable called XML, but if I were to download a page from a site, I could engineer a version of this function that would post to the recieving page exactly what I wanted.
In case I haven't already gotten my point across: POSTS ARE EASY TO FAKE! The only real secure method for blocking this kind of faking is to make note of which scripts your pages submit to, and use the following apache directive (Here, I'm telling Apache to apply protection to all .php or .php3 pages.):
<Files ~ "\.php3?$"> <LIMIT POST> Order deny, allow allow from 255.255.255.255 # Or whatever your host IP is. </LIMIT> </Files>
Then you can check through $HTTP_POST_VARS for the value the last page should have submitted. In my example, I'd want: $HTTP_POST_VARS["xml"]
Hope this helps.
Shaun
-- Shaun Thomas Programmer InternetWorks McLeodUSA 319.790.5037 / fax 319.369.3089
attached mail follows:
I have Oracle tables set up in UNICODE which are being used to build multiple international sites in multiple languages. This works fine until we start to work with Japanese. I'm assuming the Oracle client will handle translation from Shift-JIS to UNICODE and back if I can set the right environmental variables at the right time. The tables are populated by PHP scripts which I'm reasonably convinced are doing their job properly but somewhere in the process, my data turns to garbage.
Can anyone give me a rundown of pitfalls and environmental variables I should set to pull off this operation?
currently I do this before the logon:
putenv("ORA_NLS32=/dbs900/product/8.0.5.0.1/ocommom/nls/admin/data"); putenv("NLS_LANG=JAPANESE_JAPAN.JA16SJIS"); putenv("LANGUAGE=JAPANESE");
Are there other variables I should be setting or perhaps a different time to set them?
Any clues would be graeatly appreciated. Thanks
Von A. Neel / BBK Studio / 616_447_1460 / 5242 Plainfield NE / Grand Rapids MI 49525-1047 / www.bbkstudio.com /
attached mail follows:
Well I don't know about the database, but just one suggestion. Have you set the codepage for the page and text you want to work with for the web browser, like: header("Content-language: ru"); header("Content-type: text/html; charset=ISO-8859-5");
Obviously you need to find out the codepage for Japanese.
But I guess this is not your problem as it sounds like you already use several other languages.
Oh just one more thing, I think Japenese is: iso-2022-jp So if that is correct you would do header("Content-language: jp"); header("Content-type: text/html; charset=ISO-2022-jp");
I think, you will have to check that.
Nick
----- Original Message -----
From: "Von A. Neel" <von
bbkstudio.com>
To: <php3
lists.php.net>
Sent: Wednesday, February 09, 2000 3:32 PM
Subject: [PHP3] php, oracle, unix, apache...blah...blah...blah
>
> I have Oracle tables set up in UNICODE which are being used to build
> multiple international sites in multiple languages. This works fine
> until we start to work with Japanese. I'm assuming the Oracle client
> will handle translation from Shift-JIS to UNICODE and back if I can
> set the right environmental variables at the right time. The tables
> are populated by PHP scripts which I'm reasonably convinced are doing
> their job properly but somewhere in the process, my data turns to
> garbage.
>
> Can anyone give me a rundown of pitfalls and environmental variables
> I should set to pull off this operation?
>
> currently I do this before the logon:
>
> putenv("ORA_NLS32=/dbs900/product/8.0.5.0.1/ocommom/nls/admin/data");
> putenv("NLS_LANG=JAPANESE_JAPAN.JA16SJIS");
> putenv("LANGUAGE=JAPANESE");
>
> Are there other variables I should be setting or perhaps a different
> time to set them?
>
> Any clues would be graeatly appreciated.
> Thanks
>
> Von A. Neel / BBK Studio / 616_447_1460 / 5242 Plainfield NE / Grand
> Rapids MI 49525-1047 / www.bbkstudio.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
>
attached mail follows:
Is there a web based email program in php3 someone could recommend or other?
T Cross
attached mail follows:
On Wed, Feb 09, 2000 at 10:25:34AM -0500, Tim Cross mentioned: > Is there a web based email program in php3 someone could > recommend or other?
http://www.horde.org/imp can be tryed out at https://ssl/horde.org
It's very good, though when you get a small configuration mistake, it can take days to work out what's gone wrong, as it doesn't have any sort of log when things aren't working.
Kate
attached mail follows:
Hi, I'm a newbie in PHP3. I'm looking for a PHP3 function that can do postings to newsgroup for me. Thanks for your help in advance.
- Andrew
attached mail follows:
AY>> Hi, I'm a newbie in PHP3. I'm looking for a PHP3 function that AY>> can do postings to newsgroup for me. Thanks for your help in AY>> advance.
You might want to look at http://www.vhconsultants.com/nnrp/nnrp.htm
-- Stanislav Malyshev staszend.com +972-3-6139665
attached mail follows:
This message was sent from Geocrawler.com by "Andy Krause" <krause
comkom.co.at>
Be sure to reply to that address.
Hi everyone, just wondering, why vars set by DEFINE(...) do not work in a sql-query. Can anyone tell me why?
e.g. DEFINE("_DB_MAIN","database"); DEFINE("_TAB_MAIN","some_table"); //$tab_main="some_table";
$query="select * from _TAB_MAIN" $res=mysql(_DB_MAIN,$query) etc..
If I replace _TAB_MAIN with $tab_main, it works.
I would appreciate any help on this.
Andy
Geocrawler.com - The Knowledge Archive
attached mail follows:
This message was sent from Geocrawler.com by "Mark Neurdenburg" <markneurdenburg
mac.com>
Be sure to reply to that address.
I have recently used PhP and MySQL to create a website. It's worked out pretty well. However there is a mysterious problem that causes the site to be horribly slow when viewed through a windows browser (particularly on NT) but pleasantly fast when viewed with a (any) Macintosh browser. I'm not sure whether php might be the problem or what the **** it is. Has anybody had similar experiences? Any suggestions much appreciated!!
by the way the URL is: http://www.jazzserver.org
Geocrawler.com - The Knowledge Archive
attached mail follows:
Hi!
I'm fairly new to this and although I know how to write code, I'm still not pretty sure about the way .html's and .php3's are treated by the web server. Therefore, let me first explain what I mean:
Say I have a file named helpers.html, which contains (actually much more than!) the code below. I want to execute one external .php3 file named "/php3/helper_day.php3" ONLY inside a particular cell of the table. The reason why I want to do this and not having a single file named helpers.php3 displaying both html and php3 built in, is because this file is constantly being "edited" by a web graphics artist which does not have a clue about php3, but masters for instance, DreamWeaver. The php3 code gets all mixed up by DreamWeaver making it unusable, and I have to keep tidying it up, everytime the graphics artist adds an icon or changes a bit the layout.
So, I'd really prefer to have the code written on a different file, and somehow executed only when required!
Below is a description of where I would require the code to be "called" from, marked in comments with ***!
--- File: helpers.html ---
<html> <head> <meta http-equiv="Content-Language" content="pt-br"> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <meta name="GENERATOR" content="Microsoft FrontPage 4.0"> <meta name="ProgId" content="FrontPage.Editor.Document"> <title>Helpers Schedule</title> </head> <body> <table border="1" width="50%"> <tr> <td width="20%">Saturday</td> <td width="80%"> <!-- *** Code to fetch Saturday - for example /php3/helper_day.php3?day=6 --> </td> </tr> <tr> <td width="20%">Sunday</td> <td width="80%"> <!-- *** Code to fetch Sunday - for example /php3/helper_day.php3?day=7 --> </td> </tr> </table> </body> </html>
--- End of File ---
Any kind help?
Thanks,
Miguel
attached mail follows:
Hello -
I am using RH 6.1, apache 1.3.9, and php 3.0.14. I installed pdflib 2.01 as described in the docs, then tried to run the sample php3 code found in http://www.php.net/manual/html/ref.pdf.html <http://www.php.net/manual/html/ref.pdf.html> I get the following error from php: "Fatal error: call to unsupported or undefined function pdf_open() in /www/crepdf.php3 on line 3". Can someone please tell me what am I doing wrong?
Many thanks - Jim Ide
attached mail follows:
Hi, (in PHP3), I'm trying to do this: replace the first letter in a string with the first letter surrounded by tags, like "Hi all!" becomes "<font size=6>H</font>i all!"
I'm still pretty bad at ereg, I've been trying to do it but can't seem to get it to work.... Any tips? I've also looked at all the string functions, but there doesn't seem to be one for this kind of thing.
Thanks for any help!!! Peter, Medellin Colombia
attached mail follows:
> Hi, > (in PHP3), I'm trying to do this: > replace the first letter in a string with > the first letter surrounded by tags, > like > "Hi all!" > becomes > "<font size=6>H</font>i all!"
here's an example code, I think there could be a faster way.. but this one works: <?php function tagme ($string){ $opentag = '<font size=6>'; $closetag= '</font>'; return $opentag.substr($string, 0,1).$closetag.substr($string,1); } echo tagme("Hi All"); ?>
it's allways faster to use string functions that regular expressions. so it's not that bad i guess.
attached mail follows:
I would like to connect to an SQL Server with PHP (on my NT box) and I understand that only PHP4 has that functionality.
Is it worth running? How is it? It is stable enough?
--Thomas Deliduka IT Manager -------------------- New Eve Media 5629 Westlake Drive Galloway, OH 43119-8498 Phone: 614-870-3098 Fax: 614-870-7486 Mobile: 614-537-6445
attached mail follows:
Hi,
I've got a textfile containing details about a person in the format:
<member>
<name>Joe Bloggs</name>
<email>jbloggs
yahoo.com</email>
<address>14 Foo Sreet<br>Area<br>City<br>Country</address>
</member>
This file has been read into a variable $memberdetails.
What would be the best way to extract values for variables $name, $email, $address, etc. from $memberdetails ? I've tried using a combination of substr(...) and strrpos(...), but the code just ends up being far too long winded and complicated.
Thanks in advance.
-- Tim Fountain (timtfountain.co.uk) http://www.tfountain.co.uk/
attached mail follows:
>Hi,
>
>I've got a textfile containing details about a person in the format:
>
><member>
> <name>Joe Bloggs</name>
> <email>jbloggs
yahoo.com</email>
> <address>14 Foo Sreet<br>Area<br>City<br>Country</address>
></member>
>
>This file has been read into a variable $memberdetails.
>
>What would be the best way to extract values for variables $name,
>$email, $address, etc. from $memberdetails ? I've tried using a
>combination of substr(...) and strrpos(...), but the code just ends up
>being far too long winded and complicated.
You could use the XML parsing functions in PHP. You'll have to rebuild PHP if it wasn't built with --with-xml.
It looks to me from some of the traffic on the PHP4 beta mailing list that the XML support will be someone less bare-bones, but I don't really know what it amounts to. If someone more familiar with what's coming up XML-wise in PHP4, any comment would be much appreciated. I've written some code that uses the PHP3 XML parsing routines to construct a tree corresponding to the XML document, but my code seems incredibly awful and ugly to me and I'd be glad to see something better.
-- Paul DuBois, paulsnake.net
attached mail follows:
Has anyone worked on the Employee Time tracking for project and Project Management type of application using PHP and mysql? I am developing one for my company and looking for ideas, If there are resources I can look at.
attached mail follows:
I don't think NT RAS will do what your after, as it is strictly dial-up AFAIK.
We use RAS in our company for a single off site user. With DNS and WINS setup, the off site user has complete access to the LAN, just as any other local node. If all you need is HTTP access, you don't need to mess with WINS, you'll just need DNS.
I would suggest making your LAN world accessible via a firewall/router (LRP comes to mind www.linuxrouter.org). LRP should even give you most of the security you need.
This way, you don't need any additional phone lines at your site. Off site clients will simply need internet access of some form.
You can create a sub-domain such as extranet.yourdomain.com. You can use apache's .htaccess (Not too familiar with this yet as far as how secure it is).
You could go one further and create a VPN (virtual private network). S/WAN (I think that's it) will do this for you under Linux. I know NT has this service available too, but I don't recall what additional software (if any) is needed. It's been a while since I researched this.
You may want to check out www.linuxberg.com and look over some of the how-tos. If it were me I would go with a Linux based solution. It will cost you less, and it seems you already have experience with it.
If your any thing like my company, you have a few outdated machines just sitting around collecting dust. You can probably use that along with LRP and do everything you need.
Of course this is all theory based on research I did over a year ago and my recent discovery of LRP, but I am quite certain this is a good direction to look towards.
Chris
-----Original Message-----
From: Maarten [mailto:m.stolte
samhoud.nl]
Sent: Tuesday, February 08, 2000 4:38 PM
To: Brian Huddleston
Cc: php3
lists.php.net
Subject: Re: [PHP3] extranet security
Hi,
We already use NT authentication from PHP in the 'normal' Intranet situation, so that would not be a problem. Does RAS work from all sites our employees are going to be, like for example banks, transport companies, etc? Another thing is, is NT really secure enough for this kind of stuff?
Maarten (btw, once i get this mess sorted out, i'll document it, and i'll throw in some extra pointers to php and Intranet/Extranet plans)
----- Original Message -----
From: "Brian Huddleston" <brianh
huddleston.net>
To: "Maarten" <m.stolte
samhoud.nl>; <php3
lists.php.net>
Sent: Tuesday, February 08, 2000 10:22 PM
Subject: Re: [PHP3] extranet security
> Probably the easiest thing to do, would be to put one of your NT machines
on
> the internet with an extra network card and setup RAS services on it.
That
> would give you authenticated challenge/response type access and would as a
> side benefit encrypt all the network traffic that goes out over the net.
> The downside would be that only those people with an NT domain account
would
> be able to access your network.
>
> It isn't clear from your message what your security requirements are and
> what you need to have externally available.
>
> Brian Huddleston
> Huddleston Consulting
>
> ----- Original Message -----
> From: "Maarten" <m.stolte
samhoud.nl>
> To: <php3
lists.php.net>
> Sent: Tuesday, February 08, 2000 1:50 PM
> Subject: [PHP3] extranet security
>
>
> > Hi,
> >
> > a bit off topic it may seem, but our Intranet is totally php3 based, so
i
> > figured i'd try you guys :)
> > We build our intranet as I said on php3, apache, linux,MySQL and ODBC
> links.
> > It is totally web based, and only available on our LAN.
> > We didn't think of an extranet before, because we have dialup systems in
> our
> > company.
> > Now we are confronted with more and more people working on different
> > locations, with some having access to modems and Internet, and some only
> to
> > Internet (via lans etc.).
> > We are thinking of opening up our router to serve the Intranet to the
> > Internet, making it an Extranet.
> > We already do password authentication using our NT domain, but this is
not
> > sufficient i think.
> > I was therefore thinking of SSL, and some other techniques.
> > Do you guys (and gals nowadays, welcome), have any suggestions?
> >
> > Maarten Stolte
> >
> >
> > --
> > 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