[PHP] Uploading files?

2005-05-19 Thread rory walsh
Hi list, I am having a little problem with the code below. It just won't seem to work? Even though I always select a jpeg my mime content type test is never true? Have I made a silly mistake somewhere? I also run the test to see if the 'mime_content_type()' function exists first before I do any

Re: [PHP] Newbie question: qutoes?

2005-03-06 Thread rory walsh
Thanks guys, that clears up a lot! Cheers, actually I have to say goodbye to broadband for a while so I hope that I can make it on my own! That's why I have been asking all these obvious little questions! Cheers, Rory. Jochem Maas wrote: rory walsh wrote: Can anyone tell me if there

[PHP] Newbie question: qutoes?

2005-03-06 Thread rory walsh
Can anyone tell me if there is a difference between double quotes and single quotes? Cheers, Rory. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Passwords?

2005-03-06 Thread rory walsh
7;t want this file or this string to get into the hands of evilhaxors - best to keep this file (one with the encrypted pwd in it) outside of the docroot. Now even if someone will see the php script he won't knew your password Hope I've helped yaron -Original Message- From: ro

[PHP] Passwords?

2005-03-06 Thread rory walsh
I want to create a simple as possible password script, how secure is it to have the password actually appear in the script? I only need one password so I thought that this would be more straightforward than having a file which contains the password. I am not using any database. Actually this le

Re: [PHP] Preventing data from being reposted?

2005-03-03 Thread rory walsh
eoghan wrote: i think ive missed a few mails there...? rory walsh wrote: Cheers, I'll take a look, I had tried a search but thunderbird didn't find anything, even with the exact thread title I had to google it? Anyway I'll take a look. my first google hit on search for the ex

Re: [PHP] Preventing data from being reposted?

2005-03-03 Thread rory walsh
Jochem Maas wrote: eoghan wrote: i think ive missed a few mails there...? rory walsh wrote: Cheers, I'll take a look, I had tried a search but thunderbird didn't find anything, even with the exact thread title I had to google it? Anyway I'll take a look. my first google hit

Re: [PHP] Preventing data from being reposted?

2005-03-03 Thread rory walsh
Cheers, I'll take a look, I had tried a search but thunderbird didn't find anything, even with the exact thread title I had to google it? Anyway I'll take a look. Jochem Maas wrote: rory walsh wrote: Thanks Eoghan, I have tried the following but it still reposts the data from th

Re: [PHP] Preventing data from being reposted?

2005-03-03 Thread rory walsh
ader("Pragma: no-cache"); Am I write in assuming that the above headers should prevent the user from going back in the first place as no cache has been taken? Eoghan wrote: you can use header() http://ie.php.net/header rory walsh wrote: Is there anyway I can prevent data from being re

[PHP] Preventing data from being reposted?

2005-03-03 Thread rory walsh
Is there anyway I can prevent data from being reposted when I hit the back button on my browser? When I hit back I get a message from my browser asking do I want to repost the data, can I prevent this window from appearing? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] PHP Sessions?

2005-03-02 Thread rory walsh
Yeah your right, I'm trying to walk before I can crawl! Cheers for the help, Rory. Chris W. Parker wrote: rory walsh <mailto:[EMAIL PROTECTED]> on Wednesday, March 02, 2005 2:08 PM said: Thanks everyone, I'm getting closer. The only problem I have not is that I keep enter

Re: [PHP] PHP Sessions?

2005-03-02 Thread rory walsh
action="script.php" in a form would? Cheers for the help on this. Chris W. Parker wrote: rory walsh <mailto:[EMAIL PROTECTED]> on Wednesday, March 02, 2005 2:08 PM said: Thanks everyone, I'm getting closer. The only problem I have not is that I keep entering that test, I

Re: [PHP] PHP Sessions?

2005-03-02 Thread rory walsh
ubmit? I must apologise for my lack of knowledge here! I program in other languages and as a result I have that I can get really deep in code I don't understand very fast! Rory Walsh wrote: Yes I see what you mean. I only wanted to start a session IF the user logged in, but I see your point

Re: [PHP] PHP Sessions?

2005-03-02 Thread rory walsh
Yes I see what you mean. I only wanted to start a session IF the user logged in, but I see your point, the session can be started as soon as anyone opens the main page. I'll give it a go and see if that helps, cheers, Rory. Chris W. Parker wrote: rory walsh <mailto:[EMAIL PROTECTED]

Re: [PHP] PHP Sessions?

2005-03-02 Thread rory walsh
used to manage a complete website? Chris W. Parker wrote: rory walsh <mailto:[EMAIL PROTECTED]> on Wednesday, March 02, 2005 11:19 AM said: Put session_start(); at the *very* beginning of your script. See if that helps. Chris. -- PHP General Mailing List (http://www.php.net/) To unsub

[PHP] PHP Sessions?

2005-03-02 Thread rory walsh
Hi everyone, I am trying to work with the idea of sessions in PHP. Basically I have a self-processing script called index.php but somehow I keep losing my session variable, it works the first time around but when I call it the second time around its gone? I do not reset the variable or destroy

[PHP] Program flow?

2005-03-01 Thread rory walsh
Hi I have a one simple question that I need to sort out before I continue writing any PHP scripts. Every time I call a script are the variables reset to the default values? If for example I call action.php from a form with a hidden value "test", I set $NUMBER to 5. If I then call action.php again f