My site is giving me a 500 internal error. In the data.php file it is asking for a few things:

//db access info
$sql_user='';//db user
$sql_pass='';//db pass
$sql_db='';//db name
//path and url
$base_path="";//full path to script
$main_url="";//url to the script
$cookie_url="";//the domain name of your website without http://www

The $base_path= is the one it looks like I am having trouble with. Is that the Public path?

Recommended Answers

All 7 Replies

I don't think there is a way for us to know what the author of that script meant with $base_path. I think you should look into the rest of the script, see where it is used and try to determine in that way what its value should be.

Do you now where I might be able to find it?

A base path is usually the absolute path to your script, something like /me/public_html/folder

You may be able to find it in include lines. Usually it is used - like pritaeas says - to specify a path where for example files to include can be found (which is mostly in your project's directory).

I am checking

I got it, looks like it was a permission error.

Now I got a if (ereg($pattern,$line,$regs)){ issue because of the PHP upgrade

ereg needs to be replaced with preg_match but IIRC the pattern needs changing too.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.