470,855 Members | 1,309 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,855 developers. It's quick & easy.

Help - PHP problems

HI guys and gals,

The situation is this - My F***ing boss has told one of our clients that we
will host their website ..... it is php and I have no idea at all about php.
My uber-inteligent boss has also inform their former hosting company to stop
hosting, so now our client has NO website .... well done boss

We host with IIS, WIN 2K.

I have placed their existing site in my a subdomain of the company's -
http://ryan.accit.com.au

Intalled PHP and made the associations in IIS. The page comes up and reports
various PHP errors - please veiew page to see problem.

Is there any basic steps I have miseed .... Could someone please help me ...
I am desperate.

Cheers, Ryan
Jul 17 '05 #1
9 1682
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Fri, 30 Jul 2004 13:56:50 +0800
"Ryan Miller" <x@xxxx> wrote:

[snip]

Intalled PHP and made the associations in IIS. The page comes up and
reports various PHP errors - please veiew page to see problem.

Hmm, I see no error but one produced in the script std.php, not by PHP
itself though, but by the script...
Is there any basic steps I have miseed .... Could someone please help
me ... I am desperate.


Hmm, depends on whether you boss is going to pay via paypal or visa. :p

Madsen

- --
Anders K. Madsen --- http://lillesvin.linux.dk

"There are 10 types of people in the world.
Those who understand binary - and those who don't."

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBCe18lNHJe/JASHcRArd0AJ0bSimeF2tA+sFgftL2lJA8XjhAugCfWSwr
iXRnhigf5mKLtMV7PummgwY=
=FKs9
-----END PGP SIGNATURE-----
Jul 17 '05 #2
I noticed that Message-ID: <20040730084100.213ecaa4@lapsvin> from Anders
K. Madsen contained the following:
Intalled PHP and made the associations in IIS. The page comes up and
reports various PHP errors - please veiew page to see problem.


Hmm, I see no error but one produced in the script std.php, not by PHP
itself though, but by the script...


Me neither. I notice the links have query strings, is there a database
associated with this site by any chance or is there just a series of
numbered pages? It may be that the script has been written assuming
register globals is on (which it won't be on your new install). Try
looking at what it is doing with the id variable or failing that, post
the code for std.php in here.
--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
Jul 17 '05 #3
Geoff,

Code for std.php

-----------------------------------------------------
<?php
/*

require("includes/sitedef.php");
require("classes/template.php");
require("classes/pages.php");
require("classes/std.php");
include("includes/printcheck.php");

if(isset($page) && file_exists("templates/".$page.".tpl"))
{
$tpl_page = new Template("templates/".$page.".tpl");
$content = $tpl_page->template;
$title = "";
}
elseif($id)
{
$std = new Std("includes/sitedef.php", $id);
require("includes/security.php");
$std->print = $print;
$content = $std->getPage();
$title = $std->getTitle();
}
else
{
$content = "No page supplied to std.php";
}

$values = array( "main" => $content, "title" => $title );
$tpl->parse($values);
$tpl->output();
?>

-----------------------------------------------------------------

"Geoff Berrow" <bl******@ckdog.co.uk> wrote in message
news:8a********************************@4ax.com...
I noticed that Message-ID: <20040730084100.213ecaa4@lapsvin> from Anders
K. Madsen contained the following:
Intalled PHP and made the associations in IIS. The page comes up and
reports various PHP errors - please veiew page to see problem.


Hmm, I see no error but one produced in the script std.php, not by PHP
itself though, but by the script...


Me neither. I notice the links have query strings, is there a database
associated with this site by any chance or is there just a series of
numbered pages? It may be that the script has been written assuming
register globals is on (which it won't be on your new install). Try
looking at what it is doing with the id variable or failing that, post
the code for std.php in here.
--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/

Jul 17 '05 #4
I noticed that Message-ID: <41********@quokka.wn.com.au> from Ryan
Miller contained the following:
Code for std.php


To see if it is a register globals problem try adding

$id=$_GET['id'];

at the top.

--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
Jul 17 '05 #5
Ryan Miller wrote:
Geoff,

Code for std.php


Set the register_globals directive in the php.ini file to
'register_globals = on'...
Jul 17 '05 #6
Aidan wrote:
Set the register_globals directive in the php.ini file to
'register_globals = on'...


Bad idea, as this is a major security hole.

S.
Jul 17 '05 #7
On Sun, 01 Aug 2004 22:55:14 +0200, Sebastian Lauwers
<da***********@nospam.9online.fr> wrote:
Aidan wrote:
Set the register_globals directive in the php.ini file to
'register_globals = on'...


Bad idea, as this is a major security hole.


Not inherently it isn't. It's only when combined with bad programming
practices that it can produce a security hole.

Since it introduces unknown numbers of global variables it is itself a bad
programming practice, but turning it on does not automatically introduce
vulnerabilities.

--
Andy Hassall / <an**@andyh.co.uk> / <http://www.andyh.co.uk>
<http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool
(v1.4.0 new 1st Aug 2004)
Jul 17 '05 #8
Sebastian Lauwers wrote:
Aidan wrote:
Set the register_globals directive in the php.ini file to
'register_globals = on'...

Bad idea, as this is a major security hole.

S.

I know this, but it's the quickest way to get the site working, as it
appears that the errors arise due to unset global variables... turn it
on, fix the script so it doesn't need it, then turn it back off...
Jul 17 '05 #9
Thanks guys,

The site is running .... well sortof .... and any one help me with the
Script errors at the bottom of the page ??

http://ryan.accit.com.au

Thanks again to all those who helped.

Cheers, Ryan
"Ryan Miller" <x@xxxx> wrote in message news:41********@quokka.wn.com.au...
Geoff,

Code for std.php

-----------------------------------------------------
<?php
/*

require("includes/sitedef.php");
require("classes/template.php");
require("classes/pages.php");
require("classes/std.php");
include("includes/printcheck.php");

if(isset($page) && file_exists("templates/".$page.".tpl"))
{
$tpl_page = new Template("templates/".$page.".tpl");
$content = $tpl_page->template;
$title = "";
}
elseif($id)
{
$std = new Std("includes/sitedef.php", $id);
require("includes/security.php");
$std->print = $print;
$content = $std->getPage();
$title = $std->getTitle();
}
else
{
$content = "No page supplied to std.php";
}

$values = array( "main" => $content, "title" => $title );
$tpl->parse($values);
$tpl->output();
?>

-----------------------------------------------------------------

"Geoff Berrow" <bl******@ckdog.co.uk> wrote in message
news:8a********************************@4ax.com...
I noticed that Message-ID: <20040730084100.213ecaa4@lapsvin> from Anders
K. Madsen contained the following:
> Intalled PHP and made the associations in IIS. The page comes up and
> reports various PHP errors - please veiew page to see problem.
>

Hmm, I see no error but one produced in the script std.php, not by PHP
itself though, but by the script...


Me neither. I notice the links have query strings, is there a database
associated with this site by any chance or is there just a series of
numbered pages? It may be that the script has been written assuming
register globals is on (which it won't be on your new install). Try
looking at what it is doing with the id variable or failing that, post
the code for std.php in here.
--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/


Jul 17 '05 #10

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by abcd | last post: by
reply views Thread by Creativy, writing and more | last post: by
1 post views Thread by malcolm | last post: by
2 posts views Thread by Vladislav Moltchanov | last post: by
3 posts views Thread by inkexit | last post: by
4 posts views Thread by Robin Haswell | last post: by
4 posts views Thread by beg_c++ | last post: by
53 posts views Thread by souporpower | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.