[PHP] Performance

2001-12-13 Thread René Fournier

Is it true that mixing HTML and PHP--switching back and forth with 
?php ?  tags--slows down performance? (I'm using PHP4.) Is it better 
to echo output than to drop out of PHP mode?

And concerning database connections, my ISP asks that I always close a 
MySQL connection with a mysql_close()--which I can understand. But I'm 
curious, if I have to make, say, 10 SELECTs throughout a page (in the 
header, body, and footer), is it perhaps faster to use the mysql_close() 
at the very end of the page (in the bottom of the footer.inc)? In other 
words, is there any disadvantage performance-wise (or stability reason) 
to open and immediately thereafter close mysql connections?

Can anyone recommend an article or two on coding techniques for 
improving PHP and MySQL performance? I don't wan to spend the rest of my 
life optimizing my php code, but if I knew a few basic rules about its 
performance characteristics, I might be able to make better decisions 
when coding. Thanks.

...Rene

---
René Fournier,
[EMAIL PROTECTED]


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Performance

2001-12-13 Thread Prottoss

On November 13, 2001 12:05 pm, René Fournier wrote:
 Is it true that mixing HTML and PHP--switching back and forth with
 ?php ?  tags--slows down performance? (I'm using PHP4.) Is it better
 to echo output than to drop out of PHP mode?

 And concerning database connections, my ISP asks that I always close a
 MySQL connection with a mysql_close()--which I can understand. But I'm
 curious, if I have to make, say, 10 SELECTs throughout a page (in the
 header, body, and footer), is it perhaps faster to use the mysql_close()
 at the very end of the page (in the bottom of the footer.inc)? In other
 words, is there any disadvantage performance-wise (or stability reason)
 to open and immediately thereafter close mysql connections?

 Can anyone recommend an article or two on coding techniques for
 improving PHP and MySQL performance? I don't wan to spend the rest of my
 life optimizing my php code, but if I knew a few basic rules about its
 performance characteristics, I might be able to make better decisions
 when coding. Thanks.


Actually unless this has been changed, when your php script terminates php 
automatically closes any mysql connections opened with mysql_connect(). Your 
ISP probably could solve this problem on thier end by putting a time_out 
value for mySQL of 60-120 seconds, so no leftover connections will stay (just 
in case).
Your best bet for optimizing mysql would actually be optimizing your queries, 
or consider using less intensive php functions to retrieve mysql data such as 
mysql_fetch_row  mysql_fetch_obect


Prottoss
[EMAIL PROTECTED]
ICQ: 23361082
http://mediaminer.org/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Problem Recompiling for GD Support

2001-12-13 Thread Gabriel Richards

Hi, I'm trying to recompile PHP to include GD and PDFLib support. So, I've
installed those libraries (as well as zlib, libjpeg, libtiff, libpng),
deleted config.cache, then ran :

./configure --with-apxs=/usr/local/apache/bin/apxs --with-openssl --enable-f
tp --with-gd=shared -with-mysql=/usr --with-pdflib --with-jpeg-dir=/usr/loca
l --with-tiff-dir=/usr/local

with no problem, then ran:

make install and got:

gd.c:95: conflicting types for `gdIOCtx'
/usr/include/gd_io.h:18: previous declaration of `gdIOCtx'

Error 1 

Previously, I had not compiled PHP --with-apxs, I did it as a static module,
I don't know if that matters. Can someone help with this problem?

One other question. If I'm recompiling PHP, do I need to specify all
the --withs and --enables I did previously, or will it remember for me?

Thanks!
Gabe

-
Ender Technology
Websites, Database Applications, Hosting
(310) 516-7411
[EMAIL PROTECTED]
http://www.endertechnology.com/



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] PHP 4.1.0 is_dir bug

2001-12-13 Thread Philip Olson


It's fixed in CVS, we'll see it in the next release (4.2.0).  From the
NEWS file:

- Fixed is_dir(), is_writeable(), is_readable(), is_executable(),
  is_link() and is_file() functions to not throw a 'file does not
  exist' warning. (Sterling)

  http://cvs.php.net/co.php/php4/NEWS

regards,
Philip Olson




On Thu, 13 Dec 2001, Alok K. Dhir wrote:

 
 With PHP 4.1.0, all calls to is_dir which would have returned false now
 report a stat failed warning as a bonus.  Using @is_dir to quiet it
 for the time being, but I'd imagine this is not the desired effect
 
 Alok K. Dhir
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Re: php 4.1.0 output compression

2001-12-13 Thread Rares Vasilescu

From: Yasuo Ohgaki
 How does it work? Read RFC for HTTP/1.1

I meant how do i tell PHP to use output compression.
Does PHP automatically detect the browser capability and send a compressed
response or do i have to activate it in my scripts. Or in the configuration
file?

 I know the HTTP rfc well (as i tried to implement this for myself).

Thanks for your aswer,
Rares


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] including outside pages

2001-12-13 Thread Jordan

hello all,

Two questions

1) Is it possible to pass a session to another server?  I'm creating a
secure order form for a shopping cart but the ssl service of my provider is
on a different server.  Is there anyway to carry a users session over to
this box?

2) If it is not possible to carry a session...is there anyway I could
include this page on the ssl server into my main server from my host?  If I
could do an include I could continue the session and use it's stored
variables.

Thank you for the help.

-Jordan



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] subscribe me

2001-12-13 Thread [EMAIL PROTECTED]

please subscribe me
---
L'e-mail gratuit pas comme les autres.
Pour créer votre adresse : http://www.nomade.fr/courrier/ouvrir.asp
NOMADE.FR, pourquoi chercher ailleurs ?



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] PHP 4.1.0 Compiling on OS X

2001-12-13 Thread Andrew White

On Thursday, December 13, 2001, at 07:36  am, Weston Houghton wrote:

So I'm experimenting trying to get PHP 4.1 running under MacOS 10.1.1,
running the following for configure:

I'm having problems here as well though not the same ones. I think the 
major problem is that PHP 4.1 has switched to GNU libtool 1.4 which doesn'
t know anything about Darwin (Mac OS X). Unfortunately upgrading to 
libtool 1.4.2 doesn't seem to cure all the problems.

There's also the issue of Mac OS X 10.1's two-level namespace. The libtool 
1.4.2 switches it off using -flat_namespace but when doing that I get lots 
of multiple definition errors during the link process. Apple's CVS server 
has a version of 4.0.6 which compiles cleanly on 10.1 and in that they've 
left the two-level namespace on and passed the executable to link against 
using '-bundle_loader /usr/bin/httpd'. If I try the same trick with 4.1 
then I get '-b' option not supported error from /usr/bin/libtool.

That last error is worrying, since Mac OS X has its own libtool which is 
not compatible with GNU libtool, which is installed as glibtool. This 
seems to indicate that the build process is somehow horribly broken under 
10.1

What you might be able to do is compile a DSO on 10.0.4 and then copy it 
to your 10.1 machine.

Andrew


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Re: php 4.1.0 output compression

2001-12-13 Thread Yasuo Ohgaki

Rares Vasilescu wrote:

 From: Yasuo Ohgaki
 
How does it work? Read RFC for HTTP/1.1

 
 I meant how do i tell PHP to use output compression.


Search zlib.output_compression ini directive in php.ini.
There is description in php.ini-dist, php.ini-recommended.


 Does PHP automatically detect the browser capability and send a compressed
 response or do i have to activate it in my scripts. Or in the configuration
 file?


It detects supported encoding, automatically.
Just enable zlib.output_compression in php.ini to enable.

-- 
Yasuo Ohgaki


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] PHP APACHE Authenticate

2001-12-13 Thread Silvia Mahiques

Hi Friends!:
I have some problems with APACHE Authenticate. I have a directory with
access control. This is his structure:

intranet_directory
file_1.php4
...
people_directory
file1_1.php4
...
research_directory
publications_directory
...

The problem is that I can't access to file1_1.php4 that is call from
file_1.php4 with a POST method. This POST method is make without user
interaction, is call internaly by script file_1.php4. All is Ok when I
access file_1.php4, but when I try to access file1_1.php4 the server sends
this message:


HTTP/1.1 401 Authorization Required Date: Wed, 12 Dec 2001 18:45:16 GMT
Server: Apache/1.3.20 (Win32) PHP/4.0.6 WWW-Authenticate: Basic
realm=Restricted GTC member Directory Connection: close Content-Type:
text/html; charset=iso-8859-1
Authorization Required
This server could not verify that you are authorized to access the document
requested. Either you supplied the wrong credentials (e.g., bad password),
or your browser doesn't understand how to supply the credentials required.



I think that I have to pass to the server the information about Authenticate
(type of Authenticate, user, password) when I make a POST internaly, because
this work is make normaly by browser and perhaps I have to do now. But, how
can I make this?



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] PHP APACHE Authenticate

2001-12-13 Thread Silvia Mahiques



-Mensaje original-
De: Silvia Mahiques [mailto:[EMAIL PROTECTED]]
Enviado el: jueves, 13 de diciembre de 2001 10:32
Para: [EMAIL PROTECTED]
Asunto: PHP  APACHE Authenticate


Hi Friends!:
I have some problems with APACHE Authenticate. I have a directory with
access control. This is his structure:

intranet_directory
file_1.php4
...
people_directory
file1_1.php4
...
research_directory
publications_directory
...

The problem is that I can't access to file1_1.php4 that is call from
file_1.php4 with a POST method. This POST method is make without user
interaction, is call internaly by script file_1.php4. All is Ok when I
access file_1.php4, but when I try to access file1_1.php4 the server sends
this message:


HTTP/1.1 401 Authorization Required Date: Wed, 12 Dec 2001 18:45:16 GMT
Server: Apache/1.3.20 (Win32) PHP/4.0.6 WWW-Authenticate: Basic
realm=Restricted GTC member Directory Connection: close Content-Type:
text/html; charset=iso-8859-1
Authorization Required
This server could not verify that you are authorized to access the document
requested. Either you supplied the wrong credentials (e.g., bad password),
or your browser doesn't understand how to supply the credentials required.



I think that I have to pass to the server the information about Authenticate
(type of Authenticate, user, password) when I make a POST internaly, because
this work is make normaly by browser and perhaps I have to do now. But, how
can I make this?



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] PHP APACHE Authenticate

2001-12-13 Thread Rasmus Lerdorf

Are you sure you want to send an external POST request to a PHP script on 
the same server?  That doesn't make a whole lot of sense to me.  Why not 
simply include file1_1.php4 directly from file_1.php4.

However, assuming you have some logical reason for wanting to do this, it 
is rather simple.  In your POST request just add another header.  The 
header looks like this:

  Authorization: Basic Zm9vOmJhcg==

So just fputs() this after your POST.

The format of Basic auth is amazingly simplistic.  Try a 

  base64_decode('Zm9vOmJhcg==') 

and you will see that it turns into:

  foo:bar

ie. just username:password.  So you would most likely want something like:

 fputs($sock, 'Authorization: ' . base64_encode($user:$pass) . \r\n);

-Rasmus

On Thu, 13 Dec 2001, Silvia Mahiques wrote:

   Hi Friends!:
 I have some problems with APACHE Authenticate. I have a directory with
 access control. This is his structure:
 
   intranet_directory
   file_1.php4
   ...
   people_directory
   file1_1.php4
   ...
   research_directory
   publications_directory
   ...
 
 The problem is that I can't access to file1_1.php4 that is call from
 file_1.php4 with a POST method. This POST method is make without user
 interaction, is call internaly by script file_1.php4. All is Ok when I
 access file_1.php4, but when I try to access file1_1.php4 the server sends
 this message:
 
 
 HTTP/1.1 401 Authorization Required Date: Wed, 12 Dec 2001 18:45:16 GMT
 Server: Apache/1.3.20 (Win32) PHP/4.0.6 WWW-Authenticate: Basic
 realm=Restricted GTC member Directory Connection: close Content-Type:
 text/html; charset=iso-8859-1
 Authorization Required
 This server could not verify that you are authorized to access the document
 requested. Either you supplied the wrong credentials (e.g., bad password),
 or your browser doesn't understand how to supply the credentials required.
 
 
 
 I think that I have to pass to the server the information about Authenticate
 (type of Authenticate, user, password) when I make a POST internaly, because
 this work is make normaly by browser and perhaps I have to do now. But, how
 can I make this?
 
 
 
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Logo proposal

2001-12-13 Thread Dimitris Kossikidis

How about an Aunt!?  ( I don't know if it is in use )

Ant is a hard worker in the summer and very powerfull ( can lift 30 times
it's weight ) and small.

Just Like PHP.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] first totally php site

2001-12-13 Thread AAustin

Hi

My first totally php/mysql site.

www.thegardenzone.co.nz

Andrew



[PHP] redirect

2001-12-13 Thread Tommy Straetemans

Hi,

I have a small problem i come from a link in html page witch gives an numbet
to php (contact.php?nummer=2)
and in the script i use a redirec to a other php script but i can't give
that number to then next script i do it like this:
$url = sprintf(http://www.test.com/contact1.php?num=%,$nummer);
#header(sprintf(Location: %s,$url));
Tommy Straetemans



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Date Formatting/Reading

2001-12-13 Thread PHPGalaxy.com

Hi! =)

I'm doing a website that will be using a pay-per-month membership
program. There's a field for 'lastpaid' that holds the date the last
paid (sorry to state the obvious). My questions are these:
1) What would be the best way to format it so PHP can see if it's been
30 days since it was last paid?
2) What line of code would be used to check?
3) Would I set the field type to DATE, DATETIME, TIMESTAMP or soemthing
else?

Any help you can give would be much appreciated! I woulda taken the time
to study it more in-depth but I'm trying to get as much done on this in
5 hours as I can. =)

 ~ Tim

--
From PHPGalaxy.com, earn up to $10 per order selling our PHP Scripts
and Software on your Site. http://www.phpgalaxy.com/aff/

Also, get a fast free POP3 email account, you @php.la at
http://www.phpgalaxy.com/search/



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] redirect

