Re: [PHP] progress indicators in browsers for long running php scripts?

2012-06-02 Thread Matijn Woudt
On Fri, Jun 1, 2012 at 3:45 PM, rene7705 wrote: > Hi.. > > I've got several scripts now that may run for a long time; the > self-test script for my htmlMicroscope, my serviceLog component when > it calculates totals for a large number of hits, a curl script that is > likely to one day crawl a hund

[PHP] progress indicators in browsers for long running php scripts?

2012-06-01 Thread rene7705
Hi.. I've got several scripts now that may run for a long time; the self-test script for my htmlMicroscope, my serviceLog component when it calculates totals for a large number of hits, a curl script that is likely to one day crawl a hundred or so RSS urls in a single update, etc, etc. I'd like t

Re: [PHP] Using stand-alone PHP scripts with Drupal

2011-08-24 Thread Florian Lemaitre
Le 24/08/2011 12:24, Geoff Shang a écrit : Hi, I know this is probably more a Drupal question, but I'm guessing some here have probably had to deal with this. I've written some PHP code which works just fine on its own. Now someone wants to include it in their Drupal site, with the regular

[PHP] Using stand-alone PHP scripts with Drupal

2011-08-24 Thread Geoff Shang
Hi, I know this is probably more a Drupal question, but I'm guessing some here have probably had to deal with this. I've written some PHP code which works just fine on its own. Now someone wants to include it in their Drupal site, with the regular headers and footers for their site surround

Re: [PHP] insert to table in php scripts

2011-05-28 Thread Negin Nickparsa
Thanks Viraj,I'll read it.

Re: [PHP] insert to table in php scripts

2011-05-28 Thread viraj
hi nigen, the intention of that 'exit' was to stop the script temporarily to avoid any second time inserts. i think you better figure-out what caused your script to insert same data twice in a single form post. to hide the form, 'exit' is not the best option. there are several different ways, one

Re: [PHP] insert to table in php scripts

2011-05-28 Thread Negin Nickparsa
in this topic problem WAS this one: insert to a table twice(that was solved) and on that post problem is this one: working with echo html then insert to a table (problem in $_POST) I thought it is very different am i wrong?

Re: [PHP] insert to table in php scripts

2011-05-28 Thread Negin Nickparsa
cause it's in another topic!!! and another problem! this problem was solved i had another problem what do you mean!?

Re: [PHP] insert to table in php scripts

2011-05-28 Thread Igor Konforti
But why do you double-post your question? http://news.php.net/php.general/313198 ? On Sat, May 28, 2011 at 11:21, Negin Nickparsa wrote: > i'm wondering that what was the problem! > why with just a session it now works propely!!! > how! >

Re: [PHP] insert to table in php scripts

2011-05-28 Thread Negin Nickparsa
i'm wondering that what was the problem! why with just a session it now works propely!!! how!

Re: [PHP] insert to table in php scripts

2011-05-28 Thread Lester Caine
Negin Nickparsa wrote: I click the submit button just one time! not twice but when i go to MySql and select * from it it shows me happening two times The code looks OK, so something is hitting it twice. I normally have a unique index on anything that I do not want duplicates in - which would the

Re: [PHP] insert to table in php scripts

2011-05-28 Thread Negin Nickparsa
i used your exit too,yes it's better to hide the form after registration:)

Re: [PHP] insert to table in php scripts

2011-05-28 Thread Negin Nickparsa
Yes viraj it was in both tables

Re: [PHP] insert to table in php scripts

2011-05-28 Thread Negin Nickparsa
Hi viraj intresting! i changed the code to this: $kind=$_SESSION['s3']; $query1="insert into user(kind,user,pass,name)values('$kind','$str','$str2','$str3')"; $result1=mysql_query($query1); i set the session in my another page and now it works properly:D LOL!!

Re: [PHP] insert to table in php scripts

2011-05-28 Thread viraj
hi negin, do you get duplicate inserts into both tables? if yes, try an 'exit();' right after the success message; echo "you have been registered successfully!"; exit(); this will stop the script after the message, and you wont see the form either. at this point check the tables for duplicate rec

Re: [PHP] insert to table in php scripts

2011-05-28 Thread Negin Nickparsa
I click the submit button just one time! not twice but when i go to MySql and select * from it it shows me happening two times

