|
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 11 Feb 2000 06:00:01 -0000 Issue 1471
From: php3-digest-help
lists.php.netDate: Fri Feb 11 2000 - 00:00:01 CST
- Next message: php3-digest-help
lists.php.net: "php3 Digest 11 Feb 2000 18:00:01 -0000 Issue 1472"
- Previous message: php3-digest-help
lists.php.net: "php3 Digest 10 Feb 2000 18:00:06 -0000 Issue 1470"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
php3 Digest 11 Feb 2000 06:00:01 -0000 Issue 1471
Topics (messages 75463 through 75560):
phpAds for mSQL ?
75463 by: Didimo Emilio Grimaldo Tunon <grimaldo
panama.iaehv.nl>
PHP3 precompile
75464 by: Didimo Emilio Grimaldo Tunon <grimaldo
panama.iaehv.nl>
75490 by: Steve Edberg <sbedberg
ucdavis.edu>
phtml pages
75465 by: Didimo Emilio Grimaldo Tunon <grimaldo
panama.iaehv.nl>
75470 by: Nathan Benson <phuzz
phactor.org>
GD Library
75466 by: "Chris Clarke" <scautura
theplayingfields.co.uk>
75471 by: Nathan Benson <phuzz
phactor.org>
75478 by: Gregor Welters <gregor
welters.de>
75482 by: Tom Walsh <TWalsh
achieversusa.com>
E-mail URL
75467 by: Mike Harvey <sculptor
ve-studio.com>
75481 by: "Steven Sajous" <ssajous
this.com>
f i l e u p/d o w n l o a d c e n t e r
75468 by: ddhanoa
golden.net
php3 and netscape enterprise server
75469 by: Joe Rice <riceja
water-melon.net>
Time Tracking - Project Management
75472 by: Caleb Shay <shay
apollointeractive.com>
75474 by: <d_neighbors
www.llamacom.com>
75476 by: Caleb Shay <shay
apollointeractive.com>
Bizarre error message
75473 by: "Chris Newman" <chris
lightwood.net>
pdflib
75475 by: Jim Ide <JIde
madentech.com>
75477 by: "Larry Jeannette" <lrj2
pcguys.com>
Problems with PHP/Apache on NT
75479 by: Antares Informatica <jilanik
tin.it>
List of differences
75480 by: "Goforth" <jonathan
emeraldis.com>
75484 by: Damien Mc Kenna <mckenna
wso.net>
PHP Pocket Reference
75483 by: Damien Mc Kenna <mckenna
wso.net>
75487 by: Michael Stearne <mstearne
entermix.com>
75489 by: Damien Mc Kenna <mckenna
wso.net>
I can't make my apache rum php3
75485 by: root <sysop
bbs.mrnet.com.br>
75486 by: "Steven Sajous" <ssajous
this.com>
"Order By" Problem
75488 by: Steve Edberg <sbedberg
ucdavis.edu>
a tale of 3 towers: redundancy sugesstions
75491 by: Vincent Stoessel <vince
digex.net>
75496 by: Nathan Benson <phuzz
phactor.org>
Nested loops, part 2
75492 by: Steff Osborne <sosborne
stanleemedia.com>
75499 by: "Mark Roedel" <roedelm
letu.edu>
xml_parse_into_struct() - how does it work?
75493 by: Paul DuBois <paul
snake.net>
Making Directories and User Rights
75494 by: Thomas Deliduka <thomas
neweve.com>
can an email trigger a script?
75495 by: John Hogan <john.hogan
sparklist.com>
75497 by: Nathan Benson <phuzz
phactor.org>
75498 by: koistinen
sugar-land.oilfield.slb.com (Martin Koistinen)
75526 by: PinkeshP
aol.com
75538 by: "SANIsoft" <tarique
nagpur.dot.net.in>
NT domain authentication
75500 by: John Parker <jparker
snorkelusa.com>
Weird installation PHP3
75501 by: "DANG, Muoi" <mdang
link.com.au>
time...server<>local time
75502 by: Randi Andersen <voxra
online.no>
75507 by: "Peter Sorger" <sorgo
cool.sk>
75510 by: Randi Andersen <voxra
online.no>
length of data form SQL
75503 by: Martin Tiscornia <mtiscornia
museoabasto.org.ar>
75509 by: "Steven Sajous" <ssajous
this.com>
PHP4b3 & Apache 1.3.11 on Linux - getting download of .php!
75504 by: Richard Lynch <rlynch
ignitionstate.com>
PHPLIB and framesets
75505 by: Richard Lynch <rlynch
ignitionstate.com>
pre-loading php code
75506 by: Richard Lynch <rlynch
ignitionstate.com>
Help: PHP Extension MYSQL (Redhat 6.0 linux)
75508 by: "Keith Parsons" <kparsons
glasscity.net>
PGPMail
75511 by: Chad Cunningham <ccunning
math.ohio-state.edu>
problem php.cgi with mysql
75512 by: Richard Lynch <rlynch
ignitionstate.com>
Problem with copy()
75513 by: Richard Lynch <rlynch
ignitionstate.com>
problem with mail()...
75514 by: Richard Lynch <rlynch
ignitionstate.com>
recursive DB fetch
75515 by: Richard Lynch <rlynch
ignitionstate.com>
REQUEST_URI problem (I think)
75516 by: Richard Lynch <rlynch
ignitionstate.com>
75518 by: Philip Strnad <pdstrnad
syr.edu>
Compiling PHP 4B3: Exhausted virtual memory
75517 by: Gerhard Hoogterp <Gerhard
frappe.iaf.nl>
Can't Start PHP Debugger
75519 by: "Jose de Leon" <jadiel
thevision.net>
mcal problem
75520 by: Geoffrey Makstutis <gm
51pct.com>
Preserving Table BGcolor in IE..
75521 by: "William X. Kerber" <dgoa
ou.edu>
function output problem
75522 by: "Brian R" <brianr
rochester.rr.com>
Image functions
75523 by: "Renato Lins" <thebest
information4u.com>
fopen() problem
75524 by: "Scott Genevish" <SCOTTGE
kinkos.com>
Where else is PHP.INI ?
75525 by: "Samantha Savvakis" <samsa
cfs.net.au>
75528 by: "Samantha Savvakis" <samsa
cfs.net.au>
PHP Debugger
75527 by: "Jose de Leon" <jadiel
thevision.net>
Perl vs PHP with MySQL
75529 by: Chad Cunningham <ccunning
math.ohio-state.edu>
75533 by: garyb
fxt.com
httpd.h
75530 by: Mario Luiz Dourado <mdourado
usa.net>
75532 by: "Brandt Everett" <everett
bentonrea.com>
PHP integrate with Microsoft IIS 3.0/4.0
75531 by: "peter kok" <aoypcc
hotmail.com>
my most often made stupid mistakes, just for your viewing pleasure!
75534 by: Lars Torben Wilson <torben
pinc.com>
The and operator doesn't work as I expect it, what's wrong?
75535 by: "Mark Nold" <MarkN
awi.com.au>
75550 by: Brian Clark <brianj
ais.ais-gwd.com>
Help on Apache install on WinNT Required
75536 by: "Mark Nold" <MarkN
awi.com.au>
Splitting up XMLified string
75537 by: "Manuel Lemos" <mlemos
acm.org>
75549 by: Paul DuBois <paul
snake.net>
75557 by: "Manuel Lemos" <mlemos
acm.org>
Parsing CSV
75539 by: "SANIsoft" <tarique
nagpur.dot.net.in>
searching MySQL for numbers
75540 by: Richard Lynch <rlynch
ignitionstate.com>
simple array stuff
75541 by: Richard Lynch <rlynch
ignitionstate.com>
Static member variables?
75542 by: Richard Lynch <rlynch
ignitionstate.com>
Stop auto quoting
75543 by: Richard Lynch <rlynch
ignitionstate.com>
Variable Order Input Fields Problem1
75544 by: Richard Lynch <rlynch
ignitionstate.com>
Fw: PHP3, LDAP with Apache compile Errors
75545 by: Perry J. Blalock <perryb
badger1.net>
No cache pages
75546 by: "Yuhsaku Godai [Ronin]" <ronin
acemedia.com.tw>
75548 by: "destiney" <webmaster
destiney.com>
PHP scripts outside the server tree
75547 by: "Dave VanHorn" <dvanhorn
cedar.net>
75551 by: Lars Torben Wilson <torben
pinc.com>
75552 by: "Dave VanHorn" <dvanhorn
cedar.net>
textfiles or MySQL
75553 by: "Rossi Designs" <webmaster
rossidesigns.net>
Using variables for URL's
75554 by: damonp - list <damonp-list
siliconsys.com>
75556 by: Philip Strnad <pdstrnad
syr.edu>
Running an external command
75555 by: "Dave VanHorn" <dvanhorn
cedar.net>
Page contained no data spurious error
75558 by: Didimo Emilio Grimaldo Tunon <grimaldo
panama.iaehv.nl>
75559 by: Brian Clark <brianj
ais.ais-gwd.com>
Aggregate query results from PHP and psql differ
75560 by: "Peter H. Lemieux" <phl
cyways.com>
Administrivia:
To subscribe to the digest, e-mail:
php3-digest-subscribe
lists.php.net
To unsubscribe from the digest, e-mail:
php3-digest-unsubscribe
lists.php.net
To post to the list, e-mail:
php3
lists.php.net
----------------------------------------------------------------------
attached mail follows:
Hi *,
I would like to have a banner system with PHP3, I have searched
and the only thing I found was phpAds. phpAds seems quite fine
to me, but 'unfortunately' (for me) it is written for MySQL
and my provider uses mSQL :-(.
So the question is, has anybody ported this to mSQL? or know
of a similar and functional mSQL alternative? I have been
trying to port it but I am not familiar with MySQL. Since
I see no design document I am a bit lost at doing the things
I don't know about :-)
TIA,
Emilio
--
__o "Admit nothing, deny everything, demand proof. :)"
_`\<,_ -James Ebbs
___(*)/_(*)____.___o____..___..o...________ooO..._____________________
D. Emilio Grimaldo Tunon
http://www.iaehv.nl/users/grimaldo/
http://www.iaehv.nl/users/grimaldo/cv/
http://www.iaehv.nl/users/grimaldo/panama.html
http://www.iaehv.nl/users/grimaldo/Linux/
http://www.planetall.com/main.asp?cid=6226512 Contact Information
attached mail follows:
Hi, I have seen that PHP4 does support some precompiling that would allow to distribute 'bytecode' (something like that at least) instead of PHP3 source. This is a nice feature. Recently when running through the archives or the docs I read something about PHP3 supporting 'precompiling'. Is that true? how good or bad is it? how is it done?
I have rebuilt the Red Hat package to include mSQL support but I didn't see any way to also build the CGI version which I might use for quick syntax checks. Any ideas?
TIA, Emilio
--
__o "Admit nothing, deny everything, demand proof. :)"
_`\<,_ -James Ebbs
___(*)/_(*)____.___o____..___..o...________ooO..._____________________
D. Emilio Grimaldo Tunon
http://www.iaehv.nl/users/grimaldo/
http://www.iaehv.nl/users/grimaldo/cv/
http://www.iaehv.nl/users/grimaldo/panama.html
http://www.iaehv.nl/users/grimaldo/Linux/
http://www.planetall.com/main.asp?cid=6226512 Contact Information
attached mail follows:
At 7:05 PM +0100 2/10/00, Didimo Emilio Grimaldo Tunon wrote: >Hi, > I have seen that PHP4 does support some precompiling that would > allow to distribute 'bytecode' (something like that at least) > instead of PHP3 source. This is a nice feature. Recently when > running through the archives or the docs I read something about > PHP3 supporting 'precompiling'. Is that true? how good or > bad is it? how is it done? > > I have rebuilt the Red Hat package to include mSQL support > but I didn't see any way to also build the CGI version which > I might use for quick syntax checks. Any ideas? > > TIA, > Emilio >-- > __o "Admit nothing, deny everything, demand proof. :)" > _`\<,_ -James Ebbs >___(*)/_(*)____.___o____..___..o...________ooO..._____________________
Short answer:
No
Longer answer:
There was a pretokenizer built in to PHP3 a number of versions ago, but it didn't add any real security and it didn't add any appreciable speedup; I don't think anyone uses it, it hasn't been supported, it may even be broken in latest PHP3 versions. There's a php commandline option to pretokenize, but i don't recall it; try php --help.
But, refer back to the short answer...for all practical purposes -
No.
- steve
+---------------- Splurk! Glort! Klikrunk! Ploip! Katoong!---------------+
| Steve Edberg University of California, Davis |
| sbedberg
ucdavis.edu (530)754-9127 |
| Computer Consultant http://aesric.ucdavis.edu/ |
+------------------ Don Martin 18 May 1931 - 7 Jan 2000 -----------------+
attached mail follows:
Sorry for this flurry of postings but I am in a hurry and haven't found my answers so far....
I use Apache with PHP3 on RH6.0. I have been trying to find out what are the .phtml pages without success. Whenever I try to access a .phtml page it gets converted to application-php3 or something like that and instead of processing it, it is offered for download :'(. Is this a deprecated extension?
Also, in some example in a web site the guy mentioned that you could use PHP3 with SSI but I can't figure out what he really meant. If I have a .shtml or .html page it will not recognize <?php tags/code. If I use .php3 it does which is also what I would expect. I thought .phtml would allow to use php3 code inside as well, for example to use auto-language selection :-) Any ideas or thoughts on this?
Thanks in advance, emilio
--
__o "Admit nothing, deny everything, demand proof. :)"
_`\<,_ -James Ebbs
___(*)/_(*)____.___o____..___..o...________ooO..._____________________
D. Emilio Grimaldo Tunon
http://www.iaehv.nl/users/grimaldo/
http://www.iaehv.nl/users/grimaldo/cv/
http://www.iaehv.nl/users/grimaldo/panama.html
http://www.iaehv.nl/users/grimaldo/Linux/
http://www.planetall.com/main.asp?cid=6226512 Contact Information
attached mail follows:
Didimo,
look at your httpd.conf. it will have a line called AddType (for PHP), that tells apache to use the PHP module to parse those documents. if you were to add .phtml to the end of the list (you would probably want to add it to the DirectoryIndex option too.), restart apache and your problem would be fixed.
so if you want php to parse .html, .php3, and .phtml files, the end of your PHP AddType line would look like this:
.html .php3 .phtml
hope this helps.
On Thu, 10 Feb 2000, Didimo Emilio Grimaldo Tunon wrote:
> Sorry for this flurry of postings but I am in a hurry and haven't
> found my answers so far....
>
> I use Apache with PHP3 on RH6.0. I have been trying to find out
> what are the .phtml pages without success. Whenever I try to
> access a .phtml page it gets converted to application-php3 or
> something like that and instead of processing it, it is offered
> for download :'(. Is this a deprecated extension?
>
> Also, in some example in a web site the guy mentioned that you
> could use PHP3 with SSI but I can't figure out what he really
> meant. If I have a .shtml or .html page it will not recognize
> <?php tags/code. If I use .php3 it does which is also what I
> would expect. I thought .phtml would allow to use php3 code
> inside as well, for example to use auto-language selection :-)
> Any ideas or thoughts on this?
>
> Thanks in advance,
> emilio
> --
> __o "Admit nothing, deny everything, demand proof. :)"
> _`\<,_ -James Ebbs
> ___(*)/_(*)____.___o____..___..o...________ooO..._____________________
> D. Emilio Grimaldo Tunon
> http://www.iaehv.nl/users/grimaldo/
> http://www.iaehv.nl/users/grimaldo/cv/
> http://www.iaehv.nl/users/grimaldo/panama.html
> http://www.iaehv.nl/users/grimaldo/Linux/
> http://www.planetall.com/main.asp?cid=6226512 Contact Information
>
> --
> 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
-- Nathan Benson ------------- http://www.phactor.org/Me spell chucker work grate. Need grandma chicken.
attached mail follows:
Silly question time...
Is there any place/where I can get hold of a copy of the GD library? Yup, I know I can get the current version, but I was wondering about the version with GIF stuff in it... Yes, I know PNGs are better, but... There's a slight technical hitch when it comes to viewing PNG files in not-so-up-to-date browsers... It don't work!
Thanks for any help...
Chris Clarke.
attached mail follows:
Chris,
i believe the site is http://www.boutell.com/, and i believe the GIF support has been changed to PNG for legal reasons. If you go to the GD site, it tells you why there (or it used too). hope this helps.
On Thu, 10 Feb 2000, Chris Clarke wrote:
> Silly question time...
>
> Is there any place/where I can get hold of a copy of the GD library?
> Yup, I know I can get the current version, but I was wondering about the
> version with GIF stuff in it... Yes, I know PNGs are better, but... There's
> a slight technical hitch when it comes to viewing PNG files in
> not-so-up-to-date browsers... It don't work!
>
> Thanks for any help...
>
> Chris Clarke.
>
>
>
> --
> 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
-- Nathan Benson ------------- http://www.phactor.org/Me spell chucker work grate. Need grandma chicken.
attached mail follows:
>version with GIF stuff in it... Yes, I know PNGs are better, but... There's >a slight technical hitch when it comes to viewing PNG files in >not-so-up-to-date browsers... It don't work!
right, quicktime-plugin is needed.
mit freundlichen Grüßen,
Gregor Welters
----------------------------- Welters PC-Service, Grafenberger Allee 81, 40237 Düsseldorf, Deutschland
Tel: 0211/9660096 Mobil: 0173/2776469 Fax: 0211/9660093
mailto: gwelters
welters.de
look at: http://www.welters.de
attached mail follows:
FYI: If you are running RedHat 6.x it has the GD 1.3 module installed with the system.
The 1.3 is the last known good version to utilize GIF manipulation.
So that is a place to start... If you have RedHat that is...
Tom Walsh Webmaster Achievers Unlimited, Inc.
> -----Original Message-----
> From: Chris Clarke [mailto:scautura
theplayingfields.co.uk]
> Sent: Thursday, February 10, 2000 12:44 PM
> To: php list
> Subject: [PHP3] GD Library
>
>
> Silly question time...
>
> Is there any place/where I can get hold of a copy of the GD library?
> Yup, I know I can get the current version, but I was
> wondering about the
> version with GIF stuff in it... Yes, I know PNGs are better,
> but... There's
> a slight technical hitch when it comes to viewing PNG files in
> not-so-up-to-date browsers... It don't work!
>
> Thanks for any help...
>
> Chris Clarke.
>
>
>
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to
> php3-unsubscribe
lists.php.net
> To subscribe to the digest, e-mail:
> php3-digest-subscribe
lists.php.net
> To search the mailing list archive, go to:
http://www.php.net/mailsearch.php3
To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
I have a billing system set up for giving clients access to their statements, etc(http://ve-studio.com/wb/). If I go to one of these statements (eg: http://ve-studio.com/wb/client_page.phtml?name_user=test&pass=testpass&todo=state&B1=Submit) I can e-mail this to my client and they will get it as an HTML attachment in their e-mail.
What I would like to do is use the MAIL() function to send this e-mail, preferably with the above mentioned content in the body instead of as an attachment. This way I can set up a loop to send all my invoices at once instead of one at a time.
Being a newbie, a real life example would be appreciated.
Thanx.
Mike
-- MICHAEL R. HARVEY <Sculptor> Sculpture, Web Creation, Craft, Jewelry, New Product Innovations and Development. http://www.ve-studio.com Ph: 914-279-8295
attached mail follows:
Well first of all what is the version of php that you are using?
second, what ever the version the way I always do it is by building
variables for the parameters that the mail() function takes instead of
putting strings in the parens. What I mean is that I neve do
mail("foo
here.com","hello there","come an check your statement at
http://ve-studio.com/wb/client_page.phtml?name_user=test&pass=testpass&todo=
state&B1=Submit");
instead what I would do is:
$to_address = "foo
here.com";
$subject = "Hello there";
$message = "Please come check your account at
http://ve-studio.com/wb/client_page.phtml?name_user=test&pass=testpass&todo=
state&B1=Submit";
mail($to_address,$subject,$message);
if you do that inside a loop of some sort that would loop as many times as you have addresses to send mail to, you can see what can be done with this method
-----Original Message-----
From: Mike Harvey [mailto:sculptor
ve-studio.com]
Sent: Thursday, February 10, 2000 1:02 PM
To: php3
lists.php.net
Subject: [PHP3] E-mail URL
I have a billing system set up for giving clients access to their statements, etc(http://ve-studio.com/wb/). If I go to one of these statements (eg: http://ve-studio.com/wb/client_page.phtml?name_user=test&pass=testpass&todo= state&B1=Submit) I can e-mail this to my client and they will get it as an HTML attachment in their e-mail.
What I would like to do is use the MAIL() function to send this e-mail, preferably with the above mentioned content in the body instead of as an attachment. This way I can set up a loop to send all my invoices at once instead of one at a time.
Being a newbie, a real life example would be appreciated.
Thanx.
Mike
-- MICHAEL R. HARVEY <Sculptor> Sculpture, Web Creation, Craft, Jewelry, New Product Innovations and Development. http://www.ve-studio.com Ph: 914-279-8295-- 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:
does anyone happen to have any upload/download scripts hanging around (http)..
like, a file download/upload center, keep track of the number of files downloaded, etc.... no sense in coding one from scratch...
- D
attached mail follows:
Sorry i posted before i RTFM. found all i need to know. thanks, joe
Joe Rice(riceja
water-melon.net)
Thu, Feb 10, 2000 at 12:46:55PM -0500:
> Hi,
> I was wondering if there is any php3/4 module/plugin for
> netscape server?
>
> thanks,
> joe
>
> --
> 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:
Well, it's far from pretty, a lot of things are hard coded and there is no commenting or documentation (though I may write some now), but a copy of my time sheet program is available at ftp://204.1.241.133/pub/TimeSheets-0.1.tar.gz
If anyone has any questions, feel free to email me at cshay
apolloi.com
ad-hoc readme.txt ---------
This was never really designed for the rest of the world to see, so it's not nearly as nice as it could be, and a lot of things are hard coded. It assumes that the mysql database is running on localhost and that there is a db called "TimeSheets" The login/password for the db is configurable in "db.inc". Authentication/identification is via .htaccess (I use $REMOTE_USER all over the place) basic authentication.
The required tables are:
CREATE TABLE Projects ( UID int(11) unsigned DEFAULT '0' NOT NULL auto_increment, Client int(11) unsigned DEFAULT '0' NOT NULL, Text text NOT NULL, PRIMARY KEY (UID), UNIQUE UID (UID) );
CREATE TABLE Clients ( UID int(11) unsigned DEFAULT '0' NOT NULL auto_increment, Client varchar(20) NOT NULL, PRIMARY KEY (UID), UNIQUE UID (UID) );
CREATE TABLE Sheets ( UID int(11) unsigned DEFAULT '0' NOT NULL auto_increment, User varchar(50) NOT NULL, Hours decimal(4,2) unsigned zerofill DEFAULT '0.00' NOT NULL, Description text NOT NULL, FlatHourlyProject enum('Flat','Hourly','Project') DEFAULT 'Hourly' NOT NULL, Date date DEFAULT '0000-00-00' NOT NULL, Type enum('Design','Programming','Video','Creative','Flash','AcctMgmt') DEFAULT 'Design' NOT NULL, Client int(11) unsigned DEFAULT '0' NOT NULL, Project int(11) unsigned DEFAULT '0' NOT NULL, PRIMARY KEY (UID), UNIQUE UID (UID) );
You MUST use basic auth currently because it requires $REMOTE_USER to even work. The only table you need to manually add any info to is Clients. Just add the names of your clients in here.
It doesn't take into account ANY security since it was designed for an intranet, but tightening it up would be relatively minor.
The user in db.inc needs Select, Insert, Update, and Delete priveledges on the db. A lot of things are hard coded to saying "Apollo" (the company I work for) and the billing types (Flat/Hourly/Project) are hard coded, but adding/changing them shouldn't be too big a deal. If you have any questions please feel free to email me. It's not pretty, but it's probably a good start to a more full featured program. If you make any improvements to it please email me the diffs. (GPL, yadda yadda yadda, Open Source, blah blah blah)
Caleb Shay
cshay
apolloi.com
-------
"Bernard Varaine (Digital Objects Ltd)" wrote:
>
> Caleb,
>
> I am also in the process to write one for our internal use , and will be very
> much interrested to have a look on the one you wrote.(if it is not a problem
> for you).
>
> Thank in Advance
>
> Bernard Varaine Digital Objects Ltd
>
> Phone:+64 25 2777 843 152 Lone Kauri Road
> Fax : +64 9 8128 368 Karekare
> www.digitalobjects.co.nz Auckland, New Zealand
>
> -- Thawte web of Trust Notary ( http://www.thawte.com )--
> ----- Original Message -----
> From: Caleb Shay <shay
apollointeractive.com>
> To: <php3
lists.php.net>
> Sent: Thursday, February 10, 2000 2:28 PM
> Subject: Re: [PHP3] Re: Time Tracking - Project Management
>
> > I wrote one for my company. I can send you a tar of it if you'd like.
> It's not documented at all, but it could give you some ideas.
> >
> > Caleb Shay
> >
> > Mark Nold wrote:
> >
> > > I have spent some time thinking about something similar. The only hints i
> can give you so far is look at something called jGantt (try www.gamelan.com)
> which is a fantastic Java app for displaying Gantt charts. Its a bit pricey
> but i think it'll be worth it. Or you could write MS Project MPX files (which
> are just text files) which i havent quite worked out the format just yet.
> > >
> > > mn
> > >
> > > >>> <PinkeshP
aol.com> 02/10 1:06 am >>>
> > > 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.
> > >
> > > --
> > > 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:
The best way to do this is to GPL it. :)
-Derek
On Thu, 10 Feb 2000, Tom Salinsky wrote:
> Everyone's been very nice about this app, which considering it's the first
> thing I've ever done in php is very gratifying.
>
> I want to tidy up the existing code a bit, there are too many kludges and
> too many occasions where I've skinned the same cat in different ways.
>
> I wonder if anyone on here would like to critique the code and point out any
> errors I might have made, or easier ways of doing things.
>
> What else would I need to know to be a 'real' php developer? (my existing
> skills: HTML, JavaScript, PhotoShop. No Perl, no Unix, no C++).
>
> Tom
> ===============================
> t: 01865 251213 f: 01865 250845
> e: tom.salinsky
burnthill.co.uk
> w: http://www.burnthill.co.uk
> ===============================
> ----- Original Message -----
> From: Erik Mathy <erik
butlerandco.com>
> To: Tom Salinsky <tom.salinsky
burnthill.co.uk>
> Sent: 10 February 2000 4:33
> Subject: Re: [PHP3] Re: Time Tracking - Project Management
>
>
> > I have to agree, that is very nice!
> >
> > Well done! If you ever make the source available for download please let
> me
> > know. I find myself juggling a few million things at a time nowadays and
> > your app would help me keep my sanity intact.
> >
> > Again, good work!
> > - 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:
To deal with this same problem I made people choose a client on an initial page first and then the next page has everything else (include the jobs/projects).
Caleb Shay
Tom Salinsky wrote:
>
> It won't on the guest login, because time recording is disabled.
>
> I've tried to keep javascript to a minimum, but it was the only way to deal
> with the client and job drop down boxes.
>
> ===============================
> t: 01865 251213 f: 01865 250845
> e: tom.salinsky
burnthill.co.uk
> w: http://www.burnthill.co.uk
> ===============================
> ----- Original Message -----
> From: Maarten Stolte <M.Stolte
Samhoud.nl>
> To: 'Tom Salinsky' <tom.salinsky
burnthill.co.uk>
> Sent: 10 February 2000 4:25
> Subject: RE: [PHP3] Re: Time Tracking - Project Management
>
> > don't know what errors, but the button didn't change to 'stop' for
> example.
> >
> > -----Original Message-----
> > From: Tom Salinsky [mailto:tom.salinsky
burnthill.co.uk]
> > Sent: Thursday, February 10, 2000 5:32 PM
> > To: php list
> > Subject: Re: [PHP3] Re: Time Tracking - Project Management
> >
> >
> > > I tried it with IE, but the javascript b0rked a bit..
> >
> > What Javascript errors did you get and what were you doing?
> >
> > ===============================
> > t: 01865 251213 f: 01865 250845
> > e: tom.salinsky
burnthill.co.uk
> > w: http://www.burnthill.co.uk
> > ===============================
> >
> >
> > --
> > PHP 3 Mailing List <http://www.php.net/>
> > To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
> > To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
> > To search the mailing list archive, go to:
> > http://www.php.net/mailsearch.php3
> > To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
> --
> 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 is caused by incorrect line-endings for the operating system. > You probably didn't upload your files in ASCII mode.
Strange... though the files may have been uploaded in binary, I have edited them with vi on the actual server since.
Does that still make a difference?
Chris
attached mail follows:
>Then you don't have pdf support in php.
Sorry, but I don't understand. How can I add pdf support to php? Do I need to reconfigure and re-make php? If so, how?
Jim Ide
----------
From: Uwe Steinmann [SMTP:steinm
majestix.fernuni-hagen.de]
Sent: Thursday, February 10, 2000 12:29 PM
To: Jim Ide
Cc: Uwe Steinmann; php3
lists.php.net
Subject: Re: [PHP3] pdflib
On Thu, Feb 10, 2000 at 09:27:36AM -0500, Jim Ide wrote: > >Are you sure pdf support is available in your version of php? > > Please pardon my ignorance - how can I determine this? > > >Does phpinfo() list the pdf extension? > > Under the Apache Environment section, variable HTTP_ACCEPT shows the value > "image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png, */*". > "Accept" under the HTTP Headers Information section shows same values. > Netscape could not find the string "pdf" in the phpinfo() result page. Then you don't have pdf support in php.
Uwe
--
Uwe.Steinmann
fernuni-hagen.de
Tel: +2331 987 4528 Fax: +2331 987 375
attached mail follows:
The instructions for re-compiling/installing PHP are at http://www.php.net and in the INSTALL document that comes with the distribution (see above link). If you do not have access to re-compiling/installing PHP then you will not be able to add pdf (or any other) support not already provided.
> >Then you don't have pdf support in php. > > Sorry, but I don't understand. How can I add pdf support to php? Do I need > to reconfigure and re-make php? If so, how? > > Jim Ide >
attached mail follows:
Hi All, I just have installed Apache (1.3.9) on NT and PHP (3.0.14). Both work fine separately, but when I put this HTML file in c:\apache\htdocs
<html> <head> <title>Example</title> </head> <body> Windows somwtimes works! <? print "Hi, I'm a PHP script!"; ?> </body> </html>
and call it from the browser I have only: 'Windows sometimes works!' and not 'Hi, I'm a PHP script!'
# Some lines from httpd.conf ServerRoot "c:/apache" Port 80 DocumentRoot "c:/apache/htdocs" DefaultType text/plain ScriptAlias /cgi-bin/ "c:/apache/cgi-bin/" AddType application/x-httpd-php3 .php3 .html AddType text/html .html Action application/x-httpd-php3 "/php3/php.exe"
# From c:\winnt\php3.ini include_path = c:\php3 extension_dir = c:\php3
What did I miss? Thank you.
-- <jk> ____________________________________ http://space.tin.it/scuola/jkhaldi/
attached mail follows:
Please forgive me if this is a very obvious question, but I have been unable to find anything about it. Is there any location where the changes are listed between the different releases of PHP. I have been testing a few small scripts on 3.0.10 where they function perfectly, but when I put them on the server running 3.0.8, they do not function at all. As far as I can tell I have all the php3.ini setting are the same, so I figure the difference must lie in the release version. If such a listing exists, would someone please tell me where to find it, or if you know of anything else that could cause problems.
thank you very much in advance
Jonathan Goforth
jonathan
emeraldis.com
attached mail follows:
On 2/9/00 1:17:58 PM, "Goforth" wrote: > Please forgive me if this is a very obvious question, but I have been unable > to find anything about it. Is there any location where the changes are > listed between the different releases of PHP.
Try either the CHANGELOG or the NEWS file, depending on which is present.
Damien Mc Kenna Keene State College student mckenna
crosswinds.net
Married to Jen http://www.crosswinds.net/~mckenna ICQ:17066133
attached mail follows:
On 2/9/00 3:56:27 PM, rasmus
php.net wrote:
> There isn't much to this book. It is just a quick reference with a couple
> of introductory chapters and a few examples scattered throughout.
Which is perfect for my current needs.
> And yes, I'll do one for PHP 4 sometime after PHP 4 is released.
Excellent! Can't wait!
Damien Mc Kenna Keene State College student mckenna
crosswinds.net
Married to Jen http://www.crosswinds.net/~mckenna ICQ:17066133
attached mail follows:
Damien Mc Kenna wrote:
> On 2/9/00 3:56:27 PM, rasmus
php.net wrote:
> > There isn't much to this book. It is just a quick reference with a couple
> > of introductory chapters and a few examples scattered throughout.
>
> Which is perfect for my current needs.
>
> > And yes, I'll do one for PHP 4 sometime after PHP 4 is released.
>
> Excellent! Can't wait!
>
For the book or the PHP 4 release? :-)
>
attached mail follows:
On 2/10/00 3:44:29 PM, Michael Stearne wrote: > > > And yes, I'll do one for PHP 4 sometime after PHP 4 is released. > > Excellent! Can't wait! > > For the book or the PHP 4 release? :-)
Both of course :-)
Damien Mc Kenna Keene State College student mckenna
crosswinds.net
Married to Jen http://www.crosswinds.net/~mckenna ICQ:17066133
attached mail follows:
hi
I have a RedHat Linux 6.0 and I getting problems for make the instalation via rpm of the module php3 of apache on my sistem, I do the instalation process completly ,but when I link the .php3 document I get the messages "no data in the document " or it simply don't load.
help-me please!
attached mail follows:
More info would be helpfull
I have done this a lot on redhat no problems, maybe I can help.
-----Original Message-----
From: root
sl.setelagoas.com.br [mailto:root
sl.setelagoas.com.br]On
Behalf Of root
Sent: Thursday, February 10, 2000 3:34 PM
To: php3
lists.php.net
Subject: [PHP3] I can't make my apache rum php3
hi
I have a RedHat Linux 6.0 and I getting problems for make the instalation via rpm of the module php3 of apache on my sistem, I do the instalation process completly ,but when I link the .php3 document I get the messages "no data in the document " or it simply don't load.
help-me please!
-- 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:
At 1:00 PM -0800 2/10/00, Paul Allen wrote: >Hi there, > >if i have the following query: > >$query="select * from mytable where aaa='$var' ORDER BY Value LIMIT 5"; > >the result is in THIS ORDER: > >21000 >20000 >16000 >15000 >100000 > >WEIRD NO ??? > >Anyone?? > >Regards >
(1) What is the column you're showing here...is that 'Value' ?
(2) What database? If mySQL, have you isamchk'ed (or myisamchk'ed, if appropriate) the table to make sure it's not corrupted.
What that sort order looks to me is if you're treating a numeric value as a string and sorting in descending order, but with the $query you've shown that isn't the case.
This might be more of an issue for the appropriate database mailing list...
- steve
+---------------- Splurk! Glort! Klikrunk! Ploip! Katoong!---------------+
| Steve Edberg University of California, Davis |
| sbedberg
ucdavis.edu (530)754-9127 |
| Computer Consultant http://aesric.ucdavis.edu/ |
+------------------ Don Martin 18 May 1931 - 7 Jan 2000 -----------------+
attached mail follows:
Hello, I have seperated my sites' php/apache, mysq1 and realaudio server unto nice seperate new pentium III towers running tredhat 6.1 and for the last 3 weeks I was pretty damn pround of myself. Site traffic is up and no outages since the move. Until today when the webserver died and had to be cold rebooted. the standalone web server refused connections via web or telnet put still responded to pings. That prevented me from using the quickest solution to the problem: reactivate the old monolithic box with the www Ip address. I had to change DNS which took hours to propogate to the new address. Is there a way to remotely reboot server even if you can't log into it. Anyone got any cool scripts to share? I know this a little off topic but you guys KNOW stuff. Email me privately if you don't want to clutter the list. But I need suggestions as my boss was not happy with the outage. Thanks in advance
-- Vincent Stoessel
attached mail follows:
Vincent,
There are hardware cards called "Watchdog Cards" which reboot machines that stop responding, and I know the linux kernel has support for software watchdog kind of stuff. maybe that will be of some help to you. anyone else have any ideas? corrections? i don't know much about them, but i know they exist.
On Thu, 10 Feb 2000, Vincent Stoessel wrote:
> Hello,
> I have seperated my sites' php/apache, mysq1 and realaudio server unto nice
> seperate new pentium III towers running tredhat 6.1 and for the last 3 weeks
> I was pretty damn pround of myself. Site traffic is up and no outages
> since the move. Until today when the webserver died and had to be
> cold rebooted. the standalone web server refused connections via web or telnet
> put still responded to pings. That prevented me from using the quickest solution
> to the problem: reactivate the old monolithic box with the www Ip address.
> I had to change DNS which took hours to propogate to the new address.
> Is there a way to remotely reboot server even if you can't log into it.
> Anyone got any cool scripts to share?
> I know this a little off topic but you guys KNOW stuff.
> Email me privately if you don't want to clutter the list. But I need
> suggestions as my boss was not happy with the outage.
> Thanks in advance
> --
> Vincent Stoessel
>
> --
> 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
-- Nathan Benson ------------- http://www.phactor.org/Me spell chucker work grate. Need grandma chicken.
attached mail follows:
Grrrr. I rewrote my script with the nested loops, and the damn thing still won't work.
<? // read the files into arrays and format the array contents
$fileaArr = file("filea-sample.txt"); $filebArr = file("fileb.txt");
$fileaNum = count($fileaArr); $filebNum = count($filebArr);
for ($h = 0; $h < $filebNum; $h++) { $line = $filebArr[$h]; $pat = "\t"; $emailb[$h] = split($pat,$line); }
for ($i = 0; $i < $fileaNum; $i++) { $email = $fileaArr[$i]; $emaila[$i] = chop($email); }
while (list ($key, $email1) = each ($emaila)) { printf ("Email A: %s<BR>\n", $email1);
// for each address in A, search through the addresses in B while (list ($key1) = each ($emailb)) {
// check to see if emails match; if not, keep going if ($email1 == $emailb["$key1"][1]) { printf ("Match! %s<BR>\n", $emailb["$key1"][1]); } } continue; }
?>
The program is only running the 2nd while loop once -- even though it runs the 1st while loop (at least, the printf part) until it reaches the end of the list. Here's what the output looks like:
Email A: name
domain.com
Match! name
domain.com
Email A: name2
domain2.com // this one, by the way, should have a
match. I checked.
Email A: name3
domain3.com
Email A: name4
domain4.com
Email A: name5
domain5.com
...
Any ideas? This damn script is driving me absolutely nuts!
Thanks hugely in advance,
-- Steff Osborne
Stan Lee Media
sosborne
stanleemedia.com
attached mail follows:
> -----Original Message-----
> From: Steff Osborne [mailto:sosborne
stanleemedia.com]
> Sent: Thursday, February 10, 2000 3:13 PM
> To: php3
lists.php.net
> Subject: [PHP3] Nested loops, part 2
>
>
> Grrrr. I rewrote my script with the nested loops, and the damn
> thing still
> won't work.
Try sticking
reset($emailb);
in there before you enter the inner while loop.
http://www.php.net/manual/html/function.reset.html
--- Mark Roedel | "Blessed is he who has learned to laugh Systems Programmer | at himself, for he shall never cease LeTourneau University | to be entertained." Longview, Texas, USA | -- John Powell
attached mail follows:
My copy of Rasmus's PHP Pocket Reference just arrived, and I turned to the section on XML functions. To my surprise, I see:
int xml_parse_into_struct(int pind, string, data, array &struct, array &index)
This looks like it could be useful (I've been struggling with writing a parse-XML-document-into-tree structure thing the last couple of days), but this function is not listed in the PHP manual. How does it work?
-- Paul DuBois, paulsnake.net
attached mail follows:
Windows NT:
I want to create a script which allows me to create a directory structure. But the "Everyone" and "Anonymous" privs are set to only Read Only. The site is password proteced with no anonymous access allowed so when I use the system command to create the directories would NT use my privs and allow me to create the directories or the "everyone" privs and deny me?
--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:
I will have end users replying to emails. I then need the receipt of that email to trigger a script action.
Can anyone offer any advice?
attached mail follows:
John,
i believe in sendmail you can set up aliases like so:
youralias: |/path/to/some/script/to/execute/when/mail/is/sent/to/youralias
and then you can do what you want with it from there. do I have it wrong anyone? please correct me if i am wrong. this is of course if you are in a unix enviroment. hope this helps.
On Thu, 10 Feb 2000, John Hogan wrote:
> I will have end users replying to emails. I then need the receipt of that
> email to trigger a script action.
>
> Can anyone offer any advice?
>
>
> --
> 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
-- Nathan Benson ------------- http://www.phactor.org/Me spell chucker work grate. Need grandma chicken.
attached mail follows:
You should investigate procmail for your *nix box. This is very powerful for this.
At 03:35 PM 2/10/00 -0600, you wrote:
>I will have end users replying to emails. I then need the receipt of that
>email to trigger a script action.
>
>Can anyone offer any advice?
>
>
>--
>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 way to get the subject, from and message body of the email sent to aliase in the script?
In a message dated 2/10/00 4:42:15 PM Eastern Standard Time,
phuzz
phactor.org writes:
<< John,
i believe in sendmail you can set up aliases like so:
youralias: |/path/to/some/script/to/execute/when/mail/is/sent/to/youralias
and then you can do what you want with it from there. do I have it wrong
anyone?
please correct me if i am wrong. this is of course if you are in a unix
enviroment.
hope this helps.
On Thu, 10 Feb 2000, John Hogan wrote:
> I will have end users replying to emails. I then need the receipt of that
> email to trigger a script action.
>
> Can anyone offer any advice?
>
>
> --
> 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
--
Nathan Benson
-------------
http://www.phactor.org/
Me spell chucker work grate. Need grandma chicken. >>
From the Desk of Pinkesh N. Patel
pinkeshp
aol.com
attached mail follows:
>i believe in sendmail you can set up aliases like so: > >youralias: |/path/to/some/script/to/execute/when/mail/is/sent/to/youralias > >and then you can do what you want with it from there. do I have it wrong anyone?
Been thinking about this for a while and since I am no Sendmail guru here is what can be done
Set up a cron job to poll the pop address using one of the many pop mail classes available after that parsing the from, subject and message should be simple.
HTH
Tarique
======================================= Creating not just Web Sites but Web Applications http://www.sanisoft-india.com
Search Engine for Nagpur http://nagpurcity.net =======================================
-----Original Message-----
From: Nathan Benson <phuzz
phactor.org>
To: John Hogan <john.hogan
sparklist.com>
Cc: php3
lists.php.net <php3
lists.php.net>
Date: Thursday, February 10, 2000 9:49 PM
Subject: Re: [PHP3] can an email trigger a script?
attached mail follows:
Could someone please point me to the current location of userserver.zip? I'm trying to authenticate (using phplib actually) against an NT domain server (as MS exchange server does not put passwords in their LDAP implementation). I've looked through the archives and the userserver solution looks like it would do the trick, but the server mentioned is no longer up. Alternatively, if someone would like to email me a copy (and any related documentation?), that would be great also. Thanks.
-- John Parker, Design Engineer, Snorkel International Ph: 816/676-6419 Fax: 785/989-3556
attached mail follows:
I am new to PHP3 but working a while on C/Unix. I have downloaded PHP3 source code from PHP3 site, I extract it OK to Linux Caldera. When I execute ./configure or ./setup it gives me an error say: No such file or directories even though I can ls/ll to this file. From php3 directory I check permission and mod it looks OK. I create a simple script and run, it is OK.
Can anyone tell me what wrong? What to fix?
Thanks in advance,
Muoi Dang
attached mail follows:
I'm thinking of using the forum from http://www.phorum.org/ -and have successfully modified the timestamp to get it in a Norwegian format (see the code I've used below. My server is 6 hours behind us though so how can I get it to log 23:35 instead of 17:35 (now) for the time? And also get the correct local date as well of course. I'm sure it's just a case of doing a "+6" quite early on, but how?
TIA, Randi
the following code prints 17:35 10/02 2000 I want: 23:35 10/02 2000
function date_format($datestamp){ $sDate = substr($datestamp, 10, 6); $sDate = $sDate." ".substr($datestamp, 8, 2); $sDate = $sDate."/".substr($datestamp, 5, 2); $sDate = $sDate." ".substr($datestamp, 0, 4); return $sDate;, }
attached mail follows:
|I'm sure it's just | a case of doing a "+6" quite early on, but how?
timestamp is the number of seconds passed since 1.Jan 1970
so you have to add just 6 (hours) * 60 (minutes) * 60 (seconds)
| function date_format($datestamp){
add this line: $datestamp+=6*60*60;
| $sDate = substr($datestamp, 10, 6);
| $sDate = $sDate." ".substr($datestamp, 8, 2);
| $sDate = $sDate."/".substr($datestamp, 5, 2);
| $sDate = $sDate." ".substr($datestamp, 0, 4);
| return $sDate;, }
|
| --
| 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:
Peter Sorger wrote: > timestamp is the number of seconds passed since 1.Jan 1970
-the function used in phorum.org's code is of a "datetime" type, I'll make it log a "timestamp" instead if that is easier to manipulate and add the 6 hours I need for the time shift. It might make it more difficult to format though? I'll give it a try, thank you.
Randi
attached mail follows:
I've stored an string into the SQL (with more than 255 characters). When I get it trough php I got a 255 string. How can I get the entire string?
n Angel
attached mail follows:
what is the data type of that field?
-----Original Message-----
From: Martin Tiscornia [mailto:mtiscornia
museoabasto.org.ar]
Sent: Thursday, February 10, 2000 5:38 PM
To: 'php3
lists.php.net'
Subject: [PHP3] length of data form SQL
I've stored an string into the SQL (with more than 255 characters). When I get it trough php I got a 255 string. How can I get the entire string?
n Angel
-- 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:
At 11:57 PM 2/5/00 -0500, you wrote: >4. In my httpd.conf: > AddType application/x-httpd-php .php
You've told Apache that .php files are of mime-type: application/x-httpd-php
> AddType application/x-httpd-php4 .php
No, wait, now you are saying .php files are of mime-type: application/x-httpd-php4
Either you have thoroughly confuzzled Apache, or you have over-ridden the php with the php4 mime type, and there is no handler for the php4 mime type.
-- "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 08:32 AM 2/7/00 -0500, you wrote: >When using PHPLIB to provide session variables, is there any assurance >about the sequence that different frames of a frameset are run in?
You are assured that there will be no ordering on their loading :-^
You'll have to do any session work in the main/outer/frameset page and pass down the values to the frames.
<?php //do session work to get $sessID ?> <FRAMESET ...> <FRAME SRC=blah.php?sessID=<?php echo $sessID;?> ...> . . . </FRAMESET>
-- "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:39 PM 2/6/00 -0500, you wrote: >The system that I am working on has a large amount of php code in >"libraries". >It is now taking quite a long time to load this code (using require) on >every page. >I have attempted to only load what is needed, and this helps but >generally php loading/parsing of code does not seem to be very fast >(roughly 2k characters / millisecond of a fast PIII). > >Is there a way to pre-load php include/require files once into the >server thread, so they are available for every page request, but only >have to be processed once per fork? > >There are other web development environments (e.g. metahtml) that offer >this capability.
PHP3 does not do this. PHP4 does not do this. Forthcoming commer$ial add-on[s] from Zend would allow the scripts to be pre-compiled by an optimizing compiler as binaries and cache them for faster usage/access.
If require() really is your bottleneck, you may want to look at:
Buying enough RAM that httpd+PHP+???+scripts can fit in RAM Partitioning more swap space Moving your require'd files to a smaller/faster partition/drive Re-coding your most-used functions in C/PHP and compiling them into the PHP binary itself (see apidoc.txt in the tarball distribution)
While this last solution would obviously be time-intensive, it also comes closest to your original request.
Disclaimer: I have no real experience with this problem, and am only hypothesizing solutions.
-- "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:
I have Redhat linux 6.0 running:
Apache - 1.3.6 From Redhat 6.0 cd mod_php3 - 3.0.8 From Redhat 6.0 cd mysql - 3.22.30 From www.mysql.com
These where installed as binaries from rpms.
The PHP works as expected, but I can not seem to find the php_mysql extension. functions like mysql_connect() return as unknown methods.
Does anyone know where I can get the php_mysql extension so I can load it from php3.ini and not have to build src.
thanks,
Keith Parsons
keith_parsons
bigfoot.com
attached mail follows:
At this point, unless you are brave, your best bet is to fork a pgp or gnupg process and feed it the text. The mcrypt php extension will allow you to do some of it (encrypting the data), but it doesn't have the public/private key encryption routines needed to encrypt the key used to encrypt the data... This algorithm is pretty intense. The source is available with gpg.
So the options now would be to just pass the data to pgp/gnupg, write a pgp extension to php, or write a pgp library and link a php extension to that. I think gnupg has a planned pgp library (at least their docs allude to it, although it isn't there...). The only other one I have found is called CINT and seems to be pretty much developed for macos. I might play with this one a bit though. We have a need for being able to encrypt and decrypt pgp data from the web, so sometime in the future we may tackle this, but I'll probably wait until a reliable pgp library exists.
On Thu, 10 Feb 2000, Maurice Barnes 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). > > Thanks in advance, > Maurice > > > >
--Chad Cunningham ccunning
math.ohio-state.edu
Only 222 days until RSA Patent expiration!
attached mail follows:
At 04:43 PM 2/7/00 +0100, you wrote: >On my virtual server I installed >php.cgi 3.0.14 and my own release of mysql-3.23.5. > >Php.cgi works fine but there is a problem >when I want to connect with mysql. > >Apparenthly mysql_connect() and >mysql_select_db() work fine. > >But when I want to execute a query : >mysql_query("SELECT * FROM table",$db) >I receive a white screen.
Does "View Source" show anything?
Add "... or die(mysql_error()) to all mysql_query() calls.
It's also possible that your PHP cgi is still connecting to the other MySQL which is a slightly different version, and then it pukes on the query...
Use <?php phpinfo();?> to be sure you are compiled with the version of MySQL you think you are.
Use, errr, whatever function/query you can use in MySQL to ask what version it is, or at least double check your connection string to make sure the host and port are the right thing.
-- "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 07:53 AM 2/8/00 -0800, you wrote:
>This message was sent from Geocrawler.com by "Mat Schweg" <matonic
gmx.de>
>Be sure to reply to that address.
>
>Hi,
>
>I've a problem with the copy() - function.
>I get this error message:
>
>Warning: Unable to
>open 'C:\WINDOWS\Desktop\images\title.gif'
>for reading: No such file or directory
>in /iwt/ecommerce/public/partner/eingabe.php3 on
>line 138
>
>Is their perhaps a wrong configured php-system?
>So that the script want to read the file directly
>from the server and not from the users pc?
copy() cannot copy a file from the users pc. They would have to do file-upload in a form to get it to the server, and then you could copy it from the temp dir to wherever you want it.
See the file-upload section of the online manual. http://www.php.net
-- "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 10:34 AM 2/7/00 +0100, you wrote:
>I try to mail with the mail fonction and here is the result... Warning: >Failed to Receive in order.php3 on line 327 > >maybe some kind of misconfiguration but I don't see what could be wrong...
What is sendmail setting in your php3.ini file?
Are you using sendmail or have you substituted qmail or other?
-- "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 09:57 PM 2/5/00 -0800, you wrote: >Thanks for the help. I did already get the recursive function working. Reduced code >size by half & cut 5 mysql_result() calls to 1 mysql_fetch_array() for each message. >Plus, recursion is cool. :-)
Uhhhhhh. Recursion is also *VERY* expensive.
You want the last 20, so use the SQL you have. You want to display them in reverse order?
for ($i = 19; $i >= 0; $i--){ if (list($user) = mysql_fetch_row($result, $i)){ echo $i, ' -- ', $user, "<BR>\n"; } }
*NEVER* use recursion if you can use iteration.
-- "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 02:23 AM 1/30/00 -0500, you wrote: >Hey, some of you gave me some help in my previous message, but >none of it really answered the WHOLE of my question, so I decided >to read a bit of the manual and try something. > >Anyways, this code isn't working :-) > ><?php > >$main = "Welcome"; >$notfound = "<B>404 not found</B>"; > >if (REQUEST_URI = support-test.php?error){
Add quotes or apostrophes to your strings: 'support-test.php?error'
> echo "$main";
>} elseif (REQUEST_URI = support-test.php){
> echo "$notfound!";
> else {
> echo "$main";
>}
>
>?>
>
>I'm getting a "Parse Error".
>
>As you can see, I'm trying to get it so that if the requested URL is
>blah.php3?blah go then show THIS information
>if it's blah.php3?blargh show THIS information, if it's NONE of those, show
>THIS instead.
>
>If any of you see what I'm doing wrong, or if you know I'm doing EVERYTHING
>wrong, please feel free to help.
>
>
>
>Robert Campbell ( Thrakman )
>--------------------------------------------------------------
>http://thrakman.fortunecity.com
>thrakman
ffextreme.com
>thrakman
subdimension.com
>
>Interested in a website? Visit http://www.gaming-addicts.net/thrakman/
>Like gaming? Visit http://www.gaming-addicts.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
>
-- "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:
> Add quotes or apostrophes to your strings: 'support-test.php?error'
Also, I think it should read (notice the ==):
if (REQUEST_URI == "...") {
> >} elseif (REQUEST_URI = support-test.php){
Same here.
-Philip
attached mail follows:
I'm trying to compile a version of PHP4 for linux (Mandrake 6.1) and after doing the ./configure things seem to break while compiling zend_execute. It complains about exhausted virtual memory. I've 45Mb memory (total incl swap) free. How much more is needed or did I miss something else?
my commandline:
../configure \ --with-xml=/usr/include/xml/ \ --with-mysql \ --with-apache=/usr/include/ \ --enable-track-vars \ --with-gd \ --with-wddx
Thanks, Gerhard
-- LiveSystems Software, http://members.tripod.lycos.nl/Jondor/ ICQ:4502226
attached mail follows:
I can't seem to get the PHP Debugger to start. I'm using 3.0.14, Apache 1.3.11, Linux 2.2.x. I've set the debugger.host, debugger.port and debugger.enabled variables appropriately.
debugger.host = localhost debugger.port = 5051 debugger.enabled = True
I've placed this in the php3.ini file in the area it is expected to read from /usr/local/lib. After stopping Apache and restarting, phpinfo() does not show that the debugger values were read at all?!
Is there something more I need to do?
Thanks, Jose
attached mail follows:
Hi,
I'm trying to create a calendaring app using php (php4b3 on apache 1.3.9) but I keep running into this error:
Warning: Wrong parameter count for mcal_list_events() in /home/httpd/html/php_calendar/index.php3 on line 45
The offending line reads as:
$events=mcal_list_events($stream,$year,$month,$start_week,$year,$month,$e d_week);
which is exactly as shown in the php documentation and the same as that in the phpbuilder examples.
Each of the variables contains a value, so there are no null values being passed.
Where is the problem?
attached mail follows:
Internet explorer always loses my background colors when my documents are printed. How can I fix?
dgoa.
attached mail follows:
Hi all,
Heres the problem, i am calling a function from within a table on a page, the output is formatted correctly and the function works fine, the problem is that the output is not inside the table where i want it. it keeps appearing at the top of the page.. like right where i have it defined.. not where i call it.
ie function defined {function output} html head title [ Page Title Banner] table function();
eeks! thats a little crude :) but i hope it gets the point across
the function is a mysql query, which does takes in $id and prints html formatted info about $id ...like i said the function works correctly it just isnt putting it where I want it.. I have had similiar problems with other functions...
is it not possible to have a function print out this inforamation? should i try:
function foo($id) { $text = " command; command;"; return $text; }
any ideas, thoughts etc .. are appreciated
thanks
Brian
attached mail follows:
Hi, Any oe can send me a sample of HTML and PHP code of how to use gdlib images functions! Thanks
attached mail follows:
I'm trying to check that a URL entered in a form is valid. I thought = fopen would work.
if (fopen("$test_link", "r")) { $link_query =3D "UPDATE links SET link=3D'$test_link' WHERE = link_id=3D$link_id"; $link_result =3D mysql_query($link_query); } else { print("This link was not saved.<br>"); print("$test_link"); }
If the link is valid, it works fine. If not, I get:
Warning: fopen("http://my.url.com/index.html","r") - Success in /www/test_link.php3 on line 113
What did I do wrong? Thanks,
-Scott
attached mail follows:
I seem to be having a similar problem. When I create a page with phpinfo() in it, these are some of the values I received:
PHP_dir = No Additional Information PHP_file = No Additional Information
So this isn't helping me much. I need to set the values for the upload_tmp_dir, and I did that in the php3.ini file which I've placed in the /usr/local/lib directory. When I ran the phpinfo() command, it doesn't seem to pick up any of the values I've placed in the php3.ini file.
What do I do?
Thanks,
Sam
> -----Original Message-----
> From: Allen Chesley [mailto:achesle
raytheon.com]
> Sent: Thursday, 10 February 2000 07:18
> To: Derek Sivers
> Cc: php3
lists.php.net
> Subject: Re: [PHP3] Where else is PHP.INI ?
>
>
> Run a page containing
> <?php phpinfo(); ?.
>
> In the resulting page, under configuration, above the table, you
> should see a
> line that reads
>
> php3.ini file path is set to: /path/to/file
>
> Either look there, or create a new php3.ini file and put it there.
>
> Derek Sivers wrote:
>
> > I've installed PHP many times on my own Linux boxes.
> >
> > But someone installed PHP as a module on my server (I've never done it
> > that way before - we just didn't want to touch Apache in this
> case, since
> > it was a non-standard Cobalt server thing.)
> >
> > And... there's no PHP3.INI !!
> >
> > I'm trying to install PHPLIB, and can't find any "php.ini" or
> "php3.ini" on
> > the server.
> >
> > Though PHP3 works just fine.
> >
> > Any clues, anyone?
> >
> > Derek Sivers
> > linuxbaby
yahooc.om
> >
> > --
> > 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
>
> --
> Allen Chesley
> Senior Systems Engineer
> Raytheon Company
> 972-205-8785
> FAX 972-205-8365
>
>
>
attached mail follows:
Ignore my last question, but I have another problem.
I make changes to the php3.ini file, but they aren't getting picked up when I run phpinfo().
Is there something I need to do?
> -----Original Message-----
> From: Samantha Savvakis [mailto:samsa
cfs.net.au]
> Sent: Friday, 11 February 2000 10:40
> To: Allen Chesley; Derek Sivers
> Cc: php3
lists.php.net
> Subject: RE: [PHP3] Where else is PHP.INI ?
>
>
> I seem to be having a similar problem. When I create a page with
> phpinfo() in it, these are some of the values I received:
>
> PHP_dir = No Additional Information
> PHP_file = No Additional Information
>
> So this isn't helping me much. I need to set the values for the
> upload_tmp_dir, and I did that in the php3.ini file which I've
> placed in the /usr/local/lib directory. When I ran the phpinfo()
> command, it doesn't seem to pick up any of the values I've placed
> in the php3.ini file.
>
> What do I do?
>
> Thanks,
>
> Sam
>
>
> > -----Original Message-----
> > From: Allen Chesley [mailto:achesle
raytheon.com]
> > Sent: Thursday, 10 February 2000 07:18
> > To: Derek Sivers
> > Cc: php3
lists.php.net
> > Subject: Re: [PHP3] Where else is PHP.INI ?
> >
> >
> > Run a page containing
> > <?php phpinfo(); ?.
> >
> > In the resulting page, under configuration, above the table, you
> > should see a
> > line that reads
> >
> > php3.ini file path is set to: /path/to/file
> >
> > Either look there, or create a new php3.ini file and put it there.
> >
> > Derek Sivers wrote:
> >
> > > I've installed PHP many times on my own Linux boxes.
> > >
> > > But someone installed PHP as a module on my server (I've
> never done it
> > > that way before - we just didn't want to touch Apache in this
> > case, since
> > > it was a non-standard Cobalt server thing.)
> > >
> > > And... there's no PHP3.INI !!
> > >
> > > I'm trying to install PHPLIB, and can't find any "php.ini" or
> > "php3.ini" on
> > > the server.
> > >
> > > Though PHP3 works just fine.
> > >
> > > Any clues, anyone?
> > >
> > > Derek Sivers
> > > linuxbaby
yahooc.om
> > >
> > > --
> > > 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
> >
> > --
> > Allen Chesley
> > Senior Systems Engineer
> > Raytheon Company
> > 972-205-8785
> > FAX 972-205-8365
> >
> >
> >
attached mail follows:
What exactly is the PHP Debugger supposed to convey? A variable list, with stack information etc.?
Thanks, Jose
attached mail follows:
On Wed, 9 Feb 2000, Chase Venters wrote:
> I was just referred to this message by a friend > who thinks PHP owns Perl.
I don't see my name in this post, I don't remember writing anything below, why am I the lucky one? Oh well...
> Frankly, I think that the main arena PHP has over Perl is ease of use.
And one should not underestimate the importance of this. There's a reason we use php and perl vs assembler...
> The first one is a regular expression test, and > is online at http://speed.boomgames.com
I wrote two scripts, one in perl and one in php to do what you say. Each loops through a for loop 59,999 times appending sdf to the string. It then performs 5 regular expressions on the string. They are quite simple regexps albiet, but perl takes an average of .55 seconds and php takes an average of .93 seconds. While perl is faster, this is by no means the dramatic difference you pose.
You can see the results of some speed differences I have tested between mod_perl and mod_php4 at
http://www.progressive-comp.com/Lists/?l=php3-general&m=94631992332618&w=2
Source links included. The forum app is the one I'm concerned most with since that is a real world application of mine.
But I still feel speed is not the most important thing in choosing a language... I mean hey, I use apache everywhere when there are several other quality web servers that will kick apache's but in speed. Why do I use apache? It's robust, it's flexible, I'm familiar with it, and it is more than adequate to handle my needs. > I know Perl is better for text handeling, but the > difference in speed you see at my speed test is > inexcusable. If you'd like, I'll give you source > code for the experiment -- feel free to verify > the code's integrity. (No, you're not having > server problems, the PHP code tages ages to > finish)
I think everyone would appreciate it if you would post your code. Seeing as you get a huge difference and I get a half a second, I'd like to know what's up. > I won't argue that PHP's primary useful area is > database to web connectivity. But, using a > special system I've devised and is almost ready > for public release, a special format (.tsi > instead of .html or .php) can be imbedded into > your site using a CGI script and a few HTACCESS > entries. This lets perl code be embedded directly > into the file, and it runs secure (and very fast, > too).
Great, options are always nice to have. > Perl's DBI databasing stuff simply owns > PHP. ::One:: block of code can be changed by only > one factor - driver name - and your code now > talks to a completely different database > interface (and works).
I would have to completely disagree with this. When you change from MySQL to postgresql, you cannot have postgres generate auto_increment primary keys by changing one word in your app. When you change from Oracle to MySQL, you cannot have MySQL execute oracle stored procedures by changing one word in your app. Perl offers api abstractions, it does not offer database abstraction. If you want to be able to just switch db's, this means you have to abstract the database. One way to do this is by creating a seperate module with all your database functions. Something that your app can call with getData() and the function will take care of getting it from the db. Just using a simple API wrapper to save you having to change function names is not abstraction. Further, it doesn't allow you to take advantage of custom database api's. Sure, you can do it with dbi, but again that's not independant of the database.
The only really good database abstraction I've seen is Enterprise Object Framework. It's one of the few things that will allow you to completely abstract the database. What perl does compared to EOF really makes it look like childs play. Further, there are several classes available for php that will give you the exact same database wrapper functionality that perl does. A few notable examples:
http://phplib.netuse.de http://phpclasses.upperdesign.com/browse.html/package/20 http://lxr.php.net/source/php4/pear/DB/
Of course, the last is not quite there yet, but is the start of a package for PHP's pear repository.
> I understand that using an Apache Module might be > faster than using a CGI script. However, PHP's > general slowness voids this one out. PHP's module > is faster than PHP's CGI, but TSI's CGI is faster > than PHP's module.
Great! Sounds like TSI will be a great technology to have around if it does what you say.
> PHP is certainly attractive - it's very easy to > use. It works great for small-medium size > operations. But if you get something like Alta > Vista, Yahoo, or another big 'portal' site, PHP > would be out of the question for anyone knowing > what they're doing.
You make it sound like Yahoo and AltaVista run cgi perl scripts on a single machine. I could run one of the busiest sites in the world completely with shell scripts if I have the hardware to back it up.
And do you have any idea of the amount of traffic freshmeat.net, linux.com, VA Research, Honda, etc. generate? If you have some examples as to php not being able to power a high traffic site, pleae share.
> I've been studying the code of PHP, and once I > get a fundemental of how most of it's code works, > I'll be writing an article with live benchmarks > the end user can run to show off the difference.
Great! > In short, Perl is better than PHP. As far as web > stuff, TSI should help Perl be easier.
Now we make a dramatic leap here. We go from Perl is faster than PHP to perl is better than php. Assuming perl is faster than php (which I don't think is a valid assumption, but anyway...) this does not by default mean it is better. If raw speed is all you need, then you should choose the fastest method. In this case, I would suggest you write a custom web server with a native programming capability, embed it in the linux kernel, and serve pages out of ram.
In the real world, you need to take into account many other factors. How much performance do you really need? What can you use to get the job done fastest? What is the easiest to maintain? What are you most proficient with? What works best for the task at hand? What is fastest for the task at hand? How efficient are various solutions under a load? And it can go on and on.
Perl is a nice langauge. PHP is a nice langauge. If you like perl, more power to you. Use what fits your needs.
>
> As you can see in the below code, TSI accepts SSI
> tags (but it uses its own parser, currently only
> supporting echo, include, and exec).
>
> =SAMPLE TSI CODE FILE=
>
> <html>
> <!--#include virtual="/menu.ssi" -->
> <!--#exec cgi="/cgi-bin/getad.cgi" -->
> <!--#exec cmd="/bin/ls" -->
> <!--#echo var="REMOTE_ADDR" -->
> <p><p>
>
> And now, we'll test the master of puppets - the
> perl code used to drive
> this magic.<p>
>
> <?
>
> $myname = 'chase venters';
> $myname =~ s/e/g/gi;
> print "My name: $myname\n<p>";
>
> $myname = 'ChASE vEnTERs';
> $myname =~ tr/a-z/A-Z/;
> print "My name: $myname\n<p>";
>
> # And now a cooler test
>
> if ($myname eq 'chase venters') {
>
> ?>
>
> Name is chase venters
>
> <?
>
> } else {
>
> ?>
>
> NOPE! NAME NOT chase venters
>
> <?}?>
>
> </html>
>
>
>
> ---------------------------------------
>
>
> On Wed, 28 Apr 1999, Pascal Robert wrote:
>
> > This project is a "ISP Management software". I
> already built the
> > databases and some interfaces with Perl. In
> this baby, we can see
> > which websites we host, info. about dedicated
> links, etc. and modify
> > this information. Someone told me that it`s
> easy to do this kind of
> > work with PHP instead of Perl but when I check
> PHP code examples, it
> > seems to be exactly like Perl (ie: about the
> same amount of work).
> > The only advantage that I saw is that
> our "HTMLmaster" can modify
> > pages without scrapping our Perl scripts. Any
> other advantages ?
>
> Sure. In general, there`s not much perl can do
> that php can`t do better
> for web stuff (exluding file handling and
> searching). Especially if you`re
> not talking about mod_perl, php has the speed
> advantage (assuming you use
> mod_php). Anyway, if you`re storing stuff in a
> database and displaying it
> on a web page, that`s what php does best.
>
> > Also, we want to offer PHP services to our
> virtual host customers and
> > maybe to our personnal users
> (http://www.Mlink.NET/~something/),
> > which kind of setup will be the best for
> user ? CGI version with
> > --enable-safe-mode --enable-force-cgi-redirect
> and php3-engine one
> > for customers who want it ?
>
> Well, optimally, you would want to use the
> module, but ISP`s don`t like
> that... The cgi will eat up more of your machine
> resources, remember, but
> it also makes it easier to upgrade. I believe if
> you`re doing virtual
> hosts, you can enable php on a vh basis by
> sticking the directives in the
> virtual host block...but I won`t make any
> promises...
>
>
>
> --
> 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 list: php3-digest-
> subscribe
lists.php.net
> For help: php3-help
lists.php.net Archive:
> http://www.php.net/mailsearch.php3
> List administrator: zeev-list-admin
zend.com
>
>
>
> Geocrawler.com - The Knowledge Archive
>
--Chad Cunningham ccunning
math.ohio-state.edu
Only 222 days until RSA Patent expiration!
attached mail follows:
> I understand that using an Apache Module might be > faster than using a CGI script. However, PHP's > general slowness voids this one out. PHP's module > is faster than PHP's CGI, but TSI's CGI is faster > than PHP's module.
It's been a while, but last time I checked, using mod_PHP the typical PHP page was done and shipped before the additional process required to run a CGI had completed spawning.
attached mail follows:
I am trying to install php3 on the Red Hat Linux. I dont have to install the apache server, it was already installed. But when i run ./configure on the php3 directory an error message says that the httpd.h was not found. So, anyone knows what to do? Thanx
Mario
____________________________________________________________________ Get free email and a permanent address at http://www.netaddress.com/?N=1
attached mail follows:
Best suggestion is to go and get the tar ball for apache.
Then re-compile and install both.
Brandt Everett
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
e-mail: everett
bentonrea.com
phone: 800-398-1232 ex 234
www: www.bentonrea.com
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
> -----Original Message-----
> From: Mario Luiz Dourado [mailto:mdourado
usa.net]
> Sent: Thursday, February 10, 2000 7:07 PM
> To: php3
lists.php.net
> Subject: [PHP3] httpd.h
>
>
>
> I am trying to install php3 on the Red Hat Linux. I dont
> have to install the
> apache server, it was already installed. But when i run
> ./configure on the
> php3 directory an error message says that the httpd.h was not
> found. So,
> anyone knows what to do?
> Thanx
>
> Mario
>
> ____________________________________________________________________
> Get free email and a permanent address at
> http://www.netaddress.com/?N=1
>
> --
> 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:
Could you guide me in detail?
eg: give me reference link 1/ example for php 2/ do I install exact package to IIS3.0/4.0 3/ where do I get the ODBC
Thank you very much again
Best regards Peter
>From: "Florian Clever" <clever
aracnet.com>
>To: "peter kok" <aoypcc
hotmail.com>
>CC: <cckok00
stlinux.ouhk.edu.hk>
>Subject: Re: PHP integrate with Microsoft IIS 3.0/4.0
>Date: Thu, 10 Feb 2000 20:45:31 +0100
>
>Yes you should be able to access Excel spreadsheets from PHP via ODBC.
>
>Florian Clever
>
>****************************************************************************
>Phone: ++49 (0)761 7070268 / Fax: ++49 (0)761 23565
>Email: clever
aracnet.com / Internet: http://www.aracnet.com/~clever
>Zasiusstr. 45 / D-79102 Freiburg / Germany
>****************************************************************************
>
>-----Ursprüngliche Nachricht-----
>Von: peter kok <aoypcc
hotmail.com>
>An: php3
lists.php.net <php3
lists.php.net>
>Cc: cckok00
stlinux.ouhk.edu.hk <cckok00
stlinux.ouhk.edu.hk>
>Datum: Thursday, February 10, 2000 2:22 PM
>Betreff: PHP integrate with Microsoft IIS 3.0/4.0
>
>
> >Hello All
> >
> >I am wondering about the possiblity to use PHP with IIS 3.0/4.0? I have
>a
> >Microsoft Excel spreadsheet situated in the IIS Web Server. Am I able to
> >use PHP to extract information from the Microsoft Excel spreadsheet?
> >
> >Kindly give me advise or reference web site.
> >
> >Thanks very much.
> >
> >best regards
> >Peter
> >______________________________________________________
> >Get Your Private, Free Email at http://www.hotmail.com
> >
> >
>
______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com
attached mail follows:
php
topbit.demon.co.uk writes:
> On Tue, 08 Feb 2000 22:11:09 -0500, you wrote:
>
> >These are my most often made stupid mistakes in PHP.
> >
> if($a="jabbajabba")
> {
> die("non-zero assignments are always true");
> }
>
> Here's a tip if you are comparing against a constant:
> if ("jabbajabba" = $a) # whoops!
> # parse error
>
> Alister
Actually, that last one would work fine if it was a comparison, but again it's an assignment. Since you can't assign to a literal, you get a parse error.
I agree that the '=' vs. '==' is an easy mistake to make when trying to compare something, but after you do it a couple of times, you start realizing what to look for when your conditionals keep getting mysteriously executed when they shouldn't. :)
[OBstupidmistake]
Confusing function return values with function output. Easy brainfart to make, especially when you're tired:
<?php function my_name_1() { echo 'torben'; }
function my_name_2() { return 'torben'; }
echo "My name is '" . my_name_1() . "'.<br>\n"; echo "My name is '" . my_name_2() . "'.<br>\n"; ?>
The output of the above script is:
torbenMy name is ''. My name is 'torben'.
This is because my_name_1() gets evaluated when the line is executed, and its output is sent straight to the browser; the echo lines however are trying to concatenate its *return value* into the string. It's not returning a value, so nothing gets put there.
-- +----------------------------------------------------------------+ |Torben Wilson <torbenphp.net> Netmill iTech| |http://www.coastnet.com/~torben http://www.netmill.fi| |Ph: 1 250 383-9735 torben
netmill.fi| +----------------------------------------------------------------+
attached mail follows:
mmmm,
If i do the following;
<? $username = "foo";
if ((!$username) && (!$password)){ echo "Success"; } else { echo "Failed"; } ?>
I get "Failed".. and if i comment out the $username = i get "Success".
I dont see the problem.....
!$var will return true if $var is not set, equal to "", or equal to 0 or even "0" or false, but not "false".
mn
>>> "Tom Kevich" <php
artcenter.ac> 02/11 1:52 am >>>
Yes this will return true every freaking time because of the empty strings..
you cant even use is_set() or even is_int or is_str
all because of that "empty string"
this is the way i would do this, try it, leme know:
<? if ($username!="" && $password!="") { then execute some code; } ?>
----- Original Message -----
From: "Sam Freiberg" <sfreiberg
kc.rr.com>
To: "php" <php3
lists.php.net>
Sent: Friday, January 28, 2000 4:14 PM
Subject: [PHP3] The and operator doesn't work as I expect it, what's wrong?
> I'm trying to write a very basic piece of code, but I apparently don't
> understand something. Below is the relevant portion of my code:
>
> <?
> if ((!$username) && (!$password)) {
> then execute some code;
> }
> ?>
>
> Everything I've read says this code should only return true and execute
the
> code if both variables are empty. What am I doing wrong?
>
> Sam
>
>
> --
> 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