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.

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

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

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
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 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 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: [

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

[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

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

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

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

[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

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

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

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

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

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

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

[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] 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] 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 / 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] 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 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

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

[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

[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

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

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] 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] key pairs

2002-12-17 Thread Brad Bonkoski
What about a master table like: Order ID | Ship_TO | BILL_TO Then an address table: ID | NAME | ADDR | CITY | STATE | ZIP Then you could have many addresses, and IFFthe Bill to and Ship to were the same then the master table would reflect that. Many sites provide a check box to indicate that th

Re: [PHP] key pairs

2002-12-17 Thread 1LT John W. Holmes
> >Hopefully the other solution worked for how to parse the data. If not, post > >back. What I wanted to comment on is why would you use two tables, one for > >SHIP_TO and one for BILL_TO? Why not just add a column to one table set set > >it to BILL or SHIP. You won't be repeating data that way and

Re: [PHP] key pairs

2002-12-17 Thread Ashley M. Kirchner
1LT John W. Holmes wrote: Hopefully the other solution worked for how to parse the data. If not, post back. What I wanted to comment on is why would you use two tables, one for SHIP_TO and one for BILL_TO? Why not just add a column to one table set set it to BILL or SHIP. You won't be repeating d

Re: [PHP] key pairs

2002-12-17 Thread 1LT John W. Holmes
Hopefully the other solution worked for how to parse the data. If not, post back. What I wanted to comment on is why would you use two tables, one for SHIP_TO and one for BILL_TO? Why not just add a column to one table set set it to BILL or SHIP. You won't be repeating data that way and it'll be ea

Re: [PHP] nested if in a for statement

2002-12-17 Thread Kevin Stone
Oops sorry didn't mean to add to the spam. LOL -Kevin - Original Message - From: "Kevin Stone" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, December 17, 2002 2:24 PM Subject: Re: [PHP] nested if in a for statement > Prepare the rubber glove... > > Chang this // $i <= cou

Re: [PHP] nested if in a for statement

2002-12-17 Thread Kevin Stone
Prepare the rubber glove... Chang this // $i <= count($userVars) To this // $i < count($userVars); Arrays start at index 0, not 1. -Kevin - Original Message - From: "James Brennan" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, December 17, 2002 2:03 PM Subject: [PHP] neste

[PHP] Re: nested if in a for statement

2002-12-17 Thread Kyle Gibson
count($array) returns the number of items in the array. $array[$i] retreives the item at location $i, but remember, this location is ZERO-BASED. That means if we have an array of 10 items, the positions would be from 0 to 9. In the above code you have $i <= count($userVars) The problem is that

Re: [PHP] nested if in a for statement

2002-12-17 Thread Douglas Douglas
I think your error is this: $userVars = array($nameFirst, $nameLast, $pass, $pass2, $auth, $dob_year, $dob_month, $dob_day); for ($i=0; $i <= count($userVars); $i++) { if (empty($userVars[$i])) { echo "please enter all required info";

[PHP] Re: nested if in a for statement

2002-12-17 Thread Kyle Gibson
snip /* variables in array set earlier in script */ $userVars = array($nameFirst, $nameLast, $pass, $pass2, $auth, $dob_year, $dob_month, $dob_day); for ($i=0; $i <= count($userVars); $i++) { if (empty($userVars[$i])) { echo "please enter all required info";

Re: [PHP] nested if in a for statement

2002-12-17 Thread Tim Ward
looks ok as long as you are really testing what you mean to. As you've written it if any of the variables are an empty string, zero, logical false or not set then the if statement will be true. what is $auth? Tim Ward http://www.chessish.com mailto:[EMAIL PROTECTED] - Original Message - F

[PHP] nested if in a for statement

2002-12-17 Thread James Brennan
I am checking the values of a submited forms for empty fields with the code below. My problem is that the echo statement is being executed once regardless of whether or not the if statement is true. What am I missing? thanks, loopjunkie snip /* variables in array set earlier in script

Re: [PHP] key pairs

2002-12-17 Thread Tim Ward
what do you mean by key pairs - I assumed you meant a key that could link the records in each table. If you've already done that then what's the problem? Tim Ward http://www.chessish.com mailto:[EMAIL PROTECTED] - Original Message - From: Ashley M. Kirchner <[EMAIL PROTECTED]> To: Tim Wa

Re: [PHP] key pairs

2002-12-17 Thread Marco Tabini
This is a bit crude but should work: Note that I made a bunch of assumptions here--that the data is always properly formatted, that there is only one record in the $data, and that you will later manipulate the key names so that they will actually work as database columns. Still, this way you can

Re: [PHP] key pairs

2002-12-17 Thread Ashley M. Kirchner
Tim Ward wrote: 1. Have an order_id on the first table (or a separate ORDER table) that is INT and AUTO_INCREMENT. 2. Have an order_id on the other table(s) that is INT but not AUTO_INCREMENT. 3. Create the record in the first table just inserting the info you get in. 4. get the order_id just

Re: [PHP] key pairs

2002-12-17 Thread Tim Ward
1. Have an order_id on the first table (or a separate ORDER table) that is INT and AUTO_INCREMENT. 2. Have an order_id on the other table(s) that is INT but not AUTO_INCREMENT. 3. Create the record in the first table just inserting the info you get in. 4. get the order_id just created using mysq

[PHP] FREE access to LIVE ADULT WEBCAMS! 100% FREE! No Credit Card Needed!

2002-12-17 Thread [EMAIL PROTECTED]
Below is the result of your feedback form. It was submitted by [EMAIL PROTECTED] ([EMAIL PROTECTED]) on Tuesday, December 17, 2002 at 15:04:18 --- bp: Are you sick and tired of sitting in a chatroom begging to see somebody

[PHP] key pairs

2002-12-17 Thread Ashley M. Kirchner
I have the following bit of information coming in that I need to generate key pairs of so I can drop it all into a database. I'm creating tables for each section (SHIP_TO and BILL_TO) with matching Unique_IDs. What's the best way to go about this (creating the pairs, stripping off excess

[PHP] script design question

2002-12-17 Thread Anders Thoresson
As a PHP beginner, I'm not only struggling with sessions, functions and variables, but also with script design and good coding practices. I'm not sure how to best split up the code between different PHP-files. At the moment, I'm using a skeleton like this for the main script, the one that the w

Re: [PHP] PHP question

2002-12-17 Thread Joseph W. Goff
Actually, I was mistaken. It isn't php.ini that has to be changed. I believe it is httpd.conf. php runs as what ever the webserver is set up to run as. - Original Message - From: "Joseph W. Goff" <[EMAIL PROTECTED]> To: "php-general" <[EMAIL PROTECTED]>; "Tom Ray" <[EMAIL PROTECTED]> Sent

Re: [PHP] PHP question

2002-12-17 Thread 1LT John W. Holmes
> 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 way it is. I think you

Re: [PHP] PHP question

2002-12-17 Thread Joseph W. Goff
You can set this up in the php.ini file in the /etc directory. You can set php to run an any user and any group that you have set up on your system. Just make sure that you set permissions properly so that it can function in the directories that it is accessed. - Original Message - From: "

[PHP] PHP question

2002-12-17 Thread Tom Ray
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? Any help would be great! -- PHP General Mailing Li

[PHP] pcre pattern match help

2002-12-17 Thread Max Clark
Hi- 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. Thanks in adv

[PHP] Re: PHP Auto-Responder

2002-12-17 Thread Kevin Stone
Good suggestions. Thank you very much. -Kevin - Original Message - From: "Joel Boonstra" <[EMAIL PROTECTED]> To: "Kevin Stone" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, December 17, 2002 6:41 AM Subject: Re: PHP Auto-Responder > On Mon, 16 Dec 2002, Kevin Stone wrote:

[PHP] Re: php reference behavior

2002-12-17 Thread Peter Clarke
22 Manopohuji wrote: hi, i'm running into some weird behavior with php references. i distilled it down to some test code below: 'dean' ); $var1['arrayref'] = & $array; $var2 = $var1; echo "var1:\n"; print_r( $var1 ); echo "var2:\n"; print_r( $var2 ); $var1['arrayref'] = NULL; echo

Re: [PHP] Browser Language

2002-12-17 Thread Johannes Schlueter
On Tuesday 17 December 2002 18:51, Jeff wrote: > Does anybody know how to get what language (en, fr, it, etc.) the users > browser is using? Have a look at $_SERVER["HTTP_ACCEPT_LANGUAGE"] This are the languages the user likes to read. johannes -- PHP General Mailing List (http://www.php.net/)

Re[2]: [PHP] Error 155 using exec - please help !

2002-12-17 Thread ml
> Take a look at http://cvs.php.net/co.php/php4/php.ini-dist > The part that should you look at is Resource Limits > (max_execution_time,memory_limit) and > set up your php.ini accordingly. Nope i can't find any solution... It goes well with memory_limit=8M for a 12Ko file, but won't work for a

[PHP] Strange behaviour of generated images

2002-12-17 Thread Victor V. Evtushenko
Hi, I'm trying to output a set of image thumbnails in HTML table. Everything works fine, except that performance is very poor. If I put all the thumbnails as regular files in some directory it has expected speed. But if I'm trying to use script to retrieve thumbnails from their actual location (w

[PHP] Browser Language

2002-12-17 Thread Jeff
Does anybody know how to get what language (en, fr, it, etc.) the users browser is using? Jeff -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Submitting a Form

2002-12-17 Thread Johannes Schlueter
On Tuesday 17 December 2002 18:38, Jay Thayer wrote: > 1. Any reason that I can not pass the variable to the submit page? I am Try $_REQUEST['Test'] and look in the manual, the archives or a PHP-FAQ for "register_globals". > 2. If I have a HTML tag, how can I > reference the x# of variables th

Re: [PHP] Submitting a Form

2002-12-17 Thread Adam Voigt
1. Try: $_POST[Test] 2. $_POST[testmultiple][2] (Will give you position 3 of the select.) Or: $list = implode($_POST[testmultiple]); Will give you the values selected in $list in a comma seperated list. 3. print_r($_REQUEST) On Tue, 2002-12-17 at 12:38, Jay Thayer wrote: I have

Re: [PHP] Submitting a Form

2002-12-17 Thread Joseph W. Goff
Your error reporting is set to E_ALL. If you change it to E_ALL & ~E_NOTICE you will not get the notice messages anymore. Also, if you are not getting the value, try $_POST['Test'] instead. - Original Message - From: "Jay Thayer" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, D

[PHP] Submitting a Form

2002-12-17 Thread Jay Thayer
I have a php page, with a form I am attempting to submit. In submitTest.php, I simply put Yet, I continually get the browser message: "Notice: Undefined variable: Test in ...\submittest.php on Line 2 1. Any reason that I can not pass the variable to the submit page? I am using an A

[PHP] php reference behavior

2002-12-17 Thread 22 manopohuji
hi, i'm running into some weird behavior with php references. i distilled it down to some test code below: 'dean' ); $var1['arrayref'] = & $array; $var2 = $var1; echo "var1:\n"; print_r( $var1 ); echo "var2:\n"; print_r( $var2 ); $var1['arrayref'] = NULL; echo "var1:\n"; print_r( $v

[PHP] Strange XML/file read problem

2002-12-17 Thread news . php . net
I'm getting the same exact problem as this: http://marc.theaimsgroup.com/?l=php-general&m=102879705713315&w=2 Here's the code that's giving me problems: while ($data = fread($fp, 4096)) { xml_parse($parser, $data, feof($fp)) or die(sprintf("XML error: %s at line %d", xml_error_

Re: [PHP] *arrays/evaluating - ! urgent !

2002-12-17 Thread Wico de Leeuw
Hiya, I couldn't read you code really (i think you gotta look into it, eval is evil and really not nessacery here) I suggest you look at this (piece) of code: value="">value_ Gr, Wico At

[PHP] Re: Per instance disable_functions in CGI "mode"

2002-12-17 Thread rosie storey
I usually specify php directives, in the VirtualHost definition in the apache configuration file. I haven't tried disable_functions, but it works for other php.ini directives, such as include_path. You can also put php directives in an .htaccess file. Directives placed in a VirtualHost config

[PHP] *arrays/evaluating - ! urgent !

2002-12-17 Thread Alexey Lysenkov
Hello, another newbie here. Here is a loop: for($f=0;$f\n"); echo("$frage5[$f]\n"); for($h=0;$h\n"); $tempQar = "array_values(\$arq_5_".$hh.")"; eval("\$tempQar=\"$tempQar\";"); for($v=0;$v<7;$v++){ if((int)$tempQar[$f] == $v){ $sel = "selected"; }els

Re: [PHP] pcntl_fork

2002-12-17 Thread Chris Hewitt
Negrea Mihai wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 My phpinfo shows in the upper part in the configure line that it has been compiled with --enable-pcntl I have Apache 2.0 from RH8.0 This seemed a bit wierd so I looked further. From the manual (http://www.php.net/manual/en/ref.

Re: [PHP] pcntl_fork

2002-12-17 Thread Negrea Mihai
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 forgot to say: I have php 4.2.3 On Tuesday 17 December 2002 17:28, Negrea Mihai wrote: > My phpinfo shows in the upper part in the configure line that it has been > compiled with --enable-pcntl > I have Apache 2.0 from RH8.0 > > And.. it works from th

Re: [PHP] pcntl_fork

2002-12-17 Thread Negrea Mihai
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 My phpinfo shows in the upper part in the configure line that it has been compiled with --enable-pcntl I have Apache 2.0 from RH8.0 And.. it works from the command line if I use the php binary On Tuesday 17 December 2002 17:33, Chris Hewitt wrote: >

RE: [PHP] Multiple Files Upload

2002-12-17 Thread Edward Peloke
I believe I started with the 'uploader' found on the bottom of this page and then customized it to fit my needs. http://php.resourceindex.com/Complete_Scripts/File_Management/File_Uploading / Eddie -Original Message- From: Hynek Semecký ME [mailto:[EMAIL PROTECTED]] Sent: Tuesday, Decem

Re: [PHP] pcntl_fork

2002-12-17 Thread Chris Hewitt
Negrea Mihai wrote: I have configured php with --enable-pcntl and it says: Either php being used is not compiled with this option (what does phpinfo show? Did you restart Apache)? Call to undefined function: pcntl_fork() Or pcntl_fork() is not a function provided with --enable_pcntl. I c

RE: [PHP] Simple code that won't work

2002-12-17 Thread Ford, Mike [LSS]
> -Original Message- > From: Jason Wong [mailto:[EMAIL PROTECTED]] > Sent: 17 December 2002 14:58 > > On Tuesday 17 December 2002 22:25, Jacob van Zanen wrote: > > Hi All, > > > > > > Reasonably new to PHP and trying to write a code that looks > through my > > logfiles and reports the lin

Re: [PHP] real time output

2002-12-17 Thread Chevalier, Arthur
What about setting implicit_flush = on ? "Jason Wong" <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > On Tuesday 17 December 2002 22:29, Art Chevalier wrote: > > Hello, > > > > I want to start a native process and capture the output while it is > > being generated and display i

RE: [PHP] Multiple Files Upload

2002-12-17 Thread Hynek Semecký ME
Could you give me an idea ? Hynek -Original Message- From: Edward Peloke [mailto:[EMAIL PROTECTED]] Sent: 17. prosince 2002 16:28 To: [EMAIL PROTECTED] Subject: RE: [PHP] Multiple Files Upload yep, this can be done -Original Message- From: Hynek Semecký ME [mailto:[EMAIL PROTECT

[PHP] Re: writing uploaded file to another drive on another network?

2002-12-17 Thread Bogdan Stancescu
No, it's not stupid - I don't know why you may need this but as long as you need it... Anyway. It would be interesting to know what OS you're using on both ends of the connection. If they're both *nix machines, it's rather simple. You typically copy the uploaded file from the temporary location

RE: [PHP] Multiple Files Upload

2002-12-17 Thread Edward Peloke
yep, this can be done -Original Message- From: Hynek Semecký ME [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 17, 2002 9:58 AM To: [EMAIL PROTECTED] Subject: RE: [PHP] Multiple Files Upload Even if I select one by one and then hit UPLOAD ? Hynek -Original Message- From:

Re: [PHP] Simple code that won't work

2002-12-17 Thread Jason Wong
On Tuesday 17 December 2002 22:25, Jacob van Zanen wrote: > Hi All, > > > Reasonably new to PHP and trying to write a code that looks through my > logfiles and reports the lines that contain any of the keywords in my init > file. > However can't seem to get it to work > > // Open an ini file > if

Re: [PHP] writing uploaded file to another drive on another network?

2002-12-17 Thread Jason Wong
On Tuesday 17 December 2002 22:55, Kenn Murrah wrote: > admitting in advance that this may be a REALLY stupid question .. > > i've created a page for uploading files using PHP, and it works fine ... is > it possible to write that uploaded file to another drive, on another > network? > > for instanc

RE: [PHP] Multiple Files Upload

2002-12-17 Thread Hynek Semecký ME
Even if I select one by one and then hit UPLOAD ? Hynek -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED]] Sent: 17. prosince 2002 15:51 To: [EMAIL PROTECTED] Subject: Re: [PHP] Multiple Files Upload On Tuesday 17 December 2002 22:44, Hynek Semecký ME wrote: > Ideally yes

[PHP] Simple code that won't work

2002-12-17 Thread Jacob van Zanen
Hi All, Reasonably new to PHP and trying to write a code that looks through my logfiles and reports the lines that contain any of the keywords in my init file. However can't seem to get it to work If the part that does not seem to work is the bit that does the comparison. Anybody have an ide

[PHP] writing uploaded file to another drive on another network?

2002-12-17 Thread Kenn Murrah
admitting in advance that this may be a REALLY stupid question .. i've created a page for uploading files using PHP, and it works fine ... is it possible to write that uploaded file to another drive, on another network? for instance, my PHP pages are currently being hosted offsite ... would it be

Re: [PHP] Multiple Files Upload

2002-12-17 Thread Jason Wong
On Tuesday 17 December 2002 22:44, Hynek Semecký ME wrote: > Ideally yes - highlight all and send all in one click. > An alternative solution would be selecting one by one and > then hit UPLOAD ALL. No, can't be done. For a longer answer search the archives (using your subject as keywords). --

  1   2   >