digwnews 0 Light Poster
<?php
$url="http://www.norskbildelkatalog.no/default.aspx?cat=2&Id=18";
 $ch = curl_init();

        curl_setopt($ch, CURLOPT_URL,$url); // set url to post to
        curl_setopt($ch, CURLOPT_FAILONERROR, 1);
        curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);// allow redirects
        curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); // return into a variable
        curl_setopt($ch, CURLOPT_TIMEOUT, 20); // times out after 4s
        curl_setopt($ch, CURLOPT_USERAGENT,'Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.9.0.8) Gecko/2009032609 Firefox/3.0.8');
curl_setopt($ch, CURLOPT_COOKIEJAR, './cook.txt'); 
curl_setopt($ch, CURLOPT_COOKIEFILE, './cook.txt'); 
		$html = curl_exec($ch);


$ch = curl_init('http://www.norskbildelkatalog.no/default.aspx?cat=2&Id=18');
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($ch, CURLOPT_POST, 1);
    curl_setopt($ch, CURLOPT_POSTFIELDS, '__VIEWSTATE=%2FwEPDwULLTE2OTYxMTQyOTJkZKnDWEWkr2o2KzEZL%2FUtwkVYytbh&__EVENTVALIDATION=%2FwEWBAKCiZ7KBAL06sf%2FAQK%2F0oqcCQLnrI%2BZD94ytl4m3yVK2AjSmUM%2FlJpk24m3&ctl00%24tbUserName=vwx7a&ctl00%24tbPassword=smwhe&ctl00%24btnLogin=');
    curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);// allow redirects
    curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 6.1; ru; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5');
	

    curl_setopt($ch, CURLOPT_COOKIEJAR, './cook.txt');
    curl_setopt($ch, CURLOPT_COOKIEFILE, './cook.txt');
    $res = curl_exec($ch);
	echo $res;
?>
digwnews 0 Light Poster

With your log/pass it doesn't work in browser.

digwnews 0 Light Poster

Can you post structure of your database?

digwnews 0 Light Poster
<?php
$url="http://nbk2.autodata.no/default.aspx?11=4&14=12&10=0091771271436042004012&12=1003";
 $ch = curl_init();

        curl_setopt($ch, CURLOPT_URL,$url); // set url to post to
        curl_setopt($ch, CURLOPT_FAILONERROR, 1);
        curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);// allow redirects
        curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); // return into a variable
        curl_setopt($ch, CURLOPT_TIMEOUT, 20); // times out after 4s
        curl_setopt($ch, CURLOPT_USERAGENT,'Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.9.0.8) Gecko/2009032609 Firefox/3.0.8');
curl_setopt($ch, CURLOPT_COOKIEJAR, './cook.txt'); 
curl_setopt($ch, CURLOPT_COOKIEFILE, './cook.txt'); 
		$html = curl_exec($ch);
echo $html;

$ch = curl_init('http://nbk2.autodata.no/default.aspx?11=4&14=12&10=0091771271436042004012&12=1003&204=false');
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($ch, CURLOPT_POST, 1);
    curl_setopt($ch, CURLOPT_POSTFIELDS, '__EVENTTARGET=&__EVENTARGUMENT=&__VIEWSTATE=%2FwEPDwUJOTEyNTM2NDY2ZGReJw3PG62XkgM7gYqdrdP%2B0zHxDQ%3D%3D&username=admin&password=passw&login=Send&__PREVIOUSPAGE=oL0kSGhtXbLqdHQg0uFgqg2');
    curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);// allow redirects
    curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 6.1; ru; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5');
	

    curl_setopt($ch, CURLOPT_COOKIEJAR, './cook.txt');
    curl_setopt($ch, CURLOPT_COOKIEFILE, './cook.txt');
    $res = curl_exec($ch);
	echo $res;
?>
digwnews 0 Light Poster

Okay. But you must save cookies from this page before sending post query.

digwnews 0 Light Poster

No!
You must parse __VIEWSTATE and __PREVIOUSPAGE variables using regular expressions because they will change in next time.

digwnews 0 Light Poster

try:

RdirectMatch 301 =(.*)$ http://enkelt-webdesign.dk/$1
digwnews 0 Light Poster

mmm...
You may use this in your php script:

header("location: http://enkelt-webdesign.dk/".$_GET['titel']);

And why do not you change all links on the site in http://enkelt-webdesign.dk/something style?

digwnews 0 Light Poster
digwnews 0 Light Poster
digwnews 0 Light Poster

