[PHP] Re: php script can't self reference

2012-06-20 Thread Maciek Sokolewicz
On 20-06-2012 15:55, Tim Dunphy wrote: Hello list, I just wanted to bounce a slight issue that I'm having off you regarding self referencing a php script. Moving from the 'sendemail.htm' page where a form is used to the 'sendemail.php' page that is in the form action works fine! But if you rel

Re: [PHP] Script execution after window close

2012-03-04 Thread Nibin V M
ok..thanks guys...I will check further then. thanks for your inputs :) On Sun, Mar 4, 2012 at 9:59 PM, Govinda wrote: > >>> in factI really need to remove the file ( which will be created for > >>> every access - making a copy from another location ). I can't leave > that > >>> file alone for

Re: [PHP] Script execution after window close

2012-03-04 Thread Ashley Sheridan
On Sun, 2012-03-04 at 11:29 -0500, Govinda wrote: > >>> in factI really need to remove the file ( which will be created for > >>> every access - making a copy from another location ). I can't leave that > >>> file alone for ever in the user disk space! :( > >> > >> Fine, so delete it after a

Re: [PHP] Script execution after window close

2012-03-04 Thread Govinda
>>> in factI really need to remove the file ( which will be created for >>> every access - making a copy from another location ). I can't leave that >>> file alone for ever in the user disk space! :( >> >> Fine, so delete it after a period of inactivity > > ok..I have script which will run ba

Re: [PHP] Script execution after window close

2012-03-04 Thread Nibin V M
ok..I have script which will run based on some values in "user's" homedir. In fact I have tried to run the script from a various locations; but it didn't work as expected like it run from each users homedir. So, when the user access the page, it will copy the actual script to the user's homedir a

Re: [PHP] Script execution after window close

2012-03-04 Thread Stuart Dallas
On 4 Mar 2012, at 15:31, Nibin V M wrote: > in factI really need to remove the file ( which will be created for > every access - making a copy from another location ). I can't leave that > file alone for ever in the user disk space! :( Ash is right in that this is exactly what sessions are us

Re: [PHP] Script execution after window close

2012-03-04 Thread Govinda
> in factI really need to remove the file ( which will be created for > every access - making a copy from another location ). I can't leave that > file alone for ever in the user disk space! :( Fine, so delete it after a period of inactivity -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Script execution after window close

2012-03-04 Thread Nibin V M
in factI really need to remove the file ( which will be created for every access - making a copy from another location ). I can't leave that file alone for ever in the user disk space! :( On Sun, Mar 4, 2012 at 9:01 PM, Ashley Sheridan wrote: > ** > On Sun, 2012-03-04 at 20:49 +0530, Nibin V

Re: [PHP] Script execution after window close

2012-03-04 Thread Ashley Sheridan
On Sun, 2012-03-04 at 20:49 +0530, Nibin V M wrote: > Hello, > > I need to run a few commands when a user close the browser tab. That is, I > have a php page ( index.php ) and it will create a temporary file to track > some stuffs. That temporary file should be removed, when the user close the >

Re: [PHP] Script ID?

2011-05-22 Thread tedd
At 1:47 PM -0400 5/21/11, Adam Richardson wrote: On Sat, May 21, 2011 at 10:11 AM, tedd <t...@sperling.com> wrote: Hi gang: Okay, so,what's the "best" (i.e., most secure) way for your script to identify itself *IF* you plan on using that information later, such as t

Re: [PHP] Script ID?

2011-05-21 Thread tedd
At 6:29 PM +0100 5/21/11, Stuart Dallas wrote: On Sat, May 21, 2011 at 6:00 PM, Peter Lind <peter.e.l...@gmail.com> wrote: -snip- This was fun... we should do it again sometime! ;) No, this wasn't fun. As I said before, is email is a bad way to communicate. B

Re: [PHP] Script ID?

2011-05-21 Thread Adam Richardson
On Sat, May 21, 2011 at 10:11 AM, tedd wrote: > Hi gang: > > Okay, so,what's the "best" (i.e., most secure) way for your script to > identify itself *IF* you plan on using that information later, such as the > value in an action attribute in a form? > > For example, I was using: > > $self = basen

Re: [PHP] Script ID?

2011-05-21 Thread Stuart Dallas
On Sat, May 21, 2011 at 6:00 PM, Peter Lind wrote: > On 21 May 2011 18:42, Stuart Dallas wrote: > > On Sat, May 21, 2011 at 5:33 PM, Peter Lind > wrote: > >> > >> On 21 May 2011 18:26, Stuart Dallas wrote: > >> > >> *snip* > >> > >> > http://en.wikipedia.org/wiki/Defensive_programming > >> > Y

Re: [PHP] Script ID?

2011-05-21 Thread Tamara Temple
On May 21, 2011, at 9:11 AM, tedd wrote: Hi gang: Okay, so,what's the "best" (i.e., most secure) way for your script to identify itself *IF* you plan on using that information later, such as the value in an action attribute in a form? For example, I was using: $self = basename($_SERVER[

