Jump to content

Recommended Posts

HI
This is my first post :D


I get a problem with my script

My script:
[quote]<?
include "./conf/config.inc";
include "./conf/mysql_con.php";
$mysql = new mysql_con();
$dbCon = $mysql -> connect();

include "./conf/super_admin_id_check.php";
?>
<html>
<head>
<title>K2Web Class</title>
<meta http-equiv="refresh" content="0;URL=<?=$USER_HOME.$superadmin_id?>/">
</head>

<body>

</body>
</html>[/quote]


I run the same script in diferent server(www.whois.co.kr and www.godaddy.com)  and just workiing with whois.co.kr
and I get error in godaddy
[quote]connect(); include "./conf/super_admin_id_check.php"; ?>[/quote]


I need to know how can I change this, I need to fix it, because I wanna change my server.

THANX ;D
Link to comment
https://forums.phpfreaks.com/topic/13476-got-php-script-problem/
Share on other sites

[quote author=Crayon Violent link=topic=99209.msg390609#msg390609 date=1151864379]
same as you had.

[quote]<?php ... ?>
[/quote]

still not working  :-[

this  is my site

[quote]http://www.coreanito.com[/quote]

my new code is
[quote]
<?php
include "./conf/config.inc";
include "./conf/mysql_con.php";
$mysql = new mysql_con();
$dbCon = $mysql -> connect();

include "./conf/super_admin_id_check.php";
?>
<html>
<head>
<title>K2Web Class</title>
<meta http-equiv="refresh" content="0;URL=<?=$USER_HOME.$superadmin_id?>/">
</head>

<body>

</body>
</html>
[/quote]
Link to comment
https://forums.phpfreaks.com/topic/13476-got-php-script-problem/#findComment-52113
Share on other sites

[quote author=Crayon Violent link=topic=99209.msg390618#msg390618 date=1151864761]
is that the correct path of super_admin_id_check.php?
[/quote]


yes

$USER_HOME.$superadmin_id?


$USER_HOME must been load at  [b]"include "./conf/config.inc";"[/b]

and

$superadmin_id must been load at  [b]include "./conf/mysql_con.php";[/b]


Link to comment
https://forums.phpfreaks.com/topic/13476-got-php-script-problem/#findComment-52120
Share on other sites

[quote author=XoNoX link=topic=99209.msg390632#msg390632 date=1151865538]
yes include command not working

include "./conf/config.inc";
include "./conf/mysql_con.php";

Why? ???  my srcipt is correct
[/quote]

/ reffers to the web root if I'm thinking right (i could be wrong :().  So is your conf folder at your webroot. Try making a relative path?  Like if you have your main folder try putting the conf folder in there and make it

include "conf/config.inc";
include "conf/mysql_con.php";

Im not sure if that will work... Hehe I'm incorrect quite often.
Link to comment
https://forums.phpfreaks.com/topic/13476-got-php-script-problem/#findComment-52143
Share on other sites

[quote author=corbin link=topic=99209.msg390646#msg390646 date=1151866524]
[quote author=XoNoX link=topic=99209.msg390632#msg390632 date=1151865538]
yes include command not working

include "./conf/config.inc";
include "./conf/mysql_con.php";

Why? ???  my srcipt is correct
[/quote]

/ reffers to the web root if I'm thinking right (i could be wrong :().  So is your conf folder at your webroot. Try making a relative path?  Like if you have your main folder try putting the conf folder in there and make it

include "conf/config.inc";
include "conf/mysql_con.php";

Im not sure if that will work... Hehe I'm incorrect quite often.
[/quote]


Thanx

But still not working :-\

Can I replace the include command with another one?
Link to comment
https://forums.phpfreaks.com/topic/13476-got-php-script-problem/#findComment-52150
Share on other sites

[quote author=XoNoX link=topic=99209.msg390653#msg390653 date=1151866856]
[quote author=corbin link=topic=99209.msg390646#msg390646 date=1151866524]
[quote author=XoNoX link=topic=99209.msg390632#msg390632 date=1151865538]
yes include command not working

include "./conf/config.inc";
include "./conf/mysql_con.php";

Why? ???  my srcipt is correct
[/quote]

/ reffers to the web root if I'm thinking right (i could be wrong :().  So is your conf folder at your webroot. Try making a relative path?  Like if you have your main folder try putting the conf folder in there and make it

include "conf/config.inc";
include "conf/mysql_con.php";

Im not sure if that will work... Hehe I'm incorrect quite often.
[/quote]


Thanx

But still not working :-\

Can I replace the include command with another one?
[/quote]

try:

include("conf/config.inc");
include("conf/mysql_con.php");
Link to comment
https://forums.phpfreaks.com/topic/13476-got-php-script-problem/#findComment-52152
Share on other sites

[quote author=corbin link=topic=99209.msg390655#msg390655 date=1151867110]
[quote author=XoNoX link=topic=99209.msg390653#msg390653 date=1151866856]
[quote author=corbin link=topic=99209.msg390646#msg390646 date=1151866524]
[quote author=XoNoX link=topic=99209.msg390632#msg390632 date=1151865538]
yes include command not working

include "./conf/config.inc";
include "./conf/mysql_con.php";

Why? ???  my srcipt is correct
[/quote]

/ reffers to the web root if I'm thinking right (i could be wrong :().  So is your conf folder at your webroot. Try making a relative path?  Like if you have your main folder try putting the conf folder in there and make it

include "conf/config.inc";
include "conf/mysql_con.php";

Im not sure if that will work... Hehe I'm incorrect quite often.
[/quote]


Thanx

But still not working :-\

Can I replace the include command with another one?
[/quote]

try:

include("conf/config.inc");
include("conf/mysql_con.php");

[/quote]



thanx, but sorry, still not working

And if I change some php.ini configuration?
Link to comment
https://forums.phpfreaks.com/topic/13476-got-php-script-problem/#findComment-52156
Share on other sites

I dont think it has anything to do with the php config file... I think something in your directories is wrong... Try something real quick and this can tell if its a problem with php or the script.

Make a folder thats accessible by a web browser put a file in it and name it index.php in index.php put

[code]<? include('inc/inc.php'); ?>[/code]

then make a folder inside that folder named inc and make a file in inc named inc.php and in inc.php put
[code]<? echo "hello"; ?>[/code]

and then go to the index.php file in a web browser and see if it says hello.  If it says hello something is wrong in the syntax of the script you made this thread about...
Link to comment
https://forums.phpfreaks.com/topic/13476-got-php-script-problem/#findComment-52178
Share on other sites

[quote author=corbin link=topic=99209.msg390682#msg390682 date=1151869993]
I dont think it has anything to do with the php config file... I think something in your directories is wrong... Try something real quick and this can tell if its a problem with php or the script.

Make a folder thats accessible by a web browser put a file in it and name it index.php in index.php put

[code]<? include('inc/inc.php'); ?>[/code]

then make a folder inside that folder named inc and make a file in inc named inc.php and in inc.php put
[code]<? echo "hello"; ?>[/code]

and then go to the index.php file in a web browser and see if it says hello.  If it says hello something is wrong in the syntax of the script you made this thread about...
[/quote]

thanx

And the include command work.

Link to comment
https://forums.phpfreaks.com/topic/13476-got-php-script-problem/#findComment-52265
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

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.   Restore formatting

  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.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.