473,770 Members | 2,113 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

PHP won't interpret php code any more

hup
One of my Linux (CentOS) server stop interpret php code any more. I
did try to compile and installed other version of php, but it's still
not working.

[root@ns6 php-5.1.6]# cat /tmp/phpinfo.php
<?
phpinfo()
?>

[root@ns6 php-5.1.6]# /usr/local/bin/php -v
PHP 5.1.6 (cli) (built: Dec 25 2006 11:38:30)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies
[root@ns6 php-5.1.6]# /usr/local/bin/php /tmp/phpinfo.php
<?
phpinfo()
?>

PHP simply print out the code instead of interpret it. Any idea?
I guess some of my libraries may be corrupted, any suggestion what
maybe the problem?
Thanks for any help.


[root@ns6 php-5.1.6]# uname -a
Linux ns6 2.6.9-11.ELsmp #1 SMP Wed Jun 8 17:54:20 CDT 2005 i686 i686
i386 GNU/Linux

[root@ns6 php-5.1.6]# './configure' '--with-mysql=/home/db'
'--with-apxs=/usr/local/apache/bin/apxs' '--enable-mbstring'
'--enable-fastcgi' '--enable-zend-multibyte' --with-zlib
--with-gd=shared; make
my make test result:

TEST RESULT SUMMARY
---------------------------------------------------------------------
Exts skipped : 56
Exts tested : 23
---------------------------------------------------------------------

Number of tests : 2264 1317
Tests skipped : 947 ( 41.8%) --------
Tests warned : 0 ( 0.0%) ( 0.0%)
Tests failed : 4 ( 0.2%) ( 0.3%)
Tests passed : 1313 ( 58.0%) ( 99.7%)

FAILED TEST SUMMARY
---------------------------------------------------------------------
Bug #37346 (gdimagecreatef romgif, bad colormap)
[ext/gd/tests/bug37346.phpt]
Bug #37360 (gdimagecreatef romgif, bad image sizes)
[ext/gd/tests/bug37360.phpt]
Bug #16069 [ext/iconv/tests/bug16069.phpt]
iconv stream filter [ext/iconv/tests/iconv_stream_fi lter.phpt]
=============== =============== =============== =============== =============== =====
/home/root/php-5.1.6/ext/gd/tests/bug37346.phpt
=============== =============== =============== =============== =============== =====
FATAL: emalloc(): Unable to allocate 52156 bytes
=============== =============== =============== =============== =============== =====
001+ FATAL: emalloc(): Unable to allocate 52156 bytes
001- Warning: imagecreatefrom gif(): '%sbug37346.gif ' is not a valid GIF
file in %sbug37346.php on line %d
=============== =============== =============== =============== =============== =====

=============== =============== =============== =============== =============== =====
/home/root/php-5.1.6/ext/gd/tests/bug37360.phpt
=============== =============== =============== =============== =============== =====
FATAL: emalloc(): Unable to allocate 65535 bytes
=============== =============== =============== =============== =============== =====
001+ FATAL: emalloc(): Unable to allocate 65535 bytes
001- resource(%d) of type (gd)
=============== =============== =============== =============== =============== =====
/home/root/php-5.1.6/ext/iconv/tests/iconv_stream_fi lter.phpt
=============== =============== =============== =============== =============== =====
string(20) "1b244224332473 244b24"
string(10) "41244f1b28 "
string(2) "42"
string(20) "a4b3a4f3a4cba4 c1a4cf"
string(10) "69636f6e76 "
string(2) "0a"
string(20) "1b244f24332466 245824"
string(10) "4e24421b28 "
string(2) "4f"
=============== =============== =============== =============== =============== =====
007+ string(20) "1b244f24332466 245824"
008+ string(10) "4e24421b28 "
009+ string(2) "4f"
007-
008- Warning: fread(): iconv stream filter ("ISO-2022-JP"=>"EUC-JP"):
invalid multibyte sequence in %s on line %d
009- string(0) ""
010- string(0) ""
011- string(0) ""

=============== =============== =============== =============== =============== =====
BUILD ENVIRONMENT
=============== =============== =============== =============== =============== =====
OS:
Linux - Linux ns6.addall.com 2.6.9-11.ELsmp #1 SMP Wed Jun 8 17:54:20
CDT 2005 i686

Autoconf:
autoconf (GNU Autoconf) 2.59
Written by David J. MacKenzie and Akim Demaille.

Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is
NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.

Bundled Libtool:
ltmain.sh (GNU libtool) 1.5.20 (1.1220.2.287 2005/08/31 18:54:15)

Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is
NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.

System Libtool:
ltmain.sh (GNU libtool) 1.5.6 (1.1220.2.95 2004/04/11 05:50:42)

Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is
NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.