Re: [PHP] Script ID?

2011-05-21 Thread Stuart Dallas
On Sat, May 21, 2011 at 5:33 PM, Peter Lind wrote: > On 21 May 2011 18:26, Stuart Dallas wrote: > > *snip* > > > http://en.wikipedia.org/wiki/Defensive_programming > > You do things your way and I'll do things my way. Best of luck to you. > > Thank you for your condescending tone. Best of luck t

Re: [PHP] Script ID?

2011-05-21 Thread Peter Lind
On 21 May 2011 18:42, Stuart Dallas wrote: > On Sat, May 21, 2011 at 5:33 PM, Peter Lind wrote: >> >> On 21 May 2011 18:26, Stuart Dallas wrote: >> >> *snip* >> >> > http://en.wikipedia.org/wiki/Defensive_programming >> > You do things your way and I'll do things my way. Best of luck to you. >>

Re: [PHP] Script ID?

2011-05-21 Thread Peter Lind
On 21 May 2011 18:26, Stuart Dallas wrote: *snip* > http://en.wikipedia.org/wiki/Defensive_programming > You do things your way and I'll do things my way. Best of luck to you. Thank you for your condescending tone. Best of luck to you too. Regards Peter -- WWW: plphp.dk / plind.dk LinkedIn:

Re: [PHP] Script ID?

2011-05-21 Thread Stuart Dallas
On Sat, May 21, 2011 at 5:14 PM, Peter Lind wrote: > On 21 May 2011 18:05, Stuart Dallas wrote: > > On Sat, May 21, 2011 at 4:57 PM, Peter Lind > wrote: > >> > >> On 21 May 2011 17:34, Stuart Dallas wrote: > >> > On Sat, May 21, 2011 at 4:24 PM, Peter Lind > >> > wrote: > >> >> > >> >> On 21

Re: [PHP] Script ID?

2011-05-21 Thread Peter Lind
On 21 May 2011 18:05, Stuart Dallas wrote: > On Sat, May 21, 2011 at 4:57 PM, Peter Lind wrote: >> >> On 21 May 2011 17:34, Stuart Dallas wrote: >> > On Sat, May 21, 2011 at 4:24 PM, Peter Lind >> > wrote: >> >> >> >> On 21 May 2011 17:18, Stuart Dallas wrote: >> >> >> >> *snip* >> >> >> >> >>

Re: [PHP] Script ID?

2011-05-21 Thread Stuart Dallas
On Sat, May 21, 2011 at 5:02 PM, Ashley Sheridan wrote: > On Sat, 2011-05-21 at 16:53 +0100, Stuart Dallas wrote: > > On Sat, May 21, 2011 at 4:48 PM, Ashley Sheridan > wrote: > > > On Sat, 2011-05-21 at 16:47 +0100, Stuart Dallas wrote: > > > > On Sat, May 21, 2011 at 4:42 PM, Ashley Sheridan >

Re: [PHP] Script ID?

2011-05-21 Thread Stuart Dallas
On Sat, May 21, 2011 at 4:57 PM, Peter Lind wrote: > On 21 May 2011 17:34, Stuart Dallas wrote: > > On Sat, May 21, 2011 at 4:24 PM, Peter Lind > wrote: > >> > >> On 21 May 2011 17:18, Stuart Dallas wrote: > >> > >> *snip* > >> > >> >> Again, this depends upon what your url scheme looks like -

Re: [PHP] Script ID?

2011-05-21 Thread Ashley Sheridan
On Sat, 2011-05-21 at 16:53 +0100, Stuart Dallas wrote: > On Sat, May 21, 2011 at 4:48 PM, Ashley Sheridan > wrote: > > > On Sat, 2011-05-21 at 16:47 +0100, Stuart Dallas wrote: > > > > On Sat, May 21, 2011 at 4:42 PM, Ashley Sheridan > > wrote: > > > > > On Sat, 2011-05-21 at 16:34 +0100, Stua

Re: [PHP] Script ID?

2011-05-21 Thread Peter Lind
On 21 May 2011 17:34, Stuart Dallas wrote: > On Sat, May 21, 2011 at 4:24 PM, Peter Lind wrote: >> >> On 21 May 2011 17:18, Stuart Dallas wrote: >> >> *snip* >> >> >> Again, this depends upon what your url scheme looks like - and without >> >> knowing that, there's simple no clue as to whether o

Re: [PHP] Script ID?

2011-05-21 Thread Stuart Dallas
On Sat, May 21, 2011 at 4:48 PM, Ashley Sheridan wrote: > On Sat, 2011-05-21 at 16:47 +0100, Stuart Dallas wrote: > > On Sat, May 21, 2011 at 4:42 PM, Ashley Sheridan > wrote: > > > On Sat, 2011-05-21 at 16:34 +0100, Stuart Dallas wrote: > > > > On Sat, May 21, 2011 at 4:24 PM, Peter Lind wrote