Re: [PHP] insert to table in php scripts

2011-05-28 Thread Negin Nickparsa
Consistently here is the code: Registration Complete the form below: Name: Last name: Username: Password:

Re: [PHP] insert to table in php scripts

2011-05-28 Thread Lester Caine
Negin Nickparsa wrote: I have a code that i get the $_POST's result and then insert them in tables of Mysql it can run without error but it'll insert in the table twice and i don't know why. when I click the submit then with array_key_exists I go to if statement and insert it. i'll show the code

[PHP] insert to table in php scripts

2011-05-28 Thread Negin Nickparsa
I have a code that i get the $_POST's result and then insert them in tables of Mysql it can run without error but it'll insert in the table twice and i don't know why. when I click the submit then with array_key_exists I go to if statement and insert it. i'll show the code if someone have time help

Re: [PHP] Scripts running twice

2010-10-12 Thread Alexander Schrijver
On Tue, Oct 12, 2010 at 07:52:46PM +0100, Ashley Sheridan wrote: > >On Tue, 2010-10-12 at 20:45 +0200, Alexander Schrijver wrote: > > On Tue, Oct 12, 2010 at 05:29:39PM +0100, [1]...@ashleysheridan.co.uk wrote: > > That's probably it then! Some browsers make multiple requests to speed up > >

Re: [PHP] Scripts running twice

2010-10-12 Thread Ashley Sheridan
On Tue, 2010-10-12 at 20:45 +0200, Alexander Schrijver wrote: > On Tue, Oct 12, 2010 at 05:29:39PM +0100, a...@ashleysheridan.co.uk wrote: > > That's probably it then! Some browsers make multiple requests to speed up > > rendering of a page. > > Do you have any examples of browsers which do this

Re: [PHP] Scripts running twice

2010-10-12 Thread a...@ashleysheridan.co.uk
That's probably it then! Some browsers make multiple requests to speed up rendering of a page. Thanks, Ash http://www.ashleysheridan.co.uk - Reply message - From: "Alexis" Date: Tue, Oct 12, 2010 17:16 Subject: [PHP] Scripts running twice To: If you mean how am I

Re: [PHP] Scripts running twice

2010-10-12 Thread Richard Quadling
ponse...checked and no duplicates Richard >>>>> >>>>> On 11/10/10 14:14, Richard Quadling wrote: >>>>>> >>>>>> On 11 October 2010 21:10, Alexis >>>>>>  wrote: >>>>>>> >>>>>>&g

Re: [PHP] Scripts running twice

2010-10-12 Thread Kranthi Krishna
apache log files will be of help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Scripts running twice

2010-10-12 Thread Alexis
quick response...checked and no duplicates Richard On 11/10/10 14:14, Richard Quadling wrote: On 11 October 2010 21:10, Alexis wrote: Hi, A very vague question here I am afraidI have quite a number of php scripts running on a WinXp box using the built in Scheduler. Everything worked

Re: [PHP] Scripts running twice

2010-10-12 Thread Richard Quadling
t; On 11/10/10 14:14, Richard Quadling wrote: >>>> >>>> On 11 October 2010 21:10, Alexis    wrote: >>>>> >>>>> Hi, >>>>> >>>>> A very vague question here I am afraidI have quite a number of php >&g

Re: [PHP] Scripts running twice

2010-10-11 Thread Alexis
I have quite a number of php scripts running on a WinXp box using the built in Scheduler. Everything worked fine for years until one day an update was done...cannot remember if it was on PHP, Apache, Mysql or the firefox browser, but now most but not all, of the scripts run twice! I was going

Re: [PHP] Scripts running twice

2010-10-11 Thread Richard Quadling
On 11 October 2010 21:20, Alexis wrote: > Thanks for the quick response...checked and no duplicates Richard > > On 11/10/10 14:14, Richard Quadling wrote: >> >> On 11 October 2010 21:10, Alexis  wrote: >>> >>> Hi, >>> >>> A very vague

Re: [PHP] Scripts running twice

2010-10-11 Thread Alexis
Thanks for the quick response...checked and no duplicates Richard On 11/10/10 14:14, Richard Quadling wrote: On 11 October 2010 21:10, Alexis wrote: Hi, A very vague question here I am afraidI have quite a number of php scripts running on a WinXp box using the built in Scheduler

