Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

not a php developer, need some ini file help

Status
Not open for further replies.

lucidtech

IS-IT--Management
Jan 17, 2005
267
US
So I have a shared hosting account that I use Coldfusion for. Unfortunately my hosting company disables the cfexectute tag on shared hosting environments, and I'm trying to use ffmpeg to convert videos to flv on the fly. So, I built the upload and conversion script in php. It works great on my local server, and after a day of being lost I finally found out that to load a .ini file from my webroot on the shared host, I need to name it php5.ini and not php.ini That's the backstory, and I only tell it because I'm sort of flying blind and I have no idea what you'll need to know.

So, I did my research on the ini file and I'm somewhat familiar with php, so I upload the following as my .ini file, run phpinfo and the values that I've changed are shown, which is key. Here's the .ini file

post_max_size = 100M
upload_max_filesize = 100M
max_execution_time = 3000
error_log = "D:\Hosting\6540121\html\errorlog.txt"
expose_php = On
max_input_time = 3000
variables_order = "EGPCS"
extension_dir = ./
upload_tmp_dir = /tmp
precision = 12
memory_limit 300MB
extension_dir = "c:\php5\ext"
extension=php_mysql.dll

Granted, these are higher than the values I will need to use, I just set them high for testing. After this configuration I went from being able to upload a 3Meg video and convert it without a timeout to being able to do the same on an 8MB video. Problem is anything past that and I get a 500 error, one that my host tells me I can't get debug information on without writing an entire web.config file, and I'm not up for that at all. My question is, what is missing from this .ini file that may be causing the error. I've been working at this straight for two days (it took me 5 hours to realize why when I loaded this file I couldn't use mysql_query(), that's the extent of my knowledge.. I've since added the last two lines to that .ini file)

Please help me. I'm at such a loss, I'm so incredibly frustrated and I really don't want to have to upgrade to Virtual Dedicated hosting for $75 a month since I'm nowhere near needing that kind of hosting yet.

Thank you in advance to anyone who has a suggestion.
 
some thoughts:

1. when you want to do things like this, a VPS or dedicated host is better. rackspace offer dedicated vps via their US site for as little as 12$ a month. and you can close them down whenever you want to save money. i.e. they are fully on demand.

2. this line will not work
Code:
memory_limit 300MB

you need an equals sign.

3. make sure that the ini file also has the following during debugging
Code:
error_reporting = E_ALL
display_errors = true
display_startup_errors = true

sometimes it is the browser that times out and allots an error. are you getting the same error code in each browser? you might consider forking the process of handling the media transformation to a shell script and having that script notify you by email when it is complete.

does coldfusion not have a web stats logger that is accessible in your offering? if so, surely you can just download the logs and run them through a parser on your local machine.
 
Thank you for the tips. I've updated my ini file and am and had no luck... new settings were loaded when I checked phpinfo but the outcome was the same, just a 500 error and no log written, which makes me think iis is causing the timeout, not php.

On a different note, I found that by using cffile I can upload a 25M file with no timeout or problems, and have been able to convert that file via php after the upload is completed... I'll look into using a shell for this, considering having the server check a mailbox for completed conversions (emails sent from shell script) and adding the videos to the database after they are parsed.

After talking to my hosting company, support says they are unsure of how large of a file I can upload via a form if I go with virtual dedicated hosting, I'm supposed to just sign up and test it.
 
I set a page just for conversions using exec() and the page times out, but a short while there after the conversion finishes anyway. Should I be using system() for this, or would I be better off with the shell script that emails me when it's completed still?
 
just to check, the memory_limit directive is set to 300M and not 300MB? the latter will not work

iis is causing the timeout, not php.

assuming that php is configured as a server module, they are one and the same.

they are unsure of how large of a file I can upload via a form if I go with virtual dedicated hosting

the limit is the amount of memory available to your server (real and paged).

all else being equal the likely culprit is the webserver time out, which php cannot control. IIS default timeout for cgi scripts is 300 seconds.
 
hosting told me I could upload my own web.config file, is there a standard file I could use to upload to my webroot that isn't going to screw things up? I just want to output debug information on a 500 error and possibly increase the allowable execution time of scripts.
 
also of note, I timed the page, it times out at 30 seconds exactly, which if I recall is the default setting for max_execution_time... if I couldn't change this setting it wouldn't be updated when I display phpinfo() would it?
 
