[PHP] really weird problem

2002-02-14 Thread Jaxon

hi folks, can someone shed some light here?

i've got a file called index.php with the following contents:

?php

echo debug output: index.php loadedbr;
if (is_null($page_name)) $page_name=about;
echo debug: page name = $page_namebr;

$nav_array = array (about = About,
reservations = Reservations,
directions = Directions,
contact = Contact
);

$nav=lnav.inc.php;
$footer=foot.inc.php;
$pic = $page_name . jpg;
$text= $page_name . .txt;
?

when i call the page, i get no visible output - this is the resulting page
source:

!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN
HTMLHEAD
META http-equiv=Content-Type content=text/html;
charset=windows-1252/HEAD
BODY/BODY/HTML

so where the heck are the html tags coming from???
the other weird thing is that a file with just ?php phpinfo(); ? works
fine!

any ideas?

cheers,
jaxon



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] really weird problem

2002-02-14 Thread Lars Torben Wilson

On Thu, 2002-02-14 at 11:15, Jaxon wrote:
 hi folks, can someone shed some light here?
 
 i've got a file called index.php with the following contents:
 
 ?php
 
 echo debug output: index.php loadedbr;
 if (is_null($page_name)) $page_name=about;
 echo debug: page name = $page_namebr;
 
 $nav_array = array (about = About,
 reservations = Reservations,
 directions = Directions,
 contact = Contact
 );
 
 $nav=lnav.inc.php;
 $footer=foot.inc.php;
 $pic = $page_name . jpg;
 $text= $page_name . .txt;
 ?
 
 when i call the page, i get no visible output - this is the resulting page
 source:

 !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN
 HTMLHEAD
 META http-equiv=Content-Type content=text/html;
 charset=windows-1252/HEAD
 BODY/BODY/HTML

Dunno--are you using IE? IIRC this is what IE does when it doesn't get
any data from the browser. IE likes to present you with information
other than what was really sent, especially in error conditions, so it
suck to develop with. Try telneting to your web server and see what
output you get.
 
 so where the heck are the html tags coming from???
 the other weird thing is that a file with just ?php phpinfo(); ? works
 fine!
 
 any ideas?

On an unrelated note, check this: 

 $nav_array = array (about = About,
 reservations = Reservations,
 directions = Directions,
 contact = Contact
 );

I doubt that this does what you expect. ;) I could be wrong, but I bet
you meant:

 $nav_array = array (about = About,
 reservations = Reservations,
 directions = Directions,
 contact = Contact
 );


Torben

 cheers,
 jaxon

-- 
 Torben Wilson [EMAIL PROTECTED]
 http://www.thebuttlesschaps.com
 http://www.hybrid17.com
 http://www.inflatableeye.com
 +1.604.709.0506


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] really weird problem

2002-02-14 Thread Jaxon

Lars,

Thanks, you were right that IE was dumping things.
I think there must have been some wacky line breaks or somesuch.
Re-typing the file by hand produced success.

cheers,
jaxon
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Really weird problem: cross-server databasing *g*

2001-09-02 Thread Andrew Brampton

How about you make a simple script on Server B that will handle Database
stuff, and you get a Script on server A to fopen http://B/myscript.php and
do calls like myscript.php?a=addname=fredaddress=uk etc

and you can do the same to retrieve data but just parse out the popup with
the script on Server A

Does this wierd idea make sense?

Andrew
- Original Message -
From: Markus Mayer [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Sunday, September 02, 2001 3:42 AM
Subject: [PHP] Really weird problem: cross-server databasing *g*


 Hi folks!

 Let's say you have two servers, on the first one (A) you have your
website
 containig all those nice php scripts and co but only a crazy small
database
 (2 megs), on the second one (B) you have a really big database available
 but the problem, that the provider won't allow you to access the database
 from any other place than from your account on B. That wouldn't be the
 problem, but B opens pop ups each time, you open a website there - and
that
 couldn't be the solution.

 Has anyone an idea how to access the database on B without opening a
webpage
 there (and with this, without opening a popup) from server A?

 ANY help much appreciated!

 Markus Mayer



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Really weird problem: cross-server databasing *g*

2001-09-01 Thread Markus Mayer

Hi folks!

Let's say you have two servers, on the first one (A) you have your website
containig all those nice php scripts and co but only a crazy small database
(2 megs), on the second one (B) you have a really big database available
but the problem, that the provider won't allow you to access the database
from any other place than from your account on B. That wouldn't be the
problem, but B opens pop ups each time, you open a website there - and that
couldn't be the solution.

Has anyone an idea how to access the database on B without opening a webpage
there (and with this, without opening a popup) from server A?

ANY help much appreciated!

Markus Mayer



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]