Compiler:
Reading specs from /usr/lib/gcc/i386-redhat-linux/3.4.3/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-thread
s=posix --disable-checking --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-java-awt=gtk --ho
st=i386-redhat-linux
Thread model: posix
gcc version 3.4.3 20050227 (Red Hat 3.4.3-22.1)

Bison:
bison (GNU Bison) 1.875c
Written by Robert Corbett and Richard Stallman.

Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is
NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.

Libraries:
libcrypt.so.1 =/lib/libcrypt.so.1 (0x00d0b000)
libmysqlclient. so.10 =/home/db/lib/mysql/libmysqlclient. so.10
(0x0027e000)
libz.so.1 =/usr/lib/libz.so.1 (0x00ce7000)
libm.so.6 =/lib/tls/libm.so.6 (0x004cd000)
libresolv.so.2 =/lib/libresolv.so.2 (0x00544000)
libdl.so.2 =/lib/libdl.so.2 (0x004c7000)
libnsl.so.1 =/lib/libnsl.so.1 (0x0056d000)
libxml2.so.2 =/usr/lib/libxml2.so.2 (0x00585000)
libpthread.so.0 =/lib/tls/libpthread.so.0 (0x00559000)
libc.so.6 =/lib/tls/libc.so.6 (0x0039c000)
/lib/ld-linux.so.2 (0x00383000)

=============== =============== =============== =============== =============== =====
phpinfo()
PHP Version =5.1.6

System =Linux ns6 2.6.9-11.ELsmp #1 SMP Wed Jun 8 17:54:20 CDT 2005
i686
Build Date =Dec 25 2006 11:35:52
Configure Command = './configure' '--with-mysql=/home/db'
'--with-apxs=/usr/local/apache/bin/apxs' '--enable-mbstring' '--e
nable-fastcgi' '--enable-zend-multibyte' '--with-zlib'
'--with-gd=shared'
Server API =Command Line Interface
Virtual Directory Support =disabled
Configuration File (php.ini) Path =/usr/local/lib/php.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, compress.zlib
Registered Stream Socket Transports =tcp, udp, unix, udg
Registered Stream Filters =string.rot13, string.toupper,
string.tolower, string.strip_ta gs, convert.*, consumed, convert.ic
onv.*, zlib.*
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 =Off =Off
allow_url_fopen =On =On
always_populate _raw_post_data =Off =Off
arg_separator.i nput =& =&
arg_separator.o utput =& =&
asp_tags =Off =Off
auto_append_fil e =no value =no value
auto_globals_ji t =On =On
auto_prepend_fi le =no value =no value
browscap =no value =no value
default_charset =no value =no value
default_mimetyp e =text/html =text/html
define_syslog_v ariables =Off =Off
detect_unicode =On =On
disable_classes =no value =no value
disable_functio ns =no value =no value
display_errors =Off =Off
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_st ring =no value =no value
error_log =no value =no value
error_prepend_s tring =no value =no value
error_reporting =2047 =2047
expose_php =On =On
extension_dir =/usr/lib/php4 =/usr/lib/php4
file_uploads =On =On
highlight.bg =#FFFFFF =#FFFFFF
highlight.comme nt =#FF8000 =#FF8000
highlight.defau lt =#0000BB =#0000BB
highlight.html =#000000 =#000000
highlight.keywo rd =#007700 =#007700
highlight.strin g =#DD0000 =#DD0000
html_errors =Off =On
ignore_repeated _errors =Off =Off
ignore_repeated _source =Off =Off
ignore_user_abo rt =Off =Off
implicit_flush =On =Off
include_path =.:/usr/local/lib/php =.:/usr/local/lib/php
log_errors =On =On
log_errors_max_ len =1024 =1024
magic_quotes_gp c =Off =Off
magic_quotes_ru ntime =Off =Off
magic_quotes_sy base =Off =Off
mail.force_extr a_parameters =no value =no value
max_execution_t ime =0 =30
max_input_time =-1 =60
open_basedir =no value =no value
output_bufferin g =0 =4096
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_a rgv =On =Off
register_global s =Off =Off
register_long_a rrays =Off =Off
report_memleaks =On =On
report_zend_deb ug =Off =Off
safe_mode =Off =Off
safe_mode_exec_ dir =no value =no value
safe_mode_gid =Off =Off
safe_mode_inclu de_dir =no value =no value
sendmail_from =no value =no value
sendmail_path =/usr/sbin/sendmail -t -i =/usr/sbin/sendmail -t -i
serialize_preci sion =100 =100
short_open_tag =Off =Off
SMTP =localhost =localhost
smtp_port =25 =25
sql.safe_mode =Off =Off
track_errors =Off =Off
unserialize_cal lback_func =no value =no value
upload_max_file size =2M =2M
upload_tmp_dir =no value =no value
user_dir =no value =no value
variables_order =GPCS =GPCS
xmlrpc_error_nu mber =0 =0
xmlrpc_errors =Off =Off
y2k_compliance =On =On
zend.ze1_compat ibility_mode =Off =Off