and one final update before I turn in (its almost 6 am here) - I got IIS to output the error message, it states FastCGI exceeded its limit, which as far as I know, cannot be configured in the web.config file, correct? I'm running IIS7
 
i'd also suggest turning off all forms of output buffering. perhaps
Code:
output_buffering = off;

and perhaps also an explicit flush in your script
Code:
ob_end_flush();

i think the 30 second timeout is likely to be a browser issue. the browser is polling for a 'keep alive' signal. if the web-server is still buffering output then it won't push any signal back.

you might also need to turn ob off in IIS. the setting is responseBufferLimit="0" . i have no idea how to do this on shared hosts. the alternative is to force a bunch of white space out that crashes the buffer.
 
jpadie, thanks for all the help so far. I set output_buffering = off in my ini file, check phpinfo() and that value went from 0 to no value, so that was set correctly.

I tried an ob_end_flush(); call at the end of my script, I still got the same FastCGI timeout.

I wouldn't blame you if you wanted to walk away from helping anymore with this. Worst case scenario, I know I can upload a 25 MB file and I can convert it... checking the server periodically until the conversion is completed (file size lists as 0 bytes until conversion finishes) since it throws an error after 30 seconds.

I feel like I'm so close but I have no idea how much longer this will take or even if I can pull it off on a shared hosting environment.
 
PHP Version 5.2.5


System Windows NT P3NW8SHC003 6.0 build 6001
Build Date Nov 8 2007 23:32:05
Configure Command cscript /nologo configure.js "--enable-snapshot-build" "--with-gd=shared" "--disable-zts" "--disable-isapi" "--disable-activescript"
Server API CGI/FastCGI
Virtual Directory Support disabled
Configuration File (php.ini) Path C:\Windows
Loaded Configuration File D:\Hosting\6540121\html\php5.ini
PHP API 20041225
PHP Extension 20060613
Zend Extension 220060519
Debug Build no
Thread Safety disabled
Zend Memory Manager enabled
IPv6 Support enabled
Registered PHP Streams php, file, data, http, ftp, compress.zlib
Registered Stream Socket Transports tcp, udp
Registered Stream Filters convert.iconv.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, zlib.*

This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies

PHP Credits

Configuration

PHP Core

Directive Local Value Master Value
allow_call_time_pass_reference On On
allow_url_fopen On On
allow_url_include Off Off
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 On On
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 D:\Hosting\6540121\html\errorlog.txt D:\Hosting\6540121\html\errorlog.txt
error_prepend_string no value no value
error_reporting 6143 6143
expose_php On On
extension_dir c:\php5\ext c:\php5\ext
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 On On
ignore_repeated_errors Off Off
ignore_repeated_source Off Off
ignore_user_abort Off Off
implicit_flush Off Off
include_path .;C:\php5\pear .;C:\php5\pear
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 300000 300000
max_input_nesting_level 64 64
max_input_time 300000 300000
memory_limit 3000M 3000M
open_basedir no value no value
output_buffering no value no value
output_handler no value no value
post_max_size 100M 100M
precision 12 12
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 On On
safe_mode Off Off
safe_mode_exec_dir no value no value
safe_mode_gid Off Off
safe_mode_include_dir no value no value
sendmail_from no value no value
sendmail_path no value no value
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 100M 100M
upload_tmp_dir /tmp /tmp
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

bcmath

BCMath support enabled

calendar

Calendar support enabled

cgi-fcgi

Directive Local Value Master Value
cgi.check_shebang_line 1 1
cgi.fix_pathinfo 1 1
cgi.force_redirect 1 1
cgi.nph 0 0
cgi.redirect_status_env no value no value
cgi.rfc2616_headers 0 0
fastcgi.impersonate 0 0
fastcgi.logging 1 1

com_dotnet

COM support enabled
DCOM support disabled
.Net support enabled

Directive Local Value Master Value
com.allow_dcom 0 0
com.autoregister_casesensitive 1 1
com.autoregister_typelib 0 0
com.autoregister_verbose 0 0
com.code_page no value no value
com.typelib_file no value no value

ctype

ctype functions enabled

date

date/time support enabled
"Olson" Timezone Database Version 2007.9
Timezone Database internal
Default timezone America/Denver

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