2001-12-13 Thread Tamas Arpad

 I have a small problem i come from a link in html page witch gives
 an numbet to php (contact.php?nummer=2)
 and in the script i use a redirec to a other php script but i can't
 give that number to then next script i do it like this:
 $url = sprintf(http://www.test.com/contact1.php?num=%,$nummer);
I think something is missing after the % sign.
Arpi

 #header(sprintf(Location: %s,$url));
 Tommy Straetemans

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Online editor that edits all pages

2001-12-13 Thread R. Lindeman

sorry for the inconvieniance but i have to restate my question i'm looking
for a online editor that is able to edit pages that are not on the same host
as the editor is.

thanx



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Online editor that edits all pages

2001-12-13 Thread Andreas Landmark

On Fri, Dec 14, 2001 at 12:11:14AM -0800, R. Lindeman wrote:
 sorry for the inconvieniance but i have to restate my question i'm looking
 for a online editor that is able to edit pages that are not on the same host
 as the editor is.
 

And how is it supposed to do that?

ftp/ssh/frontpage-ext ?

Can't think of a ootb solution that does what you want...
-- 
Andreas D Landmark / noXtension
On Monday mornings I am dedicated to the proposition that all men are
created jerks.
-- Avery

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re[2]: [PHP] Logo proposal

2001-12-13 Thread Morten Winkler Jørgensen


DK Ant is a hard worker in the summer and very powerfull ( can lift 30 times
DK it's weight ) and small.

Does that mean that php should be ineffective during winter? ;)

Great idea I sincerely think!

Kind regards,
Morten Winkler



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Logo proposal

2001-12-13 Thread PHPGalaxy.com

Actually I heard it's 50 times it's weight, but I refuse to be anal about it. =)

Who's to say ants dont work just as hard in the winter? We can't se em.. unless
it's because they're dormant in the winter, in which case I just made myself look
INCREDIBLY stupid =)


Morten Winkler Jørgensen wrote:

 DK Ant is a hard worker in the summer and very powerfull ( can lift 30 times
 DK it's weight ) and small.

 Does that mean that php should be ineffective during winter? ;)

 Great idea I sincerely think!

 Kind regards,
 Morten Winkler

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]

--
From PHPGalaxy.com, earn up to $10 per order selling our PHP Scripts
and Software on your Site. http://www.phpgalaxy.com/aff/

Also, get a fast free POP3 email account, you @php.la at
http://www.phpgalaxy.com/search/



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Online editor that edits all pages

2001-12-13 Thread George Pitcher

I'm using EditPlus to edit files on my server, from my laptop, but that
accesses the files via the NT network, which might not be what yopu are
looking for.

George
- Original Message -
From: Andreas Landmark [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, December 13, 2001 11:16 AM
Subject: Re: [PHP] Online editor that edits all pages


 On Fri, Dec 14, 2001 at 12:11:14AM -0800, R. Lindeman wrote:
  sorry for the inconvieniance but i have to restate my question i'm
looking
  for a online editor that is able to edit pages that are not on the same
host
  as the editor is.
 

 And how is it supposed to do that?

 ftp/ssh/frontpage-ext ?

 Can't think of a ootb solution that does what you want...
 --
 Andreas D Landmark / noXtension
 On Monday mornings I am dedicated to the proposition that all men are
 created jerks.
 -- Avery

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.307 / Virus Database: 168 - Release Date: 11/12/01


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Zend Accelerator

2001-12-13 Thread Daniel Urstöger

Does anybody know, when Zend plans to release a working Zend Accelerator
version
for PHP 4.1.0 ?
Bcz we already think about buying this nice application, and we had the
stuff already ruuning
in evaluation mode, and I wanna test the new version of Zend Accelerator on
PHP 4.1.0
before investing money into the license ..
Thx for your help !

Daniel Urstöger



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] ldap_rename

2001-12-13 Thread Greg Ulyatt

Hello all,

Does anyone out there have ldap_rename working? 

I've tried resetting the LDAP version to 3 (which gives a protocol
error) and 2 (which gives an unsupported call return). However, the
command line ldapmodrdn command works, as does some PerlC code that I
tossed togther to test renaming DN's. But everything I try in PHP comes
back as a failed command. It seems from debugging that the server does
not understand a rename from PHP, possibly just due to the platform? (I
am running OpenLDAP 2.0.18, PHP 4.1.0(Apache 1.3.22) on Solaris).

Other than this, I have to say the LDAP implementation in PHP is
amazing!

-- 
Greg Ulyatt
REDNET Ltd.
UNIX Systems Administrator
High Wycombe, Bucks, UK

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Re: Permission denied, although permissions are right

2001-12-13 Thread Wim Godden

So there's no way for me to open that file ? It's generated as zapman and I
can't change that...
Any ideas or tricks to get around the protection without causing a big security

hole ?

Fred wrote:

 Your PHP script may be owned by zapman, but it is run as nobody.  Therefore
 your file that you need to access also needs to be owned by nobody.

 Fred

 Wim Godden [EMAIL PROTECTED] wrote in message
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  Hi,
 
  I'm trying to open a file (using fopen) in the /tmp directory which is
  owned by user 'zapman'. The php script is also owned by user 'zapman'.
  However, when I try to run it, I get :
  Warning: fopen(/tmp/1.dat,r) - Permission denied in
  /documents/zapman/html/openfile.php on line 5
 
  If I do a ps auwx | grep http, I get :
  root 20341  0.0  0.0 15100   56 ?S12:46   0:02
  /usr/local/apache/bin/httpd -DSSL
  nobody   20342  0.6  3.3 18276 4184 ?S12:46   0:26
  /usr/local/apache/bin/httpd -DSSL
  nobody   20343  0.8  4.6 20008 5936 ?S12:46   0:35
  /usr/local/apache/bin/httpd -DSSL
  nobody   20344  0.3  3.2 16100 4108 ?S12:46   0:15
  /usr/local/apache/bin/httpd -DSSL
 
  So the main process is running as root, the rest is running as nobody...
  that's the way to do it, right ? Or should I run Apache as root (which I
  don't like at all !) ?
 
  Greetings,
 
  Wim Godden
 

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Logo proposal

2001-12-13 Thread Valentin V. Petruchek

Aunt is more similar very similar to PHP. Very industrious and powerful ;)

- Original Message -
From: PHPGalaxy.com [EMAIL PROTECTED]
To: Php-General [EMAIL PROTECTED]
Sent: Thursday, December 13, 2001 1:31 PM
Subject: Re: [PHP] Logo proposal


 Actually I heard it's 50 times it's weight, but I refuse to be anal about
it. =)

 Who's to say ants dont work just as hard in the winter? We can't se em..
unless
 it's because they're dormant in the winter, in which case I just made
myself look
 INCREDIBLY stupid =)







-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Logo proposal

2001-12-13 Thread Adrian Teasdale

I'd kind of ignored this whole thread thinking it was going on and on, but
in the end I have to say something :)

None of the other animals really captured my attention, but having an Ant
would be quite cool.  Not because of the ant on its own, but it's usually a
whole bunch of ants that really really do achieve something (just
remembering all those national geographic programs). It's a bunch of people
that have grown PHP into what it is and I think that fits.  I'd go for the
ant myself :)

Someone put up a voting script !

Ade

--- i n o v i c a h o s t i n g . c o m --

Powerful hosting from www.inovicahosting.com



 -Original Message-
 From: Valentin V. Petruchek [mailto:[EMAIL PROTECTED]]
 Sent: 13 December 2001 12:05
 To: PHP
 Subject: Re: [PHP] Logo proposal


 Aunt is more similar very similar to PHP. Very industrious and powerful ;)

 - Original Message -
 From: PHPGalaxy.com [EMAIL PROTECTED]
 To: Php-General [EMAIL PROTECTED]
 Sent: Thursday, December 13, 2001 1:31 PM
 Subject: Re: [PHP] Logo proposal


  Actually I heard it's 50 times it's weight, but I refuse to be
 anal about
 it. =)
 
  Who's to say ants dont work just as hard in the winter? We can't se em..
 unless
  it's because they're dormant in the winter, in which case I just made
 myself look
  INCREDIBLY stupid =)
 
 





 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Need PHP 4.0.3pl1

2001-12-13 Thread Rouvas Stathis

For the linux version, go to:

URL:http://glaykos.mm.di.uoa.gr/~rouvas/tmp/inet/linux/php/php-4.0.3pl1-orig.tar.gz

-Stathis.

Gaylen Fraley wrote:
 
 This build is not on php.net. I need both the linux source and the windows
 binary for testing.  Does anyone know where I can obtain these?
 
 --
 Gaylen
 [EMAIL PROTECTED]
 Home http://www.gaylenandmargie.com
 PHP KISGB v2.6 Guest Book http://www.gaylenandmargie.com/phpwebsite
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Logo proposal

2001-12-13 Thread Nicolas Costes


well, I think the ant is a good idea, but :

t's a bunch of people
that have grown PHP into what it is and I think that fits.

that fits too for Linux, and many others  But this idea fits to me .

Le Jeudi 13 Décembre 2001 13:26, Adrian Teasdale a écrit :
 I'd kind of ignored this whole thread thinking it was going on and on, but
 in the end I have to say something :)

 None of the other animals really captured my attention, but having an Ant
 would be quite cool.  Not because of the ant on its own, but it's usually a
 whole bunch of ants that really really do achieve something (just
 remembering all those national geographic programs). It's a bunch of people
 that have grown PHP into what it is and I think that fits.  I'd go for the
 ant myself :)

 Someone put up a voting script !

 Ade

 --- i n o v i c a h o s t i n g . c o m --

 Powerful hosting from www.inovicahosting.com

 

  -Original Message-
  From: Valentin V. Petruchek [mailto:[EMAIL PROTECTED]]
  Sent: 13 December 2001 12:05
  To: PHP
  Subject: Re: [PHP] Logo proposal
 
 
  Aunt is more similar very similar to PHP. Very industrious and powerful
  ;)
 
  - Original Message -
  From: PHPGalaxy.com [EMAIL PROTECTED]
  To: Php-General [EMAIL PROTECTED]
  Sent: Thursday, December 13, 2001 1:31 PM
  Subject: Re: [PHP] Logo proposal
 
   Actually I heard it's 50 times it's weight, but I refuse to be
 
  anal about
  it. =)
 
   Who's to say ants dont work just as hard in the winter? We can't se
   em..
 
  unless
 
   it's because they're dormant in the winter, in which case I just made
 
  myself look
 
   INCREDIBLY stupid =)
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
 ( * Nicolas Costes,
 //\\  IUT de La Roche / Yon
( \/ ) [EMAIL PROTECTED]
http://luxregina.free.fr

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Need high bandwidth provider for my Asian community site

2001-12-13 Thread sunny AT wde

Hi all,

I manage an South-Asian community site from the UK (but hosted in
USA) which is currently wolfing down 20 GB per month and is
increasing to about 25 very soon as the popularity grows.

I've searched the mailing lists, but couldn't find a good solution.
How shall I go about increasing bandwidth? Should I go for a
dedicated boxes? Or does anyone know a host that provides 25-30 a
month fairly cheaply (its a non-commercial site).

TIA

sunny

__
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Branching to a page

2001-12-13 Thread Jason G.

Just send a redirect header.

header(Location: nextpage.php);
exit;

-Jason Garber
IonZoft.com

At 08:45 AM 12/11/2001 -0800, Todd Cary wrote:
I open a socket if I am in the middle of a php script to branch to a
page so that I can send the header information.  However, I understand
that this is not how most php programmers do it.  Could someone share
with me the way it is done with php?

In more detail, this is how I structure a page:

1) The Form calls itself - the same page.

2) At the top of the page, I do my validation and I may check to see if
a Cancel button was pressed.

3) Depending on the circumstances, I branch to another page.

   /* Example: was the Cancel button pressed?
  If so, branch to redirect page */
   if (!empty($cancel)) {
 $http = new http;
 $fp = $http-http_fget($server, $path .
 redirect.php,);
 if($fp) {
   print 'BASE HREF=' . $url .
   'redirect.phpp';
   fpassthru($fp);
   exit;
 }
   }

Many thanks.

Todd

--
Todd Cary
Ariste Software
[EMAIL PROTECTED]



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Need high bandwidth provider for my Asian community site

2001-12-13 Thread sunny AT wde

I also forgot to ask:

are messageboards really big bandwidth suckers?? I get about 2000
messages posted a day on my messageboard and I use up nealry 20 gigs
with that. Is this normal?

My site is - www.barfiCulture.com

thanks

sunny


--- sunny AT wde [EMAIL PROTECTED] wrote:
 Hi all,
 
 I manage an South-Asian community site from the UK (but hosted in
 USA) which is currently wolfing down 20 GB per month and is
 increasing to about 25 very soon as the popularity grows.
 
 I've searched the mailing lists, but couldn't find a good solution.
 How shall I go about increasing bandwidth? Should I go for a
 dedicated boxes? Or does anyone know a host that provides 25-30 a
 month fairly cheaply (its a non-commercial site).
 
 TIA
 
 sunny
 
 __
 Do You Yahoo!?
 Check out Yahoo! Shopping and Yahoo! Auctions for all of
 your unique holiday gifts! Buy at http://shopping.yahoo.com
 or bid at http://auctions.yahoo.com
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail:
 [EMAIL PROTECTED]
 


__
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: subscribe me

2001-12-13 Thread Yasuo Ohgaki

[EMAIL PROTECTED] wrote:

 please subscribe me

Why not?
Have you take a look at
http://www.php.net/support.php ?

I recommend to use news server.
news://news.php.net/

-- 
Yasuo Ohgaki


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Re: PHP 4.1.0 and User-defined Sessions

2001-12-13 Thread Jaime Bozza

I *HAVE* searched the database and there have been similar problems,
with the request to try the latest CVS and to produce a short script
that duplicates the problem.  Since I can't exactly put the CVS version
onto a live website (and start having all sorts of other problems) and I
can't duplicate the problem consistently on a non-active testing site,
I don't really have anything else additional to offer except for Me
Too!.

My email already stated that I have tried to use --enable-debug and that
I'm getting a segfault without any core file whatsoever.  The last
paragraph explains my attempts on using enable-debug.

Jaime Bozza


-Original Message-
From: Yasuo Ohgaki [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, December 12, 2001 9:04 PM
To: [EMAIL PROTECTED]; Jaime Bozza
Subject: [PHP] Re: PHP 4.1.0 and User-defined Sessions


Search bug database to see if the same problem is reported or not.

If you get segfault, buld PHP with --enable-debug and get core file. If
it is new, get backtrace as described in bugs.php.net. Submit new bug
report. If you found multiple issues, submit bug report separately.

There are more comments following.

Jaime Bozza wrote:

 Hello,
   I've run into a really intermittent and strange problem with PHP 
 4.1.0, and before I try and figure out how to send in a bug report 
 that'll get ignored (because I don't have all the data that is 
 expected), I thought I would try here to see if anyone else is having 
 similar problems.
 
 
   Configuration:  FreeBSD 4.4-STABLE, PostgreSQL 7.1.3, Apache 1.3.22,

 PHP 4.1.0.
 


