Re: [PHP] Passwords?

2005-03-09 Thread Jochem Maas
Chris W. Parker wrote: Jochem Maas mailto:[EMAIL PROTECTED] on Sunday, March 06, 2005 5:24 AM said: that said you still don't want this file or this string to get into the hands of evilhaxors - best to keep this file (one with the encrypted pwd in it) outside of the docroot. Why encode it at

Re: [PHP] Re: sorting arrays

2005-03-09 Thread Jochem Maas
Brian A. Anderson wrote: RTFM arsort() Ok, so I use asort(), and I don't get the result I wanted. Instead I get the script telling me my foreach loop is wrong on the second test round, as if it did something other than simply sort the array. It seems that I can't access the array now? $nar =

Re: [PHP] Pop-up message

2005-03-09 Thread Jochem Maas
Lester Caine wrote: At the risk of being shouted at because *I* know it's not a PHP problem! I have a page that is being refreshed every 30 seconds or so, and displays a list of 'tickets' waiting to be dealt with on a list from a database query. No problems there, but a couple of sites now want

Re: [PHP] MySQL - PHP - limits...

2005-03-09 Thread Marek Kilimajer
Alex Ortiz wrote: Hello. Is there a records limit when browsing (a sql SELECT) in PHP from a MySQL table? no limit on php side, perhaps 2^31 if you do calculations. I´m browsing a table with PHP from MySQL, and something is wrong, if the table has more than 5047 records, the browse appears

[PHP] [Fwd: [PHP-DEV] Simple idea for ERP - please help]

2005-03-09 Thread Jochem Maas
anyone fancy spoonfeeding this guy your lifes work? talk about a snowballs chance in hell of getting help! Morty, if you read this: bugging internals with this kind of request will most probably earn your mail a place at /dev/null. Besides which your first 'stage' consists of a complete

Re: [PHP] Newbie LEFT JOIN question

2005-03-09 Thread Jackson Linux
First, I apologize - I'm new to this, grateful for the list and just confused. I didn't mean to post improperly. Second, thanks so much Rory for simplifying it and answering that anyway. I promise I wasn't going for technical impressiveness and easier is definitely better! Thanks again, Jack

[PHP] openBase

2005-03-09 Thread François-Xavier Lacroix
Do anybody ever use php to access 'open base' ? -- François-Xavier LACROIX - http://www.clever-age.com Clever Age - conseil en architecture technique Tél: +33 1 53 34 66 10 Fax: +33 1 53 34 65 20 Clever Age lance son blog de veille permanente http://www.clever-age.com/veille/weblog/ -- PHP

Re: [PHP] Newbie LEFT JOIN question

2005-03-09 Thread John Nichel
Jackson Linux wrote: snip http://lists.mysql.com/ -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP5.0.3 and pam authentication

2005-03-09 Thread Jason Barnett
Chris Dion wrote: I'm trying to use pam_auth for a script. It loads into php but it's not authenticating the users. I'm using the correct password and username. This is a example of how I'm using the function: pam_auth($_POST[uname], $_POST[passwd], $error) Any ideas? Thanks in advance

RE: [PHP] suspicious - maybe spam

2005-03-09 Thread Christo van Rooyen
Same here Christo van Rooyen -Original Message- From: Chris W. Parker [mailto:[EMAIL PROTECTED] Sent: 08 March 2005 19:58 To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Cc: Kevin; PHP General Mail List Subject: RE: [PHP] suspicious - maybe spam Richard Lynch mailto:[EMAIL PROTECTED]

Re: [PHP] Re: PHP5.0.3 and pam authentication

2005-03-09 Thread Jochem Maas
Jason Barnett wrote: Chris Dion wrote: I'm trying to use pam_auth for a script. It loads into php but it's not authenticating the users. I'm using the correct password and username. you have verified that by doing?: print_r($_POST); and you can confirm that you can authenticate against PAM via

[PHP] Re: [Fwd: [PHP-DEV] Simple idea for ERP - please help]

2005-03-09 Thread Jason Barnett
Jochem Maas wrote: anyone fancy spoonfeeding this guy your lifes work? No not really. Then again PHP isn't my life's work :) talk about a snowballs chance in hell of getting help! Morty, if you read this: bugging internals with this kind of request will most probably earn your mail a

[PHP] Internal Server Error ?!?

