Re: [PHP] $_POST['xxx'] = "blabla" ?

2004-11-22 Thread Dennis Seavers
Use unset () to reset the variable values and $_POST to set the values. As long as there's no other, unacceptable access to your server, you'll be in a good position, other security considerations aside. If any other latent $_POST values exist, what could they do? And if they were to do anything

Re: [PHP] $_POST['xxx'] = "blabla" ?

2004-11-22 Thread Angelo Zanetti
I speak under correction but the reason could be that if someone tries to hack your site, for example I post to your HTML page, you want to check it your $_POST contains a certain variable (which may be hidden) Not really sure besides that >>> Perry Jönsson <[EMAIL PROTECTED]> 11/22/2004 10:5

Re: [PHP] Upload is still not working ( More tesitngs)

2004-11-22 Thread Michael Leung
Hi Everyone, I found some people stated this kind of error , because phpSUExec max allows 755. But I have changed my upload_files directory into owned by apache. it should solved the problem based on this logic. but it won't work at all. Does Any one have an idea on this yours, Michael Leung

Re: [PHP] default extension for includes?

2004-11-22 Thread Justin French
On 23/11/2004, at 12:44 PM, Jake Press wrote: Justin, 'Use the force luke' - or perhaps just write yourself a function to do this :) Sadly, included files inside functions don't inherit the global namespace, so you have to do something ridiculous like extract($GLOBALS) inside the function: fu

Re: [PHP] default extension for includes?

2004-11-22 Thread Jake Press
Justin, 'Use the force luke' - or perhaps just write yourself a function to do this :) Regards Jake Press Justin French wrote: I'd like to be able to call include("thing"); and have PHP automatically look for thing.html -- I know include_path can look in multiple places, but I have no idea i

[PHP] Re: default extension for includes?

2004-11-22 Thread Jed Smith
Justin French wrote: I'd like to be able to call include("thing"); and have PHP automatically look for thing.html -- I know include_path can look in multiple places, but I have no idea if I can look for multiple file extensions, close matches, etc. Doubt it, but I'm asking :) Justin No. --

Re: [PHP] Where to learn about these topics

2004-11-22 Thread Ryan King
On Nov 22, 2004, at 11:33 AM, Chris Lott wrote: In MySQL I would say... If you have data which has to be inserted in serveral tables, you must first check if all conditions are ok. So, do some selects to check if everythin in your database is ok, and after that, execute the query. But, when you re

Re: [PHP] [php] What does PHP mean?

2004-11-22 Thread John Holmes
John Taylor-Johnston wrote: I'm writing an article where I'm going to explain what PHP is in a short sentence. PHP once meant Personal Home Page, right? PHP, originally an anacronym for "Personal Home Page", is a textual, "general-purpose scripting language" (www.PHP.net) designed to collect and

[PHP] [php] What does PHP mean?

2004-11-22 Thread John Taylor-Johnston
I'm writing an article where I'm going to explain what PHP is in a short sentence. PHP once meant Personal Home Page, right? PHP, originally an anacronym for "Personal Home Page", is a textual, "general-purpose scripting language" (www.PHP.net) designed to collect and process data between HTML

Re: Re[2]: [PHP] include files, ".php" or ".inc" ?

2004-11-22 Thread Chris Shiflett
--- Richard Davey <[EMAIL PROTECTED]> wrote: > MK> Yes, .inc files will show up as they are - php source, db > MK> username/password etc. So it's even less secure unless you > forbid serving them: > > That would be the "properly configured web server" section of > my post, assuming this has been d

RE: [PHP] Quick Question re: Input

2004-11-22 Thread Jay Blanchard
[snip] [/snip] Unfortunately you cannot do it like this, you either have to reload the page or send the processing to another namespace. But you can do different buttons... In processStuff.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsu

[PHP] Quick Question re: Input

2004-11-22 Thread Monique Verrier
Hi! This is what I want to do: When the user presses the submit button, run a function along the lines of: The addrecord function basically runs an SQL insert. This seems as though it should be uncomplicated. All the code that I look at has the page calling itself again and running code tha

Re: [PHP] $_POST['xxx'] = "blabla" ?

2004-11-22 Thread Gerhard Meier
On Mon, Nov 22, 2004 at 09:55:35PM +0100, Perry Jönsson wrote: > Gerhard Meier wrote: > If you only have one form on a page, why would you like to check the > value/name of the submit button? > > Is there a security aspect to this? That was not your question. You asked what the difference is. An

