Ask Question Forum:
Model Library:2025-02-08 Updated:A.I. model is online for auto reply question page
C
O
M
P
U
T
E
R
2
8
Show
#
ASK
RECENT
←
- Underline
- Bold
- Italic
- Indent
- Step
- Bullet
- Quote
- Cut
- Copy
- Paste
- Table
- Spelling
- Find & Replace
- Undo
- Redo
- Link
- Attach
- Clear
- Code
Below area will not be traslated by Google,you can input code or other languages
Hint:If find spelling error, You need to correct it,1 by 1 or ignore it (code area won't be checked).
X-position of the mouse cursor
Y-position of the mouse cursor
Y-position of the mouse cursor
Testcursor
caretPos
Attachment:===
Asked by duncanb7
at 2024-03-19 08:42:18
Point:500 Replies:19 POST_ID:828574USER_ID:11059
Topic:
JavaScript;PHP Scripting Language;Linux
Dear Support,
All my script is running so slow so I change memory_limit in the php.ini file
I ftp the file in /usr/local/lib/php.ini from my hosting server to my PC and change
change the memory_limit=32M to 1024M on PC Notepad++ editor. After then I ftp back the php.ini to my server from my PC
,but all php script is not running
and reported the fatal error.
Fatal error:Unknow:Failed opening required '/usr/lib/php/head.php' (include_path-'.:/usr/lib/php:/usr/local/lib.php) in Unknow on line 0
Do you think it is related to the format of php.ini from Window to Linux so the text file
is not accepted by php program on Linux /
Please advise
Duncan
All my script is running so slow so I change memory_limit in the php.ini file
I ftp the file in /usr/local/lib/php.ini from my hosting server to my PC and change
change the memory_limit=32M to 1024M on PC Notepad++ editor. After then I ftp back the php.ini to my server from my PC
,but all php script is not running
and reported the fatal error.
Fatal error:Unknow:Failed opening required '/usr/lib/php/head.php' (include_path-'.:/usr/lib/php:/usr/local/lib.php) in Unknow on line 0
Do you think it is related to the format of php.ini from Window to Linux so the text file
is not accepted by php program on Linux /
Please advise
Duncan
Author: duncanb7 replied at 2024-03-19 09:32:19
All php script running in FF or IE is not working, Why ? but it works
at Linux shell
at Linux shell
Author: duncanb7 replied at 2024-03-19 09:29:01
One more thing,
all my script is running at Linux,
WHen I try to run phpinfo() at website, ti doesn't work, why,
SHoud I need to delete some lock or error file in Linux?
all my script is running at Linux,
WHen I try to run phpinfo() at website, ti doesn't work, why,
SHoud I need to delete some lock or error file in Linux?
Author: duncanb7 replied at 2024-03-19 09:17:12
just send the file at wrong directory only,
jusr careless mistake
jusr careless mistake
Expert: woolmilkporc replied at 2024-03-19 09:16:33
Yeah, glad you found it!
Thx for the points!
Thx for the points!
Expert: woolmilkporc replied at 2024-03-19 09:14:04
Do you mean you viewed the file with Notepad on Windows and with cat on Linux?
So the files are obviously different.
I assume that the Windows version is meant to be correct (the one ending with "zend_extensions....").
A difference like the one between "Europe/Moscow" and "America/New_York" cannot result from a wrong file transfer method or a bad editor.
There is obviously some general problem. Are you sure that you transferred the changed file to the right place and/or that you transferred the right file?
So the files are obviously different.
I assume that the Windows version is meant to be correct (the one ending with "zend_extensions....").
A difference like the one between "Europe/Moscow" and "America/New_York" cannot result from a wrong file transfer method or a bad editor.
There is obviously some general problem. Are you sure that you transferred the changed file to the right place and/or that you transferred the right file?
Author: duncanb7 replied at 2024-03-19 09:13:23
Sorry, just send wrongly the window version xampp's php.ini file to linux server and the
orginal file is at different directory, after re-send, all fatal error is gone
Just sending wrong file issue
orginal file is at different directory, after re-send, all fatal error is gone
Just sending wrong file issue
Expert: woolmilkporc replied at 2024-03-19 09:08:07
What is "echo out"??
I suggested "cat -v" because this transforms nonprinting characters to readable ones.
I suggested "cat -v" because this transforms nonprinting characters to readable ones.
Author: duncanb7 replied at 2024-03-19 09:07:56
But using cat -v php.ini, it show different and output end with
date.timezone="America/New_York", so it is strange
[exif]
; Exif UNICODE user comments are handled as UCS-2BE/UCS-2LE and JIS as JIS.
; With mbstring support this will automatically be converted into the encoding
; given by corresponding encode setting. When empty mbstring.internal_encoding
; is used. For the decode settings you can distinguish between motorola and
; intel byte order. A decode setting cannot be empty.
;exif.encode_unicode = ISO-8859-15
;exif.decode_unicode_motorola = UCS-2BE
;exif.decode_unicode_intel = UCS-2LE
;exif.encode_jis =
;exif.decode_jis_motorola = JIS
;exif.decode_jis_intel = JIS
; Local Variables:
; tab-width: 4
; End:
date.timezone="America/New_York"
date.timezone="America/New_York", so it is strange
[exif]
; Exif UNICODE user comments are handled as UCS-2BE/UCS-2LE and JIS as JIS.
; With mbstring support this will automatically be converted into the encoding
; given by corresponding encode setting. When empty mbstring.internal_encoding
; is used. For the decode settings you can distinguish between motorola and
; intel byte order. A decode setting cannot be empty.
;exif.encode_unicode = ISO-8859-15
;exif.decode_unicode_motorola = UCS-2BE
;exif.decode_unicode_intel = UCS-2LE
;exif.encode_jis =
;exif.decode_jis_motorola = JIS
;exif.decode_jis_intel = JIS
; Local Variables:
; tab-width: 4
; End:
date.timezone="America/New_York"
Author: duncanb7 replied at 2024-03-19 09:06:31
In my Notepad , it show the end of php.ini file
[exif]
; Exif UNICODE user comments are handled as UCS-2BE/UCS-2LE and JIS as JIS.
; With mbstring support this will automatically be converted into the encoding
; given by corresponding encode setting. When empty mbstring.internal_encoding
; is used. For the decode settings you can distinguish between motorola and
; intel byte order. A decode setting cannot be empty.
;exif.encode_unicode = ISO-8859-15
;exif.decode_unicode_motorola = UCS-2BE
;exif.decode_unicode_intel = UCS-2LE
;exif.encode_jis =
;exif.decode_jis_motorola = JIS
;exif.decode_jis_intel = JIS
; Local Variables:
; tab-width: 4
; End:
date.timezone="Europe/Moscow"
extension=pdo.so
extension=pdo_sqlite.so
extension=sqlite.so
extension=pdo_mysql.so
extension=memcache.so
extension=apc.so
zend_extension="/usr/local/Zend/lib/Guard-5.5.0/php-5.3.x/ZendGuardLoader.so"
[exif]
; Exif UNICODE user comments are handled as UCS-2BE/UCS-2LE and JIS as JIS.
; With mbstring support this will automatically be converted into the encoding
; given by corresponding encode setting. When empty mbstring.internal_encoding
; is used. For the decode settings you can distinguish between motorola and
; intel byte order. A decode setting cannot be empty.
;exif.encode_unicode = ISO-8859-15
;exif.decode_unicode_motorola = UCS-2BE
;exif.decode_unicode_intel = UCS-2LE
;exif.encode_jis =
;exif.decode_jis_motorola = JIS
;exif.decode_jis_intel = JIS
; Local Variables:
; tab-width: 4
; End:
date.timezone="Europe/Moscow"
extension=pdo.so
extension=pdo_sqlite.so
extension=sqlite.so
extension=pdo_mysql.so
extension=memcache.so
extension=apc.so
zend_extension="/usr/local/Zend/lib/Guard-5.5.0/php-5.3.x/ZendGuardLoader.so"
Author: duncanb7 replied at 2024-03-19 09:04:45
just echo out php.ini file , nothing is special
Accepted Solution
Expert: woolmilkporc replied at 2024-03-19 09:03:30
500 points EXCELLENT
Yes, that's normal.
Please don't put people on the wrong track by writing FTP when it's indeed pscsp!
What did you get with
cat -v php.ini
?
Please don't put people on the wrong track by writing FTP when it's indeed pscsp!
What did you get with
cat -v php.ini
?
Author: duncanb7 replied at 2024-03-19 09:02:18
cat -v php.ini ,
output is looking like the output on my Notepad++ editor
output is looking like the output on my Notepad++ editor
Author: duncanb7 replied at 2024-03-19 08:59:56
I ftp it from my server throught pscp.exe and the first line character
is [PHP], Is it normal?
part of php.ini
========================
[PHP]
;;;;;;;;;;;
; WARNING ;
;;;;;;;;;;;
; This is the default settings file for new PHP installations.
; By default, PHP installs itself with a configuration suitable for
; development purposes, and *NOT* for production purposes.
; For several security-oriented considerations that should be taken
; before going online with your site, please consult php.ini-recommended
; and http://php.net/manual/en/security.php.
;;;;;;;;;;;;;;;;;;;
; About this file ;
;;;;;;;;;;;;;;;;;;;
; This file controls many aspects of PHP's behavior. In order for PHP to
; read it, it must be named 'php.ini'. PHP looks for it in the current
; working directory, in the path designated by the environment variable
; PHPRC, and in the path that was defined in compile time (in that order).
; Under Windows, the compile-time path is the Windows directory. The
; path in which the php.ini file is looked for can be overridden using
; the -c argument in command line mode.
;
; The syntax of the file is extremely simple. Whitespace and Lines
; beginning with a semicolon are silently ignored (as you probably guessed).
; Section headers (e.g. [Foo]) are also silently ignored, even though
; they might mean something in the future.
;
; Directives are specified using the following syntax:
; directive = value
; Directive names are *case sensitive* - foo=bar is different from FOO=bar.
;
; The value can be a string, a number, a PHP constant (e.g. E_ALL or M_PI), one
; of the INI constants (On, Off, True, False, Yes, No and None) or an expression
; (e.g. E_ALL & ~E_NOTICE), or a quoted string ("foo").
;
; Expressions in the INI file are limited to bitwise operators and parentheses:
; | bitwise OR
; & bitwise AND
; ~ bitwise NOT
; ! boolean NOT
;
; Boolean flags can be turned on using the values 1, On, True or Yes.
; They can be turned off using the values 0, Off, False or No.
;
; An empty string can be denoted by simply not writing anything after the equal
; sign, or by using the None keyword:
;
; foo = ; sets foo to an empty string
; foo = none ; sets foo to an empty string
; foo = "none" ; sets foo to the string 'none'
;
; If you use constants in your value, and these constants belong to a
; dynamically loaded extension (either a PHP extension or a Zend extension),
; you may only use these constants *after* the line that loads the extension.
;
; All the values in the php.ini-dist file correspond to the builtin
; defaults (that is, if no php.ini is used, or if you delete these lines,
; the builtin defaults will be identical).
;;;;;;;;;;;;;;;;;;;;
; Language Options ;
;;;;;;;;;;;;;;;;;;;;
; Enable the PHP scripting language engine under Apache.
engine = On
; Allow the <? tag. Otherwise, only <?php and <script> tags are recognized.
; NOTE: Using short
is [PHP], Is it normal?
part of php.ini
========================
[PHP]
;;;;;;;;;;;
; WARNING ;
;;;;;;;;;;;
; This is the default settings file for new PHP installations.
; By default, PHP installs itself with a configuration suitable for
; development purposes, and *NOT* for production purposes.
; For several security-oriented considerations that should be taken
; before going online with your site, please consult php.ini-recommended
; and http://php.net/manual/en/security.php.
;;;;;;;;;;;;;;;;;;;
; About this file ;
;;;;;;;;;;;;;;;;;;;
; This file controls many aspects of PHP's behavior. In order for PHP to
; read it, it must be named 'php.ini'. PHP looks for it in the current
; working directory, in the path designated by the environment variable
; PHPRC, and in the path that was defined in compile time (in that order).
; Under Windows, the compile-time path is the Windows directory. The
; path in which the php.ini file is looked for can be overridden using
; the -c argument in command line mode.
;
; The syntax of the file is extremely simple. Whitespace and Lines
; beginning with a semicolon are silently ignored (as you probably guessed).
; Section headers (e.g. [Foo]) are also silently ignored, even though
; they might mean something in the future.
;
; Directives are specified using the following syntax:
; directive = value
; Directive names are *case sensitive* - foo=bar is different from FOO=bar.
;
; The value can be a string, a number, a PHP constant (e.g. E_ALL or M_PI), one
; of the INI constants (On, Off, True, False, Yes, No and None) or an expression
; (e.g. E_ALL & ~E_NOTICE), or a quoted string ("foo").
;
; Expressions in the INI file are limited to bitwise operators and parentheses:
; | bitwise OR
; & bitwise AND
; ~ bitwise NOT
; ! boolean NOT
;
; Boolean flags can be turned on using the values 1, On, True or Yes.
; They can be turned off using the values 0, Off, False or No.
;
; An empty string can be denoted by simply not writing anything after the equal
; sign, or by using the None keyword:
;
; foo = ; sets foo to an empty string
; foo = none ; sets foo to an empty string
; foo = "none" ; sets foo to the string 'none'
;
; If you use constants in your value, and these constants belong to a
; dynamically loaded extension (either a PHP extension or a Zend extension),
; you may only use these constants *after* the line that loads the extension.
;
; All the values in the php.ini-dist file correspond to the builtin
; defaults (that is, if no php.ini is used, or if you delete these lines,
; the builtin defaults will be identical).
;;;;;;;;;;;;;;;;;;;;
; Language Options ;
;;;;;;;;;;;;;;;;;;;;
; Enable the PHP scripting language engine under Apache.
engine = On
; Allow the <? tag. Otherwise, only <?php and <script> tags are recognized.
; NOTE: Using short
Expert: woolmilkporc replied at 2024-03-19 08:57:35
OK, just saw your intermediate comment.
pscp is binary by default.
Could it be that Notepad has added these unwanted characters?
What do you see in Linux with
cat -v php.ini
?
By the way, pscp is not FTP!
pscp is binary by default.
Could it be that Notepad has added these unwanted characters?
What do you see in Linux with
cat -v php.ini
?
By the way, pscp is not FTP!
Author: duncanb7 replied at 2024-03-19 08:56:21
There is no binary option, what
should I do ?
please advise
Duncan
PuTTY Secure Copy client
Release 0.60
Usage: pscp [options] [user@]host:source target
pscp [options] source [source...] [user@]host:target
pscp [options] -ls [user@]host:filespec
Options:
-V print version information and exit
-pgpfp print PGP key fingerprints and exit
-p preserve file attributes
-q quiet, don't show statistics
-r copy directories recursively
-v show verbose messages
-load sessname Load settings from saved session
-P port connect to specified port
-l user connect with specified username
-pw passw login with specified password
-1 -2 force use of particular SSH protocol version
-4 -6 force use of IPv4 or IPv6
-C enable compression
-i key private key file for authentication
-noagent disable use of Pageant
-agent enable use of Pageant
-batch disable all interactive prompts
-unsafe allow server-side wildcards (DANGEROUS)
-sftp force use of SFTP protocol
-scp force use of SCP protocol
should I do ?
please advise
Duncan
PuTTY Secure Copy client
Release 0.60
Usage: pscp [options] [user@]host:source target
pscp [options] source [source...] [user@]host:target
pscp [options] -ls [user@]host:filespec
Options:
-V print version information and exit
-pgpfp print PGP key fingerprints and exit
-p preserve file attributes
-q quiet, don't show statistics
-r copy directories recursively
-v show verbose messages
-load sessname Load settings from saved session
-P port connect to specified port
-l user connect with specified username
-pw passw login with specified password
-1 -2 force use of particular SSH protocol version
-4 -6 force use of IPv4 or IPv6
-C enable compression
-i key private key file for authentication
-noagent disable use of Pageant
-agent enable use of Pageant
-batch disable all interactive prompts
-unsafe allow server-side wildcards (DANGEROUS)
-sftp force use of SFTP protocol
-scp force use of SCP protocol
Expert: woolmilkporc replied at 2024-03-19 08:54:31
Because tranferring in text mode adds carriage return characters at the line ends (Windows standard) which many Linux programs do not understand (Linux hast just linefeeds, no additional carriage returns).
In binary mode you don't transfer to binary, you just leave the file unchanged.
In binary mode you don't transfer to binary, you just leave the file unchanged.
Author: duncanb7 replied at 2024-03-19 08:52:27
But php.ini is a text file , Right, Why it transfer to binary ?
Author: duncanb7 replied at 2024-03-19 08:51:46
pscp.exe
Expert: woolmilkporc replied at 2024-03-19 08:49:04
You must transfer the file in binary format from Windows to Linux!
If you still have it on Windows repeat the transfer, in binary format.
Which FTP client do you use?
If you still have it on Windows repeat the transfer, in binary format.
Which FTP client do you use?