|
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 17 Feb 2000 06:00:01 -0000 Issue 1483
From: php3-digest-help
lists.php.netDate: Thu Feb 17 2000 - 00:00:01 CST
- Next message: php3-digest-help
lists.php.net: "php3 Digest 17 Feb 2000 18:00:01 -0000 Issue 1484"
- Previous message: php3-digest-help
lists.php.net: "php3 Digest 16 Feb 2000 18:00:07 -0000 Issue 1482"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
php3 Digest 17 Feb 2000 06:00:01 -0000 Issue 1483
Topics (messages 76404 through 76529):
Problem Running PHP3
76404 by: "rds" <rds
neo.rr.com>
mysql sorting
76405 by: Richard Lynch <rlynch
ignitionstate.com>
mySQL, PHP running as root :(
76406 by: Richard Lynch <rlynch
ignitionstate.com>
new line
76407 by: Richard Lynch <rlynch
ignitionstate.com>
76460 by: "Craig Vincent" <webmaster
webdream.com>
PDF content-type working differently with POST and GET?!?
76408 by: "alain samoun" <alain
samoun.com>
Homesite - server preview
76409 by: "wes weems" <uberman
thegrid.net>
failure to delete a cookie
76410 by: Andy Lewis <alewis
mailbag.com>
76458 by: "Craig Vincent" <webmaster
webdream.com>
last leak repeated
76411 by: "Milan Dubec \"FreeMan\"" <FreeMan
BlaSt.sk>
Should my hosting co update their PHP?
76412 by: Damien Mc Kenna <mckenna
wso.net>
76416 by: "Michael Geier" <mgeier
hpd.acast.nova.edu>
odbc_connect("/winC_drive/??????")
76413 by: Richard Lynch <rlynch
ignitionstate.com>
ora_fetch hides top row
76414 by: Richard Lynch <rlynch
ignitionstate.com>
deletion of /tmp/mysqld.sock
76415 by: Phil Allsopp <phil
virtek.com>
MySQL not connecting using PHP
76417 by: Maria Savela <maria.savela
edt.ericsson.se>
76461 by: "Craig Vincent" <webmaster
webdream.com>
76529 by: Daniel Convissor <danielc
analysisandsolutions.com>
PHP and MySQL
76418 by: Richard Lynch <rlynch
ignitionstate.com>
PHP extension doesn't work in PWS
76419 by: Richard Lynch <rlynch
ignitionstate.com>
PHP and MySQL question
76420 by: Richard Lynch <rlynch
ignitionstate.com>
Php and Bookmarks
76421 by: Richard Lynch <rlynch
ignitionstate.com>
76459 by: "Craig Vincent" <webmaster
webdream.com>
PGPMail
76422 by: Richard Lynch <rlynch
ignitionstate.com>
php script to run in the background?
76423 by: Richard Lynch <rlynch
ignitionstate.com>
76457 by: "Craig Vincent" <webmaster
webdream.com>
PHP site mailing list controls
76424 by: Richard Lynch <rlynch
ignitionstate.com>
php vs pearl
76425 by: Richard Lynch <rlynch
ignitionstate.com>
76447 by: "Brian Huddleston" <brianh
huddleston.net>
76513 by: "Rene H. Larsen" <rhl
traceroute.dk>
76515 by: "Peter Kocks" <peter.kocks
baygate.com>
76528 by: Kevin_Saenz
dell.com
php-mySQL
76426 by: Richard Lynch <rlynch
ignitionstate.com>
php/mysql/apache balance problem
76427 by: Richard Lynch <rlynch
ignitionstate.com>
php4 in production env.
76428 by: Richard Lynch <rlynch
ignitionstate.com>
Printer Versions
76429 by: Richard Lynch <rlynch
ignitionstate.com>
Standard Function s
76430 by: "Raghu Sharma" <raghu.sharma
prospect2000.com>
Question about executing Perl scripts
76431 by: Richard Lynch <rlynch
ignitionstate.com>
php for dummies
76432 by: "Jason Cox" <jasonc
webpipe.net>
Undefined Database functions: HELP!
76433 by: "Greg Brunet" <GBrunet
SemperSoft.com>
Running an external command
76434 by: Richard Lynch <rlynch
ignitionstate.com>
Sending mail with mail()
76435 by: Richard Lynch <rlynch
ignitionstate.com>
Shopping and Webmail
76436 by: Richard Lynch <rlynch
ignitionstate.com>
76492 by: Richard Lynch <rlynch
ignitionstate.com>
Shopping Cart
76437 by: Richard Lynch <rlynch
ignitionstate.com>
parsing a html page
76438 by: "Tim Zickus" <infoz
chesco.com>
slahes & hidden fields
76439 by: Richard Lynch <rlynch
ignitionstate.com>
Some clarifications
76440 by: Richard Lynch <rlynch
ignitionstate.com>
Sorting an array numerically with sort()?
76441 by: Richard Lynch <rlynch
ignitionstate.com>
sql ?
76442 by: Richard Lynch <rlynch
ignitionstate.com>
Benchmarking Unix webservers. Any Suggestions?
76443 by: John Parker <jparker
snorkelusa.com>
What error is this? Php?
76444 by: "Ramiro Radjman" <radji600
chello.nl>
pow problem in Solaris 2.5 Apache/php3
76445 by: "chasbas" <chasbas
tipsinc.com>
Is PDF worth it?
76446 by: "Matt \"TrollBoy\" Wiseman" <trollboy
defnet.com>
76448 by: eschmid <eschmid+sic
s.netic.de>
76454 by: "alain samoun" <alain
samoun.com>
76473 by: "Matt \"TrollBoy\" Wiseman" <trollboy
defnet.com>
76478 by: "Matt \"TrollBoy\" Wiseman" <trollboy
defnet.com>
76498 by: operator <vandal
missoulaweb.com>
Upload Examples
76449 by: Richard Lynch <rlynch
ignitionstate.com>
upload in Win98
76450 by: Richard Lynch <rlynch
ignitionstate.com>
Urgent !! HELP !! more information
76451 by: Richard Lynch <rlynch
ignitionstate.com>
Urgent : need php 3.0.7 (or greater apache 1.3.3 compliant) gz's file
76452 by: Richard Lynch <rlynch
ignitionstate.com>
using % in postgres queries
76453 by: Richard Lynch <rlynch
ignitionstate.com>
Mysql rownumber
76455 by: "Melissa Anderson" <melissa_anderson
inlet.com>
76462 by: "Scott Genevish" <SCOTTGE
kinkos.com>
76463 by: "Craig Vincent" <webmaster
webdream.com>
76465 by: destiney <webmaster
destiney.com>
Problems with script
76456 by: "++Gajcy++" <gajcy
viper.pl>
76464 by: Brad Bonkoski <bbc1049
saintjoe.edu>
76467 by: Andrian Pervazov <andrian
truefire.com>
mysql rownumber...more specific
76466 by: "Melissa Anderson" <melissa_anderson
inlet.com>
76468 by: "Craig Vincent" <webmaster
webdream.com>
76469 by: "Craig Vincent" <webmaster
webdream.com>
76499 by: Antares Informatica <jilanik
tin.it>
76527 by: "Rossi Designs" <webmaster
rossidesigns.net>
Date and time from MySQL
76470 by: "John Huggins" <huggins
gaussian.tlsusa.com>
Phorum problem
76471 by: "Jason Brooke" <jason
qgl.org>
Looping to check the age of a file
76472 by: Peter Benoit <pbenoit
triton-network.com>
Variable Order Input Fields Problem - Re-worded
76474 by: Richard Lynch <rlynch
ignitionstate.com>
Variables between <? ?> sessions.
76475 by: Richard Lynch <rlynch
ignitionstate.com>
Viewing source for databased source code
76476 by: Richard Lynch <rlynch
ignitionstate.com>
Warning: 0 is not a MySQL.....
76477 by: Richard Lynch <rlynch
ignitionstate.com>
Rosenet Shopping Cart?
76479 by: "Andy Frankford" <andy
alliancecommerce.net>
76502 by: "phplist" <phplist
wowmation.com>
76505 by: Garry Moore <mycode
is.sweet.as>
76507 by: "phplist" <phplist
wowmation.com>
browser capabilities
76480 by: Peter Benoit <pbenoit
triton-network.com>
mod_ssl && mod_php
76481 by: Richard Lynch <rlynch
ignitionstate.com>
why so many problems???
76482 by: Richard Lynch <rlynch
ignitionstate.com>
76516 by: Michael Vinson <mike
mvmedia.com>
76517 by: Garry Moore <mycode
is.sweet.as>
Win NT and IIS 3 installation
76483 by: Richard Lynch <rlynch
ignitionstate.com>
Would you Explain sub php3 News Groups?
76484 by: Richard Lynch <rlynch
ignitionstate.com>
length of an string with SQL
76485 by: Richard Lynch <rlynch
ignitionstate.com>
[ANN] Midwest PHP User's Group Meeting
76486 by: Richard Lynch <rlynch
ignitionstate.com>
"while" statement
76487 by: Richard Lynch <rlynch
ignitionstate.com>
PHP web based file manager for unix?
76488 by: Boz <Boz
musheen.com>
unset() array problem.
76489 by: Nathan Benson <phuzz
phactor.org>
Professional PHP Programming
76490 by: "Hong-Duc Nguyen" <ducnguyen
bigfoot.com>
76494 by: eschmid <eschmid+sic
s.netic.de>
76500 by: operator <vandal
missoulaweb.com>
76522 by: "Manuel Lemos" <mlemos
acm.org>
Strange Array Output.
76491 by: "Jim Brown, Sr." <Sys-Admin
CSUinternet.net>
Apache stops being responsive
76493 by: Rikard Anglerud <anglerud
mail.com>
Fw: íÉÔÉÎÇ ÐÒÏÔÉ× ×ÏÊÎÙ × þÅÞÎÅ
76495 by: "Grigori V Soloviov" <gsoloviov
mtu-net.ru>
php equivalent to setTimeOut in Javascript
76496 by: Peter Benoit <pbenoit
triton-network.com>
Array Problem
76497 by: Richard Lynch <rlynch
ignitionstate.com>
compare 2 arrays and delete the matched key/value pair..
76501 by: Richard Lynch <rlynch
ignitionstate.com>
mail()- popen()- sendmail problems.
76503 by: steve <steve
powells.com>
76521 by: "Manuel Lemos" <mlemos
acm.org>
retrieve url address
76504 by: Ellen Carter <ellen.carter
prodigy.net>
Appending to beginning of a file
76506 by: Anders Holmquist <caine
ebox.tninet.se>
76508 by: Tom <tomhenry
direct-connection.com>
Can PHP3 use All Perl5's Regular expressions?
76509 by: "Jong" <moonee7
hosanna.net>
MySQL output in fixed table
76510 by: "Marc Hensel" <mhensel
conmedia.com>
Build a Store No Charge!
76511 by: reply
dirc.com
Email -> Database
76512 by: "David Bouw" <David
mubo.nl>
76514 by: elliot d schlegelmilch <elliot
rightnowtech.com>
76520 by: "Manuel Lemos" <mlemos
acm.org>
Hello.
76518 by: °íÁ¤¹Î <jungmin
sift.co.kr>
php3's path is seen in URL by $PHP_SELF.
76519 by: "Jong" <moonee7
orgio.net>
Books
76523 by: "Manuel Lemos" <mlemos
acm.org>
User Group Registry
76524 by: christopher
moewes.com
Stability of MySQL Win32
76525 by: Cameron Just <C.Just
its.uq.edu.au>
Public Key Encryption of Database Fields?
76526 by: "Tedd Kelleher" <teddk
home.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:
Every thing works fine when I have it on one or the other (HTTPD OR SHTTPD) But when I add the type and the module for both at the same time. Apache doesn't want to start back up after the module is added in. Gets a sharing problem and aborts.
If any one has any info on solving this problem please share it with me...
Thanks
Ryan
attached mail follows:
At 04:24 PM 2/9/00 -0800, you wrote:
> Is there a way to sort in a certain order in mysql? For example, I have
>a column called Tests, this column has 3 possible values, 1 2 and 3. If I
>want to force it to sort 2,3,1 could this be done?
You'll have to find some way to write a boolean clause or function that
returns True/False for this odd sort order.
If MySQL has a Modulo operator, you could maybe hack it with:
select * from tests order by modulo(Tests, 2), Tests desc
This is, of course, a truly disgusting hack.
You really should create another column with the sort order you want or...
Why do you have a Tests column like this anyway?
-- "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 Need Work? Graphic Design: http://L-I-E.com/jobs.htm#GraphicDesign Printer Driver: http://L-I-E.com/jobs.htm#PrinterDriver
attached mail follows:
At 01:16 AM 2/10/00 -0500, you wrote: >Is there any way to prevent this? PHP scripts, enabled from everywhere, >would/did run as root (or theowner of the process running, which is basically >the same thing). Obviously, this isn't an ideal security model.
Usually, PHP runs as the user Apache runs as, which is set in httpd.conf
You'd have to have worked pretty hard at it to screw up and make PHP run as root, but some tools which you use to check this sort of thing my be erroneously reporting PHP as running as root, since Apache starts as root, then uses su to change to the user specified in httpd.conf
So first check the user specified in your httpd.conf
Then, verify that PHP really *IS* running as root:
exec("/full/path/to/whoami", $results, $errorCode); while (list(,$line) = each($results)){ echo $line, "<BR>\n"; } if ($errorCode){ echo "Error $errorCode. Couldn't even run whoami. Check path/permissions<BR>\n"; }
I know nothing about who MySQL runs as, but do know that MySQL has its own set of users, one of whom is named root, which has absolutely nothing to do with the login user of the same name.
-- "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 Need Work? Graphic Design: http://L-I-E.com/jobs.htm#GraphicDesign Printer Driver: http://L-I-E.com/jobs.htm#PrinterDriver
attached mail follows:
At 02:26 PM 2/11/00 -0000, you wrote: >I need change the format of new line in html <br> to the format in wml <br/> >in a text. > > >How can i make it.
$text = eregi_replace('\<br\>', '\<br\/\>', $text);
Disclaimer: I may have gotten a little backslash-happy there, as I don't know what characters are special in regex.
-- "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 Need Work? Graphic Design: http://L-I-E.com/jobs.htm#GraphicDesign Printer Driver: http://L-I-E.com/jobs.htm#PrinterDriver
attached mail follows:
> >I need change the format of new line in html <br> to the format in wml <br/> > >in a text. > > > > > >How can i make it. > > $text = eregi_replace('\<br\>', '\<br\/\>', $text); > > Disclaimer: I may have gotten a little backslash-happy there, as I don't > know what characters are special in regex.
Close but just a little off :) $text = eregi_replace('<br>', '<br/>', $text);
In perl you may need to escape a / in a regex, but not in PHP.
Sincerely,
Craig Vincent Senior Webmaster/Programmer Web Dream Inc.
attached mail follows:
What I do is use an html form to POST parameters to a file.php The file.php builds the pdf file and displays it with no problems. Here are the header commands that I use if this makes any differences: header("Content-Type: application/pdf"); header("Cache-Control: no-cache, must-revalidate"); header("Content-Length:". filesize($basedir."out/file.pdf")); Readfile($basedir."out/file.pdf");
Message from Alain Samoun
alain
samoun.com
-----Original Message-----
From: Mark Nold [mailto:markn
alverstone.com.au]
Sent: Wednesday, February 16, 2000 4:13 AM
To: 'php3
lists.php.net'
Subject: [PHP3] PDF content-type working differently with POST and
GET?!?
Hi,
I have a very strange problem.
I have a created PDF on disk and i wish to open it once created and push it to the user (of course opening acrobat) then delete the file. The psudo code (i did this at work today) looks like;
# Create PDF.. # # header("Content-type: application/pdf"); header("Content-disposition: inline ; filename=myfile.pdf"); readfile("/temp/myfile.pdf"); unlink("/temp/myfile.pdf");
The problem is if i use GET in the form that calls this page everything works fine. But with POST, IE4 just displays a blank HTML page. This appears true if i have any variables at all being posted or none.
If i try to use telnet to port 80 the returned info is nearly identical if i do a GET for myfile.pdf as apposed to to GETing the php file...
Has anybody seen this before? Does anybody know how to do a POST via a telnet session so i can find out what is happening? Any help with usinig POST would be appreciated.
mn
(PS: Im sure i could redirect with location headers.. but its not really what i want as it wil kill all security and i wont know when to delete the files.)
-- 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:
hehe actually this IS a problem with homesite, affecting versions 4.5 and 4.5a. Its a known bug, and really I dont know how soon they plan on fixing it. If your a beta tester for allaire, you can get Homsite 4.5.1 beta and it apparenlty does not have that problem anymore.
Wes Weems
NetSketchers
----- Original Message -----
From: Henry F. Marquardt
To: php3
lists.php.net
Sent: Wednesday, February 16, 2000 8.33 A
Subject: [PHP3] Homesite - server preview
OK, this isn't exactly a PHP question, but since so many folks seemed to be using homesite (as evidenced by the "editor" discucssion) I thought I'd post here and see if someone can help.
After making do with edit and vi, I finally took the plunge and installed HS4.5 on my W98 box. One of the things that really attracted me was the ability to have the server process the preview pane, but I'm having a little difficulty here.
I'm running Linux as the host with Apache and Samba, my home directory is mapped as drive W: on W98 and I've set up the server info in homesite correctly. The problem is that despite having a wide open umask (0) on the linux box directory, HS doesn't assign any permissions for non-owner/non-group access to it's temp files (hs~filename) that it uses for internal previews. I end up with 403 forbidden errors on the client and I see permission errors in the web log files (that's how I know it's configured property - it dereferences fine).
I tried setting the "file save" option to unix - that didn't help. I looked for a "force save" option like the one for external browsers, but couldn't find one.
I also tried tech support from Allaire - got a funny email telling me that my problem was beyond the scope of installation support. Oh well.
I also tried redoing the project file to not use my samba mappings and instead treated it as a ftp site, but I couldn't figure a way to handle the server mappings (FTP & RDS aren't available in the server processing area).
Anyone lick this problem?
Hank
hank
yerpso.net
attached mail follows:
Hi folks,
I'm writing a small cart program that uses cookies without a database for use where the items are one-of-a-kind and 2-8 items is the common order.
I got the prototype working but no matter what I do, I can't clear the cookie contents where I keep the items. I have tried the following to remove the contents:
setcookie("mycookie"); setcookie("mycookie", ""); setcookie("mycookie", "", $oldtime);
The variables continue to show up after I move to another program of loop back to start a second order.
Any ideas on what I'm doing wrong?
Thanks.
Andy
attached mail follows:
> I'm writing a small cart program that uses cookies without a database for > use where > the items are one-of-a-kind and 2-8 items is the common order. > > I got the prototype working but no matter what I do, I can't clear the > cookie contents > where I keep the items. I have tried the following to remove the contents: > > setcookie("mycookie"); > setcookie("mycookie", ""); > setcookie("mycookie", "", $oldtime); > > The variables continue to show up after I move to another program of loop > back to > start a second order. > > Any ideas on what I'm doing wrong?
Remember, cookies ONLY go into effect after the browser has gone to another page. For example if you set a cookie in index.html...until the user goes to index2.html, refreshes the page or just plainly goes elsewhere the cookie theoretically won't yet exist...this includes changes to the cookies...what you may want to do is
setcookie('mycookie',''); header('location: page.html'); exit;
That will erase the cookie.
Sincerely,
Craig Vincent Senior Webmaster/Programmer Web Dream Inc.
attached mail follows:
Hello,
I have problem. PHP 4 write to error_log this: zend_execute.c(392) : Freeing 0x???????? (12 bytes), script=/home/... Last leak repeat 1 time zend_execute.c(392) : Freeing 0x???????? (12 bytes), script=/home/... Last leak repeat 4 time zend_execute.c(392) : Freeing 0x???????? (12 bytes), script=/home/... Last leak repeat 10 time zend_execute.c(392) : Freeing 0x???????? (12 bytes), script=/home/... Last leak repeat 2 time
I have every day 45MB error logs. Can you help me?
Milan Dubec "FreeMan"
attached mail follows:
I am having a debate with my hosting company about the versions of PHP and MySQL they are using. They currently have PHP 3.0.6 and MySQL 3.22.9beta. They maintain that they are happy with their versions and do not plan on upgrading because the updates offer very few updates and that they want to wait for the bugs to be fixed first. Just for further background info, I plan on using an enhanced Phorum package which will have user authentication and session support (using a class for PHP3 until they install PHP4), all running on their MySQL db. BTW, they're running NT4 with IIS4 for their servers. Should I persist further, or just leave it? What would be my reasons for pushing for a newer PHP and/or MySQL?
-Me---------------------------------------------------------------------------- I've a few questions about your PHP support. Firstly, any chance of upgrading to the latest version? v3.14 has been out for a while now and they're working on fixing more bugs for v3.15. Also, have you installed the MySQL .dll file to allow use of the database via PHP? One last question, what version of MySQL are you currently using? The current shareware version is at 3.22.32, which was released just this weekend to fix more security issues. Thanks.
-Them---------------------------------------------------------------------------- Damien Mc Kenna, wife, four cats Damien, We are currently using PHP Version 3.0.6 with MySQL 3.22.9. PHP is setup to call Mysql and MS ODBC databases. Network Support.
-Me---------------------------------------------------------------------------- At 10:39 PM 2/14/00, you wrote: > We are currently using PHP Version 3.0.6 with MySQL 3.22.9.
Do you have any plans to upgrade these, given that they are both quite outdated?
> PHP is setup to call Mysql and MS ODBC databases.
Excellent.
-Them---------------------------------------------------------------------------- Damien, We run the stable versions of each release. We do not plan on updating either at this time. Each of the updated versions offer very few updates from the version we are running and we wait till the bugs are out and the updates have been used for awhile as we can not have a small bug bring down our systems. xxxxxx Support.
-Me---------------------------------------------------------------------------- At 09:41 PM 2/15/00, you wrote: > We run the stable versions of each release.
You are currently running *UNSTABLE* and (in the case of MySQL) *UNSAFE* versions! Please have a look at the newer versions, read the ChangeLog files for them, and then say which is more stable! In both cases the new versions are for bug fixes, not newer features. For PHP, they stopped adding new features early on in 3.x cycle, and instead concentrated on bug fixing, which they still do on it - they're concentrating on adding the new features to v4, which is still in beta. As for MySQL, most of the recent updates I've seen have all been related to bug fixes, again they have a different release (3.23.x) for adding new features, which will eventually be migrated to a stable 3.24 release (they follow a versioning system similar to the Linux kernel - odd numbers mean feature testing, even numbers mean stable releases. The main reasons I'm pushing this is that I know they have fixed a lot of problems in PHP since 3.06, nearly everything from regex to database support has been improved. For MySQL, they've fixed a *lot* of security issues in the last few releases, and every hosting company should be worried about security. Please research it more.
> Each of the updated versions offer very few updates from the version we > are running and we wait till the bugs are out and the updates have been > used for awhile as we can not have a small bug bring down our systems.
Your versions are over a year old in both cases.
-Them---------------------------------------------------------------------------- Thank you for your input. We disagree with some of your comments and at this time we are satisfied with the current versions in which we run. It is not applicable for us or any hosting company to run beta versions or just released versions before the bug reports are out and other users have tested it. It can take up to a year in some cases before all reports are out on the new verion or update. This is a standard practice among larger hosting companies as we can not take down our network with 1000's of users because of some bug. I hope you can understand our position and why we wait before running the latest versions. At this time I don't know if we have any plans in the near future to update the software you mention we will notify you if we do. Network Support.
-----------------------------------------------------------------------------
attached mail follows:
http://www.php.net/ChangeLog.php3
hopefully that will convince them.
===========================================================================
Michael Geier
Information/Computer Technologist
Nova Southeastern University
HPD Library Voice: 954-262-1841
3200 South University
Fort Lauderdale, Florida 33328 E-mail: mgeier
nova.edu
===========================================================================
-----Original Message-----
From: Damien Mc Kenna [mailto:mckenna
wso.net]
Sent: Wednesday, February 16, 2000 1:22 PM
To: php3
lists.php.net
Subject: [PHP3] Should my hosting co update their PHP?
I am having a debate with my hosting company about the versions of PHP and MySQL they are using. They currently have PHP 3.0.6 and MySQL 3.22.9beta. They maintain that they are happy with their versions and do not plan on upgrading because the updates offer very few updates and that they want to wait for the bugs to be fixed first. Just for further background info, I plan on using an enhanced Phorum package which will have user authentication and session support (using a class for PHP3 until they install PHP4), all running on their MySQL db. BTW, they're running NT4 with IIS4 for their servers. Should I persist further, or just leave it? What would be my reasons for pushing for a newer PHP and/or MySQL?
-Me-------------------------------------------------------------------------
--- I've a few questions about your PHP support. Firstly, any chance of upgrading to the latest version? v3.14 has been out for a while now and they're working on fixing more bugs for v3.15. Also, have you installed the MySQL .dll file to allow use of the database via PHP? One last question, what version of MySQL are you currently using? The current shareware version is at 3.22.32, which was released just this weekend to fix more security issues. Thanks.-Them----------------------------------------------------------------------- ----- Damien Mc Kenna, wife, four cats Damien, We are currently using PHP Version 3.0.6 with MySQL 3.22.9. PHP is setup to call Mysql and MS ODBC databases. Network Support.
-Me------------------------------------------------------------------------- --- At 10:39 PM 2/14/00, you wrote: > We are currently using PHP Version 3.0.6 with MySQL 3.22.9.
Do you have any plans to upgrade these, given that they are both quite outdated?
> PHP is setup to call Mysql and MS ODBC databases.
Excellent.
-Them----------------------------------------------------------------------- ----- Damien, We run the stable versions of each release. We do not plan on updating either at this time. Each of the updated versions offer very few updates from the version we are running and we wait till the bugs are out and the updates have been used for awhile as we can not have a small bug bring down our systems. xxxxxx Support.
-Me------------------------------------------------------------------------- --- At 09:41 PM 2/15/00, you wrote: > We run the stable versions of each release.
You are currently running *UNSTABLE* and (in the case of MySQL) *UNSAFE* versions! Please have a look at the newer versions, read the ChangeLog files for them, and then say which is more stable! In both cases the new versions are for bug fixes, not newer features. For PHP, they stopped adding new features early on in 3.x cycle, and instead concentrated on bug fixing, which they still do on it - they're concentrating on adding the new features to v4, which is still in beta. As for MySQL, most of the recent updates I've seen have all been related to bug fixes, again they have a different release (3.23.x) for adding new features, which will eventually be migrated to a stable 3.24 release (they follow a versioning system similar to the Linux kernel - odd numbers mean feature testing, even numbers mean stable releases. The main reasons I'm pushing this is that I know they have fixed a lot of problems in PHP since 3.06, nearly everything from regex to database support has been improved. For MySQL, they've fixed a *lot* of security issues in the last few releases, and every hosting company should be worried about security. Please research it more.
> Each of the updated versions offer very few updates from the version we > are running and we wait till the bugs are out and the updates have been > used for awhile as we can not have a small bug bring down our systems.
Your versions are over a year old in both cases.
-Them----------------------------------------------------------------------- ----- Thank you for your input. We disagree with some of your comments and at this time we are satisfied with the current versions in which we run. It is not applicable for us or any hosting company to run beta versions or just released versions before the bug reports are out and other users have tested it. It can take up to a year in some cases before all reports are out on the new verion or update. This is a standard practice among larger hosting companies as we can not take down our network with 1000's of users because of some bug. I hope you can understand our position and why we wait before running the latest versions. At this time I don't know if we have any plans in the near future to update the software you mention we will notify you if we do. Network Support.
---------------------------------------------------------------------------- -
-- 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:
At 02:20 PM 2/10/00 +0200, you wrote: >I create system dsn on windows98 box named as windowsmdb. >But when I want to find this name "windowsmdb" on C drive. I could not >found any name. > >How I would connect to msaccess mdb on windows98 machine using php4 >commend odbc_connect("/winC/????????") > >I have connected that machine via samba. > >My machine is red hat linux 6.1 > >I could not menaged to connect to windows98 msaccess mdb file using >system dsn.
You will need something like http://www.openlinksw.com to be a bridge between the Linux and Win98 boxes.
-- "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 Need Work? Graphic Design: http://L-I-E.com/jobs.htm#GraphicDesign Printer Driver: http://L-I-E.com/jobs.htm#PrinterDriver
attached mail follows:
At 07:37 AM 2/11/00 -0800, you wrote:
>This message was sent from Geocrawler.com by "J Wassberg" <jw
linux.nu>
>Be sure to reply to that address.
>
>Everytime i call ora_fetch, it hides(?) the top
>row in my query. Why is that?
Sounds like you are calling it once before entering some sort of loop that calles it...
Show us source code for a better answer.
-- "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 Need Work? Graphic Design: http://L-I-E.com/jobs.htm#GraphicDesign Printer Driver: http://L-I-E.com/jobs.htm#PrinterDriver
attached mail follows:
the file /tmp/mysqld.sock is being deleted once a day on my FreeBsd 3.3 system and is shutting down my access to a mysql DB from php3.
I have looked over the mysql documentation which states a workaround but I would rather know what is causing the deleted file than simply moving the problem somewhere else as suggested in the docs.
I have looked at what cron is doing and can't see that it deleted the file and wondered if anyone knows may be deleting this file. This problem didn't happen on earlier versions of FreeBsd or using earlier versions of PHP3 / MySQL.
Phil.
attached mail follows:
Steve Tuffney wrote: > > I am having trouble connecting to my MySQL server. My code in the script > looks like this. The error is apparently on the "mysql_connect" line. > The hostname var is my IP address. This is on NT using Apache, PHP3 and > MySQL. > I have not specified a user or password for simplicity. > > $hostname = "hostname"; > mysql_connect($hosthame) or die("Unable to connect to SQL server"); > mysql_select_db("ContactDB") or die("Unable to select database"); > > Any ideas ?
If that's the actual code, yes. Seems to me like the variable name in the mysql_connect function call is not correctly specified, it says "$hosthame" instead of "$hostname". Not the same variable you defined on the line above it, anyway.
/Mia*
attached mail follows:
>I am having trouble connecting to my MySQL server. My code in the script looks like this. The >error is apparently on the "mysql_connect" line. The hostname var is my IP address. This is on >NT using Apache, PHP3 and MySQL. >I have not specified a user or password for simplicity.
>$hostname = "hostname"; >mysql_connect($hosthame) or die("Unable to connect to SQL server"); >mysql_select_db("ContactDB") or die("Unable to select database");
>Any ideas ?
This doesn't tell us much...your best thing to do is find out what error MySQL is sending to PHP at the attempted connection.
Try this:
$hostname = "hostname"; mysql_connect($hostname) echo mysql_error(); mysql_select_db("ContactDB") or die("Unable to select database");
The other thing worth mentioning...if this is an exact replica of your code....you spelt $hostname wrong in the mysql_connect line (you transposed the n with an h).
Sincerely,
Craig Vincent Senior Webmaster/Programmer Web Dream Inc.
attached mail follows:
Steve:
Perhaps... 1) your IP address is really not the host name. 2) have you tried "localhost" as the host name? 3) is your IP address and/or localhost in your mysql user table? 4) I didn't realize you can get by without a user. 5) are the permissions set correctly for the host/user combo you're using? 6) your system is rebelling because you're sending email as HTML.
--Dan
--
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
More than just answers. Solutions. (SM)
http://www.analysisandsolutions.com/
4015 7 Av #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409
attached mail follows:
At 09:14 AM 2/9/00 -0500, you wrote: >Hi I have the same problem. How do I recompile on win98?
On Linux, you recompile --with-mysql
On Win98, you uncomment the mysql.dll line in php3.ini
-- "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 Need Work? Graphic Design: http://L-I-E.com/jobs.htm#GraphicDesign Printer Driver: http://L-I-E.com/jobs.htm#PrinterDriver
attached mail follows:
At 04:44 AM 2/9/00 -0600, you wrote: >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.
Reboot?
Search for some other .php association in the Registry?
>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?
You need execute for the diretory with php.exe in it, almost for sure.
The .php3/html directories, I'm not so sure about...
-- "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 Need Work? Graphic Design: http://L-I-E.com/jobs.htm#GraphicDesign Printer Driver: http://L-I-E.com/jobs.htm#PrinterDriver
attached mail follows:
At 10:14 PM 2/12/00 -0800, you wrote: > Subject: PHP and MySQL question Is there a significant speed or >stability difference between two databases or one database with two >tables? For example: Scenario 1: db: Admin db: Members Scenario 2: db: >MySite w/ table1: Admin and table2: Members If 5,000 queries are being >processed a minute, is one Scenario a better performer than the other? Any >experience or input would be greatly appreciated. Adam
One database has to be faster.
The opening of a database connection can be time-expensive. This can be ameliorated by _pconnect, but will never go away.
-- "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 Need Work? Graphic Design: http://L-I-E.com/jobs.htm#GraphicDesign Printer Driver: http://L-I-E.com/jobs.htm#PrinterDriver
attached mail follows:
At 11:34 AM 2/13/00 -0800, you wrote: > I was wondering if anyone has done something similar >to this. I would like to be able to pull the current URL >out of the main browser window and submit it to a >database which would then become that members online >bookmark collection. I have seen bookmarkers that do >something similar but I would like to have a drop down >list in a remote window (Javascript) that feeds the main >window (I have already found this part). Any suggestions >would be greatly appreciated.
--- bookmarker.php3 --- <?php $query = "insert into bookmarks(userid, url) values($userID, '$HTTP_REFERER')"; . . . ?>
Your server software must be configured to provide HTTP_REFERER.
-- "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 Need Work? Graphic Design: http://L-I-E.com/jobs.htm#GraphicDesign Printer Driver: http://L-I-E.com/jobs.htm#PrinterDriver
attached mail follows:
> > I was wondering if anyone has done something similar > >to this. I would like to be able to pull the current URL > >out of the main browser window and submit it to a > >database which would then become that members online > >bookmark collection. I have seen bookmarkers that do > >something similar but I would like to have a drop down > >list in a remote window (Javascript) that feeds the main > >window (I have already found this part). Any suggestions > >would be greatly appreciated. ><?php $query = "insert into bookmarks(userid, url) values($userID, > '$HTTP_REFERER')";
How do you expect that to work? HTTP_REFERER gives the previous page the browser was at...not the current one. REQUEST_URI is the closest environment variable that will do that but it's not an absolute reference...the variable only gives the path in relation to the virtual host's root.
ie.
http://www.foobar.com/members/index.html
$REQUEST_URL will return /members/index.html
Sincerely,
Craig Vincent Senior Webmaster/Programmer Web Dream Inc.
attached mail follows:
At 12:35 PM 2/10/00 -0500, you wrote: >Has any one written a function for PGP Encrypted e-mailing in PHP3? > >Any leads to routines? I guess I need an equivalent command to mail(,.) for >e.g. pgpmail(xx,x,x,xx).
Search the mailing list archives for 'popen gpg' and you should find a script that will do it.
You'll need gpg http://www.gnupg.org
-- "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 Need Work? Graphic Design: http://L-I-E.com/jobs.htm#GraphicDesign Printer Driver: http://L-I-E.com/jobs.htm#PrinterDriver
attached mail follows:
At 07:26 PM 2/13/00 -0500, you wrote: >Hi there >I have a script that I'd like to have run as a background process. >I'd like a visitor to be able to go to my site, click on a link, and a >PHP script will run in the background, so if the user wants to go away, >the script keeps doing it's thing. >Is this possible? >I'm in a unix environment. >(I do not have a php.cgi, my ISP has installed php as a mod)
You may have to install a PHP CGI to really get this to work...
exec('php -q -f /full/path/to/script');
-- "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 Need Work? Graphic Design: http://L-I-E.com/jobs.htm#GraphicDesign Printer Driver: http://L-I-E.com/jobs.htm#PrinterDriver
attached mail follows:
> >I have a script that I'd like to have run as a background process. > >I'd like a visitor to be able to go to my site, click on a link, and a > >PHP script will run in the background, so if the user wants to go away, > >the script keeps doing it's thing. > >Is this possible? > >I'm in a unix environment. > >(I do not have a php.cgi, my ISP has installed php as a mod) > > You may have to install a PHP CGI to really get this to work... > > exec('php -q -f /full/path/to/script');
exec('php -q -f /full/path/to/script NOHUP &');
would be the correct syntax...the & puts it into the background and the NOHUP tells the server not to kill it until the script has gotten to the end...be careful with this though...if the script never ends you'll wind up killing your server in dead processes.
Sincerely,
Craig Vincent Senior Webmaster/Programmer Web Dream Inc.
attached mail follows:
At 10:42 AM 2/10/00 -0600, you wrote: >I was recently changing my subscription to this list and realized that I >want to add the kind of functionality to un/sub to lists on my own site. I >also use ezmlm for list but I can't figure out how they do it. I wrote a >page that lets you select a list and enter your email address and it will >execute > >exec("/usr/local/bin/ezmlm/ezmlm-sub /path/to/list $email"); > > >and that works since I added nobody to the listngr group. But this just >subscribes the person instead of sending them a confirmation message. I >tried sending email to the list-subscribe but there was a problem with the >adding the "FROM: $Email" it might have been qmail being naughty but I can't >tell. Does anyone have this kind of script running that would share the >source?
You may just need to use "From: $Email", case-sensitive.
-- "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 Need Work? Graphic Design: http://L-I-E.com/jobs.htm#GraphicDesign Printer Driver: http://L-I-E.com/jobs.htm#PrinterDriver
attached mail follows:
At 12:13 PM 2/9/00 -0500, you wrote: >While I am sold; I've bought the Core book, talked my isp into installing php >and a few other things but they are still giving me hassles about "why" I don't >go with pearl... I don't know pearl enough to answer. I've seen a list or two >of comparative reasons a while ago but don't have them now...
Because Perl is unreadable.
-- "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 Need Work? Graphic Design: http://L-I-E.com/jobs.htm#GraphicDesign Printer Driver: http://L-I-E.com/jobs.htm#PrinterDriver
attached mail follows:
----- Original Message -----
From: "Richard Lynch" <rlynch
ignitionstate.com>
To: "Floyd Baker" <fbaker
wzrd.com>; <php3
lists.php.net>
Sent: Wednesday, February 16, 2000 12:50 PM
Subject: Re: [PHP3] php vs pearl
> At 12:13 PM 2/9/00 -0500, you wrote: > >While I am sold; I've bought the Core book, talked my isp into installing php > >and a few other things but they are still giving me hassles about "why" I > don't > >go with pearl... I don't know pearl enough to answer. I've seen a list > or two > >of comparative reasons a while ago but don't have them now... > > Because Perl is unreadable. > Ummm...yeah...ok...anyway...we won't open that flame war...
How about:
1) There are lots of features built into the core PHP language that make it easier/faster to develop web applications, like auto importing of form variables, easy DB access, etc.
2) Since the script can be embedded in the page there are context switches the developer has to go through to get a page out the door. You don't get a nasty mess of: print "<HTML><td><B>goo</B>"; print "</TD>" That you can't pull up in an web development editor.
3) From the ISP's perspective, if you use the module version of PHP it will consume a lot less server resources under any kind of load than Perl/CGI.
4) From the ISP's perspective, you can put up workable PHP apps and debug them without really understanding the details of what's going on, (which you really can't say about a perl CGI), so they'll field less support calls.
5) A variation on 2, PHP makes it easier for the talented graphics and layout people to work with the server side programmer types. A not uncommon scenario, is to get a nice professional mockup and the mark it up with PHP to "make it live".
6) Another variation on 2, since there is less context switching it makes it easier to develop more complex apps multi-page applications. Since Perl CGI development is rather awkward you tend to try do as little as possible, and the app tends to take on a "one page then process" look/feel/function.
Brian Huddleston Huddleston Consulting
There are other issues, but I think
attached mail follows:
Richard Lynch <rlynch
ignitionstate.com> writes:
> At 12:13 PM 2/9/00 -0500, you wrote:
> >While I am sold; I've bought the Core book, talked my isp into > >installing php and a few other things but they are still giving me > >hassles about "why" I don't go with pearl... I don't know pearl > >enough to answer. I've seen a list or two of comparative reasons a > >while ago but don't have them now... > > Because Perl is unreadable.
While Perl may not be the most readable language (meaning that it is easier to write unreadable code in Perl than in e.g. PHP3 or Python) it is just so damned nice to use if you have a good understanding of the language. Its syntax is much richer than PHP3's, where everything is accessed through functions. I must admit that I often find programming PHP3 a fairly frustrating experience because I'm used to the flexibility of Perl.
On the other hand, PHP3 isn't meant to be a general scripting language, and it does interact very nicely with web-based forms (GET/POST) and the like, making it very easy to get started on web applications (which is why I use it at all). I also really like the way the code can be mixed with HTML.
Hmm, perhaps I should take a look at ePerl...
Sorry about the semi-rant up there :)
-- Echelon bait: North Korea Panama nuclear World Trade Center DES South Africa Qaddafi Cocaine supercomputer Semtex Bosnia Ft. Meade NORAD New World Order FSF
attached mail follows:
> the language. Its syntax is much richer than PHP3's, where everything > is accessed through functions. I must admit that I often find > programming PHP3 a fairly frustrating experience because I'm used to > the flexibility of Perl. >
The syntax of perl is much richer than php and that is the big problem with
perl. The syntax of perl is just much more complex than necessary. The
following all have significant meaning in perl $_, ~=,
_, $?. In fact, it
would be hard to write a reasonably complex program in perl without using
them. But why??? It's just so much more complex (and therefore prone to
bugs) than necessary. Does a language really need to have a syntax that
includes
_ just to pass arguments to a function?
Also the object oriented implementation of perl is just.... well... very odd. The php object implementation is just...well...very clean.
> On the other hand, PHP3 isn't meant to be a general scripting > language, > True, but I find myself now using it as general purpose scripting language all the time anyway. Just build the cgi version of php and use a "#!/usr/local/bin/php -q" at the top of you script and away you go. There is really no reason I can think of to use perl in my day to day work.
Sorry about the rant as well, but it is a php list and with php defenders on it.
--pk
attached mail follows:
Actually I hate these types of topics as they always compare apples and oranges. Why not adapt and use all the tools avalible. Everything has vices, and everything has it's good points. Use the good in all and you will be a happy little camper.
> -----Original Message-----
> From: Peter Kocks [mailto:peter.kocks
baygate.com]
> Sent: Thursday, 17 February 2000 12:14
> To: Rene H. Larsen; php3
lists.php.net
> Subject: RE: [PHP3] php vs pearl
>
>
>
> > the language. Its syntax is much richer than PHP3's, where
> everything
> > is accessed through functions. I must admit that I often find
> > programming PHP3 a fairly frustrating experience because I'm used to
> > the flexibility of Perl.
> >
>
> The syntax of perl is much richer than php and that is the
> big problem with
> perl. The syntax of perl is just much more complex than
> necessary. The
> following all have significant meaning in perl $_, ~=,
_,
> $?. In fact, it
> would be hard to write a reasonably complex program in perl
> without using
> them. But why??? It's just so much more complex (and
> therefore prone to
> bugs) than necessary. Does a language really need to have a
> syntax that
> includes
_ just to pass arguments to a function?
>
> Also the object oriented implementation of perl is just....
> well... very
> odd. The php object implementation is just...well...very clean.
>
>
> > On the other hand, PHP3 isn't meant to be a general scripting
> > language,
> >
> True, but I find myself now using it as general purpose
> scripting language
> all the time anyway. Just build the cgi version of php and use a
> "#!/usr/local/bin/php -q" at the top of you script and away
> you go. There
> is really no reason I can think of to use perl in my day to day work.
>
>
> Sorry about the rant as well, but it is a php list and with
> php defenders on
> it.
>
> --pk
>
>
>
> --
> 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:
At 12:45 PM 2/14/00 -0000, you wrote: > >I keep on getting the following message when I try to retrieve selected >records from a mySQL database with a SQL query: $Query = "select * from DB >where MONTH(DATE)=1 and ID='15' and CG='4';"; > >Warning: MySQL: Unable to save result set in /file.php3 on line 53
>But when I add LIMIT to the sql query it will bring back the selected >results up to that selected LIMIT. >Any ideas?
Just how big is the un-LIMIT-ed result set?...
If it's too huge, you could be running out of RAM to store it in...
-- "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 Need Work? Graphic Design: http://L-I-E.com/jobs.htm#GraphicDesign Printer Driver: http://L-I-E.com/jobs.htm#PrinterDriver
attached mail follows:
At 04:33 PM 2/12/00 EST, you wrote: >worked except I started getting too many connection errors. My guess is >that the use of pconnect is forcing a 1 to 1 ratio of apache to mysql >processes... Instead of say sharing one handle amongst many apaches.
This is correct, as I understand it: One connection per apache process is how pconnect works.
-- "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 Need Work? Graphic Design: http://L-I-E.com/jobs.htm#GraphicDesign Printer Driver: http://L-I-E.com/jobs.htm#PrinterDriver
attached mail follows:
At 09:17 AM 2/11/00 -0400, you wrote: >Wondering how many people are running the 4.0 engine in >production environments ? Is it safe to do so ?
It's in late Beta, so it's more stable than any Microsoft release, but less stable than an OpenSource release. :-)
>Also if you already have a user base with 3.0, will they >experince major breaks upon the upgrade to 4.0 ?
Minimal changes to source code, if any. See http://php.net/version4/
>If it does cause major breaks, is it possible to run 3.0 >and 4.0 at the same time ?
Yes. And both as Modules on Apache/Linux to boot! Read INSTALL in PHP4 tarball.
-- "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 Need Work? Graphic Design: http://L-I-E.com/jobs.htm#GraphicDesign Printer Driver: http://L-I-E.com/jobs.htm#PrinterDriver
attached mail follows:
At 07:39 AM 2/11/00 -0800, you wrote:
>This message was sent from Geocrawler.com by "AJ" <amk
broadcom.ie>
>Be sure to reply to that address.
>
>Hello all,
>
>I was wondering if anyone had a script that I could include in all my php
pages so that a user
>can click on it and get a printer friendly version of a web page. Like the
one geocrawler use
>
>http://www.geocrawler.com/mail/msg_raw.php3?
>
>Any ideas welcom
You'll need an HTML to PDF converter, and something not unlike:
<?php $file = file($HTTP_REFERER); $html = implode("\n", $file); exec("echo $html | /full/path/to/html2pdf", $results, $errorCode); if ($errorCode){ echo "OS Error: $errorCode<BR>\n"; $br = '<BR>'; } else{ header("Content-Type: application/pdf");//Wrong mime type $br = ''; } while(list(,$line) = each($results)){ echo $line, "$br\n"; } ?>
PS I'll be in Ireland 3/8 through 4/2... :-)
-- "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 Need Work? Graphic Design: http://L-I-E.com/jobs.htm#GraphicDesign Printer Driver: http://L-I-E.com/jobs.htm#PrinterDriver
attached mail follows:
I am tying to use the 'fgetcsv' function. PHP returns function not found. Do I need an include statement?
Raghu
attached mail follows:
At 06:17 PM 2/12/00 +1100, you wrote: >Hi there, > >This is probably a dumb question, but I find it hard >to locate the exact answers from the PHP manual. > >What's the PHP equivalent of the following SSI statement: > ><!-- #exec cgi="name_of_perl_document.cgi" -->
virtual() will work for PHP Module.
For PHP CGI, you would need:
exec("/full/path/to/name_of_perl_document.cgi", $results, $errorCode); while (list(,$line) = each($results)){ echo $line, "<BR>\n"; } if ($errorCode){ echo "OS Error: $errorCode<BR>\n"; }
-- "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 Need Work? Graphic Design: http://L-I-E.com/jobs.htm#GraphicDesign Printer Driver: http://L-I-E.com/jobs.htm#PrinterDriver
attached mail follows:
-----Original Message-----
From: AGC [mailto:acad
accefyn.org.co]
Sent: Tuesday, February 15, 2000 10:43 PM
To: php3
lists.php.net
Subject: [PHP3] php for dummies
where can I find a good php book for some one who like me do not know anything about it.... cheers
-- 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
_______________________________________________________ Site Design, Hosting, and E-Commerce at www.webpipe.net
attached mail follows:
Hi: I am trying to run PHP3 on a Win98 PC using PWS and am having similar problems. I took your advice & tried changing the PHP.INI file, and found it wasn't what I was expecting (I expected it to be loading PHP3.INI based on the readme's. I got rid of all of the PHP3.INI files on my computer & now only have a PHP.INI in the C:\WINDOWS directory, and changed the "highlight.html" value to red, and "phpinfo" responds correctly. I still get a:
--- Fatal error: Call to undefined function: mysql_connect() in C:\Web\index.php3 on line 75 ---however. I do have the extension enabled in the INI file:
--- ;Windows Extensions extension=php3_mysql.dll ---
I have left the "extension_dir" = .\ and tried setting it to the actual directory where all of the DLL's are loaded, using the following variations:
--- extension_dir = "c:\dev\php3" ; extension_dir = c:\dev\php3 ; extension_dir = "c:\dev\php3\" ; extension_dir = c:\dev\php3\ ; ---
It reports the extension_dir correctly, but still I get the error.
Also "phpinfo" reports under PHP_DL that "Dynamic Library support enabled." I'm not sure if that's what I should be looking for, or if I should see something under the "Additional Modules" section - there's nothing about mySQL there. Did whoever compiled the Win32 binary skip a step in defining the various DB functions at compile time - or is it supposed to truly be "dynamic" in the loading of the various modules?
One last thing I'll try is rebooting my machine - though since phpinfo saw the color and extension directory changes, I would expect that it would link to the DLL's if it could.
Thanks in advance for your help,
-- Greg
attached mail follows:
At 11:54 PM 2/10/00 -0500, you wrote: >I'm experimenting with running an external command, and getting bizarre >results. > >#The program >$binary = "/usr/bin/md5sum";
You may need a space at the end, since you cram the binary and data into one big string with no spacing...
>$test1 = escapeshellcmd($dl); >$dl = system ($binary . $test1); > >$test2 = escapeshellcmd($ssn); >$ssn = system ($binary . $test2); > >$test3 = escapeshellcmd($cc); >$cc = system ($binary . $test3); > >$test4 = escapeshellcmd($bank); >$bank = system ($binary . $test4); > >When I run this script, one of these is outputting to the browser, and one >of them is showing up in the table written (later) to MySQL, and two of them >are lost in space apparently..
Doesn't system(), by definition, splat its results to the browser? Use exec().
>I had this working, writing these variables to MySQL without the encryption >function, so I thought it would be simple to replace the values of the >strings with their encrypted values..
For some definition of "simple" :-)
-- "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 Need Work? Graphic Design: http://L-I-E.com/jobs.htm#GraphicDesign Printer Driver: http://L-I-E.com/jobs.htm#PrinterDriver
attached mail follows:
At 09:46 PM 2/13/00 -0500, you wrote:
>
>Nothing's happening, what else can I check?
>
>PHP is reading my php.ini file, and is pointing at /usr/sbin/sendmail -t
>according to the variable dump
>
>I call mail as:
>
>$C_Email = "To: ".$Contact_Email."\n";
>$From = "From: SpamWhack Automated Signup Engine\n";
>$Reply_To = "Reply-to: dvanhorn
spamwhack.com\n";
>$Subject = "Subject: Spamwhack Automated Signup Request\n";
>$Priority = "X-Priority: 1\n";
>$Mailer = "X-Mailer: PHP-4.0b3\n\n";
>$Headers = ($From.$Reply_to.$Mailer.$Priority);
>
>mail ($C_Email, $Subject, $Contact_message, $Headers);
>
>My debug dump shows $Contact_Email as dvanhorn
cedar.net
>and $Contact message has a long string in it, with \n in the appropriate
>places.
>
>The script executes without errors, but no mail ever arrives.
>:(
>
>Is there some way to debug this?
Replace all \n with \r\n to be spec. The double \n\n in your X-Mailer which then ends up before Priority is wrong. The parens for in $Headers are just silly. I *think* it's Reply-To, not Reply-to No "To: " "Subject: " PHP will be adding those for you. I'm assuming the body is set somewhere...
-- "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 Need Work? Graphic Design: http://L-I-E.com/jobs.htm#GraphicDesign Printer Driver: http://L-I-E.com/jobs.htm#PrinterDriver
attached mail follows:
At 11:46 AM 2/10/00 -0300, you wrote: >Hi, i´m looking for a Shopping PHP system... and for a Webmail system >too... >I have PHP 3.11 and MySQL 3.22.27 >does anybody know any program that can be useful
-- "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 Need Work? Graphic Design: http://L-I-E.com/jobs.htm#GraphicDesign Printer Driver: http://L-I-E.com/jobs.htm#PrinterDriver
attached mail follows:
At 09:25 AM 2/17/00 +1100, you wrote: >Yeah and where do we actually get to see the results of the survey??
While there are no sorting/summing features, the number displayed above each menu is the current results for that solution in that category.
So far, it's just a lot of 10s :-^
Apologies in advance for the horrible interface: I was in a hurry.
-- "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 Need Work? Graphic Design: http://L-I-E.com/jobs.htm#GraphicDesign Printer Driver: http://L-I-E.com/jobs.htm#PrinterDriver
attached mail follows:
At 11:20 AM 2/14/00 +0100, you wrote: >What is the best open source "shopping cart" available for php/MsSQL in >terms of ease of implementation, functialities, ease of custumization,...
-- "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 Need Work? Graphic Design: http://L-I-E.com/jobs.htm#GraphicDesign Printer Driver: http://L-I-E.com/jobs.htm#PrinterDriver
attached mail follows:
> I'd like to known if it was possible > to extract the content of a html page > which contain two string , one for the beginning > and an other for the end
Yes, it's possible. You can either brute-force parse through the file using string functions, or use a regular expression that pattern-matches the begin/end tags and returns what's inbetween.
- Tim
attached mail follows:
At 06:00 AM 2/14/00 -0800, you wrote: >I've got a form we anyone post his message, then >a page were his message is reviewn as plain text >and stored in a form hidden variable. Then he >submits again, and i loose everything after >the ' " '. I doent understand it, because in the >page source slashes are added right. looks like >value=" " " ' " test"> ^^^^^^^^^^^^^^^ That's not right...
>What and or where do i have to add addslashes or >stripslashes??
<INPUT NAME=foo VALUE=<?php echo addSlashes($foo);?>>
-- "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 Need Work? Graphic Design: http://L-I-E.com/jobs.htm#GraphicDesign Printer Driver: http://L-I-E.com/jobs.htm#PrinterDriver
attached mail follows:
At 05:28 PM 2/9/00 +0530, you wrote:
> 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 <> 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 Attachment Converted:
>"C:\maildrop\[PHP3] Some clarifications.gif"
Please turn off html-enabled email...
> 1) Which is the default scripting language for php3
PHP3 is the one and only language for PHP3.
>2) Can I use VBScript with php3
No.
> 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.
Yes. *IF* track_vars is on, you have arrays: $HTTP_POST_VARS $HTTP_COOKIE_VARS
Note that most of the time, you don't need these: PHP correctly assumes that most people just want their variables to work, and if you use NAME=foo, then the receiver page will have $foo already set for you.
> 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.
Find the tutorial, and start there.
-- "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 Need Work? Graphic Design: http://L-I-E.com/jobs.htm#GraphicDesign Printer Driver: http://L-I-E.com/jobs.htm#PrinterDriver
attached mail follows:
At 06:15 PM 2/13/00 +0100, you wrote: >them in numerical order. But if I add an arbitrary (larger) integer to the >list, like; 1,2,3,4,9 it stops sorting and stacks the rest of the numnbers >on afterwards without sorting in the 9; 1,2,3,4,9,5,6,7,8...
We can't tell you what's wrong unless you show us how to you add '9' to the array.
-- "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 Need Work? Graphic Design: http://L-I-E.com/jobs.htm#GraphicDesign Printer Driver: http://L-I-E.com/jobs.htm#PrinterDriver
attached mail follows:
At 09:24 AM 2/9/00 -0500, you wrote: >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?
For anything less than 10s of thousands of users, just have one table and leave the extra fields blank for un-paid users. Also simplifies converting an unpaid into a paid user. :-)
With *LOTS* of users, do the extrastuff table.
The LIMIT clause should just go at the end of your query: ... LIMIT $start, 10"
-- "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 Need Work? Graphic Design: http://L-I-E.com/jobs.htm#GraphicDesign Printer Driver: http://L-I-E.com/jobs.htm#PrinterDriver
attached mail follows:
I'm wanting to do an evaluation comparing several possible candidates for our company's internal webserver. We currently have a network of SGI O2's, Octanes and an Origin 2000 which could all be used (though the origin 2000 would be busy doing other things at the same time) and I'm also wondering where a Linux box (Athlon 550-650, 256MB of ram,...) might fit in the price/performance comparison. I'm interested in static html, php parsed, and database access pages and am wondering if there are standard "stress tests" which would give me a good feel for the relative performance of each of these platforms. (the Octane can server 2x the pages of an O2, and the Linux box. Has anyone published (or does anyone have info on) basic rules of thumb for sizing a web server and how can I fairly compare performance between Intel and other Processor architectures where MHz !=MHz. I really hope I don't start a religious war here. I love the SGI boxes for their performance as engineering workstations and the service is fabulous, but I wonder if there's not a better price/performance solution for something as mundane as web serving and database access.
Thanks for your input.
Sincerely, John Parker
-- John Parker, Design Engineer, Snorkel International Ph: 816/676-6419 Fax: 785/989-3556
attached mail follows:
It only occurs when i'm using Netscape 4.08
Internet exploren works fine
Method Not Allowed
The requested method POST is not allowed for the URL /index.html.
Apache/1.3.4 Server at radjiman.dhs.org Port 80
attached mail follows:
When one of my servers running Solaris 2.5 executes the pow function in php3, the Apache server thread dies with a Segmentation Fault (11). pow works fine from my other server running 2.6. Is there some sort of known problem with pow on 2.5? The other math routines (like log and exp) work fine - only pow causes the crash. Apache is 1.3.9, php is 3.0.12.
Any clues?
chas
attached mail follows:
I archive stories on my site via calling them fro MySQL Blobs. I was considering adding a "Download this story in PDF format" feature and upon looking through the PHP Doc's found a dark world as confusing as the plot of the movie "Fear and Loathing in Las Vegas". So I ask you, is setting up PDF support a worthwhile feat, or is it an impossible task left to the gods? The pdf section of the manual reads like it was written by "a man in the depths of a ether binge" in that it references both methods of implementation, pdflib (which I was considering because I'm cheap) and ClibPDF. The documentation seems to randomly go back and forth between the two. . .anyone know of any nice tutorials or less evil documentation?
this is bat country,
Matt "Trollboy" Wiseman
Trollboy
defnet.com
"I wish the world had one throat!!"
-Al Bundy
attached mail follows:
Hi Matt,
you are welcome to enhance the documentation. I haven't seen the movie, but the documentation is not so bad. In the documentation are some references to the original API docs. If you are really interested in using [C]PDFLib support with PHP read the books by Thomas Merz.
-Egon
Besuchen Sie Six auf der CeBIT (24.2.-1.3.) in Halle 10, Stand 425, und auf der Hannover-Messe (20.-25.3.) in Halle 14, Stand J50!
On Wed, 16 Feb 2000, Matt "TrollBoy" Wiseman wrote:
> I archive stories on my site via calling them fro MySQL Blobs. I was > considering adding a "Download this story in PDF format" feature and upon > looking through the PHP Doc's found a dark world as confusing as the plot of > the movie "Fear and Loathing in Las Vegas". So I ask you, is setting up PDF > support a worthwhile feat, or is it an impossible task left to the gods? > The pdf section of the manual reads like it was written by "a man in the > depths of a ether binge" in that it references both methods of > implementation, pdflib (which I was considering because I'm cheap) and > ClibPDF. The documentation seems to randomly go back and forth between the > two. . .anyone know of any nice tutorials or less evil documentation?
attached mail follows:
Yes it's worth it if...: You need to distribute the exact appearance of your original(s) to users of multiplatforms (unix,mac,windoze). To produce the pdf file from your original, you do not necessary need the PHP module. You can produce them offline with the Acrobat software from Adobe (The full product not the reader) or some other software (most of them free, like HTMLDOC, but I recommand Acrobat at about $300). Once you have your pdf files, you can upload them to your server and send them to your users with the header: header("Content-Type: application/pdf"); If you want to put the files as blob in your database, it is probably possible but I have no experience with that, I use the file's address in the DB instead. Now if you want to produce the pdf file on the fly in your server, you will need the PDF modules (But forget it if you are on NT server, there are no pdf dll working at this time for windows, to my knowledge) or, alternatively, a distiller like the Acrobat distiller or PSTILL that will have to be installed on your server.
Message from Alain Samoun
alain
samoun.com
-----Original Message-----
From: Matt "TrollBoy" Wiseman [mailto:trollboy
defnet.com]
Sent: Wednesday, February 16, 2000 12:48 PM
To: php3
lists.php.net
Subject: [PHP3] Is PDF worth it?
I archive stories on my site via calling them fro MySQL Blobs. I was considering adding a "Download this story in PDF format" feature and upon looking through the PHP Doc's found a dark world as confusing as the plot of the movie "Fear and Loathing in Las Vegas". So I ask you, is setting up PDF support a worthwhile feat, or is it an impossible task left to the gods? The pdf section of the manual reads like it was written by "a man in the depths of a ether binge" in that it references both methods of implementation, pdflib (which I was considering because I'm cheap) and ClibPDF. The documentation seems to randomly go back and forth between the two. . .anyone know of any nice tutorials or less evil documentation?
this is bat country,
Matt "Trollboy" Wiseman
Trollboy
defnet.com
"I wish the world had one throat!!"
-Al Bundy
-- 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:
I wasn't trying to put down the documentation, merely expressing my problem of that particular section being beyond my simple Euclidean logic. I was merely asking if there was a more thoroughly explained source out there, as I found the PHP manual confusing on this matter (see my previous sentence) and the PDFLib only seemed to have mention of; Object wrapper for ANSI C++ Java (via Java Native Interface, JNI) Perl Python Tcl Visual Basic (via DLL and Type Library) Mind you I have yet to download the PDFLib and check the included doc's with that, but my basic question is; is it worth it, being adding pdf support in general, at all to try? What I did manage to gleam from the manual is that it was hard and required some hacking, which is a little much for the simple added feature I mentioned in my e-mail.
Sorry if I came off the wrong way,
Matt "Trollboy" Wiseman
Trollboy
defnet.com
"I wish the world had one throat!!"
-Al Bundy
P.S. I highly recommend Fear and Loathing, its a very funny movie.
----- Original Message -----
From: "eschmid" <eschmid+sic
s.netic.de>
To: "Matt "TrollBoy" Wiseman" <trollboy
defnet.com>
Cc: <php3
lists.php.net>
Sent: Wednesday, February 16, 2000 4:09 PM
Subject: Re: [PHP3] Is PDF worth it?
> Hi Matt, > > you are welcome to enhance the documentation. I haven't seen the movie, > but the documentation is not so bad. In the documentation are some > references to the original API docs. If you are really interested in using > [C]PDFLib support with PHP read the books by Thomas Merz. > > -Egon > > Besuchen Sie Six auf der CeBIT (24.2.-1.3.) in Halle 10, Stand 425, > und auf der Hannover-Messe (20.-25.3.) in Halle 14, Stand J50! > > > On Wed, 16 Feb 2000, Matt "TrollBoy" Wiseman wrote: > > > I archive stories on my site via calling them fro MySQL Blobs. I was > > considering adding a "Download this story in PDF format" feature and upon > > looking through the PHP Doc's found a dark world as confusing as the plot of > > the movie "Fear and Loathing in Las Vegas". So I ask you, is setting up PDF > > support a worthwhile feat, or is it an impossible task left to the gods? > > The pdf section of the manual reads like it was written by "a man in the > > depths of a ether binge" in that it references both methods of > > implementation, pdflib (which I was considering because I'm cheap) and > > ClibPDF. The documentation seems to randomly go back and forth between the > > two. . .anyone know of any nice tutorials or less evil documentation? > >
attached mail follows:
Hmmm. . Which is beginning to tip the scale towards the "Not" side, basically, I was thinking I could have a dwnloadable vcersion of my articles (in this case stories), and with as many articles as I archive, storing individual PDF docs would eat up a HUGE amount of space. As for my server its simple RH6.1, and my application would be to call a funciton to generate a common logo-branded header, then to spool the text from the blob into the pdf and deliver to the user after generated.
Maybe next year. Thanks Alain Samoun.
Matt "Trollboy" Wiseman
Trollboy
defnet.com
"I wish the world had one throat!!"
-Al Bundy
----- Original Message -----
From: "alain samoun" <alain
samoun.com>
To: "'Matt "TrollBoy" Wiseman'" <trollboy
defnet.com>; <php3
lists.php.net>
Sent: Wednesday, February 16, 2000 4:18 PM
Subject: RE: [PHP3] Is PDF worth it?
> Yes it's worth it if...:
> You need to distribute the exact appearance of your original(s) to users
of
> multiplatforms (unix,mac,windoze).
> To produce the pdf file from your original, you do not necessary need the
> PHP module. You can produce them offline with the Acrobat software from
> Adobe (The full product not the reader) or some other software (most of
them
> free, like HTMLDOC, but I recommand Acrobat at about $300). Once you have
> your pdf files, you can upload them to your server and send them to your
> users with the header:
> header("Content-Type: application/pdf");
> If you want to put the files as blob in your database, it is probably
> possible but I have no experience with that, I use the file's address in
the
> DB instead.
> Now if you want to produce the pdf file on the fly in your server, you
will
> need the PDF modules (But forget it if you are on NT server, there are no
> pdf dll working at this time for windows, to my knowledge) or,
> alternatively, a distiller like the Acrobat distiller or PSTILL that will
> have to be installed on your server.
>
> Message from Alain Samoun
> alain
samoun.com
>
> -----Original Message-----
> From: Matt "TrollBoy" Wiseman [mailto:trollboy
defnet.com]
> Sent: Wednesday, February 16, 2000 12:48 PM
> To: php3
lists.php.net
> Subject: [PHP3] Is PDF worth it?
>
>
> I archive stories on my site via calling them fro MySQL Blobs. I was
> considering adding a "Download this story in PDF format" feature and upon
> looking through the PHP Doc's found a dark world as confusing as the plot
of
> the movie "Fear and Loathing in Las Vegas". So I ask you, is setting up
PDF
> support a worthwhile feat, or is it an impossible task left to the gods?
> The pdf section of the manual reads like it was written by "a man in the
> depths of a ether binge" in that it references both methods of
> implementation, pdflib (which I was considering because I'm cheap) and
> ClibPDF. The documentation seems to randomly go back and forth between
the
> two. . .anyone know of any nice tutorials or less evil documentation?
>
> this is bat country,
> Matt "Trollboy" Wiseman
> Trollboy
defnet.com
> "I wish the world had one throat!!"
> -Al Bundy
>
>
> --
> 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:
Yes, PDFlib is worth installing. I am using pdflib2.01 and it works great. The php manual has your first example of how to make a pdf. I haven't needed any other functions except those that are used in the example.
I recommend it.
Allen Lee Assistant Sysadmin MissoulaWeb.com
On Wed, 16 Feb 2000, Matt "TrollBoy" Wiseman wrote:
> I archive stories on my site via calling them fro MySQL Blobs. I was
> considering adding a "Download this story in PDF format" feature and upon
> looking through the PHP Doc's found a dark world as confusing as the plot of
> the movie "Fear and Loathing in Las Vegas". So I ask you, is setting up PDF
> support a worthwhile feat, or is it an impossible task left to the gods?
> The pdf section of the manual reads like it was written by "a man in the
> depths of a ether binge" in that it references both methods of
> implementation, pdflib (which I was considering because I'm cheap) and
> ClibPDF. The documentation seems to randomly go back and forth between the
> two. . .anyone know of any nice tutorials or less evil documentation?
>
> this is bat country,
> Matt "Trollboy" Wiseman
> Trollboy
defnet.com
> "I wish the world had one throat!!"
> -Al Bundy
>
>
> --
> 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:
At 03:39 PM 2/12/00 -0000, you wrote: >How can I tell it to use the real file name that's uploaded as opposed to >this strange name it creates on the server? (like pHpwheiu)
>2) $userfile_name : conatins the original name of the file on the >submitter's computer
So you would do:
if (!copy($userfile, "/path/where/you/want/it/and/php/can/write/$userfile_name")){ echo "Copy failed."; exit; }
-- "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 Need Work? Graphic Design: http://L-I-E.com/jobs.htm#GraphicDesign Printer Driver: http://L-I-E.com/jobs.htm#PrinterDriver
attached mail follows:
At 07:37 AM 2/11/00 -0800, you wrote: >use it but same problem as described below:It uploads the file to the tmp directory but doesn't >copy to target directory.Any idea?If you have any other upload script please send it to me > >---------receive.php3------------ > > > ><? > >exec("cp $userfile /path/to/directory/somefile.jpg");
Change this to: copy($userfile, "/path/to/directory/somefile.jpg") or die("Could not copy");
> >unlink($userfile);
-- "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 Need Work? Graphic Design: http://L-I-E.com/jobs.htm#GraphicDesign Printer Driver: http://L-I-E.com/jobs.htm#PrinterDriver
attached mail follows:
At 04:35 PM 2/14/00 +0100, you wrote: >Hi aga