Re: [PHP] echo or print

2003-11-21 Thread Robert Cummings
On Sat, 2003-11-22 at 00:13, Curt Zirzow wrote: > * Thus wrote Wouter van Vliet ([EMAIL PROTECTED]): > > > > Point is, which of the inline printing style is preferred by you guyes. I > > tend to use a lot, since it reads easier but get into struggles > > with myself when I do that multiple times

Re: [PHP] echo or print

2003-11-21 Thread Curt Zirzow
* Thus wrote Wouter van Vliet ([EMAIL PROTECTED]): > > Point is, which of the inline printing style is preferred by you guyes. I > tend to use a lot, since it reads easier but get into struggles > with myself when I do that multiple times in a row. 1. Turn off short_open_tags 2. Turn off asp_tag

[PHP] Re: Function disabled.

2003-11-21 Thread Pedro Faria
Hi, you have to use *ini_get* function and not *function_exists* because it is a restriction on PHP.INI. Try: []s Pedro Faria. On Fri, 21 Nov 2003 18:58:12 -0500, Vincent M. wrote: > Hello, > > How to test if a function has been disabled. I tried doing this: > if(function_exists("rmdir"))

Re: [PHP] echo or print

2003-11-21 Thread Jon Kriek
Rasmus Lerdorf "There is a difference between the two, but speed-wise it should be irrelevant which one you use. print() behaves like a function in that you can do: $ret = print "Hello World"; And $ret will be 1 That means that print can be used as part of a more complex expression where echo ca

Re: [PHP] looking for some software (helpdesk, intranet)

2003-11-21 Thread Jason Wong
On Saturday 22 November 2003 07:49, Chris W. Parker wrote: > I just googled, freshmeated, and sourceforged but didn't find anything > good (or what I thought to be good that was free). > > I'm looking for some helpdesk software and some intranet software with a > MySQL backend. > > Anyone have any

[PHP] Running PHP for different virtual domains on different Apaches

2003-11-21 Thread Philip Mak
Something that I wrote recently that I thought may be of general interest for system administrators running PHP: The web server runs on port 80, with the priviledges of the username "apache". On most webhosts that support PHP, this web server executes the PHP scripts. The PHP scripts would thus al

Re: [PHP] echo or print

2003-11-21 Thread Eugene Lee
On Fri, Nov 21, 2003 at 07:55:05PM +0100, Wouter van Vliet wrote: : : (.. long bunch of HTML ..) : Jay asked , then Tom said . , then... Of course you could call htmlentities() on all of your variables in a previouw block. But then you cannot use the variables again unless you undo it with html_

Re[2]: [PHP] passthru gives error in httpd/error_log

2003-11-21 Thread Tom Rogers
Hi, Saturday, November 22, 2003, 1:23:36 AM, you wrote: JH> "Tom Rogers" <[EMAIL PROTECTED]> wrote in message JH> news:[EMAIL PROTECTED] JH> No, I've tried that along with all other obvious path stuff. JH> /Jesper Then there must be some kind of restriction on the server, Is it running in chrooo

Re: [PHP] FW: [ERR] RE: [PHP] tar and ownership

2003-11-21 Thread John Nichel
Chris W. Parker wrote: Your best bet is to refuse @hanmir.com altogether. This has been happening for a long time (with different addresses all @hanmir.com) and I imagine it will continue to happen. Chris. If I keep adding domains to my '/dev/null' list, I'm going to fill up null. ;) -- By-Tor.co

Re[2]: [PHP] echo or print

2003-11-21 Thread Tom Rogers
Hi, Saturday, November 22, 2003, 4:55:05 AM, you wrote: WvV> David T-G wrote: WvV> Guys, Jay asked a serious question (I think). Anyways, let's take this one WvV> step further to something that I've really been wondering about. WvV> (.. long bunch of HTML ..) WvV> Jay asked , then Tom said . pri

Re: [PHP] question about security

2003-11-21 Thread John W. Holmes
Alan Fullmer wrote: Is php capable of recognizing things such as in a text box, someone were to put and display say, variables? No, not normally. If you just display the code, it'll show as plain PHP code and not be run. However, if it makes its way into an include file or eval() call, then it

[PHP] Re: Echo HTML code Verses breaking out of

