get_magic_qoutes_runtime()

Status
Not open for further replies.

jhdesign

New Member
Messages
7
Reaction score
0
Points
0
Ok so I had a problem and it was solved real quick, hope it happens again this time. I'm making a inlog script. And in this script I have a if statement which looks as follow :

if (!get_magic_qoutes_runtime()) {
$_POST['email'] = addslashes($_POST['email']);
}

When completely following the source and pressing submit I get the warning:

Call to undefined function get_magic_qoutes_runtime() in /home/jhdesign/public_html/jhdesign/login.php on line 31

And line 31 is the first one of the script above. I checked if I didn't had version 6 of php, and I have 5 so that can't be the problem. What could be?

Yours faithfully,

Jan!
 

Livewire

Abuse Compliance Officer
Staff member
Messages
18,169
Reaction score
216
Points
63
Ok so I had a problem and it was solved real quick, hope it happens again this time. I'm making a inlog script. And in this script I have a if statement which looks as follow :

if (!get_magic_qoutes_runtime()) {
$_POST['email'] = addslashes($_POST['email']);
}

When completely following the source and pressing submit I get the warning:

Call to undefined function get_magic_qoutes_runtime() in /home/jhdesign/public_html/jhdesign/login.php on line 31

And line 31 is the first one of the script above. I checked if I didn't had version 6 of php, and I have 5 so that can't be the problem. What could be?

Yours faithfully,

Jan!

You spelled the function wrong; you have qoutes, it needs to be quotes
 

Livewire

Abuse Compliance Officer
Staff member
Messages
18,169
Reaction score
216
Points
63
What a stupid fail. But thanks anyway, thats the disadvantage when you are dutch :S

At least you asked; I've already stumbled for hours on stuff like that, just to find out it's a missing ; or ' instead of " :)
 

jhdesign

New Member
Messages
7
Reaction score
0
Points
0
At least you asked; I've already stumbled for hours on stuff like that, just to find out it's a missing ; or ' instead of " :)
Well I like to learn you know, and they have this forum for these kinds of business. Do you have a website? I'm still working on that log in script and I'm getting the error: Already sent header. Really annoying!
 

Livewire

Abuse Compliance Officer
Staff member
Messages
18,169
Reaction score
216
Points
63
Well I like to learn you know, and they have this forum for these kinds of business. Do you have a website? I'm still working on that log in script and I'm getting the error: Already sent header. Really annoying!

I've got one, but for the moment no one views it much: livewire90210.com (work safe :) )

As for the "headers already sent," do you have -anything- being sent to the browser before the header() in the php, including whitespace? Even something like:

[THERESASPACEHERE]<?php header(blah); ?>

That one little space is enough to tell PHP that there is content being sent, and to send the usual default Text/HTML header.
 
Status
Not open for further replies.
Top