[PHP] flock

2002-01-06 Thread David Robinson
I'm using flock to manage the access of a file. I've noticed that php seems to wait for the file to be freed up. Is there a ordered que that each request goes into? And a timeout period, or does it just wait? David -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail:

[PHP] PHP Security Alert for Apache/Win32

2002-01-06 Thread Garth Dahlstrom
Folks running Apache/Win32 should read this: http://www.securiteam.com/windowsntfocus/5ZP030U60U.html If you run in CGI mode you likely have a line similar to the following in your httpd.conf: ScriptAlias /php/ C:\php\ Also, if you run SAPI mode (apache plugin mode) and used to run CGI, make

Re: [PHP] To you know-it-all's out there...

2002-01-06 Thread nico_netcourrier
La page XML ne peut pas être affichée Impossible d'afficher l'entrée XML en utilisant la feuille de style . Corrigez l'erreur, puis cliquez sur le bouton Actualiser ou réessayez ultérieurement. Aucun espace blanc

[PHP] distinct element from array

2002-01-06 Thread Kancha .
An array contains various values eg: list of fruits. Now i want to retrieve only unique fruits from the array. The array may contain duplicate names. How can i achieve this? __ Do You Yahoo!? Send FREE video emails in Yahoo! Mail!

SV: SV: [PHP] Re: Still need help with miscount

2002-01-06 Thread Daniel Alsén
I don't know if this is actually it, but the line $num_vals[$i] = mysql_fetch_array($result); seems strange to me - doesn't mysql_fetch_array return an array? You should try list($num_vals[$i]) = mysql_fetch_array($result); and see if you get any improvements... No, that was not it. It

[PHP] Re: PHP Security Alert for Apache/Win32

2002-01-06 Thread David
Wow!, i tried it and it really works, this is serious man! is there a fix around it without safe mode like GED suggested? Folks running Apache/Win32 should read this: http://www.securiteam.com/windowsntfocus/5ZP030U60U.html If you run in CGI mode you likely have a line similar to the

Re: [PHP] distinct element from array

