Re: [PHP] pop3 functions

2003-08-18 Thread raditha dissanayake
andu wrote: On Mon, 18 Aug 2003 15:40:31 -0500 Ken <[EMAIL PROTECTED]> wrote: Those weird function names are taken straight from C. Blame the inventors of C. PHP is partly intended to be easy to learn for C programmers. I'm wondering how many php users are C programmers... Can only blame the p

Re: [PHP] XML Parser misbehaves with &

2003-08-18 Thread raditha dissanayake
Hello, It's not misbehaving and it's not illegal xml. It's a well documented fact that the character data function may be called more than once. The normal programming practice is to put the strings that are given to you at each call into a buffer. Then you write code in the end handler to pro

Re: [PHP] Mail() Problem Sending

2003-08-18 Thread raditha dissanayake
/var/log/maillog file shold have some clues. Cesar Aracena wrote: Before trying to guess what Saddam can and can't do with computers, try sending e-mails to different addresses (different domains... NOT just different usernames). Sometimes, the e-mail server you use is NOT configured properly, so

RE: [PHP] Delimiter WITHOUT lots of IF's

2003-08-18 Thread Cesar Aracena
Thanks Curt AND Ralph, This makes it all a lot more clear and easy to understand. And yes, it makes sense. I'll try it now and see what happens. What I've never seen before is what you did with: if($row = mysql_fetch_array($result)) that made me go LOL!!! Thanks in advanced, Cesar Aracena www

RE: [PHP] Delimiter WITHOUT lots of IF's

