[PHP] CDBaby.com

2001-12-12 Thread Richard Lynch

As you may know, I run a tiny record label No Genre in Chicago.

Ulele's Seed CD released last week on No Genre has been selected 
as a Featured CD on the FRONT PAGE of http://cdbaby.com/

This is a HUGE DEAL in the independent music world!

CDBaby is the 2nd-largest on-line retailer of music CDs, only behind 
Amazon.com, and gets God knows how much traffic.

Since 1996 when he started it to sell his own CDs and a few bands he 
was friends with CDBaby has built up to:

o  11,810 artists sell their CD at CD Baby.
o  149,538 CDs sold online to customers.
o  $903,821.30 paid to artists.

They get about 40 CDs *every* day, so it's a pretty big honor.

Oh, did I mention this site and the admin site at 
http://cdbaby.net; and the community site at http://cdbaby.org are 
all *ENTIRELY* PHP-based, and written by a musician who isn't really 
a programmer?  He picked PHP as the only language that didn't scare 
him away.

Anyway, if you like music or just want to see how slick a PHP site 
from a non-programmer can be, check out his sites.

http://cdbaby.com/ulele/
-- 
WARNING [EMAIL PROTECTED] email address is an endangered species
Use [EMAIL PROTECTED] instead

-- 
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] Antialiasing with GD..?

2001-12-12 Thread Jan Maska

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]




[PHP] Quick Question about Variables

2001-12-12 Thread Matthew Walkup

I have a form with checkboxes and they have a name of associate_id.  How
can I call these variables (or other ideas of getting ID numbers from check
boxes)?  In PERL i know you can use ${associate_.$id} but I cant seem to
find the equivalent for PHP.  I could then get a list of id's and check if
each one is on.  I think this would be the easiest, but maybe someone else
has another idea.

Thanks in advanced,

Matthew Walkup
[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] Quick Question about Variables --- NEVERMIND

2001-12-12 Thread Matthew Walkup

Hah, I saw parse error and assumed it was because i was trying to use a
function that didnt exist.  Little did I know I mistyped something.  It
works now, sorry for the inconvience.

Thanks,

Matt

-Original Message-
From: Matthew Walkup [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 12, 2001 1:27 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Quick Question about Variables


I have a form with checkboxes and they have a name of associate_id.  How
can I call these variables (or other ideas of getting ID numbers from check
boxes)?  In PERL i know you can use ${associate_.$id} but I cant seem to
find the equivalent for PHP.  I could then get a list of id's and check if
each one is on.  I think this would be the easiest, but maybe someone else
has another idea.

Thanks in advanced,

Matthew Walkup
[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] Newbie-student Database PHP Question

2001-12-12 Thread Robinbythebrook

I have downloaded Mysql to check out. 

1) Mysql vs SQL: What is the difference? 

2} Would a web-based Access database suffice with PHP? 
As I already know Access.

Appreciate clarification for my newbie questions, thank you. 

Robin

-- 
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] Newbie-student Database PHP Question

2001-12-12 Thread Dave Brotherstone

MySQL is a DBMS, SQL is a language.  MySQL has an implementation of SQL, as
does Access.  All (most) SQL implementations are common for the simple
things (select * from tablename), but differ when things get more complex
(is about as broad an answer I could give!).

Web based access database is fine depending on how many users/transactions
you've got.  MySQL is easier to plug into PHP (it supports it directly),
Access you need to use the ODBC stuff (but it can be done).  Learning MySQL
is probably a good thing - learning SQL is definately a good thing ;-)

Hope this helps,
Dave.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: 12 December 2001 10:44
 To: [EMAIL PROTECTED]
 Subject: [PHP] Newbie-student Database PHP Question


 I have downloaded Mysql to check out.

 1) Mysql vs SQL: What is the difference?

 2} Would a web-based Access database suffice with PHP?
 As I already know Access.

 Appreciate clarification for my newbie questions, thank you.

 Robin

 --
 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] Comparing Dates

2001-12-12 Thread Andrey Hristov

$timestamp = time();
$yourdate=12:35:20:7:4:2001; // 12:35:07 July 4 2001
$yd_expl = explode(':',$yourdate);
if 
(mktime(0,0,0,strftime('%m',$timestamp),strftime('%d',$timestamp),strftime('%Y',$timestamp)

mktime($yd_expl [0],$yd_expl[1],$yd_expl[2],$yd_expl[3],$yd_expl[4],$yd_expl[5])
){
// do you have to do

}

HTH

Regards,
Andrey Hristov
IcyGEN Corporation
http://www.icygen.com
BALANCED SOLUTIONS

- Original Message - 
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, December 09, 2001 3:16 AM
Subject: [PHP] Comparing Dates


I'm trying to do a check on a date, to see if it's after the current date, so 
basically i'm doing an 

if(date(d-m-y)15-12-01) { do something }

I know that's obviously not the right way to do it, but can someone help me out?



-- 
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] test

2001-12-12 Thread Andrey Hristov

test


-- 
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] RegEx gurus help...

2001-12-12 Thread Andrey Hristov

The code below does almost of the job. There is only one problem. If some path is 
absolute to the server /aaa/bbb/ the path get
file://aaa// but I think no problems with apache.

HTH

Andrey Hristov
IcyGEN Corporation
http://www.icygen.com
BALANCED SOLUTIONS

pre
?php

$the_html = 'I need to replace all relative links in an html
doc with absolute links on the fly weather it
be an image link,
img src=\'/_imgs/imgs_nav/transPix.gif\' width=\'10\' height=\'13\'
img src=\'../_imgs/imgs_nav/transPix.gif\' width=\'10\' height=\'13\'

a URL,
a href=/dealers/index.asp

a link to an external JS file
script language=\'JavaScript\' src=\'/_js/scripts.js\'
type=\'text/javascript\'/script

or external css file.
link rel=stylesheet href=../_css/style.css type=text/css';
echo htmlspecialchars($the_html);
$ABSOLUTE_HREF = 'http://someserver.com/somedir/somedir2/';

$count = preg_match_all('~(src=|href=)(|\')(?!href://)(.*?)(\2)~',$the_html,$matches);
var_dump($matches);
$the_html = 
preg_replace('~(src=|href=)(|\')(?!href://)(.*?)(\2)~','\1\2'.$ABSOLUTE_HREF.'\3\4',$the_html);
echo htmlspecialchars($the_html);

?
- Original Message -
From: Brian V Bonini [EMAIL PROTECTED]
To: PHP Lists [EMAIL PROTECTED]
Sent: Monday, December 10, 2001 4:21 PM
Subject: [PHP] RegEx gurus help...


 I need to replace all relative links in an html
 doc with absolute links on the fly weather it
 be an image link,
 img src='/_imgs/imgs_nav/transPix.gif' width='10' height='13'
 img src='../_imgs/imgs_nav/transPix.gif' width='10' height='13'

 a URL,
 a href=/dealers/index.asp

 a link to an external JS file
 script language='JavaScript' src='/_js/scripts.js'
 type='text/javascript'/script

 or external css file.
 link rel=stylesheet href=../_css/style.css type=text/css

 Anyone done this before and have a prefab regex laying
 around they want to share?

 -Brian


 --
 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 Win32 binaries now available

2001-12-12 Thread Zeev Suraski

http://www.php.net/downloads.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]




Re: [PHP] Re: Emailing attachments upload to a form

2001-12-12 Thread Jon Farmer

 Yeah.. code to divide the message into multiple parts, base64_encode the 
 file, and attach it that way.
 
 I suggest looking for some kind of Email class that can do that for you. 
 Try http://phpclasses.upperdesign.net/
 
 Mike

if you are on *nix used mutt from the commandline.
--
Jon Farmer
Systems Programmer, Entanet www.enta.net
Tel 01952 428969 Mob 07763 620378
PGP Key available, send email with subject: Send PGP Key



-- 
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 output compression

2001-12-12 Thread Rares Vasilescu

Anyone has tried out yet the output compression?

How does it work, is it really stable?

Rares



Re: [PHP] Get Hours/Mins/Secs between two timestamps?

2001-12-12 Thread Jon Farmer

Is there a function in PHP that will output the difference between two
timestamps (hours/mins/secs), similar in the way that getdate() extracts
the date of a timestamp?  Thank you.


How about subtracting the one timestamp from the other and then devide by
3600, with the remainder divided by 60 and the remainder is your seconds.

Regards

Jon

--
Jon Farmer
Systems Programmer, Entanet www.enta.net
Tel 01952 428969 Mob 07763 620378
PGP Key available, send email with subject: Send PGP Key

- Original Message - 


-- 
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] Get Hours/Mins/Secs between two timestamps?

2001-12-12 Thread Andreas Landmark

On Wed, Dec 12, 2001 at 11:31:25AM -, Jon Farmer wrote:
 Is there a function in PHP that will output the difference between two
 timestamps (hours/mins/secs), similar in the way that getdate() extracts
 the date of a timestamp?  Thank you.
 
 
 How about subtracting the one timestamp from the other and then devide by
 3600, with the remainder divided by 60 and the remainder is your seconds.
 

Since you asked, i guess you're not familiary with the % operator
(modulus). Read the operator section of the manual, and you'll see how
modulus is your friend...

But a better way, is to subtract one from the other and then use
gmdate() on the difference, that way you don't have to worry about
differences in excess of 60 secs...
-- 
Andreas D Landmark / noXtension
Time flies like an arrow, but fruit flies like a banana.

-- 
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] session woes

2001-12-12 Thread Andrey Hristov

Is register_globals turned on or off?