dom

DOM/XML enabled
DOM/XML API Version 20031129
libxml Version 2.6.26
HTML Support enabled
XPath Support enabled
XPointer Support enabled
Schema Support enabled
RelaxNG Support enabled

filter

Input Validation and Filtering enabled
Revision $Revision: 1.52.2.39 $

Directive Local Value Master Value
filter.default unsafe_raw unsafe_raw
filter.default_flags no value no value

ftp

FTP support enabled

hash

hash support enabled
Hashing Engines md2 md4 md5 sha1 sha256 sha384 sha512 ripemd128 ripemd160 ripemd256 ripemd320 whirlpool tiger128,3 tiger160,3 tiger192,3 tiger128,4 tiger160,4 tiger192,4 snefru gost adler32 crc32 crc32b haval128,3 haval160,3 haval192,3 haval224,3 haval256,3 haval128,4 haval160,4 haval192,4 haval224,4 haval256,4 haval128,5 haval160,5 haval192,5 haval224,5 haval256,5

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

json

json support enabled
json version 1.2.1

libxml

libXML support active
libXML Version 2.6.26
libXML streams enabled

mysql

MySQL Support enabled
Active Persistent Links 0
Active Links 0
Client API version 5.0.45

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 Win32

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

pcre

PCRE (Perl Compatible Regular Expressions) Support enabled
PCRE Library Version 7.3 2007-08-28

Directive Local Value Master Value
pcre.backtrack_limit 100000 100000
pcre.recursion_limit 100000 100000

Reflection

Reflection enabled
Version $Id: php_reflection.c,v 1.164.2.33.2.47 2007/10/28 13:47:14 iliaa Exp $

session

Session Support enabled
Registered save handlers files user
Registered serializer handlers php php_binary wddx

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_httponly Off Off
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.2.35 $
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, RecursiveRegexIterator, RegexIterator, RuntimeException, SimpleXMLIterator, SplFileInfo, SplFileObject, SplObjectStorage, SplTempFileObject, UnderflowException, UnexpectedValueException

standard

Regex Library Bundled library enabled
Dynamic Library Support enabled
Internal Sendmail Support for Windows enabled

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

tokenizer

Tokenizer Support enabled

wddx

WDDX Support enabled
WDDX Session Serializer enabled

xml

XML Support active
XML Namespace Support active
libxml2 Version 2.6.26

xmlreader

XMLReader enabled

xmlwriter

XMLWriter enabled

zlib

ZLib Support enabled
Stream Wrapper support compress.zlib://
Stream Filter support zlib.inflate, zlib.deflate
Compiled Version 1.2.3
Linked Version 1.2.3

Directive Local Value Master Value
zlib.output_compression Off Off
zlib.output_compression_level -1 -1
zlib.output_handler no value no value

Additional Modules

Module Name

Environment

Variable Value
CommonProgramW6432 C:\Program Files\Common Files
PHPRC D:\Hosting\6540121\html\php5.ini
ALLUSERSPROFILE C:\ProgramData
APPDATA C:\Windows\system32\config\systemprofile\AppData\Roaming
APP_POOL_ID 6540121_64_C_solo_v2.0
CommonProgramFiles C:\Program Files (x86)\Common Files
CommonProgramFiles(x86) C:\Program Files (x86)\Common Files
COMPUTERNAME P3NW8SHC003
ComSpec C:\Windows\system32\cmd.exe
FP_NO_HOST_CHECK NO
LOCALAPPDATA C:\Windows\system32\config\systemprofile\AppData\Local
NUMBER_OF_PROCESSORS 8
OS Windows_NT
Path C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Windows Imaging\;D:\Program Files\Dell\OpenManage\oma\bin;C:\GDcomponents\tools
PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE x86
PROCESSOR_ARCHITEW6432 AMD64
PROCESSOR_IDENTIFIER Intel64 Family 6 Model 26 Stepping 5, GenuineIntel
PROCESSOR_LEVEL 6
PROCESSOR_REVISION 1a05
ProgramData C:\ProgramData
ProgramFiles C:\Program Files (x86)
ProgramFiles(x86) C:\Program Files (x86)
ProgramW6432 C:\Program Files
PUBLIC C:\Users\Public
SystemDrive C:
SystemRoot C:\Windows
TEMP d:\temp\tmp
TMP d:\temp\tmp
UATDATA C:\Windows\SysWOW64\CCM\UATData\D9F8C395-CAB8-491d-B8AC-179A1FE1BE77
USERDOMAIN PHX3
USERNAME P3NW8SHC003$
USERPROFILE C:\Windows\system32\config\systemprofile
VERITY_CFG C:\ColdFusion8\verity\k2\common\verity.cfg
windir C:\Windows