Re: [PHP] Scripts running twice

2010-10-11 Thread Richard Quadling
On 11 October 2010 21:10, Alexis wrote: > Hi, > > A very vague question here I am afraidI have quite a number of php > scripts running on a WinXp box using the built in Scheduler. > > Everything worked fine for years until one day an update was done...cannot > reme

[PHP] Scripts running twice

2010-10-11 Thread Alexis
Hi, A very vague question here I am afraidI have quite a number of php scripts running on a WinXp box using the built in Scheduler. Everything worked fine for years until one day an update was done...cannot remember if it was on PHP, Apache, Mysql or the firefox browser, but now most

Re: [PHP] Protecting PHP scripts called via AJAX from evil

2010-08-06 Thread Marc Guay
Thanks everyone. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Protecting PHP scripts called via AJAX from evil

2010-08-06 Thread tedd
At 9:41 AM -0400 8/6/10, Marc Guay wrote: Hi folks, I'm looking for a straightforward way to protect PHP files which are called via AJAX from being called from outside my application. Currently, someone could forseeably open the console and watch the javascript post variables to a public file (a

Re: [PHP] Protecting PHP scripts called via AJAX from evil

2010-08-06 Thread Joshua Kehn
On Aug 6, 2010, at 9:41 AM, Marc Guay wrote: > Hi folks, > > I'm looking for a straightforward way to protect PHP files which are > called via AJAX from being called from outside my application. > Currently, someone could forseeably open the console and watch the > javascript post variables to a

Re: [PHP] Protecting PHP scripts called via AJAX from evil

2010-08-06 Thread Ashley Sheridan
On Fri, 2010-08-06 at 09:41 -0400, Marc Guay wrote: > Hi folks, > > I'm looking for a straightforward way to protect PHP files which are > called via AJAX from being called from outside my application. > Currently, someone could forseeably open the console and watch the > javascript post variable

[PHP] Protecting PHP scripts called via AJAX from evil

2010-08-06 Thread Marc Guay
Hi folks, I'm looking for a straightforward way to protect PHP files which are called via AJAX from being called from outside my application. Currently, someone could forseeably open the console and watch the javascript post variables to a public file (actions/delete_thing.php) and then use this k

[PHP] scripts never fork: Unable to fork

2010-03-31 Thread Eduardo Nunes
Hi! I am having this issue on my Apache 2.2.13 webserver running PHP 5.2.3 on a Kernel 2.6.30.4 Linux Box. error_log: [Sat Mar 20 23:41:34 2010] [error] [client 127.0.0.1] PHP Warning: exec() [function.exec]: Unable to fork [cat /proc/loadavg] in /server/apache/htdocs/test.php on line 3 The co

Re: [PHP] Is there any considerations for not putting php scripts in tmpfs?

2009-08-10 Thread Peter Wang
from a > disk-based > > dir when machine boot up. > > > > so may i put all my php scripts on a tmpfs to speed it up? would that > cause > > other issues? > > > > thanks for your advices. > > > > Considering that in the main PHP scripts are readon

Re: [PHP] Is there any considerations for not putting php scripts in tmpfs?

2009-08-10 Thread Richard Quadling
it doesn't matter about data loss caused by > machine restart/poweroff. > > since it is not that difficult to restore files on a tmpfs from a disk-based > dir when machine boot up. > > so may i put all my php scripts on a tmpfs to speed it up?  would that cause > other issues

[PHP] Is there any considerations for not putting php scripts in tmpfs?

2009-08-10 Thread Peter Wang
start/poweroff. since it is not that difficult to restore files on a tmpfs from a disk-based dir when machine boot up. so may i put all my php scripts on a tmpfs to speed it up? would that cause other issues? thanks for your advices.

Re: [PHP] Pausing PHP scripts

2009-02-06 Thread Phpster
Sleep(20); will pause it for 20 secs Bastien Sent from my iPod On Feb 6, 2009, at 0:37, Ron Piggott wrote: Is there a way to pause a PHP script while it is executing? Ron -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Pausing PHP scripts

2009-02-05 Thread Sudheer
Ron Piggott wrote: Is there a way to pause a PHP script while it is executing? Ron http://www.php.net/manual/en/function.sleep.php -- With warm regards, Sudheer. S Business: http://binaryvibes.co.in, Tech stuff: http://techchorus.net, Personal: http://sudheer.net -- PHP General Mailin