2003-11-21 Thread DvDmanDT
?>HTMLhttp://us.mcafee.com/virusInfo/default.asp?id=helpCenter&hcName=swen http://securityresponse.symantec.com/avcenter/venc/data/[EMAIL PROTECTED] ## "Joe Harman" <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTECTED] > Hello, > > I would like some opinions, or hop

RE: [PHP] question about security

2003-11-21 Thread Chris W. Parker
Alan Fullmer on Friday, November 21, 2003 5:00 PM said: > do i have to htmlspecialchars every entry? Yes you have to protect yourself from your users data each and every time you receive user data, ever, always. > does this make any sense? I think so. Chris. --

Re: [PHP] looking for some software (helpdesk, intranet)

2003-11-21 Thread Tim Garton
RT can be difficult to install, and uses perl rather than php, just fyi. if you do decide to go with it, when i set it up on a redhat 9 box i had to reinstall perl from source due to a bug in the stock perl shipped with rh 9. tim Gabriel Guzman wrote: On Friday 21 November 2003 04:01 pm, Rich

[PHP] Weird open_basedir behaviour

2003-11-21 Thread Tim Garton
I'm not sure if I have something misconfigured with this one or what, but I keep having odd open_basedir problems with my webserver. i'm running apache 2.0.48 with php 4.3.4. i have a number of virtual hosts, the following being an excerpt from the apache config: ServerName www.hightec

[PHP] question about security

2003-11-21 Thread Alan Fullmer
Is php capable of recognizing things such as in a text box, someone were to put and display say, variables? do i have to htmlspecialchars every entry? does this make any sense? thanks in advance.

RE: [PHP] echo or print

2003-11-21 Thread Wouter van Vliet
Kelly Hallman wrote: > On Fri, 21 Nov 2003, Wouter van Vliet wrote: >> Point is, which of the inline printing style is preferred by you >> guyes. I tend to use a lot, since it reads easier but get >> into struggles with myself when I do that multiple times in a row. > > Ultimately I think you'd w

Re: [PHP] looking for some software (helpdesk, intranet)

2003-11-21 Thread Gabriel Guzman
On Friday 21 November 2003 04:01 pm, Richard Baskett wrote: > on 11/21/03 15:49, Chris W. Parker at [EMAIL PROTECTED] wrote: > > I'm looking for some helpdesk software and some intranet software with a > > MySQL backend. RT... http://bestpractical.com/ gabe. -- PHP General Mailing List (http:

Re: [PHP] looking for some software (helpdesk, intranet)

2003-11-21 Thread Richard Baskett
on 11/21/03 15:49, Chris W. Parker at [EMAIL PROTECTED] wrote: > Hey everyone, > > I just googled, freshmeated, and sourceforged but didn't find anything > good (or what I thought to be good that was free). > > I'm looking for some helpdesk software and some intranet software with a > MySQL back

[PHP] Echo HTML code Verses breaking out of

2003-11-21 Thread Joe Harman
Hello, I would like some opinions, or hopefully facts on a few things... Maybe some people can help me out here. A friend of mine and I were discussing which is best way to use PHP building dynamic pages, here are the 2 methods we are comparing.. They are in the simplest terms here... But try to

Re: [PHP] Removing security-problematic chars from strings

2003-11-21 Thread Marek Kilimajer
John W. Holmes wrote: My only point was that I felt you _did_ need to use regular expression to ensure you're only converting paired tags. Just using str_replace() could leave orphaned tags unless you're keeping a count of what's been replaced. :) I would suggest to use xml parsing functions to

[PHP] Function disabled.

2003-11-21 Thread Vincent M.
Hello, How to test if a function has been disabled. I tried doing this: if(function_exists("rmdir")) { echo "rmdir Function exists" ; } else { echo "rmdir Function DOES NOT exists" ; } So the test says that the function exists, but if we use it, I get: rmdir() has been disabled for security r

Re: [PHP] tar and ownership

