Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> RavenNuke(tm) v2.5x
Author Message
neralex
Site Admin



Joined: Aug 22, 2007
Posts: 1538

PostPosted: Fri Aug 03, 2012 4:55 am Reply with quote

Hey!

I would use the mainfile.php from an another user on the same linux server to connect the database. But i get as repsone: Invalid IP Address!

i use: php -q myfile.php

In myfile.php are the require to the mainfile, the globals $db and $prefix, and my sql query.

Is this the sentinel or what can i do to allow the access from the same server on this file?

Question


Last edited by neralex on Fri Aug 03, 2012 5:49 am; edited 1 time in total 
View user's profile Send private message
nuken
RavenNuke(tm) Development Team



Joined: Mar 11, 2007
Posts: 2024
Location: North Carolina

PostPosted: Fri Aug 03, 2012 5:27 am Reply with quote

You can bypass the ip check in rnconfig. I assume you are using it as a localhost? If so that would explain why you are getting the Invalid IP Address.
[ Only registered users can see links on this board! Get registered or login! ]

_________________
Tricked Out News 
View user's profile Send private message Send e-mail Visit poster's website
neralex







PostPosted: Fri Aug 03, 2012 5:36 am Reply with quote

Its not an local server. A cron from an another sys user needs to run a php file. This file contains some sql querys from the nuke tables.
 
neralex







PostPosted: Fri Aug 03, 2012 5:47 am Reply with quote

...ok i get it sorted!

I must include the config.php and the db.php. after this is all fine Smile I don't need the mainfile for this. Smile
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> RavenNuke(tm) v2.5x

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©