So far I don't have problem with Linux 2.4.4/PosrgreSql 7.1.3/Apache 
1.3.22/PHP 4.1.0 or 4.2.0-dev


   I use PHP Sessions for large parts of our sites.  I'm currently 
 using the PostgreSQL Session Handler code from Jon Parise and it had 
 been working pretty much perfectly under PHP 4.0.6. (The only issue 
 was when multiple requests came in with the same session_id at the 
 EXACT same time - AvantGo for instance - But I made some minor 
 modifications to eliminate that problem)
 
   Once upgrading to 4.1.0, I started noticing Apache processes 
 segfaulting left and right. (Signal 11's, with the occasional Signal 
 10) At first I started to think perhaps memory was bad on that 
 particular system.  I have 4 servers (running 3-5 separate Apache 
 processes each) and each and every server was giving me the Signal 
 10/11's.  I started looking into it further.
 
   I have an auto_prepend for my application code that defines the 
 base session variables, config variables, includes the 
 pgsql_session_handler file, etc.  All the processing is handled here 
 so that my other pages can just use an array that stores all the 
 session data.  That way I can pretty much ignore the backend in any of

 my application code.


This setting is similar to mine also.

 
   Once I turned this code off, bingo!  No more segfaults!  So I 
 started hacking out code there.  If I kept all the startup code but 
 eliminated the session commands, it still worked.  As soon as I turned

 on the session (session_start/session_register), I'd get the segfaults

 again.


If you could make *short* script that segfault, attach it to bug report.

 
   If I turned off the pgsql_session_handler and went back to files 
 (the default), I didn't have any problems either.  It was just a 
 problem when I was using the pgsql_session_handler.


I'm not sure what your session handler looks like, could try pgsql 
session handler that can be found at Zend.com's code exchange?


 
   So I then turned off session handling and built my own session 
 functions (quickie, but basically emulate the session functions I
 needed) that called the SAME pgsql_session_handler code that was being

 used by PHP's internal functions.  For the past hour I haven't had a 
 single segfault on any of my servers.  (Within 5 minutes of turning on

 the internal session routines, I would start getting segfaults every 
 minute or so)
 
   One other thing I noticed was that I had compiled PHP with the mm 
 shared memory library.  Previous to 4.1.0, each Apache process had a 
 size of around 64MB.  (Without mm, the size was 4-5MB or so)  Once 
 installing 4.1.0, the size went up to 130MB for each process!  Since 
 I believe sessions utilize the mm library if it's available, I figure 
 this may be one of the clues.  (I never tried using the shared memory 
 style of sessions, so I couldn't tell you if it would segfault there.)


This is strange, mm session module allocates shared memory that is 
needed. (Description is not fully correct, but almost correct)

 
   Is anyone having any of these problems?  Is anyone else using the 
 internal PHP session support with their own session handler (under 
 some of the same conditions I gave above) and having no problems with 
 PHP4.1.0?  Please let me know either way.
 
   BTW, I never get a core file.  I've tried enable-debug to get the 
 symbols in there, but without a core file I'm kind 

[PHP] Call to undefined function: bcdiv()

2001-12-13 Thread Daniel Alsén

Hi,

i when i run a script that contains a bcdiv() calculation i get this error:
Call to undefined function:  bcdiv()

I am using bcdiv() successfully in other scripts. However i vaguely remember
getting an error message some time for some operation in bcdiv...

Any ideas?

Regards
# Daniel Alsén| www.mindbash.com #
# [EMAIL PROTECTED]  | +46 704 86 14 92 #
# ICQ: 63006462   | +46 8 694 82 22  #
# PGP: http://www.mindbash.com/pgp/  #


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] a piece of PHP history

2001-12-13 Thread Matt Williams


 http://groups.google.com/groups?selm=1991Apr14.200541.755%40napc.uucp
 

So did you ever find the book Rasmus 

m:

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Need high bandwidth provider for my Asian community site

2001-12-13 Thread Shane Wright


For a UK based server, have a look at dsvr.co.uk - they do great hosting and 
bandwidth is pretty cheap (AFAIK for a dedicated box its ~£300 p/month for 
40-50Gb of storage and 25Gb/month bandwidth)

Its worked out the best deal for us anyways :)

(PHP4 with loads of extensions compiled in, mySQL, PostgreSQL, ssh access, 
cron access, they're very flexible (edit your own apache and PHP configs, add 
your own extensions and so forth, support is also great; quick and 
knowledgable).

[no, I dont work for them, but they're the best I've found - so long as you 
know a bit about Linux/Apache/PHP]

Hope that helps

--
Shane



On Thursday 13 Dec 2001 1:13 pm, sunny AT wde wrote:
 I also forgot to ask:

 are messageboards really big bandwidth suckers?? I get about 2000
 messages posted a day on my messageboard and I use up nealry 20 gigs
 with that. Is this normal?

 My site is - www.barfiCulture.com

 thanks

 sunny

 --- sunny AT wde [EMAIL PROTECTED] wrote:
  Hi all,
 
  I manage an South-Asian community site from the UK (but hosted in
  USA) which is currently wolfing down 20 GB per month and is
  increasing to about 25 very soon as the popularity grows.
 
  I've searched the mailing lists, but couldn't find a good solution.
  How shall I go about increasing bandwidth? Should I go for a
  dedicated boxes? Or does anyone know a host that provides 25-30 a
  month fairly cheaply (its a non-commercial site).
 
  TIA
 
  sunny
 
  __
  Do You Yahoo!?
  Check out Yahoo! Shopping and Yahoo! Auctions for all of
  your unique holiday gifts! Buy at http://shopping.yahoo.com
  or bid at http://auctions.yahoo.com
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail:
  [EMAIL PROTECTED]

 __
 Do You Yahoo!?
 Check out Yahoo! Shopping and Yahoo! Auctions for all of
 your unique holiday gifts! Buy at http://shopping.yahoo.com
 or bid at http://auctions.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Logo proposal

2001-12-13 Thread Andrey Hristov

Ants don't sleep. PHP programmers are from the whole globe so PHP also never 
sleep.

Regards,
Andrey Hristov

On Thursday 13 December 2001 07:05 am, you wrote:
 Aunt is more similar very similar to PHP. Very industrious and powerful ;)

 - Original Message -
 From: PHPGalaxy.com [EMAIL PROTECTED]
 To: Php-General [EMAIL PROTECTED]
 Sent: Thursday, December 13, 2001 1:31 PM
 Subject: Re: [PHP] Logo proposal

  Actually I heard it's 50 times it's weight, but I refuse to be anal about

 it. =)

  Who's to say ants dont work just as hard in the winter? We can't se em..

 unless

  it's because they're dormant in the winter, in which case I just made

 myself look

  INCREDIBLY stupid =)

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Need high bandwidth provider for my Asian community site

2001-12-13 Thread Andrew Brampton

Well just looking at the source of your HTML, you could save yourself some
bandwidth by shrinking it a bit.
For example
change the br / into br
place your JavaScript into a .js file
remove a lot of the new lines
also remove the tabs.

Just doing this I changed the file size of a random forum page from
21090Bytes to 19192Bytes.
Thats saved you about 10%. That 2GB a month :)

You could shrink it even more by removing the  around attributes in html
tags (but that may break some browsers)

Also if possible you could get the GZip module installed for apache. This
GZips the pages up, sends them, and then your browser automatically ungzips
them. This only occurs with browsers that support it. But a quick test
changed your 20k file into a 3k file. That even more of an improvement for a
little server side processing. (thats 20GB into 3GB :)). But I guess your
Host wouldn't like to do this for you unless it was your own dedicated box.

Hope these suggestions help you some how

Andrew
- Original Message -
From: sunny AT wde [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, December 13, 2001 1:13 PM
Subject: Re: [PHP] Need high bandwidth provider for my Asian community site


 I also forgot to ask:

 are messageboards really big bandwidth suckers?? I get about 2000
 messages posted a day on my messageboard and I use up nealry 20 gigs
 with that. Is this normal?

 My site is - www.barfiCulture.com

 thanks

 sunny


 --- sunny AT wde [EMAIL PROTECTED] wrote:
  Hi all,
 
  I manage an South-Asian community site from the UK (but hosted in
  USA) which is currently wolfing down 20 GB per month and is
  increasing to about 25 very soon as the popularity grows.
 
  I've searched the mailing lists, but couldn't find a good solution.
  How shall I go about increasing bandwidth? Should I go for a
  dedicated boxes? Or does anyone know a host that provides 25-30 a
  month fairly cheaply (its a non-commercial site).
 
  TIA
 
  sunny
 
  __
  Do You Yahoo!?
  Check out Yahoo! Shopping and Yahoo! Auctions for all of
  your unique holiday gifts! Buy at http://shopping.yahoo.com
  or bid at http://auctions.yahoo.com
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail:
  [EMAIL PROTECTED]
 


 __
 Do You Yahoo!?
 Check out Yahoo! Shopping and Yahoo! Auctions for all of
 your unique holiday gifts! Buy at http://shopping.yahoo.com
 or bid at http://auctions.yahoo.com

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] pictures width and height

2001-12-13 Thread Tommy Straetemans

Hi,
 I'am new in php and i have a question.
Is there a way to check the height and width from a picture that I upload?


Tommy Straetemans



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Need high bandwidth provider for my Asian community site

2001-12-13 Thread Nicolas Costes


constructive answer, huh ???
:-))

Le Jeudi 13 Décembre 2001 15:31, Andrew Brampton a écrit :
 Well just looking at the source of your HTML, you could save yourself some
 bandwidth by shrinking it a bit.
 For example
 change the br / into br
 place your JavaScript into a .js file
 remove a lot of the new lines
 also remove the tabs.

 Just doing this I changed the file size of a random forum page from
 21090Bytes to 19192Bytes.
 Thats saved you about 10%. That 2GB a month :)

 You could shrink it even more by removing the  around attributes in html
 tags (but that may break some browsers)

 Also if possible you could get the GZip module installed for apache. This
 GZips the pages up, sends them, and then your browser automatically ungzips
 them. This only occurs with browsers that support it. But a quick test
 changed your 20k file into a 3k file. That even more of an improvement for
 a little server side processing. (thats 20GB into 3GB :)). But I guess your
 Host wouldn't like to do this for you unless it was your own dedicated box.

 Hope these suggestions help you some how

 Andrew
 - Original Message -
 From: sunny AT wde [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, December 13, 2001 1:13 PM
 Subject: Re: [PHP] Need high bandwidth provider for my Asian community site

  I also forgot to ask:
 
  are messageboards really big bandwidth suckers?? I get about 2000
  messages posted a day on my messageboard and I use up nealry 20 gigs
  with that. Is this normal?
 
  My site is - www.barfiCulture.com
 
  thanks
 
  sunny
 
  --- sunny AT wde [EMAIL PROTECTED] wrote:
   Hi all,
  
   I manage an South-Asian community site from the UK (but hosted in
   USA) which is currently wolfing down 20 GB per month and is
   increasing to about 25 very soon as the popularity grows.
  
   I've searched the mailing lists, but couldn't find a good solution.
   How shall I go about increasing bandwidth? Should I go for a
   dedicated boxes? Or does anyone know a host that provides 25-30 a
   month fairly cheaply (its a non-commercial site).
  
   TIA
  
   sunny
  
   __
   Do You Yahoo!?
   Check out Yahoo! Shopping and Yahoo! Auctions for all of
   your unique holiday gifts! Buy at http://shopping.yahoo.com
   or bid at http://auctions.yahoo.com
  
   --
   PHP General Mailing List (http://www.php.net/)
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
   To contact the list administrators, e-mail:
   [EMAIL PROTECTED]
 
  __
  Do You Yahoo!?
  Check out Yahoo! Shopping and Yahoo! Auctions for all of
  your unique holiday gifts! Buy at http://shopping.yahoo.com
  or bid at http://auctions.yahoo.com
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
 ( * Nicolas Costes,
 //\\  IUT de La Roche / Yon
( \/ ) [EMAIL PROTECTED]
http://luxregina.free.fr

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] PHP 4.1 and quicker run times

2001-12-13 Thread Zeev Suraski

At 20:48 12/12/2001, Eöl wrote:
The php readme / changelog noted that they worked with
m$ and have made great improvements in the speed of
php on windows.  Now I find this to be a very generic
explanation and not very helpful.

Well, maybe you should stick with 4.0.6 then?
Seriously, I rarely 'attack' users like that, but if there's one way to 
show as little gratitude as possible, it's that.

Does this mean:

a) Its efficiency and speed was improved on running on
WINDOWS?

OR

b) Its efficiency and speed was improved on running on
IIS?

I'll continue my somewhat cynical response and ask you - what's not clear 
about the message?  Did it mention IIS?  It's quite clear.  It mentions 
Windows, it doesn't mention IIS.  Therefore, it refers to Windows in 
general, and not IIS in particular.

Zeev


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Zend Accelerator

2001-12-13 Thread Zeev Suraski

A 4.1.0 compatible version should be out soon.

Zeev

At 13:40 13/12/2001, Daniel Urstöger wrote:
Does anybody know, when Zend plans to release a working Zend Accelerator
version
for PHP 4.1.0 ?
Bcz we already think about buying this nice application, and we had the
stuff already ruuning
in evaluation mode, and I wanna test the new version of Zend Accelerator on
PHP 4.1.0
before investing money into the license ..
Thx for your help !

Daniel Urstöger



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] max # of characters for links to work in emails?

2001-12-13 Thread Tom Churm

hi,

i'm working on an eCard project and somehow need to find out what the
reasonable limit is on characters for urls in email bodies (normal text,
not mime).

i know that some mail clients will cut off urls that are too long or
else throw a line break in the middle of them--thus rendering them
'unclickable'.  and this is exactly what i wanna avoid.

anyone have any advice to offer in this area?

muchos gracias,

tom

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] pictures width and height

2001-12-13 Thread Valentin V. Petruchek

?PHP
$size = getimagesize ($userfile);
echo pre;
print_r($size);
echo /pre;
?

userfile is file you want to get size of.

Zliy Pes, http://www.zliypes.com.ua
- Original Message -
From: Tommy Straetemans [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, December 13, 2001 4:32 PM
Subject: [PHP] pictures width and height


 Hi,
  I'am new in php and i have a question.
 Is there a way to check the height and width from a picture that I upload?


 Tommy Straetemans



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]






-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: Antialiasing with GD..?

2001-12-13 Thread Jeremy Reed

Antialiasing is done on a pixel by pixel basis.  I'm guessing that you don't
want to deal with the lines on that kind of basis, considering that it's a
whole lot of work.  Check the documentation, a lot of graphics
engines/utilities include a way draw antialiased lines.

However, if you're hell bent on doing it yourself, a quick and dirty
solution is to halve the RGB value of the lightest and the darkest pixel
adjacent to the 'edge' of the line.  Or, if you want better results at
double the cost, add two pixels to the line and only drop the RGB value by a
third in each of them.

So, for example, if you were antialiasing a black line to a white page,
black has an RGB value of (255,255,255) or (1,1,1 -- depending on your
graphics suite) and white, of course, is (0,0,0) so the antialiased pixel
would be (127,127,127) and would have a grayish look.  You throw that on the
edge of the line and voila, you have psuedo-antialiasing.