Re: [PHP] $_POST['xxx'] = "blabla" ?

2004-11-22 Thread Robin Vickery
On Mon, 22 Nov 2004 21:57:23 +0100, Perry Jönsson <[EMAIL PROTECTED]> wrote: > > Maybe a daft question but why would you like to check for a specific value? > > Can you give an example when this is a good thing to do? A forum. You have two submit buttons, one labeled 'draft' and one labeled 'final

RE: [PHP] $_POST['xxx'] = "blabla" ?

2004-11-22 Thread Jay Blanchard
[snip] > One is checking if $_POST contains a specific value, the other just checks to > see if it contains a value. If $_POST['submit'] contains 'foo' is ISSET. Make > sense? Maybe a daft question but why would you like to check for a specific value? Can you give an example when this is a good

RE: [PHP] $_POST['xxx'] = "blabla" ?

2004-11-22 Thread Vail, Warren
Because you can have more than one submit button per form? Warren Vail > -Original Message- > From: Perry Jönsson [mailto:[EMAIL PROTECTED] > Sent: Monday, November 22, 2004 12:56 PM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] $_POST['xxx'] = "blabla" ? > > > Gerhard Meier wrote: > >

Re: [PHP] $_POST['xxx'] = "blabla" ?

2004-11-22 Thread Perry Jönsson
Jay Blanchard wrote: [snip] What is the difference between these two examples? Both works fine for me. 1. if ($_POST['submit'] == 'Login') { ... ... } 2. if (isset($_POST['submit']) { ... ... } [/snip] One is checking if $_POST contains a specific value, the other j

Re: [PHP] $_POST['xxx'] = "blabla" ?

2004-11-22 Thread Perry Jönsson
Gerhard Meier wrote: On Mon, Nov 22, 2004 at 09:38:00PM +0100, Perry Jönsson wrote: 1. if ($_POST['submit'] == 'Login') { ... } This one is true if $_POST['submit'] is equal to 'Login'. 2. if (isset($_POST['submit']) { ... } This one is true if $_POST['submit'] is set, it doesn't matter which va

Re: [PHP] $_POST['xxx'] = "blabla" ?

2004-11-22 Thread Gerhard Meier
On Mon, Nov 22, 2004 at 09:38:00PM +0100, Perry Jönsson wrote: > 1. if ($_POST['submit'] == 'Login') { ... } This one is true if $_POST['submit'] is equal to 'Login'. > 2. if (isset($_POST['submit']) { ... } This one is true if $_POST['submit'] is set, it doesn't matter which value it has. /GM

Re: [PHP] $_POST['xxx'] = "blabla" ?

2004-11-22 Thread Greg Donald
On Mon, 22 Nov 2004 21:38:00 +0100, Perry Jönsson <[EMAIL PROTECTED]> wrote: > What is the difference between these two examples? > diff 1.txt 2.txt 1c1 < 1. if ($_POST['submit'] == 'Login') { --- > 2. if (isset($_POST['submit']) { -- Greg Donald Zend Certified Engineer http://gdconsultants.com

Re: [PHP] $_POST['xxx'] = "blabla" ?

2004-11-22 Thread ankur_os
Dear u r correct, Both r same... but in first case ur variable with a constant string value And in second case u r checking that your variable is set or not but one limitation with the function is that.. "isset() only works with variables as passing anything else will result in a parse error."

RE: [PHP] $_POST['xxx'] = "blabla" ?

2004-11-22 Thread Jay Blanchard
[snip] What is the difference between these two examples? Both works fine for me. 1. if ($_POST['submit'] == 'Login') { ... ... } 2. if (isset($_POST['submit']) { ... ... } [/snip] One is checking if $_POST contains a specific value, the other just checks to se

Re: [PHP] $_POST['xxx'] = "blabla" ?

2004-11-22 Thread Afan Pasalic
in case $_POST['submit'] == 'Yes' only 2nd example works. Right? -a|fan Perry Jönsson wrote: Hello, What is the difference between these two examples? Both works fine for me. 1. if ($_POST['submit'] == 'Login') { ... ... } 2. if (isset($_POST['submit']) { ... ... } -- PHP General M

[PHP] $_POST['xxx'] = "blabla" ?

2004-11-22 Thread Perry Jönsson
Hello, What is the difference between these two examples? Both works fine for me. 1. if ($_POST['submit'] == 'Login') { ... ... } 2. if (isset($_POST['submit']) { ... ... } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/u

Re: [PHP] Timezones

2004-11-22 Thread Robin Vickery
On Mon, 22 Nov 2004 11:52:03 -0500, Gryffyn, Trevor <[EMAIL PROTECTED]> wrote: > Then somewhere there has to be a cross reference between name and > timezone info. I'm sorry I'm not running Apache here and don't have > access to the same info that you're using, but I'd try digging into > those con

RE: [PHP] Where to learn about these topics

2004-11-22 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 22 November 2004 17:33, Chris Lott wrote: > > +-+--+--+---+---+ > > first | last | relation | city | state | > +-+

Re: [PHP] Where to learn about these topics

2004-11-22 Thread John Nichel
Chris Lott wrote: Right-- but my question isn't about the query, but about the results. Again, look at my result set: +-+--+--+---+---+ | first | last | relation | city | state | +-+--+--+---+---+ | Chris | Beks

Re: [PHP] Where to learn about these topics

2004-11-22 Thread Chris Lott
> In MySQL I would say... If you have data which has to be inserted in > serveral tables, you must first check if all conditions are ok. So, do some > selects to check if everythin in your database is ok, and after that, > execute the query. But, when you really want to make complex database driven

Re: [PHP] perl to php translation tool?

2004-11-22 Thread Raditha Dissanayake
Greg Donald wrote: On Mon, 22 Nov 2004 13:37:42 +0100, Markus Mayer <[EMAIL PROTECTED]> wrote: I've searched for a tool that would translate, or at least mostly translate, perl scripts into php, unfortunately with no success. I didn't even find a reference in the archives of this list to this s

Re[2]: [PHP] redirecting to a success page

2004-11-22 Thread Richard Davey
Hello Randy, Monday, November 22, 2004, 2:22:31 PM, you wrote: RR> You can send a header to redirect like below. I think he already had that (although it wasn't in the source code posted) because he said the error was the "headers already sent" one. Dreamweaver has a lot to answer for :) Best

RE: [PHP] Timezones

2004-11-22 Thread Gryffyn, Trevor
Then somewhere there has to be a cross reference between name and timezone info. I'm sorry I'm not running Apache here and don't have access to the same info that you're using, but I'd try digging into those config files and any database tables you can find that seem to relate to it. I'm sorry I

Re: [PHP] redirecting to a success page

2004-11-22 Thread Richard Davey
Hello Judson, Monday, November 22, 2004, 2:13:13 PM, you wrote: JV> The original script, created by Dreamweaver, gives an error that says JV> header has already been sent. I tried different options to no avail. I JV> realize this script is now seriously hosed but thought I would include JV> it an

[PHP] Re: Tabs or Spaces?

2004-11-22 Thread Daniel Schierbeck
Daniel Schierbeck wrote: Hello there! There seems to be some tendency towards using spaces instead of tabs when indenting PHP code - personally i can't come up with any reason not to use tabs. I was just wondering if any of you freakees had some sort of explanation... Wow, didn't mean to start

Re: [PHP] perl to php translation tool?

2004-11-22 Thread Greg Donald
On Mon, 22 Nov 2004 13:37:42 +0100, Markus Mayer <[EMAIL PROTECTED]> wrote: > I've searched for a tool that would translate, or at least mostly translate, > perl scripts into php, unfortunately with no success. I didn't even find a > reference in the archives of this list to this subject, which su

Re: [PHP] perl to php translation tool?

2004-11-22 Thread Markus Mayer
I was afraid of such answers. My intention was to get rid of a fewperl scripts on our server that were written by external companies, and those companies are pressing to continue to use perl for their cgi's. /dev/brain would be nice, if I could get that node made at those companies but it

[PHP] 'Unable to load' extension dll if VS.net 2003 not installed

2004-11-22 Thread Tang, Ming-Chung
Hi all, I followed the great intro ' Developing Custom PHP Extensions: Part 1' and successfully built a php_devarticlesmod.dll on my winXP using VS.net 2003, and everything works fine. But when I try to use the b

RE: [PHP] Is there a shorthand way to...?

2004-11-22 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 22 November 2004 14:01, Al wrote: > When handling $_POST[] values that may or may not be > assigned, I am forever using: > > if((isset($_POST['courses_list']) AND > $_POST['cour

Re: [PHP] Re: Tabs or Spaces?

2004-11-22 Thread Philip Thompson
On Nov 21, 2004, at 4:53 PM, Ryan King wrote: On Nov 21, 2004, at 3:09 PM, Matthew Weier O'Phinney wrote: * Daniel Schierbeck <[EMAIL PROTECTED]>: There seems to be some tendency towards using spaces instead of tabs when indenting PHP code - personally i can't come up with any reason not to use ta

Re: [PHP] redirecting to a success page

2004-11-22 Thread Robby Russell
On Mon, 2004-11-22 at 09:13 -0500, Judson Vaughn wrote: > Group, > > I have a create_login.php page, which works (it inserts data into the > database), but I need for the script once executed to redirect to a > success.php page. > > It doesn't do this and I can't figure out how to do it. I've i

Re: [PHP] Is there a shorthand way to...?

2004-11-22 Thread Robby Russell
On Mon, 2004-11-22 at 09:01 -0500, Al wrote: > When handling $_POST[] values that may or may not be assigned, I am forever > using: > > if((isset($_POST['courses_list']) AND $_POST['courses_list']== 'Used')) > > Is there a shorthand way of doing this without causing notice errors? > > Thanks...

Re: [PHP] Is there a shorthand way to...?

2004-11-22 Thread Marek Kilimajer
Al wrote: When handling $_POST[] values that may or may not be assigned, I am forever using: if((isset($_POST['courses_list']) AND $_POST['courses_list']== 'Used')) Is there a shorthand way of doing this without causing notice errors? Thanks. Before your condition: $courses_list = isset($_POS

Re: [PHP] perl to php translation tool?

2004-11-22 Thread John Nichel
Christophe Chisogne wrote: /dev/brain :-) Are we sure that is included with all new OS's? ;) -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] redirecting to a success page

2004-11-22 Thread Jay Blanchard
[snip] I have a create_login.php page, which works (it inserts data into the database), but I need for the script once executed to redirect to a success.php page. [/snip] http://www.php.net/header header("Location: success.php"); exit(); -- PHP General Mailing List (http://www.php.net/) To uns

Re: [PHP] redirecting to a success page

2004-11-22 Thread Randy Rinehart
You can send a header to redirect like below. Or you can print out some javascript location.href='successpage.php'; -randy rinehart - Original Message - From: "Judson Vaughn" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, November 22, 2004 8:13 AM Subject: [PHP] redirecti

Re: [PHP] include files, ".php" or ".inc" ?

2004-11-22 Thread Justin French
On 22/11/2004, at 7:02 AM, Perry Jönsson wrote: What it the purpose of the ".inc" file then? It gives you a way of knowing what's a directly executable file (like index.php) and what's an included file. Further, I disallow the direct serving of all .inc files in my htaccess, so that people can't

[PHP] redirecting to a success page

2004-11-22 Thread Judson Vaughn
Group, I have a create_login.php page, which works (it inserts data into the database), but I need for the script once executed to redirect to a success.php page. It doesn't do this and I can't figure out how to do it. I've included a portion of the script below. This was created by Dreamweaver

[PHP] Is there a shorthand way to...?

2004-11-22 Thread Al
When handling $_POST[] values that may or may not be assigned, I am forever using: if((isset($_POST['courses_list']) AND $_POST['courses_list']== 'Used')) Is there a shorthand way of doing this without causing notice errors? Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscr

Re: [PHP] perl to php translation tool?

2004-11-22 Thread Christophe Chisogne
Markus Mayer wrote: I've searched for a tool that would translate, or at least mostly translate, perl scripts into php, unfortunately with no success. It's simply impossible. By example, a Perl script handling file uploads cant be translated automatically : php4 handles file uploads _before_ the

[PHP] yet another autoresponder

2004-11-22 Thread Raditha Dissanayake
Can someone remove this idiot? (this idiot = idiot who uses an autoresponder , not the idiot who is complaining about it :-)) Autoresponder wrote: Hi, To protect us from spamming, please contact with us at http://www.dvdidle.com/contact.htm, thanks. Sincerely, DVDIdle Support Team -- PHP Gene

Re: [PHP] perl to php translation tool?

2004-11-22 Thread Raditha Dissanayake
Markus Mayer wrote: Hello everyone! I've searched for a tool that would translate, or at least mostly translate, perl scripts into php, unfortunately with no success. I didn't even find a reference in the archives of this list to this subject, which surprises me. Does anyone know of any tool t

Re: [PHP] IE title bug

2004-11-22 Thread Raditha Dissanayake
Giles wrote: Anyone seen anything like this before or have any suggestions? I thought it was mysql that had taken over this list and not microsoft. Thanks Giles Roadnight http://giles.roadnight.name -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.n

Re[2]: [PHP] include files, ".php" or ".inc" ?

2004-11-22 Thread Richard Davey
Hello Marek, Monday, November 22, 2004, 12:18:22 PM, you wrote: MK> Yes, .inc files will show up as they are - php source, db MK> username/password etc. So it's even less secure unless you forbid MK> serving them: That would be the "properly configured web server" section of my post, assuming th

[PHP] default extension for includes?

2004-11-22 Thread Justin French
I'd like to be able to call include("thing"); and have PHP automatically look for thing.html -- I know include_path can look in multiple places, but I have no idea if I can look for multiple file extensions, close matches, etc. Doubt it, but I'm asking :) Justin -- PHP General Mailing List (htt

Re: [PHP] Timezones

2004-11-22 Thread Robin Vickery
On Fri, 19 Nov 2004 12:56:55 +0100, Venelin Arnaudov <[EMAIL PROTECTED]> wrote: > I have a legacy PHP3 system and a MySQL DB with two tables: > [...] > When a user submits a message, my PHP script (using time() function) > stores the submission time in messages.date field. However this value is > n

[PHP] perl to php translation tool?

2004-11-22 Thread Markus Mayer
Hello everyone! I've searched for a tool that would translate, or at least mostly translate, perl scripts into php, unfortunately with no success. I didn't even find a reference in the archives of this list to this subject, which surprises me. Does anyone know of any tool that can handle this

Re: [PHP] include files, ".php" or ".inc" ?

2004-11-22 Thread Marek Kilimajer
Richard Davey wrote: Hello Perry, Sunday, November 21, 2004, 8:02:48 PM, you wrote: PJ> What it the purpose of the ".inc" file then? Security - on a properly configured web server a .inc file will never actually try and compile/execute itself. Whereas a .php one always will. Yes, .inc files will sh

Re: [PHP] Timezones

2004-11-22 Thread Venelin Arnaudov
Hi Trevor, I have list of Timezones (see the attachment) but I do not know the offset in respect of GMT. Then I will be able to calculate my local time for every user local input. I would like to know which PHP date/time functions operate with the system time alone and which one take the timez

Re: [PHP] Problems running PHP.

2004-11-22 Thread Eakin, W
I am sure that this code works because I tried it on a server who is running php 4.0, I know that in php 5.0.2, I can use $_POST and $_GET instead of $HTTP_GET_VARS or $HTTP_POST_VARS. But, I have tried them and they are not working. So, I hope you can help me to fix it, because I really wa

[PHP] Fwd: Re: Problems running PHP.

2004-11-22 Thread Jose Arguello
Note: forwarded message attached. __ Do you Yahoo!? The all-new My Yahoo! - Get yours free! http://my.yahoo.com --- Begin Message --- Hi Jose, Since your report is not about the php.net website, this is not the right address to send it. Pl

[PHP] Problems running PHP.

2004-11-22 Thread Jose Arguello
I just install in my computer PHP 5.0.2, I followed the instruction on the book PHP and MySql Web Development by Luke Welling and Laura Thomson. But, it is not working. I have tried to use this codes, one is just a html form and the other is a php code. I tried to pass the values from the form to t

[PHP] IE title bug

2004-11-22 Thread Giles
Hello people I am making a movie browsing site. On one page I have a list of movies as links. When you click on the movie it goes to another page with the movie ID as an anchor in the page so that the browser scrolls to that movie. The title of the page is made up of the movie category nam

RE: [PHP] include files, ".php" or ".inc" ?

2004-11-22 Thread steve
Graham Cossey wrote: > If you only have limited control/knowledge of Apache you could adopt > names something like: script.inc.php > > In such a way PHP will always process the script as it's extension > is .php and you can easily identify that it is a script to be > included/required. FWIW, I us