[PHP] calling a user defined java class method .....

2003-08-19 Thread toby z
hay guyz i am trying to call, in php , a java class method which happens to be my own as well user defined that is how do i go about this and that also if its possible at all . thanx a million toby Want to

[PHP] Apache starting error

2003-08-19 Thread Rikunj
Hello all, I am new to this group please do not ignore.. I am running redhat 7.1 Linux Apache/1.3.27 (Unix). The server got restarted due to power malfunction. After it restarted again it is unable to start httpd service display below error. [warn] Loaded DSO libexec/libphp4.so uses plain Apach

Re: [PHP] Problem with mktime, need to add 30 days to current date

2003-08-19 Thread Sn!per
print date('Y-m-d',mktime(0,0,0,date('m'),date('d')+30,date('Y'))); Quoting James Johnson <[EMAIL PROTECTED]>: > Sorry about the previous post. > > Hi, > > I need to make a date that is 30 days from the current date, and, am > having problems with mktime > > Here's what I've tried: > > $endD

[PHP] Problem with mktime, need to add 30 days to current date

2003-08-19 Thread James Johnson
Sorry about the previous post. Hi, I need to make a date that is 30 days from the current date, and, am having problems with mktime Here's what I've tried: $endDate=date('Y-m-d',mktime(0,0,0,date('m',time()),30,date('y',time())) ); Return this: 2003-08-30 Is there an easy way to do this? Th

[PHP] Problem with mktime, need to add 30 days to current date

2003-08-19 Thread James Johnson
Hi, I need to make a date that is 30 days from the current date, and, am having problems with mktime Here's what I've tried: -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] HELP! I'm Desperate...

2003-08-19 Thread Curt Zirzow
* Thus wrote Jason Sheets ([EMAIL PROTECTED]): > Why not go to a cybercafe every few days or once a week and check on the > project? You can also go to Kinkos or your local library, most of them > have internet enabled pcs. The library is good, plenty of reading material while waiting for a co

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

2003-08-19 Thread Jean-Christian IMbeault
Jason Sheets wrote: > Use PHP's file functions to read the file and output it to the browser, > sending the attachment header so it opens the save as dialog. After you > finish outputing the file unlink() the file. You didn't quite catch what I wanted to do. No file exists on my server. I just

Re: [PHP] Your details

2003-08-19 Thread daniel
i got it 10 times today > [EMAIL PROTECTED] wrote: > >> Please see the attached file for details. >> > > Did anyone's AV pick up a virus in this email? It went right through > mine but obviously doesn't belong on this list. I just got the latest > definitions from Norton, too... > > -- > ---John H

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

2003-08-19 Thread Manuel Lemos
Hello, On 08/19/2003 04:56 PM, Dan Van Derveer wrote: 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 messag

Re: [PHP] HELP! I'm Desperate...

2003-08-19 Thread Jason Sheets
Why not go to a cybercafe every few days or once a week and check on the project? You can also go to Kinkos or your local library, most of them have internet enabled pcs. Jason Michael A Smith wrote: Hi, I'm going off to school and won't have computer access for like 9 months... :-\ .. and

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

2003-08-19 Thread Jason Sheets
Use PHP's file functions to read the file and output it to the browser, sending the attachment header so it opens the save as dialog. After you finish outputing the file unlink() the file. Another way to do this is to store the files outside your www root, then authorize the user to access the

Re: [PHP] Your details

2003-08-19 Thread Ashley M. Kirchner
John W. Holmes wrote: Did anyone's AV pick up a virus in this email? It went right through mine but obviously doesn't belong on this list. I just got the latest definitions from Norton, too... Mine did. MIMEDefang with SpamAssassin on the mail spool. -- H| I haven't lost my mind; it's backe

Re: [PHP] Your details

2003-08-19 Thread John W. Holmes
[EMAIL PROTECTED] wrote: Please see the attached file for details. Did anyone's AV pick up a virus in this email? It went right through mine but obviously doesn't belong on this list. I just got the latest definitions from Norton, too... -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/r

[PHP] Your details

2003-08-19 Thread listserv
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] is the list getting virus spammed?

