[PHP] A couple of questions

2009-03-16 Thread Payne

Guys,

I had a page working on my opensuse 11.0 32bit, had to upgrade to 11.1 
64bit. I have two strange issues.


The first my code is being display when I call the page, I looked at the 
logs and I don't see any errors that explain why this happen. I looked 
at my php.ini and I don't see anything different or any outstanding.


In fact I put in place my old php.ini to see if I got the same issue and 
I didn't. What that one I am getting


include(): Failed opening 'template/header.inc'

Is there a way I can do like sh -x on a php page to see what is broke?

Thanks,

Payne

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



Re: [PHP] A couple of questions

2009-03-16 Thread Stuart
2009/3/16 Payne pa...@magidesign.com

 I had a page working on my opensuse 11.0 32bit, had to upgrade to 11.1
 64bit. I have two strange issues.

 The first my code is being display when I call the page, I looked at the
 logs and I don't see any errors that explain why this happen. I looked at my
 php.ini and I don't see anything different or any outstanding.

 In fact I put in place my old php.ini to see if I got the same issue and I
 didn't. What that one I am getting

 include(): Failed opening 'template/header.inc'

 Is there a way I can do like sh -x on a php page to see what is broke?


Check your include_path setting - my guess is that it doesn't include the
current directory (.).

-Stuart

-- 
http://stut.net/


Re: [PHP] A couple of questions

2009-03-16 Thread Nick Cooper
2009/3/16 Stuart stut...@gmail.com

 2009/3/16 Payne pa...@magidesign.com

  I had a page working on my opensuse 11.0 32bit, had to upgrade to 11.1
  64bit. I have two strange issues.
 
  The first my code is being display when I call the page, I looked at the
  logs and I don't see any errors that explain why this happen. I looked at
 my
  php.ini and I don't see anything different or any outstanding.
 
  In fact I put in place my old php.ini to see if I got the same issue and
 I
  didn't. What that one I am getting
 
  include(): Failed opening 'template/header.inc'
 
  Is there a way I can do like sh -x on a php page to see what is broke?


 Check your include_path setting - my guess is that it doesn't include the
 current directory (.).

 -Stuart

 --
 http://stut.net/


 The first my code is being display when I call the page

It sounds like you may have been using short tags.

Check for short_open_tag and turn it On:
 short_open_tag = On

Or go through your code and replace ? with ?php

The second option is best.

Nick


Re: [PHP] A couple of questions

2009-03-16 Thread Payne

Nick Cooper wrote:



2009/3/16 Stuart stut...@gmail.com mailto:stut...@gmail.com

2009/3/16 Payne pa...@magidesign.com mailto:pa...@magidesign.com

 I had a page working on my opensuse 11.0 32bit, had to upgrade
to 11.1
 64bit. I have two strange issues.

 The first my code is being display when I call the page, I
looked at the
 logs and I don't see any errors that explain why this happen. I
looked at my
 php.ini and I don't see anything different or any outstanding.

 In fact I put in place my old php.ini to see if I got the same
issue and I
 didn't. What that one I am getting

 include(): Failed opening 'template/header.inc'

 Is there a way I can do like sh -x on a php page to see what is
broke?


Check your include_path setting - my guess is that it doesn't
include the
current directory (.).

-Stuart

--
http://stut.net/


 The first my code is being display when I call the page

It sounds like you may have been using short tags.

Check for short_open_tag and turn it On:
 short_open_tag = On 


Or go through your code and replace ? with ?php

The second option is best.

Nick
 

Nick you where right, I had ? and not ?php thanks. I am working on the 
path issue. I am not sure why, but it calling that file in the apache 
root folder and not home.


Payne

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



Re: [PHP] A couple of questions

2009-03-16 Thread Stuart
2009/3/16 Payne pa...@magidesign.com

 Nick Cooper wrote:



 2009/3/16 Stuart stut...@gmail.com mailto:stut...@gmail.com

2009/3/16 Payne pa...@magidesign.com mailto:pa...@magidesign.com


 I had a page working on my opensuse 11.0 32bit, had to upgrade
to 11.1
 64bit. I have two strange issues.

 The first my code is being display when I call the page, I
looked at the
 logs and I don't see any errors that explain why this happen. I
looked at my
 php.ini and I don't see anything different or any outstanding.

 In fact I put in place my old php.ini to see if I got the same
issue and I
 didn't. What that one I am getting

 include(): Failed opening 'template/header.inc'

 Is there a way I can do like sh -x on a php page to see what is
broke?


Check your include_path setting - my guess is that it doesn't
include the
current directory (.).

-Stuart

--
http://stut.net/


  The first my code is being display when I call the page

 It sounds like you may have been using short tags.

 Check for short_open_tag and turn it On:
  short_open_tag = On
 Or go through your code and replace ? with ?php

 The second option is best.

 Nick


 Nick you where right, I had ? and not ?php thanks. I am working on the
 path issue. I am not sure why, but it calling that file in the apache root
 folder and not home.