- Original Message - 
From: Gaylen Fraley [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, December 09, 2001 6:13 AM
Subject: [PHP] session woes


 I have a friend who is using an ISP that uses php4.0.3pl1 .  It appears that
 session_register is not working between pages.  In script A, the session var
 gets registered and shows registered using session_is_registered('testvar');
 However, when script B is called, a session-start is issued and testvar is
 not registered.  Running the identical code, but not with his ISP, under
 4.06, it works perfectly.  Are there known issues?
 
 --
 Gaylen
 [EMAIL PROTECTED]
 Home http://www.gaylenandmargie.com
 PHP KISGB v2.5 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] Sending out mass mail without having timeout problems ..

2001-12-12 Thread Andrey Hristov

In background :
1)$result_does_not_matter = `/path/to/your/massmailer.php 1mail_std_out.log 
2mail_std_err.log `;
2) use exec with cmd as the above.
With PHP you can write PHP shellscripts:
#!/usr/local/bin/php -q
?php
// ...some code here
// in the code you may use sleep() or usleep() in a cycle. The cycle uses one big 
result set which had been got before the cycle or
makes like this:
//  $res= mysql_query(''select email from employee limit .$start++.,1);
// list($email) = mysql_fetch_array($res);
// mysql_free_result($res);
?

HTH

Regards,
Andrey Hristov
IcyGEN Corporation
http://www.icygen.com
BALANCED SOLUTIONS



- Original Message -
From: bain [EMAIL PROTECTED]
To: php general list [EMAIL PROTECTED]
Sent: Tuesday, December 11, 2001 10:41 AM
Subject: [PHP] Sending out mass mail without having timeout problems ..


 Hi all

 I've been working on a system for our company that uses MySQL to grab
 user data and then send personalized mail to them once a month.

 currently I step thought the mysql result mailling one mail per return.

 as you can imagine .. my script timeout value is sitting on 24hours to
 allow all the mail in our big database to go throught.

 Is there a way I can fork or thread the mail send process so I can send
 more then one mail at a time .. or maybe even buffer the MySQL result
 and send the mail in the background but still return the browser ..

 any sugestions .. please

 --
 Henti Smith
 Systems Administrator
 The House Of Synergy
 http://www.thos.co.za
 [EMAIL PROTECTED]
 +27 11 259-9821
 --

 Let us not look back in anger or forward in fear, but around us in
 awareness.
 -- James Thurber


 --
 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] test message

2001-12-12 Thread Andrey Hristov

test message


-- 
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] snmp segmentation fault

2001-12-12 Thread Kancha .

Hi all

I compiled php 4.1.0 with snmp

--with-snmp

the compilation was smooth and had no problem, but
when i try to execute the following statment i get
segmentation fault.

$x = snmpwalk (localhost, public, );

The same error had occured with ver 4.0.6. I'm using
Red Hat linux 7.2 and the ucd-snmp that comes along
it.

kancha

__
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: [PHP-INST] Undefined Variable Warnings Mail Settings

2001-12-12 Thread Andrey Hristov

set error_reporting to some level which does not include E_WARNING or set it to 0 - 
no messages except fatal parser messages.


Regards,
Andrey Hristov
- Original Message -
From: Carolyn Mescan [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, December 10, 2001 5:40 PM
Subject: [PHP-INST] Undefined Variable Warnings  Mail Settings


PHP List,

I am a new PHP user and have just installed it on a Windows NT IIS Server. I have set 
the configuration variable display_errors =
Off in the php.ini file but am still getting many of the errors shown below on the 
webpage generated by the discussion board
application I am using PHP for which is called UBBThreads. Can anyone tell me why 
these are still showing up, and why do they exist
at all???

My second question is how to set the configuration in the php.ini file so the board 
can send mail. Here are the settings that are in
the php.ini file now:

[mail function]
; For Win32 only.
SMTP = smtp.louisville.edu

; For Win32 only.
sendmail_from = [EMAIL PROTECTED]

; For Unix only. You may supply arguments as well (default: 'sendmail -t -i').
;sendmail_path =

Thanks for any help.

Carolyn

Sample of undefined constant/variable errors:

PHP Warning: Use of undefined constant viewmessage - assumed 'viewmessage' in
E:\inetpub\cbpa.louisville.edu\wwwroot\discussions\languages\english\online.php on 
line 55 PHP Warning: Use of undefined constant
viewpoll - assumed 'viewpoll' in 
E:\inetpub\cbpa.louisville.edu\wwwroot\discussions\languages\english\online.php on 
line 56 PHP
Warning: Use of undefined constant ubbthreads - assumed 'ubbthreads' in
E:\inetpub\cbpa.louisville.edu\wwwroot\discussions\languages\english\online.php on 
line 57 PHP Warning: Use of undefined constant
all_admin - assumed 'all_admin' in 
E:\inetpub\cbpa.louisville.edu\wwwroot\discussions\languages\english\online.php on 
line 58 PHP
Warning: Use of undefined constant ONLINE_HEAD - assumed 'ONLINE_HEAD' in
E:\inetpub\cbpa.louisville.edu\wwwroot\discussions\languages\english\online.php on 
line 59 PHP Warning: Use of undefined constant
ONLINE_BODY - assumed 'ONLINE_BODY' in 
E:\inetpub\cbpa.louisville.edu\wwwroot\discussions\languages\english\online.php on 
line 60




-- 
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] Test message.

2001-12-12 Thread Andrey Hristov

Test


-- 
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] test message.

2001-12-12 Thread Andrey Hristov

test message.


-- 
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] Get Hours/Mins/Secs between two timestamps?

2001-12-12 Thread Jon Farmer

 Since you asked, i guess you're not familiary with the % operator
 (modulus). Read the operator section of the manual, and you'll see how
 modulus is your friend...

Wrong I use the % operator all the time

 But a better way, is to subtract one from the other and then use
 gmdate() on the difference, that way you don't have to worry about
 differences in excess of 60 secs...

and what if the difference between timestamp1 and timestamp2 is  86400 ?

--
Jon Farmer
Systems Programmer, Entanet www.enta.net
Tel 01952 428969 Mob 07763 620378
PGP Key available, send email with subject: Send PGP Key

- Original Message -
From: Andreas Landmark [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, December 12, 2001 11:34 AM
Subject: Re: [PHP] Get Hours/Mins/Secs between two timestamps?


 On Wed, Dec 12, 2001 at 11:31:25AM -, Jon Farmer wrote:
  Is there a function in PHP that will output the difference between two
  timestamps (hours/mins/secs), similar in the way that getdate()
extracts
  the date of a timestamp?  Thank you.
 
 
  How about subtracting the one timestamp from the other and then devide
by
  3600, with the remainder divided by 60 and the remainder is your
seconds.
 




 --
 Andreas D Landmark / noXtension
 Time flies like an arrow, but fruit flies like a banana.

 --
 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] Test message.

2001-12-12 Thread Nicolas Costes


$query=SELECT * FROM messages WHERE subject='Test message.' AND body LIKE 
'%return TRUE%' ;


Le Mercredi 12 Décembre 2001 13:28, Dave Brotherstone a écrit :
 return TRUE;

  -Original Message-
  From: Andrey Hristov [mailto:[EMAIL PROTECTED]]
  Sent: 10 December 2001 11:06
  To: [EMAIL PROTECTED]
  Subject: [PHP] Test message.
 
 
  Test
 
 
  --
  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] Logo proposal

2001-12-12 Thread Armin Hartinger

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: [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] Permission denied, although permissions are right

2001-12-12 Thread Wim Godden

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]




RE: [PHP] Logo proposal

2001-12-12 Thread Peter Hicks

Armin,

It may be for your applications, and it may be for mine, but not everyone uses
MySQL, and MySQL support is only part of PHP itself.

Cater for the large 'minority' of people who don't use PHP + MySQL :)


Peter.


On 12 Dec 2001, 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: [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-12 Thread Armin Hartinger

I'm sure noone who doesn't use any part of that combo would mind ... but
anyway, maritime or not ... trying to find a place within a theme would
be positive. Phun phun :)

-Armin

On Wed, 2001-12-12 at 13:21, Peter Hicks wrote:
 Armin,
 
 It may be for your applications, and it may be for mine, but not everyone uses
 MySQL, and MySQL support is only part of PHP itself.
 
 Cater for the large 'minority' of people who don't use PHP + MySQL :)
 
 
 Peter.
 
 
 On 12 Dec 2001, 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: [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-12 Thread Billy Harvey

On Wed, 2001-12-12 at 08:11, 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

H - killer - how about an Orca?  We'll pretend that they get along
well with the MySQL dolphin, but PHP is definitely a killer app.

Billy


-- 
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-12 Thread Dan McCullough

That was what I was going to call it ... no your right I'll go back to my original 
idea of phast
and phriendly ... how about phcat.
--- Armin Hartinger [EMAIL PROTECTED] wrote:
 Better not, noone wants PHP to be associated with something freakish. Or
 is that Phreakish?
 
 -Armin
 
 On Wed, 2001-12-12 at 13:16, Dan McCullough wrote:
  In the spirit of Dr Morrow(sp), how about we take the best part of Linux(Penguin) 
and
  MySQL(Dolphin) and make our own.
  --- Armin Hartinger [EMAIL PROTECTED] 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: [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
  
 


=
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] Logo proposal

2001-12-12 Thread Dan McCullough

Phree Phwilly 
--- Billy Harvey [EMAIL PROTECTED] wrote:
 On Wed, 2001-12-12 at 08:11, 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
 
 H - killer - how about an Orca?  We'll pretend that they get along
 well with the MySQL dolphin, but PHP is definitely a killer app.
 
 Billy
 
 
 -- 
 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]




[PHP] Help with algorithm

2001-12-12 Thread Cesar Cordovez

Hi guys!

For the last couple of hours I have been trying to solve this algorithm with
no avail.  If someone has an idea on how to solve it it will be greatly
apreciated.