[PHP] Pausing PHP scripts

2009-02-05 Thread Ron Piggott
Is there a way to pause a PHP script while it is executing? Ron

Re: [PHP] standard safe permissions for php scripts in web directory

2008-11-14 Thread Thodoris
Sounds like a weird question though :( what should be standard safe php script/directory permissions under Apache. This can vary in some cases. Generally speaking all scripts that ran by apache (using the php module) are using the rights of the user that apache is running as. So this user

Re: [PHP] standard safe permissions for php scripts in web directory

2008-11-13 Thread Chris
Noor Ahmed Afridi wrote: Sounds like a weird question though :( what should be standard safe php script/directory permissions under Apache. I don't understand the question. For the php scripts themselves or for stuff that the php scripts action (eg create dirs/files) ? It depends o

[PHP] standard safe permissions for php scripts in web directory

2008-11-13 Thread Noor Ahmed Afridi
Sounds like a weird question though :( what should be standard safe php script/directory permissions under Apache. -- Regards, Noor Afridi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Debugging PHP scripts

2008-08-29 Thread Al
Edward Diener wrote: I am fairly new to PHP. What is the best way of debugging PHP scripts ? I have put in echo statements to tell me what is happening, but perhaps there are better methods. I have a PHP script on a server, which I access from a client side program ( written in C++ ) and

Re: [PHP] Debugging PHP scripts

2008-08-29 Thread Brady Mitchell
On Aug 29, 2008, at 851AM, Edward Diener wrote: I have not looked into PHP IDEs at all so far. Any recommendations ? Thanks ! Please don't start this up again. Check the "PHP IDE Needed" thread that has been active for the past several days or search the list archives. http://marc.info/

Re: [PHP] Debugging PHP scripts

2008-08-29 Thread Dan Joseph
On Fri, Aug 29, 2008 at 11:51 AM, Edward Diener <[EMAIL PROTECTED]>wrote: > Dan Joseph wrote: > >> On Fri, Aug 29, 2008 at 11:33 AM, Edward Diener <[EMAIL PROTECTED] >> >wrote: >> >> > I have not looked into PHP IDEs at all so far. Any recommendations ? Thanks > ! > > > -- > PHP General Mailing Li

Re: [PHP] Debugging PHP scripts

2008-08-29 Thread Edward Diener
Dan Joseph wrote: On Fri, Aug 29, 2008 at 11:33 AM, Edward Diener <[EMAIL PROTECTED]>wrote: I am fairly new to PHP. What is the best way of debugging PHP scripts ? I have put in echo statements to tell me what is happening, but perhaps there are better methods. I have a PHP scrip

Re: [PHP] Debugging PHP scripts

2008-08-29 Thread Dan Joseph
On Fri, Aug 29, 2008 at 11:33 AM, Edward Diener <[EMAIL PROTECTED]>wrote: > I am fairly new to PHP. What is the best way of debugging PHP scripts ? > > I have put in echo statements to tell me what is happening, but perhaps > there are better methods. > > I have a PHP scr

[PHP] Debugging PHP scripts

2008-08-29 Thread Edward Diener
I am fairly new to PHP. What is the best way of debugging PHP scripts ? I have put in echo statements to tell me what is happening, but perhaps there are better methods. I have a PHP script on a server, which I access from a client side program ( written in C++ ) and the script is not

[PHP] Scripts for removing Reg entries

2008-08-07 Thread Perkins, Ryan
I was looking thru some of the scripts that were mentioned and I am wondering if there is a way to write on that will delete registry entries? I am trying to uninstall Office 97 on XP machines and there are a lot of pieces left after the uninstall has run. I would need to look and see if the entry

Re: [PHP] Scripts slowing down?

2008-05-14 Thread René Leboeuf
Per Jessen a écrit : René Leboeuf wrote: I'm running a large website. I have some mailing scripts that take days to run. I noticed these scripts slow down with time, sometimes going to an almost complete stop (no mail sent for several minutes). The source code is trivial and can't contain a l

Re: [PHP] Scripts slowing down?

2008-05-13 Thread Per Jessen
René Leboeuf wrote: > I'm running a large website. I have some mailing scripts that take > days to run. > > I noticed these scripts slow down with time, sometimes going to an > almost complete stop (no mail sent for several minutes). > > The source code is trivial and can't contain a loop. I mon

[PHP] Scripts slowing down?

2008-05-13 Thread René Leboeuf
Hi. I'm running a large website. I have some mailing scripts that take days to run. I noticed these scripts slow down with time, sometimes going to an almost complete stop (no mail sent for several minutes). The source code is trivial and can't contain a loop. I monitored the memory usage and c

[PHP] Re: How to create combo-boxes/list boxes connected with MS SQL Serverdatabase in PHP scripts

2008-04-10 Thread Manuel Lemos
Hello, on 04/09/2008 02:27 AM [EMAIL PROTECTED] said the following: > Sir > I want to create combo-boxes/list-boxes from a table which is available in > MS-Sql server database. I have established connectivity with ms-sql server > database using odbc. > how can i create combo-

[PHP] How to create combo-boxes/list boxes connected with MS SQL Server database in PHP scripts

2008-04-08 Thread punhsr
Sir I want to create combo-boxes/list-boxes from a table which is available in MS-Sql server database. I have established connectivity with ms-sql server database using odbc. how can i create combo-boxes in my php scripts? waiting for an early reply. With regards Pardeep Singh Scientist-C NIC

RE: [PHP] Scripts are fast locally, but slow on remote server

2008-01-16 Thread Bastien Koert
memory limitation in the php ini? bastien > Date: Wed, 16 Jan 2008 16:29:53 +0900> From: [EMAIL PROTECTED]> To: [EMAIL > PROTECTED]> CC: php-general@lists.php.net> Subject: Re: [PHP] Scripts are > fast locally, but slow on remote server> > Per Jessen,>

Re: [PHP] Scripts are fast locally, but slow on remote server

2008-01-16 Thread Jochem Maas
own to dns. On Wed, January 16, 2008 1:02 am, Dave M G wrote: PHP list, I have a set of PHP scripts that seem to be efficient and quick enough both on my home testing environment, and a few different web-hosting services I use. However, on one particular web-hosting service, there is often a ve

Re: [PHP] Scripts are fast locally, but slow on remote server

2008-01-16 Thread Richard Lynch
ver, and it loads > up > quickly. Then I go to one of my .php pages, and the slowdown occurs. > > If it were a name server issue, I would expect the slowdown to happen > regardless of which page I load first. > > So, I guess to be more specific, the slowdown happens the first

Re: [PHP] Scripts are fast locally, but slow on remote server

2008-01-16 Thread Richard Lynch
Are you relying on autoload or anything of that nature to load in class files, perhaps? On Wed, January 16, 2008 1:02 am, Dave M G wrote: > PHP list, > > I have a set of PHP scripts that seem to be efficient and quick enough > both on my home testing environment, and a few different

Re: [PHP] Scripts are fast locally, but slow on remote server

2008-01-15 Thread Chris
d the slowdown occurs. If it were a name server issue, I would expect the slowdown to happen regardless of which page I load first. So, I guess to be more specific, the slowdown happens the first time I load one of my PHP scripts on this site, not the first time I access the site. And what doe

Re: [PHP] Scripts are fast locally, but slow on remote server

2008-01-15 Thread Per Jessen
up. > So, I guess to be more specific, the slowdown happens the first time I > load one of my PHP scripts on this site, not the first time I access > the site. Have a look at which external services you use - database, nameserver, ldap etc. I'm assuming an initial loop is out of the qu

Re: [PHP] Scripts are fast locally, but slow on remote server

2008-01-15 Thread Dave M G
If it were a name server issue, I would expect the slowdown to happen regardless of which page I load first. So, I guess to be more specific, the slowdown happens the first time I load one of my PHP scripts on this site, not the first time I access the site. -- Dave M G -- PHP General Ma

Re: [PHP] Scripts are fast locally, but slow on remote server

2008-01-15 Thread Per Jessen
Dave M G wrote: > PHP list, > > I have a set of PHP scripts that seem to be efficient and quick enough > both on my home testing environment, and a few different web-hosting > services I use. > > However, on one particular web-hosting service, there is often a very > p

[PHP] Scripts are fast locally, but slow on remote server

2008-01-15 Thread Dave M G
PHP list, I have a set of PHP scripts that seem to be efficient and quick enough both on my home testing environment, and a few different web-hosting services I use. However, on one particular web-hosting service, there is often a very painful 10 second (!) lag when first loading up the

Re: [PHP] PHP scripts with shebang line: Questions

2007-07-13 Thread Richard Lynch
AFAICS, this is a FreeBSD question... That said, you could have a work-around where you put your 2 -d settings into a single php.mini :-) file and then use one -c to pull that in... On Fri, July 13, 2007 8:23 pm, sone gone wrote: > Hi, > > i want to question about shebang line on FreeBSD6. > > T

[PHP] PHP scripts with shebang line: Questions

2007-07-13 Thread sone gone
Hi, i want to question about shebang line on FreeBSD6. This script works on FreeBSD4, but doesn't work on FreeBSD6 #!/usr/local/bin/php -d open_basedir=/path i understood the reason from this pages. http://freebsd.monkey.org/freebsd-questions/200606/msg01073.html http://www.in-ulm.de/~mascheck

Re: [PHP] Re: Send HTML from PHP scripts ...

2007-05-24 Thread Chris
If you are intending to send HTML email you must set the appropriate mime-type in the header. And the rest ;) It's pretty hard to get it all working properly. I'd suggest the OP check out http://phpmailer.sourceforge.net/ It does most of the work for you. -- Postgresql & php tutorials http:

Re: [PHP] two php scripts with same $_SESSION variables

2007-05-24 Thread Richard Lynch
On Thu, May 24, 2007 4:50 pm, Stut wrote: > Richard Lynch wrote: >> On Thu, May 24, 2007 7:44 am, Stut wrote: >>> Darren Whitlen wrote: Stut.. I've only been here one day, and I think I'm right in saying that your the one around here that gets annoyed really easy ;) >>> Not re

