[PHP] Forms and destroying values

2007-01-12 Thread Beauford
Hi, How do I stop contents of a form from being readded to the database if the user hits the refresh button on their browser. I have tried to unset/destroy the variables in several different ways, but it still does it. After the info is written I unset the variables by using unset($var1,

Re: [PHP] Forms and destroying values

2007-01-12 Thread Fredrik Thunberg
It doesn't help to reset any values. The form data is being resent by the browser itself, just if the user presses the submit button again with the same data. What you could do is mabye use a session to see if the particular user has sent form data before. /Fredrik Thunberg Beauford skrev:

Re: [PHP] Forms and destroying values

2007-01-12 Thread Miguel J. Jiménez
El Fri, 12 Jan 2007 03:27:12 -0500 Beauford [EMAIL PROTECTED] escribió: Hi, How do I stop contents of a form from being readded to the database if the user hits the refresh button on their browser. I have tried to unset/destroy the variables in several different ways, but it still does

Re: [PHP] Forms and destroying values

2007-01-12 Thread clive
Beauford wrote: Hi, How do I stop contents of a form from being readded to the database if the user hits the refresh button on their browser. Perhaps a session variable that is set once the form is submitted. Depending on the data you could also look at having a primary key in the database.

[PHP] RE: RE: web analytics

2007-01-12 Thread Kencana
Hi, can google analytics keep track on the search keywords of the website? I got one search features (connected to my database) in my web page. so i need to keep track on the user search history. Thank you Regards, Kencana Edward Kay wrote: It depends what you mean by web performance. Do

Re: [PHP] file_get_contents gets 404 error

2007-01-12 Thread Németh Zoltán
2007. 01. 11, csütörtök keltezéssel 22.11-kor Frank Arensmeier ezt írta: In the manual it says: You can use a URL as a filename with this function if the fopen wrappers have been enabled First of all, I would check your php.ini file. If everything is ok (fopen wrappers are on),

[PHP] apache and include

2007-01-12 Thread Ross
I recently installed php5 with apache (replacing php4and IIS). I am moving all my folders to the htdocs folder and but when I run a page the include does not work ?php include ('menu.php'); ? Nothing had change the directory stucture is the same. there are no warnings or errors jsut a big

Re: [PHP] Normalized Numbers

2007-01-12 Thread Arpad Ray
Have you checked out the PEAR Validate packages? http://pear.php.net/package/Validate_ISPN in particular might help you along ;) And BTW, most servers are set up to display php files renamed to .phps with syntax highlighting, so give that a try instead of .php.txt next time. Regards, Arpad

Re: [PHP] apache and include

2007-01-12 Thread Stut
Ross wrote: I recently installed php5 with apache (replacing php4and IIS). I am moving all my folders to the htdocs folder and but when I run a page the include does not work ?php include ('menu.php'); ? Nothing had change the directory stucture is the same. there are no warnings or errors

Re: [PHP] RE: RE: web analytics

2007-01-12 Thread Sumeet
Kencana wrote: Hi, can google analytics keep track on the search keywords of the website? I got one search features (connected to my database) in my web page. so i need to keep track on the user search history. google analytics has been an impressive piece of work. it has everything any SEO

Re: [PHP] Security with dbHost, dbUser, dbPassword

2007-01-12 Thread Jochem Maas
Otto Wyss wrote: Jochem Maas wrote: ... ? I never include the closing php tag in include files to avoid stray empty lines being output - which can cause any headers that you try to send after the offending include file is included to fail. I'm used to code everything as correct as

Re: [PHP] Normalized Numbers

2007-01-12 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-12 01:57:27 +0100: Brian P. Giroux wrote: If anyone can help me out with that or provide any other advice about the rest of it, I'd be grateful. The file can be found at http://www.senecal.ca/normnums.php.txt keep commenting all your code to that extent!

Re: [PHP] Javascript detection , working version

2007-01-12 Thread Jürgen Wind
Ruben Rubio Rey wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 A good way to detect if javascript exists is (cross-browser, cross-platform): You try to load javascript_exists.htm. - javascript_exists.htm:

Re: [PHP] Javascript detection , working version

2007-01-12 Thread Jürgen Wind
Ruben Rubio Rey wrote: A good way to detect if javascript exists is (cross-browser, cross-platform): You try to load javascript_exists.htm. - javascript_exists.htm: noscript meta http-equiv=refresh content=0;

Re: [PHP] Normalized Numbers

2007-01-12 Thread Jochem Maas
Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2007-01-12 01:57:27 +0100: Brian P. Giroux wrote: If anyone can help me out with that or provide any other advice about the rest of it, I'd be grateful. The file can be found at http://www.senecal.ca/normnums.php.txt keep commenting all your

[PHP] Violation at 77FCAFF8

2007-01-12 Thread Joker7
I have PHP installed on: Win2k all updates IIS ISAPI .DLL and I keep getting error : PHP has encountered an Access Violation at 77FCAFF8 the server can run fine for weeks/months then the above error,have looked at google but only returns Japanese sites with same problem :( Has any one any

Re: [PHP] Forms and destroying values

2007-01-12 Thread Satyam
This issue comes over and over again. The trick, as I learned from this list, is to send a redirect to the browser to a confirmation page, so the browser remembers the page redirected to and completely ignores the page that made the redirection so that neither a refresh nor going back to it

Re: [PHP] Normalized Numbers

2007-01-12 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-12 13:39:59 +0100: Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2007-01-12 01:57:27 +0100: Brian P. Giroux wrote: If anyone can help me out with that or provide any other advice about the rest of it, I'd be grateful. The file can be found at

Re: [PHP] Normalized Numbers

2007-01-12 Thread Robert Cummings
On Fri, 2007-01-12 at 14:40 +, Roman Neuhauser wrote: I know it sounds crazy, but (most) comments are evil. Comments are are excuses for better code, they're often no more than a vague repetition of what the code says. If the code doesn't describe what it's doing while it's doing it,

[PHP] I want to send data with JavaScript.

2007-01-12 Thread Napura
It questions the mailing list for the first time. To other forms by using JavaScript in PHP Can data able to be passed, and passed only one data that can be passed in the following codes? Please tell me. function p_submit(bb) { sform=top.window.document.S_form; sform.param.value = bb;

[PHP] Debugging PHP

2007-01-12 Thread Sancar Saran
Hi, Due to my English knowladge shortcomings or just my own stupity I cannot setup a working php debug module. Is any one have working solution. My target was, able to check every functions and or files for performance issues. I thing this called profiling or someting like that. Regards

Re: [PHP] Unable to compile php with MSSQL support / configure: error: Directory /usr is not a FreeTDS installation directory

2007-01-12 Thread mbneto
Hi Frank, The problem gets stranger... I've downloaded the 5.1.6 and guess what? the ./configure --with-mssql runs fine in the same machine... 5.0.4 ./configure --with-mssql ... checking for MSSQL support via FreeTDS... yes configure: error: Cannot find FreeTDS in known installation

Re: [PHP] Debugging PHP

2007-01-12 Thread Eric Butera
On 1/12/07, Sancar Saran [EMAIL PROTECTED] wrote: Hi, Due to my English knowladge shortcomings or just my own stupity I cannot setup a working php debug module. Is any one have working solution. My target was, able to check every functions and or files for performance issues. I thing this

Re: [PHP] I want to send data with JavaScript.

2007-01-12 Thread Németh Zoltán
2007. 01. 12, péntek keltezéssel 23.15-kor Napura ezt írta: It questions the mailing list for the first time. To other forms by using JavaScript in PHP Can data able to be passed, and passed only one data that can be passed in the following codes? Please tell me. function

Re: [PHP] Variance Function

2007-01-12 Thread David Giragosian
Richard, I think you are looking for data about both the variance and the standard deviation of the array of dates. This would yield, for example, a bell-shaped curve, like one gets when administering an intelligence test to a sample population. Two thirds of the dates fall within +/- 1 standard

Re: [PHP] Stored Procedure returns nothing on ROLLBACK

2007-01-12 Thread Philip Thompson
On Jan 11, 2007, at 5:53 PM, Chris wrote: Philip Thompson wrote: On Jan 10, 2007, at 6:36 PM, Chris wrote: Philip Thompson wrote: Hi. I have been experiencing MSSQL woes lately. I have a stored procedure that I call in PHP using mssql_* functions. In my procedure, I have a transaction

Re: [PHP] I want to send data with JavaScript.

2007-01-12 Thread Napura
N駑eth Zolt疣 , Thank you. It safely solved it. It survived. Moreover, my best regards. 2007. 01. 12, p辿ntek keltez辿ssel 23.15-kor Napura ezt 鱈rta: It questions the mailing list for the first time. To other forms by using JavaScript in PHP Can data able to be passed, and passed

Re: [PHP] Unable to compile php with MSSQL support / configure: error: Directory /usr is not a FreeTDS installation directory

2007-01-12 Thread Frank M. Kromann
I have not looked at the exact code but the 5.0 branch has been dead for quite a while so there could easily be fixes that are comitted to the 5.1 branch and not to the 5.0 branch. If you need to run the 5.0.4 version you can try copying ext/mssql/config.m4 from the 5.1.6 version. Run ./buildconf

RE: [PHP] Forms and destroying values

2007-01-12 Thread Beauford
So the answer is, there is no way to destroy the values. Question then, what is unset() used for as it doesn't seem to do anything? With a language as good as PHP I though there would be some way to do this. I have got a workaround, but that's exactly what it is - a work around. I am also still

Re: [PHP] Forms and destroying values

2007-01-12 Thread Stut
Beauford wrote: So the answer is, there is no way to destroy the values. Question then, what is unset() used for as it doesn't seem to do anything? With a language as good as PHP I though there would be some way to do this. I have got a workaround, but that's exactly what it is - a work around.

RE: [PHP] Forms and destroying values

2007-01-12 Thread Robert Cummings
On Fri, 2007-01-12 at 11:23 -0500, Beauford wrote: So the answer is, there is no way to destroy the values. Question then, what is unset() used for as it doesn't seem to do anything? With a language as good as PHP I though there would be some way to do this. I have got a workaround, but

RE: [PHP] Forms and destroying values

2007-01-12 Thread Németh Zoltán
Beauford, I think you miss the point. The point is that the values are not remembered by the server at all (after the script finished running), so you don't have to explicitely destroy them. The unset() function is for session variables, which are remembered by the server even after the script

RE: [PHP] Forms and destroying values

2007-01-12 Thread Robert Cummings
On Fri, 2007-01-12 at 17:36 +0100, Németh Zoltán wrote: Beauford, The unset() function is for session variables, which are remembered by the server even after the script finished running, that's their purpose. Your variables are not session variables but normal variables. Wrong! Please go

RE: [PHP] Forms and destroying values

2007-01-12 Thread Németh Zoltán
2007. 01. 12, péntek keltezéssel 11.43-kor Robert Cummings ezt írta: On Fri, 2007-01-12 at 17:36 +0100, Németh Zoltán wrote: Beauford, The unset() function is for session variables, which are remembered by the server even after the script finished running, that's their purpose. Your

[PHP] Updating episode info on podcasts?

2007-01-12 Thread Skip Evans
Hey boys girls, I'm doing some maintenance work on a site that allows members to keep a personal library of podcasts. One thing the site does it every time the personal list of casts is viewed, it goes out and gets the most current episode information for each cast in the user's list, but

Re: [PHP] Forms and destroying values

2007-01-12 Thread Satyam
As many have already replied to your question, what happens is that upon a refresh the browser is resending the original post variables again. The unset() does work, from the point of the unset() to the end of the script (when all variables except for session variables are unset), PHP will

Re: [PHP] Updating episode info on podcasts?

2007-01-12 Thread Stut
Skip Evans wrote: I'm doing some maintenance work on a site that allows members to keep a personal library of podcasts. One thing the site does it every time the personal list of casts is viewed, it goes out and gets the most current episode information for each cast in the user's list, but

Re: [PHP] Updating episode info on podcasts?

2007-01-12 Thread Stut
Please keep it on list so others can benefit from the discussion. Skip Evans wrote: Stut wrote: A well-formed feed should have a TTL value that defines how often the feed should be checked. I thought there might be something like that and looked at several of the feeds in the DB and found

[PHP] what mail program I'm using?

2007-01-12 Thread afan
hi, a moth ago we (company I work for) moved to new hosting company. we have dedicated sles10/php5/mysq5/apache2 based server. before, sending confirmation emails to clients using mail() functin was working fine. now, many of emails we send don't reach to receiver. first, I'm asssuming, server is

RE: [PHP] Forms and destroying values

2007-01-12 Thread Beauford
Thanks, a little confusing there. You would think though that once the info is transmitted by the browser it would be forgotten by the browser. Anyway, I do have a work around, and since PHP can't do anything about what the browser does, this will have to suffice. Thanks all. -Original

RE: [PHP] what mail program I'm using?

2007-01-12 Thread Brad Fuller
[EMAIL PROTECTED] wrote: hi, a moth ago we (company I work for) moved to new hosting company. we have dedicated sles10/php5/mysq5/apache2 based server. before, sending confirmation emails to clients using mail() functin was working fine. now, many of emails we send don't reach to receiver.

RE: [PHP] what mail program I'm using?

2007-01-12 Thread Aras
Try sending a mail through command line manually. Than look at maillog maybe. # sendmail -t [EMAIL PROTECTED] EOF This is a test mail EOF Aras Koktas [EMAIL PROTECTED] Business Excellence Development Phi.dot Internet Systems -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL

RE: [PHP] what mail program I'm using?

2007-01-12 Thread afan
[EMAIL PROTECTED] wrote: hi, a moth ago we (company I work for) moved to new hosting company. we have dedicated sles10/php5/mysq5/apache2 based server. before, sending confirmation emails to clients using mail() functin was working fine. now, many of emails we send don't reach to receiver.

[PHP] Using gettext

2007-01-12 Thread Satyam
I decided to internationalize a program that I already had and part of that process was to put the existing texts under gettext(). So far, when I meant an application to be localized, I made the original in English, but this one was already in Spanish. So, now, I have the source strings in

[PHP] Extracting XMP text from Jpeg

2007-01-12 Thread Dotan Cohen
The birth of my first daughter has inpired me to get the photo gallery on my site up to date. To do so, I need to extract XMP data from Jpeg pictures. Here is a test pic: http://dotancohen.com/gili.jpg (beware, it's 1.8 MB) This pic has three tags: TEST MILOTTEST גילי I can see the tags using

[PHP] Unbuffered Query

2007-01-12 Thread Richard Lynch
I have this process that dumps out database records to static HTML pages. The basic algorithm goes like: //Set any un-parented item (a root in the thread) to be its own parent: update entry set original_id = entry_id where original_id is null //collect any dirty entries (changed in db, need to

Re: [PHP] Unbuffered Query

2007-01-12 Thread Jim Lucas
Richard Lynch wrote: I have this process that dumps out database records to static HTML pages. The basic algorithm goes like: //Set any un-parented item (a root in the thread) to be its own parent: update entry set original_id = entry_id where original_id is null in the following you are