Re: [PHP] Code appearing suddenly!.

2002-12-17 Thread Lic. Rodolfo Gonzalez Gonzalez
On Tue, 17 Dec 2002, Matthieu Le Corre wrote: > look at your apache httpd.conf file > maybe php type is not correctly definy ... > i've had the ame pb ... the mime type was definied twice ;) Bad luck, the code is still appearing randomly. The script is parsed correctly if the page is reload

RE: [PHP] pcre pattern match help

2002-12-17 Thread John W. Holmes
> I would like to do a pattern match against a string, sometimes this > pattern > will include the full string, and sometimes it will not, if the pattern > does > not include the second match I still want to get the first pattern match. > > Below is my code, and the results I am looking for. > >

RE: [PHP] nested if in a for statement

2002-12-17 Thread Edward Peloke
I just took the code and changed it to check two values, both of the values are there but it returned the message, I put in some prints and it appears it failed on '2' having only two values to check, 0 and 1, I would say it is doing another check after it has exceeded the number of variables and t

[PHP] php / unix functions

2002-12-17 Thread Greg
Hi- Is there a built in way, besides using exec and system, to get the output from commands like 'uptime' and 'df' on a linux system? Thanks! -Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] RE: mysql_num_rows

2002-12-17 Thread Roger Lewis
I found the problem! It was a space before $ in ' $name' in line two of the query. Sorry for the trouble. Roger -Original Message- From: Roger Lewis [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 17, 2002 4:00 PM To: Php-General Subject: mysql_num_rows Would someone be kind enough

RE: [PHP] php / unix functions

2002-12-17 Thread Martin Towell
the only other way I know is to use: $output = `$cmd`; (ie, backticks) -Original Message- From: Greg [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 18, 2002 1:27 PM To: [EMAIL PROTECTED] Subject: [PHP] php / unix functions Hi- Is there a built in way, besides using exec and system

RE: [PHP] php / unix functions

2002-12-17 Thread Andy Turegano
Well, what do you want them to do? On Wed, 18 Dec 2002, Martin Towell wrote: > the only other way I know is to use: $output = `$cmd`; (ie, backticks) > > -Original Message- > From: Greg [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, December 18, 2002 1:27 PM > To: [EMAIL PROTECTED] > Sub

Re: [PHP] php / unix functions

2002-12-17 Thread Greg
I just want to display the output of 'uptime' and 'df' on a php page /Greg "Andy Turegano" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Well, what do you want them to do? > > > On Wed, 18 Dec 2002, Martin Towell wrote: > > > the only other way I know is to us

RE: [PHP] php / unix functions

2002-12-17 Thread Martin Towell
in that case, try passthru() -Original Message- From: Greg [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 18, 2002 1:45 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] php / unix functions I just want to display the output of 'uptime' and 'df' on a php page /Greg "Andy Turegano" <[EMA

[PHP] Verisign Credit Card Processing with PHP

2002-12-17 Thread Max Clark
Hi- I was wondering anyone out there is using the verisign payflo product with php and could share their experiances with me. Are there good alternate choices that I should be looking at? Thanks in advance, Max -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:/

Re: [PHP] php / unix functions

2002-12-17 Thread Greg
OK, I lied :) I don't want the raw output, I want to be able to pick the parts of the output that I want and display that. Thanks -Greg "Martin Towell" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > in that case, try passthru() > > -Original Message-

[PHP] serialize/unserialize problem

2002-12-17 Thread Guangzu Wang
Hi, I am working on mime message and try to pass an array with serialize and unserialize and got some problems. Here's some code snippet: in my function, I have this: $message['attachments'] = serialize($attachments); And calling code like this: $attachments = $message['attachments']; echo "ATT

Re: [PHP] PHP question

2002-12-17 Thread Sean Burlington
1LT John W. Holmes wrote: Are PHP script supposed to run as the user or as the web server? Currently I'm running Red Hat 7.3 with apache 1.3.x and all my PHP scripts run as apache, not as the user. I'm wonder if I can run the scripts as the user and how do I fix this? As a module, that's the wa

[PHP] mysql_num_rows

2002-12-17 Thread Roger Lewis
Would someone be kind enough to explain why I'm not getting the correct result from the following query. If I select a valid member no. and name, the following query should return 1 row. This is not the case, however. It returns zero rows. $sql = "SELECT * FROM users WHERE member_no = '$member

RE: [PHP] key pairs

2002-12-17 Thread Cal Evans
Possible but a single table with all addresses and an addressType (SHIP_TO or BILL_TO) linked back to the main order table will allow you to retrieve both addresses with a single select: select * from address where orderID=x =C= * * Cal Evans * The Virtual CIO * http://www.calevans.com *

Re: [PHP] Verisign Credit Card Processing with PHP

2002-12-17 Thread Wee Keat
I just came across an article on Zend regarding this. It provides some examples and guidelines on how to use PHP with Verisign's PayFlow Pro... Hope this benefits. The link is at: http://www.zend.com/zend/tut/tutorial-staub.php - Original Message - From: "Max Clark" <[EMAIL PROTECTED

Re: [PHP] key pairs

2002-12-17 Thread Rick Widmer
At 04:44 PM 12/17/02 -0500, 1LT John W. Holmes wrote: What I was thinking is that you have one table with Order_ID Name Address Flag -> Here you flag this as SHIP_TO or BILL_TO etc... That layout would be better than: Order_ID Ship_name Ship_address Bill_name Bill_address etc... Which is what

Re: [PHP] serialize/unserialize problem

2002-12-17 Thread Guangzu Wang
I figured out a little bit later. It's something like: rawurlencdoe(serialize($attachments)); unserialize(urldecode(stripslashes($attachments))); I overlook that rawurlencode/urldecode, another annoying thing :) I just came from perl, for half time I found PHP cute, another half time, you know i

[PHP] Where am I?

2002-12-17 Thread Jeff
I'm using PHP 4.0.6. I am developing on Win98SE, and deployed on an Apache server. I need to find the actual path of the root directory. Windows: C:/Inetpub/wwwroot/ Apache: /home/dcent/public_html/ I've tried dirname(), basename(), etc. I just can't figure it out. Help. Jeff -- PHP General

Re: [PHP] Browser Language

2002-12-17 Thread Jeff
Thanks Johannes, I guess it throu me because it is a server var, not a remote var. Jeff "Johannes Schlueter" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Tuesday 17 December 2002 18:51, Jeff wrote: > Does anybody know how to get what language (en, fr, it, e

Re: [PHP] mysql_num_rows

2002-12-17 Thread Philip Olson
> Would someone be kind enough to explain why I'm not getting the correct > result from the following query. If I select a valid member no. and name, > the following query should return 1 row. This is not the case, however. It > returns zero rows. > > $sql = "SELECT * FROM users WHERE member_

RE: [PHP] Where am I?

2002-12-17 Thread Martin Towell
try doing a phpinfo() , somewhere in there it'll tell you Martin -Original Message- From: Jeff [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 18, 2002 2:34 PM To: [EMAIL PROTECTED] Subject: [PHP] Where am I? I'm using PHP 4.0.6. I am developing on Win98SE, and deployed on an Apach

Re: [PHP] Where am I?

2002-12-17 Thread Jeff
No, I've been looking all day. I can get the information is I run the script from the root, but what if I am in a sub-dir? Jeff "Martin Towell" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > try doing a phpinfo() , somewhere in there it'll tell you > > Martin >

RE: [PHP] Where am I?

2002-12-17 Thread Martin Towell
Doing a quick scan through the output of phpinfo() on my machine, I can see any one of the following will give me the path (incl. filename of the current script) $HTTP_SERVER_VARS["DOCUMENT_ROOT"] . $PHP_SELF $HTTP_SERVER_VARS["SCRIPT_FILENAME"] $HTTP_SERVER_VARS["PATH_TRANSLATED"] HTH Martin --

Re: [PHP] Where am I?

2002-12-17 Thread Jeff
Ok. In the root of the Webserver (Win | Apache) I have a directory called images and one called about. /+root (Win=C:\Inetpub\wwwroot, Apache=/home/../../public_html +-about +-images I call a page in about (/about/index.php). One this page I have a script to open an image file and get the size.

[PHP] PHP catalog software

2002-12-17 Thread Christian Calloway
Hey everyone, Im looking for some type of ecatalog/inventory software written PHP thats fairly good and that I can extend. Any suggestions? Or should I just I write my own from the ground up. The site I am working on sells fairly specialized and unique items, antiques and etc. Thanks -- PHP G

Re: [PHP] PHP catalog software

2002-12-17 Thread rw
Have you considered OsCommerce? http://oscommerce.com Quoting Christian Calloway <[EMAIL PROTECTED]>: ### Hey everyone, ### ### Im looking for some type of ecatalog/inventory software written PHP thats ### fairly good and that I can extend. Any suggestions? Or should I just I ### write ### my o

Re: [PHP] PHP Auto-Responder

2002-12-17 Thread David T-G
Kevin, et al -- ...and then Kevin Stone said... % % I need a solution to activate a PHP script when somebody sends an email to a % specified account. I've looked into procmail and sork and find that I am in I won't go into procmail propaganda except to say that it isn't as hard as it looks -- o

[PHP] Can i convert a text file to PDF only when need!

2002-12-17 Thread Jack
Dear all Can i use php to convert text file to pdf? i'm using the windows platform and i need to convert thousands of text file to pdf format, which cause me a lot of trouble, cause once the convertion process start, i can't use the pc for the next 5 hours, so here is the idea i'm thinking of: Tho

[PHP] test

2002-12-17 Thread Roger Lewis
This is a test. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] test

2002-12-17 Thread Martin Towell
na! didn't work :) -Original Message- From: Roger Lewis [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 18, 2002 4:59 PM To: Php-General Subject: [PHP] test This is a test. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php --

[PHP] Re: Where am I?

2002-12-17 Thread John Taylor-Johnston
Hope you got your answer before now? Run phpinfo(); inside a php file. See: $DOCUMENT_ROOT or $_SERVER["DOCUMENT_ROOT"] All other variables you need are listed there. $_SERVER["TEMP"], for example, is very useful. Don't forget to add the $ to the beginning of the variable name. I couldn't actu

RE: [PHP] test

2002-12-17 Thread Roger Lewis
But it did! Otherwise I wouldn't have received your comment. Why did I get this message from Mailer-Daemon: Sorry. Your message could not be delivered to: php-list,emc (The name was not found at the remote site. Check that the name has been entered correctly.) -Original Message- From:

Re: [PHP] test

2002-12-17 Thread John Taylor-Johnston
Y'sure? Spam bot? John Martin Towell wrote: > na! didn't work :) > > -Original Message- > From: Roger Lewis [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, December 18, 2002 4:59 PM > To: Php-General > Subject: [PHP] test > > This is a test. > > -- -- PHP General Mailing List (http://w

Re: [PHP] test

2002-12-17 Thread John Taylor-Johnston
Roger, Are you emailing or posting to the news group? John Roger Lewis wrote: > But it did! Otherwise I wouldn't have received your comment. Why did I get > this message from Mailer-Daemon: > > Sorry. Your message could not be delivered to: > > php-list,emc (The name was not found at the remote

[PHP] PHP 4.2.3 and $_POST (BUG ?)

2002-12-17 Thread [-^-!-%-
Hey everyone, My php 4.2.3 does not recognize the $_POST variable as an array and/or does not display its content. Can someone help figure out what's wrong. The following statement returns a blank page; while(list($k,$v) = each($_POST) ) { echo "$k : $v "; } This, from a form with method="POST

[PHP] Re: mysql_num_rows

2002-12-17 Thread John Taylor-Johnston
I use $mycounter, not saying it is pretty. But if you have a whole bunch of stuff deleted, your last id might be worth a lot more than the actual number of rows. $myconnection = mysql_connect($server,$user,$pass); mysql_select_db($db,$myconnection); $news = mysql_query('select * from '.$table.'

RE: [PHP] test

2002-12-17 Thread Martin Towell
actually, I get the same error. I've been putting it down to someone subscribing and now their email is invalid. BTW: I'm emailing to [EMAIL PROTECTED] - if that helps -Original Message- From: John Taylor-Johnston [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 18, 2002 5:12 PM To: [

Re: [PHP] test

2002-12-17 Thread John Taylor-Johnston
Lookee there, I'm getting it now and I'm sending to the newsgroup. Subject: NDN: [PHP] Re: mysql_num_rows Date: Wed, 18 Dec 2002 14:18:28 +0800 From: "Mailer-Daemon" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Sorry. Your message could not be delivered to:

RE: [PHP] test

2002-12-17 Thread Roger Lewis
John, I'm emailing. And it looks like each time I send something, I get the same message in return. Roger John Taylor wrote: Roger, Are you emailing or posting to the news group? John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php --

RE: [PHP] test

2002-12-17 Thread Roger Lewis
So what the h... is going on? Roger < Lookee there, I'm getting it now and I'm sending to the newsgroup. < Subject: < To: <[EMAIL PROTECTED

RE: [PHP] test

2002-12-17 Thread Roger Lewis
Martin, I'm sending too [EMAIL PROTECTED] also. Never seen anything like this before Roger Martin Towell wrote: < actually, I get the same error. I've been putting it down to someone < subscribing and now their email is invalid. << < BTW: I'm emailing to [EMAIL PROTECTED] - if that helps --

[PHP] Help needed on CMS Project

2002-12-17 Thread Mike Bowers
Title: Message I'm working on a CMS project. It's based on PHP-Nule but I am re-writing it to make the DB less used and to clean the code up a bit. Unfortunately I do not have time alone to do all I want and the last devs and coders I had quit on me. I'm looking for coders with basic experie

Re: [PHP] test

2002-12-17 Thread Jason Wong
On Wednesday 18 December 2002 14:31, Roger Lewis wrote: > So what the h... is going on? > Roger This is a mailing list, any time you post something a copy of it goes out to each and every member. If for any reason a member cannot be reached the failure message gets sent back to the original send

Re: [PHP] Help needed on CMS Project

2002-12-17 Thread Tariq Murtaza
Why dont you try Post-Nuke :) Good Luck Tariq Mike Bowers wrote: I'm working on a CMS project. It's based on PHP-Nule but I am re-writing it to make the DB less used and to clean the code up a bit. Unfortunately I do not have time alone to do all I want and the last devs and coders I had quit

Re: [PHP] test

2002-12-17 Thread Hugh Danaher
Nah, I didn't get it either. - Original Message - From: "Roger Lewis" <[EMAIL PROTECTED]> To: "Martin Towell" <[EMAIL PROTECTED]> Cc: "Php-General" <[EMAIL PROTECTED]> Sent: Tuesday, December 17, 2002 10:36 PM Subject: RE: [PHP] test > Martin, > I'm sending too [EMAIL PROTECTED] also.

<    1   2