kleddon Posted December 12, 2009 Share Posted December 12, 2009 I have an emailer script that I had boughten but I am not sure how to edit it.. Can some else help me.? It is a small scripts and the other scripts I have edited in the past I was given unstructions on and I am a little confused. I have attached the scripts I am looking to edit... Any help would be greatly appreciated... [attachment deleted by admin] Link to comment https://forums.phpfreaks.com/topic/184916-i-was-hoping-to-find-some-help-with-editing-a-script/ Share on other sites More sharing options...
kleddon Posted December 12, 2009 Author Share Posted December 12, 2009 Sorry guys I do not think that I was clear enough on my post I am not sure what to replace with my mysql information Mysqp information is as follows: host: localhost database: kirkled1_gmailer user: kirkled1_kleddon PW: caleb123 Link to comment https://forums.phpfreaks.com/topic/184916-i-was-hoping-to-find-some-help-with-editing-a-script/#findComment-976165 Share on other sites More sharing options...
cags Posted December 13, 2009 Share Posted December 13, 2009 If ($action=="mysql"){ #Grab email addresses from MySQL include "./mysql.info.php"; if (!$sqlhost || !$sqllogin || !$sqlpass || !$sqldb || !$sqlquery){ It would appear that your settings should probably be set in the "mysql.info.php" file under the names $sqlhost, $sqllogin, $sqlpass and $sqldb. It also appears that to use MySQL $action needs to be set to "mysql" at some point, I don't see it receiving a value at all in that script. Link to comment https://forums.phpfreaks.com/topic/184916-i-was-hoping-to-find-some-help-with-editing-a-script/#findComment-976454 Share on other sites More sharing options...
kleddon Posted December 14, 2009 Author Share Posted December 14, 2009 After reading though the script several times I got the impression that I needed to create a new file for the script to call up. I looked at another email script that I had loaded into my server and it was of course the config.php file that had all the sql server data. So, what I have done is I did create a new php file with the sql data and named it mysql.info.php. I have uploaded the file and later today I am going to test out the script. The other script is a great script so if this was just for my use I would not worry about it since the script that i had mentioned works great on my server. I want to sell this new script as I have resale rights for it. But the working script I don't have resale rights to... I just wanted to make sure that it works before I try to sell it... thanks a bunch for your reply.... Kirk Link to comment https://forums.phpfreaks.com/topic/184916-i-was-hoping-to-find-some-help-with-editing-a-script/#findComment-977084 Share on other sites More sharing options...
The Eagle Posted December 14, 2009 Share Posted December 14, 2009 You're selling an email script? I'm not sure why, there is a bunch of free email scripts out there. Unless yours does something that others do not, then sure go for it. Also, you need the MySQL database to be in a configuration file that would be pulled up on the original script. Read this below, <?php include("config.php"); ?> You could always try require() too, but that returns fatal errors if not done right, which are ugly. Link to comment https://forums.phpfreaks.com/topic/184916-i-was-hoping-to-find-some-help-with-editing-a-script/#findComment-977213 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.