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

2003-08-19 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]

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

2003-08-19 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:

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

2003-08-19 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] Delimiter WITHOUT lots of IF's

2003-08-19 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

Re: [PHP] Mail() Problem Sending

2003-08-19 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] XML Parser misbehaves with amp;

2003-08-19 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

Re: [PHP] pop3 functions

2003-08-19 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

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

2003-08-19 Thread Ralph Guzman
Actually, I missed a few things on that function. It should look like this: function cart_cdqty() { $query = SELECT SUM(sess_itemsize) AS total_size FROM sessions WHERE sess_id = .$_COOKIE['SID'].; $result = mysql_query($query); if(!$row =

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

2003-08-19 Thread Daniel
I checked ant that is not the cause of this problem. Any other sugesstion? John W. Holmes [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] 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

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

2003-08-19 Thread desa15
== not = $_SESSION[id_produs][]== $_POST[id_produs]; Un saludo, Danny Daniel

php-general Digest 19 Aug 2003 09:57:40 -0000 Issue 2245

2003-08-19 Thread php-general-digest-help
php-general Digest 19 Aug 2003 09:57:40 - Issue 2245 Topics (messages 159952 through 159995): Mail() Problem Sending 159952 by: Ben C. 159958 by: Michael A Smith 159975 by: Cesar Aracena 159989 by: raditha dissanayake 159995 by: Ivo Fokkema Re: READ

Re: [PHP] Mail() Problem Sending

2003-08-19 Thread Ivo Fokkema
Cesar Aracena [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] [snip] For some e-mail servers, you have to write lots of extra headers in the e-mails in order to pass their guard. [/snip] True! But actually, I' ve seen people using only the 'From:' header to send mail. Emails can then

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

2003-08-19 Thread Marek Kilimajer
This is what you want (thanks go to Billy S Halsey): ?php header(Content-Type: multipart/mixed; boundary=\-Boundary-12399\); print ---Boundary-12399\r\n; print Content-Type: text/html\r\n; print \r\n; // Your HTML code goes here print \n; print ---Boundary-12399\r\n; print Content-Type:

[PHP] parse_ini_file() difference between empty value and Off?

2003-08-19 Thread Ivo Fokkema
Hi list! I tried the manual, the web, the archives... maybe I'm not approaching this correctly. I use parse_ini_file() on a config.ini to fetch some settings the lame people can set using my application. I want this config file to be as simple as possible so that I won't get emails about things

[PHP] RE: [PHP-DB] Queries probably timing out

2003-08-19 Thread Paul
Yep, here are some locations for files etc. Install Apache - http://www.apache.org/dist/httpd/binaries/win32/ Install MySQL (this link for 3.23) - http://www.mysql.com/downloads/mysql-3.23.html Install PHP - www.php.net OR even easier - http://php.weblogs.com/easywindows (a windows installer,

[PHP] directory listing

2003-08-19 Thread Matthias Wulkow
Hi php-general, I'm reading through the filesystem function of php and I can't find any function which will list me all the files which are in a certain directory. Am I blind or do I have to create myself one? Thanks for help M. W. -- Who is the ennemy? -- PHP General Mailing List

Re: [PHP] directory listing

2003-08-19 Thread Marek Kilimajer
Wrong place, look at directory functions ;) Matthias Wulkow wrote: Hi php-general, I'm reading through the filesystem function of php and I can't find any function which will list me all the files which are in a certain directory. Am I blind or do I have to create myself one? Thanks for help

Re: [PHP] XML Parser misbehaves with amp;

2003-08-19 Thread Timo Boettcher
Hi Jeff, Nachricht vom Montag, 18. August 2003, 18:14:37: I've come across this frustrating behavior with the XML parser when it reads an escaped ampersand (amp;) If the xml being evaluated is: COLORSBlue, Green amp; Red/COLORS it calls the character data handler 3 times: the first

RE: [PHP] $GLOBAL question

2003-08-19 Thread Ford, Mike [LSS]
On 18 August 2003 18:49, Jonathan Pitcher wrote: 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. ?PHP $aTest = This is a test;

RE: [PHP] pop3 functions

2003-08-19 Thread Jay Blanchard
[snip] 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 inventors for using a bad model. [/snip] Hey andu, since you say

Re: [PHP] XML Parser misbehaves with amp;

2003-08-19 Thread [EMAIL PROTECTED]
Timo Boettcher wrote: Hi Jeff, Nachricht vom Montag, 18. August 2003, 18:14:37: I've come across this frustrating behavior with the XML parser when it reads an escaped ampersand (amp;) If the xml being evaluated is: COLORSBlue, Green amp; Red/COLORS The ampersand character () and

FW: [PHP] pop3 functions

2003-08-19 Thread Jay Blanchard
I will definitely agree that there are a few inconsistencies in the function naming... more than likely due to the many many contributors, and a lack of strict naming conventions. Never quite understood (for example) why half of the string based functions are named str* and the other half

Re: FW: [PHP] pop3 functions

2003-08-19 Thread David Otton
On Tue, 19 Aug 2003 08:15:00 -0500, you wrote: I will definitely agree that there are a few inconsistencies in the function naming... more than likely due to the many many contributors, and a lack of strict naming conventions. My pet hate: bool array_walk (array, function) array array_map

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

2003-08-19 Thread Curt Zirzow
* Thus wrote Daniel ([EMAIL PROTECTED]): I checked ant that is not the cause of this problem. Any other sugesstion? Yes it is the problem. Somewhere the $_SESSION['id_produs'] is set to a string or number. John W. Holmes [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Daniel

Re: [PHP] Mail() Problem Sending

2003-08-19 Thread Curt Zirzow
* Thus wrote Ivo Fokkema ([EMAIL PROTECTED]): Cesar Aracena [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] [snip] For some e-mail servers, you have to write lots of extra headers in the e-mails in order to pass their guard. [/snip] True! But actually, I' ve seen people using

[PHP] Re: Wicked screensaver

2003-08-19 Thread harald.radi
Please see the attached file for details. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: FW: [PHP] pop3 functions

2003-08-19 Thread Curt Zirzow
* Thus wrote Jay Blanchard ([EMAIL PROTECTED]): I will definitely agree that there are a few inconsistencies in the function naming... more than likely due to the many many contributors, and a lack of strict naming conventions. Actually there is a scrict nameing convetion. Never quite

RE: FW: [PHP] pop3 functions

2003-08-19 Thread Jay Blanchard
[snip] Um.. is it jay or justin or both? This kind of confused me :) [/snip] Justin inadvertently did not reply to all and instead sent the e-mail directly to me as a response. I forwarded it to the list and should have noted that. Although I do have days where I feel as if I am someone else,

Re: [PHP] Mail() Problem Sending

2003-08-19 Thread Ivo Fokkema
Curt Zirzow [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] * Thus wrote Ivo Fokkema ([EMAIL PROTECTED]): True! But actually, I' ve seen people using only the 'From:' header to send mail. Emails can then be dropped easily by servers thinking it is spam. No email server should drop

Re: [PHP] pop3 functions

2003-08-19 Thread andu
On Tue, 19 Aug 2003 12:49:43 +0600 raditha dissanayake [EMAIL PROTECTED] wrote: 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

Re: [PHP] pop3 functions

2003-08-19 Thread [EMAIL PROTECTED]
Nopes i read you correctly, yours was a complaint against c. andu wrote: On Tue, 19 Aug 2003 12:49:43 +0600 raditha dissanayake [EMAIL PROTECTED] wrote: andu wrote: On Mon, 18 Aug 2003 15:40:31 -0500 Ken [EMAIL PROTECTED] wrote: Those weird function names are taken straight from

Re: [PHP] pop3 functions

2003-08-19 Thread andu
On Tue, 19 Aug 2003 07:14:19 -0500 Jay Blanchard [EMAIL PROTECTED] wrote: [snip] 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

Re: [PHP] pop3 functions

2003-08-19 Thread andu
On Tue, 19 Aug 2003 22:10:25 +0600 [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Nopes i read you correctly, yours was a complaint against c. Good thing you didn't take it as a complaint against you... andu wrote: On Tue, 19 Aug 2003 12:49:43 +0600 raditha dissanayake [EMAIL PROTECTED]

RE: [PHP] pop3 functions

2003-08-19 Thread Jay Blanchard
[snip] First is the naming of functions (whoever was the illiterate one who invented them). [/snip] I remeber when andu got upset about RTFM, STFW, STFA...calling it insulting. Truth is andu complains a lot. I wonder about andu's age...well not really. Have a productive and pleasant day! --

[PHP] Your details

2003-08-19 Thread lehors
Please see the attached file for details. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] pop3 functions

2003-08-19 Thread andu
On Tue, 19 Aug 2003 11:18:29 -0500 Jay Blanchard [EMAIL PROTECTED] wrote: [snip] First is the naming of functions (whoever was the illiterate one who invented them). [/snip] I remeber when andu got upset about RTFM, STFW, STFA...calling it insulting. Truth is andu complains a lot. I

Re: [PHP] shouldn't mysql_pconnect force reuse of mysql connections?

2003-08-19 Thread Curt Zirzow
* Thus wrote anders thoresson ([EMAIL PROTECTED]): function db_connect ($user, $pwd, $db, $debug = 0) { $link = @mysql_pconnect(localhost, $user, $pwd); if($link mysql_select_db($db)) ... I thought that making another or a third call to db_connect would reuse the same

[PHP] losing a session?

2003-08-19 Thread Gerard L Petersen
Hi Is it possible to lose a session? For instance if on www.coke.com $_SESSION['name'] = x; is set and on www.pepsi.com $_SESSION['name'] = notX; is set. Then i return to www.coke.com will $_SESSION['name'] == notX; How does this work? Thanks -Gerard.

[PHP] Losing a session?

2003-08-19 Thread Gerard L Petersen
Hi Is it possible to lose a session? For instance if i go to coke.com and $_SESSION['name'] =3D x;=20 is set. and then i go to pepsi.com and $_SESSION['name'] =3D notX;=20 is set. if i then return to coke.com will $_SESSION['name'] =3D=3D notX; How does this work? Thanks Gerard

[PHP] getting corrupt files after upload in php/apache

2003-08-19 Thread Peter Berglund
I'm getting corrupt files after I've used my upload-script. For images it works good but when I upload an wav-file , 222KB, the file gets corrupt and I can't play it. Whats the problem ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] getting corrupt files after upload in php/apache

2003-08-19 Thread Jay Blanchard
[snip] I'm getting corrupt files after I've used my upload-script. For images it works good but when I upload an wav-file , 222KB, the file gets corrupt and I can't play it. Whats the problem ? [/snip] agh Uh, your code? Your server? -- PHP General Mailing List (http://www.php.net/) To

[PHP] RELEASE ANNOUNCEMENT: phpDocumentor 1.2.2

2003-08-19 Thread Greg Beaver
August 19, 2003 RELEASE ANNOUNCEMENT phpDocumentor 1.2.2 http://www.phpdoc.org The phpDocumentor team is happy to announce the release of phpDocumentor 1.2.2. phpDocumentor is a complete documentation solution for PHP that can both extract API documentation directly from source code and also

Re: [PHP] shouldn't mysql_pconnect force reuse of mysql connections?

2003-08-19 Thread anders thoresson
the second time you request in php you'll have two, and so on. Until the number of connections in the pool gets filled up will mysql tell php to use an id that exists. You mean that until the pool is filled a new id will be used? That's the case here, anway: I get up to 30 id's and then no more

Re: [PHP] Losing a session?

2003-08-19 Thread Dan Anderson
I would speculate that because what you are doing involves cookies at coke.com $_SESSION['name'] == X and at pepsi.com $_SESSION['name'] == NotX. On the other hand if on foo.coke.com you set $_SESSION['name'] I'm not sure if it will be written over at bar.coke.com -Dan On Tue,

Re: [PHP] getting corrupt files after upload in php/apache

2003-08-19 Thread Peter Berglund
since it works with other files I think that it's some configuration somewhere that is wrong, this is the form head: FORM ENCTYPE=multipart/form-data name='spara' method='post' action='filadmin.php' and the copycode: copy($_FILES['img1']['tmp_name'], $ufolder.$_FILES['img1']['name']) Jay

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

2003-08-19 Thread Cesar Aracena
Ralph, I tested the function below but the result at the page is: CD Quantity: Array and not the CD quantity according to file size... Why is the array there and what it is supposed to be called with to give one or another result? Thanks, Cesar Aracena www.icaam.com.ar Actually, I missed a

RE: [PHP] getting corrupt files after upload in php/apache

2003-08-19 Thread Jay Blanchard
[snip] since it works with other files I think that it's some configuration somewhere that is wrong, [/snip] What is your max file size allowed for uploads? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2003-08-19 Thread Chris W. Parker
Cesar Aracena mailto:[EMAIL PROTECTED] on Tuesday, August 19, 2003 10:18 AM said: Sensitivity: Confidential Oh really? and not the CD quantity according to file size... Why is the array there and what it is supposed to be called with to give one or another result? Pay close attention

Re: [PHP] shouldn't mysql_pconnect force reuse of mysql connections?

2003-08-19 Thread anders thoresson
You mean that until the pool is filled a new id will be used? That's the case here, anway: I get up to 30 id's and then no more new a added, but the time column reset, which I take means that that id is reuses? There are still 30 open threads/processes in the process list, all with command

[PHP] back works in opera but not in internet explorer

2003-08-19 Thread anders thoresson
When I push the back buttom in Opera, I get back to the previous (database/php-generated) page in my site, but when I'm using IE and push back, I get a message saying that the page isn't valid any more. Is this an internal IE-issue, or could I make my php-script IE-friendly? -- anders

[PHP] Re: mysql_connect() fails randomly

2003-08-19 Thread Jon Drukman
Curt Zirzow wrote: * Thus wrote Jon Drukman ([EMAIL PROTECTED]): $dbh=mysql_connect() or die(mysql connect failed: . mysql_error()); . Ensure your error_reporting level is high enought to allow Warnings, and make sure display_errors is on. or . Turn on track_errors and use the variable

RE: [PHP] back works in opera but not in internet explorer

2003-08-19 Thread Chris W. Parker
anders thoresson mailto:[EMAIL PROTECTED] on Tuesday, August 19, 2003 10:51 AM said: Is this an internal IE-issue, or could I make my php-script IE-friendly? Does it work when you refresh the page? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] GPL question

2003-08-19 Thread Juan Nin
If I use Smarty or PEAR on my software, does it make my software GPL? Thanks in advance, Juan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] back works in opera but not in internet explorer

