miziri
June 14, 2010, 6:03am
1
Hi,
WHEN i UPDATE MY TABLE TO INSERT RECODRD THIS BELOW ERROR APPEAR
Warning: virtual() has been disabled for security reasons in /home/a7546535/public_html/registration.php on line 1
THIS MY WEBSITE LINK
http://rayan.uphero.com/registration.php
I NEED UR HELP TO FIX IT
THX
miziri
June 14, 2010, 1:30pm
2
Hi,
Registration PHP is page which connected to table with mysql.
this registration php is name open the page u opened it,
thx
<?php (‘/Connections/connection.php’); ?>
… that’s not a command. The engine is probably interpreting a virtual() there because it sees a filename.
<?php include_once(‘/Connections/connection.php’); ?>
Try that.
The error says there is a problem in line 1 of this file: /home/a7546535/public_html/registration.php
Now, the cause of the problem is not always in the line the error tells you, but it’s a starting point.
To help you we need to see some code. Please post the content of registration.php here. Or at least the first 10 lines or something like that.
Starlion was asking for some code. It’s hard (if not impossible) to help you find the problem if we can’t see any code.
What is line 1 of registration.php ?
miziri
June 14, 2010, 1:36pm
7
Hi guido2004,
Friend I new in PHP ?how and where the error code appear.
in local host it working perfect in the site that appear…
I will thanks to u if help me
thx
miziri
June 14, 2010, 2:07pm
8
Hi,
see that
<?php (‘/Connections/connection.php’); ?>
<?php
ob_clean();
if (!function_exists(“GetSQLValueString”)) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = “”, $theNotDefinedValue = “”)
{
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
$theValue = function_exists(“mysql_real_escape_string”) ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case “text”:
$theValue = ($theValue != “”) ? “'” . $theValue . “'” : “NULL”;
break;
case “long”:
case “int”:
$theValue = ($theValue != “”) ? intval($theValue) : “NULL”;
break;
case “double”:
$theValue = ($theValue != “”) ? “'” . doubleval($theValue) . “'” : “NULL”;
break;
case “date”:
$theValue = ($theValue != “”) ? “'” . $theValue . “'” : “NULL”;
break;
case “defined”:
$theValue = ($theValue != “”) ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
thx
Have you tried using include or require if your trying to include a file?
miziri
June 14, 2010, 6:56am
10
Hi,
I page is connect to table with mysql.
when I enter all data at bottom of page i clcik insert that error appear.
actual i beginer with PHP have no info how to fix it
thx
miziri
June 14, 2010, 2:38pm
11
Hi Teams,
I would like to thanks all of u for support ,Thanks for all of u.
for sure I will be back for new question.
thanks
thx