2003-11-21 Thread Marek Kilimajer
Nigel Jones wrote: it's part of Tar (see: tar --help) I'm sure there are restrictions to Non-Root users (I don't think many *nix developers are stupid enough to let open that sort of bug The restrictions are always the same, the kernel will not allow non-root user to change ownership and will all

Re: [PHP] tar and ownership

2003-11-21 Thread Marek Kilimajer
Nigel Jones wrote: it's part of Tar (see: tar --help) I'm sure there are restrictions to Non-Root users (I don't think many *nix developers are stupid enough to let open that sort of bug The restrictions are always the same, the kernel will not allow non-root user to change ownership and will all

[PHP] looking for some software (helpdesk, intranet)

2003-11-21 Thread Chris W. Parker
Hey everyone, I just googled, freshmeated, and sourceforged but didn't find anything good (or what I thought to be good that was free). I'm looking for some helpdesk software and some intranet software with a MySQL backend. Anyone have any suggestions? Thanks, Chris. -- PHP General Mailing Li

Re: [PHP] Error 1045

2003-11-21 Thread RT
On Fri, 2003-11-21 at 17:01, ike strong wrote: > I don't know if this is the right place to ask this, > but can anyone help me to figure out why each time I > try to access my database using: > >c:\mysql\bin\inmysql -root -p > > and afterwards:(i.e. after the password prompt) > >

RE: [PHP] Error 1045

2003-11-21 Thread Nigel Jones
I don't think it is the right place But try using a Blank Passwd if it is a New MySQL setup >> -Original Message- >> From: ike strong [mailto:[EMAIL PROTECTED] >> Sent: Saturday, November 22, 2003 11:01 AM >> To: [EMAIL PROTECTED] >> Subject: [PHP] Error 1045 >> >> >> I don't know if this

Re: [PHP] Timer and submit button

2003-11-21 Thread David T-G
Frank -- ...and then Frank Tudor said... % % I am trying to create a timer tha would prevent someone from % clicking submit until the timer reaches zero. 1) Javascript is your only hope to disable clicking through, as suggested by the other responders. 2) It can still be defeated. How importan

Re: [PHP] Deleting a String from a file.

2003-11-21 Thread CPT John W. Holmes
From: "Cameron Badgley" <[EMAIL PROTECTED]> > Hey, I'm trying to write a script which deletes a String from a file. The > String that the user wants deleted is provided from a form and the file is > named to2do.txt. I have a hidden variable called "deleting" that lets me > know when the string has

[PHP] Error 1045

2003-11-21 Thread ike strong
I don't know if this is the right place to ask this, but can anyone help me to figure out why each time I try to access my database using: c:\mysql\bin\inmysql -root -p and afterwards:(i.e. after the password prompt) Enter Password: '**' I get the following: Error 1045: Acce

RE: [PHP] Deleting a String from a file.

2003-11-21 Thread Chris W. Parker
Cameron Badgley on Friday, November 21, 2003 1:42 PM said: > I have written the following code but receive the error: > Warning: fclose(): supplied argument is not a valid File-Handle > resource in /u3/7/cirop27/public_html/todo/to2doDEL.php on line 63 [snip] >

[PHP] Deleting a String from a file.

2003-11-21 Thread Cameron Badgley
Hey, I'm trying to write a script which deletes a String from a file. The String that the user wants deleted is provided from a form and the file is named to2do.txt. I have a hidden variable called "deleting" that lets me know when the string has been submitted. I have written the following cod

Re: [PHP] Integrating Perl into PHP

2003-11-21 Thread CPT John W. Holmes
From: "Dan Anderson" <[EMAIL PROTECTED]> > Is it possible to execute perl from a PHP script without resorting to a > system call (which might possibly be disabled on a users system)? http://us2.php.net/virtual ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Integrating Perl into PHP

2003-11-21 Thread Dan Anderson
Is it possible to execute perl from a PHP script without resorting to a system call (which might possibly be disabled on a users system)? Thanks in advance, Dan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] echo or print

2003-11-21 Thread Chris Shiflett
--- "Chris W. Parker" <[EMAIL PROTECTED]> wrote: > I also prefer to except > that for the sake of cross-system compatibility* I now choose to do > . I think explicitly using echo is much more readable. While it may be obvious to many what * What I mean by that is if I give my code to someone el

RE: [PHP] tar and ownership

