|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Subject: php3 Digest 16 May 2000 03:54:38 -0000 Issue 1673
From: php3-digest-help
lists.php.netDate: Mon May 15 2000 - 22:54:38 CDT
- Next message: php3-digest-help
lists.php.net: "php3 Digest 16 May 2000 15:54:38 -0000 Issue 1674"
- Previous message: php3-digest-help
lists.php.net: "php3 Digest 15 May 2000 15:54:41 -0000 Issue 1672"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
php3 Digest 16 May 2000 03:54:38 -0000 Issue 1673
Topics (messages 90450 through 90549):
what's wrong with my class
90450 by: "Vigue, Duane" <DVIGUE
scvl.com>
90527 by: richard
zend.com (Richard Lynch)
apxs error
90451 by: "Bjorn Sodergren" <sweede
gallatinriver.net>
90452 by: "Bjorn Sodergren" <sweede
gallatinriver.net>
90457 by: Sascha Schumann <sascha
schumann.cx>
90460 by: Michael Dearman <mdearman
inficad.com>
90464 by: badger <badger
pongo.org>
90467 by: "Rian" <ste94018
stttelkom.ac.id>
Regular ****ing expressions
90453 by: Mark Selby <selby_mark
yahoo.com>
90469 by: Michael Dearman <mdearman
inficad.com>
Unicode !!!
90454 by: Rob Hardowa <Rob
LionOfZion.com>
(linux-br) Instalando o webmail IMP - SOCORRRO
90455 by: Marcos Oinegue Fulfaro <eugenio
alix.uvanet.br>
90458 by: Marcos Oinegue Fulfaro <eugenio
alix.uvanet.br>
Mysql & PHP connection/Performance
90456 by: Thomas Deliduka <thomas
neweve.com>
90462 by: Tonu Samuel <tonu
mysql.com>
debug php project on win32
90459 by: "aek jinek" <aek
jintek.com>
Natural Language Parsing using php
90461 by: "Roshan Sharma" <roshansharma
hotmail.com>
90470 by: Michael Dearman <mdearman
inficad.com>
90472 by: "Brian T. Allen" <brian
purenetfx.com>
OO funnies?
90463 by: Holger Bahr <hb
tsi-gmbh.de>
perl files
90465 by: Jędrzej Kolesiņski <jedrek
plj.pl>
90543 by: richard
zend.com (Richard Lynch)
Application Server's evaluation
90466 by: "Jorge Ruben Macias" <jmacias
protel.net.mx>
Setting up data
90468 by: "usha" <usha
mahesh.net>
90544 by: richard
zend.com (Richard Lynch)
include statement doesn't work
90471 by: Emir Musabasic <emusabasic
yahoo.com>
90546 by: richard
zend.com (Richard Lynch)
Macmillian "Oracle8i for Linux" pack?
90473 by: Damien Mc Kenna <damien
mc-kenna.com>
90479 by: "Jim St.Cyr" <jstcyr
mediaone.net>
90548 by: richard
zend.com (Richard Lynch)
Display when database was last updated
90474 by: Tyler Longren <tyler.longren
midiowa.net>
90540 by: php3
developersdesk.com
90547 by: richard
zend.com (Richard Lynch)
bulk mail with php
90475 by: Michael Waples <mwaples
optusnet.com.au>
90549 by: richard
zend.com (Richard Lynch)
Help craft PHP description
90476 by: Greg Billock <billgr
optics.caltech.edu>
90512 by: Nathan Wallace <nathan
synop.com>
HAWHAW & WAP
90477 by: Antonio Carlos Venancio Junior <antonio
inf.ufsc.br>
90478 by: Antonio Carlos Venancio Junior <floripa
poa.zumnet.com.br>
90480 by: "Matt \"TrollBoy\" Wiseman" <trollboy
defnet.com>
Sessions and cookies help
90481 by: Nikki Chang <vb_gal21
yahoo.com>
Maximum Execution Time...
90482 by: richard
zend.com (Richard Lynch)
Newbie -- need help
90483 by: richard
zend.com (Richard Lynch)
I can't write my file... why ?...
90484 by: "Marian Vasile" <marian_2001
yahoo.com>
90486 by: Rasmus Lerdorf <rasmus
php.net>
Maintaining the scope of a variable
90485 by: richard
zend.com (Richard Lynch)
Upload Files
90487 by: richard
zend.com (Richard Lynch)
csv file download problems...
90488 by: richard
zend.com (Richard Lynch)
Sorting 3 Dimensional Array
90489 by: richard
zend.com (Richard Lynch)
I can't write into my own file...
90490 by: "Marian Vasile" <marian_2001
yahoo.com>
90491 by: "Marian Vasile" <marian_2001
yahoo.com>
select and ENUMs
90492 by: curt <curtpdx
inetarena.com>
90503 by: richard
zend.com (Richard Lynch)
adding mysql to already compiled php
90493 by: richard
zend.com (Richard Lynch)
SQL: count / limited group?
90494 by: Dieter Kneffel <data
wap4.com>
90495 by: Andrian Pervazov <andrian
truefire.com>
90504 by: Doug Semig <dougslist
c3net.net>
configure options
90496 by: richard
zend.com (Richard Lynch)
Good example of writting in a remote file
90497 by: "Marian Vasile" <marian_2001
yahoo.com>
90499 by: Tyler Longren <tyler.longren
midiowa.net>
newsgroup version of this
90498 by: richard
zend.com (Richard Lynch)
APACHE ON WINDOWS
90500 by: richard
zend.com (Richard Lynch)
90513 by: TomHenry <tomhenry
direct-connection.com>
Benchmarks
90501 by: richard
zend.com (Richard Lynch)
Impossbile for me to open a file ???
90502 by: "Marian Vasile" <marian_2001
yahoo.com>
Installing PHP
90505 by: richard
zend.com (Richard Lynch)
No one want's to really help me !!! and is so easy...
90506 by: "Marian Vasile" <marian_2001
yahoo.com>
90534 by: rasmus
php.net
copying triangles in PHP :-)
90507 by: richard
zend.com (Richard Lynch)
90515 by: TomHenry <tomhenry
direct-connection.com>
[PHP4BETA] eval - isnīt as slow as rumors about it
90508 by: richard
zend.com (Richard Lynch)
Making my WebPages search engine friendly
90509 by: "Richard Kurth" <rkurth
pacifier.com>
90518 by: TomHenry <tomhenry
direct-connection.com>
URL encoding
90510 by: richard
zend.com (Richard Lynch)
Email from php 3.0.16 Win98
90511 by: richard
zend.com (Richard Lynch)
Add A Comment PHP Script
90514 by: richard
zend.com (Richard Lynch)
AGIs with Truetype.
90516 by: "Bomelin, Joakim" <joakim.bomelin
framfab.se>
Registration database !
90517 by: richard
zend.com (Richard Lynch)
Damn it !!!!
90519 by: "Marian Vasile" <marian_2001
yahoo.com>
90520 by: Tyler Longren <tyler.longren
midiowa.net>
90522 by: Matt Allen <Matt
LinuxWorx.com.au>
90532 by: TomHenry <tomhenry
direct-connection.com>
90533 by: idban secandri <idban
satunet.com>
COUNT(*)
90521 by: richard
zend.com (Richard Lynch)
Uploading Files
90523 by: richard
zend.com (Richard Lynch)
Cookie Confusion ..
90524 by: Christian <c_hope
smartchat.net.au>
90538 by: Allen Francom <aef
prismnet.com>
MySQL not compiled into the binary
90525 by: richard
zend.com (Richard Lynch)
Ye Ol' Undefined variable
90526 by: richard
zend.com (Richard Lynch)
mysql-SUM
90528 by: richard
zend.com (Richard Lynch)
Form with parameters saved in a text file
90529 by: "Marian Vasile" <marian_2001
yahoo.com>
to nathan
90530 by: richard
zend.com (Richard Lynch)
90535 by: idban secandri <idban
satunet.com>
Question about the header
90531 by: richard
zend.com (Richard Lynch)
remote DB(sybase) connection question
90536 by: richard
zend.com (Richard Lynch)
SSI and PHP
90537 by: richard
zend.com (Richard Lynch)
Accessing global variables from within a class
90539 by: richard
zend.com (Richard Lynch)
[FAQTS] PHP Knowledge Base Update -- May 15th, 2000
90541 by: Nathan Wallace <nathan
synop.com>
.htaccess
90542 by: "Marian Vasile" <marian_2001
yahoo.com>
Guys please help me !
90545 by: "Marian Vasile" <marian_2001
yahoo.com>
Administrivia:
To subscribe to the digest, e-mail:
php3-digest-subscribe
lists.php.net
To unsubscribe from the digest, e-mail:
php3-digest-unsubscribe
lists.php.net
To post to the list, e-mail:
php3
lists.php.net
----------------------------------------------------------------------
attached mail follows:
Looks like you are trying to use the class's properties in the constructor's
parameter list. I am not sure this will work.
Try: function ShoppingCart($conn,$sesionid)
Duane Vigue
IS/Store Development Programmer
Shoe Carnival, Inc.
-----Original Message-----
From: Minh Nguyen Van [mailto:minhnv
extramedia.com]
Sent: Tuesday, May 16, 2000 2:20 AM
To: php3
lists.php.net
Subject: [PHP3] what's wrong with my class
I have ShoppingCart like this :
---------------------------------------------------
<?php
class ShoppingCart {
var $conn;
var $sesionid;
function ShoppingCart($this->conn,$this->sesionid){ //this <file://this>
is the line number 7
$conn=$conn">//$this- <file://$this-> >$conn=$conn;
$sesionid=$sesionid">//$this- <file://$this-> >$sesionid=$sesionid;
return;
}
//// some other function
}
---------------------------------------------------
And the test ShoppingCart class
require 'include/functions.php';
require ("include/ShoppingCartClass.php");
$conn = connectdb(); file://a <file://a> function that return the connect
id of database
$myshoppingcart = new ShoppingCart($conn, $PHPSESSID);
----------------------------------------------------
The error return is :
Parse error: parse error, expecting `')'' in include/ShoppingCartClass.php
on line 7
Any one experience on this ? please help me
M
\|/
(šŋš)
attached mail follows:
In article <028101bfbf07$259a2ac0$140910ac
extramedia.com>,
minhnv
extramedia.com ("Minh Nguyen Van") wrote:
> ------=_NextPart_000_027E_01BFBF41.D1E3A600
> Content-Type: text/plain;
> charset="iso-8859-1"
> Content-Transfer-Encoding: quoted-printable
>
> I have ShoppingCart like this :
> ---------------------------------------------------
> <?php
>
> class ShoppingCart {
> var $conn;
> var $sesionid;
>
> function ShoppingCart($this->conn,$this->sesionid){ //this is the line > number 7
The parameters to a function should just be variables:
function ShoppingCart($conn, $sessionid){
-- Richard Lynch | If this was worth $$$ to you, buy a CD US Customer Support Director | from one of the artists listed here: Zend Technologies USA | http://www.L-I-E.com/artists.htm http://www.zend.com | (this has nothing to do with Zend, duh!)
attached mail follows:
compiled apache with ./configure --activate-module=src/modules/auth_mysql/libauth_msyql.a \ --prefix=/usr/local/ozzy/apache
php configured with ./configure --with-mysql=/usr/mysql \ --with-apxs=/usr/local/ozzy/apache/bin/apxs
but i get the error that my apxs is broken. looking at the output of the ./configure, it says ./configure: /usr/local/ozzy/apache/bin/apxs: No such file or directory 3 times
at the end it tells me to check www.php.net/FAQ.php3#4.11 but thats not there anymore..
heres the config section of the apxs file. --------------------------------------------- my $CFG_TARGET = q(httpd); my $CFG_CC = q(gcc); my $CFG_CFLAGS = q( -I/usr/mysql/include -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat- lite -DNO_DL_NEEDED `../apaci`); my $CFG_CFLAGS_SHLIB = q(); my $CFG_LD_SHLIB = q(); my $CFG_LDFLAGS_SHLIB = q(); my $CFG_LIBS_SHLIB = q(); my $CFG_PREFIX = q(/usr/local/ozzy/apache); my $CFG_SBINDIR = q(/usr/local/ozzy/apache/bin); my $CFG_INCLUDEDIR = q(/usr/local/ozzy/apache/include); my $CFG_LIBEXECDIR = q(/usr/local/ozzy/apache/libexec); my $CFG_SYSCONFDIR = q(/usr/local/ozzy/apache/conf); -----------------------------------------------------------------------
the only thing that i can think of is /usr/local is a symbolic link to /usr
any ideas ?? thanks
attached mail follows:
Sorry, forgot to add, Im using php 4.0rc2 and apache 1.3.12
-----Original Message-----
From: Bjorn Sodergren [mailto:sweede
gallatinriver.net]
Sent: Monday, May 15, 2000 12:06 PM
To: php list
Subject: [PHP3] apxs error
compiled apache with ./configure --activate-module=src/modules/auth_mysql/libauth_msyql.a \ --prefix=/usr/local/ozzy/apache
php configured with ./configure --with-mysql=/usr/mysql \ --with-apxs=/usr/local/ozzy/apache/bin/apxs
but i get the error that my apxs is broken. looking at the output of the ./configure, it says ./configure: /usr/local/ozzy/apache/bin/apxs: No such file or directory 3 times
at the end it tells me to check www.php.net/FAQ.php3#4.11 but thats not there anymore..
heres the config section of the apxs file. --------------------------------------------- my $CFG_TARGET = q(httpd); my $CFG_CC = q(gcc); my $CFG_CFLAGS = q( -I/usr/mysql/include -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat- lite -DNO_DL_NEEDED `../apaci`); my $CFG_CFLAGS_SHLIB = q(); my $CFG_LD_SHLIB = q(); my $CFG_LDFLAGS_SHLIB = q(); my $CFG_LIBS_SHLIB = q(); my $CFG_PREFIX = q(/usr/local/ozzy/apache); my $CFG_SBINDIR = q(/usr/local/ozzy/apache/bin); my $CFG_INCLUDEDIR = q(/usr/local/ozzy/apache/include); my $CFG_LIBEXECDIR = q(/usr/local/ozzy/apache/libexec); my $CFG_SYSCONFDIR = q(/usr/local/ozzy/apache/conf); -----------------------------------------------------------------------
the only thing that i can think of is /usr/local is a symbolic link to /usr
any ideas ?? thanks
-- PHP 3 Mailing List <http://www.php.net/> To unsubscribe, send an empty message to php3-unsubscribelists.php.net To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
On Mon, 15 May 2000, Bjorn Sodergren wrote:
> compiled apache with > ./configure --activate-module=src/modules/auth_mysql/libauth_msyql.a \ > --prefix=/usr/local/ozzy/apache > > php configured with > ./configure --with-mysql=/usr/mysql \ > --with-apxs=/usr/local/ozzy/apache/bin/apxs > > but i get the error that my apxs is broken. > looking at the output of the ./configure, it says > ./configure: /usr/local/ozzy/apache/bin/apxs: No such file or directory > 3 times >
You probably don't have Perl installed. APXS needs Perl.
- Sascha
attached mail follows:
Bjorn Sodergren wrote: > > compiled apache with > ./configure --activate-module=src/modules/auth_mysql/libauth_msyql.a \ > --prefix=/usr/local/ozzy/apache > > php configured with > ./configure --with-mysql=/usr/mysql \ > --with-apxs=/usr/local/ozzy/apache/bin/apxs > > but i get the error that my apxs is broken. > looking at the output of the ./configure, it says > ./configure: /usr/local/ozzy/apache/bin/apxs: No such file or directory > 3 times > > at the end it tells me to check www.php.net/FAQ.php3#4.11 > but thats not there anymore..
Yikes! That needs to be there, or somewhere. I never got a copy.
Below are the changes that file originally suggested might need changing. But I've seen other folks use slight variations. Don't know if this the answer though.
M. Dearman
> > heres the config section of the apxs file. > --------------------------------------------- > my $CFG_TARGET = q(httpd); > my $CFG_CC = q(gcc); > my $CFG_CFLAGS = > q( -I/usr/mysql/include -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat- > lite -DNO_DL_NEEDED `../apaci`);
> my $CFG_CFLAGS_SHLIB = q(); = q(-fpic -DSHARED-MODULE);
> my $CFG_LD_SHLIB = q(); = q(gcc);
> my $CFG_LDFLAGS_SHLIB = q(); = q(-shared);
> my $CFG_LIBS_SHLIB = q(); # Apparently can leave as is
> my $CFG_PREFIX = q(/usr/local/ozzy/apache);
> my $CFG_SBINDIR = q(/usr/local/ozzy/apache/bin);
> my $CFG_INCLUDEDIR = q(/usr/local/ozzy/apache/include);
> my $CFG_LIBEXECDIR = q(/usr/local/ozzy/apache/libexec);
> my $CFG_SYSCONFDIR = q(/usr/local/ozzy/apache/conf);
> -----------------------------------------------------------------------
>
> the only thing that i can think of is /usr/local is a symbolic link to /usr
>
> any ideas ??
> thanks
>
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
> To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
> To search the mailing list archive, go to: http://www.php.net/mailsearch.php3
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
Hello Bjorn,
Monday, May 15, 2000, 10:09:05 AM, you wrote:
BS> Sorry, forgot to add, BS> Im using php 4.0rc2 and apache 1.3.12
BS> -----Original Message-----
BS> From: Bjorn Sodergren [mailto:sweede
gallatinriver.net]
BS> Sent: Monday, May 15, 2000 12:06 PM
BS> To: php list
BS> Subject: [PHP3] apxs error
BS> compiled apache with BS> ./configure --activate-module=src/modules/auth_mysql/libauth_msyql.a \ BS> --prefix=/usr/local/ozzy/apache
BS> php configured with BS> ./configure --with-mysql=/usr/mysql \ BS> --with-apxs=/usr/local/ozzy/apache/bin/apxs
BS> but i get the error that my apxs is broken. BS> looking at the output of the ./configure, it says BS> ./configure: /usr/local/ozzy/apache/bin/apxs: No such file or directory BS> 3 times
BS> at the end it tells me to check www.php.net/FAQ.php3#4.11 BS> but thats not there anymore..
BS> heres the config section of the apxs file. BS> --------------------------------------------- BS> my $CFG_TARGET = q(httpd); BS> my $CFG_CC = q(gcc); BS> my $CFG_CFLAGS = BS> q( -I/usr/mysql/include -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat- BS> lite -DNO_DL_NEEDED `../apaci`); BS> my $CFG_CFLAGS_SHLIB = q(); BS> my $CFG_LD_SHLIB = q(); BS> my $CFG_LDFLAGS_SHLIB = q(); BS> my $CFG_LIBS_SHLIB = q(); BS> my $CFG_PREFIX = q(/usr/local/ozzy/apache); BS> my $CFG_SBINDIR = q(/usr/local/ozzy/apache/bin); BS> my $CFG_INCLUDEDIR = q(/usr/local/ozzy/apache/include); BS> my $CFG_LIBEXECDIR = q(/usr/local/ozzy/apache/libexec); BS> my $CFG_SYSCONFDIR = q(/usr/local/ozzy/apache/conf); BS> -----------------------------------------------------------------------
BS> the only thing that i can think of is /usr/local is a symbolic link to /usr
BS> any ideas ?? BS> thanks
BS> --
BS> PHP 3 Mailing List <http://www.php.net/>
BS> To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
BS> To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
BS> To search the mailing list archive, go to:
BS> http://www.php.net/mailsearch.php3
BS> To contact the list administrators, e-mail: php-list-admin
lists.php.net
Test post....sorry, appears that my posts are not making it to the list.
-- Best regards, badger mailto:badgerpongo.org
attached mail follows:
you know what .. i have just installed it ...
try to find apxs file using : find / -name apx* it will tell you where the apxs file is ..
in mine it is in /usr/sbin/apxs
so i used : ./configure --with-apxs=/usr/sbin/apxs
see ... dont trust 100 % on manual .. :)))))
eris
-----Original Message-----
From: Bjorn Sodergren <sweede
gallatinriver.net>
To: php list <php3
lists.php.net>
Date: Tuesday, May 16, 2000 12:04 AM
Subject: [PHP3] apxs error
>compiled apache with
>./configure --activate-module=src/modules/auth_mysql/libauth_msyql.a \
>--prefix=/usr/local/ozzy/apache
>
>php configured with
>./configure --with-mysql=/usr/mysql \
>--with-apxs=/usr/local/ozzy/apache/bin/apxs
>
>but i get the error that my apxs is broken.
>looking at the output of the ./configure, it says
>./configure: /usr/local/ozzy/apache/bin/apxs: No such file or directory
>3 times
>
>at the end it tells me to check www.php.net/FAQ.php3#4.11
>but thats not there anymore..
>
>heres the config section of the apxs file.
>---------------------------------------------
>my $CFG_TARGET = q(httpd);
>my $CFG_CC = q(gcc);
>my $CFG_CFLAGS =
>q( -I/usr/mysql/include -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat
-
>lite -DNO_DL_NEEDED `../apaci`);
>my $CFG_CFLAGS_SHLIB = q();
>my $CFG_LD_SHLIB = q();
>my $CFG_LDFLAGS_SHLIB = q();
>my $CFG_LIBS_SHLIB = q();
>my $CFG_PREFIX = q(/usr/local/ozzy/apache);
>my $CFG_SBINDIR = q(/usr/local/ozzy/apache/bin);
>my $CFG_INCLUDEDIR = q(/usr/local/ozzy/apache/include);
>my $CFG_LIBEXECDIR = q(/usr/local/ozzy/apache/libexec);
>my $CFG_SYSCONFDIR = q(/usr/local/ozzy/apache/conf);
>-----------------------------------------------------------------------
>
>the only thing that i can think of is /usr/local is a symbolic link to /usr
>
>any ideas ??
>thanks
>
>
>--
>PHP 3 Mailing List <http://www.php.net/>
>To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
>To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
>To search the mailing list archive, go to:
http://www.php.net/mailsearch.php3
>To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
attached mail follows:
Hi PHP'ers,
I had a reply earlier but guess it was a php4 function. In $str, I want to replace any occurances of '<:$varname:>' with ' $varname ', so I can then 'print("$str");' and see the actual variable values. I need to be sure it started with '<:$' and ended with ':>'
Thanks in advance. Mark.
<HTML><H1>Test of Regular Expressions</H1> <? $str = "Hello this <:$somevar:> is a test of <:$someothervar> regular expressions";
// $result = split("<:$[a-zA-Z0-9\_]{1,}:>"," ",$str); $result = split("[<:|:>]",$str);
for($index = 0; $index < count($result); $index++) { print("$index. $result[$index],<BR>\n"); } ?> </HTML>
__________________________________________________ Do You Yahoo!? Send instant messages & get email alerts with Yahoo! Messenger. http://im.yahoo.com/
attached mail follows:
Mark Selby wrote: > > Hi PHP'ers, > > I had a reply earlier but guess it was a php4 > function. > In $str, I want to replace any occurances of > '<:$varname:>' with ' $varname ', so I can then > 'print("$str");' and see the actual variable values. > I need to be sure it started with '<:$' and ended with > ':>' > > Thanks in advance. > Mark. > > <HTML><H1>Test of Regular Expressions</H1> > <? > $str = "Hello this <:$somevar:> is a test of > <:$someothervar> regular expressions";
Check out the ereg_replace in the manual.
Here's what it looks like using a preg. But, you'll have to change those double quotes in the $str assignment to single quotes. Well, only way I could get it to work. Anyone? It's that '$' for the var that causes probs.
$pat = '/<:\$(\w+):>/'; $replace = '\\1';
$new_str = preg_replace($pat, $replace, $str);
$print $new_str; ?> </HTML>
It should work on your example string. No guarantee on other input.
M. Dearman
attached mail follows:
Hiya,
I haven't looked into this too much yet, but here's a good site about it:
I'm doing a multi-lingual site at the moment that doesn't require any special character set so I just send these out in the <HEAD>:
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1"> <META HTTP-EQUIV="Content-Language" CONTENT="{LANGUAGE}">
According to the site I just gave you they recommend sending out the CONTENT="text/html; charset={yourcharset_UTF-8_orwhatever}" part of it in the header.
Rob
On Mon, 15 May 2000, you wrote:
> Hi folks,
>
> Does PHP support unicode? I have to make a multi-lingual module. Has
> anyone worked on this before or has some ideas on how it can be
> achieved?
>
> --
> Srimanth R C
> Mahindra British Telecom
> Mumbai
>
> Phone : 91-22-8529000
> Fax : 91-22-8528959
> EMail : srimanth
MahindraBT.com
>
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
> To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
> To search the mailing list archive, go to: http://www.php.net/mailsearch.php3
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
-- Airplanes are interesting toys but of no military value. -- Marechal Ferdinand Foch, Professor of Strategy, Ecole Superieure de Guerre-------------------------------------------------------- This mail proudly composed and transmitted without the interference of any Micro$oft products or protocols. --------------------------------------------------------
attached mail follows:
Hello Jackson,
Configuraįão do Webmail (IMP)
Para conseguir configuarar o webmail sigua os seguintes passos
1) Va para o diretorio /etc/httpd/conf 2) Edite o arquivo httpd.conf e descomente # LoadModule php3_module module/mod_php3.so # AddModule mod_php3.c # AddType Application/x-httpd-php3 .php3 # AddType Application/x-httpd-source .phps 3) criar um link com o nome mod_php3.so de: /etc/httpd/modules para: /usr/lib/apache/libphp3.so
4) restart o apache 5) Execute o arquivo install.sh no diretorio (/usr/share/horde) 6) Utilizando o browser execute o arquivo setup.php3 na url .../horde/imp/ 7) Execute o arquivo secure.sh tenha certeza que toda configuraįão esta ok pois depois desse comando nao sera possivel fazer alteracoes 8) No arquivo default.php3 mude a lingua default para o portugues
-- Best regards, Marcos mailto:eugenioalix.uvanet.br
attached mail follows:
Hello Jackson,
Thursday, May 11, 2000, 5:22:39 PM, you wrote:
JRS> Alo amigos,
JRS> estou precisando mais uma vez da ajuda de vcs! JRS> Desenvolvi o scritp para criacao de usuarios de correio eletronico, mas JRS> agora preciso instalar corretamente o webmail IMP, mas estaum ocorrendo JRS> problemas!!!
-> Como vem a ser este seu script , queria implementar algo semelhante
-- Best regards, Marcos mailto:eugenioalix.uvanet.br
attached mail follows:
My company is looking to setup this server/database intensive website which will consist of probably over 1,000 connections and operations (select and update/insert) each second.
We're talking to investors and they want to know how the heck are we planning on making sure the server doesn't crush under the pressure.
The only thing I could think to say is that a site that we're modeling ourselves after is using Perl which is slower than php and they have no problem, and they have probably 2,000 operations per second.
But they want hard information, does anyone on this list have any hard information?
--Thomas Deliduka IT Manager -------------------- New Eve Media 5629 Westlake Drive Galloway, OH 43119-8498 Phone: 614-870-3098 Fax: 614-870-7486 Mobile: 614-537-6445
attached mail follows:
Thomas Deliduka wrote: > My company is looking to setup this server/database intensive website which > will consist of probably over 1,000 connections and operations (select and > update/insert) each second. > > We're talking to investors and they want to know how the heck are we > planning on making sure the server doesn't crush under the pressure. > > The only thing I could think to say is that a site that we're modeling > ourselves after is using Perl which is slower than php and they have no > problem, and they have probably 2,000 operations per second. > > But they want hard information, does anyone on this list have any hard > information?
A lot depends on exact queries, hardware and optimizations made. Also if you need really strong background for investors and yourself, then it would be good ide to buy commercial supports for MySQL and PHP. 1000 simultaneous connections are little bit tricky sometimes. Under linux 2.2.x you should recompile kernel for everything bigger than 256 and recompile glibc for 1024+. 4090 is maximum at all now under linux.
-- +----------------------------------------------------------------+ | TcX ____ __ _____ _____ ___ | | /*/\*\/\*\ /*/ \*\ /*/ \*\ |*| Tõnu Samuel | | /*/ /*/ /*/ \*\_ |*| |*||*| tonumysql.com | | /*/ /*/ /*/\*\/*/ \*\|*| |*||*| Tallinn, Estonia | | /*/ /*/ /*/\*\_/*/ \*\_/*/ |*|____ | | ^^^^^^^^^^^^/*/^^^^^^^^^^^\*\^^^^^^^^^^^ | | /*/ \*\ Developers Team | +----------------------------------------------------------------+
attached mail follows:
hello , I have some question about php on win 32. I would like to develop php on win32. I can compile it follow your instructions (http://www.php.net/version4/win32build.php) .But I don't know how to debug it with visual C++ when it work (while it run php script on server ) .Please give me some advise. thank you in advace.
thank you aek
attached mail follows:
I need to parse free text (natural language) with certain patterns and key words and store in a database. Does anyone know of any front end to php3. Any experience with such parsing?
Thanks ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
attached mail follows:
Roshan Sharma wrote: > > I need to parse free text (natural language) with certain patterns and key > words and store in a database. Does anyone know of any front end to php3. > Any experience with such parsing? > > Thanks
Take a look at the perl regular expression support. The preg's. 'THE' ref on regular expressions (IMHO) is Jeff Friedl's "Matering Regular Expressions", O'Reilly. A most 'unnatural' language. But, that'd be one possibility.
M. Dearman
attached mail follows:
Could you give us some examples of what you are after?
And yes, regular expressions were written by aliens.
> Roshan Sharma wrote:
> >
> > I need to parse free text (natural language) with certain patterns and
key
> > words and store in a database. Does anyone know of any front end to
php3.
> > Any experience with such parsing?
> >
> > Thanks
>
> Take a look at the perl regular expression support. The preg's.
> 'THE' ref on regular expressions (IMHO) is Jeff Friedl's "Matering
> Regular Expressions", O'Reilly. A most 'unnatural' language. But,
> that'd be one possibility.
>
> M. Dearman
>
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
> To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
> To search the mailing list archive, go to:
http://www.php.net/mailsearch.php3
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
>>You see that I access the same instance and functions >>from different pointers to the same class, but I can't >>get the array ($var2) assigned to class member >>variable
Try it like this:
class someclass { // Class 'someclass'
var $var2; function someclass($x_var2) { // Constructor (Class Instance gets Array var2) $this->var2 = $x_var2; // Copy Array to new Variable unset($x_var2); // Remove "duplicate"
echo $this->var2[1]; // Try if you can access your Array }
} // End of Class 'someclass'
$my_array = array("Peter", "Maria", "Simone"); $OO = new someclass($my_array);
attached mail follows:
Does anybody know how to include like SSI a advert f.e (from webadverts)
Jedrek
attached mail follows:
In article <005801bfbea2$870fc400$961919d5
jedrek>, jedrek
plj.pl
(=?iso-8859-2?B?SupkcnplaiBLb2xlc2nxc2tp?=) wrote:
> Does anybody know how to include like SSI a advert f.e (from webadverts)
If you are running PHP as a Module, try:
virtual('/path/to/ssi/advert');
If not, some variant on exec() and/or system() should do it.
-- Richard Lynch | If this was worth $$$ to you, buy a CD US Customer Support Director | from one of the artists listed here: Zend Technologies USA | http://www.L-I-E.com/artists.htm http://www.zend.com | (this has nothing to do with Zend, duh!)
attached mail follows:
Hi guys
Donīt know if you've ever looked into www.techmetrix.com They have some very interesting benchmarks, product reviews, performance tests, etc for mostly every Application Server available, some weeks ago I got this when I asked what about php:
>Yes we will publish some results with PHP4. We've started to do some internal benchmark. >A large report presenting Open Source Software and how to use them for enterprise applications is scheduled for next month. >A section presenting PHP is included. >We also believe that PHP is a professionnal solution do consider seriously in many context (some features at TechMetrix.com works >thanks to PHP !!!) >Regards.
maybe if all of us in this list ask for it, they'll do it sooner and in depth.
Oh, I forgot to tell they sell their information (around $1K to $5K per report), but for those who need a professional analysis for their bosses and/or clients it may be worth it. They also have some nice things available for free, for example an analysis of performance for many different intranet technologies/architectures: HTTP VS corba VS client-server ...
See you
ISC Jorge Ruben Macias Lopez
jmacias
protel.net.mx
"Any sufficiently advanced technology is undistinguishable from magic." Arthur C. Clarke's Third Law
attached mail follows:
Hi PHP experts,
My client already had a web site ( a shopping site made in HTML & in Javascript) My task was to construct it using PHP, Mysql & apache. Now the clint has to pupulate the database . Can he populate using Access '97. If so what is the procedure he can follow? And how do I get the data back to Mysql.
After he has populated the database, How do I go about putting it on the web? Do I install in Mysql, apache & pphp in the server? What about the PHP.ini file. Please let me know, Thnks usha
attached mail follows:
In article <002701bfbea7$a9707a80$c2e6c5cb
default>, usha
mahesh.net
("usha") wrote:
> My client already had a web site ( a shopping site made in HTML & in > Javascript)
> My task was to construct it using PHP, Mysql & apache. Now the clint has > to pupulate the database . Can he populate using Access '97. If so what > is the procedure he can follow? And how do I get the data back to > Mysql.
He should be able to export from Access as "tab-delimited" and then you can use mysqlimport or that LOAD DATA infile thingie. > After he has populated the database, How do I go about putting it on the > web? Do I install in Mysql, apache & pphp in the server? What about the Just ftp the file up there (probably as ASCII so ftp will fix the linefeeds) and read the MySQL manual about importing tab-delimited data.
> PHP.ini file.
The php.ini file has no bearing here that I can see...
-- Richard Lynch | If this was worth $$$ to you, buy a CD US Customer Support Director | from one of the artists listed here: Zend Technologies USA | http://www.L-I-E.com/artists.htm http://www.zend.com | (this has nothing to do with Zend, duh!)
attached mail follows:
Hi you all,
I'm new to PHP and I have succesfully installed PHP-RC2, Win-Apache 1.3.12 and MySQL on WIn 98 SE. Everything works, it was fairly easy to install everything. Great instructions on php.net. The problem that I'm having is something that I've not seen any posts on, I don't seem to be able to get PHP to work if it's in a HTML file. For Example, this doesn't work, the only thing that I'm seeing is - PHP date script (in the body). Here is the file date.html:
<HTML> <HEAD> <TITLE>PHP date script</TITLE> </HEAD> <BODY> <CENTER>PHP date script</CENTER>
<? /* the above "<?" signals that the PHP script has begun */ $today = date("Y-m-d");
PRINT "<CENTER>Today is: $today.</CENTER>";
# the following "?>" closes the script ?>
</BODY> </HTML>
Can you please help me with this one, like I said all of this is new for me so I would really be gratefull to you all.
Emir Musabasic.
__________________________________________________ Do You Yahoo!? Send instant messages & get email alerts with Yahoo! Messenger. http://im.yahoo.com/
attached mail follows:
In article <20000515205350.2523.qmail
web612.mail.yahoo.com>,
emusabasic
yahoo.com (Emir Musabasic) wrote:
> I'm new to PHP and I have succesfully installed > PHP-RC2, Win-Apache 1.3.12 and MySQL on WIn 98 SE.
> seen any posts on, I don't seem to be able to get PHP > to work if it's in a HTML file. For Example, this
Edit httpd.conf and find the line about AddType and php. Add html to the end of that line.
Stop and start Apache.
-- Richard Lynch | If this was worth $$$ to you, buy a CD US Customer Support Director | from one of the artists listed here: Zend Technologies USA | http://www.L-I-E.com/artists.htm http://www.zend.com | (this has nothing to do with Zend, duh!)
attached mail follows:
Anyone know anything about the Macmillian "Oracle8i for Linux" pack? My local Staples has it for $90, and I'm strongly considering getting it if it's worth it. Anyone know if it is limited in any way, or if you have to pay more to actually use it? Thanks.
Damien Mc Kenna, Computer Science Student, Married to Jen, Parent of 4 cats
http://mc-kenna.com - damien
mc-kenna.com - ICQ:17066133
Please use our new web and email addresses and remove any old ones you have
attached mail follows:
This was on Amazon but it doesn't sound like what you described.
Oracle8i for Linux Starter Kit by Steve Bobrowski, Jeremy Judson (Editor) List Price: $49.99 Our Price: $39.99 You Save: $10.00 (20%)
Paperback - 528 pages (June 19, 2000) Osborne McGraw-Hill; ISBN: 0072124423 This item will be published on June 19, 2000. You may order it now and we will ship it to you when it arrives. Amazon.com Sales Rank: 463,377
Editorial Reviews
Book Description The only officially authorized self-contained book/disc learning tool available on Oracle8i for Linux.
An open source platform for Oracle's core database server technology, which represents a less expensive and more suitable alternative to Unix and NT platform server.
Full coverage of installation, administration, and troubleshooting.
CD-ROM includes 60-day trial version of Oracle8i for Linux and Enterprise Manager.
> -----Original Message-----
> From: Damien Mc Kenna [mailto:damien
mc-kenna.com]
> Sent: Monday, May 15, 2000 5:20 PM
> To: PHP3 Support
> Subject: [PHP3] Macmillian "Oracle8i for Linux" pack?
>
>
> Anyone know anything about the Macmillian "Oracle8i for Linux" pack?
> My local Staples has it for $90, and I'm strongly considering getting
> it if it's worth it. Anyone know if it is limited in any way, or if
> you have to pay more to actually use it? Thanks.
>
>
> Damien Mc Kenna, Computer Science Student, Married to Jen, Parent
> of 4 cats
> http://mc-kenna.com - damien
mc-kenna.com - ICQ:17066133
> Please use our new web and email addresses and remove any old
> ones you have
>
>
>
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
> To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
> To search the mailing list archive, go to:
> http://www.php.net/mailsearch.php3
> To contact the list
> administrators, e-mail: php-list-admin
lists.php.net
>
attached mail follows:
In article <4.3.2.3.0.20000515171821.00a7e6e0
mc-kenna.com>,
damien
mc-kenna.com (Damien Mc Kenna) wrote:
> Anyone know anything about the Macmillian "Oracle8i for Linux" pack? > My local Staples has it for $90, and I'm strongly considering getting > it if it's worth it. Anyone know if it is limited in any way, or if > you have to pay more to actually use it? Thanks.
Wasn't Oracle offering a free download of its server software for evaluation purposes and a real limited number of connections?...
You don't suppose somebody would slap that on a CD in a box with a "manual" and sell it for $90, would you?... :-)
Be real sure it ain't what I think it is...
-- Richard Lynch | If this was worth $$$ to you, buy a CD US Customer Support Director | from one of the artists listed here: Zend Technologies USA | http://www.L-I-E.com/artists.htm http://www.zend.com | (this has nothing to do with Zend, duh!)
attached mail follows:
Hello everybody,
How can I get the date when a MySQL database was last updated? This can't be too hard, but I don't know how to do it. Thanks!
Tyler Longren
attached mail follows:
Addressed to: tyler.longren
midiowa.net
php3
lists.php.net
** Reply to note from Tyler Longren <tyler.longren
midiowa.net> Mon, 15 May 2000 16:25:00 -0500
>
> Hello everybody,
>
> How can I get the date when a MySQL database was last updated? This
> can't be too hard, but I don't know how to do it. Thanks!
Last update of the entire database? Yes, it might be quite hard. You might get away with looking at the modify date of the files that contain the database, but there is more than one file per table, so it could be quite messy.
You could add a table with a single row, and update a TIMESTAMP or DATETIME field in it each time you change anything else in the table.
Update time of a single record, that is easy. Just include a field of type TIMESTAMP in the record and MySQL will update it with the current time every time anyting else in the record is changed.
Rick Widmer Internet Marketing Specialists www.developersdesk.com
attached mail follows:
In article <00051516263000.00889
localhost.localdomain>,
tyler.longren
midiowa.net (Tyler Longren) wrote:
> How can I get the date when a MySQL database was last updated? This can't be > too hard, but I don't know how to do it. Thanks!
You many any change at all to the database?...
I'm guessing you could dig around in wherever MySQl stores its files and look at the mod_time of the files for that database...
Or, if you have records in there that are being marked as "changed" you could do:
select max(changedate) from blah;
-- Richard Lynch | If this was worth $$$ to you, buy a CD US Customer Support Director | from one of the artists listed here: Zend Technologies USA | http://www.L-I-E.com/artists.htm http://www.zend.com | (this has nothing to do with Zend, duh!)
attached mail follows:
I have a client that needs various mailing lists and needs to send around 100,000 messages a day (much more later on according to them)- he needs to handle bounces and subscriptions automatically-
ezmlm-idx seems perfect but for one thing - he needs each meesage personalized -to say hi fred - hi barney etc etc and even personalized in the message body
Id rather him use ezmlm but they insist on this feature -
Theres no problem doing the sending and generation of messages with php and using postgresql or mysql to store all the data - but I'm worried that trying to send out 100,00 or more messages that way will be bad for server performance -
Does anyone have actual experience sending that amount of mail with php ?
Ive heard about a mail class from Manuel Lemos which I'm sure will help, but before going ahead It would be good to know someones actual experience.
attached mail follows:
In article <3920705F.BE1AB0A3
optusnet.com.au>, mwaples
optusnet.com.au
(Michael Waples) wrote:
> I have a client that needs various mailing lists and needs to send > around 100,000 messages a day (much more later on according to them)- he > needs to handle bounces and > subscriptions automatically- > > Ive heard about a mail class from Manuel Lemos which I'm sure will > help, but before going ahead It would be good to know someones actual > experience.
I'm not sure of the limits, but I think Manuel has them documented in there...
There are other packages that do the same thing, with more or less code/features...
-- Richard Lynch | If this was worth $$$ to you, buy a CD US Customer Support Director | from one of the artists listed here: Zend Technologies USA | http://www.L-I-E.com/artists.htm http://www.zend.com | (this has nothing to do with Zend, duh!)
attached mail follows:
Here's how I'd amend the present candidate:
PHP is a general-purpose scripting language that is especially suited for the Web development and can be embedded into HTML.
<<Its syntax is similar to C, Java, and Perl. >>Its syntax will be easy to learn for developers of C, Java, and Perl. ------------------
<<PHP runs on many different platforms and can be used as a <<standalone executable as well as under many web servers.
>>PHP runs on many different platforms and can be used as a >>standalone executable as well as a plug-in [or linked-in] module with >>many web servers. -----------------
It has excellent support for databases, various Internet protocols, and general data manipulation.
-------------- <<PHP can be extended through its powerful API to include additional <<functionality.
>>Because of its modular construction and open architecture, PHP can >>be extended through its powerful API to include additional functionality >>like language extensions to PHP itself (such as modules for interface to powerful >>C libraries), tools to make PHP operate more efficiently (such as >>compilers, output caches), and to embed PHP within other applications.
-Greg Billock
attached mail follows:
I've added an entry to the knowledge base with Andrei's original proposed answer to "What is PHP?". Here it is:
http://www.faqts.com/knowledge-base/view.phtml/aid/2881/fid/51
We can use the collaborative features and version control of FAQTs to refine this answer together. It also ensures that the latest version is always publically available at
cheers,
Nathan
attached mail follows:
People,
Anyone here already worked with HAWHAW and WAP? There are another solutions?
Cya
Antonio
.-===================================================================-.
| Can't buy what I want because it's FREE! - Pearl Jam |
|-===================================================================-|
| antonio
inf.ufsc.br | antonio
brasilnet.net | antonio
musicramp.com |
|-===================================================================-|
| ICQ# 9253680 | Floripa | MySQL | PHP | FreeBSD - The Power to Serve |
`-===================================================================-'
attached mail follows:
People,
Anyone here already worked with HAWHAW and WAP? There are another solutions?
Cya
Antonio
.-===================================================================-.
| Can't buy what I want because it's FREE! - Pearl Jam |
|-===================================================================-|
| antonio
inf.ufsc.br | antonio
brasilnet.net | antonio
musicramp.com |
|-===================================================================-|
| ICQ# 9253680 | Floripa | MySQL | PHP | FreeBSD - The Power to Serve |
`-===================================================================-'
attached mail follows:
There was an interesting article in Web Techniques regarding WAP and ASP that i highly recommend.. Mind you its not PHP, but as both platforms are so similar functionality-wise, you should be able to more than gleam something from that http://www.webtechniques.com/archives/2000/03/passani/
However as for Haw Haw... I think I watched that in the 80's and really loved the country girls in the daisy duke shorts.
Matt "Trollboy" Wiseman
Trollboy
shoggoth.net
"Gloom, despair and agony on me,
cause if it wernt for bad luck I'd have no luck at all."
-Hee-Haw
----- Original Message -----
From: "Antonio Carlos Venancio Junior" <antonio
inf.ufsc.br>
To: <php3
lists.php.net>
Sent: Monday, May 15, 2000 7:35 PM
Subject: [PHP3] HAWHAW & WAP
> People,
>
>
> Anyone here already worked with HAWHAW and WAP?
> There are another solutions?
>
>
> Cya
>
>
> Antonio
> .-===================================================================-.
> | Can't buy what I want because it's FREE! - Pearl Jam |
> |-===================================================================-|
> | antonio
inf.ufsc.br | antonio
brasilnet.net | antonio
musicramp.com |
> |-===================================================================-|
> | ICQ# 9253680 | Floripa | MySQL | PHP | FreeBSD - The Power to Serve |
> `-===================================================================-'
>
>
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
> To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
> To search the mailing list archive, go to:
http://www.php.net/mailsearch.php3
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
attached mail follows:
Hi all,
I'm new to php. I'm doing something on session management. How do I check "get" a user's session id rom the browser? If the user has no id, the following code will generate an id and store it into a database. I was told to use the $GLOBALS function but I have no idea how. Please help. This is urgent.
function set_browser_id(){
$session_id = utime().get_date(); SetCookie($session_id); store_new_browser_id($session_id); } function store_new_browser_id($id){
$sql = "INSERT INTO users(session_id) values('$id')"; mysql_query($sql, $db); } Someone suggested to ensure "double protection", I should also check for the existence of a database session id before writing to the database. If an id exists, the system should generate a new id and write the user session id to this database id. How can I implement this? THanks in advance.
Regards, Nikki
__________________________________________________ Do You Yahoo!? Send instant messages & get email alerts with Yahoo! Messenger. http://im.yahoo.com/
attached mail follows:
In article <200005130715.BAA05110
cms01smtp1.mcms.com>, hendry
mcms.com
(hendry) wrote:
> Fatal error: Maximum execution time exceeded in > /www/public_html/FIN/time_att/upload.php on line 17
While you still need to straighten out your php3.ini problem, you can use set_time_limit(50); in your PHP script to at least move forward on this front.
Meanwhile, look for another php3.ini file somewhere on your computer, and verify the path that <?php phpinfo();?> claims is the compile-time setting. Note that the compile-time setting is not necessarily the first place PHP will look in a standalone binary install, I think... read php3.ini at the top to be sure.
-- Richard Lynch | If this was worth $$$ to you, buy a CD US Customer Support Director | from one of the artists listed here: Zend Technologies USA | http://www.L-I-E.com/artists.htm http://www.zend.com | (this has nothing to do with Zend, duh!)
attached mail follows:
In article <004001bfbcb9$2f9aa9a0$0de135ca
crb.elga.net.id>,
harun
crb.elga.net.id ("Harun") wrote:
> Hi, > I have installed FreeBSD 3.3, mySQL 3.22.32, Apache 1.3.12, and php 3.0.16. > I want php to support GD, so I install gd 1.8.1 after its requirements > (libpng, jpeg-6b, zlib). > When I re-install php, I always get message : " checking whether to include > GD support... no ". > What to do?
I think there's a --with-gd and --with-jpeg-lib --with-png-lib settings to make PHP find GD. It only finds it automatically if you install in one of the usual places.
Also be sure you are doing rm config.cache: If you see "... GD support... (cached) no" you forgot to remove the cache.
-- Richard Lynch | If this was worth $$$ to you, buy a CD US Customer Support Director | from one of the artists listed here: Zend Technologies USA | http://www.L-I-E.com/artists.htm http://www.zend.com | (this has nothing to do with Zend, duh!)
attached mail follows:
Guys I have a big problem... please help ! I can't write into file info.dat and I don't know why... I get an error like this:
Warning: fopen("http://www.phpeditor.f2s.com/info.dat","a+") - Success in /web/sites/120/phpeditor/www.phpeditor.f2s.com/phpeditor.php3 on line 68
and it not let me to write in that file... why ?
,----------------------.---------------------------------.
/ Marian Vasile \ Web sites: /
/ softglitter
yahoo.com \ http://mariancos.tripod.com /
/ marian_2001
yahoo.com \ http://marian.8k.com /
`-----------------------------`------------------------
__________________________________________________ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com
attached mail follows:
> Guys I have a big problem... please help ! > I can't write into file info.dat and I don't know why... > I get an error like this: > > Warning: fopen("http://www.phpeditor.f2s.com/info.dat","a+") - Success in > /web/sites/120/phpeditor/www.phpeditor.f2s.com/phpeditor.php3 on line 68 > > and it not let me to write in that file... why ?
You can't write over http.
-Rasmus
attached mail follows:
In article <001701bfbccf$0f006700$c0e6c5cb
default>, usha
mahesh.net
("usha") wrote:
> I don't want to add $rows to the above URL as already there are lots of = > variables I have to pass.
If there's already lots there, one more won't matter much...
Be warned: The number of rows could change between one page and the next if your database is edited online "live"...
Be sure you are planning for that possibility.
Doing an extra "SELECT" to get the current row count is not a huge performance loss: Far less than opening the connection in the first place, so if you are already connected to the database in subsequent pages, go ahead an do the count again.
-- Richard Lynch | If this was worth $$$ to you, buy a CD US Customer Support Director | from one of the artists listed here: Zend Technologies USA | http://www.L-I-E.com/artists.htm http://www.zend.com | (this has nothing to do with Zend, duh!)
attached mail follows:
In article <000201bfbcd8$c71f7a70$6432a8c0
pixelid.intra>,
baldauf
pixel-id.de ("Jan Baldauf") wrote:
> Freeing 0x00122DE0 (24 bytes), allocated in functions/mime.c on line 145 > Freeing 0x00122B18 (5 bytes), allocated in functions/mime.c on line 236 > Freeing 0x000C38F0 (2 bytes), allocated in functions/mime.c on line 266
Try this:
set_error_reporting(E_ALL);
-- Richard Lynch | If this was worth $$$ to you, buy a CD US Customer Support Director | from one of the artists listed here: Zend Technologies USA | http://www.L-I-E.com/artists.htm http://www.zend.com | (this has nothing to do with Zend, duh!)
attached mail follows:
In article <eo2rhskfg13buvipld7b7i6cv1otjimp1v
4ax.com>,
owlcat
prodigy.net (Jamie Pratt) wrote:
> Hi .. I have a script that writes out a csv file to disk from data in > a mysql db that I then create a link to on the web page, so that the > user can download it... It correctly saves/downloads/opens from the > browser and everything, but when trying to load it in MS-excel, it > gets an error loading the file .. upon inspection, the file is coming > down with only LF's in it... (not CR-LF's like in the windows/dos > world).. I know I could do it with ftp and get it to work correctly, > but perhaps I am missing something in httpd.conf or something? > (mime-types? I did mess with these as well as AddType in httpd.conf > but had no success...!) =20
If you want your files to be DOS files, you'll need to use something like:
fwrite("...\r\n");
or
fputs("...\r");
to get the \r in there for DOS.
-- Richard Lynch | If this was worth $$$ to you, buy a CD US Customer Support Director | from one of the artists listed here: Zend Technologies USA | http://www.L-I-E.com/artists.htm http://www.zend.com | (this has nothing to do with Zend, duh!)
attached mail follows:
In article <391D7CA5.17AD7D5E
pacific.net.sg>, tkianchye
pacific.net.sg
(tkianchye) wrote:
> Can any one please tell me how to sort a 3 Dimensional Array. The > current function provided only support one or 2 dimensional. How about > 3?
Sort it how?...
You may need to iterate through the first dimension and sort each sub-array, or perhaps you could write a custom comparison function for usort() that will evaluate and sort the sub-array...
There's no real way to answer this question unless you explain which dimension you want to sort, and what to do with the other two dimensions.
-- Richard Lynch | If this was worth $$$ to you, buy a CD US Customer Support Director | from one of the artists listed here: Zend Technologies USA | http://www.L-I-E.com/artists.htm http://www.zend.com | (this has nothing to do with Zend, duh!)
attached mail follows:
I tried to write into a file of mine but it's not working... Why ? Click on: http://www.phpeditor.f2s.com/
,----------------------.---------------------------------.
/ Marian Vasile \ Web sites: /
/ softglitter
yahoo.com \ http://mariancos.tripod.com /
/ marian_2001
yahoo.com \ http://marian.8k.com /
`-----------------------------`------------------------
__________________________________________________ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com
attached mail follows:
Can anyone give me a short example how I can append to a remote file ???
,----------------------.---------------------------------.
/ Marian Vasile \ Web sites: /
/ softglitter
yahoo.com \ http://mariancos.tripod.com /
/ marian_2001
yahoo.com \ http://marian.8k.com /
`-----------------------------`------------------------
__________________________________________________ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com
attached mail follows:
Sorry for the omission of the $ ; crummy typing. I figured it out this afternoon, I think. I set a dummy default value of '1' for the ENUMs, then changed the script to read as shown below rather that having it the same as the fill-in-the-blanks columns. I'm a little suspicious, but it seems to work. By the way, I wouldn't mind at all if it's pointed out to me that the code's ridiculous; just tag on a solution at the end. Thanks for everyone's help.
curt ------------------------ Here's the change:
mysql> CREATE TABLE books( bookid SMALLINT UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT, title CHAR(30), publisher CHAR(30), isbn CHAR(15), first_ed ENUM('1', 'y', 'n', 'p'), signed ENUM('1', 'n', 'y'),
The SELECT statement, with a few 'if' statements removed:
$searchstmt = "SELECT * FROM books WHERE " ;
if ($bookid) $searchstmt .= "bookid like '%$bookid%' and " ; if ($title) $searchstmt .= "title like '%$title%' and " ; if ($publisher) $searchstmt .= "publisher like '%$publisher%' and " ;
if (first_ed <> '1') // ENUMs start here { $searchstmt .= "first_ed like '%$first_ed%' and " ; } else
if ($signed <> '1') { $searchstmt .= "signed like '%$signed%' and " ; } else . . . .$stmt= substr($searchstmt, 0, strlen($searchstmt)-4) ;
Paul Burney wrote:
> Is this the actual code? If so the problem may be that you left off the
> $ in front of the enum.
>
> > if (first_ed)
> ^^
> > $searchstmt .= "first_ed like '%$first_ed%' and "
>
> Hope it helps,
>
> Paul
>
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> Paul Burney
> Webmaster and Internet Developer
> Educational Technology Unit
> Graduate School of Education and Information Studies
> University of California, Los Angeles
> (310) 825-8365
> <webmaster
gseis.ucla.edu>
> <http://www.gseis.ucla.edu/>
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
attached mail follows:
In article <391E49CD.1676863E
inetarena.com>, curtpdx
inetarena.com (curt)
wrote:
> Is there a default value that's the equivalent to a blank entry in title > or isbn? I've tried a single space as a leading value e.g. first_ed
I dunno. What's in your data? Maybe you want "or $title is null" in there...
> ENUM(' ', 'y', 'n', 'p'), but that didn't change the result when trying > to retrieve rows WHERE signed=y. Searching with both ENUMs ...WHERE
Using 'like' with ENUMs is probably silly: 'like' does a text comparison with Regular Expression pattern-matching; ENUMs are, by definition, a limited number of discrete possible values:
> // start ENUMs > if ($signed) //> $searchstmt .= "signed like '%$signed%' and " ;
$searchstmt .= "signed = $signed and ";
-- Richard Lynch | If this was worth $$$ to you, buy a CD US Customer Support Director | from one of the artists listed here: Zend Technologies USA | http://www.L-I-E.com/artists.htm http://www.zend.com | (this has nothing to do with Zend, duh!)
attached mail follows:
In article <20000513175838.4216E818E
zeus.netimages.com>, david
ddahl.com
(David Dahl) wrote:
> is there a way to add mysql or postgresql support to an > already-compiled php 3.0.12?
Apparently there is, but it's not for the faint of heart...
> > [me] > > So I could have added MySQL to support to my PHP3 CGI binary without > > recompiling the whole thing?... Oh well. It was probably too tricky for > > me. I'm doing good when I can do ./configure/make/make install with > > nothing going wrong. > >
[Sascha (one of the PHP Developers)]: > Right, it was possible, but it sucked. Now it sucks less. :) > > In PHP 4.0, you can configure PHP with: > > $ ./configure \ > --with-apxs \ > --enable-sysvsem=shared \ > --enable-sysvshm=shared \ > --with-mysql=shared > > This will create the sysvsem, sysvshm and mysql extension as > shared extensions. A "make install" will put them into the right > directory, so that they are immediately accessible (they are not > automatically loaded). > > You can then use the following command in your scripts: > > dl("mysql.so"); # loads the MySQL extension > > Alternatively, you can add the following line to your php.ini. > This will cause the extension to be accessible to each script. > > extension=mysql.so
If Sascha says it sucks, you'd have to really know what you were doing to make it work...
The time to recompile PHP from scratch isn't that much (the second time -- the first time takes a long time due to inexperience)
-- Richard Lynch | If this was worth $$$ to you, buy a CD US Customer Support Director | from one of the artists listed here: Zend Technologies USA | http://www.L-I-E.com/artists.htm http://www.zend.com | (this has nothing to do with Zend, duh!)
attached mail follows:
currently, I am using this query to get the most used names in a complete (MySQL) database.
$select = "select COUNT(name) as top ,name from table group by name order by top desc";
--here's the task: I only want to get the most used names from e.g. the last 100 rows. (and just ignore the other, older entries in the db)
how do I have to modify the above select? Is it possible in one query, do I have to use sub-selects (could be a problem with mysql?!), or what other options do I have?
tnx,
dieter
attached mail follows:
Dieter Kneffel wrote: > > currently, I am using this query to get the most used names in a > complete (MySQL) database. > > $select = "select COUNT(name) as top ,name from table group by name > order by top desc"; > > -- > > here's the task: I only want to get the most used names from e.g. the > last 100 rows. > (and just ignore the other, older entries in the db) > > how do I have to modify the above select? Is it possible in one query, > do I have > to use sub-selects (could be a problem with mysql?!), or what other > options do I have?
try adding "LIMIT 100" at the end of the query after desc
Andrian
attached mail follows:
At first I thought you only wanted the last 100 in the query that you were already doing, but upon re-reading your question I now feel you're asking how to limit a query so it will only operate on the last 100 rows in a table.
Is this the situation? You have a table into which rows keep getting inserted. You want to run this SQL that you're showing us on _only_ the last 100 rows that have been inserted into the table.
If this is the case, you'll need something in the table to use to order the rows in reverse-inserted order. For example, a timestamp of when the row was added to the table or even a sequential key value would work. If you have either of those, the way to do it without subselects is this:
1. Select the fields you want from the table into a temporary table, putting them in descending order by the timestamp field or the sequential key value and limiting the output to 100 records
2. Run the SQL you've shown us on the temporary table and display the results on your web page
3. Drop the temporary table (if it's not done automatically)
But even if you had the use of subselects, you would need some way to grab only the last 100 rows of a table. Since SQL does not guarantee the order in which rows will be returned for a query without an ORDER BY clause, you **must** have something to order your rows in descending order of which they were inserted so you can get only the 100 records you're interested in. That's why a timestamp value or a sequentially incremented counter would be good. Once you've gotten the exact 100 rows you're interested in, you can run the query you've shown us.
Note that a timestamp value may be better because if a sequentially incremented counter may limit the number of rows in your table to the maximum number in the series. The maximum is usually over 2 billion, though, so at least it's not that bad. Also, if you can set your sequentially incremented counter to roll over back to the first number in the series, and it ever reached the maximum number in the series, it would break any get-the-last-100-inserted-rows processing based upon it. But use whichever makes sense to your app.
Good luck, Doug
Dieter Kneffel was heard at 03:14 AM 5/16/00 +0200 to say: >currently, I am using this query to get the most used names in a >complete (MySQL) database. > >$select = "select COUNT(name) as top ,name from table group by name >order by top desc"; > >-- > >here's the task: I only want to get the most used names from e.g. the >last 100 rows. >(and just ignore the other, older entries in the db) > >how do I have to modify the above select? Is it possible in one query, >do I have >to use sub-selects (could be a problem with mysql?!), or what other >options do I have? > >tnx, > >dieter
attached mail follows:
In article <00051317511400.22479
math.unl.edu.ar>, martin
math.unl.edu.ar
("Martin A. Marques") wrote:
> --enable-dmalloc I would guess that this is Dynamic Memory Allocation, > no? Which would be the benefits?
The PHP FAQ links to http://www.dmalloc.com/ which states:
"The debug memory allocation or dmalloc library has been designed as a drop in replacement for the system's malloc, realloc, calloc, free and other memory management routines while providing powerful debugging facilities configurable at runtime. These facilities include such things as memory-leak tracking, fence-post write detection, file/line number reporting, and general logging of statistics." > Which are the benefits of using --enable-sysvsem and --enable-sysvshm?
These two allow the usage of "shared memory": One can then put some data into a chunk of RAM associated with a key, and then other processes (including other PHP/httpd processes) can access this memory using the same key.
It's not widely used, since the average PHP scripter will have a hard time keeping correct track of what's where and cleaning up after themselves with this technology. It also is really only useful for smallish chunks of data.
It is up to you to guarantee uniqueness of "keys" for lookups across *ALL* processes using shared memory on your computer, as well as cleaning up data you no longer need.
While it's really cool technology, it's not for the beginner.
-- Richard Lynch | If this was worth $$$ to you, buy a CD US Customer Support Director | from one of the artists listed here: Zend Technologies USA | http://www.L-I-E.com/artists.htm http://www.zend.com | (this has nothing to do with Zend, duh!)
attached mail follows:
Guys, plz... how exactly I can write to a remote file ? To a text file ? Someone told me that this is not possible ? But it must be possible... How I will save my data then ?
,----------------------.---------------------------------.
/ Marian Vasile \ Web sites: /
/ softglitter
yahoo.com \ http://mariancos.tripod.com /
/ marian_2001
yahoo.com \ http://marian.8k.com /
`-----------------------------`------------------------
__________________________________________________ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com
attached mail follows:
Writing to a remote file!!(is easy)
$fp = fopen("file.txt", "a"); fputs($fp, "· $HTTP_USER_AGENT<br>\n"); fclose($fp); If you put this code on your page, it would get the browser the visitor is using and would write it to the file called file.txt.
Hope this helps you out some!
Tyler Longren
On Mon, 15 May 2000, you wrote:
> Guys, plz... how exactly I can write to a remote file ?
> To a text file ?
> Someone told me that this is not possible ?
> But it must be possible...
> How I will save my data then ?
>
> ,----------------------.---------------------------------.
> / Marian Vasile \ Web sites: /
> / softglitter
yahoo.com \ http://mariancos.tripod.com /
> / marian_2001
yahoo.com \ http://marian.8k.com /
> `-----------------------------`------------------------
>
>
> __________________________________________________
> Do You Yahoo!?
> Talk to your friends online with Yahoo! Messenger.
> http://im.yahoo.com
>
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
> To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
> To search the mailing list archive, go to: http://www.php.net/mailsearch.php3
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
In article <B543195F.5B2A%enigma
turingstudio.com>,
enigma
turingstudio.com (Alex Black) wrote:
> has anyone considered setting up a news server, so we can make this a > newsgroup on php.net?
Yes:
news://news.netimages.com/php3.general
I'm on dialup until the damn phone company gets their act together, so use the newsgroup exclusively...
Note that you cannot post to this newsgroup, but the mailing list is "open". You simply read the news and send your posts via email.
This is listed on the "Support" page at http://www.php.net/
-- Richard Lynch | If this was worth $$$ to you, buy a CD US Customer Support Director | from one of the artists listed here: Zend Technologies USA | http://www.L-I-E.com/artists.htm http://www.zend.com | (this has nothing to do with Zend, duh!)
attached mail follows:
In article <391E15D6.337E50EF
mediaone.net>, sacramone
mediaone.net (Dean)
wrote:
> BUT, I want to now do my win98 system... I see that people use APACHE > with win98... I was under the assumption APACHE under windows wasn't > stable??? > IS THIS TRUE....who knows and whats your experience with Windows98 and > apache and php???
Let me put it this way:
Your Windows98 box will be no less stable with Apache/PHP3 than it was without them :-)
I can't get PHP4RC2 to run with Apache on Win98, but maybe that's just be being stupid.
PHP3 works like a charm on my development laptop with Win98. Gotta find time to make it dual boot though...
-- Richard Lynch | If this was worth $$$ to you, buy a CD US Customer Support Director | from one of the artists listed here: Zend Technologies USA | http://www.L-I-E.com/artists.htm http://www.zend.com | (this has nothing to do with Zend, duh!)
attached mail follows:
Proof that being stupid is not the problem - nor the solution ;-) as even I can get ApacheW32 (1.3.9) running under Win98 just fine running both PHP3.0.16 and PHP4rc2 -and- most certainly Apache has _never_ crashed my local development box [ Dell Optiplex GX1 PIII, 128 MB, W98 w/ SP1 ]
The only problem I've been having is with PHP4 - trying to get sessions working using MySQL (instead of the default 'files') for data storage. It just doesn't seem to be behaving as expected based on the most recent doc's/posts on the subject, but that's another thread altogether -or- really is related to just being stupid.
TH
At 08:47 PM 5/15/00 -0500, Richard Lynch wrote:
>In article <391E15D6.337E50EF
mediaone.net>, sacramone
mediaone.net (Dean)
>wrote:
>
> > BUT, I want to now do my win98 system... I see that people use APACHE
> > with win98... I was under the assumption APACHE under windows wasn't
> > stable???
> > IS THIS TRUE....who knows and whats your experience with Windows98 and
> > apache and php???
>
>Let me put it this way:
>
>Your Windows98 box will be no less stable with Apache/PHP3 than it was
>without them :-)
>
>I can't get PHP4RC2 to run with Apache on Win98, but maybe that's just be
>being stupid.
>
>PHP3 works like a charm on my development laptop with Win98. Gotta find
>time to make it dual boot though...
>--
>Richard Lynch | If this was worth $$$ to you, buy a CD
>US Customer Support Director | from one of the artists listed here:
>Zend Technologies USA | http://www.L-I-E.com/artists.htm
>http://www.zend.com | (this has nothing to do with Zend, duh!)
>
>--
>PHP 3 Mailing List <http://www.php.net/>
>To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
>To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
>To search the mailing list archive, go to: http://www.php.net/mailsearch.php3
>To contact the list administrators, e-mail: php-list-admin
lists.php.net
-------------------------------------------------------------------- Strategic Business Systems (978) 745-2332 http://BusinessWebs.com/ --------------------------------------------------------------------
attached mail follows:
In article <NEBBJIOOOLABHKDFACGHGEEHCDAA.wizaerd
wizaerd.com>,
wizaerd
wizaerd.com ("Wizaerd") wrote:
> Does anyone know of any legitimate benchmarks done in comparing PHP with > ColdFusion? The reason I ask is I've been pushing to start some PHP > development at work, and we're primarily a CF shop... I'd like to present > som true to life benchmarks comparing the two (where hopefully PHP will be > the winner...)
Search the archives.
Just last week somebody reported a 10X rough estimate on actual homepage loading time. It looked like he just timed it with a stopwatch a half-dozen times each way.
Before that, I know this topic has come up before...
-- Richard Lynch | If this was worth $$$ to you, buy a CD US Customer Support Director | from one of the artists listed here: Zend Technologies USA | http://www.L-I-E.com/artists.htm http://www.zend.com | (this has nothing to do with Zend, duh!)
attached mail follows:
I opened a file using this
$file =
fopen("www.phpeditor.f2s.com/www.phpeditor.f2s.com/info">ftp://user:password
www.phpeditor.f2s.com/www.phpeditor.f2s.com/info.
dat", "a+");
and it worked first time...
then I get this error:
Warning: File already exists in
/web/sites/120/phpeditor/www.phpeditor.f2s.com/phpeditor.php3 on line 69
Warning:
fopen("www.phpeditor.f2s.com/www.phpeditor.f2s.com/info.dat">ftp://...
www.phpeditor.f2s.com/www.phpeditor.f2s.com/info.dat","a+")
- File exists in
/web/sites/120/phpeditor/www.phpeditor.f2s.com/phpeditor.php3 on line 69
Why ? Why is not working second time also ? I mention that I close the handler using: fclose($file) if this is important.
Thank you in advance, Marian
__________________________________________________ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com
attached mail follows:
In article <NDBBIPIJKLMIADAOBJOHKEPHCKAA.dihuei
theoikoses.com>,
dihuei
theoikoses.com ("David Loke") wrote:
> I've already installed both Apache and MySQL into my linux mandrake system. > Apache is preinstalled with the distribution and MySQL is installed using > RPM. Now I am trying to install PHP. My question is.. How do I know which > directory to key in when I do a ./configure?
You'll need to install the "DEV" RPMs corresponding to Apache and MySQL first.
> cd ../php-3.0.x > ./configure -with-mysql=<dir> -with-apache=<dir> -enable-track-vars > make > make install
PHP can usually find them, if the RPM put them in the usual places... > How do I know which link should I place in <dir>? How do I know whether its > an apache base directory and MySQL base directory? How do I find the base > directories? Please help.
Basically, it works like this:
After you install the DEV RPMs, there will be a directory structure for both Apache and MySQL where there will be something like this:
/whichever . . . /include . . . /lib . . .
The "whichever" directory above the "include" and "lib" directories is the one you need to feed to PHP. PHP needs to find both the "include" and "lib" directories, so the directory above those two is the one you want.
-- Richard Lynch | If this was worth $$$ to you, buy a CD US Customer Support Director | from one of the artists listed here: Zend Technologies USA | http://www.L-I-E.com/artists.htm http://www.zend.com | (this has nothing to do with Zend, duh!)
attached mail follows:
I want to write some data from a formular in a file. Till now there are two possibilities to do this: 1. To write to a remote file... but it's really not working. I mean it's not working the second time... example can be seen at: www.phpeditor.f2s.com
2. Second option that I don't know of... how can write all the data to a "local" file ? is that possible ?
__________________________________________________ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com
attached mail follows:
I answered your question twice. You can't append to a remote file. When you do the "a+" on the first write it creates the file, but on the second it is already there and thus tries to do an append which you can't do.
Besides, you are probably completely confused here. Your PHP script runs on a web server. When people enter data in their browser and POST a form, this data is posted to that web server. To save this data simply open a file locally.
eg.
$fp = fopen("/tmp/test.txt","a+"); ...
Since PHP is a server-side language, the term 'locally' means local to the PHP script and since the PHP script is running on the server this file will be created on the server the PHP script is running on.
-Rasmus
On Tue, 16 May 2000, Marian Vasile wrote:
> I want to write some data from a formular in a file.
> Till now there are two possibilities to do this:
> 1. To write to a remote file... but it's really not working.
> I mean it's not working the second time...
> example can be seen at: www.phpeditor.f2s.com
>
> 2. Second option that I don't know of... how can write all the data to a
> "local" file ? is that possible ?
>
>
> __________________________________________________
> Do You Yahoo!?
> Talk to your friends online with Yahoo! Messenger.
> http://im.yahoo.com
>
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
> To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
> To search the mailing list archive, go to: http://www.php.net/mailsearch.php3
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
>
attached mail follows:
In article <20000514201000.11548.qmail
web310.mail.yahoo.com>,
billzeller
yahoo.com (Bill Zeller) wrote:
> Is there a way to copy triangles or other polygons > from existing gif images with PHP? (I'm using GD 1.3)
I could be way off base, but I don't think that once you put a triangle or any other graphical element into a GIF, that the GIF has any idea whatsoever of that graphical element as a distinct object.
The GIF format (aside from color pallets and animation frames) is pretty much just a big ol' chunk of pixels encoded using LZW.
-- Richard Lynch | If this was worth $$$ to you, buy a CD US Customer Support Director | from one of the artists listed here: Zend Technologies USA | http://www.L-I-E.com/artists.htm http://www.zend.com | (this has nothing to do with Zend, duh!)
attached mail follows:
One way I got to that result was to generate the x,y coordinate values and plug them into an array -- then use that same array to populate an imagepolygon() function for each of the gifs I was creating (actually, the base polygon was scaled in each succeeding. larger polygon).
HTH,
Tom
At 09:19 PM 5/15/00 -0500, Richard Lynch wrote:
>In article <20000514201000.11548.qmail
web310.mail.yahoo.com>,
>billzeller
yahoo.com (Bill Zeller) wrote:
>
> > Is there a way to copy triangles or other polygons
> > from existing gif images with PHP? (I'm using GD 1.3)
>
>I could be way off base, but I don't think that once you put a triangle or
>any other graphical element into a GIF, that the GIF has any idea
>whatsoever of that graphical element as a distinct object.
>
>The GIF format (aside from color pallets and animation frames) is pretty
>much just a big ol' chunk of pixels encoded using LZW.
>--
>Richard Lynch | If this was worth $$$ to you, buy a CD
>US Customer Support Director | from one of the artists listed here:
>Zend Technologies USA | http://www.L-I-E.com/artists.htm
>http://www.zend.com | (this has nothing to do with Zend, duh!)
>
>--
>PHP 3 Mailing List <http://www.php.net/>
>To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
>To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
>To search the mailing list archive, go to: http://www.php.net/mailsearch.php3
>To contact the list administrators, e-mail: php-list-admin
lists.php.net
-------------------------------------------------------------------- Strategic Business Systems (978) 745-2332 http://BusinessWebs.com/ --------------------------------------------------------------------
attached mail follows:
In article <004601bfbddc$bfda6900$e619463f
vdn1>, faisal
nasim.org
("Faisal Nasim") wrote:
> | Hi, > | just a little comment: > | A few posts ago I was worried about being unable to reference in > | variable function calls (like $str="db->fooobj->woo"; $this->$str();). > | But we found out that thereīs only the eval() way to do it. > | Eval isnīt as slow as public thinks. I tested now and I use it to fill > | multi-dim (between 2-6 dimensions) arrays based on a condition and Iīm > | surprised, itīs fast. Perhaps a small note on eval()īs documentation, > | what eval() actually does and when itīs expected to be slow would help > | some users. I would provide my multi-dim-array-fill code snipplet as an > | advanced use of eval(). > > The only difference in eval() and regular code is that, the eval() > code is directly read from a string and the rest from file (if not > already read into a string). I haven't checked but I think its > necessary to create a new buffer (yy_create_buffer(), default) > to ask the lexer to parse it from a new location (a _very_ slight > overhead).
The idea that eval() is slow probably comes from Lisp hackers like me: In Lisp, the context required to correctly evaluate eval() is quite expensive. Fortunately, PHP does not have the features of Lisp that make eval() so slow.
I think the actual feature in Lisp has something to do with the dynamic variable environment that can be passed around in Lisp, but don't quote me on that. If you really need to know, the Macintosh Common Lisp Mailing List (www.mcl.com) is a very good mailing list. (Or it was, when I was there a few years back...)
-- Richard Lynch | If this was worth $$$ to you, buy a CD US Customer Support Director | from one of the artists listed here: Zend Technologies USA | http://www.L-I-E.com/artists.htm http://www.zend.com | (this has nothing to do with Zend, duh!)
attached mail follows:
I can't figure this out I have my links set up like this to pull data from my database
<A HREF='category.php3/$vcatid/$title'TARGET='_top'>".$r[title]."</A>
Using this method to extract the info to be used on the category page
$res = explode("category.php3/", $REQUEST_URI); $vars = explode("/", $res[1]); $catid = $vars[0]; //now var1 holds value1 $ptitle= $vars[1]; //and var2 holds value2
But when I go to select another link It has doubled <A HREF='category.php3/20/&Education'category.php3/20/Education/category.php3/3 /Auto Why is this happening
attached mail follows:
RK
My guess is that you need to add "phpinfo();" to the bottom of your script to make sure that the value of $REQUEST_URI is what you expected ;-)
Try to debug by echo'ing ALL of the values that you are creating in your "explode()" functions -- see below
See more below HTH TomH
At 07:23 PM 5/15/00 -0700, Richard Kurth wrote: >I can't figure this out I have my links set up like this to pull data from >my database > ><A HREF='category.php3/$vcatid/$title'TARGET='_top'>".$r[title]."</A>
BTW - to be picky ;-) if you cut and pasted the above code - then you really do need to add a _space_ before TARGET
>Using this method to extract the info to be used on the category page > >$res = explode("category.php3/", $REQUEST_URI);
echo "URI is $REQUEST_URI<BR>";
while(list($k,$v)=each($res)){ echo "Key $k - Val $v <br>"; }
>$vars = explode("/", $res[1]);
while(list($m,$n)=each($vars)){ echo "Key $m - Val $n <br>"; }
>$catid = $vars[0]; //now var1 holds value1
>$ptitle= $vars[1]; //and var2 holds value2
>
>But when I go to select another link It has doubled
><A
>HREF='category.php3/20/&Education'category.php3/20/Education/category.php3/3
>/Auto
> Why is this happening
>
>
>--
>PHP 3 Mailing List <http://www.php.net/>
>To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
>To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
>To search the mailing list archive, go to: http://www.php.net/mailsearch.php3
>To contact the list administrators, e-mail: php-list-admin
lists.php.net
-------------------------------------------------------------------- Strategic Business Systems (978) 745-2332 http://BusinessWebs.com/ --------------------------------------------------------------------
attached mail follows:
In article <Pine.BSF.4.21.0005141725220.890-100000
euphoria.hub.org>,
jeff
hub.org (Jeff MacDonald) wrote:
> I'm trying to write a script that when people upload an image > they can preview the image before hand. Basically by clicking > a button , which runs some java script to pop up a window and > display <img src=file:$uploadvar) (i'll include the source below)
> I tried playing iwth the rawurlencode function to no avail. Wondering if anyone > has any groovy ideas they could throw at me.
I think the // will make it a URL on all platforms with the forward slashes.
(Don't ignore us Mac users, okay?)
-- Richard Lynch | If this was worth $$$ to you, buy a CD US Customer Support Director | from one of the artists listed here: Zend Technologies USA | http://www.L-I-E.com/artists.htm http://www.zend.com | (this has nothing to do with Zend, duh!)
attached mail follows:
In article
<NDBBINFJMLMCIHPMJNPCGEBHCEAA.DLindley
darky69.freeserve.co.uk>,
DLindley
darky69.freeserve.co.uk ("Darren Lindley") wrote:
> everytime i try using the email function on php it crashes > with the following:
You have tried using that Mail server with some other software to be sure it doesn't crash for everything, not just PHP, right?...
Other than that, I'm stumped...
I guess just to be sure, I'd try to use something other than
admin
127.0.0.1 as an email... Maybe you're sending the mail server into
some sort of infinite loop as it tries to deliver/receive email from
itself or something weird...
I realize that last bit would indicate a very broken SMTP server, but...
-- Richard Lynch | If this was worth $$$ to you, buy a CD US Customer Support Director | from one of the artists listed here: Zend Technologies USA | http://www.L-I-E.com/artists.htm http://www.zend.com | (this has nothing to do with Zend, duh!)
attached mail follows:
In article <391F291B.1A43BDCA
tunga.com>, mesut
tunga.com (Mesut TUNGA) wrote:
> Hi All, > > Is there any one know a examples add a comment php script for a current > product. > > For example; users would submit comments for o product. And it will > store on the same database which products stored.
Untested code off the top of my head:
CREATE table comments( productid int4, comment text );
product.php3 <?php $productid = 42; $product_name = 'widget'; echo "<A HREF=comment.php3?productid=$productid>Comments</A> about $product_name<BR>\n"; $comments = mysql_query("select comment from comments where productid = $productid") or die(mysql_error()); while (list($comment) = mysql_fetch_row($comments)){ echo $comments, "<HR>"; } ?>
comment.php3 <?php if (isset($submit)){ mysql_query("INSERT into comments(productid, comment) values($productid, '$comments')") or die(mysql_error()); echo "Thank you for your comment.<BR>\n"; } ?> <FORM ACTION=comment.php3 METHOD=POST> <TEXTAREA NAME=comments WRAP=VIRTUAL></TEXTAREA><BR> <INPUT TYPE=SUBMIT NAME=submit> </FORM>
-- Richard Lynch | If this was worth $$$ to you, buy a CD US Customer Support Director | from one of the artists listed here: Zend Technologies USA | http://www.L-I-E.com/artists.htm http://www.zend.com | (this has nothing to do with Zend, duh!)
attached mail follows:
Has anyone managed to make a script that creates AGIs using Truetypes? I need urgent help with that task...
Joakim Bomelin Framtidsfabriken AB Bredgatan 25 SE-222 21 Lund, Sweden Phone: +46 46 540 01 40 Mobile: +46 70 941 20 40
attached mail follows:
In article <001101bfbdfb$c0166f80$43fbb3c3
happy>, marian_2001
yahoo.com
("Marian Vasile") wrote:
> Who can give me an example of MY-SQL database with a simple table containing > these fields: > Name > Registrationcode > IP1 > IP2 > IP3 > IP4 > > This database must be updated all the time using an PHP page. > Something like... > Visitor will go directly to this link: > www.mysite.com/registration.php3?name=Marian&Registrationcode=87533 > and in that moment database (MYSQL) must be uploaded with IP. When visitor > come from more than 4 distinct IP then no uploading is made.... > Anyone can help ?
At least one of us is very confused...
How could a visitor come from more than one IP at any given instant in time?
Or are you saying that after the fourth visitor with the same registration code, their info will not be counted?...
If that's the case, the first thing I would do is make it a two-table database. (See previous posts and my most recent "Tip" on http://www.zend.com/):
Since this looks altogether too much like a mult-level marketing thing, I'm going to use those terms in my example. Sorry if I'm confusing you, but I dunno what else you could be trying to do that looks like this...
create table upline( registrationcode int4, name text );
create table downline( registrationcode int4, IP text );
<?php //Limit to 4 downlines: $downlinemax = 4; $query = "select count(*) from downline where registrationcode = $Registrationcode"; $downline = mysql_query($query) or die(mysql_query()); $downlinecount = mysql_result($downline, 0, 0); if ($downlinecount < $downlinemax){ $query = "insert into downline(registrationcode, IP) values($Registrationcode, '$REMOTE_ADDR')"; $insert = mysql_query($query) or die(mysql_query()); } ?>
I'll leave it to you to decide if this new person should be inserted into 'upline' or not...
If I'm just completely missing your question, try again in different words... (Tell us what your application is doing.)
-- Richard Lynch | If this was worth $$$ to you, buy a CD US Customer Support Director | from one of the artists listed here: Zend Technologies USA | http://www.L-I-E.com/artists.htm http://www.zend.com | (this has nothing to do with Zend, duh!)
attached mail follows:
Damn it !!!! My site is still not working and the problem I feel that is STUPID !!!! But neither of you didn't help me... all of you just with foolish things that don't work ! When I will receive a goost reason why that is happening ????
I tried to open second time that info.dat file like crazy...with a lot of
examples like:
fopen("www.phpeditor.f2s.com/www.phpeditor.f2s.com/info">ftp://user:password
www.phpeditor.f2s.com/www.phpeditor.f2s.com/info.
dat","a")
fopen("www.phpeditor.f2s.com/www.phpeditor.f2s.com/info">ftp://user:password
www.phpeditor.f2s.com/www.phpeditor.f2s.com/info.
dat","a+")
fopen("www.phpeditor.f2s.com/www.phpeditor.f2s.com/info">ftp://user:password