2005-03-09 Thread [EMAIL PROTECTED]
Hi guys. Last night I got Internal Server Error on every page written in php. HTML pages work just fine. Our web site is on dedicated server. I contacted tech and he said they didn't touch the server and must be something I did. I REALLY don't remember I did anything wrong. Just regular php

RE: [PHP] software catalog

2005-03-09 Thread Ryan A
Hey, Thanks for replying. Searching for shopping cart php gives me hundreds of results, mostly carts for tangible items. I was hoping someone could recommend a solution that they have used as since nearly all of us work for other people or make software to sell...this must be pretty common. Drop

Re: [PHP] Internal Server Error ?!?

2005-03-09 Thread John Nichel
[EMAIL PROTECTED] wrote: Hi guys. Last night I got Internal Server Error on every page written in php. HTML pages work just fine. Our web site is on dedicated server. I contacted tech and he said they didn't touch the server and must be something I did. I REALLY don't remember I did anything

Re: [PHP] software catalog

2005-03-09 Thread Ryan A
Hey! Thanks for replying. Hot scripts and script search ware the two places which i checked out first before writing to the list, then google, because I dont need a jackass who has been on the list for 2 days telling me to f***ing google for it, just coz it would make him feel happy with himself

[PHP] Re: Internal Server Error ?!?

2005-03-09 Thread Jason Barnett
[EMAIL PROTECTED] wrote: Hi guys. Last night I got Internal Server Error on every page written in php. HTML pages work just fine. Our web site is on dedicated server. I contacted tech and he said they didn't touch the server and must be something I did. I REALLY don't remember I did anything

Re: [PHP] Re: Internal Server Error ?!?

2005-03-09 Thread [EMAIL PROTECTED]
Jason Barnett wrote: [EMAIL PROTECTED] wrote: Hi guys. Last night I got Internal Server Error on every page written in php. HTML pages work just fine. Our web site is on dedicated server. I contacted tech and he said they didn't touch the server and must be something I did. I REALLY don't

[PHP] ezmlm bounced email warnings - [was RE: [PHP] suspicious - maybe spam]

2005-03-09 Thread tg-php
Yeah, same here. I thought it was my hosting service, but if other people are having the same issue then what's the deal? Usually it's only a message or two, but sometimes it says there are like 8 or 9 messages that bounced. Has anyone looked into this or have any information regarding

Re: [PHP] Internal Server Error ?!?

2005-03-09 Thread John Nichel
[EMAIL PROTECTED] wrote: Sound silly but: Where I can find error logs on server? :) Reply to the list. Where are _YOUR_ error logs? I have no idea. I don't know what web server software you're running, how you installed it, where you installed it, etc. Honestly, if you don't know where your

[PHP] Newbie Variable Question

2005-03-09 Thread Jackson Linux
Hi, All, A php variable question. I've done this to take the requested category from the URL (www.foo.com/file.htm?r=1) and use it to build the page: if (isset($_GET['r']) !empty($_GET['r'])) { $r = '{$_GET['r']}'; //Set the variable $r to mean the category number $fields = '*'; } else {

[PHP] a new it company

2005-03-09 Thread shar
Hi members, How are you. I have seen a very good site www.bansalsetech.com, visit this site for your Seo / design / programming projects. Great people. Regards

Re: [PHP] ezmlm bounced email warnings - [was RE: [PHP] suspicious - maybe spam]

2005-03-09 Thread Rob Tanner
Every ezmlm mailing list I'm on does that periodically. Lists that I'm on that use MailMan never seem to have that problem. What then does that tell us about ezmlm... --On Wednesday, March 09, 2005 09:53:35 AM -0500 [EMAIL PROTECTED] wrote: Yeah, same here. I thought it was my hosting

Re: [PHP] PHP 5.0.3 and base64 encoded cookie value issue?

2005-03-09 Thread Pink Floyd
Greetings, I tested Richard's suggestion below, and it appears that 'urlencode' is not the function that I want. Are there any other options? Does anyone know what PHP uses internally to 'munge' the cookie? I looked at the php.ini doc's and I could not find any option to turn off whatever

[PHP] imagedestroy()

2005-03-09 Thread Edward Vermillion
Sorry if this is an old subject but it's new to me. I have a 'default' Fedora Core 1 installation of Apache2 v2.0.48 and php v4.3.8. I've noticed a problem in one of the scripts i had written a few months ago, but I was testing it on a Red Hat 8 system at the time and I'm not sure if the