The Problem:

I have stored in a MySQL table the following:

-
Databases:MySQL
Databases:MS SQL Server
Databases:Oracle
Databases:Informix
Databases:DB2
Databases:DBMS
Databases:4th Dimension
Software:Photoshop
Software:Illustrator
Software:DreamWeaver
Software:Utilities:QuickTime
Software:Utilities:Movie Converter
Software:Utilities:Norton Utilities
Software:Languages:C++
Software:Languages:Pascal
Software:Languages:Basic
Software:Languages:Real Basic
Software:Languages:FORTRAN

-- etc.

I need to convert this table into an hierarquical popupmenu for a HTML page
I'm working on.  Something like this:

optgroup label=Databases
option label=MySQL value=MySQL/option
option label=MS SQL Server value=MS SQL Server/option
option label=Oracle value=Oracle /option
option label=Informix value=Informix /option
option label=DB2 value=DB2 /option
option label=DBMS value=DBMS /option
option label=4th Dimension value=4th Dimension /option
/optgroup
optgroup label=Software
option label=Photoshop value=Photoshop/option
option label=Illustrator value=Illustrator/option
option label=DreamWeaver value=DreamWeaver/option
optgroup label=utilities
option label=QuickTime value=QuickTime/option
option label=Movie Converter value=Movie Converter/option
option label=Norton Utilities value=Norton Utilities/option
/optgroup

-- etc.

Any help will be apreciated. TIA.




Cesar Cordovez V.
[EMAIL PROTECTED]
(305) 461 0012 x202


-- 
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] Help with algorithm

2001-12-12 Thread Andrey Hristov

Make a recursive function which work on global var or on var passed on reference

function rec($parent_id, $the_parent_array){
/// select name, theme_id from some_table where par_id=$parent_id;
while ($arr = mysql_fetch_assoc($res)){
$the_parrent_array[$arr['theme_id']]=array('name'=$arr['name']);
rec($arr['theme_id'],$the_parent_array[$arr['theme_id']']);
}
}
$your_array = array();
rec(1,$your_array);

HTH

Regards,
Andrey Hristov
IcyGEN Corporation
http://www.icygen.com
BALANCED SOLUTIONS

- Original Message - 
From: Cesar Cordovez [EMAIL PROTECTED]
To: PHP [EMAIL PROTECTED]
Sent: Wednesday, December 12, 2001 3:55 PM
Subject: [PHP] Help with algorithm


 Hi guys!
 
 For the last couple of hours I have been trying to solve this algorithm with
 no avail.  If someone has an idea on how to solve it it will be greatly
 apreciated.
 
 The Problem:
 
 I have stored in a MySQL table the following:
 
 -
 Databases:MySQL
 Databases:MS SQL Server
 Databases:Oracle
 Databases:Informix
 Databases:DB2
 Databases:DBMS
 Databases:4th Dimension
 Software:Photoshop
 Software:Illustrator
 Software:DreamWeaver
 Software:Utilities:QuickTime
 Software:Utilities:Movie Converter
 Software:Utilities:Norton Utilities
 Software:Languages:C++
 Software:Languages:Pascal
 Software:Languages:Basic
 Software:Languages:Real Basic
 Software:Languages:FORTRAN
 
 -- etc.
 
 I need to convert this table into an hierarquical popupmenu for a HTML page
 I'm working on.  Something like this:
 
 optgroup label=Databases
 option label=MySQL value=MySQL/option
 option label=MS SQL Server value=MS SQL Server/option
 option label=Oracle value=Oracle /option
 option label=Informix value=Informix /option
 option label=DB2 value=DB2 /option
 option label=DBMS value=DBMS /option
 option label=4th Dimension value=4th Dimension /option
 /optgroup
 optgroup label=Software
 option label=Photoshop value=Photoshop/option
 option label=Illustrator value=Illustrator/option
 option label=DreamWeaver value=DreamWeaver/option
 optgroup label=utilities
 option label=QuickTime value=QuickTime/option
 option label=Movie Converter value=Movie Converter/option
 option label=Norton Utilities value=Norton Utilities/option
 /optgroup
 
 -- etc.
 
 Any help will be apreciated. TIA.
 
 
 
 
 Cesar Cordovez V.
 [EMAIL PROTECTED]
 (305) 461 0012 x202
 
 
 -- 
 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] Single/Double Quotes

2001-12-12 Thread Gerard Samuel

Im tring to rewrite some code to use single/double quotes correctly (as
correct as can be).

If I use
$result=mysql_query('SELECT book FROM ' . TAB_AUTHORS .  WHERE aid =
$aid);
I get an mysql error.  That should be correct, if I understand it right.

But if I use
$result=mysql_query('SELECT book FROM ' . TAB_AUTHORS .  WHERE aid =
'$aid');
it works.


So what I need to know is that do I have to ride the fine thin line for
correctness and speed???


-- 
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] login, and

2001-12-12 Thread Ward, Mark

I've got a question about how I should implement my logins with PHP..

I'm working on a project that requires the user to login with their
password. That's not a problem. My question is... how do I keep track of the
user once they go through the hierarchy of my site? Is it as simple as
passing a hidden variable throughout, or are sessions the best, or easiest,
way of doing things?

Mark Ward

-- 
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] Single/Double Quotes

2001-12-12 Thread Miles Thompson

This should work ...
$result=mysql_query(SELECT book FROM TAB_AUTHORS  WHERE aid = '$aid');

When PHP sees the single quotes around the $aid it evaluates it to the 
value stored in the variable.
Your first example connntained $aid within a set of double quotes, thus it 
was treated as a literal.

Hope this helps - Miles Thompson

At 09:08 AM 12/12/2001 -0500, Gerard Samuel wrote:
Im tring to rewrite some code to use single/double quotes correctly (as
correct as can be).

If I use
$result=mysql_query('SELECT book FROM ' . TAB_AUTHORS .  WHERE aid =
$aid);
I get an mysql error.  That should be correct, if I understand it right.

But if I use
$result=mysql_query('SELECT book FROM ' . TAB_AUTHORS .  WHERE aid =
'$aid');
it works.


So what I need to know is that do I have to ride the fine thin line for
correctness and speed???


--
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] Arrays...

2001-12-12 Thread Daniel Alsén

Hi,

im trying to fill a chart with some data.

I am using a mysql query:
$query = SELECT serie_tot, COUNT(*) FROM statistik WHERE shooter='mindbash'
GROUP BY serie_tot;
$series = mysql_query($query)

It returns the results i want, ie
value - count
value2 - count
etc...

Now - i am trying to get this data into an array and is using:
$data = mysql_fetch_array($series);

But that doesn´t work! If i do it manually:
$data = array(
value = 4,
value2 = 2);

...it works like a charm. What´s the difference between these arrays?

I would also, very much, appreciate a tip on where i could learn how to
master arrays. I am tearing my hair out here.

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]




[PHP] a piece of PHP history

2001-12-12 Thread Monte Ohrt

Google now has 20 years worth of newsgroup archives. Here is a link to
what is probably the first PHP post by Rasmus.

http://groups.google.com/groups?q=%22Personal+Home+Page%22+author:Rasmus+author:Lerdorfhl=enscoring=das_drrb=bas_mind=17as_minm=5as_miny=1981as_maxd=12as_maxm=12as_maxy=1995rnum=2selm=3r7pgp%24aa1%40ionews.io.org


--
Monte Ohrt [EMAIL PROTECTED]
http://www.ispi.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] Logo proposal

2001-12-12 Thread Boget, Chris

 H - killer - how about an Orca?  We'll pretend that they 
 get along well with the MySQL dolphin, but PHP is definitely a 
 killer app.

Yeah, but don't Orcas eat penguins?

Chris



RE: [PHP] Logo proposal

2001-12-12 Thread Billy Harvey

 Yeah, but don't Orcas eat penguins?
 
 Chris

Orcas eat *everything*!

Billy


-- 
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] zero cookie size when proxy is used

2001-12-12 Thread Sufiyan

   Hi guyz,

I have a really strange problem. I have PHP4.0.6 on FreeBSD with apache. Now
everything works fine. But when a simple session page in php is accessed
using a proxy, it doesn't work.  It careates cookie with zero size in /tmp.
What can be wrong? Any suggestions?

~Sufiyan



-- 
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] Arrays...

2001-12-12 Thread jimtronic


http://php.net/array

Try $data = mysql_fetch_assoc($series)

This will produce an associative array with column names attached to
values for one row
of data from your database.

jim

Hi,

im trying to fill a chart with some data.

I am using a mysql query:
$query = SELECT serie_tot, COUNT(*) FROM statistik WHERE shooter='mindbash'
GROUP BY serie_tot;
$series = mysql_query($query)

It returns the results i want, ie
value - count
value2 - count
etc...

Now - i am trying to get this data into an array and is using:
$data = mysql_fetch_array($series);

But that doesn´t work! If i do it manually:
$data = array(
value = 4,
value2 = 2);

...it works like a charm. What´s the difference between these arrays?

I would also, very much, appreciate a tip on where i could learn how to
master arrays. I am tearing my hair out here.

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]


