Search found 11 matches

by peewster
Fri Jan 25, 2013 12:51 pm
Forum: PEAR and PECL
Topic: pear net_nntp
Replies: 1
Views: 3501

pear net_nntp

Hi all, just started with pear net_nntp. Followed the online documentation from pear, but i can't figure out my connection issues to a news server. I followed: http://pear.php.net/manual/en/package.networking.net-nntp.ancient.connectauthenticated.php I used: require_once 'Net/NNTP.php'; boolean Net_...
by peewster
Mon Mar 26, 2012 3:21 am
Forum: PHP & MySQL Security
Topic: [SOLVED] php script plaintext password
Replies: 1
Views: 1860

Re: php script plaintext password

Solved this by creating a password file for user and group apache only.

vmrun -p `cat /<path>/<to>/<passwordfile>`
by peewster
Mon Mar 26, 2012 1:52 am
Forum: PHP & MySQL Security
Topic: [SOLVED] php script plaintext password
Replies: 1
Views: 1860

[SOLVED] php script plaintext password

Hi all, i was wondering how i can setup php with apache the right way. I have installed both, and i need to run some scripts including bash scripts. example: $amount=shell_exec("vmrun <options> <user> <password> > <file> | wc -l"); To do this i need to type a plaintext password for the user, but the...
by peewster
Tue Nov 29, 2011 1:39 am
Forum: PHP coding => General
Topic: session expired (non auto kill) only idle expire
Replies: 1
Views: 603

session expired (non auto kill) only idle expire

So here is my explenation: 1 site with multiple pages/scripts. login: //start the session $_SESSION['login'] = session_id(); $_SESSION['user'] = $_POST['username']; $_SESSION['start'] = time(); $_SESSION['expire'] = $_SESSION['start'] + (10 * 60); //Session loopt na 10min af What i do next on all th...
by peewster
Tue Nov 29, 2011 1:34 am
Forum: PHP Scripts
Topic: testing php session
Replies: 2
Views: 878

Re: testing php session

egami wrote:Well, this may come of a shock to you..
but variables are CASE SenSiTiVe. :)

$_SESSION is not the same as $_session
lol, i just thought it was session with only non caps, but i got it all working :)
by peewster
Mon Nov 21, 2011 10:37 am
Forum: PHP Scripts
Topic: testing php session
Replies: 2
Views: 878

testing php session

Hi all, i'm working on a login script and therefore i needed to test something. The thing is, what i like to test, doesn't seem to do what i want. example: <?PHP session_start(); $_session['count'] += 1; //doesn't work //$_session['count'] = $_session['count'] + 1; //this doesn't work either echo "T...
by peewster
Wed Nov 02, 2011 4:22 am
Forum: mySQL & php coding
Topic: popup, autogenerated link, howto get correct link info
Replies: 0
Views: 396

popup, autogenerated link, howto get correct link info

Sorry for the unclear description but i dind't knew howto explain my issue in short... I have a page were i can add information and when pressing the submit button it will be stored in a mysql db. The page also runs queries on the database and shows the inserted information. While inserting this inf...
by peewster
Tue Nov 01, 2011 3:08 am
Forum: mySQL & php coding
Topic: secure mysql_connection ?
Replies: 2
Views: 726

Re: secure mysql_connection ?

That's a good point. I was on a holiday for a while so sorry for the late respond.
by peewster
Tue Nov 01, 2011 3:06 am
Forum: mySQL & php coding
Topic: refresh main page with submit on popup
Replies: 2
Views: 526

Re: refresh main page with submit on popup

sorry for this late reply, i didn't used the button afterall.
by peewster
Wed Oct 19, 2011 11:43 pm
Forum: mySQL & php coding
Topic: refresh main page with submit on popup
Replies: 2
Views: 526

refresh main page with submit on popup

Hi all, i have a questiong about refreshing the main page while clicking a submit button on a popup window. I have main page wich does queries on a sql server, on that page there are buttons to add or delete rows to specific tables. When i click on the add button, a popup shows up, requesting the in...
by peewster
Mon Oct 10, 2011 3:26 am
Forum: mySQL & php coding
Topic: secure mysql_connection ?
Replies: 2
Views: 726

secure mysql_connection ?

Hi all, i'm pretty new to php, but i like it. I'm stumbling on a question i cannot solve on my own i guess. This is the situation: <?php mysql_connect("localhost", "user", "plaintekst password...") or die("mysql_error()); ?> I don't want the password plaintekst in here.... How can i use encrypted pa...