Jan Maska [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Hi,
 I have the following problem:

 Using the database, I create a graph like __.--._.--._/\.__
 In order to keep exact colors and prevent a JPEG detail distortion, I use
 PNG format as output.
 This has one disadvantage: all lines are rough and I don't know how to
 antialias them.

 Can anyone help?

 Thanx-a-lot,

 J.M. AKA Mac





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Need high bandwidth provider for my Asian community site

2001-12-13 Thread sunny AT wde

yeah i'll have a look at making the html a lot smaller as well :) i
guess thats a cheap way of tryin to hold out on the machine as much
as possible.

the br / unfortunately happens automatically when i use the nl2br
function before stuff goes into the database. anyway of avoiding
that?

/sunny

--- Andrew Brampton [EMAIL PROTECTED] wrote:
 Well just looking at the source of your HTML, you could save
 yourself some
 bandwidth by shrinking it a bit.
 For example
 change the br / into br
 place your JavaScript into a .js file
 remove a lot of the new lines
 also remove the tabs.
 
 Just doing this I changed the file size of a random forum page from
 21090Bytes to 19192Bytes.
 Thats saved you about 10%. That 2GB a month :)
 
 You could shrink it even more by removing the  around attributes
 in html
 tags (but that may break some browsers)
 
 Also if possible you could get the GZip module installed for
 apache. This
 GZips the pages up, sends them, and then your browser automatically
 ungzips
 them. This only occurs with browsers that support it. But a quick
 test
 changed your 20k file into a 3k file. That even more of an
 improvement for a
 little server side processing. (thats 20GB into 3GB :)). But I
 guess your
 Host wouldn't like to do this for you unless it was your own
 dedicated box.
 
 Hope these suggestions help you some how
 
 Andrew
 - Original Message -
 From: sunny AT wde [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, December 13, 2001 1:13 PM
 Subject: Re: [PHP] Need high bandwidth provider for my Asian
 community site
 
 
  I also forgot to ask:
 
  are messageboards really big bandwidth suckers?? I get about 2000
  messages posted a day on my messageboard and I use up nealry 20
 gigs
  with that. Is this normal?
 
  My site is - www.barfiCulture.com
 
  thanks
 
  sunny
 
 
  --- sunny AT wde [EMAIL PROTECTED] wrote:
   Hi all,
  
   I manage an South-Asian community site from the UK (but hosted
 in
   USA) which is currently wolfing down 20 GB per month and is
   increasing to about 25 very soon as the popularity grows.
  
   I've searched the mailing lists, but couldn't find a good
 solution.
   How shall I go about increasing bandwidth? Should I go for a
   dedicated boxes? Or does anyone know a host that provides 25-30
 a
   month fairly cheaply (its a non-commercial site).
  
   TIA
  
   sunny
  
   __
   Do You Yahoo!?
   Check out Yahoo! Shopping and Yahoo! Auctions for all of
   your unique holiday gifts! Buy at http://shopping.yahoo.com
   or bid at http://auctions.yahoo.com
  
   --
   PHP General Mailing List (http://www.php.net/)
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
   To contact the list administrators, e-mail:
   [EMAIL PROTECTED]
  
 
 
  __
  Do You Yahoo!?
  Check out Yahoo! Shopping and Yahoo! Auctions for all of
  your unique holiday gifts! Buy at http://shopping.yahoo.com
  or bid at http://auctions.yahoo.com
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail:
 [EMAIL PROTECTED]
 
 
 


__
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Can i do this?

2001-12-13 Thread Daniel Alsén

Hi,

can i do this?

$num_vals = array ();
for ($i=0; $i10; $i++)
{
  $shot_count = SELECT COUNT(*) FROM statistik WHERE
shooter='$shooter_login'  shot_one = '$i' || shooter='$shooter_login' 
shot_two = '$i' || shooter='$shooter_login'  shot_three = '$i' ||
shooter='$shooter_login'  shot_four = '$i' || shooter='$shooter_login' 
shot_five = '$i';
  $result = mysql_query($shot_count);
  $num_vals[$i] = mysql_fetch_array($result);
}

I guess it´s the last row that is troubling - getting an array into an
array. If the code is good - how do i echo the results?

# Daniel Alsén| www.mindbash.com #
# [EMAIL PROTECTED]  | +46 704 86 14 92 #
# ICQ: 63006462   | +46 8 694 82 22  #
# PGP: http://www.mindbash.com/pgp/  #


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Can i do this?

2001-12-13 Thread Jack Dempsey

didn't check your code specifically, but you can definitely have arrays
nested inside of arrays...to see how to print them out use something like
print_r to look  at the structure...

-Original Message-
From: Daniel Alsén [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 13, 2001 10:12 AM
To: PHP
Subject: [PHP] Can i do this?


Hi,

can i do this?

$num_vals = array ();
for ($i=0; $i10; $i++)
{
  $shot_count = SELECT COUNT(*) FROM statistik WHERE
shooter='$shooter_login'  shot_one = '$i' || shooter='$shooter_login' 
shot_two = '$i' || shooter='$shooter_login'  shot_three = '$i' ||
shooter='$shooter_login'  shot_four = '$i' || shooter='$shooter_login' 
shot_five = '$i';
  $result = mysql_query($shot_count);
  $num_vals[$i] = mysql_fetch_array($result);
}

I guess it´s the last row that is troubling - getting an array into an
array. If the code is good - how do i echo the results?

# Daniel Alsén| www.mindbash.com #
# [EMAIL PROTECTED]  | +46 704 86 14 92 #
# ICQ: 63006462   | +46 8 694 82 22  #
# PGP: http://www.mindbash.com/pgp/  #


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: Sending letter with attaching of the file

2001-12-13 Thread Jeremy Reed

You cannot attach a file using the mail() function in PHP.  You will have to
use a SMTP PHP class or another MIME enabled class to use attachments.

Jeremy

Alexandr Klaus [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Help me !

 For sending a letter I using the mail function in PHP.
 How send the letter with attached file?

 --
 Alexandr Klaus





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Re: Sending letter with attaching of the file

2001-12-13 Thread Rudolf Visagie

Here is a function I use that might help:

function mail_attachment ($to, $subject, $message, $addr_from, $attachment,
$filename) {

/*
This function sends an e-mail with a file attachment using the
standard
PHP mail function with parameters $to, $subject and $message.
The $attachment parameter is a string with the attachment file
content
which will be named $filename.

Author: Rudolf Visagie (adapted from PHP Developers Cookbook by
Sterling Hughes)
*/

$boundary = b.md5(uniqid(time()));
$mime = From: $addr_from\r\n;
$mime .= Reply-To: $addr_from\r\n;
$mime .= X-Mailer: Digital Healthcare Solutions\r\n;
$mime .= X-Sender: $addr_from\r\n;
$mime .= Content-type: multipart/mixed; ;
$mime .= boundary = $boundary\r\n\r\n;
$mime .= This is a MIME encoded message.\r\n\r\n;
// First the regular message
$mime .= --$boundary\r\n;
$mime .= Content-type: text/plain\r\n;
$mime .= Content-Transfer-Encoding: base64;
$mime .= \r\n\r\n.chunk_split(base64_encode($message)).\r\n;
// Now the attachment
$mime .= --$boundary\r\n;
$mime .= Content-type: text/plain\r\n;
$mime .= Content-Transfer-Encoding: base64\r\n;
$mime .= Content-Disposition: attachment; ;
$mime .= filename = .chr(34).$filename.chr(34);
$mime .= \r\n\r\n.chunk_split(base64_encode($attachment)).\r\n;
$mime .= --$boundary--;

mail ($to, $subject, , $mime);

}

Rudolf Visagie
Principal Software Developer
Digital Healthcare Solutions
Tel. +27(0)11 266 6946
Fax. +27(0)11 266 5080
Cell: +27(0)82 895 1598
E-mail: [EMAIL PROTECTED]

-Original Message-
From: Jeremy Reed [mailto:[EMAIL PROTECTED]]
Sent: 13 December 2001 05:22
To: [EMAIL PROTECTED]
Subject: [PHP] Re: Sending letter with attaching of the file


You cannot attach a file using the mail() function in PHP.  You will have to
use a SMTP PHP class or another MIME enabled class to use attachments.

Jeremy

Alexandr Klaus [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Help me !

 For sending a letter I using the mail function in PHP.
 How send the letter with attached file?

 --
 Alexandr Klaus





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] PHPhish Logo

2001-12-13 Thread Dasmeet Singh Arora

How about a tiger? After all PHP is vast (and dangerous).

Alok K. Dhir wrote:

How about the Phrog?  It's sort of a marine animal as well...  Don't
think there are any trademark infringements there.  Although my guess is
Phish wouldn't mind our using the 'Phish'.  PHP is hardly in the same
industry as the band...

Or - how about Phundulus?

http://zeus.mbl.edu/public/mrc/animals.php?func=detailmyID=F3196source
_myID=D1

Some quotes from the description:

   most abundant species
   very hardy, existing in an environment of extremes

Seems appropriate, no?  Good PHP metaphors. :)

-Original Message-
From: 
[EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED].
net] On Behalf Of Mark
Sent: Wednesday, December 12, 2001 3:53 PM
To: [EMAIL PROTECTED]; Armin Hartinger
Cc: PHP
Subject: Re: [PHP] PHPhish Logo


On Wed, 12 Dec 2001 09:09:38 -0600, Barton Hodges wrote:

The PHP PHish.

great idea (and great band too!)

with great trademark lawyers! bad idea I think/ :(

Armin Hartinger wrote:

Personally, I think it should be something f-based ... the f will 
then  be replaced with the ph ... e.g. Phish etc...

Also I think it should be something maritime ...
Penguin, Dolphin

After all, Linux, PHP  MySQL is the killer-combo, isn't it?

-Armin

On Tue, 2001-12-11 at 19:32, Andrew Chase wrote:

Maybe an animal beginning with P would be a good Mnemonic

device (and good

for alliteration; think The PHP Panda or The PHP Platypus.)

Hmm, I

guess Panda and Platypus aren't particularly powerful animals,

though. :/

Other animals beginning with P:

Pelican
Panther (cheesy)
Polliwog
Protozoa

Of course, the Penguin is already spoken for. :)

Personally, I don't have a problem with the current PHP logo...

From a

marketing standpoint, I don't know; has MySQL become a more

attractive

prospect to the pointy haired bosses of the world since they

streamlined

their logo and added a Dolphin?  It would be interesting to

know.

If PHP was going to adopt a mascot, I kinda like the idea of the

Platypus.

If you want to force a metaphor, think of PHP as an interesting

language

that fits between traditional scripting languages and the HTTP

server - sort

of like the Platypus is an interesting critter that fits

somewhere between

mammal and.. whatever else. :)

-Andy


-Original Message-
From: Tim Ward [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 11, 2001 2:02 AM
To: PHP; Valentin V. Petruchek
Subject: RE: [PHP] Logo proposal


Chinchillas are fluffy, and I don't think anyone is using them

for their

logo.

  --
  From:  Valentin V. Petruchek [SMTP:[EMAIL PROTECTED]]
  Sent:  10 December 2001 16:58
  To:  PHP
  Subject:  [PHP] Logo proposal

  Hello world of php-programmers!

  It seemes to me PHP is very powerful tool and very popular

among

  web-programmers, too. As for me I use php for solving web

tasks for

2 years
  and I'm very satisfied with it.

  It seemes to me current PHP logo (can be found by
  http://www.php.net/gifs/logo.gif) doesn't suite to PHP.

It's common

logo
  without any idea except using title in it.

  I propose to create and develop new PHP logo corresponding

to its

power.

  My propose is WoodPecker (e.g. like Woody).

  Other propositions?

  Respectfully, Zliy Pes http://www.zliypes.com.ua







--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: 

[EMAIL PROTECTED] To 

contact the list administrators, e-mail: php-list-

[EMAIL PROTECTED]


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: 

[EMAIL PROTECTED]  To 

contact the list administrators, e-mail: php-list- 

[EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: 
[EMAIL PROTECTED]





-- 
http://www.fedoXpress.com
Looking for a new email address?
http://www.fedoXpress.com





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Re: Script like this for PHP

2001-12-13 Thread Dasmeet Singh Arora

You may also try using flash. It looks good and files are small too

Peter wrote:

The pop outs are done using JavaScript. Its something to do with setting
the STYLE=visibility: hidden property of the HTML element. I'm not sure
exactly how its done though.
If you can get your hands on a copy of IE 4 (or maybe it was IE 3!), this
kind of thing was done on the 'friendly error messages'. The code was very
simple there and easy to follow through.




Indera [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

Hello,

I came across this FAQ and I really would like to create my FAQ like this

one. I was wondering if

someone would take a look at this link and let me know how it's created. I

looked at the code, but

can't figure out how it's done.

http://www.installshield.com/ds/info/generalqa.asp

Thanks
Indera





-- 
http://www.fedoXpress.com
Looking for a new email address?
http://www.fedoXpress.com





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] http referer problems

2001-12-13 Thread sgibbs

For some reason, the following if  statement isn't working.  Maybe I haven't
had enough coffee to drink or maybe I've had too much - what am I missing?

if ($efa != nm || $HTTP_REFERER !=
http://www.globalhealth.org/news/article.php3?id=1526;){
do this);
}

Thank you, Shawna

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Another Installation Problem...sorry

2001-12-13 Thread Sam

Hi all,

I've checked most of the archive, but nothing I've found has worked.

I've installed PWS and then also PHP.

I've done everything that the install file says to, i.e. checked the
registry entry, moved the php4ts file, ticked the execute file, but when I
go to a PHP file on the web, it looks like this...


?
 print test;
?

So for some reason it's not processing.

Any ideas?

Sam



RE: [PHP] http referer problems

2001-12-13 Thread Boget, Chris

 if ($efa != nm || $HTTP_REFERER !=
 http://www.globalhealth.org/news/article.php3?id=1526;){
 do this);
 }

Not sure what the exact problem is as you haven't been all that
descriptive as to what the values are or what is happening, but
you should know that $HTTP_REFERER can't be trusted.  You
may not always get that value passed to you.

Chris



RE: [PHP] http referer problems

2001-12-13 Thread Darren Gamble

Good day,

It's a bit difficult to determine what the problem is without more
information.

If you add before this:

echo pre|$efa|/prepre|$HTTP_REFERER|/pre;

What is the output?


Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
Calgary, Alberta, Canada
T2P 4L4
(403) 781-4948


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 13, 2001 7:58 AM
To: [EMAIL PROTECTED]
Subject: [PHP] http referer problems


For some reason, the following if  statement isn't working.  Maybe I haven't
had enough coffee to drink or maybe I've had too much - what am I missing?

if ($efa != nm || $HTTP_REFERER !=
http://www.globalhealth.org/news/article.php3?id=1526;){
do this);
}

Thank you, Shawna

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Searching for a new provider

2001-12-13 Thread Dasmeet Singh Arora

Try http://www.portland.co.uk

Andy wrote:

Hi there, I am searching for a provider who fullfills those criterias and
does not cost a fortune:

- PHP = 4.06 bzw. PHP 4.x mit GDLibrary ab 2.0


- GDLibrary = 2.0


  - PHP installed as module

- mind 5 Subdomains


- mind 100 MB Speicherplatz


- evtl. Java VM


- MySQL




Thanx andy





-- 
http://www.fedoXpress.com
Looking for a new email address?
http://www.fedoXpress.com





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Online editor that edits all pages

2001-12-13 Thread Andreas D. Landmark

At 13.12.2001 11:30, George Pitcher wrote:
I'm using EditPlus to edit files on my server, from my laptop, but that
accesses the files via the NT network, which might not be what yopu are
looking for.

And EditPlus is hardly an online editor,

and I *don't* want a cc of a thread I didn't start as I am subscribed to the
list (how would I otherwise been able to reply?)


-- 
Andreas D Landmark / noXtension
Real Time, adj.:
 Here and now, as opposed to fake time, which only occurs there
and then.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Beginner's CURL

2001-12-13 Thread Erik Price

I asked this question three times this week!!  :)
http://marc.theaimsgroup.com/?l=php-generalm=100817196924450w=1