--
Jim Musil
-
Multimedia Programmer
Nettmedia
-
212-629-0004
[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 performance (was: Single/Double Quotes)

2001-12-12 Thread Gerard Samuel

Thanks for the pointers...

Another quick ?.

Im rewriting a rather large script, and I read somewhere that an 
application would run slightly faster if you drop out of php to display 
html.
So like

?php
=== php code goes here ===
?
/td/tr/table
?php
=== php code goes here ===
?

If the application is rather large, does the constant jumping in and out 
of php slow it down?
Or if you use *echo* with single quotes to display literal meanings like
echo '/td/tr/table';
suffice??

That should be it.
Thanks

Miles Thompson wrote:

 This should work ...
 $result=mysql_query(SELECT book FROM TAB_AUTHORS  WHERE aid = '$aid');
 
 When PHP sees the single quotes around the $aid it evaluates it to the 
 value stored in the variable.
 Your first example connntained $aid within a set of double quotes, thus 
 it was treated as a literal.
 
 Hope this helps - Miles Thompson
 
 At 09:08 AM 12/12/2001 -0500, Gerard Samuel wrote:
 
 Im tring to rewrite some code to use single/double quotes correctly (as
 correct as can be).

 If I use
 $result=mysql_query('SELECT book FROM ' . TAB_AUTHORS .  WHERE aid =
 $aid);
 I get an mysql error.  That should be correct, if I understand it right.

 But if I use
 $result=mysql_query('SELECT book FROM ' . TAB_AUTHORS .  WHERE aid =
 '$aid');
 it works.


 So what I need to know is that do I have to ride the fine thin line for
 correctness and speed???


 -- 
 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] PHPhish Logo

2001-12-12 Thread Barton Hodges

The PHP PHish.

great idea (and great band too!)

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: [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] a piece of PHP history

2001-12-12 Thread Nicolas Costes


Interesting ... Did he think about generating such  a movement ???

Le Mercredi 12 Décembre 2001 15:38, Monte Ohrt a écrit :
 Google now has 20 years worth of newsgroup archives. Here is a link to
 what is probably the first PHP post by Rasmus.

 http://groups.google.com/groups?q=%22Personal+Home+Page%22+author:Rasmus+au
thor:Lerdorfhl=enscoring=das_drrb=bas_mind=17as_minm=5as_miny=1981as_
maxd=12as_maxm=12as_maxy=1995rnum=2selm=3r7pgp%24aa1%40ionews.io.org

-- 
 ( * 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] a piece of PHP history

2001-12-12 Thread Dan McCullough

Not many do, at least at first, they just were looking for a better way to do 
something and
decided to share with the rest of us.

thanks for the link.

dan
--- Nicolas Costes [EMAIL PROTECTED] wrote:
 
 Interesting ... Did he think about generating such  a movement ???
 
 Le Mercredi 12 Décembre 2001 15:38, Monte Ohrt a écrit :
  Google now has 20 years worth of newsgroup archives. Here is a link to
  what is probably the first PHP post by Rasmus.
 
  http://groups.google.com/groups?q=%22Personal+Home+Page%22+author:Rasmus+au
 thor:Lerdorfhl=enscoring=das_drrb=bas_mind=17as_minm=5as_miny=1981as_
 maxd=12as_maxm=12as_maxy=1995rnum=2selm=3r7pgp%24aa1%40ionews.io.org
 
 -- 
  ( * 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]
 


=
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] non-browser PHP downloading?

2001-12-12 Thread Erik Price

OH.  no one told me that it was called links !!!  I thought it was 
Lynx.  Either way, I found /usr/bin/links and have finally been 
successful in the download.

On to the compile !!


Erik

PS:  So the only way to get the PHP source is through the web site?  I 
didn't seen any references to any other (non-website) mirrors -- and 
neither wget nor curl like the A HREF link that downloads the source.


On Tuesday, December 11, 2001, at 09:44  PM, Erik Price wrote:

 Yeah, yeah, tried that already.  ;-)  Unfortunately Lynx isn't
 installed by default on this puppy, and I'd rather not go through the
 trouble of installing more software.  If that's the ONLY way, then I
 suppose I'll end up doing it, but there aren't any other mirrors where
 I can just wget the source?


 --- Miles Thompson [EMAIL PROTECTED] wrote:

 Open up a console and use lynx.
 Miles Thompson

 At 06:26 PM 12/11/2001 -0800, Erik Price wrote:
 Is there a way to download PHP without clicking the link in my
 browser?
  Right now I can't use my Xwindows so I need to use wget, curl, or
 ftp.
  I've tried using the hypertext reference (HREF) from the link at
 my
 nearby PHP mirrors, but it must be browser-dependent because none of
 the wget attempts I make yield any files.

 I'm trying to download PHP 4.1.0 ... source tarball (intended for
 x86
 Linux).

 Thanks to any who can help.


 Erik

 =
 Microsoft e[X]tra [P]roprietary
 -- Is this where you really wanted to go today ? --

 http://www.redhat.com/about/opinions/xp.html

 __
 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]



 =
 Microsoft e[X]tra [P]roprietary
 -- Is this where you really wanted to go today ? --

 http://www.redhat.com/about/opinions/xp.html

 __
 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] a piece of PHP history

2001-12-12 Thread Andrei Zmievski

 Google now has 20 years worth of newsgroup archives. Here is a link to
 what is probably the first PHP post by Rasmus.
 
 
http://groups.google.com/groups?q=%22Personal+Home+Page%22+author:Rasmus+author:Lerdor
 \
 
fhl=enscoring=das_drrb=bas_mind=17as_minm=5as_miny=1981as_maxd=12as_maxm=12as
 \
 _maxy=1995rnum=2selm=3r7pgp%24aa1%40ionews.io.org

Here's a shorter link:

http://groups.google.com/groups?selm=3r7pgp%24aa1%40ionews.io.org

And here's the earliest post by Rasmus:

http://groups.google.com/groups?selm=446%40contact.UUCP

-Andrei
* E Pluribus UNIX. *

-- 
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-12 Thread rasmus

Wow, doesn't seem like that long ago I wrote that.  By the way, you can 
get significantly shorter URLs out of google groups if you click on 
Original Format and then remove the ?output=... part of it.  In this 
case the short URL is:

http://groups.google.com/groups?selm=3r7pgp%24aa1%40ionews.io.org

-Rasmus

On Wed, 12 Dec 2001, Monte Ohrt wrote:

 Google now has 20 years worth of newsgroup archives. Here is a link to
 what is probably the first PHP post by Rasmus.
 
 
http://groups.google.com/groups?q=%22Personal+Home+Page%22+author:Rasmus+author:Lerdorfhl=enscoring=das_drrb=bas_mind=17as_minm=5as_miny=1981as_maxd=12as_maxm=12as_maxy=1995rnum=2selm=3r7pgp%24aa1%40ionews.io.org
 
 
 --
 Monte Ohrt [EMAIL PROTECTED]
 http://www.ispi.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] a piece of PHP history

2001-12-12 Thread rasmus

 And here's the earliest post by Rasmus:
 
 http://groups.google.com/groups?selm=446%40contact.UUCP

Argh!  Stop!  Having a globally unique name and 20 years of Usenet 
archives is a bad bad combination.  A moronic sig under a stupid question.  
In my own defense, the Internet was a very very different place in 1989.

-Rasmus


-- 
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-12 Thread Andrei Zmievski

On Wed, 12 Dec 2001, [EMAIL PROTECTED] wrote:
 Argh!  Stop!  Having a globally unique name and 20 years of Usenet 
 archives is a bad bad combination.  A moronic sig under a stupid question.  
 In my own defense, the Internet was a very very different place in 1989.

http://groups.google.com/groups?selm=rlerdorfCHtzxC.D5u%40netcom.com
http://groups.google.com/groups?selm=rlerdorfCF12DD.K09%40netcom.com
http://groups.google.com/groups?selm=1991Apr14.200541.755%40napc.uucp

Priceless. :)

FWIW, my name is pretty much globally unique as well, so I could dig up
some dirt on myself. Example:

http://groups.google.com/groups?selm=3g0qrf%2499j%40crcnis3.unl.edu

I forgot about that one completely.

-Andrei
* I wish life had an UNDO function. *

-- 
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-12 Thread Andrey Hristov

So
 Anyone interested in gaining a position should reply to:
   Andrey Zmievskiy 73021,[EMAIL PROTECTED]
Zmievski or Zmievskiy ? :

Regards,
Andrey

- Original Message - 
From: Andrei Zmievski [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; Monte Ohrt [EMAIL PROTECTED]
Sent: Wednesday, December 12, 2001 6:08 PM
Subject: Re: [PHP] a piece of PHP history


 On Wed, 12 Dec 2001, [EMAIL PROTECTED] wrote:
  Argh!  Stop!  Having a globally unique name and 20 years of Usenet 
  archives is a bad bad combination.  A moronic sig under a stupid question.  
  In my own defense, the Internet was a very very different place in 1989.
 
 http://groups.google.com/groups?selm=rlerdorfCHtzxC.D5u%40netcom.com
 http://groups.google.com/groups?selm=rlerdorfCF12DD.K09%40netcom.com
 http://groups.google.com/groups?selm=1991Apr14.200541.755%40napc.uucp
 
 Priceless. :)
 
 FWIW, my name is pretty much globally unique as well, so I could dig up
 some dirt on myself. Example:
 
 http://groups.google.com/groups?selm=3g0qrf%2499j%40crcnis3.unl.edu
 
 I forgot about that one completely.
 
 -Andrei
 * I wish life had an UNDO function. *
 
 -- 
 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-12 Thread Valentin V. Petruchek

As I started all these I propose to go to next stage of discuss: i.e.
drawing proposed logos.

We've got plenty of variants...

So if anyone has enough free time and ability to develop a GRAPHICAL logo -
lets post them!

Zliy Pes, 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: [EMAIL PROTECTED]




Re: [PHP] login, and

2001-12-12 Thread Valentin V. Petruchek

Try cookies. They help me greatly ;)