Check the archives - current working directory issues were recently
discussed.

-Stuart

-- 
http://stut.net/


Re: [PHP] A couple of questions..

2002-10-28 Thread Marek Kilimajer
I'm sure there are some web based file manegers, check out 
www.hotscripts.com

For your second problem, check first if you appache is sending the right 
response.
Connect, using telnet, to localhost:80, and write:
GET /mp3 HTTP/1.0

(two times enter). Apache should send you 301  Moved Permanently 
response and
also header Location: http://localhost/mp3/;. If it does, the problem 
is in your explorer.

eriol wrote:

I have two very newbie questions..

I want to be able to create a directory index view on my local Apache
server other than the default Apache view (similar to Expow, but not as
complex).. Can anyone recommend a simple script that you know of which
can display Name, Type, Size and Modified Date columns as well as allow
users to browse folders/directories and download the files within them?
I was told browsing subdirectories on Win32 machines isn't possible with
PHP, but I've seen it elsewhere (such as using Expow)..

I assume I could make a simple directory view script myself, but I'm not
familiar enough with PHP to feel comfortable about possible security
issues.. Register globals is off if that has any impact on possible
help..

The second question relates to the first, although it's more of an
Apache question.. I hope someone could help me as I assume it'd be an
easy fix, but I don't know what to search for.. I'm running Apache
1.3.27 on WinXP Pro with PHP 4.2.3 locally.. Whether I type in the
SERVER_ADDR IP address, the computer name, localhost or 127.0.0.1,  I
still get this following problem.. If I view this:

http://localhost/mp3/

I get the default Apache directory index view.. However, if I view this:

http://localhost/mp3 (minus the trailing forward slash)

I can't get a directory listing.. I get the default MSIE error page
similar to no DNS found.. I have most every ErrorDocument number set
correctly and working, but I don't even get an error # or page..

Is there something in Apache's httpd.conf that corrects this? I wasn't
sure if the following has anything to do with this.. With my last setup
(Win98/Apache 1.3.26/PHP 4.1.1), I don't remember having the php.exe
Action  ScriptAlias directive there.. As you probably have guessed, I'm
no expert with Apache either.. When I started Apache in the past on my
old setup, it'd start in console and tell me PHP was running as well..

IfModule mod_dir.c
   DirectoryIndex index.html index.o0o index.php
   AddType application/x-httpd-php .php .o0o
   AddType application/x-httpd-php-source .phps
   Action application/x-httpd-php /php/php.exe
   ScriptAlias /php/ D:/Server/PHP/
/IfModule

FYI: It's not a fulltime, always on server by any means, just something
to let friends grab files from me and allows me to locally test php
scripts when I run it..  Any help is appreciated.. TIA..

Take care.. peace..
eriol



 



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




[PHP] A couple of questions..

2002-10-27 Thread eriol
I have two very newbie questions..

I want to be able to create a directory index view on my local Apache
server other than the default Apache view (similar to Expow, but not as
complex).. Can anyone recommend a simple script that you know of which
can display Name, Type, Size and Modified Date columns as well as allow
users to browse folders/directories and download the files within them?
I was told browsing subdirectories on Win32 machines isn't possible with
PHP, but I've seen it elsewhere (such as using Expow)..

I assume I could make a simple directory view script myself, but I'm not
familiar enough with PHP to feel comfortable about possible security
issues.. Register globals is off if that has any impact on possible
help..

The second question relates to the first, although it's more of an
Apache question.. I hope someone could help me as I assume it'd be an
easy fix, but I don't know what to search for.. I'm running Apache
1.3.27 on WinXP Pro with PHP 4.2.3 locally.. Whether I type in the
SERVER_ADDR IP address, the computer name, localhost or 127.0.0.1,  I
still get this following problem.. If I view this:

http://localhost/mp3/

I get the default Apache directory index view.. However, if I view this:

http://localhost/mp3 (minus the trailing forward slash)

I can't get a directory listing.. I get the default MSIE error page
similar to no DNS found.. I have most every ErrorDocument number set
correctly and working, but I don't even get an error # or page..

Is there something in Apache's httpd.conf that corrects this? I wasn't
sure if the following has anything to do with this.. With my last setup
(Win98/Apache 1.3.26/PHP 4.1.1), I don't remember having the php.exe
Action  ScriptAlias directive there.. As you probably have guessed, I'm
no expert with Apache either.. When I started Apache in the past on my
old setup, it'd start in console and tell me PHP was running as well..

IfModule mod_dir.c
DirectoryIndex index.html index.o0o index.php
AddType application/x-httpd-php .php .o0o
AddType application/x-httpd-php-source .phps
Action application/x-httpd-php /php/php.exe
ScriptAlias /php/ D:/Server/PHP/
/IfModule

FYI: It's not a fulltime, always on server by any means, just something
to let friends grab files from me and allows me to locally test php
scripts when I run it..  Any help is appreciated.. TIA..

Take care.. peace..
eriol



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