Re: [PHP] Script ID?

2011-05-21 Thread Ashley Sheridan
On Sat, 2011-05-21 at 16:47 +0100, Stuart Dallas wrote: > On Sat, May 21, 2011 at 4:42 PM, Ashley Sheridan > wrote: > > > On Sat, 2011-05-21 at 16:34 +0100, Stuart Dallas wrote: > > > > On Sat, May 21, 2011 at 4:24 PM, Peter Lind wrote: > > > > > On 21 May 2011 17:18, Stuart Dallas wrote: > >

Re: [PHP] Script ID?

2011-05-21 Thread Stuart Dallas
On Sat, May 21, 2011 at 4:42 PM, Ashley Sheridan wrote: > On Sat, 2011-05-21 at 16:34 +0100, Stuart Dallas wrote: > > On Sat, May 21, 2011 at 4:24 PM, Peter Lind wrote: > > > On 21 May 2011 17:18, Stuart Dallas wrote: > > > > *snip* > > > > >> Again, this depends upon what your url scheme looks

Re: [PHP] Script ID?

2011-05-21 Thread Ashley Sheridan
On Sat, 2011-05-21 at 16:34 +0100, Stuart Dallas wrote: > On Sat, May 21, 2011 at 4:24 PM, Peter Lind wrote: > > > On 21 May 2011 17:18, Stuart Dallas wrote: > > > > *snip* > > > > >> Again, this depends upon what your url scheme looks like - and without > > >> knowing that, there's simple no c

Re: [PHP] Script ID?

2011-05-21 Thread Stuart Dallas
On Sat, May 21, 2011 at 4:24 PM, Peter Lind wrote: > On 21 May 2011 17:18, Stuart Dallas wrote: > > *snip* > > >> Again, this depends upon what your url scheme looks like - and without > >> knowing that, there's simple no clue as to whether or not this is a > >> good solution to the problem (tho

Re: [PHP] Script ID?

2011-05-21 Thread Peter Lind
On 21 May 2011 17:18, Stuart Dallas wrote: *snip* >> Again, this depends upon what your url scheme looks like - and without >> knowing that, there's simple no clue as to whether or not this is a >> good solution to the problem (though it might be a good solution to A >> problem). > > Again, I di

Re: [PHP] Script ID?

2011-05-21 Thread Stuart Dallas
On Sat, May 21, 2011 at 4:07 PM, Peter Lind wrote: > On 21 May 2011 17:01, Stuart Dallas wrote: > > On Sat, May 21, 2011 at 3:35 PM, Peter Lind > wrote: > >> > >> On 21 May 2011 16:18, Stuart Dallas wrote: > >> > On Sat, May 21, 2011 at 3:11 PM, tedd wrote: > >> > > >> >> Hi gang: > >> >> > >

Re: [PHP] Script ID?

2011-05-21 Thread Peter Lind
On 21 May 2011 17:01, Stuart Dallas wrote: > On Sat, May 21, 2011 at 3:35 PM, Peter Lind wrote: >> >> On 21 May 2011 16:18, Stuart Dallas wrote: >> > On Sat, May 21, 2011 at 3:11 PM, tedd wrote: >> > >> >> Hi gang: >> >> >> >> Okay, so,what's the "best" (i.e., most secure) way for your script t

Re: [PHP] Script ID?

2011-05-21 Thread Stuart Dallas
On Sat, May 21, 2011 at 3:35 PM, Peter Lind wrote: > On 21 May 2011 16:18, Stuart Dallas wrote: > > On Sat, May 21, 2011 at 3:11 PM, tedd wrote: > > > >> Hi gang: > >> > >> Okay, so,what's the "best" (i.e., most secure) way for your script to > >> identify itself *IF* you plan on using that inf

Re: [PHP] Script ID?

2011-05-21 Thread Peter Lind
On 21 May 2011 16:18, Stuart Dallas wrote: > On Sat, May 21, 2011 at 3:11 PM, tedd wrote: > >> Hi gang: >> >> Okay, so,what's the "best" (i.e., most secure) way for your script to >> identify itself *IF* you plan on using that information later, such as the >> value in an action attribute in a fo

RE: [PHP] Script ID?

2011-05-21 Thread admin
So sorry Tedd, I was typing away with the rest of that and after hitting send I notice all I sent was the define. define('PAGE_1', 1); I use define because sometimes I want o know what script included another and if that script does not have a defined value I do not allow it to run. Just

Re: [PHP] Script ID?

2011-05-21 Thread Ashley Sheridan
On Sat, 2011-05-21 at 10:11 -0400, tedd wrote: > Hi gang: > > Okay, so,what's the "best" (i.e., most secure) way for your script to > identify itself *IF* you plan on using that information later, such > as the value in an action attribute in a form? > > For example, I was using: > > $self =

