This script works on my localhost but not on my server

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

4.0.6 and sessions can be a pain plus there have been a lot of changes to PHP between 4.0.6 and 4.3 and you're missing out on enhanced functionality.

Mac
Wee-Man
Forum Commoner
Posts: 45
Joined: Wed Mar 03, 2004 7:55 am
Location: Peterborough, England

Post by Wee-Man »

i can only download 4.3.4 from php.net shall i get that?
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

yup, that'll be fine
Wee-Man
Forum Commoner
Posts: 45
Joined: Wed Mar 03, 2004 7:55 am
Location: Peterborough, England

Post by Wee-Man »

and shall i egt the installer? not the .zip
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

i would, lot easier.
Wee-Man
Forum Commoner
Posts: 45
Joined: Wed Mar 03, 2004 7:55 am
Location: Peterborough, England

Post by Wee-Man »

ok its only 1meg, should be much longer *curses dial up*
Wee-Man
Forum Commoner
Posts: 45
Joined: Wed Mar 03, 2004 7:55 am
Location: Peterborough, England

Post by Wee-Man »

ok installed, im just going to reboot, brb
User avatar
markl999
DevNet Resident
Posts: 1972
Joined: Thu Oct 16, 2003 5:49 pm
Location: Manchester (UK)

Post by markl999 »

reboot? .... :o
malcolmboston
DevNet Resident
Posts: 1826
Joined: Tue Nov 18, 2003 1:09 pm
Location: Middlesbrough, UK

Post by malcolmboston »

roflmao, nice commentary :lol:
Wee-Man
Forum Commoner
Posts: 45
Joined: Wed Mar 03, 2004 7:55 am
Location: Peterborough, England

Post by Wee-Man »

it told me to reboot so i done it :D
Wee-Man
Forum Commoner
Posts: 45
Joined: Wed Mar 03, 2004 7:55 am
Location: Peterborough, England

Post by Wee-Man »

Right..... now what? do i have to start over? my whole script?
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

no, just update your current.

All variable that are submitted from the form have to be called by doing

Code: Select all

$_GET['variable_name'];
or

Code: Select all

$_POST['variable_name'];
depending on your form method.

As a cheat, you could put

Code: Select all

extract($_GET);
or

Code: Select all

extract($_POST);
at the top of you script, but not the best solutions

Mark
Wee-Man
Forum Commoner
Posts: 45
Joined: Wed Mar 03, 2004 7:55 am
Location: Peterborough, England

Post by Wee-Man »

Ok :S say that again a bit more descriptive to what i have to do, you lost me.
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

show me the code for your login form

Mark
Wee-Man
Forum Commoner
Posts: 45
Joined: Wed Mar 03, 2004 7:55 am
Location: Peterborough, England

Post by Wee-Man »

it is on page one the code, but no logging in is done, so ignore the login just adding names to the database is all its neded for.
Post Reply