|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: php-general-digest-help
lists.php.netDate: Wed Aug 29 2001 - 16:17:24 CDT
php-general Digest 29 Aug 2001 21:17:24 -0000 Issue 845
Topics (messages 64964 through 65105):
addcslashes(), strange behavior
64964 by: Ben-Nes Michael
64974 by: _lallous
Re: Update form objects before submit
64965 by: * R&zE:
mysql_insert_id. need help!
64966 by: lizlynch
64968 by: Moax Tech List
mysql_insert_id NEED HELP
64967 by: lizlynch
Re: Exclamation point appearing from nowhere
64969 by: _lallous
Im back, oh and....
64970 by: Kyle Smith
64975 by: _lallous
64999 by: B. van Ouwerkerk
65023 by: Kyle Smith
65054 by: Miles Thompson
Re: Database Preference?
64971 by: Michael
64980 by: Miles Thompson
Re: reading from a file and parsing variables??
64972 by: _lallous
Re: php running and installing problem
64973 by: _lallous
Re: comparing scripts performance
64976 by: _lallous
64990 by: Ben-Nes Michael
If-statement
64977 by: Niklas Lampn
64979 by: Darius Ivanauskas
65008 by: Hugh Bothwell
65066 by: Ryan Fischer
Re: The future of PHP - accessory libraries
64978 by: Geoff Caplan
64992 by: Zeev Suraski
65002 by: Heiko Maiwald
Re: cant connect to mysql
64981 by: Miles Thompson
script preprocessor?
64982 by: alvarez.sto13.st-oneline.de
65006 by: Hugh Bothwell
65071 by: Christian Reiniger
65074 by: alvarez.sto13.st-oneline.de
Re: PWS
64983 by: Phil Driscoll
Re: The future of PHP
64984 by: Frederick L. Steinkopf
64991 by: Zeev Suraski
65000 by: Alexander Skwar
65014 by: Manuel Lemos
65017 by: Cristopher Daniluk
65022 by: Manuel Lemos
65045 by: Manuel Lemos
65052 by: Zeev Suraski
65057 by: Rasmus Lerdorf
65058 by: Ninety-Nine Ways To Die
65059 by: Jeff Lewis
65061 by: Alexander Skwar
65062 by: Manuel Lemos
65063 by: Zeev Suraski
65064 by: Dan Harrington
65065 by: Manuel Lemos
65068 by: pierre-yves
65070 by: Alexander Skwar
65072 by: Brian Tanner
65073 by: Rasmus Lerdorf
65076 by: Miles Thompson
65079 by: Cristopher Daniluk
What happened to Imagettftext() function in PHP 4.0.7 and GD 2.1?
64985 by: SED
strange linefeed effect
64986 by: alvarez.sto13.st-oneline.de
JPEG true color problems (repost)
64987 by: Jane Dennett-Thorpe
Sorry, i need HTML help
64988 by: Kyle Smith
64989 by: Alexander Deruwe
64994 by: alvarez.sto13.st-oneline.de
64997 by: Andrew Brampton
65007 by: Luke Welling
65024 by: Erik H. Mathy
65025 by: Gary
65026 by: Seb Frost
65028 by: Tim
65056 by: Kyle Smith
65080 by: B. van Ouwerkerk
65097 by: Navid Yar
Re: The future of PHP - object model
64993 by: Zeev Suraski
Re: multiple submit buttons
64995 by: Herouth Maoz
65009 by: Tim Ward
65011 by: Andrey Hristov
Re: how to sort search results by relevance?
64996 by: BRACK
65047 by: Mark Maggelet
65051 by: BRACK
65053 by: Michael Geier, CDM Systems Admin
Re: concatenate?
64998 by: Bopolissimus Platypus
65010 by: Soeren Nielsen
65012 by: Andrey Hristov
real optional parameters
65001 by: alvarez.sto13.st-oneline.de
65020 by: Papp Gyozo
Re: PHP mysql admin?
65003 by: Alexander Skwar
Re: What does PHP stand for?
65004 by: Alexander Skwar
65033 by: Sheridan Saint-Michel
Re: Embedding PHP in C
65005 by: Bopolissimus Platypus
Re: suggestions
65013 by: Bopolissimus Platypus
Making gd Extensions
65015 by: Chris Mulcahy
[SPAM] mail adress abused and now drowning in mails
65016 by: Christian Lederer
HTTP 500 server error
65018 by: Web user
New feature suggestion: array in string substitution
65019 by: ---
65021 by: Jack Dempsey
im puzzled
65027 by: Jeremy Morano
65035 by: Matthew Loff
syntax help please?
65029 by: Glyndower
65032 by: Alexander Deruwe
SELECT * FROM
65030 by: Tarrant Costelloe
65031 by: Jeff Lewis
65036 by: Jon Haworth
HELP : How to suggest a download-filename for IE on MAC
65034 by: Sebastian Stadtlich
Problem replacing part of a string
65037 by: Don
65038 by: Andrey Hristov
Add Slashes - Server Adds Them Automatically - Advice Requested!
65039 by: Mike Gifford
65040 by: Johnson, Kirk
65041 by: Andrey Hristov
FTPs
65042 by: ReDucTor
65043 by: Andrey Hristov
65044 by: ReDucTor
65046 by: Andrey Hristov
65048 by: ReDucTor
65049 by: Andrey Hristov
ldap_connect question
65050 by: Ian McNish
65085 by: Ian McNish
Strange Form Error
65055 by: PHP List
Re: Database Preference? -- Manuel, Michael, Miles
65060 by: james
PHP Article... Comments??
65067 by: KPortsmout.aol.com
Swapping background color
65069 by: Alnisa Allgood
65077 by: Miles Thompson
Query using more than two tables?
65075 by: Jeff Lewis
Re: Count()
65078 by: Kevin P
65083 by: ERISEN, Mehmet Kamil
change info in database not successful
65081 by: sgibbs.vt.globalhealth.org
65087 by: daniel james
Count
65082 by: Kevin P
Sorry to send this out again but
65084 by: Kyle Smith
install error
65086 by: Joseph Bannon
foo? bar? wtf?
65088 by: Seb Frost
65089 by: Andy Ladouceur
65090 by: Philip Olson
Math Inside Strings
65091 by: Kevin P
65095 by: Jack Dempsey
65096 by: jimw.apache.org
65099 by: mailing_list.gmx.at
Countdown
65092 by: mail.struempf.com
65104 by: Alexander Deruwe
Re: Data duplication in databases
65093 by: james
ZEND API
65094 by: Ricky Dhatt
Re: The future of PHP -- accessory libraries
65098 by: Geoff Caplan
65100 by: Mark Charette
65103 by: Rasmus Lerdorf
65105 by: Richard Heyes
building PHP on/for win32
65101 by: Thomas Carey
php and Interbase
65102 by: Edney Marcel Imme
Administrivia:
To subscribe to the digest, e-mail:
php-general-digest-subscribe
lists.php.net
To unsubscribe from the digest, e-mail:
php-general-digest-unsubscribe
lists.php.net
To post to the list, e-mail:
php-general
lists.php.net
----------------------------------------------------------------------
attached mail follows:
Hi All
I did
echo ord ("\n");
which return 10
so I tried to do this with no success
echo addcslashes ("hello\nworld", "\10");
returning: "hello newline world"
while doing:
echo addcslashes ("hello\nworld", "\9");
returned me what I wanted: "hello\nworld" which mean the string hold
"hello\\nworld"
Its look like a bug, ord say" /n = 10 while addsclashes replace /n using /9
as ASCII value.
What is the list opinion ?
--------------------------
Canaan Surfing Ltd.
Internet Service Providers
Ben-Nes Michael - Manager
Tel: 972-4-6991122
http://sites.canaan.co.il
--------------------------
attached mail follows:
You can't use "\10" it has no meaning.
Instead use this: "\x0A".
"Ben-Nes Michael" <miki
canaan.co.il> wrote in message
news:010901c1306a$97cc4da0$aa5796d4
canaan.co.il...
> Hi All
>
> I did
>
> echo ord ("\n");
> which return 10
>
> so I tried to do this with no success
> echo addcslashes ("hello\nworld", "\10");
> returning: "hello newline world"
>
> while doing:
> echo addcslashes ("hello\nworld", "\9");
> returned me what I wanted: "hello\nworld" which mean the string hold
> "hello\\nworld"
>
> Its look like a bug, ord say" /n = 10 while addsclashes replace /n using
/9
> as ASCII value.
> What is the list opinion ?
>
> --------------------------
> Canaan Surfing Ltd.
> Internet Service Providers
> Ben-Nes Michael - Manager
> Tel: 972-4-6991122
> http://sites.canaan.co.il
> --------------------------
>
>
attached mail follows:
<Original message>
From: Stephane Pinel <spinel
noos.fr>
Date: Wed, Aug 29, 2001 at 11:08:45AM +0200
Message-ID: <B7B27DBD.9F3A%spinel
noos.fr>
Subject: [PHP] Update form objects before submit
> I have a html page including php scripts that perform different stuff.
> The page contains a form (a Select 'products-price' and a field 'qty').
> Depending the choice made by the user, I need to know what item in the
> SELECT object was choose and the number entered in the 'Qty' field to
> initialized a 'subtotal' zone BEFORE the user submit the form.
> This functionality is common to all e-business sites when you have to clic
> on the 'update' button before submit the form.
>
> Any idea ?
>
> thanks
>
> ----------------------------------
> Stphane Pinel
> 39, Rue du Docteur Heulin
> 75017 Paris (FRANCE)
> 33 1 53 11 05 77
> 33 6 08 94 63 16
> spinel
noos.fr
> ----------------------------------
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
</Original message>
<Reply>
You'll need to use JS...
Eg:
--- HTML example ---
<HTML>
<BODY>
<FORM name="frm">
<SELECT name="mySel">
<OPTION value="25">Blah 1</OPTION>
<OPTION value="5">Blah 2</OPTION>
<OPTION value="83">Blah 3</OPTION>
<OPTION value="2">Blah 4</OPTION>
</SELECT>
<INPUT type="button" value="Update"
onclick="void(someUpdateFunc());">
</FORM>
</BODY>
<SCRIPT type="text/javascript">
function someUpdateFunc () {
var selValue = document.frm.mySel.options[document.frm.mySel.selectedIndex].value;
alert ("You selected: "+selValue);
}
</SCRIPT>
</HTML>
--- End of HTML example ---
This will show you what you need (I hope)...
</Reply>
--* R&zE:
-- -- Renze Munnik -- DataLink BV -- -- E: renze
datalink.nl -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6 21811143 -- -- Stationsplein 82 -- 2011 LM HAARLEM -- Netherlands -- -- http://www.datalink.nl --
attached mail follows:
hi,
i have three tables: customer username classification
the user will enter my web site enter the relevant customer details (which are transfered to the database) (s)he will then enter their prefered username, password and a password hint (again all sent to the database). once they are registered they choose between three classification types. i have used the mysql_insert_id () to obtain the customer_id from the customer table and to insert it into the username table, however i also need to insert it into the classification table but all i keep getting is 0. can anyone advise, is it possible?
liz lynch
attached mail follows:
post your code.
----- Original Message -----
From: "lizlynch" <lizlynch50
hotmail.com>
To: <php-general
lists.php.net>
Sent: Wednesday, August 29, 2001 4:32 AM
Subject: [PHP] mysql_insert_id. need help!
hi,
i have three tables: customer username classification
the user will enter my web site enter the relevant customer details (which are transfered to the database) (s)he will then enter their prefered username, password and a password hint (again all sent to the database). once they are registered they choose between three classification types. i have used the mysql_insert_id () to obtain the customer_id from the customer table and to insert it into the username table, however i also need to insert it into the classification table but all i keep getting is 0. can anyone advise, is it possible?
liz lynch
attached mail follows:
hi,
i have three tables: customer username classification
the user will enter my web site enter the relevant customer details (which are transfered to the database) (s)he will then enter their prefered username, password and a password hint (again all sent to the database). once they are registered they choose between three classification types. i have used the mysql_insert_id () to obtain the customer_id from the customer table and to insert it into the username table, however i also need to insert it into the classification table but all i keep getting is 0. can anyone advise, is it possible?
liz lynch
attached mail follows:
Showing your code might help figuring out the problem.
"Saul Ishida" <saul_ishida
yahoo.com> wrote in message
news:20010828231104.11192.qmail
web5202.mail.yahoo.com...
> Hey, please, I'm using the function mail() in one of
> my scripts, but when I use it, one exclamation point
> appears from nowhere in the email body. And it appears
> in different places, it moves around in the email
> body. It is very strange. And everytime, every email I
> send, it appears, no exception.
>
> If you could help me, I would be very gratefull!
>
> thanks!
>
> Saul
>
> __________________________________________________
> Do You Yahoo!?
> Make international calls for as low as $.04/minute with Yahoo! Messenger
> http://phonecard.yahoo.com/
attached mail follows:
... could someone give me the name of the best PHP learning book they have read cause I just scored 110!
(yes, it was my birthday on august 16th and im now a whole 14 so i can have my first urine test!)
-lk6- http://www.StupeedStudios.f2s.com Home of the burning lego man!
ICQ: 115852509
MSN: dbzno1fan
hotmail.com
AIM: legokiller666
attached mail follows:
Here we go: It's about 30 // ISBN 1-861003-73-0 Beginning PHP 4 www.wrox.com //
I learned PHP from it.But that's the only Wrox book I recommend! ;( I got the XML book and the Mastering Javascript from them! They really suck! imho.
"Kyle Smith" <dbzno1fan
hotmail.com> wrote in message
news:OE61eJjt8gsVWDKpzxD00000513
hotmail.com...
... could someone give me the name of the best PHP learning book they have
read cause I just scored 110!
(yes, it was my birthday on august 16th and im now a whole 14 so i can have my first urine test!)
-lk6- http://www.StupeedStudios.f2s.com Home of the burning lego man!
ICQ: 115852509
MSN: dbzno1fan
hotmail.com
AIM: legokiller666
attached mail follows:
>... could someone give me the name of the best PHP learning book they have >read cause I just scored 110!
PHP 4 bible (IDG books), MySQL (NewRiders), several books from Wrox.. read the archive several books are mentioned there.
>(yes, it was my birthday on august 16th and im now a whole 14 so i can >have my first urine test!)
So you're 14.. does you mom know you're here :-)
Bye,
B.
attached mail follows:
thanks and **** you age discrimination sucks!
-lk6- http://www.StupeedStudios.f2s.com Home of the burning lego man!
ICQ: 115852509
MSN: dbzno1fan
hotmail.com
AIM: legokiller666
----- Original Message -----
From: "B. van Ouwerkerk" <bvo
atz.nl>
To: <php-general
lists.php.net>
Sent: Wednesday, August 29, 2001 5:13 AM
Subject: Re: [PHP] Im back, oh and....
>... could someone give me the name of the best PHP learning book they have >read cause I just scored 110!
PHP 4 bible (IDG books), MySQL (NewRiders), several books from Wrox.. read the archive several books are mentioned there.
>(yes, it was my birthday on august 16th and im now a whole 14 so i can >have my first urine test!)
So you're 14.. does you mom know you're here :-)
Bye,
B.
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribelists.php.net For additional commands, e-mail: php-general-help
lists.php.net To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
Kyle, Grow up and learn some manners! Miles Thompson
At 03:25 PM 8/29/01 -0700, Kyle Smith wrote:
>thanks and **** you age discrimination sucks!
>
>
>-lk6-
>http://www.StupeedStudios.f2s.com
>Home of the burning lego man!
>
>ICQ: 115852509
>MSN: dbzno1fan
hotmail.com
>AIM: legokiller666
>
>
>----- Original Message -----
>From: "B. van Ouwerkerk" <bvo
atz.nl>
>To: <php-general
lists.php.net>
>Sent: Wednesday, August 29, 2001 5:13 AM
>Subject: Re: [PHP] Im back, oh and....
>
>
>
> >... could someone give me the name of the best PHP learning book they have
> >read cause I just scored 110!
>
>PHP 4 bible (IDG books), MySQL (NewRiders), several books from Wrox.. read
>the archive several books are mentioned there.
>
> >(yes, it was my birthday on august 16th and im now a whole 14 so i can
> >have my first urine test!)
>
>So you're 14.. does you mom know you're here :-)
>
>Bye,
>
>
>B.
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
>For additional commands, e-mail: php-general-help
lists.php.net
>To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
>For additional commands, e-mail: php-general-help
lists.php.net
>To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
James wrote: > > We have several GUI applications that we are preparing to convert to > web-based applications, based primarily on PHP. The applications are based > on Informix On-Line (on a SCO Unix server) and MS SQL (on NT). Since we > will be doing a port, in any case, I am wondering your thoughts on whether > MySQL may be a better database solution. This is particularly important > from a price-performance point of view since the other two databases are > quite pricy on a per-seat basis. > > TIA, > James
Postgresql - www.postgresql.org is opensource and is probably a better choice than MYsql, MYsql lacks sub slects, foreign keys and all sorts of things you would be used to. You can even look at firebird http://firebird.sourcefoge.net or SAPDB www.sapdb.org which are both open source. Database abstraction layers are fine but they can't properly replicate functionality that doesn't exist in a database.
attached mail follows:
If you are used to Informix, MySQL will be unsatisfying - no stored procedures, outer joins, sub-queries, transactions. MySQL is much like early dBase II.
I'm not familiar with MS SQL on a price per seat basis, but how many developers do you have? If you are doing this web-based you don't have that many "seats". Given that your developers are used to working in MS SQL it may be cheaper in terms of overall developer costs.
The downside of that course is that you are locked into MSFT's plans for the product and Windows NT/2000/XP.
A robust and reliable open source alternative is PostgreSQL. It has features your developers are used to, is adequately fast, and is certainly robust. It would probably be the easiest port. Drivers are kept current in PHP, Python, Perl and of course ODBC.
Regards - Miles Thompson
At 09:50 PM 8/28/01 -0400, james wrote:
>We have several GUI applications that we are preparing to convert to
>web-based applications, based primarily on PHP. The applications are based
>on Informix On-Line (on a SCO Unix server) and MS SQL (on NT). Since we
>will be doing a port, in any case, I am wondering your thoughts on whether
>MySQL may be a better database solution. This is particularly important
>from a price-performance point of view since the other two databases are
>quite pricy on a per-seat basis.
>
>TIA,
>James
>
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
>For additional commands, e-mail: php-general-help
lists.php.net
>To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
Hello Derick, I had this problem until I figured out this code:
filewithvars.txt is: // Hello my name is $myname. You can always contact me at $myemail. // <eof>
The php script is:
<?
$myname = 'Elias';
$myemail = 'elias_bachaalany
yahoo.com';
$t = 'filewithvars.txt';
$fp = fopen($t, 'rb');
$lines = fread($fp, filesize($t));
fclose($fp);
$t = '$t = "' . addcslashes($lines, '"') . '";';
eval($t);
$parsed_file = $t;
?>
"Derick Dorner" <webmaster
moax.com> wrote in message
news:000e01c13068$0d316ec0$9865fea9
moax01...
I have a simple problem, but for some reason I can't figure it out!
I need to read in a string from a short text file, so I do that the normal
way:
/*
// get string from the text file.
$filename = "textfilehere.text";
$fd = fopen ($filename, "r");
$contents = fread ($fd, filesize ($filename));
fclose ($fd);
*/
however, this text file contains variables, for example, the first could be:
Hello $variable_here
now when i print out the text file (it really needs to be emailed, but anyway) the variables are not parsed with the variables from the script, so instead of printing the contents of $variable_here within that string, it actually prints "$variable_here". so, how can i parse a text file read into a string for variables??
any help is appreciated, and thank you very much in advance!
-derick
attached mail follows:
Show us the code of the script you're running.
"Rayn ." <raincorp
hotmail.com> wrote in message
news:F227Ze6xjZXXF1Rw0aa000159c8
hotmail.com...
> i am have trouble running php, i can run a simple doc like one to check
the
> version and get the time but i cannot run anything eles and it gives we
this
> Warning: Failed opening 'c:\inetpub\wwwroot\upload\admin\config.php' for
> inclusion (include_path='') in Unknown on line 0
>
> its that right path, i think
> and what am i suppos to do with the php.ini file could you show we what
> changes i need to do to it.
>
> thanks
>
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>
attached mail follows:
you might want to add this to each of the scripts and see: <? //very first line of the script echo "Script started at:" . date("D M j g:i:s T Y"); //very last line of the script echo "Script ended at:" . date("D M j g:i:s T Y"); ?>
btw, check the microtime() it have exatly what you're looking for.
Greetings from Lebanon ;)
"Ben-Nes Michael" <miki
canaan.co.il> wrote in message
news:00c601c13066$990f51c0$aa5796d4
canaan.co.il...
> Is there a way to compare between two scripts ?
>
> like how much time took every script or how much memory/resources it used.
>
> --------------------------
> Canaan Surfing Ltd.
> Internet Service Providers
> Ben-Nes Michael - Manager
> Tel: 972-4-6991122
> http://sites.canaan.co.il
> --------------------------
>
>
attached mail follows:
Thanks from Israel :)
it helps, though I hope they will develope a function that returns speed, memory or even performance detail on parts of the script.
Like:
The for() took 3ms and consumed ... memory the while() took 2ms and consumed ... memory ... ...
> you might want to add this to each of the scripts and see: > <? > //very first line of the script > echo "Script started at:" . date("D M j g:i:s T Y"); > //very last line of the script > echo "Script ended at:" . date("D M j g:i:s T Y"); > ?> > > btw, check the microtime() it have exatly what you're looking for. > > Greetings from Lebanon ;) > > > Is there a way to compare between two scripts ? > > > > like how much time took every script or how much memory/resources it used. > > -------------------------- Canaan Surfing Ltd. Internet Service Providers Ben-Nes Michael - Manager Tel: 972-4-6991122 http://sites.canaan.co.il --------------------------
attached mail follows:
Is it possible to write this shorter:
if ($Var != "No1" && $Var != "No2" && $Var != "No3") { code };
Niklas
attached mail follows:
if(!preg_match("/^No[123]$/",$Var)) { code }
-- Darius IvanauskasOn Wed, 29 Aug 2001, [iso-8859-1] Niklas Lampn wrote:
> Is it possible to write this shorter: > > if ($Var != "No1" && $Var != "No2" && $Var != "No3") { > code > }; > > > Niklas >
attached mail follows:
"Niklas lampn" <niklas.lampen
publico.fi> wrote in message
news:NPEFKEPHNLKEPEOLHPKNOELCCDAA.niklas.lampen
publico.fi...
> Is it possible to write this shorter:
>
> if ($Var != "No1" && $Var != "No2" && $Var != "No3") {
> code
> };
$badValues = array("No1", "No2", "No3"); if (!in_array($Var, $badValues)) { code; }
Also note that your trailing semicolon is unnecessary.
attached mail follows:
You wrote: > Is it possible to write this shorter: > > if ($Var != "No1" && $Var != "No2" && $Var != "No3") { > code > };
if(!ereg("^No[1-3]$", $Var)){ // code }
-- -Ryan :: ICQ - 595003 :: GigaBoard - http://www.gigaboard.net/
attached mail follows:
Rasmus
> > That's a pretty good list. And the Mandrake and Debian packages are every > bit as complete. I am not as familiar with SuSE nor the fbsd port, but I > would be very surprised if they were not very close to, if not better > than, the current RedHat rpms. >
Thanks for the education - I have an ancient version of RedHat and didn't realise that things have moved on so much. When I upgrade I just compile the distro from the php.net. Now I know better... Perhaps there could be some notes about what the commercial distros can offer in the download area of the site - I suspect there are many who are not aware of this...
> What exactly > is the ISP having trouble with? What is the error message? What sort of > setup do they have? Or, is the problem really that they are just more > familiar with other technologies and are just feeding you a line to get > you to go away? >
I will pass on your post to them and ask them precisely that. I know they are using SuSE, but that has the reputation of being the best distro for integrating other applications, so I will try to get a better handle on what the problem is.
Thanks again
Geoff Caplan
attached mail follows:
At 11:13 29-08-01, Geoff Caplan wrote: >I am not very technical, as you will have gathered. But all I can do is pass >on the view of my (rather good) ISP. They offer Java, Perl and PHP, and say >that they find PHP much the most difficult to extend.
Can you elaborate on what you (or they) mean by 'extend'? This statement simply appears fairly odd, and I want to understand it better. Who knows, we may even do something about it, God forbid :)
Zeev
attached mail follows:
E&ޭ+ \h'~(."蠶n?~,iyjjYrjwrmhZȧmz{"E&!~vZ+(\+ȋkm_azjW֥ƥy뢶nzqlf!zr-+hZ̦nlNay뢹ƠxYxz%]vbnhq&n?y]i^mڵkzZjب뢷+Zj_剿醟ۥzjl̦nZZZj[+yzwv̦ngwbhqj'aw
attached mail follows:
"2Iy2)^<ӀM~ӝIСjwp^("y-騽zuޖ^u"!k{w(hZ,b^騵ج+zƲxr綉m竮XzbYxj{\yrh̒
l٩l[(rMu)min+"iyb{w)z+%,uW^h~bnW>Wަ\yljrw&(*.
attached mail follows:
Is there a macro preprocessor that can be used to substitute arbitrary sections of code with different code? define is documented as working for rvals only and my attempts to produce something more meaty lead to parse errors.
Any advice?
D. Alvarez Arribas <alvarez
st-oneline.net>
attached mail follows:
<alvarez
sto13.st-oneline.de> wrote in message
news:200108291024.MAA20865
sto13.st-oneline.de...
>
> Is there a macro preprocessor that can be used to substitute arbitrary
> sections of code with different code? define is documented as working
> for rvals only and my attempts to produce something more meaty lead to
> parse errors.
You could define the code as a function, then check which version of the function to use...
<?php define("DEBUG", true);
if (defined("DEBUG") and DEBUG==true) { function myMacroizedCode() { echo "This is debug-mode code"; } } else { function myMacroizedCode() { echo "This is non-debug code"; } }
for ($i = 0; $i < 100; $i++) myMacroizedCode(); ?>
attached mail follows:
On Wednesday 29 August 2001 12:24, alvarez
sto13.st-oneline.de wrote:
> Is there a macro preprocessor that can be used to substitute arbitrary
> sections of code with different code? define is documented as working
> for rvals only and my attempts to produce something more meaty lead to
> parse errors.
I've written one for my personal needs. Supports replacement of constants ("{{$ foobar }}") with arbitrary text, conditionals ("{{%if foobar == 42 }} ... {{%else }} ... {{%endif }}"), comment removal, removal of unneccessary whitespace, removal of assertions and replacement of an error handler function ("sgError ($Msg)" => "MyError (__FILE__, __LINE__, $Msg)")
Written for Linux, needs GNU NANA (http://wattle.cs.ntu.edu.au/homepages/pjm/nana-home/) and expat (http://www.jclark.com/xml/expat.html).
I can send you a copy of the source if you want.
-- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/)"use the source, luke." (obi-wan gnuobi)
attached mail follows:
I do not need a cmd-line utility but something I can use _in_ a PHP4 script without the need to apply changes to the interpreter or weird system interfaces. Something similiar to the #define preprocessing instructions of cc (or hopefully more flexible) would suit my needs.
If your programm can substitute script parts during a page request it'd be nice if you could pass me a source copy.
Personally I've no idea how such a facility could be implemented if not being part of the PHP core.
D. Alvarez Arribas <alvarez
st-oneline.net>
>I've written one for my personal needs. Supports replacement of constants >("{{$ foobar }}") with arbitrary text, conditionals >("{{%if foobar == 42 }} ... {{%else }} ... {{%endif }}"), comment >removal, removal of unneccessary whitespace, removal of assertions and >replacement of an error handler function ("sgError ($Msg)" => "MyError >(__FILE__, __LINE__, $Msg)")
>> How can I declare optional parameters as used by strpos, substr, etc.
>> to specify the offset? I do not want to have to preceed some functions
>> with the
-operator, and preceeding all for consistency wouldn't be an
>> option, I think. Is it possible at with user-defined functions?
>>
>> quick help is appreciated. thanks.
attached mail follows:
On Tuesday 28 August 2001 3:27 pm, frank clarke wrote: > I have installed PHP CGI 4.0 on my Win 98 machine with > PWS and tried this script that I put in the wwwroot > directory and called test.php3:... If you view source on the blank page you get, do you see your php sourcecode? If so, maybe it's just that you have not configured the web server to map .php3 extensions. The installer defaults to only mapping .php although you can explicitly enable the deprecated .php and .phtml extensions for backward compatibility if you want.
Post again if that's not the problem.
Cheers
-- Phil Driscoll
attached mail follows:
Manuel, Rather than whining about the future of PHP, why don't you be proactive and take on the goal of raising the $100,000 for the project? Fred Steinkopf
----- Original Message -----
From: "Rasmus Lerdorf" <rasmus
php.net>
To: "Manuel Lemos" <mlemos
acm.org>
Cc: <php-general
lists.php.net>
Sent: Wednesday, August 29, 2001 12:11 AM
Subject: Re: [PHP] The future of PHP
> > These guys resort to these marketing tricks to promote Python as hell,
> > and the PHP people just sits and waits doing almost nothing in
> > comparision to promote PHP as hard as they can even when they lives
> > depend on the acceptance of PHP as a wide spread language!
>
> Manuel, please, give this tirade a rest. Nobody associated with Python
> development was involved in this "amazing" marketing trick you are
> referring to. Somebody just decided to do this on their own. And now you
> are criticizing the PHP developers for not having the same foresight as
> the Python developers?
>
> It says so right in their FAQ
> (http://software-carpentry.codesourcery.com/faq.html)
>
> "And in answer to some of the more virulent postings on Usenet and in
> other venues, neither Guido van Rossum nor anyone else associated with
> Python development was involved in setting up this project, choosing the
> language, or defining the terms of the competition. Guido was only asked
> to be a judge after the decision to use Python had been made. If we
> had decided to use Perl or Tcl, we would obviously have invited Larry
> Wall or John Ousterhout to join the panel."
>
> If somebody wants to put up $100,000 for a PHP software contest, perfect,
> great, we will be every bit as cooperative as the Python developers.
>
> -Rasmus
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
attached mail follows:
At 05:21 29-08-01, Manuel Lemos wrote: >If when you mean pro-active you mean that's intentional and is all part >of a plan, >then we agree. If you acted somehow to promote PHP and got some >unexpected results >(good or bad) that is still marketing although not pro-active.
Regardless of this definition, I meant the former. It was quite intentional, we're working towards publishing articles about PHP and trying to get analysts to cover it.
>If you are going to descriminate sites based on subjective criteria, >like matters of taste or points of view that vary greatly from person to >person, that is bad because you will certainly leave out contributions >that could help greatly PHP and in the end yourself. > >It would certainly would make you look arrogant if you get to be picky >as if including some sites and not others you would be doing somebody >else a favor when the promotion that PHP gets from the sites will always >benefit you direct or indirectly.
But that's the problem, and that's why I think it's not necessarily a good idea. Some people may feel it's arrogant, but it doesn't change the fact that some sites may result in PHP's brand going in the opposite direction. Because there's no objective criteria and no jurisdiction, we won't have ways to avoid this, at least not without causing some people to feel very bad.
>If I were you I certainly would not rule out sites with content that >overlaps others. Why not accept all sites that provide PHP articles? One >site may not be as good or as complete as other today, but they may >improve over time enough to be technically better than others that you >picked before. What would you do then? Accept what you refused before >and then discard what you accepted before? Doesn't seem to be a good >idea.
I think that you're forgetting where this whole discussion started. If the idea is to make everybody feel good about themselves (which is a viable objective on its own) and be as 'fair' as possible, then what you wrote in this paragraph and in the two paragraphs before it makes perfect sense. But that's not the goal you were talking about. The goal is to push PHP, to market it, and to give it a good image. Unfortunately, doing the 'nice-to-everybody' thing ('developer-oriented') does not go hand in hand with doing the right thing from a marketing perspective ('consumer-oriented'). They're not mutually exclusive, not at all, but they're definitely not identical directions.
>Anyway, in a Web ring banner you only promote a site at each banner >view. I don't see the problem of rotating banners of overlapped content.
The way I see it is that if it's too loose, it's useless. It won't give PHP any professional feel or anything. If it's more tight, then we're going to have to ensure that the sites are sync'd in terms of avoiding duplicate content, that they're all of good quality, etc. This is *very* difficult to do in a world which is almost completely based on volunteer work. I, for one, don't think we can demand *anything* from PHP community site webmasters - whatever they do to help PHP is good, and they should get to decide how much and in what ways they're willing to contribute.
> > Things like that are usually not that simple, or in other words, they're > > easier said than done. If done sloppily, they can have a negative > > effect. And doing them correctly requires substantial efforts. > >You sound bureacratic. You should feel honoured by the extra promotion >that all the PHP content sites give you because your business depends on >PHP acceptance in the market. Why make it hard for sites that are >willing to help you in the end?
Because I'm trying to look at the goal and look how we can try to achieve it, and be as realistic as possible about our chances. Using a screwdriver to hammer a nail doesn't work, and I think that thinking that this Web ring would do the job of marketing PHP is over-optimistic. Honor has nothing to do with it, and I think it's a great thing that there are lots of PHP web sites and a strong community behind it.
>I think it is fair enough to make some base rules like "don't be too >lame" (define "too lame"), but almost everybody should be accepted.
If we go that route, you can call it in many ways, but marketing is not one of them :)
>I guess you just say that because you were simply not affected by the >major Internet layoffs that happened in the latest months, so you don't >seem to have a great idea how bad this has been for so many people. > >Of course the Internet is not gone. It just happens that the number of >companies with business depending on it was drastically reduced. So, >there aren't so much employment and business opportinities as before. >That's what I mean.
I'm quite aware of the serious slow down, I'm in the hi tech industry as well, remember? :) It doesn't change the way the Web's future looks as a medium. There was serious hype that caused a big balloon of hot air, which blew up. But the medium itself was not hurt. Apart of the .COM world, which wasn't making any money anyway, the internet infrastructure is still being used just as extensively as it was, and I think that in the long run, it'll continue to grow.
>I don't think the actual PHP for command line features matter. My point >is that people get it wrong. What is it that you can do on Perl in the >command line that you can't do with PHP? Nothing relevant, it is that >people hardly can concieve PHP as a command line scripting language >because PHP is not known nor advertised as a capable language to work >that way. That is what needs fixing: people's misconceptions. That's >fixable with targetted marketing.
I don't think that's even a problem, and it's not as if we have so many marketing resources we should be looking for new fronts to fight :) PHP is looking at a serious up-hill battle if it tries to market itself as a general purpose language. If we market it as a Web platform, it's an established solution (which still needs work). If I get to 'pick my fights', I'd go for the 2nd one any day. As I previously said, as things work in the opensource world - if people start working on different angles, there's nothing to stop them. But as far as the core project is concerned, I'd be very wary of losing focus.
>Man, give it some time! How long was it since Andrei released PHP-GTK? >How old is PHP now?
These aren't the right questions in my opinion. PHP was around when the Web started growing rapidly, in 1997-8-9. The GUI market, on the other hands, started booming in the early 90's. In my opinion, it's pretty much a lost battle - there are established solutions which are much better than PHP in this area.
>I think it is amazing the some how unexpected uses that people find for >PHP. What really confuses me is that instead of making that "use cases" >to promote PHP, you simply raise a lot of objections as if that would >cause any harm to PHP. Come on, enjoy all the PHP users applications >because they certainly help you to make the proof of concept that PHP is >the right choice for so many people.
That's my main point of disagreement. It would be quite cool to find some day that my fridge has PHP built into it, but let's be realistic about it - do we have the power and resources to do this? My answer is a definite 'no', and I think that if we try doing this, we'll lose what we already have - which is a *strong* Web platform.
>Useful? How can you reckon them as useful if you insist on neglecting >them?
What do you mean insist on neglecting them? If you mean that in a presentation that I may do about PHP to an audience of possible users, I would define PHP as a 'Web platform', then yes, I'm neglecting it. But if I pitch it as the 'Language that would change your life!!!', my chances of convincing them are slim.
>One other thing, I don't know if you notice, that but every time you >neglect these unexpected uses of PHP you are somehow ruling out people >behind them. That's a serious thing because you are eventually hurting >people's feelings when that worked so hard to use the language that you >developed. If people are making a private use of their work and could >not care less if their work is reckoned, that is not a problem. But >sometimes you see people working so hard with recognition as their main >goal. Neglecting that recognition or making it very hard is terrible. I >don't thing you want those people to give up for the lack of >recognition, don't you?
As I said earlier in this letter, making people feel good about what they do doesn't always go hand in hand with what would keep PHP alive for the years to come. It all depends what our goal is. If it's to try and keep PHP on the cutting edge, then we have to go in a certain path. If our goal is to make everybody happy, at the price of seeing PHP lose focus, become a super-market of 'everything goes', inevitably losing market share and eventually dying, it's another. These two are extremes, and we should do our best to find the path in between. As much as you tried to establish this in your letters, I haven't seen a good solid reason to believe that what you suggest is going to secure a better future for PHP, or even going to increase the chances of success for it. Your analysis of the situation assumes that in our current situation, we have nothing to lose. I see this very differently - I think that if we change directions without carefully thinking about the possible consequences, we have *TONS* to lose.
>You're welcome, but you just skipped the implicit million dollar >question: will there be an affordable version of Zend encoder that >developers can buy for USD$100 like they can with VB or Delphi? :-)
The current Encoder pricing is quite affordable (people on this list didn't even agree with me that $50/month may be too high, but it's definitely not unaffordable). Unlike VB or Delphi, where you *cannot* develop unless you buy these products, with PHP, things are very different. You can develop whatever you want, and only if you distribute your application *and* don't want to give out the source code (which almost always means you're selling it), you should consider getting the Encoder. $50/month is not a lot, and we're definitely not going to offer it for $100/perpetual. We do, however, look into different ways of offering this functionality in different ways to different audiences, but nothing has been decided as of yet.
Zeev
attached mail follows:
So sprach Manuel Lemos am 2001-08-28 um 23:21:54 -0300 : > Man, give it some time! How long was it since Andrei released PHP-GTK? > How old is PHP now?
Exactly. And also Perl wasn't made to create GUI apps, was it? But look how many Perl GUI apps there are out there now. Eg. all (? at least a lot) of the Mandrake configuration tools are in Perl, or cscmail was/is made in Perl.....
Just because PHP-GTK might not be mature YET, does not mean that it will never be.
Alexander Skwar
-- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.digitalprojects.com | http://www.iso-top.de iso-top.de - Die gnstige Art an Linux Distributionen zu kommen Uptime: 23 hours 5 minutes
attached mail follows:
Hello,
> > These guys resort to these marketing tricks to promote Python as hell, > > and the PHP people just sits and waits doing almost nothing in > > comparision to promote PHP as hard as they can even when they lives > > depend on the acceptance of PHP as a wide spread language! > > Manuel, please, give this tirade a rest. Nobody associated with Python > development was involved in this "amazing" marketing trick you are > referring to. Somebody just decided to do this on their own. And now you > are criticizing the PHP developers for not having the same foresight as > the Python developers?
Yes. I feel that it is a constructive criticism, like saying, there are plenty of ways to market PHP, with or without money, but what you do in comparision is very little to what Python people do. So, you need to do more. I am not saying that what you do is wrong.
> It says so right in their FAQ > (http://software-carpentry.codesourcery.com/faq.html) > > "And in answer to some of the more virulent postings on Usenet and in > other venues, neither Guido van Rossum nor anyone else associated with > Python development was involved in setting up this project, choosing the > language, or defining the terms of the competition. Guido was only asked > to be a judge after the decision to use Python had been made. If we > had decided to use Perl or Tcl, we would obviously have invited Larry > Wall or John Ousterhout to join the panel."
What this says is something like if applied to PHP, what we are doing was not Rasmus initiative, although he accepted to be a judge in the contest. That doesn't matter, they are still committed to market Python like hell.
> If somebody wants to put up $100,000 for a PHP software contest, perfect, > great, we will be every bit as cooperative as the Python developers.
Money doesn't come that easily. You have to go after it if you feel it is needed. What won't help is staying there and do nothing, because I think the money won't come to you from the sky. You need to find sponsors. I'm sure it won't be hard if you really bother to look for them.
Regards, Manuel Lemos
attached mail follows:
I don't understand when this thread became so focused on monetary needs. We are talking about penetrating corporate markets, and all corporate markets care about is time to market, cost of maintenance, and long term support. Not that marketing is worthless, but if we build a better product, it will be used whether we do some Houdini use-our-product marketing game or not. The future of PHP will be determined by the dedication and sacrifice of the developers associated with it. Every success is measured in sacrifice. In the realm of Java and .NET it is primarily a monetary sacrifice - they could have spent that money on something else, but elected to spend it on this instead. Every member of the PHP team could have spent their time on something else, but chose this. This continued dedication will yield just as much success in the long run. The true reason that Java gets a huge boost from marketing is that marketing creates the labor market of qualified people by encouraging people to retrain based on a perceived market for the technology. It is the perception that creates the market. Voodoo economics at its best.
As I said before, PHP is already discussed in the corporate circles that matter, and the recurring theme is getting qualified people to do it. Sure, experienced Java or C or ASP (bleh) gurus could retrain easily and be able to handle PHP with no trouble. Who cares? They're not there yet. That affects time to market. When we look at pure numbers, there is a direct correlation between the corporate growth of PHP and the labor market of PHP developers. While we cannot create a labor market out of perceptual metrics, we have, in my opinion, the strongest and most comprehensive web scripting language on the planet, and that will make the future of PHP bright and limitless. The never ending dedication of the hundreds of developers and the thousands of people preaching its wonders will ultimately propel us to the front page of every buzzword magazine in circulation. This will happen whether we have silly games, spend a billion dollars on ad campaigns, build trade show booths that look like space rockets, or give away door prizes for making tricky code.
Manuel, I can only urge you to focus on reality instead of Utopia. We have a better product and that is all we have. The good news? That's all we need. Maybe a little patience and some free pizza too, but that's neither here nor there. Economics says so.
Regards,
Cristopher Daniluk
President & CEO
email: cris
dsnet.net
direct: 330/530-2373
Digital Services Network, Inc Unleashing Your Potential voice: 800/845-4822 web: http://www.dsnet.net/
-----Original Message-----
From: Manuel Lemos [mailto:mlemos
acm.org]
Sent: Wednesday, August 29, 2001 9:21 AM
To: php-general
lists.php.net
Subject: Re: [PHP] The future of PHP
Hello,
> > These guys resort to these marketing tricks to promote Python as hell, > > and the PHP people just sits and waits doing almost nothing in > > comparision to promote PHP as hard as they can even when they lives > > depend on the acceptance of PHP as a wide spread language! > > Manuel, please, give this tirade a rest. Nobody associated with Python > development was involved in this "amazing" marketing trick you are > referring to. Somebody just decided to do this on their own. And now you > are criticizing the PHP developers for not having the same foresight as > the Python developers?
Yes. I feel that it is a constructive criticism, like saying, there are plenty of ways to market PHP, with or without money, but what you do in comparision is very little to what Python people do. So, you need to do more. I am not saying that what you do is wrong.
> It says so right in their FAQ > (http://software-carpentry.codesourcery.com/faq.html) > > "And in answer to some of the more virulent postings on Usenet and in > other venues, neither Guido van Rossum nor anyone else associated with > Python development was involved in setting up this project, choosing the > language, or defining the terms of the competition. Guido was only asked > to be a judge after the decision to use Python had been made. If we > had decided to use Perl or Tcl, we would obviously have invited Larry > Wall or John Ousterhout to join the panel."
What this says is something like if applied to PHP, what we are doing was not Rasmus initiative, although he accepted to be a judge in the contest. That doesn't matter, they are still committed to market Python like hell.
> If somebody wants to put up $100,000 for a PHP software contest, perfect, > great, we will be every bit as cooperative as the Python developers.
Money doesn't come that easily. You have to go after it if you feel it is needed. What won't help is staying there and do nothing, because I think the money won't come to you from the sky. You need to find sponsors. I'm sure it won't be hard if you really bother to look for them.
Regards, Manuel Lemos
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribelists.php.net For additional commands, e-mail: php-general-help
lists.php.net To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
Hello,
"Frederick L. Steinkopf" wrote: > > Manuel, > Rather than whining about the future of PHP, why don't you be proactive and > take on the goal of raising the $100,000 for the project?
Because I do not depend on the PHP future for my professional life. That is a role for PHP core developers that only dedicate to PHP.
Anyway, if you followed the whole thread from the beginning, you would noticed that I developed the PHP Classes repository. It is a site that lets developers post their PHP components in the form of PHP classes. Everytime a developer posts a new class, a notification message is sent to the site subscribers. The site has now over 42.000 subscribers. Over 300 classes have been contributed by the about 200 authors.
This is a great place for developers get immediate exposure of their work and for users to find some freely available ready to use components for their PHP applications. I developed this site originally to distribute my own PHP classes, but while I was at it I decided to make it a place for other developers to distribute theirs. So, this helps PHP being promoted by providing compensation to both the developers and the users.
This was all planned ahead. The users are required to login to download. That way I can account acurately the number of users that downloaded the classes. This way I can compute acurate top download charts, creating a sort of hall of fame for the most popular PHP Classes and the authors that contributed them. I antecipated that this way I would be providing recognition to PHP and all the authors that contributed because in the end I would have real figures to show to those that doubt of PHP acceptance.
How much is that worth if you had money to put up front to promote PHP with a normal marketing campaign? Maybe more that $100.000. If I just think of the work envolved in the development of the site for all these two years, it would probably cost more.
I don't do more because I really can't justify putting more time because these days my professional life does not revolve around PHP, not even for the Web. Since I really can't do it, coming here expressing my points on what should be done is much better than nothing.
People that know me, are aware that once in a while I bother to speak up for the best of PHP, proposing new ways to go and warning about things that are not being properly addressed. If you look back in the mailing list archives you will notice that I am often fought by people that refuse to agree with me, maybe because they are responsible for not having done what I am proposing or for some reason they don't like to give me the reason that what I say the right way to go, despite probably some agree but don't want to admit it.
Anyway, it doesn't matter, as long as something gets done and the future is brighter for PHP and all those that depend on it. So, history demonstrated that despite things are not done exactly as I proposed, something is done, which is better than nothing. I think this is being proactive, because I am acting with the intention of causing some progress. It does not cost me money directly, but the intention and the good consequences are what matter.
Regards, Manuel Lemos
attached mail follows:
Hello,
> one assumption you seem to have is the ongoing viability of php (if not > the very livelihood of we the developers using php) is somehow a function > of the number of folks who know what php is. that somehow the more folks > know about php, the better php gets. it also seems that you feel 'the PHP > people' are not putting forth enough effort to further php's acceptance and > viability. > > from my point of view as a developer using php, recognition of php in the > corporate world is not as important as how good php is. i prefer to see > efforts focused on developing the best darn HTML-embedded scripting > language this side of the railroad tracks. whether or not php gets talked > about on the evening news doesn't really matter. what matters is whether > php helps me as a programmer. i don't care how many folks recognize the > power of php. i care about the power of php. the number of folks using php > is a function of whether or not 'the PHP people' can continue to produce > such rockin' code over the next few years. not the other way around. > > i imagine you have a unique perspective on the effort it takes to promote > php. but, i'm guessing that 'the PHP people' probably do as well. i myself > am unduly grateful for the effort that they put forth, not only in > producing the rockin'st language anyone could have hoped for when learning > to program, but in promoting php as well. when i saw php was featured at > the open source convention in san jose, i knew things were moving along > just fine. that's the kind of promotion i want to see. i believe 'the PHP > people' should be allowed to promote php in a manner they are comfortable > with. after all, it's their itch. > > ya know, making the best HTML-embedded scripting language seems a pretty > noble goal to me.
If you read my messages in the thread from the beginning you can see that basically the current problems of PHP in its acceptance are more with the people view of PHP than about its technical abilities. It is a known fact that PHP is very good for Web programming. The problem is that not everybody that could use PHP knows or is so sure about it. That is why PHP needs to be better marketed.
Regards, Manuel Lemos
attached mail follows:
At 15:19 29-08-01, Alexander Skwar wrote: >So sprach Manuel Lemos am 2001-08-28 um 23:21:54 -0300 : > > Man, give it some time! How long was it since Andrei released PHP-GTK? > > How old is PHP now? > >Exactly. And also Perl wasn't made to create GUI apps, was it? But >look how many Perl GUI apps there are out there now.
I've yet to see one, which doesn't come to say that they don't exist (you named a couple) - but does come to say that Perl did not succeed at becoming a serious contended in the GUI market.
As I told Manuel, the issue isn't *time*, but *timing*. If PHP's goal was to become a serious contended in the GUI app market (which it was not) - it long missed this opportunity. GUI applications of PHP are cool, can be very useful, especially to people who already know PHP. However, assuming that it would ever catch a significant share of the GUI market is naive, IMHO.
Zeev
attached mail follows:
> If you read my messages in the thread from the beginning you can see > that basically the current problems of PHP in its acceptance are more > with the people view of PHP than about its technical abilities. It is a > known fact that PHP is very good for Web programming. The problem is > that not everybody that could use PHP knows or is so sure about it. That > is why PHP needs to be better marketed.
Well, at least some of us are spending a whole lot of time getting in front of people and showing them how useful PHP is. For the month of August I have seen my wife a total of 5 days. In July I saw her about 9 days. The rest of the time I was on the road and in front of people showing them how cool PHP is or sometimes I was home and she was on the road. Just to give you an idea. A list of recent talks and presentations:
June:
- Conference in Porto Alegre, Brazil - University in Lajeado, Brazil - Large government institution in Porto Alegre, Brazil - Linux User Group in Toronto, Canada - Linux Expo - Montreal, Canada - PHP User Group in Boston - SoftwareLivre conference in Montevideo, Uruguay
July:
- Talk and PHP booth at LinuxTag, Stuttgart Germany - Tutorial and session at OSCON in San Diego - Seminar in Herndon, Virginia
August
- Seminar in Pittsburgh - Seminar in Atlanta - PHP User Group meeting in Atlanta - Seminar in San Francisco - Seminar in Portland - Seminar in Austin - Seminar in Minneapolis - 6 hours of tutorials at LinuxWorld in San Francisco
And the next 3 months look just as busy.
The seminars were geared at semi-technical business managers and were held in conjunction with Nusphere. I also had an article in Linux Magazine during this time.
And by the way, this is not my job. I do not get paid for this, nor does my future in any way depend on PHP. PHP happens to be the most visible thing I am involved in and people assume that my life therefore must revolve around it. That actually is not true.
If you don't think I and others involved in PHP development is doing enough to promote PHP that is fine. And suggestions are welcome. But telling us that we are sitting on our hands watching the world pass us by without doing anything at all is rather insulting. Especially given the amount of time I have personally spent sitting on crummy airplanes in the past year or two for the sole purpose of promoting PHP.
-Rasmus
attached mail follows:
I attended one of your conferences / training sessions, the Linux Conference in NYC, and I have to say it was excellent, and certainly motivational. Through that one day of your speech it motivated me enough to get off my bum and start using PHP in our environment for whatever we possibly could... and we have been pretty sucessful in the short time we've been implementing it. The ease of use, ease of learning, and overall excellent design of the language has made it a pleasure to use... And I recommend it to customers now, any one that is willing to listen to me blabber more than 2 minutes.
--Matthew
PS: The power of open source is not in the advertising... it's in the product, which makes it all the more worthwhile.
--On Wed, 29 Aug 2001 10:03:21 Rasmus Lerdorf wrote: >> If you read my messages in the thread from the beginning you can see >> that basically the current problems of PHP in its acceptance are more >> with the people view of PHP than about its technical abilities. It is a >> known fact that PHP is very good for Web programming. The problem is >> that not everybody that could use PHP knows or is so sure about it. That >> is why PHP needs to be better marketed. > >Well, at least some of us are spending a whole lot of time getting in >front of people and showing them how useful PHP is. For the month of >August I have seen my wife a total of 5 days. In July I saw her about 9 >days. The rest of the time I was on the road and in front of people >showing them how cool PHP is or sometimes I was home and she was on the >road. Just to give you an idea. A list of recent talks and >presentations: > >June: > > - Conference in Porto Alegre, Brazil > - University in Lajeado, Brazil > - Large government institution in Porto Alegre, Brazil > - Linux User Group in Toronto, Canada > - Linux Expo - Montreal, Canada > - PHP User Group in Boston > - SoftwareLivre conference in Montevideo, Uruguay > >July: > > - Talk and PHP booth at LinuxTag, Stuttgart Germany > - Tutorial and session at OSCON in San Diego > - Seminar in Herndon, Virginia > >August > > - Seminar in Pittsburgh > - Seminar in Atlanta > - PHP User Group meeting in Atlanta > - Seminar in San Francisco > - Seminar in Portland > - Seminar in Austin > - Seminar in Minneapolis > - 6 hours of tutorials at LinuxWorld in San Francisco > >And the next 3 months look just as busy. > >The seminars were geared at semi-technical business managers and were held >in conjunction with Nusphere. I also had an article in Linux Magazine >during this time. > >And by the way, this is not my job. I do not get paid for this, nor does >my future in any way depend on PHP. PHP happens to be the most visible >thing I am involved in and people assume that my life therefore must >revolve around it. That actually is not true. > >If you don't think I and others involved in PHP development is doing >enough to promote PHP that is fine. And suggestions are welcome. But >telling us that we are sitting on our hands watching the world pass us by >without doing anything at all is rather insulting. Especially given the >amount of time I have personally spent sitting on crummy airplanes in the >past year or two for the sole purpose of promoting PHP. > >-Rasmus > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net >For additional commands, e-mail: php-general-help
lists.php.net >To contact the list administrators, e-mail: php-list-admin
lists.php.net > >
Get 250 color business cards for FREE! http://businesscards.lycos.com/vp/fastpath/
attached mail follows:
Damn, I wish I had read that thre was this event in Toronto, I would have liked to attend! :)
> - Linux User Group in Toronto, Canada
I agree, suggestion and constructive criticism are fine but lets not start attacking the guys who have put in countless hours to make PHP what it is today. I'm sure they will take in suggestions and do as much as humanly possible to keep everyone happy ;)
> telling us that we are sitting on our hands watching the world pass us by > without doing anything at all is rather insulting. Especially given the > amount of time I have personally spent sitting on crummy airplanes in the > past year or two for the sole purpose of promoting PHP. > > -Rasmus
attached mail follows:
So sprach Zeev Suraski am 2001-08-29 um 19:43:15 +0300 : > very useful, especially to people who already know PHP. However, assuming > that it would ever catch a significant share of the GUI market is naive, > IMHO.
Well, my point was, that at the beginning of the Perl->GTK binding, noone would have guessed that Perl EVER might be a useful GUI programming language (at least I suppose so).
I'm also not saying that PHP has to be actively pushed in this direction. Not at all. I'm quite with you that PHP should focus on it's Web-abilities.
However, I don't think it's right to say that this will never ever happen, like you do. And I also do think, that it's counter-productive from you to say something like this. I mean, it would be okay (with me), if you kinda ignored this. But what's so bad about PHP-GTK that you speak so strongly against it?
Alexander Skwar
-- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.digitalprojects.com | http://www.iso-top.de iso-top.de - Die gnstige Art an Linux Distributionen zu kommen Uptime: 4 hours 12 minutes
attached mail follows:
Hello Zeev,
Zeev Suraski wrote: > >If you are going to descriminate sites based on subjective criteria, > >like matters of taste or points of view that vary greatly from person to > >person, that is bad because you will certainly leave out contributions > >that could help greatly PHP and in the end yourself. > > > >It would certainly would make you look arrogant if you get to be picky > >as if including some sites and not others you would be doing somebody > >else a favor when the promotion that PHP gets from the sites will always > >benefit you direct or indirectly. > > But that's the problem, and that's why I think it's not necessarily a good > idea. Some people may feel it's arrogant, but it doesn't change the fact > that some sites may result in PHP's brand going in the opposite > direction. Because there's no objective criteria and no jurisdiction, we > won't have ways to avoid this, at least not without causing some people to > feel very bad.
So what you are going to do about it? Nothing?
If you don't want to risk hurting people just accept as much sites as you can with a minimum of requirements and along with the Web ring have a vote facility that lets the user be the judge of the quality of the sites and then periodically publish PHP content sites rankings by user votes. I'm sure this will foster the continuous improvement of the quality of the sites because every site maintainer with an ego will want to look good in the rankings.
> >If I were you I certainly would not rule out sites with content that > >overlaps others. Why not accept all sites that provide PHP articles? One > >site may not be as good or as complete as other today, but they may > >improve over time enough to be technically better than others that you > >picked before. What would you do then? Accept what you refused before > >and then discard what you accepted before? Doesn't seem to be a good > >idea. > > I think that you're forgetting where this whole discussion started. If the > idea is to make everybody feel good about themselves (which is a viable > objective on its own) and be as 'fair' as possible, then what you wrote in > this paragraph and in the two paragraphs before it makes perfect > sense. But that's not the goal you were talking about. The goal is to > push PHP, to market it, and to give it a good image. Unfortunately, doing > the 'nice-to-everybody' thing ('developer-oriented') does not go hand in > hand with doing the right thing from a marketing perspective > ('consumer-oriented'). They're not mutually exclusive, not at all, but > they're definitely not identical directions.
Man, you are not getting my point. The idea to accept as much sites as you can is to foster a competition between all the sites that can provide any sort of content to the PHP developers giving a great sense of support to the users, being either effective users or users in potential that are evaluating the language and are in doubt about the support they may get from the PHP community.
Anyway, addressing the potential of PHP promotion originated by PHP content sites, is only part of needs to be done. You definitely need to address the media in a way that they provide PHP more exposure.
Not only you need to foster technical article writing, but you also need to give the media some food that they like, basically "hot news". You may not give much importance to that, but I thing at least part of the qualified media would like to hear about hot new extensions that are available at each release or are under development. This will provide much page views to PHP in a medium that is not specific of PHP.
> >Anyway, in a Web ring banner you only promote a site at each banner > >view. I don't see the problem of rotating banners of overlapped content. > > The way I see it is that if it's too loose, it's useless. It won't give > PHP any professional feel or anything. If it's more tight, then we're > going to have to ensure that the sites are sync'd in terms of avoiding > duplicate content, that they're all of good quality, etc. This is *very* > difficult to do in a world which is almost completely based on volunteer > work. I, for one, don't think we can demand *anything* from PHP community > site webmasters - whatever they do to help PHP is good, and they should get > to decide how much and in what ways they're willing to contribute.
What I have written above addresses this challenge. Anyway, there is a lot more that can be done. You just need to focus on ideas that promote PHP, hopefully without spending much money, time or any other sort of effort. In that sense what you need to do is to invest on viral ideas, meaning ideas that spread by themselves automatically.
About this idea, I recommend this book, if you haven't yet read it: Unleashing the Idea Virus by Seth Godin, former Yahoo marketing director.
The book is about what is a viral idea and how to create one that will succeed. The book is freely available in different electronic formats from here. Give it a try, it is worthy.
> > > Things like that are usually not that simple, or in other words, they're > > > easier said than done. If done sloppily, they can have a negative > > > effect. And doing them correctly requires substantial efforts. > > > >You sound bureacratic. You should feel honoured by the extra promotion > >that all the PHP content sites give you because your business depends on > >PHP acceptance in the market. Why make it hard for sites that are > >willing to help you in the end? > > Because I'm trying to look at the goal and look how we can try to achieve > it, and be as realistic as possible about our chances. Using a screwdriver > to hammer a nail doesn't work, and I think that thinking that this Web ring > would do the job of marketing PHP is over-optimistic.
I did not say that. I suggested that as one of many things that can be done and even doesn't cost you much to put in practice.
> Honor has nothing to do with it, and I think it's a great thing that there > are lots of PHP web sites and a strong community behind it.
Yes, my point is that you are not taking positive advantage of that when you could for the joy of everybody concerned with PHP.
> >I guess you just say that because you were simply not affected by the > >major Internet layoffs that happened in the latest months, so you don't > >seem to have a great idea how bad this has been for so many people. > > > >Of course the Internet is not gone. It just happens that the number of > >companies with business depending on it was drastically reduced. So, > >there aren't so much employment and business opportinities as before. > >That's what I mean. > > I'm quite aware of the serious slow down, I'm in the hi tech industry as > well, remember? :) It doesn't change the way the Web's future looks as a > medium. There was serious hype that caused a big balloon of hot air, which > blew up. But the medium itself was not hurt. Apart of the .COM world, > which wasn't making any money anyway, the internet infrastructure is still > being used just as extensively as it was, and I think that in the long run, > it'll continue to grow.
What I am saying is that the Internet market was the largest part of the PHP market. Most of the corporate market uses Microsoft stuff because they deal with money by definition and it is very hard to make it believe that something does not cost money and hardly ever appears in the media so it doesn't get enough exposure to be credible. If you keep refusing to believe this, I'll rest my case.
> >I don't think the actual PHP for command line features matter. My point > >is that people get it wrong. What is it that you can do on Perl in the > >command line that you can't do with PHP? Nothing relevant, it is that > >people hardly can concieve PHP as a command line scripting language > >because PHP is not known nor advertised as a capable language to work > >that way. That is what needs fixing: people's misconceptions. That's > >fixable with targetted marketing. > > I don't think that's even a problem, and it's not as if we have so many > marketing resources we should be looking for new fronts to fight :) PHP is > looking at a serious up-hill battle if it tries to market itself as a > general purpose language. If we market it as a Web platform, it's an > established solution (which still needs work). If I get to 'pick my > fights', I'd go for the 2nd one any day. > As I previously said, as things work in the opensource world - if people > start working on different angles, there's nothing to stop them. But as > far as the core project is concerned, I'd be very wary of losing focus.
It is your bet. If you are convinced that is the winning bet, I am wasting my time here.
> >Man, give it some time! How long was it since Andrei released PHP-GTK? > >How old is PHP now? > > These aren't the right questions in my opinion. PHP was around when the > Web started growing rapidly, in 1997-8-9. The GUI market, on the other > hands, started booming in the early 90's. In my opinion, it's pretty much > a lost battle - there are established solutions which are much better than > PHP in this area.
Go and tell that to Perl and Python developers.
> >I think it is amazing the some how unexpected uses that people find for > >PHP. What really confuses me is that instead of making that "use cases" > >to promote PHP, you simply raise a lot of objections as if that would > >cause any harm to PHP. Come on, enjoy all the PHP users applications > >because they certainly help you to make the proof of concept that PHP is > >the right choice for so many people. > > That's my main point of disagreement. It would be quite cool to find some > day that my fridge has PHP built into it, but let's be realistic about it - > do we have the power and resources to do this? My answer is a definite > 'no', and I think that if we try doing this, we'll lose what we already > have - which is a *strong* Web platform.
You don't have to develop anything about it, you just need to make them use cases to show the power of PHP.
> >Useful? How can you reckon them as useful if you insist on neglecting > >them? > > What do you mean insist on neglecting them?
It seems that you are embarassed of showing that PHP can be and is used for non-Web programming. Non-Web programming can be complimentary to Web programming. PHP Web applications can have nice GUI installing programs also written in PHP, but your position make it sound like as if it is a sin to do non-Web programming with PHP.
> If you mean that in a presentation that I may do about PHP to an audience > of possible users, I would define PHP as a 'Web platform', then yes, I'm > neglecting it. But if I pitch it as the 'Language that would change your > life!!!', my chances of convincing them are slim.
You don't have to lie or pretend PHP can be used for things that nobody use for. You just have to present real world use cases which also include non-Web programming. That would help you to impress any PHP-unaware audience about PHP power.
> >One other thing, I don't know if you notice, that but every time you > >neglect these unexpected uses of PHP you are somehow ruling out people > >behind them. That's a serious thing because you are eventually hurting > >people's feelings when that worked so hard to use the language that you > >developed. If people are making a private use of their work and could > >not care less if their work is reckoned, that is not a problem. But > >sometimes you see people working so hard with recognition as their main > >goal. Neglecting that recognition or making it very hard is terrible. I > >don't thing you want those people to give up for the lack of > >recognition, don't you? > > As I said earlier in this letter, making people feel good about what they > do doesn't always go hand in hand with what would keep PHP alive for the
That's sensitive! Are you just a techie that only cares about the technology that you develop, or are you a real person that is happy with the work that real world users put up front eventually helping you to promote PHP?
> years to come. It all depends what our goal is. If it's to try and keep > PHP on the cutting edge, then we have to go in a certain path. If our goal > is to make everybody happy, at the price of seeing PHP lose focus, become a > super-market of 'everything goes', inevitably losing market share and > eventually dying, it's another. These two are extremes, and we should do > our best to find the path in between. As much as you tried to establish > this in your letters, I haven't seen a good solid reason to believe that > what you suggest is going to secure a better future for PHP, or even going > to increase the chances of success for it. Your analysis of the situation > assumes that in our current situation, we have nothing to lose. I see this > very differently - I think that if we change directions without carefully > thinking about the possible consequences, we have *TONS* to lose.
These sound just like excuses to not agree with what I am suggesting. Never mind, I am used to this. I even do not take it personal.
> >You're welcome, but you just skipped the implicit million dollar > >question: will there be an affordable version of Zend encoder that > >developers can buy for USD$100 like they can with VB or Delphi? :-) > > The current Encoder pricing is quite affordable (people on this list didn't > even agree with me that $50/month may be too high, but it's definitely not > unaffordable). Unlike VB or Delphi, where you *cannot* develop unless you > buy these products, with PHP, things are very different. You can develop > whatever you want, and only if you distribute your application *and* don't > want to give out the source code (which almost always means you're selling > it), you should consider getting the Encoder. $50/month is not a lot, and > we're definitely not going to offer it for $100/perpetual. We do, however, > look into different ways of offering this functionality in different ways > to different audiences, but nothing has been decided as of yet.
I don't want to interfere with your business model. If you can make a living from it, for me it is just fine. That's sincerely what I always wished for you: commercial success. Still that won't attend the needs of most of the PHP users.
Regards, Manuel Lemos
attached mail follows:
At 20:23 29-08-01, Alexander Skwar wrote: >However, I don't think it's right to say that this will never ever >happen, like you do. And I also do think, that it's counter-productive >from you to say something like this. I mean, it would be okay (with >me), if you kinda ignored this. But what's so bad about PHP-GTK that >you speak so strongly against it?
I am *not* speaking against it, not strongly or or otherwise. I'm really not :) As a matter of fact, some parts in the Zend Engine 2 are going to address issues that Andrei (that wrote the PHP-GTK module). I think that the ability to develop GUI apps using PHP is very cool, and I'm pretty sure that PHP developers who need to develop simple (as in control-based) GUI's are very likely to do it in PHP-GTK, which is good.
What I *am* saying is that GUI apps are not PHP's main strength, and thus, should not be its main focus. If we try to push and market PHP, we should pick reasonable objectives - and pushing it as a platform is much more attainable than as a good-for-everything language. This objective is quite ambitious on its own.
Zeev
attached mail follows:
He said:
> PS: The power of open source is not in the advertising... it's in the product, which > makes it all the more worthwhile.
I'm just waiting to see a PHP billboard. I'm telling you, wouldn't it be a blast? I'd drive the long way to work every day just to drive by it and tip my hat. Or maybe be sitting in a crowded train station waiting for the next train and hear people talking about the latest version of PHP.
Or a TV commercial like Sony laptop's latest, with the airline pilots and support crew saying "SIR! THIS PLANE CAN NOT MOVE UNTIL YOU PUT THE PHP AWAY!"
> -----Original Message-----
> From: Ninety-Nine Ways To Die [mailto:ninetyninewaystodie
lycos.com]
> Sent: Wednesday, August 29, 2001 11:18 AM
> To: Manuel Lemos; Rasmus Lerdorf
> Cc: php-general
lists.php.net
> Subject: Re: [PHP] The future of PHP
>
>
> I attended one of your conferences / training sessions, the Linux Conference in NYC, and
> I have to say it was excellent, and certainly motivational. Through that one day of your
> speech it motivated me enough to get off my bum and start using PHP in our environment
> for whatever we possibly could... and we have been pretty sucessful in the short time
> we've been implementing it. The ease of use, ease of learning, and overall excellent
> design of the language has made it a pleasure to use... And I recommend it to customers
> now, any one that is willing to listen to me blabber more than 2 minutes.
>
> --Matthew
>
>
>
> --
>
> On Wed, 29 Aug 2001 10:03:21
> Rasmus Lerdorf wrote:
> >> If you read my messages in the thread from the beginning you can see
> >> that basically the current problems of PHP in its acceptance are more
> >> with the people view of PHP than about its technical abilities. It is a
> >> known fact that PHP is very good for Web programming. The problem is
> >> that not everybody that could use PHP knows or is so sure about it. That
> >> is why PHP needs to be better marketed.
> >
> >Well, at least some of us are spending a whole lot of time getting in
> >front of people and showing them how useful PHP is. For the month of
> >August I have seen my wife a total of 5 days. In July I saw her about 9
> >days. The rest of the time I was on the road and in front of people
> >showing them how cool PHP is or sometimes I was home and she was on the
> >road. Just to give you an idea. A list of recent talks and
> >presentations:
> >
> >June:
> >
> > - Conference in Porto Alegre, Brazil
> > - University in Lajeado, Brazil
> > - Large government institution in Porto Alegre, Brazil
> > - Linux User Group in Toronto, Canada
> > - Linux Expo - Montreal, Canada
> > - PHP User Group in Boston
> > - SoftwareLivre conference in Montevideo, Uruguay
> >
> >July:
> >
> > - Talk and PHP booth at LinuxTag, Stuttgart Germany
> > - Tutorial and session at OSCON in San Diego
> > - Seminar in Herndon, Virginia
> >
> >August
> >
> > - Seminar in Pittsburgh
> > - Seminar in Atlanta
> > - PHP User Group meeting in Atlanta
> > - Seminar in San Francisco
> > - Seminar in Portland
> > - Seminar in Austin
> > - Seminar in Minneapolis
> > - 6 hours of tutorials at LinuxWorld in San Francisco
> >
> >And the next 3 months look just as busy.
> >
> >The seminars were geared at semi-technical business managers and were held
> >in conjunction with Nusphere. I also had an article in Linux Magazine
> >during this time.
> >
> >And by the way, this is not my job. I do not get paid for this, nor does
> >my future in any way depend on PHP. PHP happens to be the most visible
> >thing I am involved in and people assume that my life therefore must
> >revolve around it. That actually is not true.
> >
> >If you don't think I and others involved in PHP development is doing
> >enough to promote PHP that is fine. And suggestions are welcome. But
> >telling us that we are sitting on our hands watching the world pass us by
> >without doing anything at all is rather insulting. Especially given the
> >amount of time I have personally spent sitting on crummy airplanes in the
> >past year or two for the sole purpose of promoting PHP.
> >
> >-Rasmus
> >
> >
> >--
> >PHP General Mailing List (http://www.php.net/)
> >To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> >For additional commands, e-mail: php-general-help
lists.php.net
> >To contact the list administrators, e-mail: php-list-admin
lists.php.net
> >
> >
>
>
> Get 250 color business cards for FREE!
> http://businesscards.lycos.com/vp/fastpath/
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
attached mail follows:
Hello,
Rasmus Lerdorf wrote: > > > If you read my messages in the thread from the beginning you can see > > that basically the current problems of PHP in its acceptance are more > > with the people view of PHP than about its technical abilities. It is a > > known fact that PHP is very good for Web programming. The problem is > > that not everybody that could use PHP knows or is so sure about it. That > > is why PHP needs to be better marketed. > > Well, at least some of us are spending a whole lot of time getting in > front of people and showing them how useful PHP is. For the month of > August I have seen my wife a total of 5 days. In July I saw her about 9 > days. The rest of the time I was on the road and in front of people > showing them how cool PHP is or sometimes I was home and she was on the > road. Just to give you an idea. A list of recent talks and > presentations:
Nobody was questioning your commitment to promote PHP, but that hardly address the problem of making PHP a credible choice for development before people that could be using it with advantage but hardly are using it because they hardly know about it.
The talks that you give are for people that already know about PHP. The people, in special the corporations, even don't know about PHP to be bothered to attend. You can't just expect people to follow you where you are if they even don't know PHP as a language with reputation, especially in the corporate world dominated by Microsoft stuff. That is what I telling you to address.
Regards, Manuel Lemos
attached mail follows:
Grrr !! same for me, I never knew you were in Montreal, > - Linux Expo - Montreal, Canada
Now I see why the calandar is so useful on php.net !!
py p.s. in june I was probably too busy at the jazz festival tho :)
----- Original Message -----
From: "Jeff Lewis" <jeff
hyrum.net>
To: "Rasmus Lerdorf" <rasmus
php.net>; "Manuel Lemos" <mlemos
acm.org>
Cc: <php-general
lists.php.net>
Sent: Wednesday, August 29, 2001 1:25 PM
Subject: Re: [PHP] The future of PHP
> Damn, I wish I had read that thre was this event in Toronto, I would have
> liked to attend! :)
>
> > - Linux User Group in Toronto, Canada
>
> I agree, suggestion and constructive criticism are fine but lets not start
> attacking the guys who have put in countless hours to make PHP what it is
> today. I'm sure they will take in suggestions and do as much as humanly
> possible to keep everyone happy ;)
>
> > telling us that we are sitting on our hands watching the world pass us
by
> > without doing anything at all is rather insulting. Especially given the
> > amount of time I have personally spent sitting on crummy airplanes in
the
> > past year or two for the sole purpose of promoting PHP.
> >
> > -Rasmus
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
attached mail follows:
So sprach Zeev Suraski am 2001-08-29 um 20:32:32 +0300 : > What I *am* saying is that GUI apps are not PHP's main strength, and thus, > should not be its main focus. If we try to push and market PHP, we should > pick reasonable objectives - and pushing it as a platform is much more > attainable than as a good-for-everything language. This objective is quite > ambitious on its own.
Okay, then I'd like to appologize. I misunderstood you. In this case, I agree to everything you said.
Alexander Skwar
-- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.digitalprojects.com | http://www.iso-top.de iso-top.de - Die gnstige Art an Linux Distributionen zu kommen Uptime: 4 hours 49 minutes
attached mail follows:
Hey, you guys keep coming to Calgary , Alberta, Canada.
Stop by Winnipeg, Manitoba, Canada!
Brian Tanner
Project Manager
Zaam Internet Solutions
Toll Free: 1-866-225-2675
info
zaam.com
http://www.zaam.com
-----Original Message-----
From: pierre-yves [mailto:pylem
sympatico.ca]
Sent: August 29, 2001 11:04 AM
To: php-general
lists.php.net
Subject: Re: [PHP] The future of PHP
Grrr !! same for me, I never knew you were in Montreal, > - Linux Expo - Montreal, Canada
Now I see why the calandar is so useful on php.net !!
py p.s. in june I was probably too busy at the jazz festival tho :)
----- Original Message -----
From: "Jeff Lewis" <jeff
hyrum.net>
To: "Rasmus Lerdorf" <rasmus
php.net>; "Manuel Lemos" <mlemos
acm.org>
Cc: <php-general
lists.php.net>
Sent: Wednesday, August 29, 2001 1:25 PM
Subject: Re: [PHP] The future of PHP
> Damn, I wish I had read that thre was this event in Toronto, I would have
> liked to attend! :)
>
> > - Linux User Group in Toronto, Canada
>
> I agree, suggestion and constructive criticism are fine but lets not start
> attacking the guys who have put in countless hours to make PHP what it is
> today. I'm sure they will take in suggestions and do as much as humanly
> possible to keep everyone happy ;)
>
> > telling us that we are sitting on our hands watching the world pass us
by
> > without doing anything at all is rather insulting. Especially given the
> > amount of time I have personally spent sitting on crummy airplanes in
the
> > past year or two for the sole purpose of promoting PHP.
> >
> > -Rasmus
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribelists.php.net For additional commands, e-mail: php-general-help
lists.php.net To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
> The talks that you give are for people that already know about PHP.
No they aren't. As I said in my message, the seminar series I did were specifically for people who knew nothing about PHP and it was presented alongside other technologies. But yes, the people would have to have had some interest in web stuff or database stuff to have bothered to attend in the first place.
-Rasmus
attached mail follows:
Could we cool it down a little ... maybe let a day go by before hitting "Send" once more on this thread?
Attacking Rasmus and Zeev is counterproductive, and it's starting to sound pretty hostile. The whole PHP development team is doing a fantastic job. (Even though I didn't understand quite how shared objects work. <g> )
We're the other part of the team: implementers, developers and - yes - promoters. We're the ones which actually prove, not just that PHP works, but that it is effective, economical and productive. It's our responsibility to promote it and use it. We can do that by: - talking about our work and the tools we use to technical groups. - talking about our vision and the practical application of open source software to everyday business and scientific problems at meetings of Rotary, Chambers of Commerce, Kinsmen, Lions, etc.. - by always emphasizing the BENEFITS of PHP
We're the ones on the ground, the evangelists. To reach business people we have to go and talk to them, expressing our goals in their language. Managers live by their ears, and are very responsive to what they hear, from sales reps, other managers at the same level, subordinates, general chat at association meetings, etc. They tend to not do a lot of reading, certainly they don't have time to browse a bunch of web sites. They are able to authorize pilot projects, just to see if something works or is as good as it claims to be.
We have to create some buzz. Ironically, we don't necessarily do that by promoting PHP explicitly, but by emphasizing results and benefits from the sites we develop. We then have opportunity to promote the tools used to achieve those results.
Regards - Miles Thompson
At 02:46 PM 8/29/01 -0300, you wrote:
>Hello,
>
>Rasmus Lerdorf wrote:
> >
> > > If you read my messages in the thread from the beginning you can see
> > > that basically the current problems of PHP in its acceptance are more
> > > with the people view of PHP than about its technical abilities. It is a
> > > known fact that PHP is very good for Web programming. The problem is
> > > that not everybody that could use PHP knows or is so sure about it. That
> > > is why PHP needs to be better marketed.
> >
> > Well, at least some of us are spending a whole lot of time getting in
> > front of people and showing them how useful PHP is. For the month of
> > August I have seen my wife a total of 5 days. In July I saw her about 9
> > days. The rest of the time I was on the road and in front of people
> > showing them how cool PHP is or sometimes I was home and she was on the
> > road. Just to give you an idea. A list of recent talks and
> > presentations:
>
>Nobody was questioning your commitment to promote PHP, but that hardly
>address the problem of making PHP a credible choice for development
>before people that could be using it with advantage but hardly are using
>it because they hardly know about it.
>
>The talks that you give are for people that already know about PHP. The
>people, in special the corporations, even don't know about PHP to be
>bothered to attend. You can't just expect people to follow you where you
>are if they even don't know PHP as a language with reputation,
>especially in the corporate world dominated by Microsoft stuff. That is
>what I telling you to address.
>
>Regards,
>Manuel Lemos
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
>For additional commands, e-mail: php-general-help
lists.php.net
>To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
While I don't want to tear down Manuel Lemos or some of the good points he's made, I think it would be helpful to hope that he's been to a PHP talk. Likewise, he makes several pointed views on why it is important to follow the outline he's set forth for a product to be successful. Some credence could be added to these arguments if it were backed by either a clear logical explanation, or some relevant reference to work experience and/or education. Right now, I think a lot of us are stabbing in the air trying to agree with everything you're saying.
I think you fail to understand the phenomenal success PHP has had in the last 2-3 years. I see it in every aspect of reality. Netcraft shows booming charts, the #php efnet channel has sweltered from a few dozen people at most to over 165 as I write this email. The mailing lists are unmanageable they're so high traffic. I can walk into a job, suggest PHP, and not be met by a bunch of questioning "What the hell is 'PHP' looks". I can go to the bookstore and select from any one of probably 15 PHP books. I can go onto monster.com, pop in "PHP", and get a plethora of results--compared to none about 16 months ago. To me, PHP will always be the project I watched grow into a juggernaut in front of my eyes. I'm proud of Zeev, Andi, Rasmus, and the rest of the team and all they've accomplished. I frequently regret not being able to dedicate myself to the success of the project like they do. I do not know what you define as success, but surely this has got to be it. The best thing? The project has attained critical mass now. It's going to keep growing and growing and growing no matter how poor of a job you think everyone is doing. It may be able to grow a little faster if we do a dance and spend a million bucks, but its going to grow sooner or later either way.
Just think, someday I'd like to think our children will be coding in PHP.
Regards,
Cristopher Daniluk
President & CEO
email: cris
dsnet.net
direct: 330/530-2373
Digital Services Network, Inc Unleashing Your Potential voice: 800/845-4822 web: http://www.dsnet.net/
-----Original Message-----
From: Rasmus Lerdorf [mailto:rasmus
php.net]
Sent: Wednesday, August 29, 2001 2:10 PM
To: Manuel Lemos
Cc: php-general
lists.php.net
Subject: Re: [PHP] The future of PHP
> The talks that you give are for people that already know about PHP.
No they aren't. As I said in my message, the seminar series I did were specifically for people who knew nothing about PHP and it was presented alongside other technologies. But yes, the people would have to have had some interest in web stuff or database stuff to have bothered to attend in the first place.
-Rasmus
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribelists.php.net For additional commands, e-mail: php-general-help
lists.php.net To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
I'm working on a project which needs a text rendered to JPEG-image, but when I use the imagettftext() function I get very ugly/damage font (I'm using PHP 4.0.7 and GD 2.1 downloaded from php4win.com, IIS). However, if I use the GD 1.6 instead I get the font okay.
I do need to have the GD 2.1 version working and I of course I can't use the both versions at the same time. Does anyone know why the true type fonts gets very so ugly/damage in this latest GD version? Do you know how I can bypass this problem?
Thanks!
Sumarlidi Einar Dadason
SED - Graphic Design
------------------------------------------
Phone: (+354) 4615501
Mobile: (+354) 8960376
Fax: (+354) 4615503
E-mail: sed
sed.is
Homepage: www.sed.is
------------------------------------------
attached mail follows:
How can I prevent PHP from outputting additional linefeeds when data are echoed from different files (eg. using require).
This phenomenon is fucking up my document structures.
Any advice?
D. Alvarez Arribas <alvarez
st-oneline.net>
attached mail follows:
Anyone know anything about this..... please....
> Hello,
>
> I'm trying to make some thumbnails from some JPEG true color images.
> I have PHP version 4.0.4, and when i try
> imagecreatefromjpeg($image)
> on these images, it doesn't happen.
>
> After hours of head-beating i've realised that the problem is truecolor
> (it works if i open an image editor and save as a palette image then
> try again...)
>
> I'm not in a position to install 4.0.6, so please can anyone tell me how i
> do this? I'm happy that my orignals should remain ture color - i just need
> a way of making thumbs. (can't use imagemagick as runningnin safe mode
> --> have no access to system calls)
>
> thanks in advance,
> jane
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
>
attached mail follows:
Sorry to post here but i need to know this info fast!
How do i make a scrolling marquee in HTML without using javascript
Thanks! -lk6- http://www.StupeedStudios.f2s.com Home of the burning lego man!
ICQ: 115852509
MSN: dbzno1fan
hotmail.com
AIM: legokiller666
attached mail follows:
On Wednesday 29 August 2001 19:08, you wrote: > Sorry to post here but i need to know this info fast! > > How do i make a scrolling marquee in HTML without using javascript
You use the <MARQUEE>Insert scrolling text here</MARQUEE> tags.
ad
attached mail follows:
>> Sorry to post here but i need to know this info fast! >> >> How do i make a scrolling marquee in HTML without using javascript >You use the <MARQUEE>Insert scrolling text here</MARQUEE> tags.
Unsupported by several Navigator Releases.
D. Alvarez Arribas <alvarez
st-oneline.net>
attached mail follows:
So is javascript :)
or should I say that IE & NS don't agree on standards.
Andrew
----- Original Message -----
From: <alvarez
sto13.st-oneline.de>
To: <php-general
lists.php.net>
Sent: Wednesday, August 29, 2001 12:47 PM
Subject: Re: Re: [PHP] Sorry, i need HTML help
>
> >> Sorry to post here but i need to know this info fast!
> >>
> >> How do i make a scrolling marquee in HTML without using javascript
>
> >You use the <MARQUEE>Insert scrolling text here</MARQUEE> tags.
>
> Unsupported by several Navigator Releases.
>
>
> D. Alvarez Arribas <alvarez
st-oneline.net>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
>
attached mail follows:
"Kyle Smith" wrote: > Sorry to post here but i need to know this info fast! > How do i make a scrolling marquee in HTML without using javascript
The next time you need to know something off topic to the list fast, you could try google.
It took me about three seconds to do the following: Go to www.google.com Paste "How do i make a scrolling marquee in HTML without using javascript" into the search box Press the search button Click on the first link it gave me
In three seconds I have the answer and as a bonus I have not annoyed hundreds of people by posting an off topic question to an already busy mailing list.
Luke Welling.
attached mail follows:
> or should I say that IE & NS don't agree on standards.
Not to be too blunt, but what does that matter? IE owns damn near 90% of the market nowadays. Even if AOL starts uses Navigator, that isn't going to change much.
Don't get me wrong. Unless specified otherwise by a client I make all my code as browser independent as possible. It's just that it's no longer as large of a concern as it once was.
All IMHO, o' course... - Erik
attached mail follows:
<marquee></marquee> will only work in Internet Explorier. If you want a marquee to work in all browsers you will have to use DHTML.
Kyle Smith wrote:
> Sorry to post here but i need to know this info fast!
>
> How do i make a scrolling marquee in HTML without using javascript
>
>
> Thanks!
> -lk6-
> http://www.StupeedStudios.f2s.com
> Home of the burning lego man!
>
> ICQ: 115852509
> MSN: dbzno1fan
hotmail.com
> AIM: legokiller666
>
>
>
>
attached mail follows:
And let's face it. Compare IE5.5/6 with NS6. MS owns the market for a damn good reason. I hear Netscape's pulling out anyway to concentrate on iplanets instead or something.
- seb
-----Original Message-----
From: Erik H. Mathy [mailto:erik
butlerandco.com]
Sent: 29 August 2001 15:27
To: php-general
lists.php.net
Subject: RE: Re: [PHP] Sorry, i need HTML help
> or should I say that IE & NS don't agree on standards.
Not to be too blunt, but what does that matter? IE owns damn near 90% of the market nowadays. Even if AOL starts uses Navigator, that isn't going to change much.
Don't get me wrong. Unless specified otherwise by a client I make all my code as browser independent as possible. It's just that it's no longer as large of a concern as it once was.
All IMHO, o' course... - Erik
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribelists.php.net For additional commands, e-mail: php-general-help
lists.php.net To contact the list administrators, e-mail: php-list-admin
lists.php.net
--- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.274 / Virus Database: 144 - Release Date: 23/08/2001
--- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.274 / Virus Database: 144 - Release Date: 23/08/2001
attached mail follows:
Yeah, but isn't "marquee" the ancient Aztec word for "tar and feather me, I'm a tastless HTML author who is mesmerised by blinking lights and horizonally scrolling text beyond my control"??
Someething like that.
- Tim ;)
On Wed, 2001-08-29 at 11:35, Gary wrote: > <marquee></marquee> will only work in Internet Explorier. If you want a > marquee to work in all browsers you will have to use DHTML.
attached mail follows:
Not sure but ive changed my mind on my site design and no-longer need it!
-lk6- http://www.StupeedStudios.f2s.com Home of the burning lego man!
ICQ: 115852509
MSN: dbzno1fan
hotmail.com
AIM: legokiller666
----- Original Message -----
From: "Tim" <infoz
earthlink.net>
To: <php-general
lists.php.net>
Sent: Wednesday, August 29, 2001 7:51 AM
Subject: Re: [PHP] Re: Sorry, i need HTML help
> Yeah, but isn't "marquee" the ancient Aztec word for "tar and feather
> me, I'm a tastless HTML author who is mesmerised by blinking lights and
> horizonally scrolling text beyond my control"??
>
> Someething like that.
>
> - Tim ;)
>
> On Wed, 2001-08-29 at 11:35, Gary wrote:
> > <marquee></marquee> will only work in Internet Explorier. If you want a
> > marquee to work in all browsers you will have to use DHTML.
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
>
attached mail follows:
At 15:35 29-8-01 +0100, Seb Frost wrote: >And let's face it. Compare IE5.5/6 with NS6. MS owns the market for a >damn good reason.
Nice statement.. in the real world M$ stuff is as buggy as software can be.. Even PPL on M$ related lists know, and recognize this.. I mean.. 43 updates/SP's in only 8 months..
The only reason why they own the market is that people are to lazy to download and install another browser. Most of them don't even care about securityrisks involved. You also need to pay for other browsers.. so if you got one for free they'd rather use that one..
Given time NS6x will be a great browser. I happen to like NS but you're perfectly free to make your own choice..
Unless I'm not completely wrong here I don't think many PPL has choosen M$ IE because of it's technical superiority..
Bye,
B.
/"\ \ / ASCII Ribbon Campaign X Against HTML Mail and News / \
attached mail follows:
Yes true, but the MARQUEE tag is deprecated and will no longer work in newer browsers. I don't suggest you use that approach. It's up to you...
-----Original Message-----
From: Alexander Deruwe [mailto:a
deruwe.be]
Sent: Wednesday, August 29, 2001 8:15 AM
To: php-general
lists.php.net
Subject: Re: [PHP] Sorry, i need HTML help
On Wednesday 29 August 2001 19:08, you wrote: > Sorry to post here but i need to know this info fast! > > How do i make a scrolling marquee in HTML without using javascript
You use the <MARQUEE>Insert scrolling text here</MARQUEE> tags.
ad
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribelists.php.net For additional commands, e-mail: php-general-help
lists.php.net To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
If I didn't know you're not working for Zend, I'd suspect that was a prepared-question :)
http://www.zend.com/engine2/ZendEngine-2.0.pdf
At 11:26 29-08-01, Geoff Caplan wrote:
>Hi folks
>
>While we are on the subject of strategic issues for PHP, a quick question on
>the OOP functionality.
>
>As many on this list will know, there is a peculiarity with the PHP object
>model - in many situations it creates a copy of an instance when you would
>expect a reference. This means that you have to constantly remember to
>create references with &, adding an extra source of hard-to-find bugs.
>
>Are there any plans to sort this out? It rather disfigures the language.
>
>Yes, I know PHP was conceived as a functional language, but a high
>percentage of the more sophisticated applications make use of its object
>functionality - you just have to look at the script download sites to see
>that this is true. Both Perl and C/C++ are examples of successful hybrid
>languages. With just a little extra work, PHP could join this list...
>
>Geoff Caplan
>
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
>For additional commands, e-mail: php-general-help
lists.php.net
>To contact the list administrators, e-mail: php-list-admin
lists.php.net
-- Zeev Suraski <zeevzend.com> CTO & co-founder, Zend Technologies Ltd. http://www.zend.com/
attached mail follows:
On Wednesday 29 August 2001 10:09, Justin French wrote:
> I noticed this chunk of code in a site the other day: > > <input type="Submit" name="btn" value="Yes"> > <input type="Submit" name="btn" value="No"> > > > My GUESS is that if i click the "Yes" button, I magically > get $btn = "Yes" as a var is the receieving PHP script. > I was just about to test this, when I realised that (from > what I can tell) multiple submits are not supported by CGI > spec. > > So, even if it works on my browser/platform/server/php > combination, can I be sure it'll work faithfully on all > environments?
This has nothing to do with the CGI standard. It has to do with the HTML standard, which says that:
"If a form contains more than one submit button, only the activated submit button is successful."
This appears on:
http://www.w3.org/TR/html4/interact/forms.html#h-17.13
Note that the CGI "standard" really has little to do with PHP unless you compiled in CGI mode. Some behaviour was inherited from it, but really, all that is relevant to us is the HTML and the HTTP standards.
Herouth
attached mail follows:
As far as any CGI is concerned there is only one submit, The one that is pressed. The other one is simply not posted. But be careful using values of submit buttons ... if the user hits return instead of clicking one of the buttons you won't get anything. If you want a default value try a hidden field before the submits with same name.
Tim Ward
----------
From: Justin French [SMTP:justin
indent.com.au]
Sent: 29 August 2001 08:10
To: php
Subject: multiple submit buttons
Hi all,
I noticed this chunk of code in a site the other day:
<input type="Submit" name="btn" value="Yes"> <input type="Submit" name="btn" value="No">
My GUESS is that if i click the "Yes" button, I magically get $btn = "Yes" as a var is the receieving PHP script. I was just about to test this, when I realised that (from what I can tell) multiple submits are not supported by CGI spec.
So, even if it works on my browser/platform/server/php combination, can I be sure it'll work faithfully on all environments?
Should I be worried about what the browser sends, or what PHP does with it, etc etc?
Has anyone doen some serious testing on this? Good or bad stories?
Justin French
attached mail follows:
Maybe it is not supported by CGI but that doesn't mean it is not supported by the browser. There is no reason for IE of course to say "it hurts". When you click first button bth is "Yes", click on second button bth is "No". Also you can have several buttons everyone of them do "submit" with different names, so if one button is named "edit", other - "delete". When a user clicks "delete" button PHP put in $HTTP_GET_VARS or $HTTP_POST_VARS "delete" index. There is no "edit" index.
Andrey Hristov IcyGEN Corporation http://www.icygen.com 99%
----- Original Message -----
From: "Tim Ward" <tim.ward
stivesdirect.com>
To: "php" <php-general
lists.php.net>; "'Justin French'" <justin
indent.com.au>
Sent: Wednesday, August 29, 2001 3:52 PM
Subject: [PHP] RE: multiple submit buttons
> As far as any CGI is concerned there is only one submit, The one that is
> pressed. The other one is simply not posted. But be careful using values of
> submit buttons ... if the user hits return instead of clicking one of the
> buttons you won't get anything. If you want a default value try a hidden
> field before the submits with same name.
>
> Tim Ward
>
> ----------
> From: Justin French [SMTP:justin
indent.com.au]
> Sent: 29 August 2001 08:10
> To: php
> Subject: multiple submit buttons
>
> Hi all,
>
> I noticed this chunk of code in a site the other day:
>
> <input type="Submit" name="btn" value="Yes">
> <input type="Submit" name="btn" value="No">
>
>
> My GUESS is that if i click the "Yes" button, I magically
> get $btn = "Yes" as a var is the receieving PHP script.
> I was just about to test this, when I realised that (from
> what I can tell) multiple submits are not supported by CGI
> spec.
>
> So, even if it works on my browser/platform/server/php
> combination, can I be sure it'll work faithfully on all
> environments?
>
> Should I be worried about what the browser sends, or what
> PHP does with it, etc etc?
>
>
> Has anyone doen some serious testing on this? Good or bad
> stories?
>
>
> Justin French
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
>
attached mail follows:
> In article <3B8A1D6A.4295.2947D
localhost>, bodybuilders
comic.com
> (Yura) wrote:
>
> > How to sort search results of php-mysql site by relevance?
>
> See the mysql manual's chapter on FULLTEXT indexes.
I indexed column 'text' and tried to add "ORDER BY text DESC" in query and deleted wildcards in front of variables but still it doesn't sort results by number of found words (or parts of words). Maybe I didn't quite understand what to do?
Youri
<>< <>< <>< <>< God is our provider ><> ><> ><> ><> http://www.body-builders.org
attached mail follows:
On Wed, 29 Aug 2001 13:58:34 +0200, BRACK (brak
nettaxi.com) wrote:
>> In article <3B8A1D6A.4295.2947D
localhost>, bodybuilders
comic.com
>> (Yura) wrote:
>>
>> > How to sort search results of php-mysql site by relevance?
>>
>> See the mysql manual's chapter on FULLTEXT indexes.
>
>I indexed column 'text' and tried to add "ORDER BY text DESC" in
>query and deleted wildcards in front of variables but still it
>doesn't
>sort results by number of found words (or parts of words). Maybe I
>didn't quite understand what to do?
or maybe you didn't look up fulltext indexes :)
attached mail follows:
On 29 Aug 2001, at 9:18, Mark Maggelet wrote:
> On Wed, 29 Aug 2001 13:58:34 +0200, BRACK (brak
nettaxi.com) wrote:
> >> In article <3B8A1D6A.4295.2947D
localhost>, bodybuilders
comic.com
> >> (Yura) wrote:
> >>
> >> > How to sort search results of php-mysql site by relevance?
> >>
> >> See the mysql manual's chapter on FULLTEXT indexes.
> >
> >I indexed column 'text' and tried to add "ORDER BY text DESC" in
> >query and deleted wildcards in front of variables but still it
> >doesn't
> >sort results by number of found words (or parts of words). Maybe I
> >didn't quite understand what to do?
>
> or maybe you didn't look up fulltext indexes :)
>
>
But I didn't find "FULLTEXT" word in entire MySQL library...?
<>< <>< <>< <>< God is our provider ><> ><> ><> ><> http://www.body-builders.org
attached mail follows:
www.google.com search "relevance searches in MySQL"
1. www.mysql.com/documentation/mysql/bychapter/manual_Fulltext_Search.html
-----Original Message-----
From: BRACK [mailto:brak
nettaxi.com]
Sent: Wednesday, August 29, 2001 11:40 AM
To: Mark Maggelet
Cc: php-general
lists.php.net
Subject: Re: [PHP] Re: how to sort search results by relevance?
On 29 Aug 2001, at 9:18, Mark Maggelet wrote:
> On Wed, 29 Aug 2001 13:58:34 +0200, BRACK (brak
nettaxi.com) wrote:
> >> In article <3B8A1D6A.4295.2947D
localhost>, bodybuilders
comic.com
> >> (Yura) wrote:
> >>
> >> > How to sort search results of php-mysql site by relevance?
> >>
> >> See the mysql manual's chapter on FULLTEXT indexes.
> >
> >I indexed column 'text' and tried to add "ORDER BY text DESC" in
> >query and deleted wildcards in front of variables but still it
> >doesn't
> >sort results by number of found words (or parts of words). Maybe I
> >didn't quite understand what to do?
>
> or maybe you didn't look up fulltext indexes :)
>
>
But I didn't find "FULLTEXT" word in entire MySQL library...?
<>< <>< <>< <>< God is our provider ><> ><> ><> ><> http://www.body-builders.org
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribelists.php.net For additional commands, e-mail: php-general-help
lists.php.net To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
On Tue, 28 Aug 2001 16:34:44 +0100, seb
raceshoot.com (Seb Frost)
wrote:
>$string0 = "hello";
>$string1 = "goodbye";
>
>$string2 = $string0 . " and " . $string1;
>
>result: $string2 = "hello and goodbye"
also,
$string2="$string1 and $string2";
i'm not sure if there are subtleties there that make this not as good as the preceding answer. generally i go with this one since it's shorter and is, for me, more readable.
does anyone know of a scenario (perhaps involving non-string data) where the concatenation does not return the same answer?
tiger
attached mail follows:
> does anyone know of a scenario (perhaps involving > non-string data) where the concatenation does not > return the same answer?
If you have three vars: $user = "foo"; $users = array("Peter","Michael");
This could be a problem: echo "$users hair is brown";
if what you ment was: echo $string."s hair is brown"; // Peters hair is brown
Regards, Sren
PS: In Danish (I'm Danish) you write 'Peters hair' and not 'Peter's hair' which why I made this silly example :-)
attached mail follows:
<?php
$user="alalaba"; echo "${user}s here"; ?>
Produces : alalabas here
<?php
$user=array("alalaba"); echo "${user}s here"; ?> Produces : Arrays here
Andrey Hristov IcyGEN Corporation http://www.icygen.com 99%
----- Original Message -----
From: "Soeren Nielsen" <news
n-crypt.dk>
To: <php-general
lists.php.net>
Sent: Wednesday, August 29, 2001 3:46 PM
Subject: Re: [PHP] concatenate?
> > does anyone know of a scenario (perhaps involving
> > non-string data) where the concatenation does not
> > return the same answer?
>
> If you have three vars:
> $user = "foo";
> $users = array("Peter","Michael");
>
> This could be a problem:
> echo "$users hair is brown";
>
> if what you ment was:
> echo $string."s hair is brown"; // Peters hair is brown
>
>
> Regards,
> Sren
>
> PS: In Danish (I'm Danish) you write 'Peters hair' and not 'Peter's
> hair' which why I made this silly example :-)
>
>
>
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
>
attached mail follows:
How can I declare optional parameters as used by strpos, substr, etc.
to specify the offset? I do not want to have to preceed some functions
with the
-operator, and preceeding all for consistency wouldn't be an
option, I think. Is it possible at with user-defined functions?
quick help is appreciated. thanks.
D. Alvarez Arribas <alvarez
st-oneline.net>
attached mail follows:
yes, you just declare the default value of the arguments such as :
my_function ($first = 'no-value', $second = 0, $third = null )
Note that the default value must be a constant expression and any defaults should be on the right side of any non-default arguments
or you can achieve the very pretty function-overloading using the funtion handling function. Check it out:
http://www.php.net/manual/en/function.func-get-arg.php http://www.php.net/manual/en/function.func-get-args.php http://www.php.net/manual/en/function.func-num-args.php
----- Original Message -----
From: <alvarez
sto13.st-oneline.de>
To: <php-general
lists.php.net>
Sent: Wednesday, August 29, 2001 2:22 PM
Subject: [PHP] real optional parameters
>
> How can I declare optional parameters as used by strpos, substr, etc.
> to specify the offset? I do not want to have to preceed some functions
> with the
-operator, and preceeding all for consistency wouldn't be an
> option, I think. Is it possible at with user-defined functions?
>
> quick help is appreciated. thanks.
>
> D. Alvarez Arribas <alvarez
st-oneline.net>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
attached mail follows:
So sprach Christian Dechery am 2001-08-27 um 22:57:49 -0300 : > phpMyAdmin is very nice... > but not even close to Mysqlfront... try it out... > > http://www.mysqlfront.de/
Well, but for this to work, you either have to have a local MySQL on your Windows platform, or the database has to be open to connects from every IP address (or, if you're lucky enough to have a static IP: just your IP).
The latter is a security hole, of course. So, mysqlfront, as nice as it might be, is not comparable to phpmyadmin. (Note: I'm not saying it's bad - you just cannot compare them.)
Alexander Skwar
-- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.digitalprojects.com | http://www.iso-top.de iso-top.de - Die gnstige Art an Linux Distributionen zu kommen Uptime: 23 hours 17 minutes
attached mail follows:
So sprach Niklas Lampn am 2001-08-28 um 14:05:54 +0300 : > Funny that there is no meanin for the first P.
Well, there is. The P stands for PHP.
Alexander Skwar
-- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.digitalprojects.com | http://www.iso-top.de iso-top.de - Die gnstige Art an Linux Distributionen zu kommen Uptime: 23 hours 20 minutes
attached mail follows:
PHP originally stood for personal home pages. It was nothing more than a parser that interpreted a few macros to allow people to do extra things (like count visitors) on their homepage.
PHP/FI or PHP2 was Personal Home Pages/Form Interpreter, and added form handling and mSQL to PHP.
PHP3 was the release that was a full blown Scripting Language/Interpreter. With the release of PHP as more than a personal homepage toolkit it was renamed "PHP Hypertext Preprocessor"
The first P actually stands for PHP, making this a recursive acronym (http://ase.isu.edu/ase01_07/ase01_07/bookcase/ref_sh/foldoc/30/91.htm)
Sheridan Saint-Michel Website Administrator FoxJet, an ITW Company www.foxjet.com
----- Original Message -----
From: "Martn Marqus" <martin
bugs.unl.edu.ar>
To: "John Meyer" <john_meyer
geocities.com>; <php-general
lists.php.net>
Sent: Tuesday, August 28, 2001 5:08 PM
Subject: Re: [PHP] What does PHP stand for?
> On Mar 28 Ago 2001 19:52, John Meyer wrote:
> > At 05:15 PM 8/28/01 +0228, you wrote:
> > >It's actually a recursive acronym, like GNU:
> > >
> > > From the manual:
> > >
> > >"PHP, which stands for 'PHP: Hypertext Preprocessor', is an
HTML-embedded
> > >scripting language."
> > >
> > >J
> >
> > Am I making things up, or Did it stand for Perl Hypertext Preprocessor
at
> > one time?
>
> I always thought it meant Personal Home Page (isn't this right?)
>
> Saludos.... :-)
>
> --
> Porqu usar una base de datos relacional cualquiera,
> si pods usar PostgreSQL?
> -----------------------------------------------------------------
> Martn Marqus | mmarques
unl.edu.ar
> Programador, Administrador, DBA | Centro de Telematica
> Universidad Nacional
> del Litoral
> -----------------------------------------------------------------
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
On Tue, 28 Aug 2001 11:19:01 -0500, cdudec
hotmail.com (Chris Wilson)
wrote:
>I'm doing a project for which I want to have a C/C++ act as a process proxy >for which can pass information and retrieve information from a called PHP >script. I think that can be done in perl however perl I don't take is the >best langauge. I've fell in love with PHP and would love use it and avoid >have to call PHP from the commandline and parsing the outputs. > >Any suggestion on if this can be done or any other langauge that do the >trick besides PERL..
i can think of several:
1. write an extension. it'd probably have to be C though, or you'd have to figure out the name-mangling if you wanted C++ in there. *while this is powerful, i would avoid it, myself because i
prefer to work in C++ and the linking problems would take too much effort and time to deal with.
2. use pipes (popen) on the C/C++ process. A. this is an easy way to do things if the C/C++ thing is a one-shot deal (set command line params, read answer in stdout or return value).
B. it's also a reasonable solution if you have half-duplex pipes and you only need to send data once (on command line) and read many lines of answer (use read mode, so "r"). or you need to send a lot of data to the program and you only need it to return a status code (use "w" mode and encode reply in return value from main(...)).
C. this can be a general solution if your system supports full-duplex pipes (popen mode is "rw") since you can then set up as much interactivity as you want between PHP and your external program.
using pipes and exec can be expensive. think about usage patterns before committing to this approach. it's a nice thing for quick and dirty solutions though.
3. write an application server. there are two types, both types have some common features. in general, you ask the application server to perform a service for you, you give it parameters, and it returns the answer.
A. socket based server. the server sits on a socket, PHP opens connections to that socket and the server returns the answer back through the socket.
B. exec or CGI based server. if the server is an external program that conforms to CGI, it could just be invoked via something like fopen("http://....","r"); you pass it parameters through GET (urlencoded on the command line) and you read lines from the program.
a socket based server (either fork-style, like apache, or using select so single-daemon style, or perhaps using threads, on OSs that support them) is probably the least CPU intensive, but it's also harder to write.
i've done all of the above, but with another language and C/C++, not PHP. with PHP i've used the popen thing with good success (it's the most convenient solution), but you really need to think about usage patterns there because spawning off processes like that is expensive and will affect server responsiveness when you start getting a lot of hits. my applications were only hit once every 15 to 30 minutes or so, so efficiency of resource use wasn't a big deal :). hth,
tiger
attached mail follows:
On Tue, 28 Aug 2001 19:41:51 -0400, idesign
tampabay.rr.com
(Glyndower) wrote:
>I have a medium sized db... with about 300 feilds and 15k rows. > >I need to create a search that will submit user input to seach the db from >about 30 different feilds with some of those wildcards. > >i.e bedrooms, bathrooms, price, pool, city, etc.... > >Would using an array for the results page be the best way to approach this >in PHP?
depends on how much and what post-processing you might want to do to the data before printing it out.
in the most common case, you don't need to do any. for example, you already did the sorting in the SQL query, so the database already did the sorting. and usually you just need to display the data as it is received, no need for special post-processing/massaging.
then there's no need to use arrays at all, just read the rows from the resultset, and display the fields you want to display, e.g.,
$res=sql_exec($query); /* $res is the result set, use for stepping over the rows found */
$fldsToDisplay="fullname addr1 addr2 city state zip "; /* add other fields to display in the order you want them displayed */
$fldstoDisplay=explode(" ",$fldsToDisplay); /* i'm lazy. array(...) works too but i like this more because the list is easier to type as a string (fewer quotes) and you can load the list of flds to display from somewhere else (e.g., a config file or something) */
print("<TABLE>\n");
/* for each row in the resultset, get associative array of the row */ while($row=sql_fetch_array($res)) { print("\t<TR>\n");
/* for each field to be displayed, get the next fieldname, and get the corresponding data from the associative array and print it in a table cell */ for($ctr=0;$ctr<count($fldsToDisplay);$ctr++) { $fldname=$fldsToDisplay[$ctr]; $data=$row[$fldname]; print("\t\t<TD>$data</TD>\n"); }
print("\t</TR>\n"); }
print("</TABLE>\n");
PS. replace sql_* functions with the relevant functions for your database or with whatever DB abstraction package you use.
PPS. sometimes you have to do post-processing. but most such data massaging involves only other fields in the same row or global data. the above common case system will need to be modified if your data massaging involves data from other, far-off rows in the same selection. usually, though, even that can be solved by sub-selects and other SQL tricks.
attached mail follows:
Greetings:
I'm following the thread regarding PHP extensions in the thread "The future of PHP - accessory libraries" very anxiously. I've been trying to get this feature going for quite some time but without success.
The current item I'm wrestling with is the gd extensions. I've rebuilt PHP and Apache so many times to enable one feature only to learn that I forgot to recompile one that I'd relied on previously. It's a never ending battle to get all of the features required.
The .so extensions option is a great feature that I'd like to make use of.
In trying to compile the gd .so extension (gd-1.8.4), I'm receiving the following errors. Any ideas?
Thanks Chris Mulcahy
---Making all in ext make[1]: Entering directory `/home/cmulcahy/transfer/webserver/php-4.0.6/ext' Making all in gd make[2]: Entering directory `/home/cmulcahy/transfer/webserver/php-4.0.6/ext/gd' make[3]: Entering directory `/home/cmulcahy/transfer/webserver/php-4.0.6/ext/gd' gcc -I. -I/home/cmulcahy/transfer/webserver/php-4.0.6/ext/gd -I/home/cm ulcahy/transfer/webserver/php-4.0.6/main -I/home/cmulcahy/transfer/webse rver/php-4.0.6 -I/home/cmulcahy/transfer/webserver/php-4.0.6/Zend -I/hom e/cmulcahy/transfer/webserver/php-4.0.6/ext/mysql/libmysql -I/home/cmulc ahy/transfer/webserver/php-4.0.6/ext/xml/expat/xmltok -I/home/cmulcahy/t ransfer/webserver/php-4.0.6/ext/xml/expat/xmlparse -I/home/cmulcahy/tran sfer/webserver/php-4.0.6/TSRM -DSUPPORT_UTF8 -DXML_BYTE_ORDER=12 -g -O2 -c gd.c && touch gd.lo gd.c:95: conflicting types for `gdIOCtx' /usr/local/include/gd_io.h:18: previous declaration of `gdIOCtx' gd.c: In function `php_if_imagecreatefromgif': gd.c:1209: `gdImageCreateFromGif' undeclared (first use in this function) gd.c:1209: (Each undeclared identifier is reported only once gd.c:1209: for each function it appears in.) gd.c: In function `php_if_imagegif': gd.c:1404: `gdImageGif' undeclared (first use in this function) make[3]: *** [gd.lo] Error 1 make[3]: Leaving directory `/home/cmulcahy/transfer/webserver/php-4.0.6/ext/gd' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/cmulcahy/transfer/webserver/php-4.0.6/ext/gd' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/cmulcahy/transfer/webserver/php-4.0.6/ext' make: *** [all-recursive] Error 1
attached mail follows:
I contributed some notes to the function library on http://www.php.net ,
where i have left my mail address some months ago. mail address was like
php
....
For 3 Days now, i am receiving lots of email-ads via this account (~10/day),
mainly .tw and sex stuff.
Is there anyone having this problem, too?
Thanks for responses Christian Lederer
attached mail follows:
It always gets HTTP 500 server error, when I try to run the php scripts on Windows98 SE + PWS4.0. THE PHP installed is Ver 4.06 -win32, as a server module. However I get a screen full of html codes when I run c:\php\php.exe -i in MS-DOS command line So what's problem with the installation or configuration? Thanks BAKER
attached mail follows:
Nyn謺)ܖ"x(u&uz^r&('i"bKajجj\bu暝ؚL,jj&z{Z杛+.*'!bKajaj۫y.ǟZަ\bgrv^j֥^m¸zZ0'(塧mޱ'X+'ޯ((ئ^'(1ڞ'jޜӒ<%1Lq!"zǞZ)醛az{gb")Zbv+n*'zr'i*'jڮ+a bZNr(Ȭ)uا(~ܶ*'-k'譪j춸+Zv'-)k{mmk{_fjXzk{_n{az"(K%G+0+mzxeGjx.~jٲڙئjv'-jvxzaGh+)"nWfyڮ+anazv'-fqyljߢٲh݊g^k{_~jbr)ڙ謶ئz(!秊zr'z˛حبƫz~^e)ܦ x)驕^ױzȧ\]ǟX~ũZ.&ƭg~jbwjjeZuI )Z)(֚rبZz[uI ^rhƧf+rبj$F)jȬwb('v(W[z˛حם+a^W)u+zNjk!,zjVjXzbZ+jxjXibmǢbkjǯjnWj-ۭy!z{az.֧v)+Z+♩lƜ*'ڙ^ƫz˛حםyrz+)jw)yȚ,~ܶ*')j"bKajaȬj
(v'^irvƯyhg ymjVjhț^'(1~V9#2Xz"!<Lq#a-b|{
קmhfz^birب
קw"ȝz^fۥyƧmڲjwfzWj{m+)b+ay-m❩nY[z+hjv
ק~ܶ*'{-yh~bFuy^'jXyb"bHj+y^mǢ%-橦rb~ܶ*'jwZǫw)' ~ܶ*'䞌'+a|"Yi^wا(bw[(~kw+mzv_w-jwlzjם~&\ح)eaj^r"+jwmyꮊjwm~ܶ*'jXުyا Njg)izx+a|"brب+n*'jwgw+ay-"bKajar~ܶ*'ru+jZ-^^-fzIZ2楲zvaz-)i.^'(1~V9#2Xz"&'m+עgM5ͼםӀ9NNƥʚ,&z)醛a!+aYh))~ܶ*'b{hi{ivjkkyןwjvjڙڮ&ڙyyاjƧmyاܟ{,"Zqz^)ybږNږ+"azfjȞ~ܶ*'~)^jw'ڙkyןwj{kii^~)v~iZ'fެzjnxZyjw_֧qa欵驕^驕^~)^byǢZ~)^wZ~)^m~)^~)^,~)^,~)^)*^)*^^ʋ:2bjwz{zir^jZiܭ1{z^fz+Z<
#
attached mail follows:
have you looked at the eval function? it will let you do something similar:
$string = 'this is a $variable';
$variable = 'template';
eval("\$string = $string");
echo $string; -> this is a template
(haven't checked it, but syntax should be ok)
jack
-----Original Message-----
From: --- [mailto:flagzen
libero.it]
Sent: Wednesday, August 29, 2001 9:53 AM
To: php-dev
lists.php.net; php-general
lists.php.net
Subject: [PHP] New feature suggestion: array in string substitution
The feature i suggest for inclusion in the php core is described below, especially in my first post. I think that is a really good idea and i ask you to spend a moment and read my suggestion.
If you think that this feature could be useful, reply to this message and say that you agree (don't repeat all the text written below, i don't want to overload the news server)
(my english is not very good, i'm sorry:)
----------------------------------------------------------
Federico Marani (flagzenNO-SPAM
libero.it)
----------------------------------------------------------
MY OLD POSTS: ----THE FIRST---- I have seen that in php there isn't nothing similar to dictionary substitution in python. (a dictionary is an array with string keys, like hash in perl)
This change consist in adding two functions ("a" stay for "array"): aprintf(string format, array dict) -- like printf, print the result saprintf(string format, array dict) -- like sprintf, return the result
It works like this (written in php-like language):
format -> "my name is %(name)s and i'm %(age)s" dict -> array( name=>"tom", age=> "eighteen" );
(in php, unlike python, is possible to make an array with both string and number indices, so the format can be also %(2)s,...)
aprintf(format,dict) -- print "my name is tom and i'm eighteen" saprintf(format,dict) -- return "my name is tom and i'm eighteen"
in python, these substitutions are very useful, especially in cgi programming, for making templates from text files, in php could be useful in, for example, language customisation, or message formatting, etc...
An example: if ($lang == "it") define("MESSAGE","il %(animal)s %(color)s sta %(action)s %(target)s"); else define("MESSAGE","the %(color)s %(animal)s is %(action)s");
aprintf(MESSAGE,array(animal=>"cobra",color=>"green",action=>"eating",target =>"mouse")); // if the %(target)s isn't found, is ignored.
(the "s" terminator could be substituted with other letters, like d for numbers, etc...)
This approach has several advantages over something like this: "the $color $animal is $action" because in this phrase, variables are substituted when the parser execute it, and in this case: "the %(color)s %(animal)s is %(action)s" parameters are substituted only when the phrase is parsed with a specialized function like aprintf
I think that this is a good idea and could save a lot of time when the program need to be as modular as possible.
----------------
Federico Marani
flagzenNO-SPAM
libero.it
----------------
---END FIRST POST---
---THE SECOND POST--- Yes, the function you have written below make the same thing but i think that a function written in c, inside the php module, can be faster and more elegant than this php-function.
Again, i think that the final user will be happy to have an already written function instead of think and code a personalized function.
I think it's more elegant because it follow the same approach of printf-like functions and a user who already known these functions or known python will not have headaches in finding a solution for his problem
Also prinf, sprinf, etc... can be written as php functions and separated from php core, but it will not happen... why? too important and too useful, they requires speed and their functionality is required in many programs.
The same thing happen in python with dictionary substitution, and now, nobody think to remove it.
I think that this type of function could be useful for a lot of people...
Let me know what do you (also zeev and others) think about
---------------------
Federico Marani
flagzenNO-SPAM
libero.it
----------------------
Jo Giraerts <jo
life.be> wrote in message 20010828153504.A5406
life.be...
> This is already possible in php, though with the following simple
> function..
>
> // function to read a file with php-vars in as a string
> // $predefined_vars: an array ("varname" => "value"). all the
> // variablenames defined in this array can be used in the bodyfile.
> // They will receive the respective values. This makes personalising
> // the mailes easier..
> function file_as_body($filename, $predefined_vars)
> {
> $ar = file($filename);
> extract($predefined_vars);
>
> foreach ($ar as $number => $line)
> {
> eval("\$ar2[] = \"$line\";");
> }
>
> return implode("",$ar2);
> }
>
> and for instance this file as template:
>
> <--- template file
> You received a file on (" . date("d/m/Y (H:i)") . ")
>
> filename: ".basename($file) ."
> filesize: ".filesize($file) ."
> mimetype: $mimetype
>
> Hope you enjoy it..
> --->
>
> You can even use php-code already, thanks to eval :)
>
> Maybe we better make it a PEAR-thing?
>
>
>
>
---END SECOND POST---
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribelists.php.net For additional commands, e-mail: php-general-help
lists.php.net To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
Hi ,
this is my query
SELECT users.uid FROM users, picks WHERE users.uid = picks.user_id;
this works correctly. The results are what they are supposed to be: However, when I change the = sign to a <> or !=, The results are completely incorrect.
----------------------------------
picks.user_id contains: 5, 1, 7, 8, 9, 12, 13, 15
users.uid contains: 1, 8, 9, 5, 7, 10, 11, 12, 13, 14, 15
the result for SELECT users.uid FROM users, picks WHERE users.uid = picks.user_id; is:
5, 1, 7, 8, 9, 12, 13, 15
and the result for SELECT users.uid FROM users, picks WHERE users.uid <> picks.user_id; is:
1, 7, 8, 9, 10, 11, 12, 13, 14, 15, 5, 7, 8, 9, 10, 11,12, 13, 14, 15, 1, 5, 8, 9, 10 ,11...etc
it goes on for 80 rows with no particular pattern......H.E.L.P.!.
attached mail follows:
You need to specify which item to group the query by.
SELECT users.uid FROM users, picks WHERE users.uid <> picks.user_id GROUP BY users.uid;
-----Original Message-----
From: Jeremy Morano [mailto:jeremy
prepresshelp.com]
Sent: Wednesday, August 29, 2001 10:42 AM
To: php-general
lists.php.net
Subject: [PHP] im puzzled
Hi ,
this is my query
SELECT users.uid FROM users, picks WHERE users.uid = picks.user_id;
this works correctly. The results are what they are supposed to be: However, when I change the = sign to a <> or !=, The results are completely incorrect.
----------------------------------
picks.user_id contains: 5, 1, 7, 8, 9, 12, 13, 15
users.uid contains: 1, 8, 9, 5, 7, 10, 11, 12, 13, 14, 15
the result for SELECT users.uid FROM users, picks WHERE users.uid = picks.user_id; is:
5, 1, 7, 8, 9, 12, 13, 15
and the result for SELECT users.uid FROM users, picks WHERE users.uid <> picks.user_id; is:
1, 7, 8, 9, 10, 11, 12, 13, 14, 15, 5, 7, 8, 9, 10, 11,12, 13, 14, 15, 1, 5, 8, 9, 10 ,11...etc
it goes on for 80 rows with no particular pattern......H.E.L.P.!.
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribelists.php.net For additional commands, e-mail: php-general-help
lists.php.net To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
I'm coming over from the ASP side and I'm trying to get a handle on this stuff, I could use a little help with the how and wheres, please. I do ok with the SQl bits, but the PHP bits are still being elusive...
Heres my code:
$sql = "SELECT listnum,agentname,listAgent,streetName,streetNum,curprice,email_addr,officen ame,officephone,agentname,agentphone,bedrooms,full_baths,half_baths,customer Remarks FROM mlsdb WHERE mlsdb.statusCode = 'A' AND mlsdb.catgNum = '1'";
$result = mysql_query($sql);
//load it all into the associative array
while(list($listnum,$agentname,$streetName,$streetNum) = mysql_fetch_row($result)): echo "$listnum $agentname $streetNum $streetName <br>"; endwhile;
?>
Which displays:
50730 Aubrey May Wyndwood Drive 0 873171 Tia Lingle Palm Trl 9903 902385 Anthony Kipen Normandy Blvd 6458 ...
As you can see the $streetNum displays BEFORE the $streetName, I'm assuming thats becuase thats the order they are in in the query..(?)
Heres my "I'm a newbie" question... exactly how and where do I define the variables so that i can use them in a different order than they are in the query?
attached mail follows:
On Wednesday 29 August 2001 14:45, Glyndower wrote:
> Heres my "I'm a newbie" question... exactly how and where do I define the > variables so that i can use them in a different order than they are in the > query?
Go over your results like this instead:
while ($row = mysql_fetch_row($result)) { echo $row['listnum']; // displays 'listnum' field echo $row['officephone']; // etc... }
(I've assumed your syntax for the mysql_fetch_row() function, I haven't used it in a while (use PostgreSQL myself)).
ad
attached mail follows:
Hello all, I have a designing a website of which people can submit news to, this works fine. Just on the main page I have the following code (snippet);
<?php $db = mysql_connect("localhost", "root"); mysql_select_db("tolkiengossip",$db); $result = mysql_query("SELECT * FROM news",$db); if ($myrow = mysql_fetch_array($result)) { echo "<table width=100% border=1 color=black cellpadding=3 cellspacing=0 bordercolor=#666666>\n";
do { printf("<tr bgcolor=#CCCC99><b>Title:</b> %s <b>By:</b> %s | <b>Date:</b> %s </tr><tr><b> Article:</b> %s</tr><tr><b> URL:</b> <a href=%s target=_blank>Click here</a></tr><br>\n", $myrow["title"], $myrow["nickname"],$myrow["created"],$myrow["article"],$myrow["link"]);
} while ($myrow = mysql_fetch_array($result));
echo "</font></table>\n";
This again works fine just, the problem is that it always leaves the first ever article submitted at the top of the page and the latest go down and down etc... I would like to get the latest article to go at the top and oldest to the bottom.
Any help would be gratefully apreciated!
Kind Regards
Tarrant Costelloe (Taz)
Development Department
-------------------
(+44) 01273 852014
(+44) 07714087114
------------------
Qoute/Saying/Poem of the day:
"Common sense is the collection of prejudices acquired by age eighteen." -
George Burns
DISCLAIMER: Any opinions expressed in this email are those of the individual
and not necessarily those of insurE-Com Ltd. (http://www.insur-e.net). This
email and any files transmitted with it, including replies and forwarded
copies (which may contain alterations) subsequently transmitted from
insurE-com, are confidential and solely for the use of the intended
recipient. It may contain material protected by attorney-client privilege.
If you are not the intended recipient or the person responsible for
delivering to the intended recipient, be advised that you have received this
email in error and that any use is strictly prohibited. If you have received
this email in error please notify the technical Infrastructure Group by
telephone on +44 (0)1273 204203 or via mail to tgeorge
insur-e.net,
including a copy of this message. Please then delete this email and destroy
any copies of it.
attached mail follows:
In your query add ORDER BY "field name like date or ID" DESC.
That way it will put them in descending order and I do believe that is what you're looking for :)
Jeff
----- Original Message -----
From: "Tarrant Costelloe" <tcostelloe
insur-e.net>
To: <php-general
lists.php.net>
Sent: Wednesday, August 29, 2001 10:55 AM
Subject: [PHP] SELECT * FROM
> Hello all,
> I have a designing a website of which people can submit news to, this
works
> fine. Just on the main page I have the following code (snippet);
>
> <?php
> $db = mysql_connect("localhost", "root");
> mysql_select_db("tolkiengossip",$db);
> $result = mysql_query("SELECT * FROM news",$db);
> if ($myrow = mysql_fetch_array($result)) {
> echo "<table width=100% border=1 color=black cellpadding=3 cellspacing=0
> bordercolor=#666666>\n";
>
> do {
> printf("<tr bgcolor=#CCCC99><b>Title:</b> %s <b>By:</b> %s |
> <b>Date:</b> %s </tr><tr><b> Article:</b> %s</tr><tr><b> URL:</b> <a
href=%s
> target=_blank>Click here</a></tr><br>\n", $myrow["title"],
> $myrow["nickname"],$myrow["created"],$myrow["article"],$myrow["link"]);
>
> } while ($myrow = mysql_fetch_array($result));
>
> echo "</font></table>\n";
>
> This again works fine just, the problem is that it always leaves the first
> ever article submitted at the top of the page and the latest go down and
> down etc... I would like to get the latest article to go at the top and
> oldest to the bottom.
>
> Any help would be gratefully apreciated!
>
> Kind Regards
>
> Tarrant Costelloe (Taz)
> Development Department
> -------------------
> (+44) 01273 852014
> (+44) 07714087114
> ------------------
> Qoute/Saying/Poem of the day:
> "Common sense is the collection of prejudices acquired by age eighteen." -
> George Burns
> DISCLAIMER: Any opinions expressed in this email are those of the
individual
> and not necessarily those of insurE-Com Ltd. (http://www.insur-e.net).
This
> email and any files transmitted with it, including replies and forwarded
> copies (which may contain alterations) subsequently transmitted from
> insurE-com, are confidential and solely for the use of the intended
> recipient. It may contain material protected by attorney-client privilege.
> If you are not the intended recipient or the person responsible for
> delivering to the intended recipient, be advised that you have received
this
> email in error and that any use is strictly prohibited. If you have
received
> this email in error please notify the technical Infrastructure Group by
> telephone on +44 (0)1273 204203 or via mail to tgeorge
insur-e.net,
> including a copy of this message. Please then delete this email and
destroy
> any copies of it.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
>
>
attached mail follows:
Couple of other tips for you.
1. SELECT * is bad unless you really need every field. If you don't, specify which ones you want - the query will perform better.
$s = "SELECT * FROM News"; // bad $s = "SELECT NewsHeadline, NewsTeaser FROM News"; // better
2. You appear to be connecting to your database (a) as root and (b) without a password (although you may have modified the code, so I'm not sure). This is even worse than SELECT * :-)
Cheers Jon
-----Original Message-----
From: Tarrant Costelloe [mailto:tcostelloe
insur-e.net]
Sent: 29 August 2001 15:55
To: 'php-general
lists.php.net'
Subject: [PHP] SELECT * FROM
Hello all, I have a designing a website of which people can submit news to, this works fine. Just on the main page I have the following code (snippet);
<?php
$db = mysql_connect("localhost", "root"); mysql_select_db("tolkiengossip",$db); $result = mysql_query("SELECT * FROM news",$db);
<snip>
Any help would be gratefully apreciated!
Kind Regards
Tarrant Costelloe (Taz)
attached mail follows:
HELP i'm desperate.... I try to write a downloadskript, which results in the fillowing URL : http://www.myserver.de/securedownload.php?pdfdownload=checkliste3.pdf
yes you guessed right : securedownload does some auth-stuff .... it works on win2000 IE 6.0,5.5 NE 6.0 AND 4.76. it also works well on MAC when used with Netscape 4.5 but not when used with IE 5. it always suggests 'securedownload.php' as the filename, which of cause sucks !!!! I tried EVERY combination of the suggested headers at www.php.net/header , but can't get it to work. here is what i use :
..... header( "Content-type: application/download\n" ); header( "Content-Disposition: filename=$download" ); header( "Content-Description: PHP3 Generated Data" );
set_time_limit(0); readfile('/home/path/to/myfiles/securepdfs/'.$download); ....
Anyone ever found a solution for MAC ?????? ( i hate Mac, but my boss uses one, so ....... )
Sebastian
attached mail follows:
Hi,
I have a PHP routine that writes to a text file. An example output line would be:
fputs($fp, $form["notify_1"] . "\n");
Where $form["notify_1"] is an array of form variables passed to it. What I wish to do is prior to writing to the text file, I want to search and replace all ')' with '}' and all '(' with '{'. I did the following change to the line of code above and wrote the following function:
fputs($fp, txt_change($form["notify_5"]) . "\n");
function txt_change($txt_string) { $prt_string = str_replace("(", "{", $txt_string); $prt_string = str_replace(")", "}", $txt_string); return $prt_string; }
My problem is that the search and replace is NOT working. According to the manual, my syntax for "str_replace" is correct. Does anyone have an idea?
Thanks, Don
attached mail follows:
function txt_change($txt_string) { $prt_string = str_replace("(", "{", $txt_string); $prt_string = str_replace(")", "}", $txt_string); return $prt_string; } even you replace with first statement, you "forget" it. Better : function txt_change($txt_string) { $txt_string = str_replace("(", "{", $txt_string); $txt_string = str_replace(")", "}", $txt_string); return $txt_string; }
Andrey Hristov IcyGEN Corporation http://www.icygen.com 99%
----- Original Message -----
From: "Don" <don
lclcan.com>
To: "php list" <php-general
lists.php.net>
Sent: Wednesday, August 29, 2001 6:48 PM
Subject: [PHP] Problem replacing part of a string
Hi,
I have a PHP routine that writes to a text file. An example output line would be:
fputs($fp, $form["notify_1"] . "\n");
Where $form["notify_1"] is an array of form variables passed to it. What I wish to do is prior to writing to the text file, I want to search and replace all ')' with '}' and all '(' with '{'. I did the following change to the line of code above and wrote the following function:
fputs($fp, txt_change($form["notify_5"]) . "\n");
function txt_change($txt_string) { $prt_string = str_replace("(", "{", $txt_string); $prt_string = str_replace(")", "}", $txt_string); return $prt_string; }
My problem is that the search and replace is NOT working. According to the manual, my syntax for "str_replace" is correct. Does anyone have an idea?
Thanks, Don
attached mail follows:
Hello,
I've created a little opensource script: http://openconcept.ca/guide-petition.phtml
Which uses addslashes() to help clean up data inserted from a web form.
This is fine, except that it appears that you can set up php, so that addslashes are automatically added:
"one small thing i noticed was the "addSlashes" issue. it seems like php is sometimes installed (such as on my machine) in such a way that addSlashes AUTOMATICALLY happens and therefore MANUAL addSlashes adds a SECOND, superfluous forward slash."
"eg Patrick "the skier" kuharic comes out in invitea friend emails by your system as Patrick \the skier\ kuharic"
Has anyone else experienced this? Any suggestions for work arounds?
Mike
-- Mike Gifford, OpenConcept Consulting, http://openconcept.ca Offering everything your organization needs for an effective web site. Abolish Nuclear Weapons Now!: http://pgs.ca/petition/ It is a miracle that curiosity survives formal education. - A Einstein
attached mail follows:
See the magic_quotes_gpc setting in the php.ini file. This can be set to on or off, and is responsible for escaping GET/POST/COOKIE data automatically.
Kirk
> -----Original Message-----
> From: Mike Gifford [mailto:mike
openconcept.on.ca]
> Sent: Wednesday, August 29, 2001 9:58 AM
> To: php-general
lists.php.net
> Subject: [PHP] Add Slashes - Server Adds Them Automatically - Advice
> Requested!
>
>
> Hello,
>
> I've created a little opensource script:
> http://openconcept.ca/guide-petition.phtml
>
> Which uses addslashes() to help clean up data inserted from a
> web form.
>
> This is fine, except that it appears that you can set up php,
> so that addslashes are automatically
> added:
>
> "one small thing i noticed was the "addSlashes" issue. it
> seems like php is
> sometimes installed (such as on my machine) in such a way
> that addSlashes
> AUTOMATICALLY happens and therefore MANUAL addSlashes adds a SECOND,
> superfluous forward slash."
>
> "eg
> Patrick "the skier" kuharic
> comes out in invitea friend emails by your system as
> Patrick \the skier\ kuharic"
>
> Has anyone else experienced this? Any suggestions for work arounds?
>
> Mike
attached mail follows:
I think that always from a form the script gets slashed data.
Andrey Hristov IcyGEN Corporation http://www.icygen.com 99%
----- Original Message -----
From: "Mike Gifford" <mike
openconcept.on.ca>
To: <php-general
lists.php.net>
Sent: Wednesday, August 29, 2001 6:58 PM
Subject: [PHP] Add Slashes - Server Adds Them Automatically - Advice Requested!
> Hello,
>
> I've created a little opensource script:
> http://openconcept.ca/guide-petition.phtml
>
> Which uses addslashes() to help clean up data inserted from a web form.
>
> This is fine, except that it appears that you can set up php, so that addslashes are automatically
> added:
>
> "one small thing i noticed was the "addSlashes" issue. it seems like php is
> sometimes installed (such as on my machine) in such a way that addSlashes
> AUTOMATICALLY happens and therefore MANUAL addSlashes adds a SECOND,
> superfluous forward slash."
>
> "eg
> Patrick "the skier" kuharic
> comes out in invitea friend emails by your system as
> Patrick \the skier\ kuharic"
>
> Has anyone else experienced this? Any suggestions for work arounds?
>
> Mike
> --
> Mike Gifford, OpenConcept Consulting, http://openconcept.ca
> Offering everything your organization needs for an effective web site.
> Abolish Nuclear Weapons Now!: http://pgs.ca/petition/
> It is a miracle that curiosity survives formal education. - A Einstein
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
>
attached mail follows:
Does anyone know any FTP sites that have lots of CGI, PHP, JavaScript, Java, ASP, etc, so i can just leech them all :D - James "ReDucTor" Mitchell
attached mail follows:
http://www.hotscripts.com
It is HTTP, so you cannot leech with ftp. as much as 1000 scripts are available there
----- Original Message -----
From: "ReDucTor" <sjdtmv
tpg.com.au>
To: <php-general
lists.php.net>
Sent: Wednesday, August 29, 2001 7:00 PM
Subject: [PHP] FTPs
> Does anyone know any FTP sites that have lots of CGI, PHP, JavaScript, Java,
> ASP, etc, so i can just leech them all :D
> - James "ReDucTor" Mitchell
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
>
attached mail follows:
Ya, i browse Hotscripts alot, but i just want to connect with FTP, and
leech.... :D
- James "ReDucTor" Mitchell
----- Original Message -----
From: "Andrey Hristov" <ahristov
icygen.com>
To: <php-general
lists.php.net>
Sent: Thursday, August 30, 2001 2:03 AM
Subject: Re: [PHP] FTPs
> http://www.hotscripts.com
> It is HTTP, so you cannot leech with ftp. as much as 1000 scripts are
available there
> ----- Original Message -----
> From: "ReDucTor" <sjdtmv
tpg.com.au>
> To: <php-general
lists.php.net>
> Sent: Wednesday, August 29, 2001 7:00 PM
> Subject: [PHP] FTPs
>
>
> > Does anyone know any FTP sites that have lots of CGI, PHP, JavaScript,
Java,
> > ASP, etc, so i can just leech them all :D
> > - James "ReDucTor" Mitchell
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> > For additional commands, e-mail: php-general-help
lists.php.net
> > To contact the list administrators, e-mail: php-list-admin
lists.php.net
> >
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
attached mail follows:
Kakto se kazva, sorry majna ne moga da ti pomogna.
Andrey Hristov IcyGEN Corporation http://www.icygen.com 99%
----- Original Message -----
From: "ReDucTor" <sjdtmv
tpg.com.au>
To: "Andrey Hristov" <ahristov
icygen.com>; <php-general
lists.php.net>
Sent: Wednesday, August 29, 2001 7:10 PM
Subject: Re: [PHP] FTPs
> Ya, i browse Hotscripts alot, but i just want to connect with FTP, and
> leech.... :D
> - James "ReDucTor" Mitchell
> ----- Original Message -----
> From: "Andrey Hristov" <ahristov
icygen.com>
> To: <php-general
lists.php.net>
> Sent: Thursday, August 30, 2001 2:03 AM
> Subject: Re: [PHP] FTPs
>
>
> > http://www.hotscripts.com
> > It is HTTP, so you cannot leech with ftp. as much as 1000 scripts are
> available there
> > ----- Original Message -----
> > From: "ReDucTor" <sjdtmv
tpg.com.au>
> > To: <php-general
lists.php.net>
> > Sent: Wednesday, August 29, 2001 7:00 PM
> > Subject: [PHP] FTPs
> >
> >
> > > Does anyone know any FTP sites that have lots of CGI, PHP, JavaScript,
> Java,
> > > ASP, etc, so i can just leech them all :D
> > > - James "ReDucTor" Mitchell
> > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> > > For additional commands, e-mail: php-general-help
lists.php.net
> > > To contact the list administrators, e-mail: php-list-admin
lists.php.net
> > >
> > >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> > For additional commands, e-mail: php-general-help
lists.php.net
> > To contact the list administrators, e-mail: php-list-admin
lists.php.net
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
>
attached mail follows:
And what would that be in english?!? :D
----- Original Message -----
From: "Andrey Hristov" <ahristov
icygen.com>
To: <php-general
lists.php.net>
Sent: Thursday, August 30, 2001 2:19 AM
Subject: Re: [PHP] FTPs
> Kakto se kazva, sorry majna ne moga da ti pomogna.
>
> Andrey Hristov
> IcyGEN Corporation
> http://www.icygen.com
> 99%
>
> ----- Original Message -----
> From: "ReDucTor" <sjdtmv
tpg.com.au>
> To: "Andrey Hristov" <ahristov
icygen.com>; <php-general
lists.php.net>
> Sent: Wednesday, August 29, 2001 7:10 PM
> Subject: Re: [PHP] FTPs
>
>
> > Ya, i browse Hotscripts alot, but i just want to connect with FTP, and
> > leech.... :D
> > - James "ReDucTor" Mitchell
> > ----- Original Message -----
> > From: "Andrey Hristov" <ahristov
icygen.com>
> > To: <php-general
lists.php.net>
> > Sent: Thursday, August 30, 2001 2:03 AM
> > Subject: Re: [PHP] FTPs
> >
> >
> > > http://www.hotscripts.com
> > > It is HTTP, so you cannot leech with ftp. as much as 1000 scripts are
> > available there
> > > ----- Original Message -----
> > > From: "ReDucTor" <sjdtmv
tpg.com.au>
> > > To: <php-general
lists.php.net>
> > > Sent: Wednesday, August 29, 2001 7:00 PM
> > > Subject: [PHP] FTPs
> > >
> > >
> > > > Does anyone know any FTP sites that have lots of CGI, PHP,
JavaScript,
> > Java,
> > > > ASP, etc, so i can just leech them all :D
> > > > - James "ReDucTor" Mitchell
> > > >
> > > >
> > > > --
> > > > PHP General Mailing List (http://www.php.net/)
> > > > To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> > > > For additional commands, e-mail: php-general-help
lists.php.net
> > > > To contact the list administrators, e-mail:
php-list-admin
lists.php.net
> > > >
> > > >
> > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> > > For additional commands, e-mail: php-general-help
lists.php.net
> > > To contact the list administrators, e-mail:
php-list-admin
lists.php.net
> > >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> > For additional commands, e-mail: php-general-help
lists.php.net
> > To contact the list administrators, e-mail: php-list-admin
lists.php.net
> >
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
attached mail follows:
As is said, sorry majna(nickname for citizens of second biggest city in Bulgaria) I can not help you.
Have phun.
Andrey Hristov IcyGEN Corporation http://www.icygen.com 99%
----- Original Message -----
From: "ReDucTor" <sjdtmv
tpg.com.au>
To: "Andrey Hristov" <ahristov
icygen.com>; <php-general
lists.php.net>
Sent: Wednesday, August 29, 2001 7:21 PM
Subject: Re: [PHP] FTPs
> And what would that be in english?!? :D
> ----- Original Message -----
> From: "Andrey Hristov" <ahristov
icygen.com>
> To: <php-general
lists.php.net>
> Sent: Thursday, August 30, 2001 2:19 AM
> Subject: Re: [PHP] FTPs
>
>
> > Kakto se kazva, sorry majna ne moga da ti pomogna.
> >
> > Andrey Hristov
> > IcyGEN Corporation
> > http://www.icygen.com
> > 99%
> >
> > ----- Original Message -----
> > From: "ReDucTor" <sjdtmv
tpg.com.au>
> > To: "Andrey Hristov" <ahristov
icygen.com>; <php-general
lists.php.net>
> > Sent: Wednesday, August 29, 2001 7:10 PM
> > Subject: Re: [PHP] FTPs
> >
> >
> > > Ya, i browse Hotscripts alot, but i just want to connect with FTP, and
> > > leech.... :D
> > > - James "ReDucTor" Mitchell
> > > ----- Original Message -----
> > > From: "Andrey Hristov" <ahristov
icygen.com>
> > > To: <php-general
lists.php.net>
> > > Sent: Thursday, August 30, 2001 2:03 AM
> > > Subject: Re: [PHP] FTPs
> > >
> > >
> > > > http://www.hotscripts.com
> > > > It is HTTP, so you cannot leech with ftp. as much as 1000 scripts are
> > > available there
> > > > ----- Original Message -----
> > > > From: "ReDucTor" <sjdtmv
tpg.com.au>
> > > > To: <php-general
lists.php.net>
> > > > Sent: Wednesday, August 29, 2001 7:00 PM
> > > > Subject: [PHP] FTPs
> > > >
> > > >
> > > > > Does anyone know any FTP sites that have lots of CGI, PHP,
> JavaScript,
> > > Java,
> > > > > ASP, etc, so i can just leech them all :D
> > > > > - James "ReDucTor" Mitchell
> > > > >
> > > > >
> > > > > --
> > > > > PHP General Mailing List (http://www.php.net/)
> > > > > To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> > > > > For additional commands, e-mail: php-general-help
lists.php.net
> > > > > To contact the list administrators, e-mail:
> php-list-admin
lists.php.net
> > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > PHP General Mailing List (http://www.php.net/)
> > > > To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> > > > For additional commands, e-mail: php-general-help
lists.php.net
> > > > To contact the list administrators, e-mail:
> php-list-admin
lists.php.net
> > > >
> > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> > > For additional commands, e-mail: php-general-help
lists.php.net
> > > To contact the list administrators, e-mail: php-list-admin
lists.php.net
> > >
> > >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> > For additional commands, e-mail: php-general-help
lists.php.net
> > To contact the list administrators, e-mail: php-list-admin
lists.php.net
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
>
attached mail follows:
the ldap_connect man page states that calling ldap_connect with no arguements should return the link identifier to the open ldap connection. in the following code i find that the script stops before writing the second printf statement:
$LDAP_CONNECTION = ldap_connect($MY_LDAP_SERVER); printf("<br>stop1.1 ==> LDAP_CONNECTION -->%d<--", $LDAP_CONNECTION); printf("<br>stop1.2 ==> current link id -->%d<--", ldap_connect());
the first printf statement tells me that the link id is 1. if i use "ldap_connect('')", then i get a link id of 2; it seems as though ldap_connect is trying to connect to a null server name. if i use "ldap_connect" then i get a link id of 0.
any ideas?
attached mail follows:
"Brad S. Jackson" wrote: > > It looks like the documentation is wrong. The C source code for the LDAP module > doesn't do anything special with zero arguments. > > switch(ZEND_NUM_ARGS()) { > case 0: > host = NULL; > port = 0;
that would explain why "ldap_connect()" would return "0", but that wouldn't explain why the script would stop executing when i call "ldap_connect()".
attached mail follows:
Hi, Can anyone tell me why php is behaving like this?
If I use enctype="multipart/form-data", it seems the first form field is not passed to php. ex: <form method="post" action="products.asp" enctype="multipart/form-data"> <input type="hidden" name="cmd" value="edit">
$cmd will not be passed to php, I have to do this:
<form method="post" action="products.asp" enctype="multipart/form-data"> <input type="hidden" name="null" value="null"> <input type="hidden" name="cmd" value="edit">
Now I can use $cmd.
Is this normal?
Windows Law 1: What boots up must come down...
-------- All I ask of life is a constant and exaggerated sense of my own
importance. --------
Chris Kovalcik
Systems Administrator
Interactive Broadcasting Corporation
techno
bcadventure.com
-------------------------------------------------
Creators of:
BC Adventure Network www.bcadventure.com
BC Books www.bcbooks.com
Casting Shadows www.castingshadows.com
Cowboylife www.cowboylife.com
Fish BC www.fishbc.com
Western Fly Fisher Magazine www.westernflyfisher.com
attached mail follows:
I appreciate all your thoughts.
Miles, regarding the price-per-seat issue, it isn't a question of the number of developers but the number of simultaneous connections to the database. For example, a 64-user Informix license is over $5,000 ... While I doubt we will need to maintain persistent connections, I could envision longer transactions creating a queue in the WAIT line.
While most of our SQL code is fairly vanilla, the code has lots of sub-queries, unions, outer joins, and transactions, etc. That appears to rule-out MySQL.
Regarding a database abstraction package: does Metabase handle all "standard" SQL constructs (as opposed to vendor-specific SQL extensions)? The GUI applications to be ported were built with JAM, which basically provides an abstraction layer via its JPL language. JPL has not been restrictive in terms of required functionality, nor was there any real performance hits. Can the same be said of Metabase? Also, would Metabase present a significant learning curve for experienced C and SQL programmers?
I will download PostgreSQL and check it out.
Again, your input is appreciated and helpful.
James Potts
"Miles Thompson" <milesthompson
ns.sympatico.ca> wrote in message
news:5.0.2.1.0.20010829072100.0244bcc0
pop1.ns.sympatico.ca...
>
> If you are used to Informix, MySQL will be unsatisfying - no stored
> procedures, outer joins, sub-queries, transactions. MySQL is much like
> early dBase II.
>
> I'm not familiar with MS SQL on a price per seat basis, but how many
> developers do you have? If you are doing this web-based you don't have
that
> many "seats". Given that your developers are used to working in MS SQL it
> may be cheaper in terms of overall developer costs.
>
> The downside of that course is that you are locked into MSFT's plans for
> the product and Windows NT/2000/XP.
>
> A robust and reliable open source alternative is PostgreSQL. It has
> features your developers are used to, is adequately fast, and is certainly
> robust. It would probably be the easiest port. Drivers are kept current in
> PHP, Python, Perl and of course ODBC.
>
> Regards - Miles Thompson
>
> At 09:50 PM 8/28/01 -0400, james wrote:
> >We have several GUI applications that we are preparing to convert to
> >web-based applications, based primarily on PHP. The applications are
based
> >on Informix On-Line (on a SCO Unix server) and MS SQL (on NT). Since we
> >will be doing a port, in any case, I am wondering your thoughts on
whether
> >MySQL may be a better database solution. This is particularly important
> >from a price-performance point of view since the other two databases are
> >quite pricy on a per-seat basis.
> >
> >TIA,
> >James
> >
> >
> >
> >--
> >PHP General Mailing List (http://www.php.net/)
> >To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> >For additional commands, e-mail: php-general-help
lists.php.net
> >To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
attached mail follows:
Hi
I had this article sent to me on another list I am subscribed to, just wondered what other people thought of it :-)
http://www.securereality.com.au/studyinscarlet.txt
Ade
attached mail follows:
I'm not certain if this is more an HTML question or a PHP issue, but...
I'm creating an account management system, where each client can have multiple accounts, each account can have multiple users, and each user can make multiple requests.
I've created a SQL Query that returns a list of all user requests, based on userID. I'd like to format the display so that it looks like:
(white) $no $date $subject $priority $status (grey) $no $date $subject $priority $status
how do I tell php to switch the background color of a row in a table, automatically?
Alnisa
--
.........................................
Alnisa Allgood
Executive Director
Nonprofit Tech
(ph) 415.337.7412 (fx) 415.337.7927
(url) http://www.nonprofit-techworld.org
(url) http://www.nonprofit-tech.org
(url) http://www.tech-library.org
.........................................
Nonprofit Tech E-Update
mailto:nonprofit-tech-subscribe
egroups.com
.........................................
applying technology to transform
.........................................
attached mail follows:
In the generated HTML produced by your WHILE statement you can alternate colours. Here's one approach ... the code is bounded by table tags not seen here, the query has been executed and assigned to $result: while( $row = mysql_fetch_array( $result ) ) { if( ( $nCounter++ % 2 ) == 0 ) { echo "<tr bgcolor=\"green\" >"; } else { echo "<tr bgcolor=\"##CCCC33\" >"; } echo "<td>", $row[ no], "</td><td>", $row[ date], "</td><td>", number_format ($row[ yBidAmount ], 2, "," , " " ), "</td></tr>"; }
Even rows are green, and odd rows are whatever that other colour is, a deeper green I believe. Now, you may not like my choice of colours, but I was experimenting. The client settled on white and gray. Sigh.
Miles
At 10:57 AM 8/29/01 -0700, Alnisa Allgood wrote:
>I'm not certain if this is more an HTML question or a PHP issue, but...
>
>I'm creating an account management system, where each client can have
>multiple accounts, each account can have multiple users, and each user can
>make multiple requests.
>
>I've created a SQL Query that returns a list of all user requests, based
>on userID. I'd like to format the display so that it looks like:
>
>(white) $no $date $subject $priority $status
>(grey) $no $date $subject $priority $status
>
>how do I tell php to switch the background color of a row in a table,
>automatically?
>
>Alnisa
>--
> .........................................
> Alnisa Allgood
> Executive Director
> Nonprofit Tech
> (ph) 415.337.7412 (fx) 415.337.7927
> (url) http://www.nonprofit-techworld.org
> (url) http://www.nonprofit-tech.org
> (url) http://www.tech-library.org
> .........................................
> Nonprofit Tech E-Update
> mailto:nonprofit-tech-subscribe
egroups.com
> .........................................
> applying technology to transform
> .........................................
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
>For additional commands, e-mail: php-general-help
lists.php.net
>To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
I have a query that is pulling information from two tables, can I pull from others as well?
SELECT r.resumeID,r.userID,r.skills,r.dateAdded,u.firstName,u.lastName,u.city, u.province FROM resumes r,resumeHolders u WHERE r.userID=u.userID AND u.city='Kitchener'
I want to be able to pull the categoryID and the experienceID from the resumes table and get the corresponding description from the categories and experience tables, is this possible with something like this:
SELECT r.resumeID,r.userID,r.skills,r.dateAdded, r.categoryid, r.experienceid,u.firstName,u.lastName,u.city, u.province, c.descrip, e.descrip FROM resumes r,resumeHolders u, categories c, experience e WHERE r.userID=u.userID AND r.categoryid=c.categoryid AND r.experienceid=e.experienceid AND u.city='Kitchener'
Its getting to be a big select, not sure if it will work :)
Jeff
attached mail follows:
I have counted some rows in MySQL and I need to know how to pull out the number of rows. "SELECT COUNT(*) AS myCount FROM Products"
attached mail follows:
$sql = "SELECT COUNT(*) AS myCount FROM Products"; $result = mysql_query($sql); $count = mysql_result($result,0);
--- Kevin P <kevin.pottie
odellwebdesign.com> wrote:
> I have counted some rows in MySQL and I need to know how
> to pull out the
> number of rows.
> "SELECT COUNT(*) AS myCount FROM Products"
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail:
> php-general-unsubscribe
lists.php.net
> For additional commands, e-mail:
> php-general-help
lists.php.net
> To contact the list administrators, e-mail:
> php-list-admin
lists.php.net
>
===== Mehmet Erisen http://www.erisen.com
__________________________________________________ Do You Yahoo!? Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger http://im.yahoo.com
attached mail follows:
Good day everyone,
I'm writing because the username/password database table we had written for us does not seem to be accepting changes to a password. When I make a change, not only does the new password not take effect but it disables the entire account making it useless)
Below is the code from the change.php3 file. I think the problem is possibly being caused with the unset() function but I'm not sure....
Any ideas?
Thanks again for your help. Shawna
<? php3
if($n_password1 != $n_password2){ print "passwords do not match. try again."; exit; }; $password1=$n_password1; $username = addslashes($n_username); $name_prefix = addslashes($name_prefix); $name_first = addslashes($name_first); $name_middle = addslashes($name_middle); $name_last = addslashes($name_last); $name_suffix = addslashes($name_suffix); $email = addslashes($email); $designation = addslashes($designation); $title = addslashes($title); $company = addslashes($company); if($newsletter != "y"){ $newsletter = "n"; }; (....not sure what is going on here.... ) if($id){ unset($password); if($password1){ $password = ", password = password('$password1')"; };
mysql_db_query("$db", "update members set username = '$username', name_prefix = '$name_prefix', name_first = '$name_first', name_middle = '$name_middle', name_last = '$name_last', name_suffix = '$name_suffix', email = '$email', designation = '$designation', title = '$title', foodchain='$foodchain', company = '$company', newsletter = '$newsletter' $password where id = $id") || print "FAILED.\n\n"; }else{ mysql_db_query("$db", "insert into members (id, username, password, foodchain, name_prefix, name_first, name_middle, name_last, name_suffix, email, designation, title, company, newsletter) values(null, '$username', password('$password1'), $foodchain, '$name_prefix', '$name_first', '$name_middle', '$name_last', '$name_suffix', '$email', '$designation', '$title', '$company', '$newsletter')"); }; ?>
attached mail follows:
maybe somebody else will be able to come up with a much more graceful solution to this, but i think you need to forget unset()-- all it does is destroy a var within a script. your db data doesn't become a var until you fetch it, but unset() isn't a mysql function and doesn't interact with the db at all. your example code is a little hard to read, but is there a reason why you can't just...
$query = "UPDATE tablename set password='$n_password' WHERE id = '$id'";
--- sgibbs
vt.globalhealth.org wrote:
> Good day everyone,
>
> I'm writing because the username/password database
> table we had written for
> us does not seem to be accepting changes to a
> password. When I make a
> change, not only does the new password not take
> effect but it disables the
> entire account making it useless)
>
> Below is the code from the change.php3 file. I
> think the problem is
> possibly being caused with the unset() function but
> I'm not sure....
>
> Any ideas?
>
> Thanks again for your help. Shawna
>
>
> <? php3
>
> if($n_password1 != $n_password2){ print "passwords
> do not match. try again."; exit;
> };$password1=$n_password1;$username =
> addslashes($n_username);$name_prefix =
> addslashes($name_prefix);$name_first =
> addslashes($name_first);$name_middle =
> addslashes($name_middle);$name_last =
> addslashes($name_last);$name_suffix =
> addslashes($name_suffix);$email =
> addslashes($email);$designation =
> addslashes($designation);$title =
> addslashes($title);$company =
> addslashes($company);if($newsletter != "y"){
> $newsletter = "n"; };
> (....not sure what is going on here.... )if($id){
> unset($password); if($password1){ $password = ",
> password = password('$password1')"; };
>
> mysql_db_query("$db", "update members set username
> = '$username',
> name_prefix = '$name_prefix', name_first =
> '$name_first', name_middle =
> '$name_middle', name_last = '$name_last',
> name_suffix = '$name_suffix',
> email = '$email', designation = '$designation',
> title = '$title',
> foodchain='$foodchain', company = '$company',
> newsletter = '$newsletter'
> $password where id = $id") || print
> "FAILED.\n\n";}else{ mysql_db_query("$db", "insert
> into members (id, username, password,
> foodchain, name_prefix, name_first, name_middle,
> name_last, name_suffix,
> email, designation, title, company, newsletter)
> values(null, '$username',
> password('$password1'), $foodchain, '$name_prefix',
> '$name_first',
> '$name_middle', '$name_last', '$name_suffix',
> '$email', '$designation',
> '$title', '$company', '$newsletter')"); };?>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail:
> php-general-unsubscribe
lists.php.net
> For additional commands, e-mail:
> php-general-help
lists.php.net
> To contact the list administrators, e-mail:
> php-list-admin
lists.php.net
>
__________________________________________________ Do You Yahoo!? Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger http://im.yahoo.com
attached mail follows:
Hi I have counted some rows in MySQL and I need to know how to pull out the number of rows. "SELECT COUNT(*) AS myCount FROM Products"
Thanks Kevin
attached mail follows:
If you have a link with Stupeed Studios read on
You need to go to http://www.stupeedstudios.f2s.com/index.html to get your link back up (click on one of the empty spaces!)
-lk6- http://www.StupeedStudios.f2s.com Home of the burning lego man!
ICQ: 115852509
MSN: dbzno1fan
hotmail.com
AIM: legokiller666
attached mail follows:
What does this mean?
make[1]: Entering directory `/home/php-4.0.6' /home/php-4.0.6/build/shtool mkdir -p "/usr/lib/apache" && /usr/sbin/apxs -S LIBEXECDIR="/usr/lib/apache" -i -a -n php4 libs/libphp4.so apxs:Warning: /usr/bin/httpd not found or not executable apxs:Warning: Continuing anyway... apxs:Warning: No shared object support for Apache apxs:Warning: available under your platform. Make sure apxs:Warning: the Apache module mod_so is compiled into apxs:Warning: your server binary `/usr/bin/httpd'. apsx:Warning: Continuing anyway... apxs:Error: Unknown option: S Usage: apxs -g -n <modname> apxs -q <query> ... apxs -c [-o <dsofile>] [-D <name>[=<value>]] [-I <incdir>] [-L <libdir>] [-l <libname>] [-Wc,<flags>] [-Wl,<flags>] <files> ... apxs -i [-a] [-A] [-n <modname>] <dsofile> ... make[1]: *** [install-sapi] Error 1 make[1]: Leaving directory `/home/php-4.0.6' make: *** [install-recursive] Error 1
attached mail follows:
Why is it that every example uses foo and bar. In my head I put these together to get FUBAR, the meaning of which I won't spell out for Kyle's benefit.
Is this what foo and bar refer to? And WHY are they used so extensively?
- seb
--- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.274 / Virus Database: 144 - Release Date: 23/08/2001
attached mail follows:
Foo, and Bar, dont mean anything.
They are simply example $vars for php...
I was confused on this for a while, too...
-Andy
Seb Frost <seb
raceshoot.com> wrote in message
news:BAELJLBLJPDMDLJLPGGMCEBICHAA.seb
raceshoot.com...
> Why is it that every example uses foo and bar. In my head I put these
> together to get FUBAR, the meaning of which I won't spell out for Kyle's
> benefit.
>
> Is this what foo and bar refer to? And WHY are they used so extensively?
>
> - seb
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.274 / Virus Database: 144 - Release Date: 23/08/2001
>
attached mail follows:
see :
http://foldoc.doc.ic.ac.uk/foldoc/foldoc.cgi?query=foo http://foldoc.doc.ic.ac.uk/foldoc/foldoc.cgi?query=bar
pretty interesting :)
regards, Philip Olson
On Wed, 29 Aug 2001, Seb Frost wrote:
> Why is it that every example uses foo and bar. In my head I put these
> together to get FUBAR, the meaning of which I won't spell out for Kyle's
> benefit.
>
> Is this what foo and bar refer to? And WHY are they used so extensively?
>
> - seb
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.274 / Virus Database: 144 - Release Date: 23/08/2001
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
attached mail follows:
echo "<input type='hidden' name='currentPosition' value='$currentPosition+1'>";
can anyone tell me how to get this to stop printing:
<input type='hidden' name='currentPosition' value='0+1'>
attached mail follows:
echo '<input type="hidden" name="currentPosition" value="' . $currentPosition+1 .'">';
use the . to concatentate strings with exressions
jack
Kevin P wrote:
> echo "<input type='hidden' name='currentPosition'
> value='$currentPosition+1'>";
>
> can anyone tell me how to get this to stop printing:
>
> <input type='hidden' name='currentPosition' value='0+1'>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
Kevin P <kevin.pottie
odellwebdesign.com> wrote:
> echo "<input type='hidden' name='currentPosition'
> value='$currentPosition+1'>";
>
> can anyone tell me how to get this to stop printing:
>
> <input type='hidden' name='currentPosition' value='0+1'>
echo "<input type='hidden' name='currentPosition' value='", $currentPosition+1, "'>";
attached mail follows:
> echo "<input type='hidden' name='currentPosition' > value='$currentPosition+1'>"; > > can anyone tell me how to get this to stop printing: > > <input type='hidden' name='currentPosition' value='0+1'> >
echo "<input type='hidden' name='currentPosition' value='".$currentPosition+1."'>";
hth michael
-- GMX - Die Kommunikationsplattform im Internet. http://www.gmx.net
attached mail follows:
Hi !
I have a Problem with a Countdown.I want that somebody can register through my PHP Script. After the Registration the Script should email this person after exact 30 days on his emailadress without visiting the Homepage again.So how should i do this ? Thank you for your Support !!!
chris
attached mail follows:
On Wednesday 29 August 2001 19:38, you wrote: > Hi ! > > I have a Problem with a Countdown.I want that somebody can register through > my PHP Script. After the Registration the Script should email this person > after exact 30 days on his emailadress without visiting the Homepage > again.So how should i do this ? Thank you for your Support !!!
Hey there Chris,
One way to do it is to store a timestamp in your database whenever a user logs on. Then every night or so, you run a cron-job (assuming you are on a UN*X sysem. Windows will probably have something similar that I'm not familiar with) that checks the timestamps and sends mails to every user that hasn't logged in for 30 days.
If you have PHP compiled to an executable (i.e. you can run scripts on the command line), then your cron-job can just use a PHP script, otherwise I would recommend Perl.
ad.
attached mail follows:
Julian,
I am not aware of any databases smart enough to decide to create references for rows whose data is identical to an existing row. If the duplicate data is creating resource issues, there's a couple things that you can do to eliminate the duplicate data. Probably the easiest would be, in the case of varchar data, to add a column for a row number. If the data to be inserted is identical to data in a row that's already in the database, an encoded reference to the row number of the row with the original data could be stored. That way, you're just storing the reference to the original data.
Example:
RowNum ProdNum Revision Description_varchar 455333 10 1 XXXYYYXXXYYYXXXYYYXXXYYYZZZYYYYXXXX 873245 10 2 <<-455333->> 934532 10 3 <<-455333->>
If you don't want to do the encoding thing, you could create a "link" table to accomplish the same thing.
HTH, James Potts
"Julian Wood" <woodj
ucalgary.ca> wrote in message
news:200108282123.ZZ047421
mserve2.acs.ucalgary.ca...
>
> Hi,
>
> Don't know if this is the best place to ask, but I thought I would give
> it a try.
>
> I was just wondering if anyone knows of any databases which deal with
> data duplication (at a low level). Say I have two (or ten) identical
> records, does anyone know of any databases which would only keep one
> copy of the data and use references for the other records? Does this
> work if 7 out of the 8 columns (for instance) are identical (ie the
> primary key is different but everything else is identical). Do such db's
> exist? Or do they all do this? Or am I just dreaming?
>
> J
> --
> Julian Wood
>
> Programmer/Analyst
> University of Calgary
attached mail follows:
Hopefully someone here can help...
I'm writing my own extension and using the Zend API docs at Zend.com. They are very vague on using resources. I can create them just fine, but the docs leave out exactly how access the resource data later. I've been looking at ext/curl/curl.c and ext/crack/crack.c for guidance but I can't get ZEND_FETCH_RESOURCE to work.
ricky.c:75: incompatible type for argument 1 of `zend_fetch_resource'
Anyone successful with ZEND_FETCH_RESOURCE guide me?
attached mail follows:
Hi folks
I asked my ISP to flesh out their negative comments about adding libraries to PHP.
This is their reply - is there anything in this, or are they misunderstanding the situation?
>>>>>>>>> We run servers. We want to compile stuff from source, for obvious reasons! As such, the question is simple and obvious: why does so much in PHP rely on the core's compile-time. Why can't there be run-time or DSO inclusion later on, as with Perl. Basically, PHP has really screwed up in this monolythic design which was all very well when it was a simple templating system, but now it's grown to a full-grown language, the scalability, flexibility and namespace issues are becoming untennable. I note that something called "Pear" appears in later compilations of the PHP core. I assume this is some attempt at including Perl's library system and, eventually, a CPAN-a-like? >>>>>>>>>>>
I'm not so sure why they prefer to compile from source - why wouldn't they trust a professional distro?
Geoff Caplan
attached mail follows:
Considering that they haven't figured out how to use the spell checker, does it surprise you that they haven't figured out how to do an dynamic load (apxs) of PHP? Or save their last good configuration (config.status).
mark C.
-- The phrase "computer literate user" really means the person has been hurt so many times that the scar tissue is thick enough so he no longer feels the pain. -- Alan Cooper, "The Inmates are Running the Asylum " ----- Original Message ----- From: "Geoff Caplan" <geoffproductivity.co.uk> To: "PHP General" <php-general
lists.php.net>; "Rasmus Lerdorf" <rasmus
php.net> Sent: Wednesday, August 29, 2001 2:58 PM Subject: [PHP] Re: The future of PHP -- accessory libraries
> Hi folks > > I asked my ISP to flesh out their negative comments about adding libraries > to PHP. > > This is their reply - is there anything in this, or are they > misunderstanding the situation? > > >>>>>>>>> > We run servers. We want to compile stuff from source, for obvious reasons! > As such, the question is simple and obvious: why does so much in PHP rely > on the core's compile-time. Why can't there be run-time or DSO inclusion > later on, as with Perl. Basically, PHP has really screwed up in this > monolythic design which was all very well when it was a simple templating > system, but now it's grown to a full-grown language, the scalability, > flexibility and namespace issues are becoming untennable. I note that > something called "Pear" appears in later compilations of the PHP core. I > assume this is some attempt at including Perl's library system and, > eventually, a CPAN-a-like? > >>>>>>>>>>> > > I'm not so sure why they prefer to compile from source - why wouldn't they > trust a professional distro? > > Geoff Caplan > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net > For additional commands, e-mail: php-general-help
lists.php.net > To contact the list administrators, e-mail: php-list-admin
lists.php.net > > >
attached mail follows:
> Hi folks > > I asked my ISP to flesh out their negative comments about adding libraries > to PHP. > > This is their reply - is there anything in this, or are they > misunderstanding the situation? > > >>>>>>>>> > We run servers. We want to compile stuff from source, for obvious reasons! > As such, the question is simple and obvious: why does so much in PHP rely > on the core's compile-time. Why can't there be run-time or DSO inclusion > later on, as with Perl. Basically, PHP has really screwed up in this > monolythic design which was all very well when it was a simple templating > system, but now it's grown to a full-grown language, the scalability, > flexibility and namespace issues are becoming untennable. I note that > something called "Pear" appears in later compilations of the PHP core. I > assume this is some attempt at including Perl's library system and, > eventually, a CPAN-a-like? > >>>>>>>>>>> > > I'm not so sure why they prefer to compile from source - why wouldn't they > trust a professional distro?
Well, I tend to prefer compile from source as well. I guess they simply don't realize that you can compile most of the extensions as shared libraries and configure what should be loaded at runtime in the php.ini file.
So it looks like this is mostly a documentation issue. We have not done a good job educating the ISPs out there. But they should have been able to figure this out by looking at how PHP is packaged by the various distribution vendours.
-Rasmus
attached mail follows:
> So it looks like this is mostly a documentation issue. We have not done a > good job educating the ISPs out there. But they should have been able to > figure this out by looking at how PHP is packaged by the various > distribution vendours.
Perhaps a section in the manual dedicated to ISP related information?
-- Richard Heyes
attached mail follows:
I'm trying to locate instructions for building on/for win32 platform. Can someone supply a pointer?
thanks tom
attached mail follows:
HI.
Anyone use php with Interbase here?
Tks. Edney Marcel Imme ICQ: 109374340
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]