RE: [PHP] Script ID?

2011-05-21 Thread admin
I use define('page1, 1); Richard L. Buskirk -Original Message- From: tedd [mailto:t...@sperling.com] Sent: Saturday, May 21, 2011 10:11 AM To: PHP General Subject: [PHP] Script ID? Hi gang: Okay, so,what's the "best" (i.e., most secure) way for your script to identify itself *IF*

Re: [PHP] Script ID?

2011-05-21 Thread Stuart Dallas
On Sat, May 21, 2011 at 3:11 PM, tedd wrote: > Hi gang: > > Okay, so,what's the "best" (i.e., most secure) way for your script to > identify itself *IF* you plan on using that information later, such as the > value in an action attribute in a form? > > For example, I was using: > > $self = basena

Re: [PHP] Script mysteriously restarting

2011-01-21 Thread Richard S. Crawford
Ah, sorry. It's a browser-based script. On Fri, Jan 21, 2011 at 1:28 PM, Jim Lucas wrote: > On 1/21/2011 12:37 PM, Richard S. Crawford wrote: > > I've got a massive PHP script which takes nearly an hour to run. > Sometimes, > > when it comes close to the end, it mysterious restarts itself and I

Re: [PHP] Script mysteriously restarting

2011-01-21 Thread Jim Lucas
On 1/21/2011 12:37 PM, Richard S. Crawford wrote: > I've got a massive PHP script which takes nearly an hour to run. Sometimes, > when it comes close to the end, it mysterious restarts itself and I have to > wait for another hour for it to complete. > > Is there any reason why a PHP script would r

RE: [PHP] Script to add domain users to local groups on remote machines

2010-06-04 Thread Mayer, Jonathan
-Original Message- From: tedd [mailto:tedd.sperl...@gmail.com] Sent: 04 June 2010 15:34 To: Mayer, Jonathan; php-general@lists.php.net Subject: Re: [PHP] Script to add domain users to local groups on remote machines At 11:16 AM +0100 6/4/10, Mayer, Jonathan wrote: >Hello, > >H

Re: [PHP] Script to add domain users to local groups on remote machines

2010-06-04 Thread tedd
At 11:16 AM +0100 6/4/10, Mayer, Jonathan wrote: Hello, Has anyone got any ideas how I might add a user to a local group on a remote networked Windows machine via a PHP script? The idea is to make an automated tool where users can request access to a shared folder via our intranet, and after sui

Re: [PHP] script failing at same line

2009-09-09 Thread Ben Dunlap
> > My solution was to add a table to my database, and add an insert job id > into the table after the line that is causing the problem. When I submit the > script I use setTimeout to run an AJAX query of the table 5 seconds later. > If the line has failed the job id will not be in the table and I

Re: [PHP] script failing at same line

2009-09-08 Thread jim white
Ben, My solution was to add a table to my database, and add an insert job id into the table after the line that is causing the problem. When I submit the script I use setTimeout to run an AJAX query of the table 5 seconds later. If the line has failed the job id will not be in the table and I

Re: [PHP] script failing at same line

2009-09-04 Thread jim white
Hi, Thanks I'll look at libevent. I have also been thinking about using an XHR approach, but wonder how passing PHP references works with javascript. Jim Ben Dunlap wrote: On Fri, Sep 4, 2009 at 2:38 PM, jim white > wrote: It's a web app that draws maps in

Re: [PHP] script failing at same line

2009-09-04 Thread Ben Dunlap
On Fri, Sep 4, 2009 at 2:38 PM, jim white wrote: > It's a web app that draws maps in a browser. Sometime it will generate a > seg fault. The command should not take long, so if there is some script > construct that will throw an exception after a few seconds if the command > has not completed I c

Re: [PHP] script failing at same line

2009-09-04 Thread jim white
It's a web app that draws maps in a browser. Sometime it will generate a seg fault. The command should not take long, so if there is some script construct that will throw an exception after a few seconds if the command has not completed I could signal the user that the map will not draw and to

Re: [PHP] script failing at same line

2009-09-04 Thread Ben Dunlap
> $map = ms_newMapObj($mapfile); > > The command creates a new mapscript object. > > And PHP is hanging somewhere inside that constructor? Is this in a web context or a command-line context? Or both?

Re: [PHP] script failing at same line

2009-09-04 Thread jim white
$map = ms_newMapObj($mapfile); The command creates a new mapscript object. Jay Blanchard wrote: [snip] I have a script that intermittently fails at the same line. I am trying to write some code that will throw an exception after 5 seconds if the command on that line fails and the script freez

RE: [PHP] script failing at same line

2009-09-04 Thread Jay Blanchard
[snip] I have a script that intermittently fails at the same line. I am trying to write some code that will throw an exception after 5 seconds if the command on that line fails and the script freezes. Any ideas? [/snip] I have lots of ideas! But those really won't help you :) We need to see the

Re: [PHP] Script to Compare Database Structures

2009-08-05 Thread Matt Neimeyer
I finally got a chance to play with this and it looks like it is exactly what I need. Thanks! On Fri, Jul 31, 2009 at 11:50 PM, German Geek wrote: > have you tried mysqldiff? >> I want to be able to compare the structure of two different clients >> databases that might be on different servers tha

Re: [PHP] Script to Compare Database Structures

2009-08-02 Thread Mattias Thorslund
Look into the Reverse module of PEAR MDB2. http://pear.php.net/manual/en/package.database.mdb2.intro-reverse-module.php Cheers, Mattias Matt Neimeyer wrote: I know I CAN hack something together but I hate to reinvent the wheel. I want to be able to compare the structure of two different clien

Re: [PHP] Script to Compare Database Structures

2009-07-31 Thread Paul M Foster
On Fri, Jul 31, 2009 at 05:38:44PM -0400, Matt Neimeyer wrote: > I know I CAN hack something together but I hate to reinvent the wheel. > > I want to be able to compare the structure of two different clients > databases that might be on different servers that are firewalled away > from each other

Re: [PHP] Script to Compare Database Structures

2009-07-31 Thread German Geek
have you tried mysqldiff? ++Tim Hinnerk Heuer++ http://www.ihostnz.com (should be .org) Sponsors welcome to put ads under a linked to page. This is not automated just yet. Only image, swf or preferably text or short html ads, no animations please. Price negotiable. 2009/8/1 Matt Neimeyer > I

Re: [PHP] Script Analysis (was Conclusion of "use strict"...)

2009-03-21 Thread George Larson
**On Sat, Mar 21, 2009 at 10:27 AM, Hans Schultz wrote: > Hi Virgilio, > Thanks for that last link, I just know need to figure out why my Netbeans > doesn't work > like that (although I am using latest version) > > On Sat, 21 Mar 2009 10:56:46 +0100, Virgilio Quilario < > virgilio.quila...@gmail.c

Re: [PHP] Script Analysis (was Conclusion of "use strict"...)

2009-03-21 Thread Hans Schultz
Hi Virgilio, Thanks for that last link, I just know need to figure out why my Netbeans doesn't work like that (although I am using latest version) On Sat, 21 Mar 2009 10:56:46 +0100, Virgilio Quilario wrote: Hi Hans, Is this what you are looking for? Debug PHP code using Xdebug: You ca

RE: [PHP] Script Analysis (was Conclusion of "use strict"...)

2009-03-21 Thread Pierre Lilliman
Using it (and Codenizer within), this is completely different thing... Regards > > Hi guys, > > Check out Netbeans IDE for PHP. > http://www.netbeans.org/features/php/ > > Your wishes answered. > Though it doesn't have "use strict" but it tracks variables for you. > > Virgil > http://www.jampmar

Re: [PHP] Script Analysis (was Conclusion of "use strict"...)

2009-03-21 Thread Virgilio Quilario
> Thanks, > I downloaded Netbeans week or two ago and I found all that. I thought there > is > something more advanced (these things have any decent editor/ide (for > example > eclipse + pdt also have all that)). We are talking completely different > level > of checks :-) In the end I may switch to

