Jump to content

Recommended Posts

Trying to get a php based open source app working.  Troubleshooting why I couldn't get anything to output to the screen on the default page, I've narrowed the crash down to this piece of code:

 

define ('DB_ENGINE', SQL_MYSQL);

$sql = CreateObject (
'PHP.sql', 
DB_ENGINE,
array(
	'host' => DB_HOST, 
	'user' => DB_USER, 
	'password' => DB_PASSWORD, 
	'database' => DB_NAME,
)
);

 

I'm kind of new to the level of PHP work used for this application, so I'm kind of left just diving into it.  I can't tell where this object is used later.  It's obviously setting up what I'd guess is the connection object.  I did some searching on the CreateObject() function and found little to nothing that wasn't in languages not supported by my browser.  :(

 

If anyone could give me some tips or context to this little bit that might help me identify what's breaking in this, I'd greatly appreciate it.

Link to comment
https://forums.phpfreaks.com/topic/70463-createobject-problem/
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.