Re: [PHP] two php scripts with same $_SESSION variables

2007-05-24 Thread Stut
Richard Lynch wrote: On Thu, May 24, 2007 7:44 am, Stut wrote: Darren Whitlen wrote: Stut.. I've only been here one day, and I think I'm right in saying that your the one around here that gets annoyed really easy ;) Not really, I just tend to be a bit more vocal about it. I daresay every reg

Re: [PHP] two php scripts with same $_SESSION variables

2007-05-24 Thread Richard Lynch
On Thu, May 24, 2007 7:44 am, Stut wrote: > Darren Whitlen wrote: >> Stut.. >> I've only been here one day, and I think I'm right in saying that >> your >> the one around here that gets annoyed really easy ;) > > Not really, I just tend to be a bit more vocal about it. I daresay every regular has

Re: [PHP] two php scripts with same $_SESSION variables

2007-05-24 Thread Richard Lynch
On Thu, May 24, 2007 6:23 am, Jean-Christophe Roux wrote: > Hello, > I have folder A with the following php script: > session_start(); > $_SESSION['dummy']=10; > echo $_SESSION['dummy']; > ?> > in folder B (same level as A), there is > session_start(); > echo $_SESSION['dummy']; > ?> > when run

Re: [PHP] two php scripts with same $_SESSION variables