What
- Original Message -
From: Ward, Mark [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, December 12, 2001 4:15 PM
Subject: [PHP] login, and


 I've got a question about how I should implement my logins with PHP..

 I'm working on a project that requires the user to login with their
 password. That's not a problem. My question is... how do I keep track of
the
 user once they go through the hierarchy of my site? Is it as simple as
 passing a hidden variable throughout, or are sessions the best, or
easiest,
 way of doing things?

 Mark Ward

 --
 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-12 Thread Rasmus Lerdorf

Not that I think PHP needs a mascot, but I have always liked the 
mole/groundhog.  Someone even drew up some logos based on that at some 
point.  See:

http://cvs.php.net/~rasmus/logo1.gif
http://cvs.php.net/~rasmus/logo2.gif
http://cvs.php.net/~rasmus/logo3.gif
http://cvs.php.net/~rasmus/logo4.gif

-Rasmus

On Wed, 12 Dec 2001, Valentin V. Petruchek wrote:

 As I started all these I propose to go to next stage of discuss: i.e.
 drawing proposed logos.
 
 We've got plenty of variants...
 
 So if anyone has enough free time and ability to develop a GRAPHICAL logo -
 lets post them!
 
 Zliy Pes, 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: [EMAIL PROTECTED]




[PHP] hotscripts.com poll

2001-12-12 Thread Monte Ohrt

FYI, there is a poll on the frontpage of hotscripts.com to vote for your
favorite scripting language, and PHP is in a commanding lead.

interesting stats:

http://www.hotscripts.com/polls/results.hsp

Monte

-- 
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] 4.1.0 and is_file

2001-12-12 Thread Brian Paulson

This morning after I got 4.1.0 installed and running I started getting
the following warning where I used is_file to check to see if a file was
present.

Warning: stat failed for /gallery/pictures/.desc (errno=2 - No such file
or directory) in /gallery/index.php on line 451

Has any one else had this problem? 


Thank You
Brian Paulson
Sr. Web Developer
[EMAIL PROTECTED]
http://www.chieftain.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] 4.1.0 and is_file

2001-12-12 Thread Andrey Hristov

It looks like it is a fixed bug.
From PHP-DEV (today):

 ID: 14424
 Updated by: sander
 Reported By: [EMAIL PROTECTED]
 Status: Open
 Old Bug Type: Filesystem function related
 Bug Type: Documentation problem
 Operating System: Suse linux 7.2
 PHP Version: 4.1.0
 New Comment:

 So what's the problem? is_readable now returns an error, which is IMHO fine. The 
only problem is that it's not documented.
Changing to docu prob.


He's right, this really shouldn't be -- its been fixed in HEAD its
just not in 4.1.0...

-Sterling

 Previous Comments:
 

 [2001-12-11 08:22:39] [EMAIL PROTECTED]

 Code example:
 if (is_readable(foo)) {
 echo file exists.P;
 } else {
 echo file does not exist.P;
 }

 Error message:
 Warning: stat failed for foo (errno=2 - No such file or directory) in 
/home/xxx/public_html/is_readable.php on line 3

 Configure options:

./configure --with-apache=/home/xxx/apache_1.3.22 --with-mysql=/usr/local 
--with-gd=/usr/local --with-zlib-dir=/usr/local --with-png
-dir=/usr --with-jpeg-dir=/home/xxx/jpeg-6b --with-xpm-dir=/usr/X11R6  --with-ttf  
--with-curl

 Seems similar to is_file() bug. Problem does not occur on older versions (i.e. 
4.0.6).
- Original Message -
From: Brian Paulson [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, December 12, 2001 9:17 PM
Subject: [PHP] 4.1.0 and is_file


 This morning after I got 4.1.0 installed and running I started getting
 the following warning where I used is_file to check to see if a file was
 present.

 Warning: stat failed for /gallery/pictures/.desc (errno=2 - No such file
 or directory) in /gallery/index.php on line 451

 Has any one else had this problem?


 Thank You
 Brian Paulson
 Sr. Web Developer
 [EMAIL PROTECTED]
 http://www.chieftain.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] Re: test

2001-12-12 Thread Mike Eheler

Syntax error

Andrey Hristov wrote:

 test
 
 


-- 
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 and quicker run times

2001-12-12 Thread Eöl

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.

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?

To often (especially when dealing directly with m$),
IIS means windows.  People tend to forget there are
plenty of win32 apache ppl running php.  (If you don't
believe, try finding documentation on php/apache
win32.  There is next to none.  Its all *nix / apache
or windows / IIS).

So my question comes down to:  Was the speed greatly
increased on my win32 apache server (as implied since
great improvements were made on WINDOWS (didn't
mention IIS) OR does once again windows mean IIS?

Hopefully i can get a definitive answer on this and
not speculation :).

Cheers,

Peter

__
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: CDBaby.com

2001-12-12 Thread Mike Eheler

I'm not sure what to make of this? Is it spam? Is it an acclaim? What is it?

Mike

Richard Lynch wrote:

 As you may know, I run a tiny record label No Genre in Chicago.
 
 Ulele's Seed CD released last week on No Genre has been selected as 
 a Featured CD on the FRONT PAGE of http://cdbaby.com/
 
 This is a HUGE DEAL in the independent music world!
 
 CDBaby is the 2nd-largest on-line retailer of music CDs, only behind 
 Amazon.com, and gets God knows how much traffic.
 
 Since 1996 when he started it to sell his own CDs and a few bands he was 
 friends with CDBaby has built up to:
 
 o  11,810 artists sell their CD at CD Baby.
 o  149,538 CDs sold online to customers.
 o  $903,821.30 paid to artists.
 
 They get about 40 CDs *every* day, so it's a pretty big honor.
 
 Oh, did I mention this site and the admin site at http://cdbaby.net; 
 and the community site at http://cdbaby.org are all *ENTIRELY* 
 PHP-based, and written by a musician who isn't really a programmer?  He 
 picked PHP as the only language that didn't scare him away.
 
 Anyway, if you like music or just want to see how slick a PHP site from 
 a non-programmer can be, check out his sites.
 
 http://cdbaby.com/ulele/


-- 
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] last entry in mysql

2001-12-12 Thread Yoed Anis

hey guys,

quick question I'm having trouble finding an answer too.
In a mysql database, how can I select that last row entry. This might be
done mins after i put that entry there and i tried to use:
 $lastid=mysql_insert_id(); to get the last id but to no avail.

Thanks
Yoed



-- 
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] Writing xxx OR yyy with a regular expressions`?

2001-12-12 Thread Lauri Vain

Hello there,

I need to write all of the href= contents into an array. Presently I use the
following code, which works like charm:
.CODEpreg_match('!HREF=[\\' ]{0,}([^\\']*)[\\']!i', $Content,
$reg_array)./CODE

That, however, doesn't support Frames so I would need to make the script match
HREF or SRC. I tried the following code, but it doesn't want to support
frames and ceases to support usual HREF's as well.
.CODEpreg_match('!(HREF|SRC)=[\\' ]{0,}([^\\']*)[\\']!i', $Content,
$reg_array)./CODE

In other words I replace .CODEHREF./CODE with .CODE(HREF|SRC)./CODE.

Any ideas how to make the script support both?

Yours,
Lauri
--
Tharapita Creations
[dynamic web applications]
[EMAIL PROTECTED]
Mobile: +372 53 401 312


-- 
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-12 Thread Randy Johnson

How about the Rhino ?


- Original Message - 
From: Billy Harvey [EMAIL PROTECTED]
To: PHP [EMAIL PROTECTED]
Sent: Wednesday, December 12, 2001 8:30 AM
Subject: RE: [PHP] Logo proposal


 On Wed, 2001-12-12 at 08:11, 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
 
 H - killer - how about an Orca?  We'll pretend that they get along
 well with the MySQL dolphin, but PHP is definitely a killer app.
 
 Billy
 
 
 -- 
 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] last entry in mysql

2001-12-12 Thread Jon Niola

You should try using mysql_insert_id()  with the connection descriptor.

For example:

$dblink = mysql_connect($host, $user, $password);
mysql_select_db($databasename, $dblink);
  
  The $dblink variable or what I call the connection descriptor, should be 
used with mysql_insert_id($dblink);

--Jon


At 10:30 AM 12/12/2001 -0600, Yoed Anis wrote:
hey guys,

quick question I'm having trouble finding an answer too.
In a mysql database, how can I select that last row entry. This might be
done mins after i put that entry there and i tried to use:
  $lastid=mysql_insert_id(); to get the last id but to no avail.

Thanks
Yoed



--
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] Cookie

2001-12-12 Thread Steve Osborne

Still trying to get the cookie to work in my site for automatic login
capabilities. It has it's moments of greatness, before fading into the
shadows again. Most recently, I downloaded Netscape 6.2.1 to test my site,
and when I did not allow the password manager to save my login, it has since
refused to allow my cookie to be set, even when I unblocked cookies for the
site in the Netscape preferences. So, in light of that, I tried to set the
cookie on a page in the directory above the login page, in hopes that I
could get around the Netscape problem, and, of course, this stopped IE 6
from reading the cookie.  Now, neither browser is working correctly.  I am
already resigned to the fact that I will not try to support users of
versions 4 and below in regards to cookies, however I do need to get the
more recent versions working.

Is it true that when you set a cookie, it is valid only in that directory or
domain?
Will it be retrieved in subfolders of that directory?
Do I require special code  to allow it to be accessed in subfolders?

Steve Osborne
Database Programmer
Chinook Multimedia Inc.
[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] Writing xxx OR yyy with a regular expressions`?

2001-12-12 Thread Andrey Hristov

Try this :
preg_match('!(HREF|SRC)=([\\']?)(.*?)\2!i',$Content,$reg_array);

HTH

Regards,

-- 
Andrey Hristov
Web Developer
Icygen Corporation
BUILDING SOLUTIONS
http://www.icygen.com