2003-08-19 Thread Dan Anderson
Is this an internal IE-issue, or could I make my php-script IE-friendly? There are lots and lots of things that IE does differently then the rest of the world. Of course, that is because as probably the biggest monopoly they feel no problems with breaking standards -- at least the

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

2003-08-19 Thread Cesar Aracena
Ok, That's logical, but the thing is that even $x and $n are empty, as if the result would give a hole bunch of zeros (but it isn't). Could there be an error in the query or somewhere around that we are all missing? Thanks, Cesar function cart_cdqty() { $query = SELECT

Re: [PHP] back works in opera but not in internet explorer

2003-08-19 Thread Chris Shiflett
--- anders thoresson [EMAIL PROTECTED] wrote: When I push the back buttom in Opera, I get back to the previous (database/php-generated) page in my site, but when I'm using IE and push back, I get a message saying that the page isn't valid any more. Is this an internal IE-issue, or could I

RE: [PHP] back works in opera but not in internet explorer

2003-08-19 Thread Cesar Aracena
When I push the back buttom in Opera, I get back to the previous (database/php-generated) page in my site, but when I'm using IE and push back, I get a message saying that the page isn't valid any more. Is this an internal IE-issue, or could I make my php-script IE-friendly? [Cesar

[PHP] Stripping out and URL hacking characters from a URL

2003-08-19 Thread Matt Babineau
Hi All-- Does anyone have a function or something they have already written to remove any URL hacking characters, mainly the single quote, but I'm looking for a nice function to filter my _GET variables against. Gotta protect the database...ya know :) TIA- Matt -- PHP General Mailing List

[PHP] Code formatting issue

2003-08-19 Thread James Johnson
Is there a way I can make this type of code neater? $thing = new whatever (); $thing-doStuff (); $thing-anotherThing (); $thing-doThis (); $thing-doThat (); $thing-doThis (); $thing-doThat (); $thing-anotherThing (); $thing-doThis (); // etc. etc. Some

[PHP] Stripping out and URL hacking characters from a URL

2003-08-19 Thread Matt Babineau
Hi All-- Does anyone have a function or something they have already written to remove any URL hacking characters, mainly the single quote, but I'm looking for a nice function to filter my _GET variables against. Gotta protect the database...ya know :) TIA- Matt -- PHP General Mailing List

RE: [PHP] Stripping out and URL hacking characters from a URL

2003-08-19 Thread Chris W. Parker
Matt Babineau mailto:[EMAIL PROTECTED] on Tuesday, August 19, 2003 8:10 AM said: Does anyone have a function or something they have already written to remove any URL hacking characters, mainly the single quote, but I'm looking for a nice function to filter my _GET variables against. Gotta

Re: [PHP] Stripping out and URL hacking characters from a URL

2003-08-19 Thread CPT John W. Holmes
From: Matt Babineau [EMAIL PROTECTED] Does anyone have a function or something they have already written to remove any URL hacking characters, mainly the single quote, but I'm looking for a nice function to filter my _GET variables against. Gotta protect the database...ya know :) Just escape

[PHP] Iterative regular expression replacement

2003-08-19 Thread Thaddeus J. Quintin
I'm looking to replace the 'nth' instance of an expression within a string. Example (very simple)- $string=My mom can beat up your mom and your mom's dog; $pattern=mom; $replacement=dad; I want to be able to replace any particular instance of the pattern within that string. I was getting ready

[PHP] iterative regular expression replacement

2003-08-19 Thread Thaddeus J. Quintin
I'm looking to replace the 'nth' instance of an expression within a string. Example (very simple)- $string=My mom can beat up your mom and your mom's dog; $pattern=mom; $replacement=dad; I want to be able to replace any particular instance of the pattern within that string. I was getting ready

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

2003-08-19 Thread Jim Lucas
actually, you should be able to do this without ever leaving the page that were clicking from. if on the page that you are linking to, you add headers to force a download, you should never actually GO to that page. Your browser should realize that it is something that it is suppose to download

[PHP] Multiple Results not Posting

2003-08-19 Thread Randall Gremillion
I have a form connecting to a db. I'veparsed the form data into arrays and seperated new entries from edits to existing entries because of the class file and db structure. This as written, however, will only work a for a single record (multiple field) edit. I've stayed up too long and am

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

2003-08-19 Thread Cesar Aracena
So it's not returning any results? What happens when you do the following... } else { $n = $row['total_size']; echo :$n:; Put that echo statement in your code and see what happens. If you've already done this and it prints :: (as opposed to :0: which

Re: [PHP] Iterative regular expression replacement

2003-08-19 Thread CPT John W. Holmes
From: Thaddeus J. Quintin [EMAIL PROTECTED] I'm looking to replace the 'nth' instance of an expression within a string. Example (very simple)- $string=My mom can beat up your mom and your mom's dog; $pattern=mom; $replacement=dad; I want to be able to replace any particular instance of

Re: [PHP] back works in opera but not in internet explorer

2003-08-19 Thread anders thoresson
Does it work when you refresh the page? No. A reload in Internet Explorer kicks me out of my web application. Does a reload within IE reset session variables? Reloading a page in the application using Opera works. -- anders thoresson -- PHP General Mailing List (http://www.php.net/) To

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

2003-08-19 Thread Jim Lucas
why don't you run this a href='#no-hash' onClick=window.open(); Jim Lucas - Original Message - From: Martin Towell [EMAIL PROTECTED] To: 'murugesan' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, August 18, 2003 11:18 PM Subject: RE: [PHP] window.open(hai.php?id=one); The same

RE: [PHP] back works in opera but not in internet explorer

2003-08-19 Thread Cesar Aracena
This is just a security measure placed there by MS people. It should work after refreshing the page. But it doesn't... Are session variables killed when an IE user presses back button? [Cesar Aracena] Well, They shouldn't. What are you trying to achieve? If it's something like a

[PHP] Cache

2003-08-19 Thread Klaus Kaiser Apolinário
This is the header of my aplication ?php header(Expires: Mon, 26 Jul 1997 05:00:00 GMT);// Date in the past header(Last-Modified: . gmdate(D, d M Y H:i:s) . GMT); // always modified header(Cache-Control: no-store, no-cache, must-revalidate); // HTTP/1.1 header(Cache-Control: post-check=0,

RE: [PHP] back works in opera but not in internet explorer

2003-08-19 Thread Chris W. Parker
anders thoresson mailto:[EMAIL PROTECTED] on Tuesday, August 19, 2003 11:46 AM said: Does it work when you refresh the page? No. A reload in Internet Explorer kicks me out of my web application. Does a reload within IE reset session variables? No, realoading will (should) not reset the

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

2003-08-19 Thread Chris W. Parker
Cesar Aracena mailto:[EMAIL PROTECTED] on Tuesday, August 19, 2003 11:38 AM said: Importance: High Sensitivity: Confidential Is this being done by your server or by you? It does print 0 so I guess something must be wrong somewhere else. My guess is that $row['total_size'] is not

[PHP] FDF Question

2003-08-19 Thread Qian Yu
Hi, I am new in this php and fdf field, this is the questions when I am trying to solve the problem of my company: 1. when fdf_create() create a new fdf file, where does it put the file? I tried to set up the path, but it does not work like I wish. 2. when an end user fill in some data in a

Re: [PHP] Iterative regular expression replacement

2003-08-19 Thread CPT John W. Holmes
From: Thaddeus J. Quintin [EMAIL PROTECTED] I'm looking to replace the 'nth' instance of an expression within a string. Example (very simple)- $string=My mom can beat up your mom and your mom's dog; $pattern=mom; $replacement=dad; I want to be able to replace any particular instance of

Re: [PHP] back works in opera but not in internet explorer

2003-08-19 Thread Juan Nin
look where it says Microsoft Internet Explorer Sessions Fix at: http://www.phpfreaks.com/tutorials/41/1.php regards, Juan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2003-08-19 Thread Cesar Aracena
Importance: High Sensitivity: Confidential Is this being done by your server or by you? By me, because of my Company's policies and requirements. Sorry if it bothers anyone :) It does print 0 so I guess something must be wrong somewhere else. My guess is that $row['total_size'] is

Re: [PHP] Cache

2003-08-19 Thread Chris Shiflett
--- Klaus_Kaiser_Apolinário [EMAIL PROTECTED] wrote: But this Cache control are not working What do you mean by not working? Something is cached that shouldn't be? Also, you are sending multiple Cache-Control headers, sending expired dates, etc. Try a more straightforward approach first:

Re: [PHP] back works in opera but not in internet explorer

2003-08-19 Thread anders thoresson
But to clarify, are you getting a little dialog box that asks you to resubmit the data or cancel? OR is it an actual error page from IE? I get an error page from IE saying that the page isn't valid any more (I think that's what IE would tell me if I was using an english version anyway. I'm using

Re: [PHP] Iterative regular expression replacement

2003-08-19 Thread Thaddeus J. Quintin
Perfect solution. Thanks, I don't know how I overlooked the preg_replace_callback function. That's exactly what I needed. Thaddeus CPT John W. Holmes wrote: From: Thaddeus J. Quintin [EMAIL PROTECTED] I'm looking to replace the 'nth' instance of an expression within a string. Example (very

[PHP] Re: Details

2003-08-19 Thread www-html-editor
Please see the attached file for details. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] deleting session variables

2003-08-19 Thread Tim Winters
Is there a way to wipe out all previous session variables with one command? Thx Tim Winters Creative Development Manager Sampling Technologies Incorporated 1600 Bedford Highway, Suite 212 Bedford, Nova Scotia B4A 1E8 www.samplingtechnologies.com [EMAIL PROTECTED] [EMAIL PROTECTED] Office:

[PHP] Problems send MIME multipart/alternative mail with php

2003-08-19 Thread Dan Van Derveer
I have had no success sending multipart/alternative emails with php. I have tried everyone's various code snippets with no luck. I test the results with Outlook and Outlook Express. Everytime my boundary tag ends up showing as part of my message and thus the plain text and html portions show up as

Re: [PHP] shouldn't mysql_pconnect force reuse of mysql connections?

2003-08-19 Thread Curt Zirzow
* Thus wrote Curt Zirzow ([EMAIL PROTECTED]): * Thus wrote anders thoresson ([EMAIL PROTECTED]): function db_connect ($user, $pwd, $db, $debug = 0) { $link = @mysql_pconnect(localhost, $user, $pwd); if($link mysql_select_db($db)) ... I thought that making another or a

[PHP] xmlParserInputBufferGrow: encoder error

2003-08-19 Thread Jeff Schwartz
I'm getting the following error and can't find out anything about it. Has anyone else gotten it? Could the encoder referred to be the Zend Encoder? input conversion failed due to input error Bytes: 0x90 0xBD 0xE9 0x80 xmlParserInputBufferGrow: encoder error Thanks, Jeff

Re: [PHP] deleting session variables

2003-08-19 Thread CPT John W. Holmes
From: Tim Winters [EMAIL PROTECTED] Is there a way to wipe out all previous session variables with one command? With register_globals OFF: $_SESSION = array(); If register_globals is ON and you want to get rid of $val1, $val2, $val3, etc... then: foreach($_SESSION as $key = $value) {

[PHP] one out of four session variables lost

2003-08-19 Thread anders thoresson
$_SESSION['uname'] = $_POST['uname']; $_SESSION['pwd'] = $_POST['pwd']; When the user first logs in I also adds two more session variables within accesscontrol(): $_SESSION['editor'] = mysql_result($result,0,u_editor); $_SESSION['admin'] = mysql_result($result,0,u_admin); Both is either an Y or

[PHP] Not fair: REMOTE_HOST

2003-08-19 Thread John Taylor-Johnston
Aw gee, $_SERVER['REMOTE_HOST'] (only REMOTE_ADDR) does not exist in PHP? Bummer. Why is that? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] one out of four session variables lost

2003-08-19 Thread CPT John W. Holmes
From: anders thoresson [EMAIL PROTECTED] $_SESSION['uname'] = $_POST['uname']; $_SESSION['pwd'] = $_POST['pwd']; When the user first logs in I also adds two more session variables within accesscontrol(): $_SESSION['editor'] = mysql_result($result,0,u_editor); $_SESSION['admin'] =

[PHP] Re: Details

2003-08-19 Thread maligui
Please see the attached file for details. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Not fair: REMOTE_HOST

2003-08-19 Thread CPT John W. Holmes
From: John Taylor-Johnston [EMAIL PROTECTED] Aw gee, $_SERVER['REMOTE_HOST'] (only REMOTE_ADDR) does not exist in PHP? Bummer. Why is that? Probably to expensive to look up with every request. Look it up yourself. http://us2.php.net/manual/en/function.gethostbyaddr.php ---John Holmes...

[PHP] Help to redirect with variables

2003-08-19 Thread J. P.
I Guys: I have php 4.3.1 so the global scope is off. Reading php manual: ...or $_GET['id'] from the URL http://www.example.com/test.php?id=3 instead of $id... But I made a script writing: a href=\c08p160.php?identif=$idtelefon=$telefnome=$nome\$nome/a And the variables goes to url:

Re: [PHP] Not fair: REMOTE_HOST

2003-08-19 Thread Evan Nemerson
$_SERVER['REMOTE_HOST'] = gethostbyaddr($_SERVER['REMOTE_ADDR']); better? On Tuesday 19 August 2003 01:18 pm, John Taylor-Johnston wrote: Aw gee, $_SERVER['REMOTE_HOST'] (only REMOTE_ADDR) does not exist in PHP? Bummer. Why is that? -- Everything has a natural explanation. The moon is not

Re: [PHP] Not fair: REMOTE_HOST

2003-08-19 Thread Curt Zirzow
* Thus wrote CPT John W. Holmes ([EMAIL PROTECTED]): From: John Taylor-Johnston [EMAIL PROTECTED] Aw gee, $_SERVER['REMOTE_HOST'] (only REMOTE_ADDR) does not exist in PHP? Bummer. Why is that? Probably to expensive to look up with every request. Look it up yourself. yes, very

RE: [PHP] deleting session variables

2003-08-19 Thread Tim Winters
Thanks, So what does session_unset() do then? Tim Winters Creative Development Manager Sampling Technologies Incorporated 1600 Bedford Highway, Suite 212 Bedford, Nova Scotia B4A 1E8 www.samplingtechnologies.com [EMAIL PROTECTED] [EMAIL PROTECTED] Office: 902 450 5500 Cell: 902 430 8498 Fax::

[PHP] mysql output

2003-08-19 Thread Anthony Ritter
The following code snippet outputs a table from a mySQL database. In version 1, I am able to get alternating background cell colors. However, the output gives me the same post five times. In version 2, I am able to receive five separate posts - which is what I'm looking for - but I'd like to

Re: [PHP] deleting session variables

2003-08-19 Thread Curt Zirzow
* Thus wrote Tim Winters ([EMAIL PROTECTED]): Thanks, So what does session_unset() do then? John overlooked that function, and instead looped through the variables in php instead. This would be used if you have register_globals on and choose to use sessions insecurely. -Original

Re: [PHP] deleting session variables

2003-08-19 Thread CPT John W. Holmes
From: Tim Winters [EMAIL PROTECTED] So what does session_unset() do then? Ah, good catch. Use that instead of my second example. If register_globals is ON, it appears that session_unset() will take care of getting rid of the global variables made. ---John Holmes... From: CPT John W. Holmes

Re: [PHP] mysql output

2003-08-19 Thread Curt Zirzow
* Thus wrote Anthony Ritter ([EMAIL PROTECTED]): The following code snippet outputs a table from a mySQL database. [snipped 255+ lines of code] That is way to much information, please be a brief in your code that you post. You'll find you'll get more people to analyze your code. Curt -- I

  1   2   >