2002-01-06 Thread Bogdan Stancescu
$distincts=array(); while (list($key,$val)=each($yourarray) { if (!in_array($val,$distincts)) { $distincts[]=$val; } } Kancha . wrote: An array contains various values eg: list of fruits. Now i want to retrieve only unique fruits from the array. The array may contain duplicate

Re: [PHP] distinct element from array

2002-01-06 Thread Andrey Hristov
Try array_unique() Regards, Andrey Hristov -- PHP General Mailing List (http://www.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] What can I use instead?

2002-01-06 Thread Mark Evans
Hi I am writing a piece of code that uses contstant names that are dynamic. My first solution was to use the constant() function from within PHP. My problem now is that the code needs to be compatible with PHP 3.018 and early versions of PHP 4. Can anyone offer a better way of doing things?

php-general Digest 6 Jan 2002 15:32:57 -0000 Issue 1095

2002-01-06 Thread php-general-digest-help
php-general Digest 6 Jan 2002 15:32:57 - Issue 1095 Topics (messages 79592 through 79609): To you know-it-all's out there... 79592 by: Torkil Johnsen 79593 by: Manuel Lemos 79603 by: nico_netcourrier Re: regular expressions 79594 by: Michael Sims

[PHP] Re: What can I use instead?

2002-01-06 Thread Gerald Artman
On 1/6/02 10:15 AM, Mark Evans [EMAIL PROTECTED] wrote: I am writing a piece of code that uses contstant names that are dynamic. Is this an oximoron? Just a thought... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

[PHP] Internal Server Error?

2002-01-06 Thread GoodFella
Hello, Does anybody have any ideas why the code below is giving me internal server errors? if (!isset($PHP_AUTH_USER)) { header('WWW-Authenticate: Basic realm=XYZ Company Admin Area'); header('HTTP/1.0 401 Unauthorized'); echo 'Authorization Required.'; exit; } else if

[PHP] ... [PHP] Stupid question alert

2002-01-06 Thread tim at 10Kv
Thanks for everyone's comments. If I understand what you are saying it should be possible to fill the content of a layer by issuing some sort of server include command.. (?) So, for example, rather than have a something that looks like this: div id=haiti style=position:absolute; left:752px;

[PHP] Re: [PHP-DB] PHP/MySql - address book

2002-01-06 Thread Andrey Hristov
The answer to your question is the relational model of databases. So instead of one big table, you have to use 2. Say first table is employee and the second - companies. in the employee we have some fields and one of them is company_id, this id corresponds to a single row in the companies table.

[PHP] Re: distinct element from array

2002-01-06 Thread George Nicolae
array_keys(array_count_values($foo)); -- Best regards, George Nicolae IT Manager ___ X-Playin - Professional Web Design www.x-playin.f2s.com Kancha . [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... An array contains various values eg: list of

RE: [PHP] Internal Server Error?

2002-01-06 Thread Kraa de Simon
This only works if PHP is installed as an Apache module on the Linux/UNIX platforms. From the docs: One additional note about PHP: if PHP is installed as an Apache module on the Linux/UNIX platforms, there are additional global variables available to your PHP script: $PHP_AUTH_USER --

[PHP] setcookie()

2002-01-06 Thread Tyler Longren
Hello, I need to set a cookie to store a username, password, and passcode forever (never expires). I don't really know how to use the setcookie() function. Could someone show me the proper way to use the setcookie() function to do this? Thanks, Tyler -- PHP General Mailing List

[PHP] PHP Parsing Efficiency

2002-01-06 Thread Marvin Sanders
Newbie question: Is there any performance hit on a page with muliple PHP tags inserted throughout HTML, compared with trying to concatenate all of the PHP scripting into one set of tags? Thanks for any advice! Marvin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail:

[PHP] Re: [PHP-DB] mysql_num_rows

2002-01-06 Thread Andrey Hristov
That means the sql is not correct and the mysql_query()(mysql at all) didn't succeded to execute it Check you sql statement. Regards, Andrey Hristov - Original Message - From: Gurhan Ozen [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, January 06, 2002 9:52 PM Subject: [PHP-DB]

[PHP] Re: setcookie()

2002-01-06 Thread George Nicolae
man first of all look in the manual. there it is very clear... http://www.php.net/manual/en/function.setcookie.php -- Best regards, George Nicolae IT Manager ___ X-Playin - Professional Web Design www.x-playin.f2s.com Tyler Longren [EMAIL PROTECTED] wrote in message

Re: [PHP] take links from url

2002-01-06 Thread Matt Moreton
You could use the following preg statement: preg_match_all( /table(.*(?=\/table))/, $string, $output, PREG_SET_ORDER ); This would put all matches of tablesome code, text, whatever/table into the $output array. however you would start to have problems when you come across nested tables. You'd

[PHP] Re: PHP Security Alert for Apache/Win32

2002-01-06 Thread LaserJetter
Can you not just delete the ScriptAlias line? What does that line actually do apart from create an Alias? LJ David [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Wow!, i tried it and it really works, this is serious man! is there a fix around it without safe

RE: [PHP] Connect to IBM DB2

2002-01-06 Thread Maciej Uhlig
This is probably not what you want but I found at http://www.php.net/manual/en/install.configure.php something like that: --with-ibm-db2[=DIR] Include IBM DB2 support. DIR is the DB2 base install directory, defaults to /home/db2inst1/sqllib. Maybe you can make use of it, I don't run IBM DB2.

Re: [PHP] setcookie()

2002-01-06 Thread Casey Allen Shobe
Here's a compilation of some recent conclusions I've gotten from the same discussion: This is how I chose to set the variables: // $username and $password are passed from a previous page's form. $time = mktime()+1800; $date = gmdate(D, d-M-Y H:i:s, ($time)); $password = md5 ($password);

Re: [PHP] Connect to IBM DB2

2002-01-06 Thread Casey Allen Shobe
Use IBMs DB2 Connect client and compile php --with-db2. I use the server and the client on linux platforms and have never been so happy with database work ;). I've alse used iODBC with the db2 libraries to talk to DB2 with no real performance change. - Casey On Wednesday 02 January 2002

Re: [PHP] Can't get accurate day of year

2002-01-06 Thread Hugh Danaher
Austin, Thanks for your input regarding the date(z) question. I did try ceil(date(z)) but the output using 'z' is an integer. I just used date(z)+1 and moved on. Thanks again, Hugh - Original Message - From: Austin Gonyou [EMAIL PROTECTED] To: Hugh Danaher [EMAIL PROTECTED] Sent:

[PHP] PHP4 and POP Email ?

2002-01-06 Thread Jason Caldwell
Is there a way I can * download * emails and save them to disk (as individual emails) with PHP? I know I can send (SMTP) -- but has anyone written a PHP program that receives emails? Thanks. Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED]

[PHP] Re: PHP software tool

2002-01-06 Thread Phillip Oertel
Yoep wrote: I use this one too... its just 20$ or so though, and is a very great and convient editor. I do all my PHP coding in it. ACK. phil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To

Re: [PHP] PHP4 and POP Email ?

2002-01-06 Thread Bogdan Stancescu
You may check out IMP for a program. The functions you're looking for are listed in the documentation under IMAP mail (it's a generic set of functions for both IMAP and POP). Bogdan Jason Caldwell wrote: Is there a way I can * download * emails and save them to disk (as individual emails)

Re: [PHP] PHP Parsing Efficiency

2002-01-06 Thread Bogdan Stancescu
There may be a difference but even if it is, it's so small you shouldn't consider it. Imagine how much it takes for a (generally) cached document to be checked for ? or ?php or whatever you're using... Don't bother with this one! Bogdan Marvin Sanders wrote: Newbie question: Is there any

[PHP] Re: Re: PHP Security Alert for Apache/Win32

2002-01-06 Thread David
I tried playing with ScriptAlias settings, but i given up. I now use the the Apache module instead of cgi. To change over to the Apache module: copy php4ts.dll to the windows/system(win9x/Me) or winnt/system32(winNT/2000/XP) directory. then inside httpd.conf: LoadModule php4_module

[PHP] POSTing HTML into a database

2002-01-06 Thread James Arthur
Hi I need a user to be able to enter submit HTML code (also perhaps containing PHP code) via a web form, which will then be entered into a database. The data is typed in to a textarea, which is then posted to my script. I notice that some special characters come out of this process escaped,

[PHP] How to read/write form/into certain place in a text file

2002-01-06 Thread Zhang, Leon (STHK/Zh)
hi, A text file has been formatted ,how to read/write form/into certain place in a text file. For example,read form letter 5 to 10 in line 4 ,and after some procedure ,write into the same place. Another question is that if a user has opened the file to read and write ,what will happen if

Re: [PHP] POSTing HTML into a database

2002-01-06 Thread Richard S. Crawford
I've used a combination of addslashes() and stripslashes() along with htmlspecialchars() to perform just that sort of thing, though I used MySQL instead of PostreSQL. Does anyone know, by the way, if there's a port of PostreSQL to Windows 2000? Or can I run it in Cygwin? At 03:45 PM

[PHP] Re: POSTing HTML into a database

2002-01-06 Thread Manuel Lemos
Hello, James Arthur wrote: Hi I need a user to be able to enter submit HTML code (also perhaps containing PHP code) via a web form, which will then be entered into a database. The data is typed in to a textarea, which is then posted to my script. I notice that some special characters

Re: [PHP] POSTing HTML into a database

2002-01-06 Thread Adam Baratz
Does anyone know, by the way, if there's a port of PostreSQL to Windows 2000? Or can I run it in Cygwin? I've seen it in the package list for Cygwin, there may be a full port as well, check Postgres' web site. -Adam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail:

[PHP] php-mysql connectivity problem

2002-01-06 Thread Vu Hoang Huynh
Hi all, I'm a newbie to PHP and mySQL and I'm currently running PHP+mySQL on my Linux 2.2.16 kernel. Every time I try to connect to mySQL from a php page, I get this error message: ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mys ql.sock' (111) FYI: mysqld was

Re: [PHP] Re: setcookie()

2002-01-06 Thread Tyler Longren
I have checked the manual. A few times actually. I have setcookie(usename, $username); Will that cookie never expire? Or will it expire at the end of the browsing session? I couldn't find any details on that in the manual. Tyler - Original Message - From: George Nicolae [EMAIL

Re: [PHP] Re: setcookie()

2002-01-06 Thread Billy Harvey
On Sun, 2002-01-06 at 16:01, Tyler Longren wrote: I have checked the manual. A few times actually. I have setcookie(usename, $username); Will that cookie never expire? Or will it expire at the end of the browsing session? I couldn't find any details on that in the manual. Tyler

[PHP] Remote Cookie ID and Web Statistics

2002-01-06 Thread Richard Spangenberg
Hello, - for something a little different... Does anyone have experience using Javascript on remote server html delivered pages to capture data in a PHP MySQL database resident at my domain. I would like to build a customer profile database for a customer using a permanent cookie on a visitor's

[PHP] bcc

2002-01-06 Thread Deependra B. Tandukar
Greetings ! Is Bcc supported in PHP? Looking forward to hearing from you. Warm Regards, DT -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL

[PHP] Remote Javascript call to PHP MySQL Database

2002-01-06 Thread Richard Spangenberg
Does anyone have experience using Javascript on remote pages to capture data in a PHP MySQL database. I would like to build a customer profile database for a customer using a permanent cookie on a site visitor's machine to ID them and track their usage. Any suggestions would be appreciated.

[PHP] Re: Remote Javascript call to PHP MySQL Database

2002-01-06 Thread Richard Spangenberg
Note: Please disregard this message as it was restated and resent recently. Richard Spangenberg [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Does anyone have experience using Javascript on remote pages to

php-general Digest 7 Jan 2002 03:33:33 -0000 Issue 1096

2002-01-06 Thread php-general-digest-help
php-general Digest 7 Jan 2002 03:33:33 - Issue 1096 Topics (messages 79610 through 79642): Re: What can I use instead? 79610 by: Gerald Artman Internal Server Error? 79611 by: GoodFella 79615 by: Kraa de Simon ... [PHP] Stupid question alert 79612 by: tim

Re: [PHP] bcc

2002-01-06 Thread Bogdan Stancescu
What do you mean? Supported in what way? (I take it you're referring to the e-mail blind carbon copy feature). Bogdan Deependra B. Tandukar wrote: Greetings ! Is Bcc supported in PHP? Looking forward to hearing from you. -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

re: [PHP] How to read/write form/into certain place in a text file

2002-01-06 Thread Zhang, Leon (STHK/Zh)
Does anybody know this? Please give me some advice,any help will be appreciated. -ԭʼÓʼþ-·¢¼þÈË: Zhang, Leon (STHK/Zh) [mailto:[EMAIL PROTECTED]]·¢ËÍʱ¼ä: 07 January, 2002 9:56ÊÕ¼þÈË: [EMAIL PROTECTED]Ö÷Ìâ: [PHP] How to read/write form/into certain place in a text file

[Fwd: Re: [PHP] bcc]

2002-01-06 Thread Bogdan Stancescu
Inadvertedly only sent to me... Original Message Subject: Re: [PHP] bcc Date: Mon, 7 Jan 2002 11:46:07 +0800 From: Jimmy [EMAIL PROTECTED] To: Bogdan Stancescu [EMAIL PROTECTED] References: [EMAIL PROTECTED]00b701c1972b$68cae5c0$[EMAIL PROTECTED] [EMAIL PROTECTED] Is Bcc

Re: [PHP] bcc

2002-01-06 Thread Mehmet Kamil ERISEN
Dear List, I is always a good idea to check out the manual before asking questions. The answer to Leon's question about files is in the manual as well as the answer to this questions. I hope the following links help. File Operations: http://www.php.net/manual/en/ref.filesystem.php Bcc can be

Re: [PHP] Remote Cookie ID and Web Statistics

2002-01-06 Thread Miles Thompson
Why would you want to use Javascript? Just have some code at the top of each page which -checks for the cookie -if it doesn't exist -identify customer, login page or however you choose -set cookie -update database -if it does exist -update the database with some information

[PHP] phpinfo() question

2002-01-06 Thread Gaylen Fraley
When you run phpinfo(), the first line of detail has the OS version. What variable produces this? -- Gaylen [EMAIL PROTECTED] Home http://www.gaylenandmargie.com/ PHP KISGB v3.02 Guest Book http://www.gaylenandmargie.com/phpwebsite/ -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] phpinfo() question

2002-01-06 Thread Jason Murray
When you run phpinfo(), the first line of detail has the OS version. What variable produces this? Thats the output from uname -a on the command line... at least, under *nix it is... Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: [PHP] phpinfo() question

2002-01-06 Thread Gaylen
Thanks. That was it! Gaylen [EMAIL PROTECTED] Home http://www.gaylenandmargie.com/ PHP KISGB v3.02 Guest Book http://www.gaylenandmargie.com/phpwebsite/ - Original Message - From: Jason Murray [EMAIL PROTECTED] To: 'Gaylen Fraley' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Sunday,

Re: [PHP] How to read/write form/into certain place in a text file

2002-01-06 Thread Jimmy
Hi Leon, For example,read form letter 5 to 10 in line 4 ,and after some procedure ,write into the same place. if the file is not too big, you can use file() function which will return an array containing the content of the file per line. combine this with substr() to read from specific

re: [PHP] How to read/write form/into certain place in a text file

2002-01-06 Thread Zhang, Leon (STHK/Zh)
Thank you ,Jimmy . -ԭʼÓʼþ- ·¢¼þÈË: Jimmy [mailto:[EMAIL PROTECTED]] ·¢ËÍʱ¼ä: 07 January, 2002 12:13 ÊÕ¼þÈË: [EMAIL PROTECTED] Ö÷Ìâ: Re: [PHP] How to read/write form/into certain place in a text file Hi Leon, For example,read form letter 5 to 10 in line 4 ,and after some

[PHP] no reply-to header?

2002-01-06 Thread Jimmy
Hi All, I just realize there's no reply-to header in this mailing list. No wonder I never receive my own email when I reply to any mail here. Does it purposely set this way? Or is this a glitch? -- Jimmy Mistakes show us what we need to learn. -- PHP General

RE: [PHP] no reply-to header?

2002-01-06 Thread Martin Towell
I thought that if there's no reply-to, then email clients will use the from as the reply to ?? -Original Message- From: Jimmy [mailto:[EMAIL PROTECTED]] Sent: Monday, January 07, 2002 3:22 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: [PHP] no reply-to header? Hi All, I just

[PHP] Another php data gathering question

2002-01-06 Thread Gaylen Fraley
Is there any way, through PHP, to get the: server uptime processor type number of cpu's I'm trying to find a compatable solution for both win32 and *nix. Thanks! -- Gaylen [EMAIL PROTECTED] Home http://www.gaylenandmargie.com/ PHP KISGB v3.02 Guest Book

[PHP] Scripting events with php

2002-01-06 Thread Puck
My problem is that I want to use events in my forms but I do not know how to use php as a script for an event. Say I wanted to do something as simple as (within a form): input type=button value=Test onclick= ?php print 'testing, testin 123';? Essentially, when a click this button in a form it

RE: [PHP] Scripting events with php

2002-01-06 Thread Jason Murray
My problem is that I want to use events in my forms but I do not know how to use php as a script for an event. Say I wanted to do something as simple as (within a form): input type=button value=Test onclick= ?php print 'testing, testin 123';? Essentially, when a click this button in a

[PHP] IF in mysql query results problem

2002-01-06 Thread Jason Dulberg
I am working on a program that allows users to bookmark a particular item that they view. The bookmarks are stored in the database. I would like to use an IF statement in the mysql query so when the user logs in and views the items, the option to bookmark the record has been removed if they have

[PHP] Re: To you know-it-all's out there...

2002-01-06 Thread qartis
Your code works perfectly as a .php file -- PHP General Mailing List (http://www.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 Security Alert for Apache/Win32

2002-01-06 Thread Garth Dahlstrom
AFAIK, you need the ScriptAlias line in your httpd.conf if you are running PHP as a CGI... Safer to run it as an SAPI module if you can and remove that ScriptAlias line. -GED LaserJetter - Re: PHP Security Alert for Apache/Win32 - Sun, 6 Jan 2002 20:16:39 - Can you

Re: [PHP] IF in mysql query results problem

2002-01-06 Thread Mehmet Kamil ERISEN
Hi Jason, I am not too familiar with IF statements in SQL, but one thing may be the reason you see the incorrect results: You have three tables, player, coach and co_bookmarks, but you only join player and coach. Shouldn't you join coach with co_bookmarks. I hope this helps. erisen

RE: [PHP] IF in mysql query results problem

2002-01-06 Thread Jason Dulberg
Thanks for your reply... I thought about making that join however in this case, the coach data is only needed for the player info. Jason. -Original Message- From: Mehmet Kamil ERISEN [mailto:[EMAIL PROTECTED]] Sent: January 7, 2002 1:41 AM To: [EMAIL PROTECTED]; [EMAIL

[PHP] 2 images, merge, make one transparent

2002-01-06 Thread Peter J. Schoenster
Hi, I've looked here: http://download.php.net/manual/en/function.imagecolortransparent.p hp I've read this: http://www.wdvl.com/Authoring/Languages/PHP/BeginningPHP4/tra nsparent.html But they lose me when they suddenly jump to PNG. I got their code but it doesn't work for me. I have all

Re: [PHP] distinct element from array

2002-01-06 Thread Kancha .
doesn't seem to work for multidimensional array. $yourarray looks like this in my case $yourarray[0] = array() $yourarray[1] = array() //i'm looking for distinct elemtns in the inner array --- Bogdan Stancescu [EMAIL PROTECTED] wrote: $distincts=array(); while

Re: [PHP] no reply-to header?

2002-01-06 Thread Jimmy
Hi Martin, I thought that if there's no reply-to, then email clients will use the from as the reply to ?? yes, correct, but the from is the address of the original sender, so when someone hit reply, the email will goes to the original sender only, not to this mailing list. -- Jimmy