2003-08-19 Thread daniel
how are they ever getting through ? the funniest of all is the windows update spam virus shit, obviously targetting the ladite and the weak. > Steelhead wrote: > >> yup, I got 5 instances. I am being slammed by viral messages today, 7 >> from another client. > > >27 so far have been quarantin

Re: [PHP] is the list getting virus spammed?

2003-08-19 Thread Richard Baskett
I think you guys are bragging :) I have had over 100 easily.. about 3 or 4 every 5 minutes.. it's pretty bad. I work with a bunch of colleges and I think they are the ones getting hit the worse :( Rick I look forward to the invention of faster-than-light travel. What I'm not looking forward to

Re: [PHP] is the list getting virus spammed?

2003-08-19 Thread Ashley M. Kirchner
Steelhead wrote: yup, I got 5 instances. I am being slammed by viral messages today, 7 from another client. 27 so far have been quarantined on my end (not all originating from this list.) -- H| I haven't lost my mind; it's backed up on tape somewhere. +-

Re: [PHP] Sessions in frames

2003-08-19 Thread Justin French
It's the same as any other web page. When you define a frameset, you do so with URLs, so the session value can be passed to each window of the frameset via the URL. Obviously cookies or PHP enabled with enable-trans-sid will make this job easy/transparent. The real issue you have is that a fr

Re: [PHP] mysql output

2003-08-19 Thread John W. Holmes
Anthony Ritter wrote: I found the following and inserted it into my snippet for alternating backgoriund colors. However, I'm not sure I understand the logic. [snip] if ($alternate == "1") { $color = "#eaf3da"; $alternate = "2"; } else { $color = "#d5eae9"; $alternate = "1"; } It's just a long way

Re: [PHP] mysql output

2003-08-19 Thread Anthony Ritter
Thanks very much John. I found the following and inserted it into my snippet for alternating backgoriund colors. However, I'm not sure I understand the logic. This part: ... $alternate = "2"; while ($posts_info = mysql_fetch_array($get_posts_res)) { $post_i

[PHP] Your details

2003-08-19 Thread lserv
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] mysql output

2003-08-19 Thread John W. Holmes
Anthony Ritter wrote: You also asked a very, very common question, i.e. how to alternate colors in table rows... there are a ton of websites/tutorials out there that explain ways to do this. ---John Holmes... Apologies for the lengthy code. I've tried us

[PHP] Re: in the middle of shift and pop

2003-08-19 Thread Jon Drukman
Decapode Azur wrote: is it possible to remove an element of an indexed array such as this exemple $A = array('a', 'b', 'c', 'd', 'e', 'f'); in a way that we can optain this result : $A = array('a', 'b', 'd', 'e', 'f'); something like that perhaps ? array_remove($A, 2); If such a fu