2007-05-24 Thread Stut
Jean-Christophe Roux wrote: Stut wrote >What you're wanting to do can be achieved by setting the path on the >session cookies. You may be able to do this by calling ini_set to change >session.cookie_path before calling session_start. ini_set('session.cookie_path', '/A/'); session_start(); Tha

Re: [PHP] two php scripts with same $_SESSION variables

2007-05-24 Thread Jean-Christophe Roux
Stut wrote >What you're wanting to do can be achieved by setting the path on the >session cookies. You may be able to do this by calling ini_set to change >session.cookie_path before calling session_start. ini_set('session.cookie_path', '/A/'); session_start(); That's a good solution; it works f

RE: [PHP] two php scripts with same $_SESSION variables

2007-05-24 Thread Ford, Mike
On 24 May 2007 13:22, Jean-Christophe Roux wrote: > Hello, > > Thank you for the answers. The issue is that the same codes > are in folders A and B. When they are run from two different > browsers, I am getting the behavior I 'd like to see with two > session ids being created and therefore no sh

Re: [PHP] two php scripts with same $_SESSION variables

2007-05-24 Thread Jochem Maas
Darren Whitlen wrote: > Stut wrote: ... > > Stut.. > I've only been here one day, and I think I'm right in saying that your > the one around here that gets annoyed really easy ;) when he goes quiet - that's when it's time to worry ;-) -- PHP General Mailing List (http://www.php.net/) To unsub

RE: [PHP] two php scripts with same $_SESSION variables

2007-05-24 Thread Edward Kay
> Stut.. > I've only been here one day, and I think I'm right in saying that your > the one around here that gets annoyed really easy ;) I don't think Stut gets annoyed more than any of the others on this list. Please remember though that a) Stut's answers tend to be very high quality and b) Top