2003-08-18 Thread Ralph Guzman
I agree with Curt, use mySQL to get the sum of 'sess_itemsize' then divide the result by size per disk to get quantity. So your function should look something like this: function cart_cdqty() { $query = "SELECT SUM(sess_itemsize) AS total_size FROM sessions WHERE

RE: [PHP] window.open("hai.php?id="one");

2003-08-18 Thread Martin Towell
The same way you do any other variable passed in from a form... $_POST['id'] or $HTTP_POST_VARS['id'] or $id depending on your version of php and if you have register_globals on (for the last one) -Original Message- From: murugesan [mailto:[EMAIL PROTECTED] Sent: Tuesda

Re: [PHP] window.open("hai.php?id="one");

2003-08-18 Thread murugesan
I have made the value hidden. How can I retrieve it in the next page in php. -murugesan - Original Message - From: "Martin Towell" <[EMAIL PROTECTED]> To: "'murugesan'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, August 19, 2003 11:21 AM Subject: RE: [PHP] window.open("ha

RE: [PHP] window.open("hai.php?id="one");

2003-08-18 Thread Martin Towell
Hiya, 1. Turn off the address bar or 2. Create a form with hidden elements, with method=post open a window to a blank page, and name the window submit the form to the newly, named, window HTH Martin -Original Message- From: murugesan [mailto:[EMAIL PROTECTED] Sent: Tues

[PHP] window.open("hai.php?id="one");

2003-08-18 Thread murugesan
Hello all, I need to pass a value from one page to another.This is done from a link from page 1 to page 2. In that I called a php file as window.open("hai.php?id="one"); But I dont want ?id="one" to be displayed in the address bar. How can I achieve this?. -murugesan. -- PHP General M

[PHP] Re: getting value of item in list box.

2003-08-18 Thread KK
check out http://javascript.internet.com/forms/auto-drop-down.html "Tim Winters" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello, > > I have a PHP page which pulls a bunch of data from a mySQL DB. I have 2 > list boxes in a form. One is populated automatically by my PHP code.

Re: [PHP] Delimiter WITHOUT lots of IF's

2003-08-18 Thread Curt Zirzow
* Thus wrote Cesar Aracena ([EMAIL PROTECTED]): > Ok. Here you have the entire function to see how many CD's the order > will contain: > > function cart_cdqty() > { > $query = "SELECT * FROM sessions WHERE sess_sid = > ".$_COOKIE['SID'].""; > $result = mysql_query($query); > $num

RE: [PHP] Delimiter WITHOUT lots of IF's

2003-08-18 Thread Cesar Aracena
Ok. Here you have the entire function to see how many CD's the order will contain: function cart_cdqty() { $query = "SELECT * FROM sessions WHERE sess_sid = ".$_COOKIE['SID'].""; $result = mysql_query($query); $num_rows = mysql_num_rows($result); $x = 0;

RE: [PHP] Delimiter WITHOUT lots of IF's

2003-08-18 Thread Ralph Guzman
No, that sounds about right. So your table should have the following fields: customer_session_id, item_id, quantity, final_price so then all you have to do is query this table looking for all items in customers shopping cart. I am not quite sure how you are going about calculating orders in c

RE: [PHP] Delimiter WITHOUT lots of IF's

2003-08-18 Thread Cesar Aracena
Using a cookie (I know, I know...) I plant a cookie in the visitor's browser when he opens the site with a random generated number which expires when the browser(s) is closed. With that SID, PHP stores the orders (one per line) into a "sessions" table in MySQL each with the itemID. Is it fine or am

RE: [PHP] Delimiter WITHOUT lots of IF's

2003-08-18 Thread Ralph Guzman
How are you keeping track of items added being added to the shopping cart? -Original Message- From: Cesar Aracena [mailto:[EMAIL PROTECTED] Sent: Monday, August 18, 2003 7:55 PM To: [EMAIL PROTECTED] Subject: [PHP] Delimiter WITHOUT lots of IF's Importance: High Sensitivity: Confidential

RE: [PHP] Delimiter WITHOUT lots of IF's

2003-08-18 Thread Ralph Guzman
How are you keeping track of items added being added to the shopping cart? -Original Message- From: Cesar Aracena [mailto:[EMAIL PROTECTED] Sent: Monday, August 18, 2003 7:55 PM To: [EMAIL PROTECTED] Subject: [PHP] Delimiter WITHOUT lots of IF's Importance: High Sensitivity: Confidential

RE: [PHP] Mail() Problem Sending

2003-08-18 Thread Cesar Aracena
Before trying to guess what Saddam can and can't do with computers, try sending e-mails to different addresses (different domains... NOT just different usernames). Sometimes, the e-mail server you use is NOT configured properly, so every e-mail does not gets to you. It happened to me too when test

[PHP] Delimiter WITHOUT lots of IF's

2003-08-18 Thread Cesar Aracena
Hi all, I need to create an automatic process for visitors who are adding items into a shopping cart, be able to see how many MBs and how many CDs will the order have. >From this site, visitors will be able to choose one ore more software products from a list of hundreds. I want them to check the

Re: [PHP] Problems with post (Again)

2003-08-18 Thread Tom Rogers
Hi, Tuesday, August 19, 2003, 2:26:35 AM, you wrote: KKA> This is my log erros, I`ve changed my POST_MAX_SIZE in the php.in, and this value is constant. KKA> Unknown(0) : Warning - Unknown(): POST Content-Length of 215 bytes KKA> exceeds the limit of -1048576 bytes KKA> Klaus Kaiser Apolinario

Re: [PHP] Problem with the post variables.

2003-08-18 Thread Tom Rogers
Hi, Tuesday, August 19, 2003, 12:03:51 AM, you wrote: KKA> Guys I have a problem here. KKA> I'm using PHP 4.3.2 and httpd 1.3.28. KKA> Look my exemple. KKA> I have a page whith a Form method post, and I submit this page to teste2.php, but I dont can request de data from the text box... KKA> ###

Re: [PHP] mysql_connect() fails randomly

2003-08-18 Thread Curt Zirzow
* Thus wrote Jon Drukman ([EMAIL PROTECTED]): > i've got a library file that i require() in all my scripts. it starts > with this line: > > $dbh=mysql_connect() or die("mysql connect failed: " . mysql_error()); The problem is the mysql_error() cant display what the problem is because the conne

[PHP] Re: How to open a save-as dialog and then redirect after donwload?

2003-08-18 Thread Jon Drukman
Jean-Christian IMbeault wrote: I want to create the following: 1- A screen a series files and associated buttons 2- if the user clicks the button a "File | save as" dialog opens up 3- after the file the user is redirected to a new page I've gotten 1 and 2 to work but I can't figure out how to do a

Re: [PHP] Cannot output before input

2003-08-18 Thread Chris Lee
>ob_flush() Thanks curt, it's working ^_^ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] mysql_connect() fails randomly

2003-08-18 Thread Jon Drukman
i've got a library file that i require() in all my scripts. it starts with this line: $dbh=mysql_connect() or die("mysql connect failed: " . mysql_error()); about 5% of the time, this fails for no apparent reason. it just prints mysql connect failed: with no error message. there's nothing w

[PHP] How to open a save-as dialog and then redirect after donwload?

2003-08-18 Thread Jean-Christian IMbeault
I want to create the following: 1- A screen a series files and associated buttons 2- if the user clicks the button a "File | save as" dialog opens up 3- after the file the user is redirected to a new page I've gotten 1 and 2 to work but I can't figure out how to do anything after the file has fin

RE: [PHP] If you ever had a Vic20

2003-08-18 Thread Martin Towell
> [snip] > $found = 0; > while ($mydata = mysql_fetch_object($news)) > { > if ($mydata->StudentId == $StudentId) > {$found = 1; break;} > } > > if ($found==1){do this}else{do that} > [/snip] > > Why two if's? Isn't if the student

[PHP] URGENT PROPOSAL

2003-08-18 Thread MRS EKI OMORODION
MRS. EKI OMORODION #8 Queens Drive Ikoyi Lagos. Email:[EMAIL PROTECTED] INTRODUCTION: l am Mrs. Eki Omorodion l know this proposal will come to you as a surprise because we have not met before either hysically or through correspondence. I have no doubt in your ability to handle this proposal invo

Re: [PHP] need help with cookies

2003-08-18 Thread Jaap van Ganswijk
At 2003-08-18 16:17 -0400, Dan Anderson wrote: >I need to grab cookies from a web page and pass those cookies back to >the web page when needed. I downloaded the cURL program and was playing >with it, but don't understand how cURL functions correlate into the PHP >equivalents. I don't know cURL,

Re: [PHP] How configure PHP parser 4.3.x in IIS version 6.0?

2003-08-18 Thread Jaap van Ganswijk
At 2003-12-06 00:07 -0400, [EMAIL PROTECTED] wrote: >I use the dll "php4isapi.dll" and it doesn't work, >Could someone give me a hand? We can't hear you yet, since you're living in the future. Wait about 4 months and we will have received your question! Or adjust your clock... Greetings, Jaap

[PHP] URGENT PROPOSAL

2003-08-18 Thread MRS EKI OMORODION
MRS. EKI OMORODION #8 Queens Drive Ikoyi Lagos. Email:[EMAIL PROTECTED] INTRODUCTION: l am Mrs. Eki Omorodion l know this proposal will come to you as a surprise because we have not met before either hysically or through correspondence. I have no doubt in your ability to handle this proposal invo

[PHP] RE: [PUP] READ RECEIPTS [WAS: $GLOBAL question]

2003-08-18 Thread Robin Kopetzky
Sorry bat that - I deeply apologize for the mess I caused. I have an ISP and send email billing out. The return receipt is to make sure the user gets the email. I have turned off the receipts and will NOT turn them on again, Robin 'Sparky' Kopetzky Black Mesa Computers/Internet Service Grants, NM

RE: [PHP] READ RECEIPTS [WAS: $GLOBAL question]

2003-08-18 Thread Chris W. Parker
Michael A Smith on Monday, August 18, 2003 2:57 PM said: > Thanks, I'd forgotten about that setting which I just did... I'm sorry > if everyone feels I've been too harsh, but I'm not saying I'm sorry > for what I said. :-) While we're griping about things let me mak

Re: [PHP] pop3 functions

2003-08-18 Thread Dan Anderson
> I'm wondering how many php users are C programmers... > Can only blame the php inventors for using a bad model. C and C++ were the first languages I learned and I think that it's a terrific model. So powerful. But many C/C++ programmers aren't able to code properly (or accident prone, or code

Re: [PHP] Mail() Problem Sending

2003-08-18 Thread Michael A Smith
My ideas: (in order of likelihood) Idea #1: Your computer hates you. Idea #2: Sendmail isn't running. Idea #3: Sendmail isn't setup correctly. Idea #4: You have been hacked by Saddam. -Michael :-) Ben C. wrote: I have recently had php installed on my server with sendmail. The server is behind a

Re: [PHP] READ RECEIPTS [WAS: $GLOBAL question]

2003-08-18 Thread Michael A Smith
Thanks, I'd forgotten about that setting which I just did... I'm sorry if everyone feels I've been too harsh, but I'm not saying I'm sorry for what I said. :-) -Michael Robert Cummings wrote: This is pretty off topic -- but most clients also let you refuse to send receipts automatically -- which

Re: [PHP] pop3 functions

2003-08-18 Thread andu
On Mon, 18 Aug 2003 15:40:31 -0500 Ken <[EMAIL PROTECTED]> wrote: > Those weird function names are taken straight from C. Blame the > inventors of C. PHP is partly intended to be easy to learn for C > programmers. I'm wondering how many php users are C programmers... Can only blame the php inve

Re: [PHP] READ RECEIPTS [WAS: $GLOBAL question]

2003-08-18 Thread Michael A Smith
Dan Anderson wrote: On Mon, 2003-08-18 at 17:22, Robert Cummings wrote: This is pretty off topic -- but most clients also let you refuse to send receipts automatically -- which is how I deal with them. Yes but read reciepts do exist for a purpose. If you happen to work at a place wher

Re: [PHP] need help with cookies

2003-08-18 Thread Curt Zirzow
* Thus wrote Dan Anderson ([EMAIL PROTECTED]): > I need to grab cookies from a web page and pass those cookies back to > the web page when needed. I downloaded the cURL program and was playing > with it, but don't understand how cURL functions correlate into the PHP > equivalents. > > How would I

RE: [PHP] READ RECEIPTS [WAS: $GLOBAL question]

2003-08-18 Thread Dan Anderson
On Mon, 2003-08-18 at 17:22, Robert Cummings wrote: > This is pretty off topic -- but most clients also let you refuse to send > receipts automatically -- which is how I deal with them. Yes but read reciepts do exist for a purpose. If you happen to work at a place where you /want/ read re

[PHP] Mail() Problem Sending

2003-08-18 Thread Ben C .
I have recently had php installed on my server with sendmail. The server is behind a firewall and SMTP is open on the firewall. However, when I execute the mail(), it appears to have sent the mail, but I never receive it. I am not getting any error messages. Has anyone ever run into this pro

php-general Digest 18 Aug 2003 21:22:03 -0000 Issue 2244

2003-08-18 Thread php-general-digest-help
php-general Digest 18 Aug 2003 21:22:03 - Issue 2244 Topics (messages 159901 through 159951): Re: Drawing tables using PDFlib 159901 by: Director General: NEFACOMP Fatal error: [] operator not supported for strings 159902 by: Daniel 159903 by: John W. Holmes Removin

RE: [PHP] READ RECEIPTS [WAS: $GLOBAL question]

2003-08-18 Thread Robert Cummings
This is pretty off topic -- but most clients also let you refuse to send receipts automatically -- which is how I deal with them. Cheers, Rob. On Mon, 2003-08-18 at 17:04, Dan Anderson wrote: > > p.s. Is there not an option on your mail reader to automatically send > > read receipts? I mean, can'

RE: [PHP] READ RECEIPTS [WAS: $GLOBAL question]

2003-08-18 Thread Dan Anderson
> p.s. Is there not an option on your mail reader to automatically send > read receipts? I mean, can't you have it by default send the receipt > instead of requesting your intervention? If not, you might like to think > about getting a better client. thanks! You ever open a spam and 30 seconds lat

RE: [PHP] READ RECEIPTS [WAS: $GLOBAL question]

2003-08-18 Thread Chris W. Parker
Michael A Smith on Monday, August 18, 2003 1:41 PM said: > Would all who are, quit requesting "read receipts" on their messages? > It's really annoying and I don't think you want to know of the 100+ > users on this list how many read the message... Doesn't bother me

Re: [PHP] Q: How to get the value of a checkbox of which name without '[]'?

2003-08-18 Thread CPT John W. Holmes
- Original Message - From: "Frode" <[EMAIL PROTECTED]> [...snip...] Which means I can't modify the code above into PHP prefered style: [...snip...] > Why is this the preferred style, and where can I read more about it? I don't know about preferred style or not, but if you want P

Re: [PHP] READ RECEIPTS [WAS: $GLOBAL question]

2003-08-18 Thread Michael A Smith
Would all who are, quit requesting "read receipts" on their messages? It's really annoying and I don't think you want to know of the 100+ users on this list how many read the message... Thanks! -Michael Robin Kopetzky wrote: Good Morning!! I'm trying to print $GLOBALs this way and it doesn't wo

Re: [PHP] Q: How to get the value of a checkbox of which name without '[]'?

2003-08-18 Thread Frode
[...snip...] Which means I can't modify the code above into PHP prefered style: [...snip...] Why is this the preferred style, and where can I read more about it? Frode Lillerud, Norway -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.

[PHP] need help with cookies

2003-08-18 Thread Dan Anderson
I need to grab cookies from a web page and pass those cookies back to the web page when needed. I downloaded the cURL program and was playing with it, but don't understand how cURL functions correlate into the PHP equivalents. How would I strip the cookies from a web page, and send cookies? More

Re: [PHP] Q: How to get the value of a checkbox of which name without '[]'?

2003-08-18 Thread CPT John W. Holmes
> Consider the following form in a HTML file: > > ... > > > > > ... > > Now I'm posting this form into a PHP script. The problem is I can't change > that HTML file. Which means I can't modify the code above into PHP prefered > style: > > > > ... > > So, how can I get the co

[PHP] Re: Q: How to get the value of a checkbox of which name without '[]'?

2003-08-18 Thread Greg Beaver
You can try using $HTTP_RAW_POST_DATA and parsing it yourself - or grab the get value directly from $_SERVER['QUERY_STRING'] Regards, Greg Dallas Thunder wrote: > Consider the following form in a HTML file: > > ... > > > > > ... > > Now I'm posting this form into a PHP script. The problem

[PHP] Q: How to get the value of a checkbox of which name without '[]'?

2003-08-18 Thread Dallas Thunder
Consider the following form in a HTML file: ... ... Now I'm posting this form into a PHP script. The problem is I can't change that HTML file. Which means I can't modify the code above into PHP prefered style: ... So, how can I get the correct values of the checkbox? $_REQUEST['box'] i

Re: [PHP] XML Parser misbehaves with &

2003-08-18 Thread Jeff Bearer
The data contains escaped ampersands -> & Which is as far as I know the way one represents ampersands in their data. In my post below, the value of $data the second time is "&" because it has been evaluated by the xml parser. And btw xmllint has no problems with & On Mon, 2003-08-18 at 12:41,

Re: [PHP] $GLOBAL question

2003-08-18 Thread Jonathan Pitcher
Robin, There are 2 problems with the example you provided. One, $GLOBAL should be $GLOBALS. Second you can't print a value that has not been set. See updated code for an example. function GlobalCheck() { print "{$GLOBALS['aTest']}"; } GlobalChec

RE: [PHP] Re: $GLOBAL question

2003-08-18 Thread Robin Kopetzky
DOH! Damned fat-fingering!!! Must learn to type s l o w l y... Thanks! Robin 'Sparky' Kopetzky Black Mesa Computers/Internet Service Grants, NM 87020 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: $GLOBAL question

2003-08-18 Thread Greg Beaver
$GLOBALS not $GLOBAL Greg -- phpDocumentor http://www.phpdoc.org Robin Kopetzky wrote: Good Morning!! I'm trying to print $GLOBALs this way and it doesn't work: $aTest = "This is a test"; function GlobalCheck() { print "{$GLOBAL['aTest']}"; } GlobalCheck();

[PHP] $GLOBAL question

2003-08-18 Thread Robin Kopetzky
Good Morning!! I'm trying to print $GLOBALs this way and it doesn't work: Does someone know the 'right' way to do this?? Robin 'Sparky' Kopetzky Black Mesa Computers/Internet Service Grants, NM 87020 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/

RE: [PHP] Problem with the post variables.

2003-08-18 Thread Wouter van Vliet
ooops .. my mistake .. Usually I check thing before I post, forget it once .. that's how I make mistakes.. Anyways, I still am pretty sure setting enctype to multipart/form-data was the problem.. 'application/x-www-form-urlencoded' is indeed the correct enctype for just posting forms .. (check

RE: [PHP] Problem with the post variables.

2003-08-18 Thread Chris Shiflett
--- Wouter van Vliet <[EMAIL PROTECTED]> wrote: > The problem is probably in the 'enctype="multipart/form-data"'. > You should only use this enctype if you're gonna upload a file > through the form. If not, just leave it away or use text/plain Posted data isn't text/plain, it's something like appl

Re: [PHP] Problems with post (Again)

2003-08-18 Thread Chris Shiflett
--- Klaus_Kaiser_Apolinário <[EMAIL PROTECTED]> wrote: > This is my log erros, I`ve changed my POST_MAX_SIZE in the php.in, > and this value is constant. > > Unknown(0) : Warning - Unknown(): POST Content-Length of 215 bytes > exceeds the limit of -1048576 bytes That looks like overflow of some

RE: [PHP] Have I over done this?

2003-08-18 Thread Chris W. Parker
John Taylor-Johnston on Saturday, August 16, 2003 5:19 PM said: > Have I over done this? That I don't know. > Can I clean up this code any? Yes. 1. You can take your open/closeserver() functions one step farther and create a query function (can be called somethin

Re: [PHP] XML Parser misbehaves with &

2003-08-18 Thread Justin Farnsworth
This is normal. You have illegal XML there, as it should be in . I have run across this, and have to clean it up with an awk script. Ampersand is a no-no. Just running xmllint on the file will tell you about the problem(s). _justin Jeff Bearer wrote: > > I've come across this frustrating beh

RE: [PHP] Problem with the post variables.

2003-08-18 Thread Wouter van Vliet
The problem is probably in the 'enctype="multipart/form-data"'. You should only use this enctype if you're gonna upload a file through the form. If not, just leave it away or use text/plain Wouter -Oorspronkelijk bericht- Van: Klaus Kaiser Apolinário [mailto:[EMAIL PROTECTED] Verzonden: m

[PHP] Problems with post (Again)

2003-08-18 Thread Klaus Kaiser Apolinário
This is my log erros, I`ve changed my POST_MAX_SIZE in the php.in, and this value is constant. Unknown(0) : Warning - Unknown(): POST Content-Length of 215 bytes exceeds the limit of -1048576 bytes Klaus Kaiser Apolinario Curitiba online

[PHP] XML Parser misbehaves with &

2003-08-18 Thread Jeff Bearer
I've come across this frustrating behavior with the XML parser when it reads an escaped ampersand (&) If the xml being evaluated is: Blue, Green & Red it calls the character data handler 3 times: the first time the $data is "Blue, Green " the second time is "&" and the third time is " Red" Ne

Re: [PHP] Removing empty array values.

2003-08-18 Thread Curt Zirzow
* Thus wrote Johnson, Kirk ([EMAIL PROTECTED]): > > On Mon, 18 Aug 2003 08:03:25 -0400, you wrote: > > > > >How do I remove empty array values? > > This will remove the empty values and re-index the array so there are no > "holes". > > $new_array = array_values($old_array); I wouldn't suggest t

RE: [PHP] Removing empty array values.

2003-08-18 Thread Johnson, Kirk
> On Mon, 18 Aug 2003 08:03:25 -0400, you wrote: > > >How do I remove empty array values? This will remove the empty values and re-index the array so there are no "holes". $new_array = array_values($old_array); Kirk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Problem with the post variables.

2003-08-18 Thread CPT John W. Holmes
Wow... don't do either of those. First of all, you can't use ini_set to affect the register global settings and you're using the $_POST/$_GET superglobals, which work regardless of your setting. So that's not the issue. Does the phpinfo() function product any output? What if you view the source of

RES: [PHP] PHP/JavaScript/HTML

2003-08-18 Thread Mauricio
Perfect! That's all I had to do. Thanks! Maurício -Mensagem original- De: CPT John W. Holmes [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 5 de agosto de 2003 16:30 Para: Mauricio; [EMAIL PROTECTED] Assunto: Re: [PHP] PHP/JavaScript/HTML From: "Mauricio" <[EMAIL PROTECTED]> > On t

Re: [PHP] getting value of item in list box.

2003-08-18 Thread CPT John W. Holmes
From: "Tim Winters" <[EMAIL PROTECTED]> > I have a PHP page which pulls a bunch of data from a mySQL DB. I have 2 > list boxes in a form. One is populated automatically by my PHP code. > But the second will be populated based on what is selected in the first. > > I don't know how to get out the

Re: [PHP] Problem with the post variables.

2003-08-18 Thread Hidayet Dogan
Check your register_globals directive in php.ini file. If its value is "Off", change your register_globals directive to "On", and restart your web server. Or add ini_set("register_globals", "1"); line top of your php file. Hidayet Dogan

[PHP] getting value of item in list box.

2003-08-18 Thread Tim Winters
Hello, I have a PHP page which pulls a bunch of data from a mySQL DB. I have 2 list boxes in a form. One is populated automatically by my PHP code. But the second will be populated based on what is selected in the first. I don't know how to get out the value of the first listbox using JS. C

[PHP] .htaccess & an unsupportive ISP

2003-08-18 Thread Terry Thompson
I've been successfully operating a web site for a while now, hosted by an ISP. I'm escaping blocks of PHP code from .html files, and have been using the following .htaccess file to force php to parse these files. I've also been using .htaccess to help make my URL's more user-friendly: AddType appl

[PHP] Re:RE: [PHP] problem with fsockopen ............

2003-08-18 Thread fongming
No,thanks.I still got the cookies , and could not block cookies, how comes that ? the following is my scripts: --- $fp = fopen("http://XXX.XXX.XXX","r";); while(!feof($fp)) { echo fgets($fp,128); }

[PHP] Problem with the post variables.

2003-08-18 Thread Klaus Kaiser Apolinário
Guys I have a problem here. I'm using PHP 4.3.2 and httpd 1.3.28. Look my exemple. I have a page whith a Form method post, and I submit this page to teste2.php, but I dont can request de data from the text box... ### This is the test page # Teste

[PHP] PHP 4.3.3RC4 Released

2003-08-18 Thread Ilia Alshanetsky
RC3 did not prove as stable as I hoped it would be, so here we are 20+ bug fixes later with RC4. It is my sincere hope that RC4 will be the last RC before we can proceed with the final. Please test this release as much as possible, ideally you won't find any new bugs. Once again I would like to

Re: [PHP] using objects

2003-08-18 Thread Uros
Hi, I forgot to add. >From this modules I want use same objects. So not generating new everytime I load new module. If I change something in class mod1, this has to change globaly, so mod2 must se the diference. Monday, August 18, 2003, 3:41:02 PM, you wrote: U> Hello, U> I'm developing web a

[PHP] using objects

2003-08-18 Thread Uros
Hello, I'm developing web aplication and I have some questions how to use object to get what I want. I have init.php file wher I prepare everything (DB,Auth) so I have several objects created. Then I have index.php which gets all requests and load requested modules. This modules have to use

[PHP] NestedSet view only of active nodes

2003-08-18 Thread Fitzner Michael
Hi, I plan to use the Pear DB_NestedSets Package for a CMS System. The structure of the Cms Site navigation should be readed from the NestedSet Tree, but only the nodes which are active. If a certain Node is inactive, then should the node and its subtree not be shown. My Problem: I found nothi

Re: [PHP] Any IMAP portal system

2003-08-18 Thread Mark
http://www.horde.org --- Dasmeet <[EMAIL PROTECTED]> wrote: > Hi! Is there any PHP Portal system (scripts) that have IMAP/SMTP, > calendar, notebook and other utilities build in to it alongwith > other > general portal utilities? Any information would be of great help. > Thanks > Dasmeet > > >

RE: [PHP] problem with sessions - IE working after session.use_trans_sid enabled.

2003-08-18 Thread Ford, Mike [LSS]
On 17 August 2003 12:38, anders thoresson wrote: > Hi, > > I've had some problems with Internet Explorer not working on the > site I'm building at the moment. At my local system it worked, but > not on my ISP. After comparing the session settings, only > use_trans_sid differed: enabled at my loc

RE: [PHP] [php] explode that :) !

2003-08-18 Thread Ford, Mike [LSS]
On 17 August 2003 08:34, Tom Rogers wrote: > Hi, > > Sunday, August 17, 2003, 12:58:23 PM, you wrote: > > $P1OC1Q1 = "1¶some text or some comment"; > > > echo "Your score is: "; > $score=split($P1OC1Q1,"¶"); echo $score[0]."\n"; > > > Do I have to go through all that to get score[0] ? > > > Jo

[PHP] INFORMIX (PLEASE)

2003-08-18 Thread Davi José Faria Costa
Hello Everybody, I wait that somebody can help me, therefore already I depleted my possibilities. I need to develop a site in PHP with access to the Data base Informix. The such of the data base alone functions with NTFS (W2k, WNT). I installed the W2K Advanced Server in my house... and install

RE: [PHP] "Form Feeds" within a HTML table

2003-08-18 Thread Jay Blanchard
[snip] I am creating a "report" that the user can download and it is a HTML table. Is there a way to put Page Breaks within the report so if the user prints it, it will page break a predefined places? [/snip] Yes...it is called a Cascading Style Sheet (

RE: [PHP] Discussion: do you consider null a value or strictly a type?

2003-08-18 Thread Jay Blanchard
[snip] I also think, in discussing NULLs, that we hit a limit of language - we have to refer to this "not knowness" as something. Thus a variable set to NULL is not like an empty bucket, more like a bucket with potential, but if you examine it reveals not " " 's, or 0's, but a benign vacuum. [/s

Re: [PHP] Removing empty array values.

2003-08-18 Thread David Otton
On Mon, 18 Aug 2003 08:03:25 -0400, you wrote: >How do I remove empty array values? That could mean a lot of things. I'm going to assume you have a simple indexed array and want to remove any entries where array[index] == FALSE, and reindex the array. The most elegant way is to copy all the valu

RE: [PHP] If you ever had a Vic20

2003-08-18 Thread Jay Blanchard
[snip] :) Tried that: [/snip] Let's be more verbose and see what happens if(!($myconnection = mysql_pconnect($server,$user,$pass))){ print("Failed to connect to database!\n"); exit(); } if(!mysql_select_db($db,$myconnection)){ print("Failed to select database!\

Re: [PHP] Removing empty array values.

2003-08-18 Thread Tom Rogers
Hi, Monday, August 18, 2003, 10:03:25 PM, you wrote: z> How do I remove empty array values? z> -- z> - Zavaboy z> [EMAIL PROTECTED] z> www.zavaboy.com In a loop with unset() foreach($array as $key=>$val){ if(empty($val) unset($array[$key]); } -- regards, Tom -- PHP General Mailing Lis

[PHP] FX.php question

2003-08-18 Thread Gremillion
I am working with FX.php to interface with a Filemaker database. I can add or edit db entries with a straight list of parameters, but it fails with a dynamically generated list of parameters here with a for loop, but the behavior is the same with foreach. Any suggestions would be appreciated.

[PHP] Removing empty array values.

2003-08-18 Thread zavaboy
How do I remove empty array values? -- - Zavaboy [EMAIL PROTECTED] www.zavaboy.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Fatal error: [] operator not supported for strings

2003-08-18 Thread John W. Holmes
Daniel wrote: hi, how do i solve this error? Fatal error: [] operator not supported for strings in /var/www/html/p.../magazin/cos.php on line 13 line 13 is this line: $_SESSION["id_produs"][]=$_POST["id_produs"]; no error when i run in local host , when i upload in server (with PHP 4.2.2) only

[PHP] Fatal error: [] operator not supported for strings

2003-08-18 Thread Daniel
hi, how do i solve this error? Fatal error: [] operator not supported for strings in /var/www/html/p.../magazin/cos.php on line 13 line 13 is this line: $_SESSION["id_produs"][]=$_POST["id_produs"]; no error when i run in local host , when i upload in server (with PHP 4.2.2) only got this error

RE: [PHP] Drawing tables using PDFlib

2003-08-18 Thread Director General: NEFACOMP
__ NZEYIMANA Emery Fabrice NEFA Computing Services, Inc. P.O. Box 5078 Kigali Office Phone: +250-51 11 06 Office Fax: +250-50 15 19 Mobile: +250-08517768 Email: [EMAIL PROTECTED] http://www.nefacomp.net/

php-general Digest 18 Aug 2003 09:19:10 -0000 Issue 2243

2003-08-18 Thread php-general-digest-help
php-general Digest 18 Aug 2003 09:19:10 - Issue 2243 Topics (messages 159863 through 159900): Re: Discussion: do you consider null a value or strictly a type? 159863 by: Curt Zirzow 159867 by: Greg Beaver Re: Efficient structure 159864 by: Curt Zirzow Re: shell_exec

[PHP] Problem in sending mail

2003-08-18 Thread murugesan
Hello all, [snip] $subject="Welcome"; $from = "MIME-Version: 1.0\r\n"; $from .= "Content-type: text/html; charset=iso-8859-1\r\n"; $from .= "From: <[EMAIL PROTECTED]>\r\n"; $subject="Welcome"; mail($mailid,$subject,$message1,$from); But I am not able to send the message

RE: [PHP] problem with fsockopen ............

2003-08-18 Thread cyz
If you want to block the http headers sent back by the web server,use fopen() instead. > -Original Message- > From: fongming [mailto:[EMAIL PROTECTED] > Sent: Monday, August 18, 2003 11:29 PM > To: [EMAIL PROTECTED] > Subject: [PHP] problem with fsockopen > > > Hi,Sir: > >

[PHP] session.cookie_path problem

2003-08-18 Thread Binay Agarwal
Hi everybody I am having problem with session.cookie_path. By deafult path is "/". But what i think it should be client side path.. right?? In case client is win2k where does this cookie get saved.Any idea? Binay

[PHP] problem with fsockopen ............

2003-08-18 Thread fongming
Hi,Sir: Can I block cookies when I ftput headers ? following is my fsockopen() scripts, but it always send back "cookies". Is there any way to prevent from it ? thanks - $fp = fsockopen ("XXX.XXX.XXX.XXX", 80, $errno, $errstr, 30); if (!$