Jump to content
php.lv forumi

Undefined


Troxy

Recommended Posts

Sveiki saakshu ar to ka paarceelos no win servera uz Linux ,preciizaak Slackware 10.2.0,

Tatad uz win servera man staveeja skripts kas darbojas probleemu nebija!!!Parliku zem jaunaa linux servera un tagad ir kaukads sviests visu dienu meegjinu saprast guugleeju bet bez rezultaatiem tad nu luuk!!!!!(Mainiju gan php,gan apache neliidz!!!)

 

Notice: Undefined index: sec in /var/www/htdocs/serveri/index.php on line 22

serveri

Un zemaak

Notice: Use of undefined constant srid - assumed 'srid' in /var/www/htdocs/serveri/index.php on line 162

 

 

 

php versijas saliku vienaadas!!!Vai taa vareetu buut apache servera vaina?

 

 

Kods garsh bet te mazz gabalinjsh

 

<?

 

require("server_query.inc.php");

 

$sec = $_REQUEST['sec'];

$curip = $_SERVER["REMOTE_ADDR"];

$curtime = time();

$main_sql = @mysql_connect('localhost','xxxxxx','xxxxxx');

if (mysql_error()) {

die('oops, nevaru pieslegties pie db');

}

mysql_select_db('baze', $main_sql);

 

?>

Edited by Troxy
Link to comment
Share on other sites

Nu tev uz win nebija ieslēgts, ka rāda Notices.

Uz jaunā ir. Izslēgsi un nekas tev nerādīsies.

Vai arī vienk ņem un izlabo, kas tev tur nav uzsetots / tiek nepareizi pieprasīts izvadīt.

 

 

Taas Notices var atsevishki atslegt?Domaju taa nu lai redzeetu pareejos errorus ja nu kas!!!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...