No BFD.  I discovered /bin/links in the process and that worked for the 
download.

-- Erik






On Wednesday, December 12, 2001, at 09:40  PM, Rasmus Lerdorf wrote:

 You need to escape the ? or simply grab it directly using

 curl -O http://us2.php.net/distributions/php-4.1.0.tar.gz

 (yes, using the mirrors is a good thing)

 -Rasmus

 On Wed, 12 Dec 2001, Weston Houghton wrote:


 Ok,

 So I'm an admitted newbie to using CURL, and idea why this doesn't 
 work?

 curl -O 
 http://www.php.net/do_download.php?download_file=php-4.1.0.tar.gz
 curl: No match.

 Thanks,
 Wes





 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] lotus notes and PHP

2001-12-13 Thread Rodrigo Peres

Hi list,

After an extensive search, without results, in web, I'd like to know with
there's a way to integrate PHP4 and Lotus Notes. I'll develop a new module
to a intranet that is based in lotus notes.

Thank's in advance

Rodrigo Peres


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] streaming media via php

2001-12-13 Thread Stephen VanDyke

Hello PHP people :)

I have a tough one here, I wrote a content script that plays media files,
but I can't seem to get things to actually buffer and stream as they should.
Here's the conundrum:

http://server/media/file.asf - Media player will buffer and start playing
before download completes
http://server/content.php?f=media/file.asf - Media player has to download
entire file before it starts trying to play

Here's the source of content.php, anyone see anything obvious that I'm
missing? I've been all over the HTTP/1.1 spec and media RFCs trying to
figure out what the heck I'm missing. Windows Media Player interprets the
media name as content if that's any help. Alse, the mime types are all
correct so that's not the issue, I'm just trying to figure out how to make
the players buffer+play instead of download+play.

?php
$mime_type = strtolower(strrchr($f,'.'));
$mime_type_array = array(
'.asf'  = 'application/vnd.ms-asf',
'.avi'  = 'video/x-msvideo',
'.gif'  = 'image/gif',
'.jpg'  = 'image/jpeg',
'.mov'  = 'video/quicktime',
'.mpe'  = 'video/mpeg',
'.mpeg' = 'video/mpeg',
'.mpg'  = 'video/mpeg',
'.ra'   = 'audio/x-pn-realaudio',
'.ram'  = 'audio/x-pn-realaudio',
'.rm'   = 'audio/x-pn-realaudio',
'.wmv'  = 'audio/x-ms-wmv'
);

// this is our security, bleh
if(!in_array($mime_type,array_keys($mime_type_array)))
{
header(Location: /error.php);
}
$filename = '/path/to/'.$f;
$dlname = substr(strrchr($filename,'/'),1);
$offset = (isset($nocache)?0:(86400 * 3));
header(Accept-Ranges: bytes);
header(Expires: .gmdate(D, d M Y H:i:s \G\M\T, time() + $offset));
header(Cache-Control: max-age=.$offset);
header(Last-modified : .gmdate(D, d M Y H:i:s \G\M\T,
filemtime($filename)));
header(Content-Length: .filesize($filename));
header(Content-Disposition: filename=$dlname);
if($debugx==1)
{
phpinfo();
}
else
{
header(Content-Type: .$mime_type_array[$mime_type]);
@readfile($filename);
}
?

Thanks in advance for any help,
Please cc me on any replies since I am not on this mailing list.

Stephen VanDyke


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Need high bandwidth provider for my Asian community site

2001-12-13 Thread Prottoss

Conisder just using str_replace(\n, br\n, $your_string) instead of 
nl2br.

On December 13, 2001 10:10 am, sunny AT wde wrote:
 yeah i'll have a look at making the html a lot smaller as well :) i
 guess thats a cheap way of tryin to hold out on the machine as much
 as possible.

 the br / unfortunately happens automatically when i use the nl2br
 function before stuff goes into the database. anyway of avoiding
 that?

 /sunny

 --- Andrew Brampton [EMAIL PROTECTED] wrote:
  Well just looking at the source of your HTML, you could save
  yourself some
  bandwidth by shrinking it a bit.
  For example
  change the br / into br
  place your JavaScript into a .js file
  remove a lot of the new lines
  also remove the tabs.
 
  Just doing this I changed the file size of a random forum page from
  21090Bytes to 19192Bytes.
  Thats saved you about 10%. That 2GB a month :)
 
  You could shrink it even more by removing the  around attributes
  in html
  tags (but that may break some browsers)
 
  Also if possible you could get the GZip module installed for
  apache. This
  GZips the pages up, sends them, and then your browser automatically
  ungzips
  them. This only occurs with browsers that support it. But a quick
  test
  changed your 20k file into a 3k file. That even more of an
  improvement for a
  little server side processing. (thats 20GB into 3GB :)). But I
  guess your
  Host wouldn't like to do this for you unless it was your own
  dedicated box.
 
  Hope these suggestions help you some how
 
  Andrew
  - Original Message -
  From: sunny AT wde [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Thursday, December 13, 2001 1:13 PM
  Subject: Re: [PHP] Need high bandwidth provider for my Asian
  community site
 
   I also forgot to ask:
  
   are messageboards really big bandwidth suckers?? I get about 2000
   messages posted a day on my messageboard and I use up nealry 20
 
  gigs
 
   with that. Is this normal?
  
   My site is - www.barfiCulture.com
  
   thanks
  
   sunny
  
   --- sunny AT wde [EMAIL PROTECTED] wrote:
Hi all,
   
I manage an South-Asian community site from the UK (but hosted
 
  in
 
USA) which is currently wolfing down 20 GB per month and is
increasing to about 25 very soon as the popularity grows.
   
I've searched the mailing lists, but couldn't find a good
 
  solution.
 
How shall I go about increasing bandwidth? Should I go for a
dedicated boxes? Or does anyone know a host that provides 25-30
 
  a
 
month fairly cheaply (its a non-commercial site).
   
TIA
   
sunny
   
__
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com
   
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail:
[EMAIL PROTECTED]
  
   __
   Do You Yahoo!?
   Check out Yahoo! Shopping and Yahoo! Auctions for all of
   your unique holiday gifts! Buy at http://shopping.yahoo.com
   or bid at http://auctions.yahoo.com
  
   --
   PHP General Mailing List (http://www.php.net/)
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
   To contact the list administrators, e-mail:
 
  [EMAIL PROTECTED]

 __
 Do You Yahoo!?
 Check out Yahoo! Shopping and Yahoo! Auctions for all of
 your unique holiday gifts! Buy at http://shopping.yahoo.com
 or bid at http://auctions.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Antialiasing with GD..?

2001-12-13 Thread Phil Driscoll

On Wednesday 12 December 2001 8:35 am, Jan Maska wrote:
 Hi,
 I have the following problem:

 Using the database, I create a graph like __.--._.--._/\.__
 In order to keep exact colors and prevent a JPEG detail distortion, I use
 PNG format as output.
 This has one disadvantage: all lines are rough and I don't know how to
 antialias them.

 Can anyone help?

I've never done this in PHP but clearly writing your own antialiased line 
drawing algorithm in PHP will most likely produce something which runs too 
slowly, so you need to do what you can in external libraries.

I would draw the line into a bitmap which was exactly twice the size required 
and then scale the image back to the correct size when you've done with 
imagecopyresampled.

Cheers

-- 
Phil Driscoll

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Antialiasing with GD..?

2001-12-13 Thread Rasmus Lerdorf

The jpgraph graphing package written in PHP has such an anti-aliasing line 
draw routine written in PHP and it isn't actually that slow.  Check it out 
at http://www.aditus.nu/jpgraph/

-Rasmus

On Thu, 13 Dec 2001, Phil Driscoll wrote:

 On Wednesday 12 December 2001 8:35 am, Jan Maska wrote:
  Hi,
  I have the following problem:
 
  Using the database, I create a graph like __.--._.--._/\.__
  In order to keep exact colors and prevent a JPEG detail distortion, I use
  PNG format as output.
  This has one disadvantage: all lines are rough and I don't know how to
  antialias them.
 
  Can anyone help?
 
 I've never done this in PHP but clearly writing your own antialiased line 
 drawing algorithm in PHP will most likely produce something which runs too 
 slowly, so you need to do what you can in external libraries.
 
 I would draw the line into a bitmap which was exactly twice the size required 
 and then scale the image back to the correct size when you've done with 
 imagecopyresampled.
 
 Cheers
 
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Performance

2001-12-13 Thread Nathan Cassano


I have always assumed straight html was faster than function output. My
logic being that quoted output requires more parsing than straight
html. But they may be the same speed after a simple optimization pass. 

-Original Message-
From: René Fournier [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, November 13, 2001 9:05 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: [PHP] Performance


Is it true that mixing HTML and PHP--switching back and forth with 
?php ?  tags--slows down performance? (I'm using PHP4.) Is it better 
to echo output than to drop out of PHP mode?


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] intergration?

2001-12-13 Thread Kunal Jhunjhunwala

Hi,
Ive been trying to figure out ways to intergrate two applications to use a
common user information database... example: intergrating phpnuke to work
with vbulletin.. so the use doesnt have to re-gister to use each service...
any suggestions on how to go about doing this? I have the dbase structure of
both the appz, and can alter the code for one of the apps.. not the both...
so its a kinda one sided thing..
what would be the best approach for something like this?
Regards,
Kunal Jhunjhunwala


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Performance

2001-12-13 Thread Jim Lucas

the site that I design for has converted all of the echo; print()  and any
other printing function of php into a simple breakout into HTML.

ie:
?
for($i=0;$i10;$i++)
{
?We have done ?=$i? loop.?
}
?

We have done performance testing on most everything that can be done out put
and include()/require() stuff.  If you would like information on the
performance results I might be able to round up some of the data. It is
faster and cleaner.

Jim Lucas
www.bend.com


- Original Message -
From: René Fournier [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, November 13, 2001 9:05 AM
Subject: [PHP] Performance


Is it true that mixing HTML and PHP--switching back and forth with
?php ?  tags--slows down performance? (I'm using PHP4.) Is it better
to echo output than to drop out of PHP mode?

And concerning database connections, my ISP asks that I always close a
MySQL connection with a mysql_close()--which I can understand. But I'm
curious, if I have to make, say, 10 SELECTs throughout a page (in the
header, body, and footer), is it perhaps faster to use the mysql_close()
at the very end of the page (in the bottom of the footer.inc)? In other
words, is there any disadvantage performance-wise (or stability reason)
to open and immediately thereafter close mysql connections?

Can anyone recommend an article or two on coding techniques for
improving PHP and MySQL performance? I don't wan to spend the rest of my
life optimizing my php code, but if I knew a few basic rules about its
performance characteristics, I might be able to make better decisions
when coding. Thanks.

...Rene

---
René Fournier,
[EMAIL PROTECTED]


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] intergration?

2001-12-13 Thread John S. Huggins


I have these issues too and the only thing I knew to do was develop my own
user management system with a simple interface to other programs.  My
other programs are custom too.   I used Tim Perdue's user system as a code
base so I am duty bound to distribute my changes to the open source crowd
soon.

The real solution is to have the open-source crowd agree on a few user
management systems and then offer hooks into each.  So many projects have
their own home-grown user systems that re-inventing the wheel occurs
constantly.

User Management is of sufficient importance that it really should have its
own legion of programmers concentrating on making it secure and useful to
other applications.

If any of you know more about this topic, please chime in with your
comments.

John

On Thu, 13 Dec 2001, Kunal Jhunjhunwala wrote:

-Hi,
-Ive been trying to figure out ways to intergrate two applications to use a
-common user information database... example: intergrating phpnuke to work
-with vbulletin.. so the use doesnt have to re-gister to use each service...
-any suggestions on how to go about doing this? I have the dbase structure of
-both the appz, and can alter the code for one of the apps.. not the both...
-so its a kinda one sided thing..
-what would be the best approach for something like this?
-Regards,
-Kunal Jhunjhunwala
-
-
--- 
-PHP General Mailing List (http://www.php.net/)
-To unsubscribe, e-mail: [EMAIL PROTECTED]
-For additional commands, e-mail: [EMAIL PROTECTED]
-To contact the list administrators, e-mail: [EMAIL PROTECTED]
-

**

John Huggins
VANet
7101 Oriole Avenue
Springfield, VA 22150
703-912-6453
703-912-4831 fax

[EMAIL PROTECTED]
http://www.va.net/

**


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Performance

2001-12-13 Thread Nicolas Costes

If you would like information on the
performance results I might be able to round up some of the data.

er, ... YEs, we'd like  !!!
;-)

Le Jeudi 13 Décembre 2001 18:45, Jim Lucas a écrit :
 the site that I design for has converted all of the echo; print()  and
 any other printing function of php into a simple breakout into HTML.

 ie:
 ?
 for($i=0;$i10;$i++)
 {
 ?We have done ?=$i? loop.?
 }
 ?

 We have done performance testing on most everything that can be done out
 put and include()/require() stuff.  If you would like information on the
 performance results I might be able to round up some of the data. It is
 faster and cleaner.

 Jim Lucas
 www.bend.com


 - Original Message -
 From: René Fournier [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Sent: Tuesday, November 13, 2001 9:05 AM
 Subject: [PHP] Performance


 Is it true that mixing HTML and PHP--switching back and forth with
 ?php ?  tags--slows down performance? (I'm using PHP4.) Is it better
 to echo output than to drop out of PHP mode?

 And concerning database connections, my ISP asks that I always close a
 MySQL connection with a mysql_close()--which I can understand. But I'm
 curious, if I have to make, say, 10 SELECTs throughout a page (in the
 header, body, and footer), is it perhaps faster to use the mysql_close()
 at the very end of the page (in the bottom of the footer.inc)? In other
 words, is there any disadvantage performance-wise (or stability reason)
 to open and immediately thereafter close mysql connections?

 Can anyone recommend an article or two on coding techniques for
 improving PHP and MySQL performance? I don't wan to spend the rest of my
 life optimizing my php code, but if I knew a few basic rules about its
 performance characteristics, I might be able to make better decisions
 when coding. Thanks.

 ...Rene

 ---
 René Fournier,
 [EMAIL PROTECTED]

-- 
 ( * Nicolas Costes,
 //\\  IUT de La Roche / Yon
( \/ ) [EMAIL PROTECTED]
http://luxregina.free.fr

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Logo proposal - voting script!

2001-12-13 Thread Michael Cronström

OK guys,

a voting script!

at: http://zoon.se/vote/logo.php

try it :)

Michael Cronstrom
Web Inventor

At 13:26 13/12/01, you wrote:
I'd kind of ignored this whole thread thinking it was going on and on, but
in the end I have to say something :)

None of the other animals really captured my attention, but having an Ant
would be quite cool.  Not because of the ant on its own, but it's usually a
whole bunch of ants that really really do achieve something (just
remembering all those national geographic programs). It's a bunch of people
that have grown PHP into what it is and I think that fits.  I'd go for the
ant myself :)

Someone put up a voting script !

Ade

--- i n o v i c a h o s t i n g . c o m --

Powerful hosting from www.inovicahosting.com



  -Original Message-
  From: Valentin V. Petruchek [mailto:[EMAIL PROTECTED]]
  Sent: 13 December 2001 12:05
  To: PHP
  Subject: Re: [PHP] Logo proposal
 
 
  Aunt is more similar very similar to PHP. Very industrious and powerful ;)
 
  - Original Message -
  From: PHPGalaxy.com [EMAIL PROTECTED]
  To: Php-General [EMAIL PROTECTED]
  Sent: Thursday, December 13, 2001 1:31 PM
  Subject: Re: [PHP] Logo proposal
 
 
   Actually I heard it's 50 times it's weight, but I refuse to be
  anal about
  it. =)
  
   Who's to say ants dont work just as hard in the winter? We can't se em..
  unless
   it's because they're dormant in the winter, in which case I just made
  myself look
   INCREDIBLY stupid =)
  
  
 
 
 
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]
 


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Performance