Dec 25 '06 #1
2 4054
hu*@addall.com wrote:
PHP simply print out the code instead of interpret it. Any idea?
Yeah:
short_open_tag =Off =Off
Try this:

<?php
phpinfo();
?>
--
----------------------------------
Iván Sánchez Ortega -ivansanchez-algarroba-escomposlinux-punto-org-

http://acm.asoc.fi.upm.es/~mr/
Proudly running Debian Linux with 2.6.17-1-686 kernel, KDE3.5.3, and PHP
5.2.0-8 generating this signature.
Uptime: 21:26:20 up 3 days, 22:16, 1 user, load average: 0.60, 0.55, 0.55

Dec 25 '06 #2
hu*@addall.com wrote:
>
One of my Linux (CentOS) server stop interpret php code any more. I
did try to compile and installed other version of php, but it's still
not working.

[root@ns6 php-5.1.6]# cat /tmp/phpinfo.php
<?
phpinfo()
?>
PHP scripts start with "<?PHP" not just wirh "<?".

What you are using is called a short tag. Short tag use is disencouraged
nowadays because XML documents also start with "<?" ("<?xml" to be more
exact). That's why on any modern PHP version short tags are switched off
by default. See your own config:
short_open_tag =Off =Off
Either set this to on or use "<?PHP" instead of "<?", which would be the
better solution.

Bye!
Dec 25 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1758
by: Constantine Kakoushis | last post by:
Hi, I was previously running from my home test server (Suse 9.0) but have recently uploaded to my ISP. Since then (I think) images that have been resized on the server (resulting in .pjpeg images) won't display on my PDA. Instead I get garbage on screen followed by CREATOR: gd-jpeg v1.0 followed by more garbage. The same images are fine when viewed in IE but not on my PPC 2002 IE. I've even tried refering to the image from a regular...
9
9787
by: franzkowiak | last post by:
Hello, I've read some bytes from a file and just now I can't interpret 4 bytes in this dates like a real value. An extract from my program def l32(c): return ord(c) + (ord(c)<<8) + (ord(c)<<16) + (ord(c)<<24)
18
10515
by: Robert Bowen | last post by:
Hello peeplez. I have an odd problem. When I put the ANSI symbol for "less than" ("<"), the word STRONG and then the ANSI symbol for "greater than" (">") in my web page, followed by some text, then close the STRONG tag the same way, my text appears in bold. No problem. When I do the same things with the corresponding HTML tags (&lt; , &gt; ) the tag is not interpreted, it is simply displayed: <STRONG>text</STRONG>
4
1799
by: Hype | last post by:
PID : 7031 TID : 3007211424 PROC : db2start INSTANCE: db2inst8 NODE : 000 FUNCTION: DB2 UDB, oper system services, sqloPdbFreeCmdHandle, probe:10 MESSAGE : Error closing socket, OSSrc = DATA #1 : Hexdump, 4 bytes 0xBFFF6B1C : 2500 0F87 How do we intepret the last line ? How can I lookup error messages for these values ?
21
1692
by: junky_fellow | last post by:
I found the following declaration in some header file. Can somebody help me how to interpret this ? void (*signal( int sig, void (*function)(int)) (int) ); Thanx for any help in advance ....
1
1609
by: Don | last post by:
Hi, I did a php script and tested with the browser by giving the full path of script as URL under a domain name (ex : http://www.AAA-tech.com/TEST/myScript.php), it works fine. Then I launched the same script on the same machine (OS:Free BSD) by typing : cd ../public/www/TEST /usr/local/bin/php myScript.php
5
2857
by: Mark A. Sam | last post by:
Hello, I am trying to use a literal control to past test onto a page from several buttons, so that each button displays something different. The problem I am encountering is that the text wraps according to the width of the literal, which is the width then it is put on the page. The other day I played with this and had no problem. I assigned the text to the literal and it went onto the page as it should have. I tried using html tags...
0
1328
by: Kim Jensen | last post by:
Hi I'm trying to use Showplan in Microsoft Access. I see the results of Showplan in the text file when i execute a query in Access, but I don't know how to interpret the results. For instance what does it mean that Access "using temporary index"? I'd expect Access to use not a temporary index but the index that I have created on the tables. Does anyone know where one can get more insight into the information that comes out in the file...
4
1320
by: Peter J. Bismuti | last post by:
I want to interpret a file (or whatever you call it) and then keep the interactive interpreter alive so I can then continue to issue commands. How can this be done? I saw online a -m flag but it does not seem to work. Thanks --
0
9454
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10260
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10101
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10038
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6712
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5354
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5482
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3609
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2850
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.