On Wednesday 12 December 2001 02:06 pm, you wrote:
 Hello there,

 I need to write all of the href= contents into an array. Presently I use
 the following code, which works like charm:
 .CODEpreg_match('!HREF=[\\' ]{0,}([^\\']*)[\\']!i', $Content,
 $reg_array)./CODE

 That, however, doesn't support Frames so I would need to make the script
 match HREF or SRC. I tried the following code, but it doesn't want to
 support frames and ceases to support usual HREF's as well.
 .CODEpreg_match('!(HREF|SRC)=[\\' ]{0,}([^\\']*)[\\']!i', $Content,
 $reg_array)./CODE

 In other words I replace .CODEHREF./CODE with
 .CODE(HREF|SRC)./CODE.

 Any ideas how to make the script support both?

 Yours,
 Lauri


-- 
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] FW: A little O T: input type=File -- Can I make a better looking file box?

2001-12-12 Thread Brandon Orther

Hello,
 
I have been working on a php script and lately have been adding style
sheets and image submit buttons to make it look better.
 
I have now run into the problem that the input type file looks like a
regular form input.  I would like to use an image as the browse button
and a css for the text box.  If I apply a css to the file input it
doesn't look right.
 
Does anyone know another way to make a file input with more options on
looks?  Can I make the browse button an image I make?
 
Thanks for any help
Brandon



[PHP] Rational Rose plugin for generating php code ?

2001-12-12 Thread Arne Brune Olsen

Hi
Does anyone know if there is a module for rational rose for generating php code from 
UML diagrams ?

Arne




--
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] last entry in mysql

2001-12-12 Thread Steve Edberg

This may be stating the obvious, but:

(1) Does your table have an auto_increment column?

(2) If so, did a previous query in the program - for example, an 
INSERT - generate a new record with an auto_incremented value? AFAIK, 
mysql_insert_id() won't return the last id unless you have a previous 
query in that same program that INSERTED/UPDATED an auto_incremented 
column.

If you want the maximum value of the column, you can always issue the query:

SELECT
max(your_auto_incremented_column_name_here)
FROM
your_table_name_here


At 10:30 AM -0600 12/12/01, Yoed Anis wrote:
hey guys,

quick question I'm having trouble finding an answer too.
In a mysql database, how can I select that last row entry. This might be
done mins after i put that entry there and i tried to use:
  $lastid=mysql_insert_id(); to get the last id but to no avail.

Thanks
Yoed



-- 
++
| Steve Edberg  [EMAIL PROTECTED] |
| University of California, Davis  (530)754-9127 |
| Programming/Database/SysAdmin   http://pgfsun.ucdavis.edu/ |
++
| Restriction of free thought and free speech is the most dangerous of  |
| all subversions. It is the one un-American act that could most easily  |
| defeat us.|
| - Supreme Court Justice (1939-1975) William O. Douglas |
++

-- 
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] Cookie

2001-12-12 Thread Andrey Hristov

Yes it is visible only in the domain and subdomains
Set-Cookie : foo=bar; Domain=.cnn.com; Path=/; Expires _some_date_

This cookie is for cnn.com or the subdomains(i.e. weather.cnn.com)
also it is valid for evey path because Path is set to /.If it was 
/members it will be accessible only in members and its subdirectories.

Regards,
Andrey Hristov

On Wednesday 12 December 2001 03:16 pm, you wrote:
 Still trying to get the cookie to work in my site for automatic login
 capabilities. It has it's moments of greatness, before fading into the
 shadows again. Most recently, I downloaded Netscape 6.2.1 to test my site,
 and when I did not allow the password manager to save my login, it has
 since refused to allow my cookie to be set, even when I unblocked cookies
 for the site in the Netscape preferences. So, in light of that, I tried to
 set the cookie on a page in the directory above the login page, in hopes
 that I could get around the Netscape problem, and, of course, this stopped
 IE 6 from reading the cookie.  Now, neither browser is working correctly. 
 I am already resigned to the fact that I will not try to support users of
 versions 4 and below in regards to cookies, however I do need to get the
 more recent versions working.

 Is it true that when you set a cookie, it is valid only in that directory
 or domain?
 Will it be retrieved in subfolders of that directory?
 Do I require special code  to allow it to be accessed in subfolders?

 Steve Osborne
 Database Programmer
 Chinook Multimedia Inc.
 [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] Help creating an image repository/library.

2001-12-12 Thread Kevin Stone

That would be an ideal solution.  But one of my problems is that I'm not
very familiar with permission settings.  All I know about is CHMOD.  What
exactly is CHOWN and how would I set it to allow the script upload to a
public directory without risking the security of the web site?  Thanks!

-Kevin

 Can you chown the directory to the same user as the web server runs as
 (ie. nobody)? At that point, you will be able to upload into that
 directory while retaining the directory permission of 755.



 -Original Message-
 From: Kevin Stone [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 11, 2001 2:50 PM
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP] Help creating an image repository/library.


 Yes, I do reference the image filename in the database.. regardless of
 where
 I save it.  That is not the issue.

 The problem is that I can not save the image in a location where I can
 access it via a URL (ie. http://www.mydom.com/images/myimage.jpg).  If I
 could then there would be no problem.  But I am advised to keep the
 directory permissions of the public HTML directory set to 755 which
 means
 that any script excecuting within that directory inherits the user
 permissions (can read, can't write, can execute).  Can't write is the
 clincher.

 I can save the images outside the public html directory but then I can
 not
 grab the image via a URL.  The only way to access the image is to fopen
 and
 fread it to the client browser which means that I must set the header
 (Content-type image/jpeg), which means that I can not display HTML on
 the
 same page.

 It's a catch22..  I can't display an uploaded image along with HTML on
 the
 same page unless it is uploaded to a public directory.  I can not upload
 toa
 public directory unless I CHMOD it to 777.  I am not allowed to CHMOD
 the
 directory so I have to save the images outside the public html
 directory.  I
 can not display an uploaded image along with HTML when I have to fread()
 the
 file to the screen.

 **pant pant**

 There will be thousands of images (4000 - 5000 when complete) and it has
 been advised to me not to save them in a MySQL database as it can
 significantly reduce search times.  Is this true?

 -Kevin Stone

  Presumably, each item in the catalog has a unique id of some sort in
  the database. When you upload the images, you can rename the image
  file to image_(unique_id).jpg. Then when you load a page, you can
  reference the item next to the image.
 
  This is only one way to do it, of course. You could also store the
  image names in another database and link the tables when calling the
  data for the jewelry.
 
  jim
 
 
  I have written a simple image uploading system to go along with a
 simple
  database.  This will be a part of a publiclay accessable search
 engine
 for a
  jewelry companie's web site.  Almost every entry has a corresponding
 image.
  But that was the easy part...  The problem now is that I need to
 display
 the
  images next to the corresponding info on the same page.
  
  I do not know much about UNIX permissions but I am strongly advised
 to
 keep
  the permission settings on the public-html directory set to 0755 at
 the
 very
  least.  Since the PHP script inhereits user permissions (and not the
 Owner's
  permission)  this means that I can not upload the files to the
 Public-html
  directory where I could easily grab them with a URL.  The only place
 I
 have
  access is outside the public html directory.  Of couse I can open any
 number
  of images I like and read them to the browser screen... but they can
 not
  mingle with HTML becuase I have to set the header(Content-type:
  image/jpeg) in order to display the image in the first place.
 ARRGGH!
  
  It is forcing me to use frames or a floating window to display the
 images..
  which is absoutely totaly unacceptable.  Aside from being a hack
 solution
  there is no way I can align the images with the corresponding
 database
 info.
  And inline frames are not supported by all browsers.
  
  *sigh*
  
  I am being blocked on all ends and I need a solution fast.  Any help
 will
 be
  **GREATLY** appreciated.
  
  -Kevin Stone
  
  
  --
  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]
 
 
  --
  Jim Musil
  -
  Multimedia Programmer
  Nettmedia
  -
  212-629-0004
  [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: 

Re: [PHP] Single/Double Quotes

2001-12-12 Thread Kevin Stone

I see your question has already been answered, but I'll add a tip that works
well for me.  Whenever I want to perform an SQL query that involves PHP
variables I will write the query string to its own variable instead of
directly into the function.   Then use that variable in the query
function...

$query = SELECT * FROM my_table WHERE column1 = '$mydata'  column2 =
'$mydata2' ORDER BY $order_col $asc_desc;
$result = mysql_query($query, $db);

-Kevin


- Original Message -
From: Gerard Samuel [EMAIL PROTECTED]
To: PHP [EMAIL PROTECTED]
Sent: Wednesday, December 12, 2001 7:08 AM
Subject: [PHP] Single/Double Quotes


 Im tring to rewrite some code to use single/double quotes correctly (as
 correct as can be).

 If I use
 $result=mysql_query('SELECT book FROM ' . TAB_AUTHORS .  WHERE aid =
 $aid);
 I get an mysql error.  That should be correct, if I understand it right.

 But if I use
 $result=mysql_query('SELECT book FROM ' . TAB_AUTHORS .  WHERE aid =
 '$aid');
 it works.


 So what I need to know is that do I have to ride the fine thin line for
 correctness and speed???


 --
 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] HEX value for str variable

2001-12-12 Thread Alex Shi

Hello,

For some reason I need to test Hex value in a string variable. 
Could any one here help me out how to write one or more hex 
values into a string variable?

Thanks!

Alex


-- 
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.x on Apache 2.x?

2001-12-12 Thread Jon Niola

With all the architectural changes to the Apache platform for 2.x, will PHP 
4.x run as a module still, or is that TBD?

--Jon


-- 
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] How to format ODBC dates

2001-12-12 Thread Ernesto


Hi,

Obviously this is somewhere in the FM, which I've (almost) read, but I 
can't find an answer to:

How do I convert a string containing an ODBC date (-MM-DD HH:MM:SS) 
to a date variable, which I can format usging date()?

Thanks in advance,
Ernesto


-- 
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: Permission denied, although permissions are right

2001-12-12 Thread Fred

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] Script like this for PHP

2001-12-12 Thread Indera

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


-- 
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] Script like this for PHP

2001-12-12 Thread Alex Shi

Javascript.

- Original Message -
From: Indera [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, December 12, 2001 4:01 AM
Subject: [PHP] Script like this for PHP


 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


 --
 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] FW: A little O T: input type=File -- Can I make a better looking file box?

2001-12-12 Thread David Minor

I think you want to look at input type=image 

Brandon Orther wrote:
Hello,
 
I have been working on a php script and lately have been adding style
sheets and image submit buttons to make it look better.
 
I have now run into the problem that the input type file looks like a
regular form input.  I would like to use an image as the browse button
and a css for the text box.  If I apply a css to the file input it
doesn't look right.
 
Does anyone know another way to make a file input with more options on
looks?  Can I make the browse button an image I make?
 
Thanks for any help
Brandon



-- 
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: Script like this for PHP

2001-12-12 Thread Peter

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




-- 
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-12 Thread Boget, Chris

 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.

Yeah, and it only works on IE (and maybe NN6+).  It won't work
(the same way) on NN 6.

Chris



Re: [PHP] PHPhish Logo

2001-12-12 Thread Mark

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]




Re: [PHP] FW: A little O T: input type=File -- Can I make a better looking file box?

2001-12-12 Thread Kevin Stone

Of course input type=image won't browse the file hierarchy.  The truth of
the matter is Brandon that it can not be done by conventional means.  This
is something I investigated a long time ago.  There's a whole conversation
about this on Deja.com.  The only good suggestion is to use some combination
of CSS to hide the original button and JAVA to display a new one.  Hope this
helps some.  :)

-Kevin

- Original Message -
From: David Minor [EMAIL PROTECTED]
To: Brandon Orther [EMAIL PROTECTED]
Cc: PHP User Group [EMAIL PROTECTED]
Sent: Wednesday, December 12, 2001 1:48 PM
Subject: Re: [PHP] FW: A little O T: input type=File -- Can I make a
better looking file box?


 I think you want to look at input type=image

 Brandon Orther wrote:
 Hello,
 
 I have been working on a php script and lately have been adding style
 sheets and image submit buttons to make it look better.
 
 I have now run into the problem that the input type file looks like a
 regular form input.  I would like to use an image as the browse button
 and a css for the text box.  If I apply a css to the file input it
 doesn't look right.
 
 Does anyone know another way to make a file input with more options on
 looks?  Can I make the browse button an image I make?
 
 Thanks for any help
 Brandon
 


 --
 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] Help creating an image repository/library.

2001-12-12 Thread David Piasecki

You don't want to store the files in the root public directory. Create a
subdirectory for uploads, 'public-html/uploads' for example. Make sure
it's permissions are 755. From the command line, 'chown nobody,nobody
uploads' would do it. The syntax for chown is 'chown user,group
file/directory'.

David Piasecki
Software Engineer
Netvolution.com, Inc.
http://www.netvolution.com
548 South Spring Street, Suite 814, Los Angeles CA 90013
Phone: 213-593-1090 x107
Fax: 213-593-1091


-Original Message-
From: Kevin Stone [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, December 12, 2001 11:24 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [PHP] Help creating an image repository/library.

That would be an ideal solution.  But one of my problems is that I'm not
very familiar with permission settings.  All I know about is CHMOD.
What
exactly is CHOWN and how would I set it to allow the script upload to a
public directory without risking the security of the web site?  Thanks!

-Kevin

 Can you chown the directory to the same user as the web server runs as
 (ie. nobody)? At that point, you will be able to upload into that
 directory while retaining the directory permission of 755.



 -Original Message-
 From: Kevin Stone [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 11, 2001 2:50 PM
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP] Help creating an image repository/library.


 Yes, I do reference the image filename in the database.. regardless of
 where
 I save it.  That is not the issue.

 The problem is that I can not save the image in a location where I can
 access it via a URL (ie. http://www.mydom.com/images/myimage.jpg).  If
I
 could then there would be no problem.  But I am advised to keep the
 directory permissions of the public HTML directory set to 755 which
 means
 that any script excecuting within that directory inherits the user
 permissions (can read, can't write, can execute).  Can't write is
the
 clincher.

 I can save the images outside the public html directory but then I can
 not
 grab the image via a URL.  The only way to access the image is to
fopen
 and
 fread it to the client browser which means that I must set the header
 (Content-type image/jpeg), which means that I can not display HTML
on
 the
 same page.

 It's a catch22..  I can't display an uploaded image along with HTML on
 the
 same page unless it is uploaded to a public directory.  I can not
upload
 toa
 public directory unless I CHMOD it to 777.  I am not allowed to CHMOD
 the
 directory so I have to save the images outside the public html
 directory.  I
 can not display an uploaded image along with HTML when I have to
fread()
 the
 file to the screen.

 **pant pant**

 There will be thousands of images (4000 - 5000 when complete) and it
has
 been advised to me not to save them in a MySQL database as it can
 significantly reduce search times.  Is this true?

 -Kevin Stone

  Presumably, each item in the catalog has a unique id of some sort in
  the database. When you upload the images, you can rename the image
  file to image_(unique_id).jpg. Then when you load a page, you can
  reference the item next to the image.
 
  This is only one way to do it, of course. You could also store the
  image names in another database and link the tables when calling the
  data for the jewelry.
 
  jim
 
 
  I have written a simple image uploading system to go along with a
 simple
  database.  This will be a part of a publiclay accessable search
 engine
 for a
  jewelry companie's web site.  Almost every entry has a
corresponding
 image.
  But that was the easy part...  The problem now is that I need to
 display
 the
  images next to the corresponding info on the same page.
  
  I do not know much about UNIX permissions but I am strongly advised
 to
 keep
  the permission settings on the public-html directory set to 0755 at
 the
 very
  least.  Since the PHP script inhereits user permissions (and not
the
 Owner's
  permission)  this means that I can not upload the files to the
 Public-html
  directory where I could easily grab them with a URL.  The only
place
 I
 have
  access is outside the public html directory.  Of couse I can open
any
 number
  of images I like and read them to the browser screen... but they
can
 not
  mingle with HTML becuase I have to set the header(Content-type:
  image/jpeg) in order to display the image in the first place.
 ARRGGH!
  
  It is forcing me to use frames or a floating window to display the
 images..
  which is absoutely totaly unacceptable.  Aside from being a hack
 solution
  there is no way I can align the images with the corresponding
 database
 info.
  And inline frames are not supported by all browsers.
  
  *sigh*
  
  I am being blocked on all ends and I need a solution fast.  Any
help
 will
 be
  **GREATLY** appreciated.
  
  -Kevin Stone
  
  
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL 

Re: [PHP] FW: A little O T: input type=File -- Can I make a better looking file box?

2001-12-12 Thread David Minor

oh, you're right.  I misread the question.  sorry

Kevin Stone wrote:
Of course input type=image won't browse the file hierarchy.  The truth of
the matter is Brandon that it can not be done by conventional means.  This
is something I investigated a long time ago.  There's a whole conversation
about this on Deja.com.  The only good suggestion is to use some combination
of CSS to hide the original button and JAVA to display a new one.  Hope this
helps some.  :)

-Kevin

- Original Message -
From: David Minor [EMAIL PROTECTED]
To: Brandon Orther [EMAIL PROTECTED]
Cc: PHP User Group [EMAIL PROTECTED]
Sent: Wednesday, December 12, 2001 1:48 PM
Subject: Re: [PHP] FW: A little O T: input type=File -- Can I make a
better looking file box?


 I think you want to look at input type=image

 Brandon Orther wrote:
 Hello,
 
 I have been working on a php script and lately have been adding style
 sheets and image submit buttons to make it look better.
 
 I have now run into the problem that the input type file looks like a
 regular form input.  I would like to use an image as the browse button
 and a css for the text box.  If I apply a css to the file input it
 doesn't look right.
 
 Does anyone know another way to make a file input with more options on
 looks?  Can I make the browse button an image I make?
 
 Thanks for any help
 Brandon
 


 --
 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] Re: PHP 4.x on Apache 2.x?

2001-12-12 Thread Mike Eheler

You can build php as an apache2 DSO by using 
--with-apxs2=/path/to/apache/bin/apxs

make sure you have built apache with the 'so' module enabled.

mike

Jon Niola wrote:

 With all the architectural changes to the Apache platform for 2.x, will 
 PHP 4.x run as a module still, or is that TBD?
 
 --Jon
 


-- 
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] Searching for a new provider

2001-12-12 Thread Andy

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




-- 
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-12 Thread Dan McCullough

Heres a function I wrote some time back for an ecommerce site, works on the same 
principle.
SCRIPT LANGUAGE=javascript
!--
function ghShow(){
if (document.all){
// IE browser detected
document.all.gh.style.visibility = visible;
}
else if (document.layers) {
// Netscape browser detected
document.gh.visibility = visible;
}
}
//--
/SCRIPT

then on the link.
A HREF=#ghSpot onClick=ghShow()

hope this helps

dan
--- Boget, Chris [EMAIL PROTECTED] 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.
 
 Yeah, and it only works on IE (and maybe NN6+).  It won't work
 (the same way) on NN 6.
 
 Chris
 


=
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]




[PHP] Re: Searching for a new provider

2001-12-12 Thread Mike Eheler

What's a speicherplatz?

Mike

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
 
 
 
 


-- 
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] Script like this for PHP

2001-12-12 Thread Nathan Cassano