2001-12-13 Thread Shane Wright


another resounding YES vote on this corner

[anything so I dont have to do it all myself]

--
Shane

On Thursday 13 Dec 2001 5:45 pm, Jim Lucas wrote:
 the site that I design for has converted all of the echo; print()  and
 any other printing function of php into a simple breakout into HTML.

 ie:
 ?
 for($i=0;$i10;$i++)
 {
 ?We have done ?=$i? loop.?
 }
 ?

 We have done performance testing on most everything that can be done out
 put and include()/require() stuff.  If you would like information on the
 performance results I might be able to round up some of the data. It is
 faster and cleaner.

 Jim Lucas
 www.bend.com


 - Original Message -
 From: René Fournier [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Sent: Tuesday, November 13, 2001 9:05 AM
 Subject: [PHP] Performance


 Is it true that mixing HTML and PHP--switching back and forth with
 ?php ?  tags--slows down performance? (I'm using PHP4.) Is it better
 to echo output than to drop out of PHP mode?

 And concerning database connections, my ISP asks that I always close a
 MySQL connection with a mysql_close()--which I can understand. But I'm
 curious, if I have to make, say, 10 SELECTs throughout a page (in the
 header, body, and footer), is it perhaps faster to use the mysql_close()
 at the very end of the page (in the bottom of the footer.inc)? In other
 words, is there any disadvantage performance-wise (or stability reason)
 to open and immediately thereafter close mysql connections?

 Can anyone recommend an article or two on coding techniques for
 improving PHP and MySQL performance? I don't wan to spend the rest of my
 life optimizing my php code, but if I knew a few basic rules about its
 performance characteristics, I might be able to make better decisions
 when coding. Thanks.

 ...Rene

 ---
 René Fournier,
 [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Logo proposal - voting script!

2001-12-13 Thread R'twick Niceorgaw

While voting I got this error

Warning: Cannot add header information - headers already sent by (output
started at /home/b1642/public_html/vote/logo.php:6) in
/home/b1642/public_html/vote/logo.php on line 49

- Original Message -
From: Michael Cronström [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, December 13, 2001 12:55 PM
Subject: [PHP] Logo proposal - voting script!


 OK guys,

 a voting script!

 at: http://zoon.se/vote/logo.php

 try it :)

 Michael Cronstrom
 Web Inventor

 At 13:26 13/12/01, you wrote:
 I'd kind of ignored this whole thread thinking it was going on and on,
but
 in the end I have to say something :)
 
 None of the other animals really captured my attention, but having an
Ant
 would be quite cool.  Not because of the ant on its own, but it's usually
a
 whole bunch of ants that really really do achieve something (just
 remembering all those national geographic programs). It's a bunch of
people
 that have grown PHP into what it is and I think that fits.  I'd go for
the
 ant myself :)
 
 Someone put up a voting script !
 
 Ade
 
 --- i n o v i c a h o s t i n g . c o m --
 
 Powerful hosting from www.inovicahosting.com
 
 
 
   -Original Message-
   From: Valentin V. Petruchek [mailto:[EMAIL PROTECTED]]
   Sent: 13 December 2001 12:05
   To: PHP
   Subject: Re: [PHP] Logo proposal
  
  
   Aunt is more similar very similar to PHP. Very industrious and
powerful ;)
  
   - Original Message -
   From: PHPGalaxy.com [EMAIL PROTECTED]
   To: Php-General [EMAIL PROTECTED]
   Sent: Thursday, December 13, 2001 1:31 PM
   Subject: Re: [PHP] Logo proposal
  
  
Actually I heard it's 50 times it's weight, but I refuse to be
   anal about
   it. =)
   
Who's to say ants dont work just as hard in the winter? We can't se
em..
   unless
it's because they're dormant in the winter, in which case I just
made
   myself look
INCREDIBLY stupid =)
   
   
  
  
  
  
  
   --
   PHP General Mailing List (http://www.php.net/)
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
   To contact the list administrators, e-mail:
[EMAIL PROTECTED]
  
 
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Can i do this?

2001-12-13 Thread Jeremy Reed

However, in your if statement, you need to nest your statements with
parenthesis.

Jack Dempsey [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 didn't check your code specifically, but you can definitely have arrays
 nested inside of arrays...to see how to print them out use something like
 print_r to look  at the structure...

 -Original Message-
 From: Daniel Alsén [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, December 13, 2001 10:12 AM
 To: PHP
 Subject: [PHP] Can i do this?


 Hi,

 can i do this?

 $num_vals = array ();
 for ($i=0; $i10; $i++)
 {
   $shot_count = SELECT COUNT(*) FROM statistik WHERE
 shooter='$shooter_login'  shot_one = '$i' || shooter='$shooter_login' 
 shot_two = '$i' || shooter='$shooter_login'  shot_three = '$i' ||
 shooter='$shooter_login'  shot_four = '$i' || shooter='$shooter_login'

 shot_five = '$i';
   $result = mysql_query($shot_count);
   $num_vals[$i] = mysql_fetch_array($result);
 }

 I guess it´s the last row that is troubling - getting an array into an
 array. If the code is good - how do i echo the results?

 # Daniel Alsén| www.mindbash.com #
 # [EMAIL PROTECTED]  | +46 704 86 14 92 #
 # ICQ: 63006462   | +46 8 694 82 22  #
 # PGP: http://www.mindbash.com/pgp/  #


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Logo proposal - voting script!

2001-12-13 Thread Valentin V. Petruchek


AND WHAT ABOUT WOODPECKER! He started everything!

- Original Message -
From: Michael Cronström [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, December 13, 2001 7:55 PM
Subject: [PHP] Logo proposal - voting script!


 OK guys,

 a voting script!

 at: http://zoon.se/vote/logo.php

 try it :)

 Michael Cronstrom
 Web Inventor

 At 13:26 13/12/01, you wrote:
 I'd kind of ignored this whole thread thinking it was going on and on,
but
 in the end I have to say something :)
 
 None of the other animals really captured my attention, but having an
Ant
 would be quite cool.  Not because of the ant on its own, but it's usually
a
 whole bunch of ants that really really do achieve something (just
 remembering all those national geographic programs). It's a bunch of
people
 that have grown PHP into what it is and I think that fits.  I'd go for
the
 ant myself :)
 
 Someone put up a voting script !
 
 Ade
 
 --- i n o v i c a h o s t i n g . c o m --
 
 Powerful hosting from www.inovicahosting.com
 
 
 
   -Original Message-
   From: Valentin V. Petruchek [mailto:[EMAIL PROTECTED]]
   Sent: 13 December 2001 12:05
   To: PHP
   Subject: Re: [PHP] Logo proposal
  
  
   Aunt is more similar very similar to PHP. Very industrious and
powerful ;)
  
   - Original Message -
   From: PHPGalaxy.com [EMAIL PROTECTED]
   To: Php-General [EMAIL PROTECTED]
   Sent: Thursday, December 13, 2001 1:31 PM
   Subject: Re: [PHP] Logo proposal
  
  
Actually I heard it's 50 times it's weight, but I refuse to be
   anal about
   it. =)
   
Who's to say ants dont work just as hard in the winter? We can't se
em..
   unless
it's because they're dormant in the winter, in which case I just
made
   myself look
INCREDIBLY stupid =)
   
   
  
  
  
  
  
   --
   PHP General Mailing List (http://www.php.net/)
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
   To contact the list administrators, e-mail:
[EMAIL PROTECTED]
  
 
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Performance

2001-12-13 Thread Mike Eheler

Yes! Please release some of these results. I am *very* interested. I 
have been coding using the method you demonstrate (terminating PHP any 
time possible, and rarely, if ever, using echo and print).

I would love to know how much, if any, difference it makes.

Mike

Jim Lucas wrote:

 the site that I design for has converted all of the echo; print()  and any
 other printing function of php into a simple breakout into HTML.
 
 ie:
 ?
 for($i=0;$i10;$i++)
 {
 ?We have done ?=$i? loop.?
 }
 ?
 
 We have done performance testing on most everything that can be done out put
 and include()/require() stuff.  If you would like information on the
 performance results I might be able to round up some of the data. It is
 faster and cleaner.
 
 Jim Lucas
 www.bend.com
 
 
 - Original Message -
 From: René Fournier [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Sent: Tuesday, November 13, 2001 9:05 AM
 Subject: [PHP] Performance
 
 
 Is it true that mixing HTML and PHP--switching back and forth with
 ?php ?  tags--slows down performance? (I'm using PHP4.) Is it better
 to echo output than to drop out of PHP mode?
 
 And concerning database connections, my ISP asks that I always close a
 MySQL connection with a mysql_close()--which I can understand. But I'm
 curious, if I have to make, say, 10 SELECTs throughout a page (in the
 header, body, and footer), is it perhaps faster to use the mysql_close()
 at the very end of the page (in the bottom of the footer.inc)? In other
 words, is there any disadvantage performance-wise (or stability reason)
 to open and immediately thereafter close mysql connections?
 
 Can anyone recommend an article or two on coding techniques for
 improving PHP and MySQL performance? I don't wan to spend the rest of my
 life optimizing my php code, but if I knew a few basic rules about its
 performance characteristics, I might be able to make better decisions
 when coding. Thanks.
 
 ...Rene
 
 ---
 René Fournier,
 [EMAIL PROTECTED]
 
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 
 
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Logo proposal - voting script!

2001-12-13 Thread Valentin V. Petruchek

Warning: Cannot add header information - headers already sent by (output
started at /home/b1642/public_html/vote/logo.php:6) in
/home/b1642/public_html/vote/logo.php on line 49

Seemes to be a bug.
- Original Message -
From: Michael Cronström [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, December 13, 2001 7:55 PM
Subject: [PHP] Logo proposal - voting script!


 OK guys,

 a voting script!

 at: http://zoon.se/vote/logo.php

 try it :)

 Michael Cronstrom
 Web Inventor

 At 13:26 13/12/01, you wrote:
 I'd kind of ignored this whole thread thinking it was going on and on,
but
 in the end I have to say something :)
 
 None of the other animals really captured my attention, but having an
Ant
 would be quite cool.  Not because of the ant on its own, but it's usually
a
 whole bunch of ants that really really do achieve something (just
 remembering all those national geographic programs). It's a bunch of
people
 that have grown PHP into what it is and I think that fits.  I'd go for
the
 ant myself :)
 
 Someone put up a voting script !
 
 Ade
 
 --- i n o v i c a h o s t i n g . c o m --
 
 Powerful hosting from www.inovicahosting.com
 
 
 
   -Original Message-
   From: Valentin V. Petruchek [mailto:[EMAIL PROTECTED]]
   Sent: 13 December 2001 12:05
   To: PHP
   Subject: Re: [PHP] Logo proposal
  
  
   Aunt is more similar very similar to PHP. Very industrious and
powerful ;)
  
   - Original Message -
   From: PHPGalaxy.com [EMAIL PROTECTED]
   To: Php-General [EMAIL PROTECTED]
   Sent: Thursday, December 13, 2001 1:31 PM
   Subject: Re: [PHP] Logo proposal
  
  
Actually I heard it's 50 times it's weight, but I refuse to be
   anal about
   it. =)
   
Who's to say ants dont work just as hard in the winter? We can't se
em..
   unless
it's because they're dormant in the winter, in which case I just
made
   myself look