PHP Variables

Variable Value
_REQUEST["CFID"] 1063556
_REQUEST["CFTOKEN"] 41624905
_REQUEST["CFGLOBALS"] urltoken=CFID#=1063556&CFTOKEN#=41624905#lastvisit={ts \'2010-08-18 02:40:19\'}#timecreated={ts \'2010-08-16 17:59:21\'}#hitcount=2215#cftoken=41624905#cfid=1063556#
_REQUEST["__utmz"] 118312213.1285284222.1.3.utmcsr=mysite.com|utmccn=(referral)|utmcmd=referral|utmcct=/user_video.cfm
_REQUEST["__utma"] 118312213.1505324189.1285323971.1285323971.1285323971.1
_REQUEST["__utmc"] 118312213
_REQUEST["__utmb"] 118312213.3.10.1285323971
_COOKIE["CFID"] 1063556
_COOKIE["CFTOKEN"] 41624905
_COOKIE["CFGLOBALS"] urltoken=CFID#=1063556&CFTOKEN#=41624905#lastvisit={ts \'2010-08-18 02:40:19\'}#timecreated={ts \'2010-08-16 17:59:21\'}#hitcount=2215#cftoken=41624905#cfid=1063556#
_COOKIE["__utmz"] 118312213.1285284222.1.3.utmcsr=mysite.com|utmccn=(referral)|utmcmd=referral|utmcct=/user_video.cfm
_COOKIE["__utma"] 118312213.1505324189.1285323971.1285323971.1285323971.1
_COOKIE["__utmc"] 118312213
_COOKIE["__utmb"] 118312213.3.10.1285323971
_SERVER["CommonProgramW6432"] C:\Program Files\Common Files
_SERVER["PHPRC"] D:\Hosting\6540121\html\php5.ini
_SERVER["ALLUSERSPROFILE"] C:\ProgramData
_SERVER["APPDATA"] C:\Windows\system32\config\systemprofile\AppData\Roaming
_SERVER["APP_POOL_ID"] 6540121_64_C_solo_v2.0
_SERVER["CommonProgramFiles"] C:\Program Files (x86)\Common Files
_SERVER["CommonProgramFiles(x86)"] C:\Program Files (x86)\Common Files
_SERVER["COMPUTERNAME"] P3NW8SHC003
_SERVER["ComSpec"] C:\Windows\system32\cmd.exe
_SERVER["FP_NO_HOST_CHECK"] NO
_SERVER["LOCALAPPDATA"] C:\Windows\system32\config\systemprofile\AppData\Local
_SERVER["NUMBER_OF_PROCESSORS"] 8
_SERVER["OS"] Windows_NT
_SERVER["Path"] C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Windows Imaging\;D:\Program Files\Dell\OpenManage\oma\bin;C:\GDcomponents\tools
_SERVER["PATHEXT"] .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
_SERVER["PROCESSOR_ARCHITECTURE"] x86
_SERVER["PROCESSOR_ARCHITEW6432"] AMD64
_SERVER["PROCESSOR_IDENTIFIER"] Intel64 Family 6 Model 26 Stepping 5, GenuineIntel
_SERVER["PROCESSOR_LEVEL"] 6
_SERVER["PROCESSOR_REVISION"] 1a05
_SERVER["ProgramData"] C:\ProgramData
_SERVER["ProgramFiles"] C:\Program Files (x86)
_SERVER["ProgramFiles(x86)"] C:\Program Files (x86)
_SERVER["ProgramW6432"] C:\Program Files
_SERVER["PUBLIC"] C:\Users\Public
_SERVER["SystemDrive"] C:
_SERVER["SystemRoot"] C:\Windows
_SERVER["TEMP"] d:\temp\tmp
_SERVER["TMP"] d:\temp\tmp
_SERVER["UATDATA"] C:\Windows\SysWOW64\CCM\UATData\D9F8C395-CAB8-491d-B8AC-179A1FE1BE77
_SERVER["USERDOMAIN"] PHX3
_SERVER["USERNAME"] P3NW8SHC003$
_SERVER["USERPROFILE"] C:\Windows\system32\config\systemprofile
_SERVER["VERITY_CFG"] C:\ColdFusion8\verity\k2\common\verity.cfg
_SERVER["windir"] C:\Windows
_SERVER["FCGI_ROLE"] RESPONDER
_SERVER["HTTP_CONNECTION"] keep-alive
_SERVER["HTTP_CONTENT_LENGTH"] 0
_SERVER["HTTP_ACCEPT"] application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
_SERVER["HTTP_ACCEPT_CHARSET"] ISO-8859-1,utf-8;q=0.7,*;q=0.3
_SERVER["HTTP_ACCEPT_ENCODING"] gzip,deflate,sdch
_SERVER["HTTP_ACCEPT_LANGUAGE"] en-US,en;q=0.8
_SERVER["HTTP_COOKIE"] CFID=1063556; CFTOKEN=41624905; CFGLOBALS=urltoken%3DCFID%23%3D1063556%26CFTOKEN%23%3D41624905%23lastvisit%3D%7Bts%20%272010%2D08%2D18%2002%3A40%3A19%27%7D%23timecreated%3D%7Bts%20%272010%2D08%2D16%2017%3A59%3A21%27%7D%23hitcount%3D2215%23cftoken%3D41624905%23cfid%3D1063556%23; __utmz=118312213.1285284222.1.3.utmcsr=mysite.com|utmccn=(referral)|utmcmd=referral|utmcct=/user_video.cfm; __utma=118312213.1505324189.1285323971.1285323971.1285323971.1; __utmc=118312213; __utmb=118312213.3.10.1285323971; CFGLOBALS=urltoken%3DCFID%23%3D1063556%26CFTOKEN%23%3D41624905%23lastvisit%3D%7Bts%20%272010%2D09%2D24%2003%3A28%3A29%27%7D%23timecreated%3D%7Bts%20%272010%2D08%2D16%2017%3A59%3A21%27%7D%23hitcount%3D8993%23cftoken%3D41624905%23cfid%3D1063556%23
_SERVER["HTTP_HOST"] _SERVER["HTTP_USER_AGENT"] Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.472.62 Safari/534.3
_SERVER["DOCUMENT_ROOT"] D:\Hosting\6540121\html
_SERVER["REQUEST_URI"] /test_upload.php
_SERVER["SCRIPT_FILENAME"] D:\Hosting\6540121\html\test_upload.php
_SERVER["IIS_UrlRewriteModule"] 1
_SERVER["APPL_MD_PATH"] /LM/W3SVC/6540121/ROOT
_SERVER["APPL_PHYSICAL_PATH"] D:\Hosting\6540121\html\
_SERVER["AUTH_TYPE"] no value
_SERVER["AUTH_PASSWORD"] no value
_SERVER["AUTH_USER"] no value
_SERVER["CERT_COOKIE"] no value
_SERVER["CERT_FLAGS"] no value
_SERVER["CERT_ISSUER"] no value
_SERVER["CERT_SERIALNUMBER"] no value
_SERVER["CERT_SUBJECT"] no value
_SERVER["CONTENT_LENGTH"] 0
_SERVER["CONTENT_TYPE"] no value
_SERVER["GATEWAY_INTERFACE"] CGI/1.1
_SERVER["HTTPS"] off
_SERVER["HTTPS_KEYSIZE"] no value
_SERVER["HTTPS_SECRETKEYSIZE"] no value
_SERVER["HTTPS_SERVER_ISSUER"] no value
_SERVER["HTTPS_SERVER_SUBJECT"] no value
_SERVER["INSTANCE_ID"] 6540121
_SERVER["INSTANCE_META_PATH"] /LM/W3SVC/6540121
_SERVER["LOCAL_ADDR"] 97.74.215.214
_SERVER["LOGON_USER"] no value
_SERVER["PATH_TRANSLATED"] D:\Hosting\6540121\html\test_upload.php
_SERVER["QUERY_STRING"] no value
_SERVER["REMOTE_ADDR"] 67.253.84.150
_SERVER["REMOTE_HOST"] 67.253.84.150
_SERVER["REMOTE_PORT"] 60756
_SERVER["REMOTE_USER"] no value
_SERVER["REQUEST_METHOD"] GET
_SERVER["SCRIPT_NAME"] /test_upload.php
_SERVER["SERVER_NAME"] _SERVER["SERVER_PORT"] 80
_SERVER["SERVER_PORT_SECURE"] 0
_SERVER["SERVER_PROTOCOL"] HTTP/1.1
_SERVER["SERVER_SOFTWARE"] Microsoft-IIS/7.0
_SERVER["URL"] /test_upload.php
_SERVER["ORIG_PATH_INFO"] /test_upload.php
_SERVER["PHP_SELF"] /test_upload.php
_SERVER["REQUEST_TIME"] 1285324140
_SERVER["argv"]
Array
(
)
_SERVER["argc"] 0
_ENV["CommonProgramW6432"] C:\Program Files\Common Files
_ENV["PHPRC"] D:\Hosting\6540121\html\php5.ini
_ENV["ALLUSERSPROFILE"] C:\ProgramData
_ENV["APPDATA"] C:\Windows\system32\config\systemprofile\AppData\Roaming
_ENV["APP_POOL_ID"] 6540121_64_C_solo_v2.0
_ENV["CommonProgramFiles"] C:\Program Files (x86)\Common Files
_ENV["CommonProgramFiles(x86)"] C:\Program Files (x86)\Common Files
_ENV["COMPUTERNAME"] P3NW8SHC003
_ENV["ComSpec"] C:\Windows\system32\cmd.exe
_ENV["FP_NO_HOST_CHECK"] NO
_ENV["LOCALAPPDATA"] C:\Windows\system32\config\systemprofile\AppData\Local
_ENV["NUMBER_OF_PROCESSORS"] 8
_ENV["OS"] Windows_NT
_ENV["Path"] C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Windows Imaging\;D:\Program Files\Dell\OpenManage\oma\bin;C:\GDcomponents\tools
_ENV["PATHEXT"] .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
_ENV["PROCESSOR_ARCHITECTURE"] x86
_ENV["PROCESSOR_ARCHITEW6432"] AMD64
_ENV["PROCESSOR_IDENTIFIER"] Intel64 Family 6 Model 26 Stepping 5, GenuineIntel
_ENV["PROCESSOR_LEVEL"] 6
_ENV["PROCESSOR_REVISION"] 1a05
_ENV["ProgramData"] C:\ProgramData
_ENV["ProgramFiles"] C:\Program Files (x86)
_ENV["ProgramFiles(x86)"] C:\Program Files (x86)
_ENV["ProgramW6432"] C:\Program Files
_ENV["PUBLIC"] C:\Users\Public
_ENV["SystemDrive"] C:
_ENV["SystemRoot"] C:\Windows
_ENV["TEMP"] d:\temp\tmp
_ENV["TMP"] d:\temp\tmp
_ENV["UATDATA"] C:\Windows\SysWOW64\CCM\UATData\D9F8C395-CAB8-491d-B8AC-179A1FE1BE77
_ENV["USERDOMAIN"] PHX3
_ENV["USERNAME"] P3NW8SHC003$
_ENV["USERPROFILE"] C:\Windows\system32\config\systemprofile
_ENV["VERITY_CFG"] C:\ColdFusion8\verity\k2\common\verity.cfg
_ENV["windir"] C:\Windows
_ENV["FCGI_ROLE"] RESPONDER
_ENV["HTTP_CONNECTION"] keep-alive
_ENV["HTTP_CONTENT_LENGTH"] 0
_ENV["HTTP_ACCEPT"] application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
_ENV["HTTP_ACCEPT_CHARSET"] ISO-8859-1,utf-8;q=0.7,*;q=0.3
_ENV["HTTP_ACCEPT_ENCODING"] gzip,deflate,sdch
_ENV["HTTP_ACCEPT_LANGUAGE"] en-US,en;q=0.8
_ENV["HTTP_COOKIE"] CFID=1063556; CFTOKEN=41624905; CFGLOBALS=urltoken%3DCFID%23%3D1063556%26CFTOKEN%23%3D41624905%23lastvisit%3D%7Bts%20%272010%2D08%2D18%2002%3A40%3A19%27%7D%23timecreated%3D%7Bts%20%272010%2D08%2D16%2017%3A59%3A21%27%7D%23hitcount%3D2215%23cftoken%3D41624905%23cfid%3D1063556%23; __utmz=118312213.1285284222.1.3.utmcsr=mysite.com|utmccn=(referral)|utmcmd=referral|utmcct=/user_video.cfm; __utma=118312213.1505324189.1285323971.1285323971.1285323971.1; __utmc=118312213; __utmb=118312213.3.10.1285323971; CFGLOBALS=urltoken%3DCFID%23%3D1063556%26CFTOKEN%23%3D41624905%23lastvisit%3D%7Bts%20%272010%2D09%2D24%2003%3A28%3A29%27%7D%23timecreated%3D%7Bts%20%272010%2D08%2D16%2017%3A59%3A21%27%7D%23hitcount%3D8993%23cftoken%3D41624905%23cfid%3D1063556%23
_ENV["HTTP_HOST"] _ENV["HTTP_USER_AGENT"] Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.472.62 Safari/534.3
_ENV["DOCUMENT_ROOT"] D:\Hosting\6540121\html
_ENV["REQUEST_URI"] /test_upload.php
_ENV["SCRIPT_FILENAME"] D:\Hosting\6540121\html\test_upload.php
_ENV["IIS_UrlRewriteModule"] 1
_ENV["APPL_MD_PATH"] /LM/W3SVC/6540121/ROOT
_ENV["APPL_PHYSICAL_PATH"] D:\Hosting\6540121\html\
_ENV["AUTH_TYPE"] no value
_ENV["AUTH_PASSWORD"] no value
_ENV["AUTH_USER"] no value
_ENV["CERT_COOKIE"] no value
_ENV["CERT_FLAGS"] no value
_ENV["CERT_ISSUER"] no value
_ENV["CERT_SERIALNUMBER"] no value
_ENV["CERT_SUBJECT"] no value
_ENV["CONTENT_LENGTH"] 0
_ENV["CONTENT_TYPE"] no value
_ENV["GATEWAY_INTERFACE"] CGI/1.1
_ENV["HTTPS"] off
_ENV["HTTPS_KEYSIZE"] no value
_ENV["HTTPS_SECRETKEYSIZE"] no value
_ENV["HTTPS_SERVER_ISSUER"] no value
_ENV["HTTPS_SERVER_SUBJECT"] no value
_ENV["INSTANCE_ID"] 6540121
_ENV["INSTANCE_META_PATH"] /LM/W3SVC/6540121
_ENV["LOCAL_ADDR"] 97.74.215.214
_ENV["LOGON_USER"] no value
_ENV["PATH_TRANSLATED"] D:\Hosting\6540121\html\test_upload.php
_ENV["QUERY_STRING"] no value
_ENV["REMOTE_ADDR"] 67.253.84.150
_ENV["REMOTE_HOST"] 67.253.84.150
_ENV["REMOTE_PORT"] 60756
_ENV["REMOTE_USER"] no value
_ENV["REQUEST_METHOD"] GET
_ENV["SCRIPT_NAME"] /test_upload.php
_ENV["SERVER_NAME"] _ENV["SERVER_PORT"] 80
_ENV["SERVER_PORT_SECURE"] 0
_ENV["SERVER_PROTOCOL"] HTTP/1.1
_ENV["SERVER_SOFTWARE"] Microsoft-IIS/7.0
_ENV["URL"] /test_upload.php
_ENV["ORIG_PATH_INFO"] /test_upload.php

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@php.net.
 
i think you have to change the IIS settings too. if that is impossible and you can't use a decent server like apache, then my next solution would be to use a flash uploader. and i definitely think that moving the transcoding to a spawned process is the only sensible way forward.
 
do you have a link for creating a spawned process I can take a look at for reference?

also, is it possible to have the spawned process run another php script upon completion?
 
do you have a link for creating a spawned process I can take a look at for reference?

sorry - it's so straightforward that i know of no tutorial. you just fire off an exec call to php (as a CLI) with the relevant arguments and make sure that the output is piped to a file or to null.

so, is it possible to have the spawned process run another php script upon completion?

yes. in any of the normal ways.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top