[PHP] Re: Newbie Variable Question

2005-03-09 Thread Jason Barnett
Jackson Linux wrote: ... php include_once /path/to/cv.$r.include.php; ? asks for cv.'1'.include.php ... And I need it to ask for cv.1.include.php How can I make a variable to fetch the literal number from the field cv.category? Not 100% certain that it will work, but try casting the variable

RE: [PHP] software catalog

2005-03-09 Thread Ariceaga, Luis TQM
Well... I see in HotScripts that there is a category named E-Commerce and inside there is a sub-category named Shopping Carts... [ http://www.hotscripts.com/PHP/Scripts_and_Programs/E-Commerce/Shopping_C arts/index.html ] Good Luck! /Luis -Original Message- From: Ryan A [mailto:[EMAIL

Re: [PHP] Re: Newbie Variable Question

2005-03-09 Thread Jackson Linux
On 9 Mar 2005, at 11:15, Jason Barnett wrote: Jackson Linux wrote: ... php include_once /path/to/cv.$r.include.php; ? asks for cv.'1'.include.php ... And I need it to ask for cv.1.include.php How can I make a variable to fetch the literal number from the field cv.category? Not 100% certain that it

[PHP] Re: imagedestroy()

2005-03-09 Thread Jason Barnett
Edward Vermillion wrote: ... a directory, about 5000 images are being counted. While the script worked fine when i wrote it a few months ago, on the different system, I was recently trying to use it and was repeatedly getting memory limit errors at an 8MB limit. What the script does is load

Re: [PHP] Newbie Variable Question

2005-03-09 Thread Jochem Maas
Jackson Linux wrote: Hi, All, A php variable question. I've done this to take the requested category from the URL (www.foo.com/file.htm?r=1) and use it to build the page: if the category number is really always supposed to be an integer (and that it must always be greater than 0, actually in

Re: [PHP] Re: Newbie Variable Question

2005-03-09 Thread Jochem Maas
Jackson Linux wrote: On 9 Mar 2005, at 11:15, Jason Barnett wrote: Jackson Linux wrote: ... php include_once /path/to/cv.$r.include.php; ? asks for cv.'1'.include.php ... And I need it to ask for cv.1.include.php How can I make a variable to fetch the literal number from the field cv.category?

Re: [PHP] Internal Server Error ?!?

2005-03-09 Thread [EMAIL PROTECTED]
thankns guys for your help. problem solved. tech from hosting company said they had last night power problem and rebooted server few times and left open some files ?!? I didn't get this part but didn't have time and nervs to talk to him more. Thanks! -afan -- PHP General Mailing List

RE: [PHP] Pop-up message

2005-03-09 Thread pmpa
I believe one could also embed a small flash object and call the window open from flash. I'm just not sure if IE popup blocker will also block that window. Pedro. -Mensagem original- De: Jochem Maas [mailto:[EMAIL PROTECTED] I don't know about 'CURRENT' but you have atleast 3 options:

Re: [PHP] ezmlm bounced email warnings - [was RE: [PHP] suspicious - maybe spam]

2005-03-09 Thread Mat Harris
On Wed, Mar 09, 2005 at 07:30:57AM -0800, Rob Tanner wrote: Every ezmlm mailing list I'm on does that periodically. Lists that I'm on that use MailMan never seem to have that problem. What then does that tell us about ezmlm... i get the same thing toobut as i run my own mail server i

[PHP] PHP5.0.3-3 on RedHat

2005-03-09 Thread Bronislav Klucka
Hi, does anybody have PHP5.0.3-3 rpms files for RH9? I also need imap, openssl, curl, etc. :) I'm looking every day on internet, but I cannot find it. Brona -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Newbie Variable Question

2005-03-09 Thread Jackson Linux
Jochem and everyone, Thanks, this solved the problem. Regarding someone's much appreciated comment: snip[this]...allows any user to simply change the value of r to something more to their liking. given the reset of the code that you included in your first message, who knows what nice holes

[PHP] Question re empty query