Re: [PHP] two php scripts with same $_SESSION variables

2007-05-24 Thread Stut
Darren Whitlen wrote: Stut.. I've only been here one day, and I think I'm right in saying that your the one around here that gets annoyed really easy ;) Not really, I just tend to be a bit more vocal about it. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: htt

Re: [PHP] two php scripts with same $_SESSION variables

2007-05-24 Thread Darren Whitlen
sday, May 24, 2007 7:34:24 AM Subject: Re: [PHP] two php scripts with same $_SESSION variables Jean-Christophe Roux wrote: > I have folder A with the following php script: > session_start(); > $_SESSION['dummy']=10; > echo $_SESSION['dummy']; > ?> >

Re: [PHP] two php scripts with same $_SESSION variables

2007-05-24 Thread Stut
007 7:34:24 AM Subject: Re: [PHP] two php scripts with same $_SESSION variables Jean-Christophe Roux wrote: > I have folder A with the following php script: > session_start(); > $_SESSION['dummy']=10; > echo $_SESSION['dummy']; > ?> > in fold

Re: [PHP] two php scripts with same $_SESSION variables

2007-05-24 Thread Darren Whitlen
ral@lists.php.net Sent: Thursday, May 24, 2007 7:34:24 AM Subject: Re: [PHP] two php scripts with same $_SESSION variables Jean-Christophe Roux wrote: I have folder A with the following php script: in folder B (same level as A), there is when running the script in B, in can see the value 10. Ho

Re: [PHP] two php scripts with same $_SESSION variables

2007-05-24 Thread Jean-Christophe Roux
y, May 24, 2007 7:34:24 AM Subject: Re: [PHP] two php scripts with same $_SESSION variables Jean-Christophe Roux wrote: > I have folder A with the following php script: > session_start(); > $_SESSION['dummy']=10; > echo $_SESSION['dummy']; > ?> > in folde

Re: [PHP] two php scripts with same $_SESSION variables

2007-05-24 Thread Paul Scott
On Thu, 2007-05-24 at 04:23 -0700, Jean-Christophe Roux wrote: > when running the script in B, in can see the value 10. How can I make sure > that the $_SESSION['dummy'] is not shared between the two scripts? I could > change the name but that would not be convenient. > I think you are missing

[PHP] Re: two php scripts with same $_SESSION variables

2007-05-24 Thread Darren Whitlen
Jean-Christophe Roux wrote: Hello, I have folder A with the following php script: in folder B (same level as A), there is when running the script in B, in can see the value 10. How can I make sure that the $_SESSION['dummy'] is not shared between the two scripts? I could change the name but t

Re: [PHP] two php scripts with same $_SESSION variables

2007-05-24 Thread Stut
Jean-Christophe Roux wrote: I have folder A with the following php script: in folder B (same level as A), there is when running the script in B, in can see the value 10. How can I make sure that the $_SESSION['dummy'] is not shared between the two scripts? I could change the name but that wou

[PHP] two php scripts with same $_SESSION variables

2007-05-24 Thread Jean-Christophe Roux
Hello, I have folder A with the following php script: in folder B (same level as A), there is when running the script in B, in can see the value 10. How can I make sure that the $_SESSION['dummy'] is not shared between the two scripts? I could change the name but that would not be convenient.

[PHP] Re: Send HTML from PHP scripts ...

2007-05-18 Thread Jonathan
Kuldip Mond wrote: Hi, I am looking to send a HTML page via a PHP script. The currentl method I use is : mail($email,"Kuldip Test email for multiple reciptient - $coursename - $coursedate"," TEST ", "FROM: $adminemail"); However I can not see how to send H