INCREDIBLY stupid =)
   
   
  
  
  
  
  
   --
   PHP General Mailing List (http://www.php.net/)
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
   To contact the list administrators, e-mail:
[EMAIL PROTECTED]
  
 
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Need high bandwidth provider for my Asian community site

2001-12-13 Thread l0t3k

Sunny,
  AFAICR, br / is for Netscrape, which apparently cant understand br/
for some reason..

Sunny At Wde [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 yeah i'll have a look at making the html a lot smaller as well :) i
 guess thats a cheap way of tryin to hold out on the machine as much
 as possible.

 the br / unfortunately happens automatically when i use the nl2br
 function before stuff goes into the database. anyway of avoiding
 that?

 /sunny





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Performance

2001-12-13 Thread René Fournier

That certainly makes sense on one level, but I think it really comes 
down to the question, what is more compute intensive--echoing the HTML 
while in PHP mode, or context-switching to HTML and back again to PHP? 
(It could be that the difference, if any, is negligible--but I'd like to 
at least know BEFORE I write 100 million lines of otherwise perfect 
code :-)

...Rene


On Thursday, December 13, 2001, at 10:26  AM, Nathan Cassano wrote:


 I have always assumed straight html was faster than function output. My
 logic being that quoted output requires more parsing than straight
 html. But they may be the same speed after a simple optimization pass.

 -Original Message-
 From: René Fournier [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, November 13, 2001 9:05 AM
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: [PHP] Performance


 Is it true that mixing HTML and PHP--switching back and forth with
 ?php ?  tags--slows down performance? (I'm using PHP4.) Is it better
 to echo output than to drop out of PHP mode?


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



---
René Fournier
[EMAIL PROTECTED]


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Connecting MS SQL

2001-12-13 Thread pong-TC

Hello All

I am trying to connect MS SQL, but got the error message as follows:

Warning: MS SQL message: Login failed for user 'pong'. (severity 14) in
d:\inetpub\wwwroot\cgi-bin\mailman.php on line 26

Warning: MS SQL: Unable to connect to server: dilbert in
d:\inetpub\wwwroot\cgi-bin\mailman.php on line 26
Cannot connect to the database.

I followed all instructions before I did try ie. copy php_mssql.dll to
winnt/system32 directory and uncomment extension in php.ini.  Still no
luck, anyone, please help.  I am running PHP 4.1.0 on IIS 5.

Thank you.
Pong


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] ordered alpabeticaly list

2001-12-13 Thread Rodrigo Peres

Hi list,

I have a mysql tables, with names on it. I'd like to select this names
ordered by name and output it to a html in alphabetical order, but separates
by letter, ex: a, names with a, b
I've done the select, but I can't figure out how to output the respective
letters separated.


Thank's in advance

Rodrigo Peres

-- 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Need high bandwidth provider for my Asian community site

2001-12-13 Thread Shane Wright


but it can understand br

[ive never had any problems anyways...]

--
Shane

On Thursday 13 Dec 2001 6:14 pm, l0t3k wrote:
 Sunny,
   AFAICR, br / is for Netscrape, which apparently cant understand br/
 for some reason..

 Sunny At Wde [EMAIL PROTECTED] wrote in message
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

  yeah i'll have a look at making the html a lot smaller as well :) i
  guess thats a cheap way of tryin to hold out on the machine as much
  as possible.
 
  the br / unfortunately happens automatically when i use the nl2br
  function before stuff goes into the database. anyway of avoiding
  that?
 
  /sunny

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Connecting MS SQL

2001-12-13 Thread Shane Wright

Hi

you're getting MS SQL messages so you have the MS SQL library installed ok 
(otherwise you'd be getting 'undefined function' or thereabouts...)

The problem is most likely with MS SQL itself - is the username/password set 
up and is access allowed from the machine your making the connection from 
(most likely localhost)?

--
Shane

On Thursday 13 Dec 2001 6:14 pm, pong-TC wrote:
 Hello All

 I am trying to connect MS SQL, but got the error message as follows:

 Warning: MS SQL message: Login failed for user 'pong'. (severity 14) in
 d:\inetpub\wwwroot\cgi-bin\mailman.php on line 26

 Warning: MS SQL: Unable to connect to server: dilbert in
 d:\inetpub\wwwroot\cgi-bin\mailman.php on line 26
 Cannot connect to the database.

 I followed all instructions before I did try ie. copy php_mssql.dll to
 winnt/system32 directory and uncomment extension in php.ini.  Still no
 luck, anyone, please help.  I am running PHP 4.1.0 on IIS 5.

 Thank you.
 Pong

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Performance

2001-12-13 Thread Dan McCullough

Here is one thing that I do, of course there is 50 ways you can do anything.
All coding, well 90% of the PHP is done in the head, all output in coposed in 
variables, and
outputted through the code.  All SQL is done there as well, and an mysql close is done 
at the end
of that area.  If there is any logic in the where the html is, its smallish if else 
statments.

Small example.
?
all php logic.
$sql = ;
$cat_output = tabletr
while ($category = mysql($result)) {
$cat_output .= td.$category['name']./td;
}
$cat_output = /tr/table
$sql = ;
if () {
$subcat_output .= ;
} else {
$subcat_output .= ;
}
$sql = ;
$sql = ;
$sql = ;
mysql_close();
?

!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN

html
head
titleUntitled/title
/head

body

?print $cat_output; ?

/body
/html


Something a little like that



--- René_Fournier [EMAIL PROTECTED] wrote:
 Is it true that mixing HTML and PHP--switching back and forth with 
 ?php ?  tags--slows down performance? (I'm using PHP4.) Is it better 
 to echo output than to drop out of PHP mode?
 
 And concerning database connections, my ISP asks that I always close a 
 MySQL connection with a mysql_close()--which I can understand. But I'm 
 curious, if I have to make, say, 10 SELECTs throughout a page (in the 
 header, body, and footer), is it perhaps faster to use the mysql_close() 
 at the very end of the page (in the bottom of the footer.inc)? In other 
 words, is there any disadvantage performance-wise (or stability reason) 
 to open and immediately thereafter close mysql connections?
 
 Can anyone recommend an article or two on coding techniques for 
 improving PHP and MySQL performance? I don't wan to spend the rest of my 
 life optimizing my php code, but if I knew a few basic rules about its 
 performance characteristics, I might be able to make better decisions 
 when coding. Thanks.
 
 ...Rene
 
 ---
 René Fournier,
 [EMAIL PROTECTED]
 
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 


__
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Apache keeping php waiting on output flush

2001-12-13 Thread George Whiffen

Hi,

Apologies if this is more of an Apache question than a php one, but as it's about the 
relationship
between them, I thought it was safe to bring it up here ;)

While investigating a possible performance issue, I discovered that (according to 
microtime()), my
script runs 5 times faster for a local client i.e. telnet GET from the web host 
itself.  I had
expected that although the local GET would obviously be much faster than anything else 
overall, the
php execution as reported by microtime() would be similar for any kind of client.  I 
had mistakenly
thought that Apache would handle buffering to the client, leaving php to get on with 
the rest of its
script.

It seems that when php flushes its output buffer it has to wait for Apache to actually 
send it to
the browser client before the flush returns.

Any thoughts/observations?


George 

For the record the environment is : 

php/4.0.1pl2
Linux/2.0.36
Stronghold/2.4.2 
Apache/1.3.6

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: ordered alpabeticaly list

2001-12-13 Thread Mike Eheler

If I understand you correctly, you want to put a separator when the 
letter changes.

Try this:

$result = mysql_query('select name from people order by name');
$lastletter = '';
while ($data = mysql_fetch_array($result)) {
 $curletter = strtolower(substr($data['name'],0,1));
 if ($curletter != $lastletter) {
 // Put code to insert a separator here
 }
 // put code to display the name here
 $lastletter = $curletter;
}

Mike

Rodrigo Peres wrote:

 Hi list,
 
 I have a mysql tables, with names on it. I'd like to select this names
 ordered by name and output it to a html in alphabetical order, but separates
 by letter, ex: a, names with a, b
 I've done the select, but I can't figure out how to output the respective
 letters separated.
 
 
 Thank's in advance
 
 Rodrigo Peres
 
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Performance

2001-12-13 Thread Nicolas Costes


A good way to avoid HEADER errors too


Le Jeudi 13 Décembre 2001 19:14, René Fournier a écrit :
 That certainly makes sense on one level, but I think it really comes
 down to the question, what is more compute intensive--echoing the HTML
 while in PHP mode, or context-switching to HTML and back again to PHP?
 (It could be that the difference, if any, is negligible--but I'd like to
 at least know BEFORE I write 100 million lines of otherwise perfect
 code :-)

 ...Rene

 On Thursday, December 13, 2001, at 10:26  AM, Nathan Cassano wrote:
  I have always assumed straight html was faster than function output. My
  logic being that quoted output requires more parsing than straight
  html. But they may be the same speed after a simple optimization pass.
 
  -Original Message-
  From: René Fournier [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, November 13, 2001 9:05 AM
  To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
  Subject: [PHP] Performance
 
 
  Is it true that mixing HTML and PHP--switching back and forth with
  ?php ?  tags--slows down performance? (I'm using PHP4.) Is it better
  to echo output than to drop out of PHP mode?
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]

 ---
 René Fournier
 [EMAIL PROTECTED]

-- 
 ( * Nicolas Costes,
 //\\  IUT de La Roche / Yon
( \/ ) [EMAIL PROTECTED]
http://luxregina.free.fr

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Need high bandwidth provider for my Asian community site

2001-12-13 Thread James Stewart

On Thursday, December 13, 2001, at 06:14 PM, l0t3k wrote:
 Sunny,
   AFAICR, br / is for Netscrape, which apparently cant understand 
 br/
 for some reason..

It's not a browser thing...

br / is the correct syntax for a line break in XHTML. All tags must be 
closed, hence the / and the white space is necessary to separate the 
element name from its closure.

All major browsers will recognise br but if you want to be XHTML 
compliant, br / should be used.

James.

--
James Stewart
http://www.britlinks.co.uk


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Re: ordered alpabeticaly list

2001-12-13 Thread Rodrigo Peres

Thnk's Mike,

But what I really need is create a separation like this

ex:

A
ab...
ac..
ad..

B
be...
bee...
..

for all the names in my table

Thank's again 

Rodrigo



on 12/13/01 4:30 PM, Mike Eheler at [EMAIL PROTECTED] wrote:

 If I understand you correctly, you want to put a separator when the
 letter changes.
 
 Try this:
 
 $result = mysql_query('select name from people order by name');
 $lastletter = '';
 while ($data = mysql_fetch_array($result)) {
 $curletter = strtolower(substr($data['name'],0,1));
 if ($curletter != $lastletter) {
 // Put code to insert a separator here
 }
 // put code to display the name here
 $lastletter = $curletter;
 }
 
 Mike
 
 Rodrigo Peres wrote:
 
 Hi list,
 
 I have a mysql tables, with names on it. I'd like to select this names
 ordered by name and output it to a html in alphabetical order, but separates
 by letter, ex: a, names with a, b
 I've done the select, but I can't figure out how to output the respective
 letters separated.
 
 
 Thank's in advance
 
 Rodrigo Peres
 
 
 

-- 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Logo proposal - first thought

2001-12-13 Thread Dan McCullough

Go here and take a look for a first pass, first idea of what an ant might look like.
http://www.heathermccullough.com/php_logo.gif

This logo keeps the original familiar (like some wanted) and adds an industrial 
appeal.
Please feedback.

dan mccullough

__
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Logo proposal - voting script!

2001-12-13 Thread Alok K. Dhir

Good idea.  You may want to write a cookie to keep ppl from voting
multiple times (I confess, I hit it a couple times on Phrog in order to
see if you were checking for this)...  Then I read the list and decided
I liked Peacock better, so I voted for that too. ;)

Although, in retrospect, I think I like Pelican best.  It keeps with the
aquatic theme of our other favorite open source tools (Linux Penguin,
MySQL Dolphin)...

Guess I'll go vote again... ;)

Al

 -Original Message-
 From: 
 [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED].
 net] On Behalf Of Michael Cronström
 Sent: Thursday, December 13, 2001 12:55 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] Logo proposal - voting script!
 
 
 OK guys,
 
 a voting script!
 
 at: http://zoon.se/vote/logo.php
 
 try it :)
 
 Michael Cronstrom
 Web Inventor
 
 At 13:26 13/12/01, you wrote:
 I'd kind of ignored this whole thread thinking it was going 
 on and on, 
 but in the end I have to say something :)
 
 None of the other animals really captured my attention, 
 but having an 
 Ant would be quite cool.  Not because of the ant on its own, 
 but it's 
 usually a whole bunch of ants that really really do achieve 
 something 
 (just remembering all those national geographic programs). 
 It's a bunch 
 of people that have grown PHP into what it is and I think 
 that fits.  
 I'd go for the ant myself :)
 
 Someone put up a voting script !
 
 Ade
 
 --- i n o v i c a h o s t i n g . c o m --
 
 Powerful hosting from www.inovicahosting.com
 
 
 
   -Original Message-
   From: Valentin V. Petruchek [mailto:[EMAIL PROTECTED]]
   Sent: 13 December 2001 12:05
   To: PHP
   Subject: Re: [PHP] Logo proposal
  
  
   Aunt is more similar very similar to PHP. Very industrious and 
   powerful ;)
  
   - Original Message -
   From: PHPGalaxy.com [EMAIL PROTECTED]
   To: Php-General [EMAIL PROTECTED]
   Sent: Thursday, December 13, 2001 1:31 PM
   Subject: Re: [PHP] Logo proposal
  
  
Actually I heard it's 50 times it's weight, but I refuse to be
   anal about
   it. =)
   
Who's to say ants dont work just as hard in the winter? 
 We can't 
se em..
   unless
it's because they're dormant in the winter, in which 
 case I just 
made
   myself look
INCREDIBLY stupid =)
   
   
  
  
  
  
  
   --
   PHP General Mailing List (http://www.php.net/)
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: 
 [EMAIL PROTECTED] To 
   contact the list administrators, e-mail: 
   [EMAIL PROTECTED]
  
 
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED] To 
 contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: 
 [EMAIL PROTECTED] To contact the list 
 administrators, e-mail: [EMAIL PROTECTED]
 
 


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Logo proposal - voting script!

2001-12-13 Thread Dan McCullough

Also if you hit refresh
--- Alok K. Dhir [EMAIL PROTECTED] wrote:
 Good idea.  You may want to write a cookie to keep ppl from voting
 multiple times (I confess, I hit it a couple times on Phrog in order to
 see if you were checking for this)...  Then I read the list and decided
 I liked Peacock better, so I voted for that too. ;)
 
 Although, in retrospect, I think I like Pelican best.  It keeps with the
 aquatic theme of our other favorite open source tools (Linux Penguin,
 MySQL Dolphin)...
 
 Guess I'll go vote again... ;)
 
 Al
 
  -Original Message-
  From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED].
  net] On Behalf Of Michael Cronström
  Sent: Thursday, December 13, 2001 12:55 PM
  To: [EMAIL PROTECTED]
  Subject: [PHP] Logo proposal - voting script!
  
  
  OK guys,
  
  a voting script!
  
  at: http://zoon.se/vote/logo.php
  
  try it :)
  
  Michael Cronstrom
  Web Inventor
  
  At 13:26 13/12/01, you wrote:
  I'd kind of ignored this whole thread thinking it was going 
  on and on, 
  but in the end I have to say something :)
  
  None of the other animals really captured my attention, 
  but having an 
  Ant would be quite cool.  Not because of the ant on its own, 
  but it's 
  usually a whole bunch of ants that really really do achieve 
  something 
  (just remembering all those national geographic programs). 
  It's a bunch 
  of people that have grown PHP into what it is and I think 
  that fits.  
  I'd go for the ant myself :)
  
  Someone put up a voting script !
  
  Ade
  
  --- i n o v i c a h o s t i n g . c o m --
  
  Powerful hosting from www.inovicahosting.com
  
  
  
