[thelist] Re: PHP file association

John DeStefano john.destefano at gmail.com
Mon Jun 5 14:45:38 CDT 2006


> >Hi all,
> >
> >Another possibility is the Windows file association function. Open up
> >Windows Explorer. Click on Tools > File Types. Scroll down to PHP files. If
> >the association is DW8, change it.
> >
> >Ken
> >
> > >Hi John:
> > >
> > >I am not sitting in front of DW8 at the moment but try looking in the
> > >Help menu for file associations. I remember that when DW is installed,
> > >it asks you which filetypes you want DW associated with: if this dialog
> > >can be prompted to appear again, you might be able to correct the issue
> > >you have discovered.
> > >
> > >Jules

Hi Jules and Ken,

The DW associations you mentioned are simple enough to find (), and
they do indeed appear to be exactly as I left them: with no direct
file type associations to DW.  In fact, as I mentioned last week, my
Windows association for .PHP files now appears linked to PHPEdit, not
DW.  Yet it was the installation of DW that seemed to coincide with
this odd behavior in PHP files.

An added twist: I found that if I drag a local copy of the file into a
browser, it renders and views just fine inside the browser, but
attempts to view the page from my server results in a download dialog
box.

This made me wonder whether PHP was actually working on the server,
but a simple phpinfo() spit back most the expected results, although
it seems there are now some "missing" libraries (GD, ImageMagik, PDF);
please see attached log if interested.  Could my "association" error
be in actuality a PHP server library error?  Would this occur even
when the missing libraries are not being called into play?

Thanks,
~John

> > >-----Original Message-----
> > >
> > >I've had PHP installed on my machine for a while, and PHP pages within
> > >Web site have always opened properly within my browser... until I
> > >installed Dreamweaver 8.  Even though I unselected all file associations
> > >during installation, something got screwed up: when I visit a PHP page,
> > >both Firefox and IE prompt me to either download the file or open it in
> > >PHPEdit (which I've also had installed for some time without this
> > >issue).  So I assume Dreamweaver selected PHP as an association during
> > >installation by default, then triggered the existing association with
> > >PHPEdit somehow to override opening PHP files in my browsers.  I checked
> > >my Firefox associations, but PHP is not listed (and you can only view
> > >and edit, and not create, associations in Firefox options).
-------------- next part --------------
/usr/www$ php -v
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20050922/gd.so' - Cannot open "/usr/local/lib/php/20050922/gd.so" in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20050922/imagick.so' - Cannot open "/usr/local/lib/php/20050922/imagick.so" in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20050922/pdf.so' - Cannot open "/usr/local/lib/php/20050922/pdf.so" in Unknown on line 0
PHP 5.1.4 (cli) (built: May 29 2006 23:04:21) 
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies


/usr/www$ php /usr/www/info.php
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20050922/gd.so' - Cannot open "/usr/local/lib/php/20050922/gd.so" in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20050922/imagick.so' - Cannot open "/usr/local/lib/php/20050922/imagick.so" in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20050922/pdf.so' - Cannot open "/usr/local/lib/php/20050922/pdf.so" in Unknown on line 0
phpinfo()
PHP Version => 5.1.4
System => FreeBSD zurg.thedestefanos.com 6.1-STABLE FreeBSD 6.1-STABLE #0: Sun May 28 12:53:02 EDT 2006     root at zurg.thedestefanos.com:/usr/obj/usr/src/sys/GENERIC i386
Build Date => May 29 2006 23:00:00
Configure Command =>  './configure' '--enable-versioning' '--enable-memory-limit' '--with-layout=GNU' '--with-config-file-scan-dir=/usr/local/etc/php' '--disable-all' '--enable-libxml' '--with-libxml-dir=/usr/local' '--enable-reflection' '--enable-spl' '--program-prefix=' '--enable-fastcgi' '--with-regex=php' '--with-zend-vm=CALL' '--prefix=/usr/local' 'i386-portbld-freebsd6.1'
Server API => Command Line Interface
Virtual Directory Support => disabled
Configuration File (php.ini) Path => /usr/local/etc
Scan this dir for additional .ini files => /usr/local/etc/php
additional .ini files parsed => /usr/local/etc/php/extensions.ini
PHP API => 20041225
PHP Extension => 20050922
Zend Extension => 220051025
Debug Build => no
Thread Safety => disabled
Zend Memory Manager => enabled
IPv6 Support => enabled
Registered PHP Streams => php, file, http, ftp, https, ftps  
Registered Stream Socket Transports => tcp, udp, unix, udg, ssl, sslv3, sslv2, tls
Registered Stream Filters => string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, convert.iconv.*
This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies
 _______________________________________________________________________