Re: [PHP] (^&*$*(^&*$% ensim web appliance

2003-08-19 Thread Michael A Smith
Do you have AllowOverride All in your httpd.conf file for that dir? -Michael Dennis Gearon wrote: please cc me Anyone on a shared, name-based IP, ensim web appliance hosted website? Can you tell me how to set the freekin': php_value auto_prepend_file "/some_freekin_unknown_real_director

Re: [PHP] (^&*$*(^&*$% ensim web appliance

2003-08-19 Thread John W. Holmes
Dennis Gearon wrote: please cc me Anyone on a shared, name-based IP, ensim web appliance hosted website? Can you tell me how to set the freekin': php_value auto_prepend_file "/some_freekin_unknown_real_directory_path_to_HOME/my_paths/prepend.php" value in my .htaccess file? Heh... I went

[PHP] HELP! I'm Desperate...

2003-08-19 Thread Michael A Smith
Hi, I'm going off to school and won't have computer access for like 9 months... :-\ .. and I need someone with a couple of hours every week to monitor my CMS for bug reports, and to fix bugs (if they want). I would appreciate it so much. The project resides at: http://sourceforgen.net/projects

Re: [PHP] in the middle of shift and pop

2003-08-19 Thread Dan Anderson
If you unset an array that isn't associative, will that mean there will be a gap in the numbers? Or will PHP realize "OK I need to change the numbers indexing the other elements"? -Dan On Tue, 2003-08-19 at 22:27, andu wrote: > On Wed, 20 Aug 2003 00:25:32 +0200 > Decapode Azur <[EMAIL PROTECTED

Re: [PHP] is the list getting virus spammed?

2003-08-19 Thread Ryan A
Yep me, was wondering why am i getting so many virus attachments from the list...but figured that a lot of the list subscribers are probably infected...was looking out for my name in the from: field :-D I wonder which virus/worm it is thougham too lazy to check right now. Cheers, -Ryan We w

[PHP] Sessions in frames

2003-08-19 Thread Aris Santillan
hi how can i use session variables in a page with multiple framesets? where in all frame will get the session variables being passed thanks

Re: [PHP] mysql output

2003-08-19 Thread Anthony Ritter
> You also asked a very, very common question, i.e. how to alternate colors in > table rows... there are a ton of websites/tutorials out there that explain > ways to do this. > > ---John Holmes... Apologies for the lengthy code. I've tried using a few tuto

Re: [PHP] in the middle of shift and pop

2003-08-19 Thread Dan Anderson
Well, if you knew (for instance) that $A[2] should be removed then you could do something like: $value) { if ($key < 2) { $B[$key] = $value; } elseif ($key > 2) { $B[($key - 1)] = $value; } } ?> Modify the above code as needed... -Dan On Tue, 2003-08-19 at 22:25, Decapode Azur wrote:

Re: [PHP] in the middle of shift and pop

2003-08-19 Thread David Otton
On Wed, 20 Aug 2003 00:25:32 +0200, you wrote: >is it possible to remove an element of an indexed array such as this exemple > $A = array('a', 'b', 'c', 'd', 'e', 'f'); >in a way that we can optain this result : > $A = array('a', 'b', 'd', 'e', 'f'); > >something like that perhaps ? >a

Re: [PHP] in the middle of shift and pop

2003-08-19 Thread Decapode Azur
> unset($A[2]); No this function does not exactly what I want. unset() makes empty hole with $A[2] = Null I would like to have this result : Array ( [0] => a [1] => b [2] => d [3] => e [4] => f ) and not this one : Array ( [0] => a [1] => b [3] => d [4] => e

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

2003-08-19 Thread Jean-Christian IMbeault
Jim Lucas wrote: > actually, you should be able to do this without ever leaving the page that > were clicking from. I wasn't clear enough in my original post. You are right that the user never leaves the page he is on. That's ok. But what I would like to do is have the page reload itself so that

RE: [PHP] is the list getting virus spammed?

2003-08-19 Thread Jeff Pearson
Yes. A virus is trying to spread through the list. I just read details about it on zdnet's site. Jeff Pearson -Original Message- From: Matt Babineau [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 19, 2003 12:21 PM To: [EMAIL PROTECTED] Subject: [PHP] is the list getting virus spammed?

[PHP] (^&*$*(^&*$% ensim web appliance

2003-08-19 Thread Dennis Gearon
please cc me Anyone on a shared, name-based IP, ensim web appliance hosted website? Can you tell me how to set the freekin': php_value auto_prepend_file "/some_freekin_unknown_real_directory_path_to_HOME/my_paths/prepend.php" value in my .htaccess file? -- PHP General Mailing List (http:/

RE: [PHP] is the list getting virus spammed?

2003-08-19 Thread Mike Brum
Yes, it's Sobig-F: http://www.sophos.com/virusinfo/analyses/w32sobigf.html Just don't run the attachment and everyone will be fine. It's just one of those viruses that spoofs the from address from somebody that it finds in the infected user's address book or their out/inbox. Hopefully the site

Re: [PHP] is the list getting virus spammed?

2003-08-19 Thread Nelson Rodríguez-Peña Alarcón
Hi, Matt Babineau wrote: Hmmwondering why I keep receiving email sent to the list, that has this stupid attachment...anyone else getting these? Yes, I also got those mails. It's Sobig-F. -- regards, Nelson Rodríguez-Peña A. Diseño

Re: [PHP] is the list getting virus spammed?

2003-08-19 Thread Steelhead
yup, I got 5 instances. I am being slammed by viral messages today, 7 from another client. Bill - Original Message - From: "Matt Babineau" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, August 19, 2003 12:20 PM Subject: [PHP] is the list getting virus spammed? > Hmmwond

RE: [PHP] is the list getting virus spammed?

2003-08-19 Thread Chris W. Parker
Matt Babineau on Tuesday, August 19, 2003 12:21 PM said: > Hmmwondering why I keep receiving email sent to the list, that has > this stupid attachment...anyone else getting these? It's the Sobig.F worm. My server has already refused 20 today as well as my users

Re: [PHP] in the middle of shift and pop

2003-08-19 Thread Decapode Azur
> is it possible to remove an element of an indexed array such as this > exemple $A = array('a', 'b', 'c', 'd', 'e', 'f'); > in a way that we can optain this result : > $A = array('a', 'b', 'd', 'e', 'f'); > > something like that perhaps ? > array_remove($A, 2); > > If such a function does no

RE: [PHP] in the middle of shift and pop

2003-08-19 Thread Ralph Guzman
unset($A[2]); -Original Message- From: Decapode Azur [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 19, 2003 3:26 PM To: [EMAIL PROTECTED] Subject: [PHP] in the middle of shift and pop is it possible to remove an element of an indexed array such as this exemple $A = array('a', '

Re: [PHP] in the middle of shift and pop

2003-08-19 Thread andu
On Wed, 20 Aug 2003 00:25:32 +0200 Decapode Azur <[EMAIL PROTECTED]> wrote: > is it possible to remove an element of an indexed array such as this > exemple > $A = array('a', 'b', 'c', 'd', 'e', 'f'); > in a way that we can optain this result : > $A = array('a', 'b', 'd', 'e', 'f'); >

[PHP] is the list getting virus spammed?

2003-08-19 Thread Matt Babineau
Hmmwondering why I keep receiving email sent to the list, that has this stupid attachment...anyone else getting these? Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] in the middle of shift and pop

2003-08-19 Thread Decapode Azur
is it possible to remove an element of an indexed array such as this exemple $A = array('a', 'b', 'c', 'd', 'e', 'f'); in a way that we can optain this result : $A = array('a', 'b', 'd', 'e', 'f'); something like that perhaps ? array_remove($A, 2); If such a function does not exis

[PHP] Re: That movie

2003-08-19 Thread mv
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] Code formatting issue

2003-08-19 Thread Decapode Azur
this way may be what you'd like : $thing = new whatever (); $with = array (doStuff', anotherThing', doThis', doThat', doThis', doThat', anotherThing', doThis', /* etc. etc. */ ); foreach($with as $w) $thing->$w(); -- > Is there a way I can make this type

Re: [PHP] mysql output

2003-08-19 Thread CPT John W. Holmes
From: "Curt Zirzow" <[EMAIL PROTECTED]> > * 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 y

Re: [PHP] GPL question

2003-08-19 Thread Evan Nemerson
Smarty is LGPL, not GPL. The LGPL allows linking. So no. PEAR packages typically use the PHP license, but some do use GPL. If you link to a GPL'd package, you must GPL your package. Otherwise, no. So unless you link to a GPL'd PEAR package, the answer is no. Read: http://www.gnu.org/licenses/gp

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

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

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

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

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

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

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

[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: $nome And the variables goes to url: http://localhost:8080/LivroPHP/c08p160.php?identif=15&telefon=23456987

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] 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] 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"); > $_SESSIO

[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

[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

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) { u

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

[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

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

[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

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

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

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

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

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

2003-08-19 Thread Chris W. Parker
Cesar Aracena 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 fe

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

2003-08-19 Thread Chris W. Parker
anders thoresson 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 res

[PHP] Cache

2003-08-19 Thread Klaus Kaiser Apolinário
This is the header of my aplication

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 l

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

2003-08-19 Thread Jim Lucas
why don't you run this 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 way you do any other variable

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 unsubscri

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 parti

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

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

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 an

[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

[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

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

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

2003-08-19 Thread Chris W. Parker
Matt Babineau 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. Go

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

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

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

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 A

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 c

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 SUM(sess_it

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 stand

[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 Chris W. Parker
anders thoresson 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: http://www.php

[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

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

  1   2   >