|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Subject: php3 Digest 18 Feb 2000 06:00:01 -0000 Issue 1485
From: php3-digest-help
lists.php.netDate: Fri Feb 18 2000 - 00:00:01 CST
- Next message: php3-digest-help
lists.php.net: "php3 Digest 18 Feb 2000 18:00:01 -0000 Issue 1486"
- Previous message: php3-digest-help
lists.php.net: "php3 Digest 17 Feb 2000 18:00:01 -0000 Issue 1484"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
php3 Digest 18 Feb 2000 06:00:01 -0000 Issue 1485
Topics (messages 76644 through 76853):
Can't compile --with-oracle
76644 by: David Nagel <nagel
ursu.uregina.ca>
Search Options
76645 by: "Andrew Sheh" <andrew
dmetechnologies.com>
New to list
76646 by: "Adam Israel" <adam
battleaxe.net>
76649 by: elliot d schlegelmilch <elliot
rightnowtech.com>
76650 by: "Mark Maggelet" <maggelet
mminternet.com>
76651 by: "Adam Israel" <adam
battleaxe.net>
76757 by: Richard Lynch <rlynch
ignitionstate.com>
PHP and WWWTheme
76647 by: Andrés <andres
redys.com>
76670 by: Andrés <andres
redys.com>
Strange Array Output (REVISED)
76648 by: "Jim Brown, Sr." <Sys-Admin
CSUinternet.net>
76803 by: Richard Lynch <rlynch
ignitionstate.com>
XML Parser
76652 by: David Elliott <DavidE
cavendish.com>
I want to loop
76653 by: christopher
moewes.com
76654 by: Peter Benoit <pbenoit
triton-network.com>
76671 by: "rzwink" <rzwink
microcenter.com>
76731 by: Richard Lynch <rlynch
ignitionstate.com>
Displaying MySQL results 2 Up in a table
76655 by: "Andrew Sheh" <andrew
dmetechnologies.com>
76657 by: elliot d schlegelmilch <elliot
rightnowtech.com>
76693 by: Richard Lynch <rlynch
ignitionstate.com>
php vs pearl
76656 by: "Rene H. Larsen" <rhl
traceroute.dk>
76678 by: "niklas fondberg" <niklas
neo.se>
76741 by: Rasmus Lerdorf <rasmus
php.net>
76759 by: garyb
fxt.com
Apache:ASP
76658 by: Andrés <andres
redys.com>
76742 by: Rasmus Lerdorf <rasmus
php.net>
76768 by: Richard Lynch <rlynch
ignitionstate.com>
Help Free PHP3 Space!
76659 by: <artwells
inetarena.com>
76711 by: Richard Lynch <rlynch
ignitionstate.com>
76770 by: Richard Lynch <rlynch
ignitionstate.com>
PHP vs ASP
76660 by: "Jim Brown, Sr." <Sys-Admin
CSUinternet.net>
redirect
76661 by: Graham Chiu <anon_emouse
hotmail.com>
76662 by: Graham Chiu <anon_emouse
hotmail.com>
76789 by: Richard Lynch <rlynch
ignitionstate.com>
Strange Array Output (SOLVED)
76663 by: "Jim Brown, Sr." <Sys-Admin
CSUinternet.net>
HTTP Authentication
76664 by: Jorge Ruben Macias Lopez <jmacias
protel.net.mx>
absolute paths in php include()?
76665 by: Richard Lynch <rlynch
ignitionstate.com>
can i run php file from command prompt ?
76666 by: Richard Lynch <rlynch
ignitionstate.com>
Can PHP3 use All Perl5's Regular expressions?
76667 by: Richard Lynch <rlynch
ignitionstate.com>
compile as a cgi
76668 by: Richard Lynch <rlynch
ignitionstate.com>
76775 by: "kuanghui lioe" <hui
plasmedia.com>
ie on linux
76669 by: Nathan Benson <phuzz
phactor.org>
76717 by: Alexander Werner Skwar <askwar
DigitalProjects.com>
76719 by: Nathan Benson <phuzz
phactor.org>
76773 by: Richard Lynch <rlynch
ignitionstate.com>
76774 by: "Jason G." <razm
assassination.org>
76776 by: idban secandri <idban
satunet.com>
Problems with arrays using MySQL and PHP3
76672 by: Gustavo Souza <administrator
ajato.com.br>
76755 by: Gustavo Souza <administrator
ajato.com.br>
76782 by: Richard Lynch <rlynch
ignitionstate.com>
cookies over arguments and posts?
76673 by: Richard Lynch <rlynch
ignitionstate.com>
Create My Own Function Error.
76674 by: Richard Lynch <rlynch
ignitionstate.com>
Creating tables from PHP
76675 by: Richard Lynch <rlynch
ignitionstate.com>
unsubscribe please
76676 by: "Michael Geier" <mgeier
hpd.acast.nova.edu>
Not connecting to mySQL with PWS on Win98
76677 by: "Greg Brunet" <GBrunet
SemperSoft.com>
HTML Icon
76679 by: Jorge Ruben Macias Lopez <jmacias
protel.net.mx>
76681 by: "Robert V. Zwink" <rzwink
microcenter.com>
76686 by: "Jason G." <razm
assassination.org>
76703 by: "Rossi Designs" <webmaster
rossidesigns.net>
unset() element 5-9 of an array
76680 by: Nathan Benson <phuzz
phactor.org>
Using Classes.
76682 by: "Manuel Lemos" <mlemos
acm.org>
76808 by: Richard Lynch <rlynch
ignitionstate.com>
What's the deal with the PHP browscap?
76683 by: Peter Benoit <pbenoit
triton-network.com>
76815 by: Richard Lynch <rlynch
ignitionstate.com>
76829 by: "Kevin Leavell" <kevin
under-cost.com>
Date and time from MySQL
76684 by: Richard Lynch <rlynch
ignitionstate.com>
posix 1003.2
76685 by: "Stephen Cope" <kimihia
maxnet.co.nz>
76695 by: Rasmus Lerdorf <rasmus
php.net>
76699 by: "NickM" <terado
hotmail.com>
76718 by: "Stephen Cope" <kimihia
maxnet.co.nz>
PHP3 on IRIX 6.2
76687 by: "Erik Meitner" <erik
vbemail.net>
76689 by: "Ashley M. Kirchner" <ashley
pcraft.com>
mySQL module for PHP?
76688 by: Steff Osborne <sosborne
stanleemedia.com>
mod_ssl && mod_php
76690 by: Richard Lynch <rlynch
ignitionstate.com>
Displaying a page/a window with a timeout
76691 by: Richard Lynch <rlynch
ignitionstate.com>
Displaying last 20, next 20...
76692 by: Richard Lynch <rlynch
ignitionstate.com>
Email image attachment with php
76694 by: Richard Lynch <rlynch
ignitionstate.com>
failure to delete a cookie
76696 by: Richard Lynch <rlynch
ignitionstate.com>
Need explanation, just learnin
76697 by: "NickM" <terado
hotmail.com>
Generating a Tree Structure
76698 by: "Michael T. Halligan" <mhalligan
plogic.com>
76702 by: "Kristopher Yates" <kyates
wspice.com>
How to send local files per E-Mail with php
76700 by: Clemens
Germancafe.de
76772 by: Richard Lynch <rlynch
ignitionstate.com>
Email -> Database
76701 by: "David Bouw" <maillist
mubo.nl>
76769 by: Richard Lynch <rlynch
ignitionstate.com>
save files
76704 by: "Ted Knudson" <tedk
cyberlink.com>
Fw: [PHP3] Query problem...
76705 by: Richard Lynch <rlynch
ignitionstate.com>
gd / png / php3.
76706 by: Richard Lynch <rlynch
ignitionstate.com>
76721 by: tc lewis <tim
hostme.com>
Getting random results from database
76707 by: Richard Lynch <rlynch
ignitionstate.com>
Going NUTS OVER TRUE TYPE FONTS.
76708 by: Richard Lynch <rlynch
ignitionstate.com>
hello
76709 by: Richard Lynch <rlynch
ignitionstate.com>
Hello.
76710 by: Richard Lynch <rlynch
ignitionstate.com>
Help on configurating PHP3!
76712 by: Richard Lynch <rlynch
ignitionstate.com>
How can I do with PHP?
76713 by: Richard Lynch <rlynch
ignitionstate.com>
How to tell if Imap support was compiled in
76714 by: Richard Lynch <rlynch
ignitionstate.com>
How to transform a programmer's life in a hell...
76715 by: Richard Lynch <rlynch
ignitionstate.com>
Help with configuration...
76716 by: Robert Matthews <rob
i-image.com>
76771 by: Richard Lynch <rlynch
ignitionstate.com>
76778 by: Robert Matthews <rob
i-image.com>
Oracle ODBC on PHP4
76720 by: "Taylor, Scott" <Scott.Taylor
msj.com.au>
PHP2/FI code in PHP3
76722 by: "Kike" <kike
idecnet.com>
76726 by: eschmid <eschmid+sic
s.netic.de>
76732 by: "Kike" <kike
idecnet.com>
76738 by: Tobe Johnson <tobe
johnsons.net>
76739 by: "Mark Roedel" <roedelm
letu.edu>
76781 by: Richard Lynch <rlynch
ignitionstate.com>
Parsing out Photoshop headers
76723 by: "Paul Meagher" <paul
datavore.com>
PHP/Apache/MySQL Job Opportunity - Boston, MA
76724 by: Mike Goelzer <mike
dailyjolt.com>
Invitation to join php_nl
76725 by: michael
steuer.com
IRC Channel
76727 by: "WL" <will
localads.net>
76733 by: "Jason Brooke" <jason
qgl.org>
76740 by: Rasmus Lerdorf <rasmus
php.net>
htaccess authentication with form
76728 by: Richard Lynch <rlynch
ignitionstate.com>
HTTP Authentication - IE5 ignorning?
76729 by: Richard Lynch <rlynch
ignitionstate.com>
inserting text into a template
76730 by: Richard Lynch <rlynch
ignitionstate.com>
New England PHUG (was Re:User Group Registry
76734 by: Tom <tomhenry
direct-connection.com>
76737 by: eschmid <eschmid+sic
s.netic.de>
load data infile
76735 by: Richard Lynch <rlynch
ignitionstate.com>
location header length limit??
76736 by: Richard Lynch <rlynch
ignitionstate.com>
PHP + MySQL
76743 by: Phil Allsopp <phil
virtek.com>
Looping to check the age of a file
76744 by: Richard Lynch <rlynch
ignitionstate.com>
mail() extra headers
76745 by: Richard Lynch <rlynch
ignitionstate.com>
mail() function
76746 by: Richard Lynch <rlynch
ignitionstate.com>
MD5 and DES
76747 by: Richard Lynch <rlynch
ignitionstate.com>
Mem_limit not working in .ini
76748 by: Richard Lynch <rlynch
ignitionstate.com>
multilined string assignment like perl's <<END syntax ?
76749 by: Richard Lynch <rlynch
ignitionstate.com>
MySQL Lock Tables is it needed
76750 by: Richard Lynch <rlynch
ignitionstate.com>
MySQL not connecting using PHP
76751 by: Richard Lynch <rlynch
ignitionstate.com>
MySQL output in fixed table
76752 by: Richard Lynch <rlynch
ignitionstate.com>
Missing data in php script when read by Netscape
76753 by: Richard Lynch <rlynch
ignitionstate.com>
MYSQL tekst fields
76754 by: Richard Lynch <rlynch
ignitionstate.com>
problemauction.com
76756 by: Peter Burgess <peter
m2o.com.au>
Only part of script executed
76758 by: Richard Lynch <rlynch
ignitionstate.com>
MULTIPLE posts screws things up...
76760 by: "William X. Kerber" <dgoa
ou.edu>
76761 by: "Jason G." <razm
assassination.org>
76819 by: Richard Lynch <rlynch
ignitionstate.com>
parsing through a file and ins
76762 by: Richard Lynch <rlynch
ignitionstate.com>
passing more than 1 value.
76763 by: Richard Lynch <rlynch
ignitionstate.com>
passing multiple values using URLencode?
76764 by: Richard Lynch <rlynch
ignitionstate.com>
PHP & Interbase
76765 by: Richard Lynch <rlynch
ignitionstate.com>
PHP across multiple servers.
76766 by: Richard Lynch <rlynch
ignitionstate.com>
76832 by: "Mark Nold" <MarkN
awi.com.au>
Php and Bookmarks
76767 by: Richard Lynch <rlynch
ignitionstate.com>
PHP a memory hog?
76777 by: Nathan Benson <phuzz
phactor.org>
76779 by: Rasmus Lerdorf <rasmus
php.net>
PHP as module AND CGI
76780 by: Richard Lynch <rlynch
ignitionstate.com>
Public Key Encryption of Database Fields?
76783 by: Richard Lynch <rlynch
ignitionstate.com>
Problem on imageloadfont
76784 by: Richard Lynch <rlynch
ignitionstate.com>
Problems with script
76785 by: Richard Lynch <rlynch
ignitionstate.com>
Pulling specific data from a web page
76786 by: Richard Lynch <rlynch
ignitionstate.com>
Query problem...
76787 by: Richard Lynch <rlynch
ignitionstate.com>
Question: how to get information from URL into PHP3
76788 by: Richard Lynch <rlynch
ignitionstate.com>
Retrieving values from multiple checkboxes
76790 by: Richard Lynch <rlynch
ignitionstate.com>
Script to show user comments on webpages??
76791 by: Richard Lynch <rlynch
ignitionstate.com>
security
76792 by: Richard Lynch <rlynch
ignitionstate.com>
Sorting an array numerically with sort()?
76793 by: Richard Lynch <rlynch
ignitionstate.com>
Standard Function s
76794 by: Richard Lynch <rlynch
ignitionstate.com>
PHP FAQ Generation Application?
76795 by: meijin <meijin
vvm.com>
76822 by: "Ralph Guzman" <raguzman
netraiser.com>
76843 by: "Ralph Guzman" <raguzman
netraiser.com>
How to auto populate the date filed in a form?
76796 by: "Fates" <fateswarning
home.com>
76824 by: Richard Lynch <rlynch
ignitionstate.com>
include external file from different server ?
76797 by: chchar <chchar
mcms.com>
constants vs. variables
76798 by: "Andy Krause" <archiver
db.geocrawler.com>
76825 by: Richard Lynch <rlynch
ignitionstate.com>
Validating an image upload
76799 by: "Paul McGarry" <archiver
db.geocrawler.com>
user management
76800 by: "Ashley M. Kirchner" <ashley
pcraft.com>
76801 by: christopher
moewes.com
76802 by: "Ashley M. Kirchner" <ashley
pcraft.com>
76821 by: "Jason Cox" <jasonc
webpipe.net>
76833 by: "Jason Cox" <jasonc
webpipe.net>
76834 by: idban secandri <idban
satunet.com>
76835 by: "Jason Cox" <jasonc
webpipe.net>
76838 by: idban secandri <idban
satunet.com>
76845 by: Scott Gray <scotty
cm.math.uiuc.edu>
strange behaviour
76804 by: Richard Lynch <rlynch
ignitionstate.com>
Timestamping and MySQL
76805 by: Richard Lynch <rlynch
ignitionstate.com>
Undefined Database functions: HELP!
76806 by: Richard Lynch <rlynch
ignitionstate.com>
unset() array problem.
76807 by: Richard Lynch <rlynch
ignitionstate.com>
76837 by: Nathan Benson <phuzz
phactor.org>
Using virtual()
76809 by: Richard Lynch <rlynch
ignitionstate.com>
Validating a link
76810 by: Richard Lynch <rlynch
ignitionstate.com>
Votation
76811 by: Richard Lynch <rlynch
ignitionstate.com>
What about a PHP Compiler ?!
76812 by: Richard Lynch <rlynch
ignitionstate.com>
What error is this? Php?
76813 by: Richard Lynch <rlynch
ignitionstate.com>
what to do with php_iis_reg.inf ???
76814 by: Richard Lynch <rlynch
ignitionstate.com>
When to upgrade to a newer server?
76816 by: Richard Lynch <rlynch
ignitionstate.com>
with-apxs compile problemss
76817 by: Richard Lynch <rlynch
ignitionstate.com>
SQL problem . . .
76818 by: Richard Lynch <rlynch
ignitionstate.com>
MySQL Load Balancing
76820 by: Mike Goelzer <mike
dailyjolt.com>
76839 by: Richard Lynch <rlynch
ignitionstate.com>
76847 by: "Mark Maggelet" <maggelet
mminternet.com>
76849 by: "Opec Kemp" <okemp
ozemail.com.au>
rich lynch
76823 by: Richard Lynch <rlynch
ignitionstate.com>
76840 by: Richard Lynch <rlynch
ignitionstate.com>
FW: [PHP3] How to auto populate the date filed in a form?
76826 by: "Scott B. Pier" <ScottBP
amalla.com>
FW: [PHP3] Redirect
76827 by: "Scott B. Pier" <ScottBP
amalla.com>
oooops
76828 by: "Scott B. Pier" <ScottBP
amalla.com>
76841 by: Richard Lynch <rlynch
ignitionstate.com>
mysql_select_db()
76830 by: Mike Goelzer <mike_goelzer
brown.edu>
76844 by: Richard Lynch <rlynch
ignitionstate.com>
Is this appropriate for the list?
76831 by: "Mark Nold" <MarkN
awi.com.au>
PHP Authentication System
76836 by: "test" <john
webmeta.com>
[PHPLIB] Re: [PHP3] Re: Anybody got a load tester?
76842 by: "Manuel Lemos" <mlemos
acm.org>
What about the PHP newsserver?
76846 by: "Stefan Tobiason" <tobiason
swipnet.se>
76850 by: Richard Lynch <rlynch
ignitionstate.com>
76851 by: Tin Le <tin
netimages.com>
Installing PHP3 with RPM installed Apache and MySQL
76848 by: "Bell, Ken" <kbell
new-orleans.oilfield.slb.com>
Question about the Apache USER directive...
76852 by: David Pollack <david
da3.net>
76853 by: "Jason Brooke" <jason
qgl.org>
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 all...
I'm tring to build mod_php3 (3.0.12) on Linux Mandrake 6.1 with Apache
1.3.9, MySQL 3.22.25 and Oracle 7.3.3.5.0 support (using Oracle 8.1.5.0.2
client libraries). Make seems to fail on internal-functions.c. Here are the
options that I fed to configure:
./configure \
--with-apxs=/usr/sbin/apxs \
--prefix=/usr \
--with-gd \
--with-mysql=/usr \
--with-oracle=/usr/local/oracle/8i/u01/app/oracle/product/8.1.5 \
--with-zlib \
--with-dbase \
--with-filepro \
--with-config-file-path=/etc/httpd/conf \
--with-fdftk=no \
--enable-debug=no \
--enable-magic-quotes \
--enable-debugger \
--enable-bcmath \
--enable-track-vars \
--enable-safe-mode \
--with-exec-dir=/usr/bin \
--with-system-regex
Here is where it starts to fail...
gcc -g -O2 -O6 -fomit-frame-pointer -fno-exceptions -fno-rtti -pipe -s
-mpentium -mcpu=pentium -march=pentium -ffast-math -fexpensive-optimizations
-malign-loops=2 -malign-jumps=2 -malign-functions=2 -DLINUX=2
-DNO_DBM_REWRITEMAP -DEAPI -DEAPI_MM -DUSE_EXPAT -I../lib/expat-lite -O2 -fpic
-DSHARED_MODULE -I. -I.
-I/usr/local/oracle/8i/u01/app/oracle/product/8.1.5/network/public
-I/usr/local/oracle/8i/u01/app/oracle/product/8.1.5/plsql/public
-I/usr/include/apache -I/usr/include/mysql -c
internal_functions.c -o internal_functions.o In file included from
internal_functions.c:53: functions/php3_oci8.h:53: oci.h: No such file or
directory In file included from internal_functions.c:55: functions/oracle.h:20:
oratypes.h: No such file or directory functions/oracle.h:21: ocidfn.h: No such
file or directory functions/oracle.h:23: ociapr.h: No such file or directory In
file included from internal_functions.c:53: functions/php3_oci8.h:60: parse
error before `OCIServer' functions/php3_oci8.h:60: warning: no semicolon at end
of struct or union functions/php3_oci8.h:61: warning: data definition has no
type or storage class functions/php3_oci8.h:62: warning: data definition has no
type or storage class functions/php3_oci8.h:68: parse error before
`oci8_server' functions/php3_oci8.h:68: warning: no semicolon at end of struct
or union functions/php3_oci8.h:69: warning: data definition has no type or
storage class functions/php3_oci8.h:70: parse error before `}'
-- snip --
It also looks like it's trying to use OCI. I have the Oracle 8.1.5.0.2
client but I need to connect to a remote Oracle 7.3.3.5.0 DB. Is this going to
work?
P.S. this is the first time that I've tried to compile php3. Usually I use the
rpm versions. The config options that I used (with the exception of
--with-mysql and --with-oracle) came from the mod_php3-3.0.12-12.src.rpm file.
-- -------------------------------------------------- David Nagel - University of Regina Students' Union Director of Communications & Information Services Regina, Sk., Canada, S4S-0A2, (306) - 586 - 8811 --------------------------------------------------
attached mail follows:
I think this will give you an idea, but I doubt the code correction is completely correct. I still require to look up the manual for the correct syntax. (read newbie)
Andrew Sheh
-----Original Message-----
From: Telinco [mailto:abbs
telinco.co.uk]
Sent: Wednesday, February 16, 2000 6:01 AM
To: php3
lists.php.net
Subject: [PHP3] Search Options
Need assistance please; Require the html form to search mysql table for varing Nos of days. When this is typed manually to Mysql the Results for past 7 days appear: current_date - period < 00000008
Whats required is to get this query from html to mysql via php.
Any corrections offered for the php script???
much appreciated
abbs1
x-stream.co.uk
**************************************************************************** * Html Form: Search For : // you are missing the option value , "past_ads" is only the name, when selected past_ads will = selection <select name="past_ads"> <option value = 0 >UnSelected </OPTION> <option value = 7 > Past 7 Days </OPTION> <option value = 14 > Past 14 Days </OPTION> <option value = 21 > Past 21 Days </OPTION> <option value = "all" > All Ads // would this be the same as 0 </SELECT> // don't know if the % would work
**************************************************************************** **** Php dealing with search options:
$time = "current_date < $past_ads";
if ($past_ads = = "all" ) { // reassigns the time to search all $time = "past_ads LIKE '%' " };
/// Query to mysql Table:
$result = mysql_query ("SELECT * FROM prof WHERE country_residence like '%' AND country_residence like '$country_residence' AND (to_days(now())-to_days(dob))/365 >'$min_age' AND (to_days(now())-to_days(dob))/365 <'$max_age' AND $time ");
****************************************************************************
attached mail follows:
Hey all,
I'm rather new to the list, and I'm not sure of the proper list-etiquette yet. Is there a FAQ somewhere that might answer some simple or general questions?
What I'm trying to do right now is convert the TimeStamp from MySQL into a read-able Date/Time. I've tried a few solutions offered on the php.net website, but they were not successful.
I'm running MySQL 3.22.21.
TIA
Adam Israel
attached mail follows:
good idea asking about the faq's. there are none, but i was thinking of writing some since it seems the same questions are asked every week at least once.
to convert timestamp you will either have to regular expression it, or make the date/time with a bunch of substrings.
At 12:07 PM 2/17/2000 -0600, you wrote:
>Hey all,
>
>I'm rather new to the list, and I'm not sure of the proper list-etiquette
>yet. Is there a FAQ somewhere that might answer some simple or general
>questions?
>
>What I'm trying to do right now is convert the TimeStamp from MySQL into a
>read-able Date/Time. I've tried a few solutions offered on the php.net
>website, but they were not successful.
>
>I'm running MySQL 3.22.21.
>
>TIA
>
>
>Adam Israel
>
>
>--
>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:
try: select date_format(now(),'%W, %M %D, %Y');
- Mark
***********************************************
On 2/17/00 at 12:07 PM Adam Israel wrote:
>Hey all,
>
>I'm rather new to the list, and I'm not sure of the proper list-etiquette
>yet. Is there a FAQ somewhere that might answer some simple or general
>questions?
>
>What I'm trying to do right now is convert the TimeStamp from MySQL into a
>read-able Date/Time. I've tried a few solutions offered on the php.net
>website, but they were not successful.
>
>I'm running MySQL 3.22.21.
>
>TIA
>
>
>Adam Israel
>
>
>--
>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:
Thanks Mark. I used date_format on the field, and it works great.
Adam
-----Original Message-----
From: Mark Maggelet [mailto:maggelet
mminternet.com]
Sent: Thursday, February 17, 2000 12:22 PM
To: Adam Israel; php3
lists.php.net
Subject: Re: [PHP3] New to list
try: select date_format(now(),'%W, %M %D, %Y');
- Mark
***********************************************
On 2/17/00 at 12:07 PM Adam Israel wrote:
>Hey all, > >I'm rather new to the list, and I'm not sure of the proper list-etiquette >yet. Is there a FAQ somewhere that might answer some simple or general >questions? > >What I'm trying to do right now is convert the TimeStamp from MySQL into a >read-able Date/Time. I've tried a few solutions offered on the php.net >website, but they were not successful. > >I'm running MySQL 3.22.21. > >TIA > > >Adam Israel
attached mail follows:
At 12:07 PM 2/17/00 -0600, you wrote: >Hey all, > >I'm rather new to the list, and I'm not sure of the proper list-etiquette >yet. Is there a FAQ somewhere that might answer some simple or general >questions? > >What I'm trying to do right now is convert the TimeStamp from MySQL into a >read-able Date/Time. I've tried a few solutions offered on the php.net >website, but they were not successful. > >I'm running MySQL 3.22.21.
It's linked rather promiscuously under the "Documentation" button from the PHP web-site.
I would assume there is a MySQL FAQ somewhere at http://www.mysql.org
-- "TANSTAAFL" We're looking for PHP/ASP hacker: http://ignitionstate.com/jobs/index.html Need Work? Graphic Design: http://L-I-E.com/jobs.htm#GraphicDesign Printer Driver: http://L-I-E.com/jobs.htm#PrinterDriver 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:
The problem in my virtualhosts wasn't because of a bad configuration.
The problem is that I use SetWWWTheme, a perl script to insert HTML code to HTML files automatically (a way to insert banners on-line).
The wayto execute the script is:
<Location /somewhere> SetHandler perl-script PerlHandler Apache::SetWWWTheme PerlSetVar CONFIG_FILE /WWW/Configuration </Location>
So if I use it in my VirtualHost, PHP doesn't work :(
Anyone has any idea of how can I fix this problem?
Thanks.
attached mail follows:
Finally I found a way to fix it:
<VirtualHost 194.224.200.60:80> SSLDisable ..... # Mete el banner <Files ~ (\.htm)> SetHandler perl-script PerlHandler Apache::SetWWWTheme PerlSetVar CONFIG_FILE /home/httpd/themes/Config </Files> <Files ~ (\.html)> SetHandler perl-script PerlHandler Apache::SetWWWTheme PerlSetVar CONFIG_FILE /home/httpd/themes/Config </Files> ..... </VirtualHost>
It only affects to .ht* files, so .php files work OK :-)
> The problem in my virtualhosts wasn't because of a bad configuration.
>
> The problem is that I use SetWWWTheme, a perl script to insert HTML code
to
> HTML files automatically (a way to insert banners on-line).
>
> The wayto execute the script is:
>
> <Location /somewhere>
> SetHandler perl-script
> PerlHandler Apache::SetWWWTheme
> PerlSetVar CONFIG_FILE /WWW/Configuration
> </Location>
>
> So if I use it in my VirtualHost, PHP doesn't work :(
>
> Anyone has any idea of how can I fix this problem?
>
> Thanks.
>
>
> --
> 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 read the section for the "mysql_fetch_array()", that's where I got the idea for the code in my original post but it didn't explain why both the "numerical key" and the "string key" are both displayed during that "while" loop.
The reason I'm inquiring about this is because I need to extract the contents of a specific MySQL table and incorporate it into a HTML form with only the name (the string key) and it's value. I want the specific PHP code to be generic code for all of the specific MySQL tables.
Ex.
The MySQL table contains the following information:
id <---- the ID number of a graphic for example Img_data <---- the binary data of the image Img_Name <---- the name of the graphic (i.e. image.gif)
The PHP code in the form would then connect to the DB and retrieve each row (mysql_fetch_array()) and display it in HTML. The code might contain something like:
<img src="<? getImg_function(); ?>" name="<? $Img_Name ?>">
or something along those lines. The "getImg_function()" would get the binary data and return a variable to display the image. That's the reason I want to just get the "string key" from the array. I want to be able to use the same function call for any table without having to look up each and every column name from each table.
Is this possible or am I trying to accomplish something that I should use PERL for?? I know PERL but I'd like to do this in PHP to broaden my programming horizons ;o)
-- James Brown, Sr. CIO | DNS/System/Network Administrator Sys-AdminCSUinternet.net | CSU Internet - Tifton, GA.
attached mail follows:
At 01:18 PM 2/17/00 -0500, you wrote: >I read the section for the "mysql_fetch_array()", that's where I got the idea >for the code in my original post but it didn't explain why both the "numerical >key" and the "string key" are both displayed during that "while" loop.
From the manual:
"The optional second argument result_type in mysql_fetch_array() is a constant and can take the following values: MYSQL_ASSOC, MYSQL_NUM, and MYSQL_BOTH. (This feature was added in PHP 3.0.7)"
The default is MYSQL_BOTH.
That means you'll get *both* ASSOCiative and NUMerical indices.
If you only want one or the other, just ask for it.
-- "TANSTAAFL" We're looking for PHP/ASP hacker: http://ignitionstate.com/jobs/index.html Need Work? Graphic Design: http://L-I-E.com/jobs.htm#GraphicDesign Printer Driver: http://L-I-E.com/jobs.htm#PrinterDriver 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:
Hi All on the list,
I have managed to re build PHP on a apache/linux box to accept xml_parser_create().
I am now trying to do the same on an NT with apache.
Has any one done this? and if so how?
or
Is this a *nix only command?
-- Regards,David
davide
cavendish.com
Programming is a series of discoveries leading you from one plateau of understanding to another... The trick is not to step in the stuff between the plateaus.
attached mail follows:
If you use the sleep function the net effect will be that your page appears to take longer to respond. If what you are wanting is for something to happen on the client side every X seconds you will have to use javascript or use the refresh header/meta tag.
For the JS solution look at the setInterval setTimeout function. They let you (or at least setInterval does) schedule a javascript function to take place in the future without halting the system (like sleep does).
Hope this helps.
On Thu, Feb 17, 2000 at 11:02:39AM -0500, Peter Benoit wrote:
> I was hoping for something more like:
>
> $i=0;
> function countNprint() {
> $i++;
> echo $i;
> }
>
> myloop = every 10 seconds call countNprint;
>
> > -----Original Message-----
> > From: Stefano Brozzi [SMTP:sbrozzi
bci.it]
> > Sent: Thursday, February 17, 2000 11:11 AM
> > Cc: PHP Mailing List
> > Subject: Re: [PHP3] I want to loop
> >
> > Peter Benoit wrote:
> > >
> > > I suppose I should change my request to:
> > >
> > > Is there a way I can fire off a php function at an interval while a page
> > is
> > > loaded?
> > >
> > > I read the crontab manual entry, and it doesn't seem to be what I need,
> > > unless somehow I can turn it on and off when a page is loaded or
> > closed...
> >
> > <META HTTP-EQUIV=REFRESH CONTENT=600;URL="index.html">
> >
> > 600 is refresh time express in seconds
> >
> > for the php way-of-life see the header() function
> >
> >
>
> --
> 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
>
---- Christopher R. Moewes-Bystrom christopher
moewes.com http://www.moewes.com http://www.linuxnovice.org
attached mail follows:
That's exactly the answer I came up with, which lead me to the question "is there a setTimeout in the works for PHP?"
> -----Original Message-----
> From: christopher
moewes.com [SMTP:christopher
moewes.com]
> Sent: Thursday, February 17, 2000 1:41 PM
> To: Peter Benoit
> Cc: PHP Mailing List
> Subject: Re: [PHP3] I want to loop
>
> If you use the sleep function the net effect will be that your page
> appears
> to take longer to respond. If what you are wanting is for something to
> happen on the client side every X seconds you will have to use javascript
> or
> use the refresh header/meta tag.
>
> For the JS solution look at the setInterval setTimeout function. They let
> you (or at least setInterval does) schedule a javascript function to take
> place in the future without halting the system (like sleep does).
>
> Hope this helps.
>
>
> On Thu, Feb 17, 2000 at 11:02:39AM -0500, Peter Benoit wrote:
> > I was hoping for something more like:
> >
> > $i=0;
> > function countNprint() {
> > $i++;
> > echo $i;
> > }
> >
> > myloop = every 10 seconds call countNprint;
> >
> > > -----Original Message-----
> > > From: Stefano Brozzi [SMTP:sbrozzi
bci.it]
> > > Sent: Thursday, February 17, 2000 11:11 AM
> > > Cc: PHP Mailing List
> > > Subject: Re: [PHP3] I want to loop
> > >
> > > Peter Benoit wrote:
> > > >
> > > > I suppose I should change my request to:
> > > >
> > > > Is there a way I can fire off a php function at an interval while a
> page
> > > is
> > > > loaded?
> > > >
> > > > I read the crontab manual entry, and it doesn't seem to be what I
> need,
> > > > unless somehow I can turn it on and off when a page is loaded or
> > > closed...
> > >
> > > <META HTTP-EQUIV=REFRESH CONTENT=600;URL="index.html">
> > >
> > > 600 is refresh time express in seconds
> > >
> > > for the php way-of-life see the header() function
> > >
> > >
> >
> > --
> > 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
> >
>
> --
>
> --
> Christopher R. Moewes-Bystrom
> christopher
moewes.com
> http://www.moewes.com
> http://www.linuxnovice.org
>
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
> To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
> To search the mailing list archive, go to:
> http://www.php.net/mailsearch.php3
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
This may not be the most efficient, but will send content to my IE5 browser every 1 second. If I understand your question, this hopefully will help?
<? $n=.01; for ($i = 1; $i < 31; $i++){ echo "Day $i : $".$n."<BR>"; $n = $n + $n; flush(); sleep(1); } ?>
Robert Zwink
> > -----Original Message-----
> > From: Peter Benoit [mailto:pbenoit
triton-network.com]
> > Sent: Thursday, February 17, 2000 1:36 PM
> > To: 'christopher
moewes.com'
> > Cc: PHP Mailing List
> > Subject: RE: [PHP3] I want to loop
> >
> >
> > That's exactly the answer I came up with, which lead me to the
> > question "is
> > there a setTimeout in the works for PHP?"
> >
> >
> > > -----Original Message-----
> > > From: christopher
moewes.com [SMTP:christopher
moewes.com]
> > > Sent: Thursday, February 17, 2000 1:41 PM
> > > To: Peter Benoit
> > > Cc: PHP Mailing List
> > > Subject: Re: [PHP3] I want to loop
> > >
> > > If you use the sleep function the net effect will be that your page
> > > appears
> > > to take longer to respond. If what you are wanting is for something to
> > > happen on the client side every X seconds you will have to use
> > javascript
> > > or
> > > use the refresh header/meta tag.
> > >
> > > For the JS solution look at the setInterval setTimeout
> > function. They let
> > > you (or at least setInterval does) schedule a javascript
> > function to take
> > > place in the future without halting the system (like sleep does).
> > >
> > > Hope this helps.
> > >
> > >
> > > On Thu, Feb 17, 2000 at 11:02:39AM -0500, Peter Benoit wrote:
> > > > I was hoping for something more like:
> > > >
> > > > $i=0;
> > > > function countNprint() {
> > > > $i++;
> > > > echo $i;
> > > > }
> > > >
> > > > myloop = every 10 seconds call countNprint;
> > > >
> > > > > -----Original Message-----
> > > > > From: Stefano Brozzi [SMTP:sbrozzi
bci.it]
> > > > > Sent: Thursday, February 17, 2000 11:11 AM
> > > > > Cc: PHP Mailing List
> > > > > Subject: Re: [PHP3] I want to loop
> > > > >
> > > > > Peter Benoit wrote:
> > > > > >
> > > > > > I suppose I should change my request to:
> > > > > >
> > > > > > Is there a way I can fire off a php function at an
> > interval while a
> > > page
> > > > > is
> > > > > > loaded?
> > > > > >
> > > > > > I read the crontab manual entry, and it doesn't seem to
> be what I
> > > need,
> > > > > > unless somehow I can turn it on and off when a page is loaded or
> > > > > closed...
> > > > >
> > > > > <META HTTP-EQUIV=REFRESH CONTENT=600;URL="index.html">
> > > > >
> > > > > 600 is refresh time express in seconds
> > > > >
> > > > > for the php way-of-life see the header() function
> > > > >
> > > > >
> > > >
> > > > --
> > > > 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
> > > >
> > >
> > > --
> > >
> > > --
> > > Christopher R. Moewes-Bystrom
> > > christopher
moewes.com
> > > http://www.moewes.com
> > > http://www.linuxnovice.org
> > >
> > > --
> > > PHP 3 Mailing List <http://www.php.net/>
> > > To unsubscribe, send an empty message to
> php3-unsubscribe
lists.php.net
> > > To subscribe to the digest, e-mail:
> php3-digest-subscribe
lists.php.net
> > > To search the mailing list archive, go to:
> > > http://www.php.net/mailsearch.php3
> > > To contact the list administrators, e-mail:
> php-list-admin
lists.php.net
> >
> > --
> > PHP 3 Mailing List <http://www.php.net/>
> > To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
> > To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
> > To search the mailing list archive, go to:
> > http://www.php.net/mailsearch.php3
> > To contact the list
> > administrators, e-mail: php-list-admin
lists.php.net
> >
> >
attached mail follows:
At 01:35 PM 2/17/00 -0500, you wrote: >That's exactly the answer I came up with, which lead me to the question "is >there a setTimeout in the works for PHP?"
Errrrr. Once the page is delivered to the client, the connection from the server to the client is closed.
There really isn't a whole lot of interesting uses for a function to fire off later that can't get to the user.
And if you want that, you can have a page that schedules a one-off at job.
man at
-- "TANSTAAFL" We're looking for PHP/ASP hacker: http://ignitionstate.com/jobs/index.html Need Work? Graphic Design: http://L-I-E.com/jobs.htm#GraphicDesign Printer Driver: http://L-I-E.com/jobs.htm#PrinterDriver 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:
> -----Original Message-----
> From: Curtis Alcock [mailto:curtis.alcock
pepper.co.uk]
> Sent: Thursday, February 17, 2000 9:23 AM
> To: php3
lists.php.net
> Subject: [PHP3] Displaying MySQL results 2 Up in a table
>
>
> If I am using:
>
> mysql_fetch_row($result);
>
> and looping through it to display the results in a table, how do
> I find out
> what row (ie from the database results) the loop is on?
>
> I want to see whether the row number is divisible by 2 without leaving a
> remainder. I can then sort the results into a table that displays
> the first
> 2 rows from the database next to each other (ie 2 up) then the next 2 rows
> next to each other on the second row of the HTML table etc.
>
> TIA
>
> Curtis
I have a similar problem to figure out. Can somebody correct me if I am
wrong, but the solution is in the 2 column HTML table?
I was thinking of placing one result on the left column and placing the 2nd result on the right, then forcing the table to change row; and repeat the process. Just have to figure out how.
I have seen several requests asking to know the MySQL row number, but have not seen a response. I doubt this can be done.
Andrew Sheh DME Technologies -- Displays Made Easy http://www.dmetechnologies.com
attached mail follows:
you could do a little recursion
like
while ($rowl = mysql_fetch_array($result)) { $row2 = mysql_fetch_array($result) ?> <tr><td><? echo $row1['name']; ?></td> <td><td><? echo $row2['name']; ?></td> </tr> <? }
i am unclear about 'row number'; i would increment a counter varible inside the while loop if you need to 'count up to' the number of records
At 10:42 AM 2/17/2000 -0800, you wrote:
>
>> -----Original Message-----
>> From: Curtis Alcock [mailto:curtis.alcock
pepper.co.uk]
>> Sent: Thursday, February 17, 2000 9:23 AM
>> To: php3
lists.php.net
>> Subject: [PHP3] Displaying MySQL results 2 Up in a table
>>
>>
>> If I am using:
>>
>> mysql_fetch_row($result);
>>
>> and looping through it to display the results in a table, how do
>> I find out
>> what row (ie from the database results) the loop is on?
>>
>> I want to see whether the row number is divisible by 2 without leaving a
>> remainder. I can then sort the results into a table that displays
>> the first
>> 2 rows from the database next to each other (ie 2 up) then the next 2 rows
>> next to each other on the second row of the HTML table etc.
>>
>> TIA
>>
>> Curtis
>I have a similar problem to figure out. Can somebody correct me if I am
>wrong, but the solution is in the 2 column HTML table?
>
>I was thinking of placing one result on the left column and placing the 2nd
>result on the right, then forcing the table to change row; and repeat the
>process. Just have to figure out how.
>
>I have seen several requests asking to know the MySQL row number, but have
>not seen a response. I doubt this can be done.
>
>Andrew Sheh
>DME Technologies -- Displays Made Easy
>http://www.dmetechnologies.com
>
>
>--
>PHP 3 Mailing List <http://www.php.net/>
>To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
>To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
>To search the mailing list archive, go to: http://www.php.net/mailsearch.php3
>To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
>
attached mail follows:
At 05:23 PM 2/17/00 +0000, you wrote: >If I am using: > >mysql_fetch_row($result); > >and looping through it to display the results in a table, how do I find out >what row (ie from the database results) the loop is on? > >I want to see whether the row number is divisible by 2 without leaving a >remainder. I can then sort the results into a table that displays the first >2 rows from the database next to each other (ie 2 up) then the next 2 rows >next to each other on the second row of the HTML table etc.
$rowNumber=0; while (list($field1, $field2, ...) = mysql_fetch_row($result)){ if ($rowNumber % 2){ echo "<TR><TD>"; } else{ echo "<TD>"; } echo $filed1, $field2, "<BR>\n"; if ($rowNumber %2){ echo "</TD>"; } else{ echo "</TD></TR>"; } $rowNumber++; }
Similarly to color-code rows
-- "TANSTAAFL" We're looking for PHP/ASP hacker: http://ignitionstate.com/jobs/index.html Need Work? Graphic Design: http://L-I-E.com/jobs.htm#GraphicDesign Printer Driver: http://L-I-E.com/jobs.htm#PrinterDriver 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:
"Peter Kocks" <peter.kocks
baygate.com> writes:
> > 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?
First up, you can use "shift" to extract function arguments one by
one, thus avoiding the dreaded
_ variable in this case ;)
Secondly, the special variables and operators needed in most programs are few--you listed most of them. The rest of them are, admittedly, somewhat arcane, but at least the special variables have English equivalents for writing readable code (perldoc English).
The reason for all these syntactical elements? Convenience, I guess. I at least prefer writing $foo =~ s/bar/baz/ over $foo = preg_replace("/bar/", "baz", $foo).
Also, I have found that Perl exposes (or exports) a much larger part of the underlying system than PHP3, which I find somewhat lacking in a few key areas (the filesystem interface, to name one).
Not to mention the vast amount of add-on packages for Perl (CPAN).
> Also the object oriented implementation of perl is just.... well... very > odd. The php object implementation is just...well...very clean.
I can't really comment on that since I haven't used the PHP3 object oriented interface (and rarely codes object oriented Perl).
> > 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.
I expected no less. Note that my original mail wasn't entirely negative towards PHP3 (or I probably wouldn't be on this list at all). I find PHP3 useful for web applications in spite of some shortcomings, but I wouldn't dream of choosing it over Perl for day to day scripting.
-- Echelon bait: COSCO SCUD missile Honduras Clinton Rule Psix security quiche Soviet cracking Vince Foster FBI Khaddafi supercomputer JFK jihad
attached mail follows:
Well isn't speed something that concerns you? php is hell of a lot faster than perl...
----- Original Message -----
From: Rene H. Larsen <rhl
traceroute.dk>
To: <php3
lists.php.net>
Sent: Thursday, February 17, 2000 3:03 AM
Subject: Re: [PHP3] php vs pearl
> "Peter Kocks" <peter.kocks
baygate.com> writes:
>
> > > 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?
>
> First up, you can use "shift" to extract function arguments one by
> one, thus avoiding the dreaded
_ variable in this case ;)
>
> Secondly, the special variables and operators needed in most programs
> are few--you listed most of them. The rest of them are, admittedly,
> somewhat arcane, but at least the special variables have English
> equivalents for writing readable code (perldoc English).
>
> The reason for all these syntactical elements? Convenience, I guess.
> I at least prefer writing $foo =~ s/bar/baz/ over
> $foo = preg_replace("/bar/", "baz", $foo).
>
> Also, I have found that Perl exposes (or exports) a much larger part
> of the underlying system than PHP3, which I find somewhat lacking in a
> few key areas (the filesystem interface, to name one).
>
> Not to mention the vast amount of add-on packages for Perl (CPAN).
>
> > Also the object oriented implementation of perl is just.... well... very
> > odd. The php object implementation is just...well...very clean.
>
> I can't really comment on that since I haven't used the PHP3 object
> oriented interface (and rarely codes object oriented Perl).
>
> > > 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.
>
> I expected no less. Note that my original mail wasn't entirely
> negative towards PHP3 (or I probably wouldn't be on this list at all).
> I find PHP3 useful for web applications in spite of some shortcomings,
> but I wouldn't dream of choosing it over Perl for day to day
> scripting.
> --
> Echelon bait:
> COSCO SCUD missile Honduras Clinton Rule Psix security quiche Soviet
> cracking Vince Foster FBI Khaddafi supercomputer JFK jihad
>
> --
> 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 reason for all these syntactical elements? Convenience, I guess. > I at least prefer writing $foo =~ s/bar/baz/ over > $foo = preg_replace("/bar/", "baz", $foo).
The problem with the Perl approach is that someone new to the language has no idea what =~ does and it is pretty hard to look up =~ or $_ or any of these cryptic symbols in a manual. At least with the more verbose and precedural approach PHP takes you always have a legible keyword to pop into the quick-ref and you can figure out what the line does. > I expected no less. Note that my original mail wasn't entirely > negative towards PHP3 (or I probably wouldn't be on this list at all). > I find PHP3 useful for web applications in spite of some shortcomings, > but I wouldn't dream of choosing it over Perl for day to day > scripting.
And that pretty much describes where PHP fits. It is a web scripting language targetted at web scripting. The fact that a Perl fan like you uses PHP for web scripting at all shows that we are on the right track.
-Rasmus
attached mail follows:
> > The reason for all these syntactical elements? Convenience, I guess. > > I at least prefer writing $foo =~ s/bar/baz/ over > > $foo = preg_replace("/bar/", "baz", $foo).
Perl has always looked to me like somebody sneezed on the screen. I find it unaesthetic, inelegant, and unmaintainable. IMHO the fact that the "Obfuscatory Perl Contest" used to be a primary pasttime of Perl programmers says it all. But of course, YMMV. :O) I have a friend who writes all his web stuff in ANSI C. It runs very fast, of course, but...
Programming is the only "engineering" discipline I can think of where the practitioners write prose instead of drawing pictures on computer screens. I've long wondered why that is. Of course, that's less true now than it used to be.
attached mail follows:
Hello.
I've found the module Apache::ASP.
It is supposed to understand ASP programmed files. Do I need it to execute ASP code or PHP4 can already do it?
attached mail follows:
> I've found the module Apache::ASP. > > It is supposed to understand ASP programmed files. Do I need it to execute > ASP code or PHP4 can already do it?
Apache::ASP is a mod_perl thing. It has nothing to do with PHP. And yes, it can be used to execute ASP code, but only if this code is written in Perl which most ASP code tends not to be.
-Rasmus
attached mail follows:
At 07:49 PM 2/17/00 +0100, you wrote: >Hello. > >I've found the module Apache::ASP. > >It is supposed to understand ASP programmed files. Do I need it to execute >ASP code or PHP4 can already do it?
There is an asp2php utility that will convert the bulk of the code for large sites.
You'll still need to hand-fix a lot, but it can do the bulk of the mindless conversion.
There is a ChiliSoft ASP for Linux, which was last benchmarked as "Couldn't even run the damn thing" but I heard through the grape-vine that there's a new release, so maybe it actually works now...
-- "TANSTAAFL" We're looking for PHP/ASP hacker: http://ignitionstate.com/jobs/index.html Need Work? Graphic Design: http://L-I-E.com/jobs.htm#GraphicDesign Printer Driver: http://L-I-E.com/jobs.htm#PrinterDriver 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:
On Thu, 17 Feb 2000, Marius ANDREIANA wrote:
> On Thu, 17 Feb 2000 phplist
nyist.net wrote:
> > My site want to offer FREE PHP3 SPACE, how can i ensure
> > security?
> > I mean: my users will not be allowed to "peek" into
> > other's code(with password like things in it).
> I don't see what's the problem...
> You configure apache the normal way to offer web hosting...
> One member cannot see other's files, only if they are public
> ( e.g. the normal html in web tree )
If by "code" you mean files written in php and used in webpages, there is a real problem with using php as a server module, unless I'm overlooking something.
In this case, all files must be readable by the webserver. One user then could write a trivial php that displays another's php. I'm not too familiar with using php as a CGI though, and there may be a way to use suid (as in apache) to protect private php files.
me
artwells.com
http://www.artwells.com/
That which indicates nothing
introduces everything.
attached mail follows:
At 05:26 PM 2/17/00 +0800, you wrote: >Hello! >My site want to offer FREE PHP3 SPACE, how can i ensure >security? >I mean: my users will not be allowed to "peek" into >other's code(with password like things in it). >Can I use PHP as an Apache module while achieve the >goal?
That's what safe mode is for.
Read the security section of the online manual.
-- "TANSTAAFL" We're looking for PHP/ASP hacker: http://ignitionstate.com/jobs/index.html Need Work? Graphic Design: http://L-I-E.com/jobs.htm#GraphicDesign Printer Driver: http://L-I-E.com/jobs.htm#PrinterDriver http://CHaTMusic.com http://EmphasisEntertainment.com http://L-I-E.com http://JadeMaze.com http://CatCatalani.com http://MGMH.com http://VoodooKings.net http://UncommonGround.com
attached mail follows:
At 11:02 AM 2/17/00 -0800, you wrote:
>
>On Thu, 17 Feb 2000, Marius ANDREIANA wrote:
>
>> On Thu, 17 Feb 2000 phplist
nyist.net wrote:
>> > My site want to offer FREE PHP3 SPACE, how can i ensure
>> > security?
>> > I mean: my users will not be allowed to "peek" into
>> > other's code(with password like things in it).
>> I don't see what's the problem...
>> You configure apache the normal way to offer web hosting...
>> One member cannot see other's files, only if they are public
>> ( e.g. the normal html in web tree )
>
>If by "code" you mean files written in php and used in webpages, there is
>a real problem with using php as a server module, unless I'm overlooking
>something.
>
>In this case, all files must be readable by the webserver. One
>user then could write a trivial php that displays another's php. I'm not
>too familiar with using php as a CGI though, and there may be a way to use
>suid (as in apache) to protect private php files.
I believe safe mode addresses that issue...
-- "TANSTAAFL" We're looking for PHP/ASP hacker: http://ignitionstate.com/jobs/index.html Need Work? Graphic Design: http://L-I-E.com/jobs.htm#GraphicDesign Printer Driver: http://L-I-E.com/jobs.htm#PrinterDriver 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:
Now, I don't know about the rest of you but I've found that sites using ASP's take tooooooo long to load and PHP pages load fast. I prefer PHP over ASP hands down.
Maybe it's bias ;o)
-- James Brown, Sr. CIO | DNS/System/Network Administrator Sys-AdminCSUinternet.net | CSU Internet - Tifton, GA.
attached mail follows:
In article <38ABEAF2.1E61702E
design.am>, Vahan Yerkanian
<vahan
design.am> writes
>Graham,
>
>a small typo:
><?php
> header("Location: http://mynewurl" . $QUERY_STRING);
>?>
thanks for that. I guess that's what comes of reading manuals on line after midnight :-)
------- Regards, Graham Chiu
attached mail follows:
In article <NDBBJLHADKIIBDOLDJBJIEMOEAAA.raguzman
netraiser.com>, Ralph
Guzman <raguzman
netraiser.com> writes
>If what you are trying to do is redirect a user acording to the browser they
>are using, here is a simple script that will do this. You can elaborate on
>this to the point where you can even check browser version and platform. But
>this is just to give you an idea:
What I wanted to do was provide a static url which redirects to a dynamic IP address. Works now.
------- Regards, Graham Chiu
attached mail follows:
At 01:29 PM 2/17/00 -0300, you wrote: >Hi all, > >If I want that an index.html page, execute a .php file when it load (like de >header function in php), what can i do ?
Turn on PHP for all html pages in httpd.conf
-- "TANSTAAFL" We're looking for PHP/ASP hacker: http://ignitionstate.com/jobs/index.html Need Work? Graphic Design: http://L-I-E.com/jobs.htm#GraphicDesign Printer Driver: http://L-I-E.com/jobs.htm#PrinterDriver 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:
OK, I've finally figured out a way to just get the "string" keys from a MySQL table. I've noticed that each "even" number contained the column heading from the table so I put on my PERL hat and remembered that the "modulus" worked for both PHP and PERL.
I then implemented an "IF" statement (if ($x % 2 == 0) then next else ...) and that printed EXACTLY what I was looking for so now it's just a matter of incorporating it into my actual code.
I appreciated all the responses and I believe I can now TERMINATE this thread :o)
Below is my original test script and the same script with the additions if anyone wants to see.
**** OLD CODE **** <? $x = 0; mysql_connect('localhost','username','password'); mysql_select_db('database'); $query = "select * from Account_Info"; $result = mysql_query($query); while ($row = mysql_fetch_array($result)) { while (list($key,$val) = each($row)) { echo "Key/Val $x: $key => $val"; $x++; print "<br>"; } } ?>
**** NEW CODE **** <? $x = 0; mysql_connect('localhost','username','password'); mysql_select_db('database'); $query = "select * from Account_Info"; $result = mysql_query($query); while ($row = mysql_fetch_array($result)) { while (list($key,$val) = each($row)) { if ($x % 2 == 0) { // Added to remove the odd number keys next; // perform the skip over } else { echo "Key/Val $x: $key => $val"; } $x++; print "<br>"; } } ?>
-- James Brown, Sr. CIO | DNS/System/Network Administrator Sys-AdminCSUinternet.net | CSU Internet - Tifton, GA.
attached mail follows:
Hello everyone...
I have a related question. I have n application which uses apache http authentication (htaccess file) to grant access to several users. I would like to know if there is some way, using php code to know which user is accessing the document. I tried $HTTP_AUTH_USER (is that the correct name? ... anyway), but I think that only works if the authentication is don using php code as well. If it is done through apache, then the variable has no value at all. Is this right? Does anybody knows if this can be done?
Thanks a lot
Jorge Ruben Macias Lopez
jmacias
protel.net.mx
"Any sufficiently advanced technology is undistinguishable from magic." Arthur C. Clarke's Third Law
-----Mensaje original-----
De: Auke van Slooten [SMTP:auke
muze.nl]
Enviado el: Thursday, February 17, 2000 9:42 AM
Para: Flavia Cristina Bernardini
CC: Lista PHP3
Asunto: Re: [PHP3] HTTP Authentication
On Thu, 17 Feb 2000, Flavia Cristina Bernardini wrote:
> Good morning! > > Well, someone said me about PHPLIB (http://phplib.netuse.de) to > authenticate, but this library just authenticate with HTML forms. I'd > like to un-authenticate users with HTTP authentication. I had the > conclusion that this is impossible! Is this truth???
Not entirely, the http authentication protocol does not have a logoff feature, but it can be 'faked'. All you need to do is deny a user once, and generate a fresh realm and the user will be effectively logged off. I created a skeleton script some time ago, you can find it at:
http://px.sklar.com/code.html?code_id=297
regards, Auke van Slooten http://www.muze.nl/
attached mail follows:
At 03:40 PM 2/17/00 +0100, you wrote: >Hi there! > >I'm using php3 on a Linux machine, and i'm a bit bored by php only >accepting >absolute paths in include() and require() tags... >Is there any way forcing php to use relative paths?
Add './' to your include path in the php3.ini file.
-- "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:19 PM 2/17/00 +0700, you wrote: >How do i compile the cgi version of PHP ?
Exactly like you did the apache version, only leave off --with-apxs (or --with-apache).
-- "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:26 AM 2/17/00 +0900, you wrote: > Hello. >I have a question. >I know some Perl5's Regular Expressions. >Can I use them in php3?
I believe the preg_xxx are mostly compatible with Perl.
-- "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:32 PM 2/17/00 +0700, you wrote: >Do i do the right thing to compile php as binaries ? > >$ ./configure --with-mysql --enable-track-vars --with-mcal= ../libmcal >$ make >$ make install > >if yes, how come after the "make" step came out errors.
What errors?
You also may wish to turn on the stuff recommended in:
http://www.php.net/manual/security.php3
-- "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 error something like this :
/home/hui/php-4.0b3/ext/mysql/php_mysql.c:505: undefined reference to `ap_signal ' .libs/libphp4.a(php_mysql.o):/home/hui/php-4.0b3/ext/mysql/php_mysql.c:514: more undefined references to `ap_signal' follow .libs/libphp4.a(browscap.o): In function `browser_reg_compare': /home/hui/php-4.0b3/ext/standard/browscap.c:57: undefined reference to `ap_regex ec' .libs/libphp4.a(reg.o): In function `_php3_reg_eprint': /home/hui/php-4.0b3/ext/standard/reg.c:148: undefined reference to `ap_regerror' /home/hui/php-4.0b3/ext/standard/reg.c:153: undefined reference to `ap_regerror' /home/hui/php-4.0b3/ext/standard/reg.c:158: undefined reference to `ap_regerror' /home/hui/php-4.0b3/ext/standard/reg.c:169: undefined reference to `ap_regerror' .libs/libphp4.a(reg.o): In function `_php3_ereg': /home/hui/php-4.0b3/ext/standard/reg.c:239: undefined reference to `ap_regexec' .libs/libphp4.a(reg.o): In function `_php3_regreplace': /home/hui/php-4.0b3/ext/standard/reg.c:339: undefined reference to `ap_regexec' .libs/libphp4.a(reg.o): In function `php3_split': /home/hui/php-4.0b3/ext/standard/reg.c:588: undefined reference to `ap_regexec' collect2: ld returned 1 exit status make[2]: *** [php] Error 1 make[2]: Leaving directory `/home/hui/php-4.0b3' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/hui/php-4.0b3' make: *** [all-recursive-am] Error 2
Kuang Hui Lioe
Solution Developer
Plasmedia.com
hui
plasmedia.com
----- Original Message -----
From: Richard Lynch <rlynch
ignitionstate.com>
To: kuanghui lioe <hui
erakarsa.co.id>; <php3
lists.php.net>
Sent: Friday, February 18, 2000 2:18 AM
Subject: Re: [PHP3] compile as a cgi
> At 05:32 PM 2/17/00 +0700, you wrote: > >Do i do the right thing to compile php as binaries ? > > > >$ ./configure --with-mysql --enable-track-vars --with-mcal= ../libmcal > >$ make > >$ make install > > > >if yes, how come after the "make" step came out errors. > > What errors? > > You also may wish to turn on the stuff recommended in: > > http://www.php.net/manual/security.php3 > -- > "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:
Alexander,
IE is also tied to the OS. therefore most of the overhead of IE is loaded when you boot windows. that's why it's fast. and typically if IE goes out with a boom, so does windows. that's my $0.02, and opinion.
PS: No, I do not work for M$, and I surely never will. (;
on Thu, 17 Feb 2000, Alexander Werner Skwar is accused of writing:
> On Thu, Feb 17, 2000 at 12:14:27PM +0100, David Diaz i Torrico wrote: > > > > > > On Thu, 17 Feb 2000, Alexander Skwar wrote: > > > > > > There is a Solaris version: > > > > Don't know what it's like though. > > > > > > It's said to be really bad. > > > > Windows and Mac versions stink too, but ppl uses them anyway. =:P > > Well, actually the Windows version doesn't stink as much as e.g. > Netscape for Linux. IE is fast and has some quite nice features like > auto completion, complete .png support (? at least more complete than NS > has it) etc.pp.. The thing that stinks about IE is, that it is from M$ > and the marketing M$ does. But IE itself is not that bad. > > PS: No, I do not work for M$, and I'll surely never will. > > Alexander Skwar > -- > Homepage: http://www.digitalprojects.com > Sichere Mail? PGP/GnuPG Keys als Antwort auf Mail mit Betr: Get GPG Key
-- Nathan Benson ------------- http://www.phactor.org/Me spell chucker work grate. Need grandma chicken.
attached mail follows:
On Thu, Feb 17, 2000 at 01:23:12PM -0600, Nathan Benson wrote: > Alexander, > > IE is also tied to the OS. therefore most of the overhead of IE is > loaded when you boot windows. that's why it's fast. and typically > if IE goes out with a boom, so does windows. that's my $0.02, and > opinion.
Sure, IE is tied to the OS. But that's just the reason for IE starting up quite fast. But IE also renders pages faster than NS. And it happened more than once to me under Win, that because of a crashed NS or some other app, I had to restart the system. Why does everybody say that IE is that bad? Just because it's from M$?
> > PS: No, I do not work for M$, and I surely never will. (; > > on Thu, 17 Feb 2000, Alexander Werner Skwar is accused of writing: > > > On Thu, Feb 17, 2000 at 12:14:27PM +0100, David Diaz i Torrico wrote: > > > > > > > > > On Thu, 17 Feb 2000, Alexander Skwar wrote: > > > > > > > > There is a Solaris version: > > > > > Don't know what it's like though. > > > > > > > > It's said to be really bad. > > > > > > Windows and Mac versions stink too, but ppl uses them anyway. =:P > > > > Well, actually the Windows version doesn't stink as much as e.g. > > Netscape for Linux. IE is fast and has some quite nice features like > > auto completion, complete .png support (? at least more complete than NS > > has it) etc.pp.. The thing that stinks about IE is, that it is from M$ > > and the marketing M$ does. But IE itself is not that bad. > > > > PS: No, I do not work for M$, and I'll surely never will. > > > > Alexander Skwar > > -- > > Homepage: http://www.digitalprojects.com > > Sichere Mail? PGP/GnuPG Keys als Antwort auf Mail mit Betr: Get GPG Key > > > > -- > Nathan Benson > ------------- > http://www.phactor.org/ > > Me spell chucker work grate. Need grandma chicken. Alexander Skwar
-- Homepage: http://www.digitalprojects.com Sichere Mail? PGP/GnuPG Keys als Antwort auf Mail mit Betr: Get GPG Key
- application/pgp-signature attachment: stored
attached mail follows:
i don't recall ever saying it was bad. _shrug_
on Thu, 17 Feb 2000, Alexander Werner Skwar is accused of writing:
> On Thu, Feb 17, 2000 at 01:23:12PM -0600, Nathan Benson wrote: > > Alexander, > > > > IE is also tied to the OS. therefore most of the overhead of IE is > > loaded when you boot windows. that's why it's fast. and typically > > if IE goes out with a boom, so does windows. that's my $0.02, and > > opinion. > > Sure, IE is tied to the OS. But that's just the reason for IE starting > up quite fast. But IE also renders pages faster than NS. And it > happened more than once to me under Win, that because of a crashed NS or > some other app, I had to restart the system. > Why does everybody say that IE is that bad? Just because it's from M$? > > > > > PS: No, I do not work for M$, and I surely never will. (; > > > > on Thu, 17 Feb 2000, Alexander Werner Skwar is accused of writing: > > > > > On Thu, Feb 17, 2000 at 12:14:27PM +0100, David Diaz i Torrico wrote: > > > > > > > > > > > > On Thu, 17 Feb 2000, Alexander Skwar wrote: > > > > > > > > > > There is a Solaris version: > > > > > > Don't know what it's like though. > > > > > > > > > > It's said to be really bad. > > > > > > > > Windows and Mac versions stink too, but ppl uses them anyway. =:P > > > > > > Well, actually the Windows version doesn't stink as much as e.g. > > > Netscape for Linux. IE is fast and has some quite nice features like > > > auto completion, complete .png support (? at least more complete than NS > > > has it) etc.pp.. The thing that stinks about IE is, that it is from M$ > > > and the marketing M$ does. But IE itself is not that bad. > > > > > > PS: No, I do not work for M$, and I'll surely never will. > > > > > > Alexander Skwar > > > -- > > > Homepage: http://www.digitalprojects.com > > > Sichere Mail? PGP/GnuPG Keys als Antwort auf Mail mit Betr: Get GPG Key > > > > > > > > -- > > Nathan Benson > > ------------- > > http://www.phactor.org/ > > > > Me spell chucker work grate. Need grandma chicken. > Alexander Skwar > -- > Homepage: http://www.digitalprojects.com > Sichere Mail? PGP/GnuPG Keys als Antwort auf Mail mit Betr: Get GPG Key
-- Nathan Benson ------------- http://www.phactor.org/Me spell chucker work grate. Need grandma chicken.
attached mail follows:
At 04:03 PM 2/17/00 -0600, you wrote: >Why does everybody say that IE is that bad? Just because it's from M$?
Yes.
If that isn't enough reason: It crashes. A lot. It allows sloppy HTML. It crashes. A lot. It has too many non-standard extensions to HTML. It crashes. A lot. It's rushed out to market without testing. It crashes. A lot. It's from Microsoft. It crashes. A lot.
-- "TANSTAAFL" We're looking for PHP/ASP hacker: http://ignitionstate.com/jobs/index.html Need Work? Graphic Design: http://L-I-E.com/jobs.htm#GraphicDesign Printer Driver: http://L-I-E.com/jobs.htm#PrinterDriver 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 don't know what your talking about.
Ever use Netscape with a lot of tables? Its slow! (And tends to crash a lot - more than IE - under anything but windows) Tables also don't always align properly (with the width settings) this is pretty pathetic concidering netscape was the 1st out there to support tables! Or, ever load 500+ images with netscape on one page? IE handles it fine on my celeron 400, but Netscape bogs down majorly, and don't resize the screen whatever you do! Netscape will refresh the entire page!
As with the non-standard extensions to HTML, netscape barely supports the ones that are standard.
Ever load a page with multiple textboxes with Netscape. Yah fill them out, and hit enter, nothing happens. you have to actually tab to the submit button or physicly click on the submit button (what for I don't know) where IE will do what you expect, hitting enter will submit the form (without the need for a bunch of jscript)
IE does have a lot of non-standard HTML extentions, however anything new isn't standard, it becomes a standard with use. Netscape stopped making new stuff a long time ago, so should all browsers stop there? No. They should forge ahead, put in new things into their browsers to make them better, and submit them to w3c for approval. I don't think jscript was exactly standard with it 1st came out on netscape and IE, both browsers are just as bad with unstandard HTML, IE is just worse at this moment because netscape hasn't had anything majorly new since 3.4.
And with the rushing out to market without testing I have got to disagree on, I have several friends at Microsoft, and in their perspective groups the testers outnumber the developers 2 to 1! (not counting Program Mangers, etc) take a look at IE's feature set compared to Netscapes, and you'll see that IE has a far larger feature set, this could be the reason for it being a little more unstable, and/or buggy. As a product gets bigger, theres prone to be more overlooked things.
----- Original Message -----
From: "Richard Lynch" <rlynch
ignitionstate.com>
To: "Alexander Werner Skwar" <askwar
DigitalProjects.com>;
<php3
lists.php.net>
Sent: Thursday, February 17, 2000 4:54 PM
Subject: Re: [PHP3] ie on linux
> At 04:03 PM 2/17/00 -0600, you wrote:
> >Why does everybody say that IE is that bad? Just because it's from M$?
>
> Yes.
>
> If that isn't enough reason:
> It crashes. A lot.
> It allows sloppy HTML.
> It crashes. A lot.
> It has too many non-standard extensions to HTML.
> It crashes. A lot.
> It's rushed out to market without testing.
> It crashes. A lot.
> It's from Microsoft.
> It crashes. A lot.
>
> --
> "TANSTAAFL"
> We're looking for PHP/ASP hacker: http://ignitionstate.com/jobs/index.html
> Need Work? Graphic Design: http://L-I-E.com/jobs.htm#GraphicDesign
> Printer Driver: http://L-I-E.com/jobs.htm#PrinterDriver
> 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
>
>
> --
> 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:
"Jason G." wrote: > > I don't know what your talking about. > > Ever use Netscape with a lot of tables? Its slow! (And tends to crash a > lot - more than IE - under anything but windows) Tables also don't always > align properly (with the width settings) this is pretty pathetic concidering > netscape was the 1st out there to support tables! Or, ever load 500+ images > with netscape on one page? IE handles it fine on my celeron 400, but > Netscape bogs down majorly, and don't resize the screen whatever you do! > Netscape will refresh the entire page! [cut..] ... as long the code work not a problem to me, if you focus with only 2 browser, how with Opera?, Neoplanet? Mozilla?, lynx? there so many browser guys.. better we focus on our php discussion not browser discussion. OK?
-- idban secandri idbansatunet.com http://linux.web.id
attached mail follows:
can anyone please help with this code ...
/***************************************************************/
/*Code: PHP 3 */
/*Author: Leon Atkinson <leon
clearink.com> */
/*Creates two form fields based on data from a database */
/*Writes javascript that update field 2 based on field 1 */
/***************************************************************/
/* I Dont Know how to change this Simulation Arrays with real database info (Mysql) */
/* To simulate database connectivity, I'll fill some arrays */ $store_id = array( "1", "2", "3", "4", "5", "6", "7"); /* $store_montadoras = array( "Volkswagen", "Volkswagen", "Volkswagen", "Fiat", "Ford", "Chevrolet", "Chevrolet"); */