Re: [PHP] Script Analysis (was Conclusion of "use strict"...)

2009-03-21 Thread Hans Schultz
Thanks, I downloaded Netbeans week or two ago and I found all that. I thought there is something more advanced (these things have any decent editor/ide (for example eclipse + pdt also have all that)). We are talking completely different level of checks :-) In the end I may switch to non-free

Re: [PHP] Script Analysis (was Conclusion of "use strict"...)

2009-03-20 Thread George Larson
Ooops! Those were v5.5 videos.. A little newer stuff is here: http://www.netbeans.org/kb/docs/screencasts.html On Fri, Mar 20, 2009 at 7:44 PM, George Larson wrote: > Netbeans does have some sick fanciness... Auto-suggest, leaving your > cursor over a variable momentarily highlights it everywh

Re: [PHP] Script Analysis (was Conclusion of "use strict"...)

2009-03-20 Thread George Larson
Netbeans does have some sick fanciness... Auto-suggest, leaving your cursor over a variable momentarily highlights it everywhere in the code and define labeled folding points. You can press CTRL-R to rename that variable everywhere it is used in the code. If you can figure out how to set it up w

Re: [PHP] Script Analysis (was Conclusion of "use strict"...)

2009-03-20 Thread Hans Schultz
On Fri, 20 Mar 2009 15:45:09 +0100, Virgilio Quilario wrote: On Fri, Mar 20, 2009 at 6:47 PM, Pierre Lilliman wrote: I have been using same program for some (not very long time), and I find it very useful, although it has some annoying things (inability to work with all kinds of inc

Re: [PHP] Script Analysis (was Conclusion of "use strict"...)

2009-03-20 Thread Virgilio Quilario
On Fri, Mar 20, 2009 at 6:47 PM, Pierre Lilliman wrote: > > I have been using same program for some (not very long time), and I find it > very useful, although it has some annoying things (inability to work with all > kinds of include expressions). Still I think every serious PHP developer > sh

Re: [PHP] Script Analysis (was Conclusion of "use strict"...)

2009-03-20 Thread Robert Cummings
On Fri, 2009-03-20 at 11:47 +0100, Pierre Lilliman wrote: > I have been using same program for some (not very long time), and I find it > very useful, although it has some annoying things (inability to work with all > kinds of include expressions). Still I think every serious PHP developer > sho

Re: [PHP] Script execution

2009-03-10 Thread Daniel Brown
On Tue, Mar 10, 2009 at 01:23, Paul M Foster wrote: > > (Dan, make the check out to... ;-) > > Paul I prefer PayPal. Thanks to the Postal Service, the cost of a stamp is probably more than a bribery or endorsement payment. :-\ -- daniel.br...@parasane.net || danbr...@php.net http://www.p

Re: [PHP] Script execution

2009-03-09 Thread Paul M Foster
On Mon, Mar 09, 2009 at 05:36:05PM -0400, George Larson wrote: > That's funny! > > I've been watching this and a few other lists (MySQL, local Linux Users' > Group) for a few days - weeks and I had wondered why the PHP list seemed > more hostile. :) Wow! This list is pretty cordial. I've been o

Re: [PHP] Script execution

2009-03-09 Thread Ray
On Monday 09 March 2009 15:38:37 Michael A. Peters wrote: > George Larson wrote: > > Thanks everybody! > > > > I guess I was a little vague. I'm working on an OpenSUSE setup with > > Apache, MySQL and PHP. I just knew that my confusion was because of my > > Windows up-bringing. > > > > The writin

Re: [PHP] Script execution

2009-03-09 Thread Nathan Rixham
haliphax wrote: On Mon, Mar 9, 2009 at 4:55 PM, Nathan Rixham wrote: Daniel Brown wrote: On Mon, Mar 9, 2009 at 17:39, haliphax wrote: That, or "***holes." That's what my name tag says. you got shot in the nametag 3 times? i dunno if that's good or bad luck! Yep. Now nobody can tell i

Re: [PHP] Script execution

2009-03-09 Thread Nathan Rixham
George Larson wrote: That's funny! I've been watching this and a few other lists (MySQL, local Linux Users' Group) for a few days - weeks and I had wondered why the PHP list seemed more hostile. :) may be something to do with the fact 95% of posts here could be covered by: - a 5 question "fa

Re: [PHP] Script execution

2009-03-09 Thread haliphax
On Mon, Mar 9, 2009 at 4:55 PM, Nathan Rixham wrote: > Daniel Brown wrote: >> >> On Mon, Mar 9, 2009 at 17:39, haliphax wrote: >>> >>> That, or "***holes." >> >>    That's what my name tag says. > > you got shot in the nametag 3 times? i dunno if that's good or bad luck! Yep. Now nobody can tell

Re: [PHP] Script execution

2009-03-09 Thread Nathan Rixham
Daniel Brown wrote: On Mon, Mar 9, 2009 at 17:39, haliphax wrote: That, or "***holes." That's what my name tag says. you got shot in the nametag 3 times? i dunno if that's good or bad luck! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/uns

Re: [PHP] Script execution

2009-03-09 Thread Daniel Brown
On Mon, Mar 9, 2009 at 17:39, haliphax wrote: > > That, or "***holes." That's what my name tag says. -- daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/ || http://www.pilotpig.net/ 50% Off All Shared Hosting Plans at PilotPig: Use Coupon DOW1 -- PHP General Mail

Re: [PHP] Script execution

2009-03-09 Thread haliphax
On Mon, Mar 9, 2009 at 4:36 PM, George Larson wrote: > That's funny! > > I've been watching this and a few other lists (MySQL, local Linux Users' > Group) for a few days - weeks and I had wondered why the PHP list seemed > more hostile.  :) In a word, I think "familiarity" sums it up. That, or "

Re: [PHP] Script execution

2009-03-09 Thread Michael A. Peters
George Larson wrote: Thanks everybody! I guess I was a little vague. I'm working on an OpenSUSE setup with Apache, MySQL and PHP. I just knew that my confusion was because of my Windows up-bringing. The writing I referred to was to a file. One example is I had a script that was pulling data

Re: [PHP] Script execution

2009-03-09 Thread George Larson
That's funny! I've been watching this and a few other lists (MySQL, local Linux Users' Group) for a few days - weeks and I had wondered why the PHP list seemed more hostile. :) On Mon, Mar 9, 2009 at 5:28 PM, Daniel Brown wrote: > On Mon, Mar 9, 2009 at 17:21, Daniel Brown wrote: > > > >R

Re: [PHP] Script execution

2009-03-09 Thread haliphax
On Mon, Mar 9, 2009 at 4:28 PM, Daniel Brown wrote: > On Mon, Mar 9, 2009 at 17:21, Daniel Brown wrote: >> >>    Re-read the context of that first paragraph from the OP and you'll >> see why I presume (as opposed to *ass*ume) that, despite his >> experience with Windows, this is a *NIX-like setup

Re: [PHP] Script execution

2009-03-09 Thread Daniel Brown
On Mon, Mar 9, 2009 at 17:21, Daniel Brown wrote: > >    Re-read the context of that first paragraph from the OP and you'll > see why I presume (as opposed to *ass*ume) that, despite his > experience with Windows, this is a *NIX-like setup. DISCLAIMER: This was supposed to be added to my seem

Re: [PHP] Script execution

2009-03-09 Thread George Larson
Thanks everybody! I guess I was a little vague. I'm working on an OpenSUSE setup with Apache, MySQL and PHP. I just knew that my confusion was because of my Windows up-bringing. The writing I referred to was to a file. One example is I had a script that was pulling data from a database and usi

Re: [PHP] Script execution

2009-03-09 Thread Daniel Brown
On Mon, Mar 9, 2009 at 17:17, haliphax wrote: > > OP is a Windows user. I am assuming that they are using Windows. Re-read the context of that first paragraph from the OP and you'll see why I presume (as opposed to *ass*ume) that, despite his experience with Windows, this is a *NIX-like setup

Re: [PHP] Script execution

2009-03-09 Thread haliphax
On Mon, Mar 9, 2009 at 4:04 PM, Daniel Brown wrote: > On Mon, Mar 9, 2009 at 16:59, George Larson wrote: >> >> Am I imagining things?  If not, how would I properly make them able to run >> through a browser? > >    You're not imagining things.  In general, unless set up with > SuExec privileges,

Re: [PHP] Script execution

2009-03-09 Thread Daniel Brown
On Mon, Mar 9, 2009 at 16:59, George Larson wrote: > > Am I imagining things?  If not, how would I properly make them able to run > through a browser? You're not imagining things. In general, unless set up with SuExec privileges, Apache (which is probably the HTTP server you're using) will r

Re: [PHP] Script execution

2009-03-09 Thread Ashley Sheridan
On Mon, 2009-03-09 at 16:59 -0400, George Larson wrote: > Hi everybody. > > The "problem" that I'm having is probably because I've got more of a Windows > background -- and it isn't so much a problem as a point of curiosity. > > I've recently noticed that when I write a script that they seem to h

Re: [PHP] Re: PHP script lag (5 secs) when declaring mime type.

2009-03-06 Thread 9el
On Fri, Mar 6, 2009 at 4:18 PM, Jsbeginner wrote: > Thankyou for the help, > > I will contact the script maintainer to ask him to work on this problem for > future updates, and for the moment I've commented out the line that > specifies the length. > I suppose that it won't cause any problems with

Re: [PHP] Re: PHP script lag (5 secs) when declaring mime type.

2009-03-06 Thread Jsbeginner
Thankyou for the help, I will contact the script maintainer to ask him to work on this problem for future updates, and for the moment I've commented out the line that specifies the length. I suppose that it won't cause any problems with files that are sent through this script that are not gzip

[PHP] Re: PHP script lag (5 secs) when declaring mime type.

2009-03-05 Thread Nisse Engström
On Thu, 5 Mar 2009 19:14:20 +0100, Nisse Engström wrote: > On Thu, 05 Mar 2009 15:45:35 +0100, Jsbeginner wrote: > >> > header('Content-Type: application/x-javascript'); >> header('Content-Length: '.filesize('test.js')); >> readfile('test.js'); >> ?> >> >> test.js is only a few lines long, and i

[PHP] Re: PHP script lag (5 secs) when declaring mime type.

2009-03-05 Thread Nisse Engström
On Thu, 05 Mar 2009 15:45:35 +0100, Jsbeginner wrote: > header('Content-Type: application/x-javascript'); > header('Content-Length: '.filesize('test.js')); > readfile('test.js'); > ?> > > test.js is only a few lines long, and if I remove the header content > type the file loads instantaniously

Re: [PHP] script hangs on curl_exec

2008-10-01 Thread Rene Veerman
Robert Cummings wrote: On Wed, 2008-10-01 at 17:31 +0200, Rene Veerman wrote: I have a script that uses curl to call a worker function on another server. For small workloads, it works just fine. But when my script processes a large zip-file and updates some status files, curl_exec never ret

Re: [PHP] script hangs on curl_exec

2008-10-01 Thread Robert Cummings
On Wed, 2008-10-01 at 17:31 +0200, Rene Veerman wrote: > I have a script that uses curl to call a worker function on another server. > For small workloads, it works just fine. > > But when my script processes a large zip-file and updates some status > files, curl_exec never returns the result dat

Re: [PHP] script stoped working over christmas ?

2007-12-31 Thread Joker7
In news: [EMAIL PROTECTED] - Jochem Maas wrote : >> Joker7 schreef: >> >> ... >> >> >> config.php >> > $max_summary = 6; >> $max_latest = 7; >> $summary_template = "t_summary.tp"; >> $article_template = "t_article.tp"; >> $password = "password"; >> latest.php >>

Re: [PHP] script stoped working over christmas ?

2007-12-30 Thread Richard Lynch
Dude, put some error checking in there... On Sat, December 29, 2007 5:23 am, Joker7 wrote: > Can anyone see why this has stopped working... > latest.php is used with include("/home/sever2/public_html/teaup/article/article_summary.php") > ?> to > show the latest news articles. > > Cheers > Chris >

Re: [PHP] script stoped working over christmas ?

2007-12-30 Thread Jochem Maas
Joker7 schreef: ... config.php >>> $max_summary = 6; $max_latest = 7; $summary_template = "t_summary.tp"; $article_template = "t_article.tp"; $password = "password"; latest.php >>> require('config.php'); $filename = "article_summary.p

Re: [PHP] script stoped working over christmas ?

2007-12-29 Thread Joker7
In news: [EMAIL PROTECTED] - "Zoltán Németh" wrote : >> 2007. 12. 29, szombat keltezéssel 11.23-kor Joker7 ezt írta: >>> Can anyone see why this has stopped working... >> >> what does it mean stopped working? >> what error message do you get? >> etc etc >> >> greets >> Zoltán Németh >> >>> latest.

Re: [PHP] script stoped working over christmas ?

2007-12-29 Thread Zoltán Németh
2007. 12. 29, szombat keltezéssel 11.23-kor Joker7 ezt írta: > Can anyone see why this has stopped working... what does it mean stopped working? what error message do you get? etc etc greets Zoltán Németh > latest.php is used with include("/home/sever2/public_html/teaup/article/article_summary.

Re: [PHP] Script feedback: insert string into another string

2007-05-03 Thread Tijnema !
I owe you and Tijnema a beer! Have a great day/night! Cheers, Micky I'm sorry, you have to wait another 9 months, because only than i can legally drink a beer :) (than i will be > 16 :) ) Tijnema -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsu

Re: [PHP] Script feedback: insert string into another string

2007-05-03 Thread Micky Hulse
Hi Richard, thanks again for the detailed reply, I really appreciate you help. Richard Lynch wrote: Counting words is almost always a Bad Idea, since you may have users who use big fat words (University professors and Market-speak) and you have have texters who, like, don't even use words... u

Re: [PHP] Script feedback: insert string into another string

2007-05-03 Thread Richard Lynch
On Wed, May 2, 2007 6:36 pm, Micky Hulse wrote: > 1. wordwrap() is a little different than the function I wrote because > it > counts characters only... I need to count words. I am sure wordwrap > could be modified to count words, but I have yet to really explore > this > option. Counting words is

Re: [PHP] Script feedback: insert string into another string

2007-05-02 Thread Micky Hulse
Hi Richard! Thanks again for your help on this one. ;) Richard Lynch wrote: These are from some non-PHP session/cookie management setup, I believe. Ahhh, very interesting! Thanks for the clarification. :) Call me paranoid. Better that than spammed! :D PS Still haven't figured out why you

Re: [PHP] Script feedback: insert string into another string

2007-05-02 Thread Micky Hulse
Hey Richard! Thanks for the reply. I was hoping someone would re-visit my questions. Richard Lynch wrote: I can GUARANTEE that PHP's wordwrap did NOT issue those cookies. Oh, for sure. I understand that. I guess what I was trying to say/ask was this: 1. wordwrap() is a little different than

Re: [PHP] Script feedback: insert string into another string

2007-05-02 Thread Richard Lynch
On Sat, April 28, 2007 5:31 pm, Micky Hulse wrote: > Brad Sumrall wrote: >> But! >> I am now noticing that the main page provides cookies called >> _utma >> _utmb >> _utmc >> _utmz >> >> Hmmm > > Wha? Never thought of that. > > It looks like wordwrap() may not be what I am looking for (

RE: [PHP] Script feedback: insert string into another string

2007-05-02 Thread Richard Lynch
On Sat, April 28, 2007 5:10 pm, Brad Sumrall wrote: > But! > I am now noticing that the main page provides cookies called > _utma > _utmb > _utmc > _utmz > > Hmmm Actually, they each have an extra underscore on front, I think. __utma etc. These are from some non-PHP session/cookie

Re: [PHP] Script feedback: insert string into another string

2007-04-28 Thread Micky Hulse
Micky Hulse wrote: Allowing cookies sounds like a security hole... Any suggestions for beefing-up my security would be spectacular! :) Ahhh, would that have anything to do with XSS? I thought striptags() would take care of such problems

  1   2   3   4   >