2005-03-09 Thread Jackson Linux
Hi, This: if (isset($_GET['r']) !empty($_GET['r']) ($r = intval($_GET['r'])) ){ $r = {$_GET['r']}; //Set the variable $r to mean the category number $fields = '*'; $sort = ORDER BY cv.sort; } else { $where = ''; $fields =

Re: [PHP] PHP5.0.3-3 on RedHat

2005-03-09 Thread John Nichel
Bronislav Klucka wrote: Hi, does anybody have PHP5.0.3-3 rpms files for RH9? I also need imap, openssl, curl, etc. :) I'm looking every day on internet, but I cannot find it. Brona You can build the RPM from the source rpmbuild -ta php-5.0.3xxx.tar.gz It will put the RPM somewhere like

Re: [PHP] Shared variable / exclusive locking?

2005-03-09 Thread the_roibm
ok, so the solution is shm or shmop, but there is something I'm not sure about it... the way I wanna go is shm and sem and the things that are clear are: - use sem to block multiple processes(or threads) writing to the same shm block - there is no need to use sem for reading since multiple

[PHP] Re: Question re empty query

2005-03-09 Thread M. Sokolewicz
Jackson Linux wrote: Hi, This: if (isset($_GET['r']) !empty($_GET['r']) ($r = intval($_GET['r'])) ){ $r = {$_GET['r']}; //Set the variable $r to mean the category number gods, that's an ugly statement... why don't you simply use $r = $_GET['r']; $fields = '*'; $sort = ORDER BY

Re: [PHP] PHP5.0.3-3 on RedHat

2005-03-09 Thread Bronislav Klucka
John Nichel wrote: Bronislav Klucka wrote: Hi, does anybody have PHP5.0.3-3 rpms files for RH9? I also need imap, openssl, curl, etc. :) I'm looking every day on internet, but I cannot find it. Brona You can build the RPM from the source rpmbuild -ta php-5.0.3xxx.tar.gz It will put the RPM

Re: [PHP] a new it company

2005-03-09 Thread Rory Browne
SPAMMER From your email address I'm assuming that your name is Sharvan Saxena. It seems like too much of a coincidence that the contact person on that site(Tanuj Saxena), and your good self, have the same surname. Because it seems your are a spammer, and a liar(you concealed your alleged

Re: [PHP] PHP5.0.3-3 on RedHat

2005-03-09 Thread John Nichel
Bronislav Klucka wrote: John Nichel wrote: snip You can build the RPM from the source rpmbuild -ta php-5.0.3xxx.tar.gz It will put the RPM somewhere like /usr/src/redhat/RPMS/ I've done this... how can I specify php configure parameters? (--with-mysql, etc) Brona It's been a long time since

[PHP] how can I determine the built options of PHP

2005-03-09 Thread Uwe Galle
Hi, some applications like Horde require special build options, eg. --with-apache or: --with-apxs --with-gettext --with-mysql --with-mcrypt --with-iconv --enable-mbstring --with-mbstring=all --with-gd I don't want to setup my own build environment at the moment because I dont have the tools

RE: [PHP] a new it company

2005-03-09 Thread Chris W. Parker
Rory Browne mailto:[EMAIL PROTECTED] on Wednesday, March 09, 2005 10:06 AM said: Because it seems your are a spammer, and a liar(you concealed your alleged connection with aforementioned site), I hereby CALL FOR A BOYCOTT ON http://www.bansalsetech.com/ Ironic thing here is that there

[PHP] Re: ezmlm bounced email warnings - [was RE: [PHP] suspicious - maybe spam]

2005-03-09 Thread Lester Caine
[EMAIL PROTECTED] wrote: Yeah, same here. I thought it was my hosting service, but if other people are having the same issue then what's the deal? Usually it's only a message or two, but sometimes it says there are like 8 or 9 messages that bounced. Has anyone looked into this or have any

Re: [PHP] a new it company

2005-03-09 Thread Jochem Maas
Rory Browne wrote: SPAMMER From your email address I'm assuming that your name is Sharvan Saxena. It seems like too much of a coincidence that the contact person on that site(Tanuj Saxena), and your good self, have the same surname. Because it seems your are a spammer, and a liar(you concealed

[PHP] orphan functions, how can I find them?

2005-03-09 Thread Al
I'm cleaning up some old php scripts and find I'm creating some orphans. Anyone know of a tool, or a simple way, to identify all the unused functions in a script's functions include file? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Question re empty query