While we are on the topic of Dynamic HTML, I'd like to recommend DynAPI
(http://dynapi.sourceforge.net/), a powerful cross-browser DHTML
library. You can do some awesome stuff with DynAPI.


-- 
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] flushing contents to the browser

2001-12-12 Thread DigitalKoala

hi folks,

i'm trying to display something like processing... please wait on a web
page whilst a rather hefty database query is being run.

i don't want to refresh the page so i've been attempting to use flush and
ob_start, together with some css stuff to try and do this.. but no luck so
far - as once the buffer has been flushed, i can't retrieve the content..

does anyone have any nifty ideas?

many thanks
dk



-- 
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-12 Thread Alok K. Dhir


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]
 
 


-- 
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] Cookie

2001-12-12 Thread Rasmus Lerdorf

How is exactly is SetCookie() broken?  

Compare your header() call to the same SetCookie() calls and you will see 
that yours produces:

Set-Cookie: username=Rasmus; expires=Wed, 12-Dec-2001 21:58:55 GMT; path=/; 
domain=www.php.net
Set-Cookie: password=d41d8cd98f00b204e9800998ecf8427e; expires=Wed, 12-Dec-2001 
21:58:55 GMT; path=/; domain=www.php.net

Whereas these two calls:

SetCookie('username',$username,time()+1800,'/',$SERVER_ADDR);
SetCookie('password',$password,time()+1800,'/',$SERVER_ADDR);

Produce:

Set-Cookie: username=Rasmus; expires=Wed, 12-Dec-01 21:58:55 GMT; path=/; 
domain=www.php.net
Set-Cookie: password=d41d8cd98f00b204e9800998ecf8427e; expires=Wed, 12-Dec-01 21:58:55 
GMT; path=/; domain=www.php.net

Putting them side by side to make it easier to compare:

Set-Cookie: username=Rasmus; expires=Wed, 12-Dec-2001 21:58:55 GMT; path=/; 
domain=www.php.net
Set-Cookie: username=Rasmus; expires=Wed, 12-Dec-01 21:58:55 GMT; path=/; 
domain=www.php.net

They are identical except for the PHP SetCookie() version using a 2-digit 
year (which can be changed in your php.ini file with the y2k directive).  
So if PHP's SetCookie() is broken, then your Header() calls is just as 
broken.

-Rasmus

On Wed, 12 Dec 2001, Casey Allen Shobe wrote:

 Mine's working great.
 setcookie() is broken pretty badly though...so I use header instead...here's 
 my whole authentication system.  I home that it will be of use to you.  This 
 works in every browser that supports cookies.  I've tested NN6-6.2, NN4.77, 
 IE5.0-6.0, and Konqueror 2.2.1.
 
 ?php
 
 if ($pagetype == null) {
   $pagetype = 'login';
 }
 
 // (This is for a 30 minute cookie)
 if ($pagetype == 'dologin') {
   if (($username != null) and ($password != null)) {
   $time = mktime()+1800;
   $date = gmdate(D, d-M-Y H:i:s, ($time));
   $password = md5 ($password);
   header ('Set-Cookie: username='.$username.'; expires='.$date.' GMT; 
path=/; 
 domain='.$SERVER_ADDR);
   header ('Set-Cookie: password='.$password.'; expires='.$date.' GMT; 
path=/; 
 domain='.$SERVER_ADDR);
   header ('Refresh: 1; url='.$PHP_SELF.'?pagetype=home');
   print 'One moment, logging on...'.\n;
   } else {
   $pagetype = 'login';
   $message = 'nopass';
   }
 }
 
 if ($pagetype == 'dologoff') {
   $time = mktime()-1800;
   $date = gmdate(D, d-M-Y H:i:s, ($time));
   header ('Set-Cookie: username='.$username.'; expires='.$date.' GMT; path=/; 
 domain='.$SERVER_ADDR);
   header ('Set-Cookie: password='.$password.'; expires='.$date.' GMT; path=/; 
 domain='.$SERVER_ADDR);
 
   $pagetype = 'login';
 }
 
 // If you want to make sure the user doesn't forge their cookie timeout to a
 // longer time, you can also write a lastlogin timestamp into a database or
 // local file, and double-check against that, using the server time.
 
 // You could also even write a isloggedon value to a database to verify that
 // once a user logs off, they are *really* logged off by making it also
 // challenge that.
 
 // This is my authentication check...yours will differ.
 if (($pagetype != 'login') and ($pagetype != 'dologin') and ($pagetype != 
 'dologoff')) {
   if (($username != null) and ($password != null)) {
   $db_userinfo = db_query ($db2_conn, 'select * from gabrielle_users 
where 
 username=\''.$username.'\'');
   $db_password = $db_userinfo[0][0][2];
   $input_password = $password;
   if ($password != $db_password) {
   $pagetype = 'login';
   $message = 'badpass';
   } else {
   $acl = $db_userinfo[0][0][3];
   }
   } else {
   $pagetype = 'login';
   $message = 'expire';
   }
 }
 
 // Updates the cookie on every pageload.  You probably want this.
 if (($pagetype != 'login') and ($pagetype != 'dologin') and ($pagetype != 
 'dologoff') and ($pagetype != 'dochangepass')) {
   $time = mktime()+1800;
   $date = gmdate(D, d-M-Y H:i:s, ($time));
   header ('Set-Cookie: username='.$username.'; expires='.$date.' GMT; path=/; 
 domain='.$SERVER_ADDR);
   header ('Set-Cookie: password='.$password.'; expires='.$date.' GMT; path=/; 
 domain='.$SERVER_ADDR);
 }
 
 if ($pagetype == 'login') {
   $time = mktime()-1800;
   $date = gmdate(D, d-M-Y H:i:s, ($time));
   header ('Set-Cookie: username='.$username.'; expires='.$date.' GMT; path=/; 
 domain='.$SERVER_ADDR);
   header ('Set-Cookie: password='.$password.'; expires='.$date.' GMT; path=/; 
 domain='.$SERVER_ADDR);
   // Replace this with whatever you do to generate a login page.
   render_page ('login', $message, 0, 0, $gabrielle_version, $SERVER_PORT, 
 $SERVER_ADDR, 0, 0, 0, $HTTP_SERVER_VARS[SERVER_PORT], 
 $HTTP_SERVER_VARS[SERVER_NAME], $PHP_SELF);
 }
 
 if ($pagetype == 'home') {
   // Replace 

[PHP] online editor

2001-12-12 Thread R. Lindeman

can someone help get a online editor

thanx

R. Lindeman





-- 
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 and User-defined Sessions

2001-12-12 Thread Jaime Bozza

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.

  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.

  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 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.

  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.)

  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 of out of luck on
tracing.  All I can tell you now is that using user-defined handlers for
sessions started causing me lots of problems.  (As near as I can tell,
you need to have some sort of a decent load on your servers - Single
client access didn't ever seem to allow me to force the crashes)

  HELP! 

Jaime Bozza


-- 
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-12 Thread R'twick Niceorgaw

take a look at aletia hosting (www.aletiahosting.com). Their low end is just
$9.95 ( $7.95 if paid anually + free domain registration) and is feature
rich ( 200Mb space, PHP 4.0.6 moving to 4.1 soon, My SQL (10 databases) 10GB
bandwidth etc). I have moved to them few months back and their speed and
support looks good to me.

Regards
R'twick

- Original Message -
From: Andy [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, December 12, 2001 4:06 PM
Subject: [PHP] Searching for a new provider


 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




 --
 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-12 Thread Mehmet Kamil ERISEN

Hi,
I use connecticut-web.com. Pretty good.  fast. The most
important value is that the customer service is excellent.
They provide email and icq service and very prompt in
returning requests.


--- R'twick Niceorgaw [EMAIL PROTECTED] wrote:
 take a look at aletia hosting (www.aletiahosting.com).
 Their low end is just
 $9.95 ( $7.95 if paid anually + free domain registration)
 and is feature
 rich ( 200Mb space, PHP 4.0.6 moving to 4.1 soon, My SQL
 (10 databases) 10GB
 bandwidth etc). I have moved to them few months back and
 their speed and
 support looks good to me.
 
 Regards
 R'twick
 
 - Original Message -
 From: Andy [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, December 12, 2001 4:06 PM
 Subject: [PHP] Searching for a new provider
 
 
  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
 
 
 
 
  --
  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]
 


=
Mehmet Erisen
http://www.erisen.com

__
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] Searching for a new provider

2001-12-12 Thread Tom Ray

Hey Andy-

I work with a hosting company that I believe has everything you're 
looking for in your wish list. They're a small company that's been 
around for about 10 years (started as an ISP). If you can get me more 
information on the type of hosting you're looking to do and what other 
specifics you might need for your sites, I can get you a ball park 
figure on what it will cost.

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








[PHP] Date

2001-12-12 Thread Max

Hi to all,

I'm using this to get date from mySQL database:

...
$p_datum = $row[mydatefield];
$mydate = getdate($p_datum); 
$month = $mydate['month']; 
$mday = $mydate['mday']; 
$year = $mydate['year']; 

..but I allways get 1/1/1970.

Can anybody help me?

-- 
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] Date

2001-12-12 Thread Mehmet Kamil ERISEN

what's your raw data. I mean, what is the value of
$row[mydatafield];

--- Max [EMAIL PROTECTED] wrote:
 Hi to all,
 
 I'm using this to get date from mySQL database:
 
 ...
 $p_datum = $row[mydatefield];
 $mydate = getdate($p_datum); 
 $month = $mydate['month']; 
 $mday = $mydate['mday']; 
 $year = $mydate['year']; 
 
 ..but I allways get 1/1/1970.
 
 Can anybody help me?
 
 -- 
 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]
 


=
Mehmet Erisen
http://www.erisen.com

__
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   >