[PHP] Re: Send HTML from PHP scripts ...

2007-05-18 Thread Steve
Might want to put a small bit of effort in first... http://us.php.net/manual/en/function.mail.php Example 1075 ""Kuldip Mond"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hi, I am looking to send a HTML page via a PHP script. The currentl method I use is : mail(

[PHP] Send HTML from PHP scripts ...

2007-05-18 Thread Kuldip Mond
Hi, I am looking to send a HTML page via a PHP script. The currentl method I use is : mail($email,"Kuldip Test email for multiple reciptient - $coursename - $coursedate"," TEST ", "FROM: $adminemail"); However I can not see how to send HTML ?. Can you h

Re: [PHP] sendmail smrsh symlinks not working against php scripts

2007-04-21 Thread dan1
On Fri, April 20, 2007 10:27 am, dan1 wrote: I would simply like the script to be executed, when passed as a symlink as argument, instead of a hardlink. The problem is that when I specify the script to be executed (ecardbounce.php) as being a symlink, in the /etc/aliases like this: ecard-bounce:

Re: [PHP] sendmail smrsh symlinks not working against php scripts

2007-04-20 Thread Richard Lynch
On Fri, April 20, 2007 10:27 am, dan1 wrote: > I would simply like the script to be executed, when passed as a > symlink as > argument, instead of a hardlink. > The problem is that when I specify the script to be executed > (ecardbounce.php) as being a symlink, in the /etc/aliases like this: > ecar

Re: [PHP] sendmail smrsh symlinks not working against php scripts

2007-04-20 Thread dan1
However, if I put a hardlink instead of the symlink, all works fine! The permissions of the symlink and the file linekd are all 777. Has anyone already had this problem before, or would anyone have an idea of the cause? smrsh itself may disallow symlinks. Wouldn't surprise me. Why not just us

Re: [PHP] sendmail smrsh symlinks not working against php scripts

2007-04-19 Thread Richard Lynch
On Thu, April 19, 2007 1:33 pm, dan1 wrote: > This is a poor place to find an answer, because the one thing that > stands out is that this is a problem with php, not Sendmail, and this > is > a Sendmail newsgroup not a php newsgroup. Your dangerously outdated > version of php is running and emitt

Re: [PHP] sendmail smrsh symlinks not working against php scripts

2007-04-19 Thread Richard Lynch
On Thu, April 19, 2007 1:23 pm, dan1 wrote: >>> However, if I put a hardlink instead of the symlink, all works >>> fine! >>> The permissions of the symlink and the file linekd are all 777. >>> >>> Has anyone already had this problem before, or would anyone have an >>> idea of >>> the cause? >> >> s

Re: [PHP] sendmail smrsh symlinks not working against php scripts

2007-04-19 Thread dan1
smrsh itself may disallow symlinks. Wouldn't surprise me. Why not just use #!/usr/bin/php -q at the top of your PHP script? Something else to my previous answer. Here is the answer of the sendmail guys. Maybe they are still right? Would PHP have a problem to handle symlinked input files? I ha

Re: [PHP] sendmail smrsh symlinks not working against php scripts

2007-04-19 Thread dan1
However, if I put a hardlink instead of the symlink, all works fine! The permissions of the symlink and the file linekd are all 777. Has anyone already had this problem before, or would anyone have an idea of the cause? smrsh itself may disallow symlinks. Wouldn't surprise me. Why not just us

Re: [PHP] sendmail smrsh symlinks not working against php scripts

2007-04-18 Thread Richard Lynch
On Wed, April 18, 2007 11:20 am, dan1 wrote: > I am trying to forward the e-mails received to one address towards a > php > script, under CentOS 4 (RHEL). > I am trying all I can but nothing does. > > I have edited my /etc/aliases file and added this line. > ecard-bounce: "|/usr/bin/php /etc/smrsh/

[PHP] sendmail smrsh symlinks not working against php scripts

2007-04-18 Thread dan1
Hello. I am trying to forward the e-mails received to one address towards a php script, under CentOS 4 (RHEL). I am trying all I can but nothing does. I have edited my /etc/aliases file and added this line. ecard-bounce: "|/usr/bin/php /etc/smrsh/ecardbounce.php" Then, of course I do a 'newalias

  1   2   3   4   >