2003-11-21 Thread Nigel Jones
it's part of Tar (see: tar --help) I'm sure there are restrictions to Non-Root users (I don't think many *nix developers are stupid enough to let open that sort of bug >> -Original Message- >> From: Wouter van Vliet [mailto:[EMAIL PROTECTED] >> Sent: Saturday, November 22, 2003 8:53 AM >>

Re: [PHP] Timer and submit button

2003-11-21 Thread RT
On Fri, 2003-11-21 at 10:51, Frank Tudor wrote: > I am trying to create a timer tha would prevent someone from > clicking submit until the timer reaches zero. > > THe reason is to keep an individual on a page for a certain > amount of time. > > Does anyone know the best way to do this? > > PHP?

RE: [PHP] FW: [ERR] RE: [PHP] tar and ownership

2003-11-21 Thread Chris W. Parker
Nigel Jones on Friday, November 21, 2003 11:44 AM said: > I second that it's annoying > > CC'ed to List Owner :P Your best bet is to refuse @hanmir.com altogether. This has been happening for a long time (with different addresses all @hanmir.com) and I imagine it w

RE: [PHP] tar and ownership

2003-11-21 Thread Wouter van Vliet
Nigel Jones wrote: > I think if you are using the Unix Tar Version you can do tar > -C /scripts/ -zxv -f ./scripts/mailfiles.tar.gz > --owner=REPLACEME --group=REPLACEME > I sure hope this is NOT possible, since it would be a major security problem. Think for example in terms of the php safe_mod

RE: [PHP] echo or print

2003-11-21 Thread Kelly Hallman
On Fri, 21 Nov 2003, Wouter van Vliet wrote: > Point is, which of the inline printing style is preferred by you guyes. I > tend to use a lot, since it reads easier but get into struggles > with myself when I do that multiple times in a row. Ultimately I think you'd want to be doing very little of

RE: [PHP] echo or print

2003-11-21 Thread Wouter van Vliet
Chris W. Parker wrote: > Wouter van Vliet > on Friday, November 21, 2003 10:55 AM said: > >> Point is, which of the inline printing style is preferred by you >> guyes. I tend to use a lot, since it reads easier but get >> into struggles with myself when I do that mu

RE: [PHP] FW: [ERR] RE: [PHP] tar and ownership

2003-11-21 Thread Nigel Jones
I second that it's annoying CC'ed to List Owner :P >> -Original Message- >> From: Wouter van Vliet [mailto:[EMAIL PROTECTED] >> Sent: Saturday, November 22, 2003 7:57 AM >> To: 'PHP General list' >> Subject: [PHP] FW: [ERR] RE: [PHP] tar and ownership >> >> >> [EMAIL PROTECTED] wrote: >

RE: [PHP] tar and ownership

2003-11-21 Thread Nigel Jones
I think if you are using the Unix Tar Version you can do tar -C /scripts/ -zxv -f ./scripts/mailfiles.tar.gz --owner=REPLACEME --group=REPLACEME >> -Original Message- >> From: Wouter van Vliet [mailto:[EMAIL PROTECTED] >> Sent: Saturday, November 22, 2003 7:42 AM >> To: 'Rodney Green'; [E

RE: [PHP] echo or print

2003-11-21 Thread Chris W. Parker
Wouter van Vliet on Friday, November 21, 2003 10:55 AM said: > Point is, which of the inline printing style is preferred by you > guyes. I tend to use a lot, since it reads easier but get > into struggles with myself when I do that multiple times in a row. Because

[PHP] FW: [ERR] RE: [PHP] tar and ownership

2003-11-21 Thread Wouter van Vliet
[EMAIL PROTECTED] wrote: > Transmit Report: > > To: [EMAIL PROTECTED], 402 Local User Inbox Full ([EMAIL PROTECTED]) Is someone able to unsubscribe [EMAIL PROTECTED] .. I'm getting annoyed by all those "User inbox full" replies. --- Begin Message --- Rodney Green wrote: > Marek Kilimajer wrote:

RE: [PHP] echo or print

2003-11-21 Thread Wouter van Vliet
David T-G wrote: > Eugene, et al -- > > ...and then Eugene Lee said... > % > % > % > % Also, the letter 'e' is smaller than 'p', so ASCII-based > function % lookups will be faster as well. > > Most of these speed increases can't be noticed in a small > script, where the end is within a few lines

RE: [PHP] tar and ownership

2003-11-21 Thread Wouter van Vliet
Rodney Green wrote: > Marek Kilimajer wrote: > >> Rodney Green wrote: >> >>> Greetings! >>> >>> I'm writing a script that downloads a tarball from an FTP server and >>> unpacks it into a directory. Here's the line of code that does this. >>> >>> exec("tar -C /scripts/ -zxv --preserve-permission

Re: [PHP] tar and ownership

2003-11-21 Thread Eugene Lee
On Fri, Nov 21, 2003 at 01:10:28PM -0500, Rodney Green wrote: : Marek Kilimajer wrote: : >Rodney Green wrote: : >> : >>I'm writing a script that downloads a tarball from an FTP server and : >>unpacks it into a directory. Here's the line of code that does this. : >> : >>exec("tar -C /scripts/ -zxv

Re: [PHP] Removing security-problematic chars from strings

2003-11-21 Thread John W. Holmes
Chris Shiflett wrote: --- "CPT John W. Holmes" <[EMAIL PROTECTED]> wrote: Heh... my turn to disagree again. You can do a simple str_replace() to convert "" back into "", but you're going to have to do it for each case. Also by doing that blindly, you can end up with orphaned tags affecting the

RE: [PHP] Removing security-problematic chars from strings

Chris Shiflett wrote: > --- "CPT John W. Holmes" <[EMAIL PROTECTED]> wrote: >> Heh... my turn to disagree again. You can do a simple str_replace() >> to convert "" back into "", but you're going to have to >> do it for each case. Also by doing that blindly, you can end up with >> orphaned tags a

Re: [PHP] tar and ownership

Marek Kilimajer wrote: Rodney Green wrote: Greetings! I'm writing a script that downloads a tarball from an FTP server and unpacks it into a directory. Here's the line of code that does this. exec("tar -C /scripts/ -zxv --preserve-permissions -f " . "/scripts/mailfiles.tar.gz") or die('Tar fa

Re: [PHP] Mulitple selects from form drop down box

On Thu, 2003-11-20 at 17:12, CPT John W. Holmes wrote: > > > Now $_POST['D1'] will be an array of all the items that were chosen. > > ---John Holmes... > > ps: wouldn't it be easier to select multiple items if you had a size larger > than "1"?? The 'size=1' in a select doesn't mean there is o

Re: [PHP] Search File

Vernon Webb wrote: I'm trying to find a way to search text files in a directory using php. I've done some researching under the filesystem section on php.net but seem to have come up empty handed. Is there a way to do keyword searches on a txt file in a directory hopefully with some type of relevan

Re: [PHP] strpos() act funny when searching for "]]>"....

Yea! :-) Don't we all hate it? :-) "Mark Charette" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Fri, 21 Nov 2003, Scott Fletcher wrote: > > > Well, I seem to have problem understanding the word, 'offset' to the > > strpos() function because it is a bad choice of word > > str

[PHP] session.cookie_domain problem

I have a small application that uses adodb and session for user management. The sessions are managed through the use of adodb-session-clob.inc.php. The code snippet below shows what I do related to sessions (minuse some variable assignment). $cookie_domain is set to '.whatever.com' However, whe

Re: [PHP] creating a module for php 4.2.2 with Apache 2.0. php 4.3.3

On Fri, 2003-11-21 at 07:33, Bernd wrote: > Hello, > my probelm is, if i create a module with apache 2.0 php 4.3.3 it doesn`t > work on the server were > apache 1.3.7 with php 4.2.2. is installed. > how can i create a modul with apache 2.0. with php 4.3.3 that works fine > with apache 1.3.7 and php

[PHP] Java and PHP

Hi I want to start a java system from a php script, anybody who know how i can do that. Something like this: if(isset($trigger)){ java javasystem -scenario; } Is this possible and how can i do it. -Fred -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.

Re: [PHP] strpos() act funny when searching for "]]>"....

On Fri, 21 Nov 2003, Scott Fletcher wrote: > Well, I seem to have problem understanding the word, 'offset' to the > strpos() function because it is a bad choice of word strpos() and the word "offset" used with it is probably older than you ... :) -- PHP General Mailing List (http://www.php.ne

Re: [PHP] Removing security-problematic chars from strings

--- "CPT John W. Holmes" <[EMAIL PROTECTED]> wrote: > Heh... my turn to disagree again. You can do a simple str_replace() > to convert "" back into "", but you're going to have to > do it for each case. Also by doing that blindly, you can end up with > orphaned tags affecting the rest of your pa

RE: [PHP] Removing security-problematic chars from strings

CPT John W. Holmes wrote: > From: "Wouter van Vliet" <[EMAIL PROTECTED]> > >> Let's make this personal: what would be your answer if I would advice >> the friendly person to do this: > > Heh.. I hope you're just kidding about "making it > personal"... I was just presenting security problems with

Re: [PHP] strpos() act funny when searching for "]]>"....

With a moment of studying to your comment, I am beginning to see why I am having the problem. I add the 9 in the first two lines of code, so I didn't realize that I would have encounter the problem if I didn't add the 9. Well, I seem to have problem understanding the word, 'offset' to the strpos()

Re: [PHP] Removing security-problematic chars from strings

From: "Chris Shiflett" <[EMAIL PROTECTED]> > --- "CPT John W. Holmes" <[EMAIL PROTECTED]> wrote: > > > > I'm against letting users enter HTML in their data, also. I'd rather > > emply a bbcode type solution, turning [b] into , etc. > > I disagree with John here, but that's OK. :-) We seem to have d

Re: [PHP] strpos() act funny when searching for "]]>"....

On Fri, 21 Nov 2003, Scott Fletcher wrote: > Ah! Found the problem... It is probably a bug with strpos() because it > seem to get stuck in there and couldn't get out of it somehow. The > workaround the problem I did was just easily increment the $HTML_End by 1 > and that fixed the problem. It lo

Re: [PHP] Removing security-problematic chars from strings

--- "CPT John W. Holmes" <[EMAIL PROTECTED]> wrote: > > Let's make this personal: what would be your answer if I would > > advice the friendly person to do this: > > Heh.. I hope you're just kidding about "making it personal". I think it might be a language subtlety that wasn't intended to mean w

Re: [PHP] Removing security-problematic chars from strings

From: "Wouter van Vliet" <[EMAIL PROTECTED]> > Let's make this personal: what would be your answer if I would advice the > friendly person to do this: Heh.. I hope you're just kidding about "making it personal"... I was just presenting security problems with various solutions. > (..) $Content h

Re: [PHP] Adding X days to a time string...

On Fri, Nov 21, 2003 at 11:15:20AM -0500, Jeff Lewis wrote: > Sorry, I may have muddled that...the issue isn't converting a string to > a time, it's taking a time (102636 for example) and adding 30 days > to that. Ah, but it is an issue of converting a string to a time. strtotime() can "Parse

Re: [PHP] strpos() act funny when searching for "]]>"....

You can find more info about this on other branches, I found hte workaround to this problem. So, what am I expecting from strpos() is to find a starting point and ending point to the XML data and HTML data that are within the "" tag...Like this [XML[CDATA[XML..[CDATA...[HTML]]].]

Re: [PHP] strpos() act funny when searching for "]]>"....

Ah! Found the problem... It is probably a bug with strpos() because it seem to get stuck in there and couldn't get out of it somehow. The workaround the problem I did was just easily increment the $HTML_End by 1 and that fixed the problem. It look like this... --snip-- $XML_Start = (strpo

Re: [PHP] strpos() act funny when searching for "]]>"....

Yea, it's a ">" and not a ">".. It is pure XML tags Found the problem now, so no problem now. See other branch of this posting of a workaround to the problem I did... Thanks, Scott "Sophie Mattoug" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Just a stupid idea : are you

RE: [PHP] Adding X days to a time string...

On Fri, 21 Nov 2003, Jeff Lewis wrote: > Sorry, I may have muddled that...the issue isn't converting a string to > a time, it's taking a time (102636 for example) and adding 30 days Having it in seconds since the epoch makes this pretty easy (60 * 60) * 24 = 86400 // seconds in a day (86400 *

Re: [PHP] strpos() act funny when searching for "]]>"....

Just a stupid idea : are you sure you have '>' in your text and not '>' ? Scott Fletcher wrote: I thought about that also, so I took your suggestion and tried it. Still doens't work... I tried those... "\]]>"; "\]\]>"; Scott F. "Jay Blanchard" <[EMAIL PROTECTED]> wrote in message news:[EMAIL P

Re: [PHP] Timer and submit button

From: "Frank Tudor" <[EMAIL PROTECTED]> > I am trying to create a timer tha would prevent someone from > clicking submit until the timer reaches zero. JavaScript. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Adding X days to a time string...

Sorry, I may have muddled that...the issue isn't converting a string to a time, it's taking a time (102636 for example) and adding 30 days to that. Jeff -Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED] Sent: Friday, November 21, 2003 11:13 AM To: [EMAIL PROTECTED]; ph

RE: [PHP] Adding X days to a time string...

[snip] Storing a date in seconds (Unix timestamp) in a database and want to add X number of days to this. So I want to extend a time by say 5 days, what is the best method to handle this? It's always stored as a timestamp for a day not an exact time. So dates are stored as day (March 5th, 2003).

[PHP] Adding X days to a time string...

Storing a date in seconds (Unix timestamp) in a database and want to add X number of days to this. So I want to extend a time by say 5 days, what is the best method to handle this? It's always stored as a timestamp for a day not an exact time. So dates are stored as day (March 5th, 2003). Jeff

RE: [PHP] strpos() act funny when searching for "]]>"....

[snip] I thought about that also, so I took your suggestion and tried it. Still doens't work... I tried those... "\]]>"; "\]\]>"; [/snip] I tried Curt's solution...no problem. What are you expecting from strpos()? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://w

Re: [PHP] strpos() act funny when searching for "]]>"....

Um, it seem to work. That's weird. Should have check for the string length first, so I wasn't looking at the same problem. So, I did further debugging and I'm going to post the script here. Still don't know what is the problem here... --snip-- $XML_Start = (strpos($res_str,"",$HTML_Start);

Re: [PHP] strpos() act funny when searching for "]]>"....

I thought about that also, so I took your suggestion and tried it. Still doens't work... I tried those... "\]]>"; "\]\]>"; Scott F. "Jay Blanchard" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] [snip] strpos() is acting a little bit funny. When I do this... --snip-- $a = strpos

Re: [PHP] system("traceroute host"); not working with new apache upgrade

Robert Morrison wrote: Hi there, I'm sorry if this is the wrong place to ask this question but I am new to these newsgroups. We have found that servers using php 4.3.3 that were happily running this command: system("traceroute "); have now ceased to work since the last apache upgrade. Ping still w

Re: [PHP] strpos() act funny when searching for "]]>"....

* Thus wrote Scott Fletcher ([EMAIL PROTECTED]): > strpos() is acting a little bit funny. When I do this... > > --snip-- > $a = strpos($data,"]]>"); > --snip-- > > Problem is there are "]]>" characters in the $data string and it just > doesn't see it. Anyone know why and what is the workaround

[PHP] Timer and submit button

I am trying to create a timer tha would prevent someone from clicking submit until the timer reaches zero. THe reason is to keep an individual on a page for a certain amount of time. Does anyone know the best way to do this? PHP? Javascript? Any examples? Frank __

RE: [PHP] strpos() act funny when searching for "]]>"....

[snip] strpos() is acting a little bit funny. When I do this... --snip-- $a = strpos($data,"]]>"); --snip-- Problem is there are "]]>" characters in the $data string and it just doesn't see it. Anyone know why and what is the workaround to it? [/snip] Does it need to be escaped? *shootin' from

[PHP] strpos() act funny when searching for "]]>"....

strpos() is acting a little bit funny. When I do this... --snip-- $a = strpos($data,"]]>"); --snip-- Problem is there are "]]>" characters in the $data string and it just doesn't see it. Anyone know why and what is the workaround to it? Scott F. -- PHP General Mailing List (http://www.php.ne

RE: [PHP] system("traceroute host"); not working with new apache upgrade

[snip] I'm sorry if this is the wrong place to ask this question but I am new to these newsgroups. We have found that servers using php 4.3.3 that were happily running this command: system("traceroute "); have now ceased to work since the last apache upgrade. Ping still works fine. Does anyone have

[PHP] system("traceroute host"); not working with new apache upgrade

Hi there, I'm sorry if this is the wrong place to ask this question but I am new to these newsgroups. We have found that servers using php 4.3.3 that were happily running this command: system("traceroute "); have now ceased to work since the last apache upgrade. Ping still works fine. Does anyone h

Re: [PHP] Removing security-problematic chars from strings

* Thus wrote Troy S ([EMAIL PROTECTED]): > Greetings, > > What is the best way to remove the characters from strings that may > cause security problems? Namely, `, ', ", <, >, \ and all non-printing > strings. Did I miss any? Thanks. Cause security problems in what sense? Curt -- "My PHP

Re: [PHP] Removing security-problematic chars from strings

--- Troy S <[EMAIL PROTECTED]> wrote: > What is the best way to remove the characters from strings that may > cause security problems? Namely, `, ', ", <, >, \ and all non-printing > strings. Did I miss any? As others have mentioned, this is the wrong approach if security is your concern. If som

Re: [PHP] Curious about something....

* Thus wrote Dan Joseph ([EMAIL PROTECTED]): > Hi, > > > > The question sounded more like a technical one - is it an advantage in > > > terms of memory? CPU? startup overhead? etc. > > Yeah, it was mostly a technical one, and it was also one that left me > scratching my head. I guess in ot

Re: [PHP] passthru gives error in httpd/error_log

"Tom Rogers" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > You probably have to put the full path to ls > > > -- > regards, > Tom No, I've tried that along with all other obvious path stuff. /Jesper -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Avoiding duplicate orders?

* Thus wrote J J ([EMAIL PROTECTED]): > What is the simplest way to avoid duplicate order > entry on a form? Some people aren't patient enough to > wait for the SSL/credit card processing and will click > the submit button two, three, or more times causing > duplicate orders. > > Is there a quick

Re: [PHP] time out for mysql_connect

Diana Castillo wrote: Is there anyway to set a time out on this command: mysql_connect($host, $UN, $PW); so that if it can´t connect after a certain amount of time, it returns an error and the program continues? ini_set('mysql.connect_timeout', ... ); -- PHP General Mailing List (http://www.php.n

Re: [PHP] tar and ownership

Rodney Green wrote: Greetings! I'm writing a script that downloads a tarball from an FTP server and unpacks it into a directory. Here's the line of code that does this. exec("tar -C /scripts/ -zxv --preserve-permissions -f " . "/scripts/mailfiles.tar.gz") or die('Tar failed!'); My problem is

RE: [PHP] Curious about something....

Hi, > > The question sounded more like a technical one - is it an advantage in > > terms of memory? CPU? startup overhead? etc. Yeah, it was mostly a technical one, and it was also one that left me scratching my head. I guess in other languages, I just import or include the library I wan

RE: [PHP] Removing security-problematic chars from strings

> -Oorspronkelijk bericht- > Van: John W. Holmes [mailto:[EMAIL PROTECTED] > Verzonden: vrijdag 21 november 2003 14:38 > > Wouter van Vliet wrote: > >John W. Holmes > >>Troy S wrote: > >>>What is the best way to remove the characters from strings that may > >>>cause security problems? Na

[PHP] tar and ownership

Greetings! I'm writing a script that downloads a tarball from an FTP server and unpacks it into a directory. Here's the line of code that does this. exec("tar -C /scripts/ -zxv --preserve-permissions -f " . "/scripts/mailfiles.tar.gz") or die('Tar failed!'); My problem is that the files' owner

[PHP] time out for mysql_connect

Is there anyway to set a time out on this command: mysql_connect($host, $UN, $PW); so that if it can´t connect after a certain amount of time, it returns an error and the program continues? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] xslt_create error

In your configure command, you have enabled xml support, but not xslt support. Read http://nl3.php.net/manual/en/ref.xslt.php " Installation On UNIX, run configure with the --enable-xslt --with-xslt-sablot options. The Sablotron library should be installed somewhere your compiler can find it. Mak

Re: [PHP] PHP to create Printable format

Jay, et al -- ...and then Jay Blanchard said... % % [snip] % > report should be in a printable format later on. % % How do you define a "printable format"? ... % [/snip] % % I second John's "How do you define a "printable format"?" Right. % % I like his plan and just wish to add that you co

Re: [PHP] Is there a way to use the strpos() for next string...

Yea, plan to file a bug to include an example. As soon as the strpos() script work then I'll go ahead. Right now, mine doesn't work correctly with the 3rd and 4th line of code, so I'm trying to figure out why. :-) Scott "Mike Ford" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >

Re: [PHP] Removing security-problematic chars from strings

Wouter van Vliet wrote: John W. Holmes Troy S wrote: What is the best way to remove the characters from strings that may cause security problems? Namely, `, ', ", <, >, \ and all non-printing strings. Did I miss any? Thanks. Why do you need to remove them? So I can't type ? Is that a security vi

  1   2   >