-Original Message-
From: Valentin V. Petruchek [mailto:[EMAIL PROTECTED]]
Sent: 13 December 2001 12:05
To: PHP
Subject: Re: [PHP] Logo proposal
   
   
Aunt is more similar very similar to PHP. Very industrious and 
powerful ;)
   
- Original Message -
From: PHPGalaxy.com [EMAIL PROTECTED]
To: Php-General [EMAIL PROTECTED]
Sent: Thursday, December 13, 2001 1:31 PM
Subject: Re: [PHP] Logo proposal
   
   
 Actually I heard it's 50 times it's weight, but I refuse to be
anal about
it. =)

 Who's to say ants dont work just as hard in the winter? 
  We can't 
 se em..
unless
 it's because they're dormant in the winter, in which 
  case I just 
 made
myself look
 INCREDIBLY stupid =)


   
   
   
   
   
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: 
  [EMAIL PROTECTED] To 
contact the list administrators, e-mail: 
[EMAIL PROTECTED]
   
  
  
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED] To 
  contact the list administrators, e-mail: [EMAIL PROTECTED]
  
  
  -- 
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: 
  [EMAIL PROTECTED] To contact the list 
  administrators, e-mail: [EMAIL PROTECTED]
  
  
 
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 


=
dan mccullough

Theres no such thing as a problem unless the servers are on fire!


__
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Re: PHP 4.1.0 and User-defined Sessions

2001-12-13 Thread Yasuo Ohgaki

Jaime Bozza wrote:

 I *HAVE* searched the database and there have been similar problems,
 with the request to try the latest CVS and to produce a short script
 that duplicates the problem.  Since I can't exactly put the CVS version
 onto a live website (and start having all sorts of other problems) and I
 can't duplicate the problem consistently on a non-active testing site,
 I don't really have anything else additional to offer except for Me
 Too!.
 
 My email already stated that I have tried to use --enable-debug and that
 I'm getting a segfault without any core file whatsoever.  The last
 paragraph explains my attempts on using enable-debug.


This is not practical, but you can try to run apache under gdb.
If any segfault happens while you are running apache under gdb, you can 
get backtrace.

BTW, did you try benchmarking tools like ab?
You may be able to reproduce problem with benchmark tools.

--
Yasuo Ohgaki

 
 Jaime Bozza
 
 
 -Original Message-
 From: Yasuo Ohgaki [mailto:[EMAIL PROTECTED]] 
 Sent: Wednesday, December 12, 2001 9:04 PM
 To: [EMAIL PROTECTED]; Jaime Bozza
 Subject: [PHP] Re: PHP 4.1.0 and User-defined Sessions
 
 
 Search bug database to see if the same problem is reported or not.
 
 If you get segfault, buld PHP with --enable-debug and get core file. If
 it is new, get backtrace as described in bugs.php.net. Submit new bug
 report. If you found multiple issues, submit bug report separately.
 
 There are more comments following.
 
 Jaime Bozza wrote:
 
 
Hello,
  I've run into a really intermittent and strange problem with PHP 
4.1.0, and before I try and figure out how to send in a bug report 
that'll get ignored (because I don't have all the data that is 
expected), I thought I would try here to see if anyone else is having 
similar problems.


  Configuration:  FreeBSD 4.4-STABLE, PostgreSQL 7.1.3, Apache 1.3.22,

 
PHP 4.1.0.


 
 
 So far I don't have problem with Linux 2.4.4/PosrgreSql 7.1.3/Apache 
 1.3.22/PHP 4.1.0 or 4.2.0-dev
 
 
 
  I use PHP Sessions for large parts of our sites.  I'm currently 
using the PostgreSQL Session Handler code from Jon Parise and it had 
been working pretty much perfectly under PHP 4.0.6. (The only issue 
was when multiple requests came in with the same session_id at the 
EXACT same time - AvantGo for instance - But I made some minor 
modifications to eliminate that problem)

  Once upgrading to 4.1.0, I started noticing Apache processes 
segfaulting left and right. (Signal 11's, with the occasional Signal 
10) At first I started to think perhaps memory was bad on that 
particular system.  I have 4 servers (running 3-5 separate Apache 
processes each) and each and every server was giving me the Signal 
10/11's.  I started looking into it further.

  I have an auto_prepend for my application code that defines the 
base session variables, config variables, includes the 
pgsql_session_handler file, etc.  All the processing is handled here 
so that my other pages can just use an array that stores all the 
session data.  That way I can pretty much ignore the backend in any of

 
my application code.

 
 
 This setting is similar to mine also.
 
 
  Once I turned this code off, bingo!  No more segfaults!  So I 
started hacking out code there.  If I kept all the startup code but 
eliminated the session commands, it still worked.  As soon as I turned

 
on the session (session_start/session_register), I'd get the segfaults

 
again.

 
 
 If you could make *short* script that segfault, attach it to bug report.
 
 
  If I turned off the pgsql_session_handler and went back to files 
(the default), I didn't have any problems either.  It was just a 
problem when I was using the pgsql_session_handler.

 
 
 I'm not sure what your session handler looks like, could try pgsql 
 session handler that can be found at Zend.com's code exchange?
 
 
 
  So I then turned off session handling and built my own session 
functions (quickie, but basically emulate the session functions I
needed) that called the SAME pgsql_session_handler code that was being

 
used by PHP's internal functions.  For the past hour I haven't had a 
single segfault on any of my servers.  (Within 5 minutes of turning on

 
the internal session routines, I would start getting segfaults every 
minute or so)

  One other thing I noticed was that I had compiled PHP with the mm 
shared memory library.  Previous to 4.1.0, each Apache process had a 
size of around 64MB.  (Without mm, the size was 4-5MB or so)  Once 
installing 4.1.0, the size went up to 130MB for each process!  Since 
I believe sessions utilize the mm library if it's available, I figure 
this may be one of the clues.  (I never tried using the shared memory 
style of sessions, so I couldn't tell you if it would segfault there.)

 
 
 This is strange, mm session module allocates shared memory that is 
 needed. (Description is not fully correct, but almost correct)
 
 
  Is anyone having any of these problems?  Is anyone else 

Re: [PHP] Logo proposal - voting script!

2001-12-13 Thread Ben Matthews

I got the same error...

--- R'twick Niceorgaw [EMAIL PROTECTED] wrote:
 While voting I got this error
 
 Warning: Cannot add header information - headers already sent by
 (output
 started at /home/b1642/public_html/vote/logo.php:6) in
 /home/b1642/public_html/vote/logo.php on line 49
 
 - Original Message -
 From: Michael Cronström [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, December 13, 2001 12:55 PM
 Subject: [PHP] Logo proposal - voting script!
 
 
  OK guys,
 
  a voting script!
 
  at: http://zoon.se/vote/logo.php
 
  try it :)
 
  Michael Cronstrom
  Web Inventor



=
work: 800-873-0078x7218
cell: 214-673-1468
home: 972-641-5535

__
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Logo proposal - voting script!

2001-12-13 Thread Alex Shi

Really? It seems perfect from my end (IE5.5/Win2K)..



 I got the same error...

 --- R'twick Niceorgaw [EMAIL PROTECTED] wrote:
  While voting I got this error
 
  Warning: Cannot add header information - headers already sent by
  (output
  started at /home/b1642/public_html/vote/logo.php:6) in
  /home/b1642/public_html/vote/logo.php on line 49
 
  - Original Message -
  From: Michael Cronström [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Thursday, December 13, 2001 12:55 PM
  Subject: [PHP] Logo proposal - voting script!
 
 
   OK guys,
  
   a voting script!
  
   at: http://zoon.se/vote/logo.php
  
   try it :)
  
   Michael Cronstrom
   Web Inventor



 =
 work: 800-873-0078x7218
 cell: 214-673-1468
 home: 972-641-5535

 __
 Do You Yahoo!?
 Check out Yahoo! Shopping and Yahoo! Auctions for all of
 your unique holiday gifts! Buy at http://shopping.yahoo.com
 or bid at http://auctions.yahoo.com

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Re: ordered alpabeticaly list

2001-12-13 Thread Gerard Onorato

Okay, haven't tested this but it should work.


I would let mysql do some of the work here. In your select add something
like

Something like

$result = mysql_query('select ucase(left(name,1)) as foo, name from userlist
order by name');

$lastletter = '';
while ($data = mysql_fetch_array($result)) {
 $curletter = ($data['foo']);
 if ($curletter != $lastletter) {
 echo(br . $curletter . br);
 }
echo($data['name'] . br);
$lastletter = $curletter;
}


As I say, I haven't tested this but it should work. Unless I stink... which
I often do.


-Original Message-
From: Rodrigo Peres [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 13, 2001 1:36 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Re: ordered alpabeticaly list


Thnk's Mike,

But what I really need is create a separation like this

ex:

A
ab...
ac..
ad..

B
be...
bee...
..

for all the names in my table

Thank's again

Rodrigo



on 12/13/01 4:30 PM, Mike Eheler at [EMAIL PROTECTED] wrote:

 If I understand you correctly, you want to put a separator when the
 letter changes.

 Try this:

 $result = mysql_query('select name from people order by name');
 $lastletter = '';
 while ($data = mysql_fetch_array($result)) {
 $curletter = strtolower(substr($data['name'],0,1));
 if ($curletter != $lastletter) {
 // Put code to insert a separator here
 }
 // put code to display the name here
 $lastletter = $curletter;
 }

 Mike

 Rodrigo Peres wrote:

 Hi list,

 I have a mysql tables, with names on it. I'd like to select this names
 ordered by name and output it to a html in alphabetical order, but
separates
 by letter, ex: a, names with a, b
 I've done the select, but I can't figure out how to output the respective
 letters separated.


 Thank's in advance

 Rodrigo Peres




--



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] PHP 4.1.0 Comments

2001-12-13 Thread Jeremy Allen

I would like to take a few bytes text to give a 
little thanks to the PHP team. 

I have been writing a book on PHP for the last 8 months. I 
thought I knew PHP inside and out, having done quite a bit
of work with PHP. I have even had the pleasure of adding on
a few libraries for a customized version of PHP in one project,
it required a few libraries developed internally to have
native PHP function calls. (It was either modify PHP source
or make COM wrappers and use ASP. PHP saved the day)

I have gained a true appreciation for the legible and easy
to follow source of PHP. Whenever I have had a question I could
look at the source, the source is never wrong :)

Spending the last 8 months married to my book and PHP I have
learned more than I thought there was for me to learn about
programming in general and PHP specifically. The result is 
that I have come to like PHP more and more. I have developed 
largish applications in ColdFusion, ASP, JSP, and PHP. PHP 
still wins hands down for most of my needs. 

So, Thanks to anyone who has ever contributed a single line 
of code to PHP publicly. Your contributions have made such a 
wonderful web application development platform possible. 

Thanks

Jeremy Allen
[EMAIL PROTECTED]



_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] The peacock logo... and others...

2001-12-13 Thread Philip Hallstrom

Not to throw a wrench into the plans and it's not clear that it really
matters, but O'Reilly uses a peacock for an XML book.

http://www.oreilly.com/catalog/xmlnut/

and a pelican for this book.

http://www.oreilly.com/catalog/webclient/


I suspect that most animals are probably being used by oreilly...  whether
that matters I'll leave up to someone else :)

-philip


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] The peacock logo... and others...

2001-12-13 Thread Rasmus Lerdorf

The O'Reilly animal for PHP is a cuckoo bird.  

On Thu, 13 Dec 2001, Philip Hallstrom wrote:

 Not to throw a wrench into the plans and it's not clear that it really
 matters, but O'Reilly uses a peacock for an XML book.
 
 http://www.oreilly.com/catalog/xmlnut/
 
 and a pelican for this book.
 
 http://www.oreilly.com/catalog/webclient/
 
 
 I suspect that most animals are probably being used by oreilly...  whether
 that matters I'll leave up to someone else :)
 
 -philip
 
 
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Performance

2001-12-13 Thread Mike Eheler

The problem with that is giving feedback to the user. If you're busy 
generating a string to display to the user and the mysql server is 
running slow, or for whatever reason, the user is looking at a blank 
page until the process is completed entirely, then they have all the 
data dumped on them at once.

For someone on a modem, this is a bad thing, because first they're 
waiting for the page to be created, then they're waiting for the data to 
download.

I've always been taught by people who have been working in this industry 
for years (even back in my ASP days) that it's always best to send data 
to the user's browser as soon as possible.

Mike

Dan McCullough wrote:

 Here is one thing that I do, of course there is 50 ways you can do anything.
 All coding, well 90% of the PHP is done in the head, all output in coposed in 
variables, and
 outputted through the code.  All SQL is done there as well, and an mysql close is 
done at the end
 of that area.  If there is any logic in the where the html is, its smallish if else 
statments.
 
 Small example.
 ?
 all php logic.
 $sql = ;
 $cat_output = tabletr
 while ($category = mysql($result)) {
 $cat_output .= td.$category['name']./td;
 }
 $cat_output = /tr/table
 $sql = ;
 if () {
 $subcat_output .= ;
 } else {
 $subcat_output .= ;
 }
 $sql = ;
 $sql = ;
 $sql = ;
 mysql_close();
 ?
 
 !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN
 
 html
 head
   titleUntitled/title
 /head
 
 body
 
 ?print $cat_output; ?
 
 /body
 /html
 
 
 Something a little like that
 
 
 
 --- René_Fournier [EMAIL PROTECTED] wrote:
 
Is it true that mixing HTML and PHP--switching back and forth with 
?php ?  tags--slows down performance? (I'm using PHP4.) Is it better 
to echo output than to drop out of PHP mode?

And concerning database connections, my ISP asks that I always close a 
MySQL connection with a mysql_close()--which I can understand. But I'm 
curious, if I have to make, say, 10 SELECTs throughout a page (in the 
header, body, and footer), is it perhaps faster to use the mysql_close() 
at the very end of the page (in the bottom of the footer.inc)? In other 
words, is there any disadvantage performance-wise (or stability reason) 
to open and immediately thereafter close mysql connections?

Can anyone recommend an article or two on coding techniques for 
improving PHP and MySQL performance? I don't wan to spend the rest of my 
life optimizing my php code, but if I knew a few basic rules about its 
performance characteristics, I might be able to make better decisions 
when coding. Thanks.

...Rene

---
René Fournier,
[EMAIL PROTECTED]


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


 
 
 __
 Do You Yahoo!?
 Check out Yahoo! Shopping and Yahoo! Auctions for all of
 your unique holiday gifts! Buy at http://shopping.yahoo.com
 or bid at http://auctions.yahoo.com
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




  1   2   >