Configuration
PHP Core
Directive => Local Value => Master Value
allow_call_time_pass_reference => On => On
allow_url_fopen => On => On
always_populate_raw_post_data => Off => Off
arg_separator.input => & => &
arg_separator.output => & => &
asp_tags => Off => Off
auto_append_file => no value => no value
auto_globals_jit => On => On
auto_prepend_file => no value => no value
browscap => no value => no value
default_charset => no value => no value
default_mimetype => text/html => text/html
define_syslog_variables => Off => Off
disable_classes => no value => no value
disable_functions => no value => no value
display_errors => On => On
display_startup_errors => Off => Off
doc_root => no value => no value
docref_ext => no value => no value
docref_root => no value => no value
enable_dl => On => On
error_append_string => no value => no value
error_log => no value => no value
error_prepend_string => no value => no value
error_reporting => no value => no value
expose_php => On => On
extension_dir => /usr/local/lib/php/20050922 => /usr/local/lib/php/20050922
file_uploads => On => On
highlight.bg => #FFFFFF => #FFFFFF
highlight.comment => #FF8000 => #FF8000
highlight.default => #0000BB => #0000BB
highlight.html => #000000 => #000000
highlight.keyword => #007700 => #007700
highlight.string => #DD0000 => #DD0000
html_errors => Off => On
ignore_repeated_errors => Off => Off
ignore_repeated_source => Off => Off
ignore_user_abort => Off => Off
implicit_flush => On => Off
include_path => .: => .:
log_errors => Off => Off
log_errors_max_len => 1024 => 1024
magic_quotes_gpc => On => On
magic_quotes_runtime => Off => Off
magic_quotes_sybase => Off => Off
mail.force_extra_parameters => no value => no value
max_execution_time => 0 => 30
max_input_time => -1 => -1
memory_limit => 12M => 12M
open_basedir => no value => no value
output_buffering => 0 => 0
output_handler => no value => no value
post_max_size => 8M => 8M
precision => 14 => 14
realpath_cache_size => 16K => 16K
realpath_cache_ttl => 120 => 120
register_argc_argv => On => On
register_globals => Off => Off
register_long_arrays => On => On
report_memleaks => On => On
report_zend_debug => Off => Off
safe_mode => Off => Off
safe_mode_exec_dir => /usr/local/php/bin => /usr/local/php/bin
safe_mode_gid => Off => Off
safe_mode_include_dir => no value => no value
sendmail_from => no value => no value
sendmail_path => /usr/sbin/sendmail -t -i  => /usr/sbin/sendmail -t -i 
serialize_precision => 100 => 100
short_open_tag => On => On
SMTP => localhost => localhost
smtp_port => 25 => 25
sql.safe_mode => Off => Off
track_errors => Off => Off
unserialize_callback_func => no value => no value
upload_max_filesize => 2M => 2M
upload_tmp_dir => no value => no value
user_dir => no value => no value
variables_order => EGPCS => EGPCS
xmlrpc_error_number => 0 => 0
xmlrpc_errors => Off => Off
y2k_compliance => On => On
zend.ze1_compatibility_mode => Off => Off
calendar
Calendar support => enabled
ctype
ctype functions => enabled
date
date/time support => enabled
Timezone Database Version => 2006.1
Timezone Database => internal
Default timezone => America/New_York
Directive => Local Value => Master Value
date.default_latitude => 31.7667 => 31.7667
date.default_longitude => 35.2333 => 35.2333
date.sunrise_zenith => 90.583333 => 90.583333
date.sunset_zenith => 90.583333 => 90.583333
date.timezone => no value => no value
dba
DBA support => enabled
Supported handlers => cdb cdb_make inifile flatfile 
dom
DOM/XML => enabled
DOM/XML API Version => 20031129
libxml Version => 2.6.24
HTML Support => enabled
XPath Support => enabled
XPointer Support => enabled
Schema Support => enabled
RelaxNG Support => enabled
iconv
iconv support => enabled
iconv implementation => libiconv
iconv library version => 1.9
Directive => Local Value => Master Value
iconv.input_encoding => ISO-8859-1 => ISO-8859-1
iconv.internal_encoding => ISO-8859-1 => ISO-8859-1
iconv.output_encoding => ISO-8859-1 => ISO-8859-1
ldap
LDAP Support => enabled
RCS Version => $Id: ldap.c,v 1.161.2.3 2006/01/01 12:50:08 sniper Exp $
Total Links => 0/unlimited
API Version => 3001
Vendor Name => OpenLDAP
Vendor Version => 20230
libxml
libXML support => active
libXML Version => 2.6.24
libXML streams => enabled
mbstring
Multibyte Support => enabled
Multibyte string engine => libmbfl
Multibyte (japanese) regex support => enabled
Multibyte regex (oniguruma) version => 3.7.1
mbstring extension makes use of "streamable kanji code filter and converter", which is distributed under the GNU Lesser General Public License version 2.1.
Directive => Local Value => Master Value
mbstring.detect_order => no value => no value
mbstring.encoding_translation => Off => Off
mbstring.func_overload => 0 => 0
mbstring.http_input => pass => pass
mbstring.http_output => pass => pass
mbstring.internal_encoding => ISO-8859-1 => no value
mbstring.language => neutral => neutral
mbstring.strict_detection => Off => Off
mbstring.substitute_character => no value => no value
mysql
MySQL Support => enabled
Active Persistent Links => 0
Active Links => 0
Client API version => 5.0.21
MYSQL_MODULE_TYPE =>  
MYSQL_SOCKET => /tmp/mysql.sock
MYSQL_INCLUDE =>  
MYSQL_LIBS =>  
Directive => Local Value => Master Value
mysql.allow_persistent => On => On
mysql.connect_timeout => 60 => 60
mysql.default_host => no value => no value
mysql.default_password => no value => no value
mysql.default_port => no value => no value
mysql.default_socket => no value => no value
mysql.default_user => no value => no value
mysql.max_links => Unlimited => Unlimited
mysql.max_persistent => Unlimited => Unlimited
mysql.trace_mode => Off => Off
odbc
ODBC Support => enabled
Active Persistent Links => 0
Active Links => 0
ODBC library =>  
ODBC_INCLUDE =>  
ODBC_LFLAGS =>  
ODBC_LIBS =>  
Directive => Local Value => Master Value
odbc.allow_persistent => On => On
odbc.check_persistent => On => On
odbc.default_db => no value => no value
odbc.default_pw => no value => no value
odbc.default_user => no value => no value
odbc.defaultbinmode => return as is => return as is
odbc.defaultlrl => return up to 4096 bytes => return up to 4096 bytes
odbc.max_links => Unlimited => Unlimited
odbc.max_persistent => Unlimited => Unlimited
openssl
OpenSSL support => enabled
OpenSSL Version => OpenSSL 0.9.8b 04 May 2006
pcre
PCRE (Perl Compatible Regular Expressions) Support => enabled
PCRE Library Version => 6.6 06-Feb-2006
pgsql
PostgreSQL Support => enabled
PostgreSQL(libpq) Version => 7.4.13
Multibyte character support => enabled
SSL support => enabled
Active Persistent Links => 0
Active Links => 0
Directive => Local Value => Master Value
pgsql.allow_persistent => On => On
pgsql.auto_reset_persistent => Off => Off
pgsql.ignore_notice => Off => Off
pgsql.log_notice => Off => Off
pgsql.max_links => Unlimited => Unlimited
pgsql.max_persistent => Unlimited => Unlimited
posix
Revision => $Revision: 1.70.2.3 $
Reflection
Reflection => enabled
Version => $Id: php_reflection.c,v 1.164.2.33 2006/03/29 14:28:42 tony2001 Exp $
session
Session Support => enabled
Registered save handlers => files user 
Registered serializer handlers => php php_binary 
Directive => Local Value => Master Value
session.auto_start => Off => Off
session.bug_compat_42 => On => On
session.bug_compat_warn => On => On
session.cache_expire => 180 => 180
session.cache_limiter => nocache => nocache
session.cookie_domain => no value => no value
session.cookie_lifetime => 0 => 0
session.cookie_path => / => /
session.cookie_secure => Off => Off
session.entropy_file => no value => no value
session.entropy_length => 0 => 0
session.gc_divisor => 100 => 100
session.gc_maxlifetime => 1440 => 1440
session.gc_probability => 1 => 1
session.hash_bits_per_character => 4 => 4
session.hash_function => 0 => 0
session.name => PHPSESSID => PHPSESSID
session.referer_check => no value => no value
session.save_handler => files => files
session.save_path => no value => no value
session.serialize_handler => php => php
session.use_cookies => On => On
session.use_only_cookies => Off => Off
session.use_trans_sid => 0 => 0
SimpleXML
Simplexml support => enabled
Revision => $Revision: 1.151.2.22 $
Schema support => enabled
SPL
SPL support => enabled
Interfaces => Countable, OuterIterator, RecursiveIterator, SeekableIterator, SplObserver, SplSubject
Classes => AppendIterator, ArrayIterator, ArrayObject, BadFunctionCallException, BadMethodCallException, CachingIterator, DirectoryIterator, DomainException, EmptyIterator, FilterIterator, InfiniteIterator, InvalidArgumentException, IteratorIterator, LengthException, LimitIterator, LogicException, NoRewindIterator, OutOfBoundsException, OutOfRangeException, OverflowException, ParentIterator, RangeException, RecursiveArrayIterator, RecursiveCachingIterator, RecursiveDirectoryIterator, RecursiveFilterIterator, RecursiveIteratorIterator, RuntimeException, SplFileInfo, SplFileObject, SplObjectStorage, SplTempFileObject, UnderflowException, UnexpectedValueException
standard
Regex Library => Bundled library enabled
Dynamic Library Support => enabled
Path to sendmail => /usr/sbin/sendmail -t -i 
Directive => Local Value => Master Value
assert.active => 1 => 1
assert.bail => 0 => 0
assert.callback => no value => no value
assert.quiet_eval => 0 => 0
assert.warning => 1 => 1
auto_detect_line_endings => 0 => 0
default_socket_timeout => 60 => 60
safe_mode_allowed_env_vars => PHP_ => PHP_
safe_mode_protected_env_vars => LD_LIBRARY_PATH => LD_LIBRARY_PATH
url_rewriter.tags => a=href,area=href,frame=src,form=,fieldset= => a=href,area=href,frame=src,form=,fieldset=
user_agent => no value => no value
Additional Modules
Module Name
Environment
Variable => Value
USER => john
LOGNAME => john
HOME => /home/john
MAIL => /var/mail/john
PATH => /sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:/home/john/bin
TERM => su
BLOCKSIZE => K
FTP_PASSIVE_MODE => YES
SHELL => /bin/csh
SSH_CLIENT => 66.133.138.130 30607 22
SSH_CONNECTION => 66.133.138.130 30607 192.168.11.10 22
HOSTTYPE => FreeBSD
VENDOR => intel
OSTYPE => FreeBSD
MACHTYPE => i386
SHLVL => 1
PWD => /usr/www
GROUP => wheel
HOST => zurg.thedestefanos.com
EDITOR => vi
PAGER => more
PHP Variables
Variable => Value
_SERVER["USER"] => john
_SERVER["LOGNAME"] => john
_SERVER["HOME"] => /home/john
_SERVER["MAIL"] => /var/mail/john
_SERVER["PATH"] => /sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:/home/john/bin
_SERVER["TERM"] => su
_SERVER["BLOCKSIZE"] => K
_SERVER["FTP_PASSIVE_MODE"] => YES
_SERVER["SHELL"] => /bin/csh
_SERVER["SSH_CLIENT"] => 66.133.138.130 30607 22
_SERVER["SSH_CONNECTION"] => 66.133.138.130 30607 192.168.11.10 22
_SERVER["HOSTTYPE"] => FreeBSD
_SERVER["VENDOR"] => intel
_SERVER["OSTYPE"] => FreeBSD
_SERVER["MACHTYPE"] => i386
_SERVER["SHLVL"] => 1
_SERVER["PWD"] => /usr/www
_SERVER["GROUP"] => wheel
_SERVER["HOST"] => zurg.thedestefanos.com
_SERVER["EDITOR"] => vi
_SERVER["PAGER"] => more
_SERVER["PHP_SELF"] => /usr/www/info.php
_SERVER["SCRIPT_NAME"] => /usr/www/info.php
_SERVER["SCRIPT_FILENAME"] => /usr/www/info.php
_SERVER["PATH_TRANSLATED"] => /usr/www/info.php
_SERVER["DOCUMENT_ROOT"] => 
_SERVER["REQUEST_TIME"] => 1149535694
_SERVER["argv"] => Array
(
    [0] => /usr/www/info.php
)
_SERVER["argc"] => 1
_ENV["USER"] => john
_ENV["LOGNAME"] => john
_ENV["HOME"] => /home/john
_ENV["MAIL"] => /var/mail/john
_ENV["PATH"] => /sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:/home/john/bin
_ENV["TERM"] => su
_ENV["BLOCKSIZE"] => K
_ENV["FTP_PASSIVE_MODE"] => YES
_ENV["SHELL"] => /bin/csh
_ENV["SSH_CLIENT"] => 66.133.138.130 30607 22
_ENV["SSH_CONNECTION"] => 66.133.138.130 30607 192.168.11.10 22
_ENV["HOSTTYPE"] => FreeBSD
_ENV["VENDOR"] => intel
_ENV["OSTYPE"] => FreeBSD
_ENV["MACHTYPE"] => i386
_ENV["SHLVL"] => 1
_ENV["PWD"] => /usr/www
_ENV["GROUP"] => wheel
_ENV["HOST"] => zurg.thedestefanos.com
_ENV["EDITOR"] => vi
_ENV["PAGER"] => more
PHP License
This program is free software; you can redistribute it and/or modify
it under the terms of the PHP License as published by the PHP Group
and included in the distribution in the file:  LICENSE
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
If you did not receive a copy of the PHP license, or have any
questions about PHP licensing, please contact license at php.net.
 


More information about the thelist mailing list