Also add in .htaccess file:

RedirectMatch ^index\.php\?sid=(.*)&titel=(.*)$ http://enkelt-webdesign.dk/$2
digwnews 0 Light Poster

You need to redirect?

digwnews 0 Light Poster

When you enter in browser enkelt-webdesign.dk/forside, you're getting a 404 error?

digwnews 0 Light Poster

You can using this:

$title=$info['title']; 
$$title= new Book ($title,$Author,$Description);
digwnews 0 Light Poster

Your error in

$info['title'];=> new Book ($title,$Author,$Description);

line. What do you want with it?

May be...:

$obj = new Book ($title,$Author,$Description);
digwnews 0 Light Poster

You must put it in .htaccess file.

RewriteEngine On
      RewriteRule ^([a-zA-Z0-9_-]+)$ index.php?sid=1&titel=$1
      RewriteRule ^([a-zA-Z0-9_-]+)/$ index.php?sid=1&titel=$1
digwnews 0 Light Poster

Did you install a mail server?

And check your spam folder.

digwnews 0 Light Poster

That function can help you protect from sql injection.
For example, if in your script enters $_POST and then put in a sql query you may protect many ways of hacking.
About sql inj: http://en.wikipedia.org/wiki/SQL_injection

Also this function can be useful in regular expressions.
Analog of this function is addslashes()

digwnews 0 Light Poster

That's can help from hacking if you get any strings from user's forms.

digwnews 0 Light Poster

Of course, [snipped]

digwnews 0 Light Poster
digwnews 0 Light Poster

In javascript with jquery framework(example for one textbox):

<html>
<head>
  <script src="http://code.jquery.com/jquery-latest.js"></script>
<script>
$(document).ready(function(){
  $("#btn").click(function () {
  $('#text').text($('#txt').val());
 
	});
  });
  </script>
  </head>
  <body>
<textarea id="txt">txt</textarea>
  <div id="text">txt</div><br />
  <button id="btn">Go!</button>
  </body>
  </html>
digwnews 0 Light Poster

You must install any php powerpoint reader on your site.
But I don't know whether such.

Library for work with .ppt:
http://phppowerpoint.codeplex.com/

Or you may use google service "documents".

digwnews 0 Light Poster

How this?

<?php
if($_POST['box1'])
{
echo $_POST['box1']."<br>".$_POST['box2'];
}
else
{
echo '<form method="post" action="">
<textarea name="box1"></textarea>
<textarea name="box2"></textarea>
<input type="submit" value="check">
</form>';
}
?>
digwnews 0 Light Poster

For login on this site, you at begin must parse __VIEWSTATE and __PREVIOUSPAGE variables a then send post request by curl like this:

__EVENTTARGET=&__EVENTARGUMENT=&__VIEWSTATE=%2FwEPDwUJOTEyNTM2NDY2ZGReJw3PG62XkgM7gYqdrdP%2B0zHxDQ%3D%3D&username=test&password=test&login=Send&__PREVIOUSPAGE=oL0kSGhtXbLqdHQg0uFgqg2

And don't forget about cookies!

digwnews 0 Light Poster

In php it is unreal.
You may generate a page for print on php and then use javascript to put the page on print.

digwnews 0 Light Poster

That's not error.
For checking insert before 17 line:
echo $date;

and see what's on the screen.

digwnews 0 Light Poster
digwnews 0 Light Poster

convert from string to UNUX format.

<?php
echo strtotime("now"), "\n";
echo strtotime("10 September 2000"), "\n";
echo strtotime("+1 day"), "\n";
echo strtotime("+1 week"), "\n";
echo strtotime("+1 week 2 days 4 hours 2 seconds"), "\n";
echo strtotime("next Thursday"), "\n";
echo strtotime("last Monday"), "\n";
?>
digwnews 0 Light Poster

You can write scripts in order to gain experience

digwnews 0 Light Poster

May be

$query ="SELECT account_details. nic,full_name,phone_number,address,gender,date_of_birth,account.name_with_initials,account_type,fd_period"." FROM account_details,account"." WHERE account_details.account_number=account.account_number";
digwnews 0 Light Poster

perhaps you have not installed a mail server

digwnews 0 Light Poster

I understand very little what you need. But this line is just an extra in this source:

$query = "select * from transaction WHERE account_number='$account_number'";
   mysql_query($query) or die(mysql_error());
digwnews 0 Light Poster

You can visit http://www.informit.com/articles/article.aspx?p=31840&seqNum=4
But using multidimensional array is very simple and not differ from other languages.