2005-03-09 Thread Jochem Maas
Jackson Linux wrote: Hi, This: if (isset($_GET['r']) !empty($_GET['r']) ($r = intval($_GET['r'])) ){ $r = {$_GET['r']}; //Set the variable $r to mean the category number for starters WTF is the preceding statement for??? $r is already set if it exists by the expression in the if

Re: [PHP] a new it company

2005-03-09 Thread John Nichel
Brian Dunning wrote: Sharvan - You won't find too many fans of overseas outsourcing on this list. I'm a fan of it if they send ME overseas to outsource. Italy, Germany, Greece, AustraliaI'll go. ;) -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General

Re: [PHP] orphan functions, how can I find them?

2005-03-09 Thread Jochem Maas
Al wrote: I'm cleaning up some old php scripts and find I'm creating some orphans. Anyone know of a tool, or a simple way, to identify all the unused functions in a script's functions include file? grep. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[Fwd: Re: [PHP] PHP / JavaScript integration]

2005-03-09 Thread Jochem Maas
this post was meant for the OP - I sent it to Chris W. (only) by mistake. oops Original Message From: - Wed Mar 09 19:50:29 2005 Chris W. Parker wrote: Mário Gamito mailto:[EMAIL PROTECTED] on Tuesday, March 08, 2005 4:28 PM said: I'm trying to integrate some JavaScript

Re: [PHP] a new it company

2005-03-09 Thread Brian Dunning
Sharvan - You won't find too many fans of overseas outsourcing on this list. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: how can I determine the built options of PHP

2005-03-09 Thread Jason Barnett
I'm not 100% sure what options are used in the Windows build by default, but for windows everything is wrapped up into extensions. You need mysql, you enable the appropriate mysql .dll. You need Apache, you use the appropriate apache .dll. And all of that is controlled through php's ini and/or

Re: [PHP] a new it company

2005-03-09 Thread Dan Tappin
I think Rory has trouble jumping to conclusions. I was attacked off list by Rory thinking I was another list member... another dant (remember the OT adult content rant / thread?). I would agree that this is not really spam... just bad judgment. The flood of angry replies to this poster

[PHP] Serious problem with Compiler?!?

2005-03-09 Thread Stefan
Hi there, my Server worked fine for several month now with php 4.3.4. Since a few hours (without changing anything for the last days) PHP doesn't 'know' basic commands as mysql_connect() or session_start() ... (e.g.: Fatal error: Call to undefined function: mysql_connect() ) I have no idea where

Re: [PHP] Re: Question re empty query

2005-03-09 Thread Jochem Maas
M. Sokolewicz wrote: Jackson Linux wrote: Hi, This: if (isset($_GET['r']) !empty($_GET['r']) ($r = intval($_GET['r'])) ){ does nobody notice the last 'bit' of the if expression?? if the IF statement evaluates to true then $r _has_ been set!!! $r = {$_GET['r']}; //Set the variable $r to

Re: [PHP] Serious problem with Compiler?!?

2005-03-09 Thread Jochem Maas
Stefan wrote: Hi there, my Server worked fine for several month now with php 4.3.4. Since a few hours (without changing anything for the last days) PHP reboot? lame yes, but maybe it works. otherwise specify some server details here. check if files (e.g. the php binary, conf files) have changed

Re: [PHP] a new it company

2005-03-09 Thread Jochem Maas
Dan Tappin wrote: I think Rory has trouble jumping to conclusions. I was attacked off list by Rory thinking I was another list member... another dant (remember the OT adult content rant / thread?). who me? :-) I would agree that this is not really spam... just bad judgment. The flood of angry

Re: [PHP] Help with dates

2005-03-09 Thread Kevin
Mr Lynch, Thanks a lot for your help so far! I will answer or respond in message. Yours, Kevin Richard Lynch [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Kevin wrote: Right now I'm working on a script that would calculate dates from one calendar to another. The normal

[PHP] posix_getgroups() and effective grooup id's

2005-03-09 Thread Marten Lehmann
Hello, while I can use posix_getgroups() to get groups additional to the posix_getgid() value, I don't know which function to use to find out the groups additional to posix_getegid(). There's no posix_getegroups() function. Regards Marten -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Serious problem with Compiler?!?

2005-03-09 Thread Stefan
I've found where the problem came from: I was using PHP 4.3.9 (sorry for misinformation in the first mail) but it was overwritten by a suse onlineupdate 4.3.4 last night. This is where the problems came from. I have removed 4.3.4 via Yast and want to compile 4.3.10 now. ./configure and make

[PHP] Best way to validate a date

2005-03-09 Thread David Bevan
Hi all, I'm looking to validate a date submitted through a form and I cannot decide which would be the best way to do it. The form of the date needs to be: -MM-DD. At the moment I'm torn between using a regex, something like: 20[\d][\d]-[0-1][\d]-[0-3][\d] or using the checkdate() function.

Re: [PHP] a new it company

2005-03-09 Thread Ryan A
here here - I thought It was kind of humourous, I also bare in mind that these guys in the far east are just trying to make their way in the world too, they are at a disadvantage with the language also. besides which there is a quite a culture gap - I notice it alot in the way people

Re: [PHP] Help with dates

2005-03-09 Thread Jochem Maas
... Why re-invent the wheel? It's part of a game. In the RPG there are dates which the players would like to be able to convert from our calendar to that one, and back again.. In order to do that I need to find the exact days since the year 0 BC/AD. why is OBC relevant, I read later on that you

[PHP] shell script - disable log output

2005-03-09 Thread Eli
Hello... I'm writing a shell script that uses error_log function to log some data, but it echos the error message to the output without logging the message to the log file. Code I use (php5 on unix): * #!/usr/local/php/bin/php -q ?php error_log(My

[PHP] Re: Best way to validate a date

2005-03-09 Thread Eli
David Bevan wrote: Hi all, I'm looking to validate a date submitted through a form and I cannot decide which would be the best way to do it. The form of the date needs to be: -MM-DD. At the moment I'm torn between using a regex, something like: 20[\d][\d]-[0-1][\d]-[0-3][\d] or using the

[PHP] Question regarding simplexml predefined constants

2005-03-09 Thread Allan, David (ThomasTech)
In reading the documentation on simplexml predefined constants, I see a note that says these were added to PHP 5.1.0. Am I reading that [future] version correctly, and I can expect that these are to be released in a forthcoming stable release, and in fact do not yet exist in the version I am

Re: [PHP] shell script - disable log output

2005-03-09 Thread Matthew Fonda
I suppose error_log(My error message, 3, /dev/null) would work. On Wed, 2005-03-09 at 12:59, Eli wrote: Hello... I'm writing a shell script that uses error_log function to log some data, but it echos the error message to the output without logging the message to the log file. Code I

[PHP] Quickform - edit form

2005-03-09 Thread Leonie \(phpgroup\)
I've set up a form using Quickform. I've got it working a dream. My problem is at the moment it only adds records to the database. I would like to also have an edit form. I don't know what is easiest. Amend the existing form so it enters data and edits it, or have two different webpages. Also

[PHP] Re: shell script - disable log output

2005-03-09 Thread Eli
I suppose error_log(My error message, 3, /dev/null) would work. I cannot change the error_log() params, since it is cored in extern lib I use. Is there a way to prevent the default error_log() from being outputed? -thanks, Eli -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Help with dates

2005-03-09 Thread Jason Barnett
Jochem Maas wrote: It's mostly the past. The RPG is set in Egypt and the beginning of the society in egypt has been taken as year 0. The start date I think is obvious, but I do not understand an end date of a calendar.. Perhaps I'm just blond.. but could you perhaps explain that one?

Re: [PHP] shell script - disable log output

2005-03-09 Thread John Nichel
Eli wrote: Hello... I'm writing a shell script that uses error_log function to log some data, but it echos the error message to the output without logging the message to the log file. Code I use (php5 on unix): * #!/usr/local/php/bin/php -q ?php

[PHP] Re: Question regarding simplexml predefined constants

2005-03-09 Thread Jason Barnett
David Allan wrote: In reading the documentation on simplexml predefined constants, I see a note that says these were added to PHP 5.1.0. Am I reading that [future] version correctly, and I can expect that these are to be released in a forthcoming stable release, and in fact do not yet exist

[PHP] Re: shell script - disable log output

2005-03-09 Thread Jason Barnett
Eli wrote: I suppose error_log(My error message, 3, /dev/null) would work. http://php.net/manual/en/ref.errorfunc.php#ini.error-log try: ini_set('error_log', null) -- Teach a man to fish... NEW? | http://www.catb.org/~esr/faqs/smart-questions.html STFA |

Re: [PHP] shell script - disable log output

2005-03-09 Thread Eli
John Nichel wrote: Try @error_log ( My error message ); Don't know if it will work, but it's worth a shot. Checked. That's not working, since the @ operator prevents logging of errors/warnings/notices that caused by the expression following, but doesn't prevent from the expression to be

Re: [PHP] Help with dates

2005-03-09 Thread Jochem Maas
Jason Barnett wrote: Jochem Maas wrote: It's mostly the past. The RPG is set in Egypt and the beginning of the society in egypt has been taken as year 0. The start date I think is obvious, but I do not understand an end date of a calendar.. Perhaps I'm just blond.. but could you perhaps

[PHP] Re: shell script - disable log output

2005-03-09 Thread Eli
Jason Barnett wrote: Eli wrote: I suppose error_log(My error message, 3, /dev/null) would work. http://php.net/manual/en/ref.errorfunc.php#ini.error-log try: ini_set('error_log', null) Doesn't work either.. :( but thanks for trying.. -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] shell script - disable log output

2005-03-09 Thread John Nichel
Eli wrote: John Nichel wrote: Try @error_log ( My error message ); Don't know if it will work, but it's worth a shot. Checked. That's not working, since the @ operator prevents logging of errors/warnings/notices that caused by the expression following, but doesn't prevent from the expression

Re: [PHP] shell script - disable log output

2005-03-09 Thread Eli
John Nichel wrote: Try output buffering and dumping the buffer to /dev/null? From all the suggestions the script now looks like this: #!/usr/local/php5/bin/php -q ?php ob_start(); ini_set(error_log,null); @error_log(My error message); ob_end_clean(); ? But it still output the error to the screen..

[PHP] Creating Reports with PHP

2005-03-09 Thread Mike Smith
I am trying to find a systematic way to develop reports for our custom web app. What I've done in the past is basically create a query, dump it to an HTML table, and put a link to open the report in Excel. I would like to develop a report system that would allow a user (I have 2 advanced users

Re: [PHP] shell script - disable log output

2005-03-09 Thread John Nichel
Eli wrote: From all the suggestions the script now looks like this: #!/usr/local/php5/bin/php -q ?php ob_start(); ini_set(error_log,null); @error_log(My error message); ob_end_clean(); ? But it still output the error to the screen.. :( I saw someone suggest this error_log ( My error message,

RE: [PHP] Quickform - edit form

2005-03-09 Thread Chris W. Parker
Leonie (phpgroup) mailto:[EMAIL PROTECTED] on Wednesday, March 09, 2005 1:13 PM said: I've set up a form using Quickform. I've got it working a dream. My problem is at the moment it only adds records to the database. I would like to also have an edit form. I don't know what is easiest.

Re: [PHP] Quickform - edit form

2005-03-09 Thread Richard Lynch
I've set up a form using Quickform. I've got it working a dream. My problem is at the moment it only adds records to the database. I would like to also have an edit form. I don't know what is easiest. Amend the existing form so it enters data and edits it, or have two different webpages.

Re: [PHP] Quickform - edit form

2005-03-09 Thread Marek Kilimajer
Leonie (phpgroup) wrote: I've set up a form using Quickform. I've got it working a dream. My problem is at the moment it only adds records to the database. I would like to also have an edit form. I don't know what is easiest. Amend the existing form so it enters data and edits it, or have two

Re: [PHP] shell script - disable log output

2005-03-09 Thread Eli
John Nichel wrote: Eli wrote: From all the suggestions the script now looks like this: #!/usr/local/php5/bin/php -q ?php ob_start(); ini_set(error_log,null); @error_log(My error message); ob_end_clean(); ? But it still output the error to the screen.. :( I saw someone suggest this error_log (

Re: [PHP] Serious problem with Compiler?!?

2005-03-09 Thread Richard Lynch
I have removed 4.3.4 via Yast and want to compile 4.3.10 now. ./configure and make test work fine, but when I use 'make', it only shows a few lines and doesn't install successfull: What few lines? This is all text produced by make: -- begin Installing PHP SAPI module: apache2handler

Re: [PHP] posix_getgroups() and effective grooup id's

2005-03-09 Thread Richard Lynch
Hello, while I can use posix_getgroups() to get groups additional to the posix_getgid() value, I don't know which function to use to find out the groups additional to posix_getegid(). There's no posix_getegroups() function. You may be stuck with: ?php $uid = posix_getuid(); exec(groups

Re: [PHP] shell script - disable log output

2005-03-09 Thread Richard Lynch
I'm writing a shell script that uses error_log function to log some data, but it echos the error message to the output without logging the message to the log file. the log file... *WHAT* log file? A shell script has no pre-determined log file, really. Actually, it's almost for sure STDOUT

Re: [PHP] Help with dates

2005-03-09 Thread Richard Lynch
Right now I'm working on a script that would calculate dates from one calendar to another. The normal calendar we use and a newly invented one. [shudder] There are already WAY too many calendar systems. Inventing a new one is probably not such a good plan... Why re-invent the wheel?

Re: [PHP] how can I determine the built options of PHP

2005-03-09 Thread Richard Lynch
Hi, some applications like Horde require special build options, eg. --with-apache or: --with-apxs --with-gettext --with-mysql --with-mcrypt --with-iconv --enable-mbstring --with-mbstring=all --with-gd I don't want to setup my own build environment at the moment because I dont have

Re: [PHP] shell script - disable log output

2005-03-09 Thread Eli
Richard Lynch wrote: I'm writing a shell script that uses error_log function to log some data, but it echos the error message to the output without logging the message to the log file. the log file... *WHAT* log file? A shell script has no pre-determined log file, really. Actually, it's almost

Re: [PHP] imagedestroy()

2005-03-09 Thread Richard Lynch
Sorry if this is an old subject but it's new to me. I have a 'default' Fedora Core 1 installation of Apache2 v2.0.48 and php v4.3.8. I've noticed a problem in one of the scripts i had written a few months ago, but I was testing it on a Red Hat 8 system at the time and I'm not sure if the

Re: [PHP] PHP 5.0.3 and base64 encoded cookie value issue?

2005-03-09 Thread Richard Lynch
Greetings, I tested Richard's suggestion below, and it appears that 'urlencode' is not the function that I want. Are there any other options? Does anyone know what PHP uses internally to 'munge' the cookie? I looked at the php.ini doc's and I could not find any option to turn off

Re: [PHP] ezmlm bounced email warnings - [was RE: [PHP] suspicious - maybe spam]

2005-03-09 Thread Richard Lynch
Yeah, same here. I thought it was my hosting service, but if other people are having the same issue then what's the deal? Usually it's only a message or two, but sometimes it says there are like 8 or 9 messages that bounced. Has anyone looked into this or have any information regarding

Re: [PHP] PHP5.0.3 and pam authentication

2005-03-09 Thread Richard Lynch
I'm trying to use pam_auth for a script. It loads into php but it's not authenticating the users. I'm using the correct password and username. This is a example of how I'm using the function: pam_auth($_POST[uname], $_POST[passwd], $error) Any ideas? Thanks in advance For starters, you

Re: [PHP] Quickform - edit form

2005-03-09 Thread Leonie \(phpgroup\)
DID YOU TRY THIS?? ?php echo input type=\text\ value=\$yourVariable\ /\n; ? Look! I just assigned data to the form! Chris. I'm using Pear Quickform (hence my subject title) with Smarty. The value needs to be assigned to the Quickform object somehow. Creating the field with:

Re: [PHP] Quickform - edit form

2005-03-09 Thread Leonie \(phpgroup\)
Richard Lynch wrote: I always go for the one form system, because otherwise you have double the work to do (opening two files) every little change, and invariably one of the forms drifts out of sync when (not if, when) you forget to change the other form and... Thanks, Robert. I think this is the

Re: [PHP] software catalog

2005-03-09 Thread Richard Lynch
Hey! Anybody know of a software catalog (or cart preferably) that is free? A site i am working for sells software, now they want to have a cart feature so people can put the packages in a cart and get discounts etc if they purchase more than 1 product...they are using 2checkout for

Re: [PHP] warning question about mysql sessions concurrency

2005-03-09 Thread Richard Lynch
Agreed, initially I thought of that but I also need to use transactions in my business logic and MySQL doesn't support nested transactions, so I'd have to open a separate connection to the DB to handle the session transaction while another connection handles the business transaction(s). I'm

  1   2   >