f



<?= does not work on Windows XP Apache 2.2.x and PHP 5.2.4

When i do
<?php
   echo "This works fine";
?>
Everything works fine. But when i do
<?= "Some text"?> nothing works. Any ideas?


Best Regards,
Nicos

0
nicoskk (12)
9/28/2007 8:06:26 AM
comp.lang.php 32646 articles. 0 followers. Post Follow

1 Replies
1053 Views

Similar Articles

[PageSpeed] 43

On Fri, 28 Sep 2007 10:06:26 +0200, Nicos <nicoskk@gmail.com> wrote:

> When i do
> <?php
>    echo "This works fine";
> ?>
> Everything works fine. But when i do
> <?=3D "Some text"?> nothing works. Any ideas?

It relies on short_open_tags, which have been disabled by default for a =
 =

very long time now. Don't rely on them, only keep the setting on for  =

legacy code that still uses it for which you have no time to rewrite it,=
  =

and use full tags in new code.
-- =

Rik Wasmus
0
9/28/2007 8:09:30 AM
Reply:

Similar Artilces:

Help Needed: Upgrade Fedora 4 / Apache 2 to PHP 5.2.x from 5.0.4
Help Needed: Upgrade Fedora 4 / Apache 2 to PHP 5.2.x from 5.0.4 I've been testing Joomla as a content manager for the County offices, and it looks pretty good. Unfortunately, I decided to upgrade it from the 1.0.13 version to 1.5 as we get ready to go live with the web site... and the update installation gives an error in XML processing, which seems (from what I've been able to dredge up in forum discussions) to stem from a known bug in PHP 5.0.4... I've seen this same error from a couple of other programs that want to upload XML data to PHP based server software, too, so I'm inclined to believe the problem is on the server side and that it has at least something to do with PHP, i.e. either a bug or at least a setup/config problem... So I decided to upgrade the PHP from 5.0.4 to 5.2.4, but I couldn't find a binary set for Fedora 4, so it has to be compiled.... and I can't get it to install. Actually, that's not quite true - I did get it to install with the base config, but that didn't include some needed stuff (e.g. mysqli), and when I took the config parameters from the 5.0.4 version (from the output of aboutphp.php) and tried those with the config build, it complained about not finding apxs. I don't find apxs anywhere on the system, so I'm stuck there (as far as building the PHP 5.2.4). The install docs from php.net call for you to build Apache from source, which I gather will create apxs as part of the build, but - having now...

Apache 2.2.4 ignores PHP 5.2.4 scripts on Win2K3
Hi all PHP newbie here, 1) I disabled IIS. 2) Loaded Apache 2.2.4 on Win2K3. 3) Loaded PHP 5.2.4 pretty much bare bones, but included MySQL, SMTP, SOAP and ZIP extensions. Installers: apache_2.2.4-win32-x86-openssl-0.9.8d.msi php-5.2.4-win32-installer.msi Installer changed the httpd.conf file and added the following: PHPIniDir "C:/Program Files/PHP/" LoadModule php5_module "C:/Program Files/PHP/php5apache2_2.dll" AddType application/x-httpd-php .php Error log shows that PHP was configured: .... [Fri Sep 14 16:07:49 2007] [notice] Apache/2.2.4 (Win32) PHP/5.2.4 configured -- resuming normal operations [Fri Sep 14 16:07:49 2007] [notice] Server built: Jan 9 2007 23:17:20 .... If I add any PHP code to the index.html file it is ignored: <?php print "My Test"; ?> or <?php phpinfo(); ?> Any ideas? -- thanks, bill "AlterEgo" <someone@dslextreme.com> wrote in message news:13em57122h92h15@corp.supernews.com... > Hi all PHP newbie here, > > 1) I disabled IIS. > 2) Loaded Apache 2.2.4 on Win2K3. > 3) Loaded PHP 5.2.4 pretty much bare bones, but included MySQL, SMTP, SOAP > and ZIP extensions. > > Installers: > apache_2.2.4-win32-x86-openssl-0.9.8d.msi > php-5.2.4-win32-installer.msi > > Installer changed the httpd.conf file and added the following: > PHPIniDir "C:/Program Files/PHP/" > LoadModule php5_module "C:/Program Files/PHP/php5apache2_2.dll" &g...

apache 2.2.15 service won't start w/ PHP 5.3.2, Windows XP
On a localhost development configuration under Windows XP Pro (SP3), I cannot get Apache2.2.15 http service to start after I enable PHP 5.3.2 as a module. Without PHP, Apache starts and works just fine; PHP itself works (from a command prompt). I had had Apache 2.2.14 and an older PHP 5.2.x working happily together, supporting MySQL, phpMyAdmin, etc. I uninstalled all that and instead: (1) Installed Apache 2.2.15 from httpd-2.2.15-win32-x86-no_ssl.msi (also tried the openssl version when the former + PHP didn't work). It's installed as a service for all users on port 80. And I'm running as Administrator. That worked just fine. (2) Installed PHP 5.3.2 from php-5.3.2-Win32-VC6-x86.msi (thread safe version). As php.net says, with apache.org binaries, I used the VC6 version, not VC9. Now the apache http service will not start. So of course I never got so far as to try a .php script in the browser. When that failed, I uninstalled PHP and instead tried to use php-5.3.2- Win32-VC6-x86.zip and configure manually, starting with php.ini- development copied to php.ini and edited as below. Of course I put the correct entries in Windows system environment variables PATH (starts with D:\Server\PHP\ext;D:\Server\PHP) and PHPRC (D:\Server\PHP). File httpd.conf is what the Apache installer set up plus my edits in appropriate spots: [CODE]ServerName localhost:80 DocumentRoot "E:/htdocs" <Directory "E:/htdocs"> LoadModule php5_module "D:/Serv...

Apache 2.2.2 and PHP 5.1.4 on Win2k crashing
I just installed Apache 2.2.2 on my Windows 2000 (SP4) machine to test the new version. Everything works except PHP (version 5.1.4): when starting Apache, it pops out a message saying that it is unable to locate the module (even set on the correct path!), stops the execution and exits. On the other side, PHP works fine with Apache 2.0.55, so It's not a problem of a broken build. Got ideas? Thanks. -- Massimo Lombardo unwiredbrain@gmail.com wrote: > I just installed Apache 2.2.2 on my Windows 2000 (SP4) machine to test > the new version. > Everything works except PHP (version ...

Does 4/2/2= (4/2)/2 =1 OR = 4/(2/2)=4
I don't have matlab and I am trying to translate some simple matlab code. Does 4/2/2 = (4/2)/2 = 1 or 4/2/2 = 4/(2/2) = 4 On 9/11/2012 9:43 AM, sarah.englander@gmail.com wrote: > I don't have matlab and I am trying to translate some simple matlab code. > > Does 4/2/2 = (4/2)/2 = 1 yes. At a given precedence level (and obviously two of the same operators are the same level) evaluation proceeds from LtoR. ....snip... <http://www.mathworks.com/help/techdoc/matlab_prog/f0-40063.html#f0-38155> -- dpb <none@non.net> wrote in message <k2njh1$jes$1@speranza.aioe.org>... > On 9/11/2012 9:43 AM, sarah.englander@gmail.com wrote: > > I don't have matlab and I am trying to translate some simple matlab code. > > > > Does 4/2/2 = (4/2)/2 = 1 > > yes. At a given precedence level (and obviously two of the same > operators are the same level) evaluation proceeds from LtoR. > > ...snip... > > <http://www.mathworks.com/help/techdoc/matlab_prog/f0-40063.html#f0-38155> > > -- There are a few thing you need to understand: 1. You need to get matlab in order to translate the simple code 2. You should define your parameters as in what is the expected output of your search based on the equations used: Is it : a) 4/2/2 b) (4/2/2) On 9/11/2012 11:13 PM, Salvinder wrote: .. > There are a few thing you need to understand: > 1. ...

Apache 2.2.3 PHP 4.4.5 Install Fails
Sigh. I have Apache 2.2.3 installed and running on WinXP Pro SP2. I installed PHP 4.4.5 and added the following lines in httpd.conf PHPIniDir C:/PHP445/ LoadModule php4_module C:/PHP445/php4apache2.dll When I restarted Apache, i got this error: The Apache service reported the following error: >>> httpd.exe: Syntax error on line 488 of C:/Program Files/Apache Software Foundation/Apache2.2/conf/httpd.conf: Cannot load C:/PHP445/php4apache2.dll into server: The specified module could not be found. Turns out that php4apache2.dll requires libapr.dll, libaprutil.dll and libapriconv.dll...

x^(3/2)+x^(5/2) = (x+x^2)*x^(1/2)
Is there a simple way to get Maple to convert x^(3/2) + x^(5/2) to (x+x^2)*x^(1/2). I am willing to assume(x>0). Maple does recognize these as being equal: > p:=x^(3/2)+x^(5/2): > q:=(x+x^2)*sqrt(x): > simplify(p-q); 0 Here's a clumsy way to do it: > p:=x^(3/2)+x^(5/2): > assume(t>0): > subs(x=t^2,p); > simplify(%,{t^2=x}); > collect(%,t); Is there something simpler? (This has undoubtedly come up before, but I cannot find it anywhere.) --Edwin If you do not insist upon your incomplete factoriz...

Printing 2^1, 2^2, 2^3, 2^4 and 2^5
Hi, When I use a while loop, the output is: 2 4 8 16 32, as desired: <?php $c=1; while($c<=5) { $d = newpow(2, $c); print "$d "; $c++; } function newpow($base, $power) { // statements... } ?> The But when I use a for loop, the output is: 64: <?php for($c=1; $c<=5; $c++); { $d = newpow(2, $c); print "$d "; } function newpow($base, $power) { // statements... } ?> Why is this?? Many thanks, Michael mejpark wrote: > When I use a while loop, the output is: 2 4 8 16 32, as desired: [...] > The But when I use a for loop, the output is: 64: > > <?php > > for($c=1; $c<=5; $c++); Here your loop ended right at the ; After the loop comes this: > { > $d = newpow(2, $c); > print "$d "; > } Heiko -- http://portal.richler.de/ Namensportal zu Richler http://www.richler.de/ Heiko Richler: Computer - Know How! http://www.richler.info/ private Homepage On 18 Mar, 11:02, Heiko Richler <heiko-rich...@nefkom.net> wrote: > mejpark wrote: > > When I use a while loop, the output is: 2 4 8 16 32, as desired: > [...] > > The But when I use a for loop, the output is: 64: > > > <?php > > > for($c=1; $c<=5; $c++); > > Here your loop ended right at the ; > > After the loop comes this: > > > { > > $d = newpow(2, $c); > > print "$d "; > > } > > Heiko > > --http://portal.richler.d...

2 * 2 * 2 * 2 or pow(2, 4)?
Hi , I hope this isn't too trivial to ask, but I'm evaluating a polynomial that involve lots of terms like x^2y^2z^3, and although I can use the power function pow(a, b), I wonder if just writing x*x*y*y*z*z*z for example wouldn't be more efficient than pow(x, 2)*pow(y, 2)*pow(z,3). Or is it all the same? Thanks, - Olumide Olumide wrote: > I hope this isn't too trivial to ask, but I'm evaluating a polynomial > that involve lots of terms like x^2y^2z^3, and although I can use the > power function pow(a, b), I wonder if just writing x*x*y*y*z*z*z for > exam...

php java bridge dont work with windows xp and apache 2.0.5
hi I have the java bridge library working fine on a windows 2000 and running apache 1.3 but cannot for whatever reason get it to work on windows xp and apache 2.0.5 Ive included the following in php.ini: [java] java.class.path = "c:\PHP\ext\JavaBridge.jar;" java.home = "c:\Sun\AppServer\jdk\bin" java.library.path = "c:\PHP\ext" Ive installed j2ee 1.4 and jdk 5. I have installed the latest pecl package. The JavaBridge.jar and php_java.dll is in ext folder. I look in the apache error log file and always see this error: Unable to load dynamic library 'c:/php...

php-mcrypt module for php-4.2.2 ?
Hi I am looking for the above as my php version (Redhat) is that. Call me lazy, but I do not wish to compile php unless it becomes absolutely necessary, as it has been working fine so far. I have searched google for it, but to no avail so far. Does anyone know a source for it ? Upgrading to 4.2.3 is an option, but it will require upgrading large chunks of my installation that I do not have a problem with. Thanks, MS ...

porting network driver from 2.2.x to 2.4.x #2
Hello, All! There are some sources of pseudo network interface driver develkoped for 2.2.x kernel. I have to port it onto 2.4.x kernel. I have explored the structure 'net_device' from linux/net/netdevice.h, there are few major changes. The main problem for now is - how to check that interface is ready to transmit data (in 2.2.x 'tbusy' field was used fot this and function 'test_and_set_busy' checking the 'tbusy' state). But thus field was removed from 2.4.x kernel, and now you should use the function 'netif_start_queue' or 'netif_stop_queue'. How can I check in 2.4.x that device is not busy and ready to to transmit data? Thanks in advance. With best regards, Roman Mashak. E-mail: mrv@tusur.ru ...

Apache 2.0.50 php 4.3.8 Aix 5.2
I have apache 2 already installed and working. aixstar root /usr/httpd/bin > ./httpd -l Compiled in modules: core.c mod_access.c mod_auth.c mod_include.c mod_log_config.c mod_env.c mod_setenvif.c prefork.c http_core.c mod_mime.c mod_status.c mod_autoindex.c mod_asis.c mod_cgi.c mod_negotiation.c mod_dir.c mod_imap.c mod_actions.c mod_userdir.c mod_alias.c mod_so.c ../configure --with-apxs2=/usr/httpd/bin/apxs --with-oci8=/ora01/app/oracle/product/9.2.0.1.0 --enable-ftp --enable-sigchild --disable-libxml Works fine, without displaying any errors. m...

Re: 2.4.2 -> 2.5.2 XRC and <font>
Seemed to fix it! Danke. > Please try latest cvs HEAD, fonts handling was changed several times > recently so it's not impossible that this bug was already fixed. -- Casey O'Donnell RPI STS Department - Graduate Student http://homepage.mac.com/codonnell/ http://homepage.mac.com/codonnell/wxblogger/ --------------------------------------------------------------------- To unsubscribe, e-mail: wx-users-unsubscribe@lists.wxwidgets.org For additional commands, e-mail: wx-users-help@lists.wxwidgets.org ...

Install of APACHE 2.5.9 and PHP 5.2.3
Hello, I install the apache server in my Red Hat Linux with ssl support (using openssl 0.9.8) In this step my Apache server started without any problem After this i install php 5.2.3 and i Had this : /etc/init.d/httpd start Syntax error on line 37 of /usr/lib/httpd/modules/httpd.conf: Cannot load /php/libphp5.so into server: /php/libphp5.so: undefined symbol: EVP_CIPHER_CTX_block_size A problem occured, preventing Apache to start Please any one can help me thank's On 12 Jun, 16:06, baroudi <baroudi.abdelmou...@gmail.com> wrote: > > /etc/init.d/http...

Unable to load dynamic link library php_mysql.dll
Hello, I am attempting to perform a PHP installation on an Apache 2.2.6 web server instance that is loaded on a Windows 2003 server operating system (R2 SP2). I have a third party application that will reside within the Apache instance that requires PHP 5.2.6 loaded with MySql support. The installation of PHP succedded without incident (it was done manually) and I can run phpinfo() to get information about the installation. However, when attempting to load the php_mysql.dll extension I recieve the following error message: ------------- PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\php\\ext\\php_mysql.dll' - The specified module could not be found.\r\n in Unknown on line 0 ------------- I have verified the following: 1. That I have set up the php.ini file (which resides in C:\php. Specifically, I have set up the following as it regards to loading the php_mysql.dll extension - Set up the extension_dir variable: extension_dir = "C:\php\ext\" - Uncommented the line that relates to the php_mysql.dll file" extension=php_mysql.dll 2. That I have set up the http.conf file for Apache: - The following lines were added: LoadModule php5_module "C:/php/php5apache2_2.dll" PHPIniDir "C:/php" AddType application/x-httpd-php .php .php3 .htm .html AddType application/x-httpd-php-source .phps Is there anything else that I need to do? Thanks for yo...

Apache 2.2 and PHP
I have upgraded to Apache 2.2 and php5.0.4 (both from SUNFREEWARE) and am now getting errors: httpd: Syntax error on line 110 of /usr/local/apache2/conf/httpd.conf: API module structure `php5_module' in file /usr/local/apache2/modules/libphp5.so is garbled - perhaps this is not an Apache module DSO? This has been reported at various places but there has been NO answer... Any EXPERT know how to resolve? Yes,the libphp5.so exists with the same rights as all the others in the MODULES directory. Thanks Carl On Mon, 13 Feb 2006, Carl Hilton wrote: > I have upgraded to Apache 2.2 and ...

PHPBB2, PHP 4.3.4, MySQL 4.1.1, Apache 2.0.49, Fedora 2
My combination is: PHPBB2, PHP 4.3.4, MySQL 4.1.1, Apache 2.0.49, Fedora 2 Anyone out there has a successful combination of newer versions ? fr gr Erik ...

ANN: ActivePython 2.5.2.2 and 2.4.5.14 are now available
I'm happy to announce that ActivePython 2.5.2.2 and 2.4.5.14 are now available for download from: http://www.activestate.com/products/activepython/ These are patch releases that update ActivePython to core Python 2.5.2 and 2.4.5. What is ActivePython? --------------------- ActivePython is ActiveState's binary distribution of Python. Builds for Windows, Mac OS X, Linux, HP-UX and AIX are made freely available. ActivePython includes the Python core and the many core extensions: zlib and bzip2 for data compression, the Berkeley DB (bsddb) and SQLite (sqlite3, ActivePython 2.5 only) database libraries, OpenSSL bindings for HTTPS support, the Tix GUI widgets for Tkinter, ElementTree for XML processing (ActivePython 2.5 only), ctypes (on supported platforms, ActivePython 2.5 only) for low-level library access, and others. The Windows distribution ships with PyWin32 -- a suite of Windows tools developed by Mark Hammond, including bindings to the Win32 API and Windows COM. See this page for full details: http://aspn.activestate.com/ASPN/docs/ActivePython/2.5/whatsincluded.html As well, ActivePython ships with a wealth of documentation for both new and experienced Python programmers. In addition to the core Python docs, ActivePython includes the "What's New in Python" series, "Dive into Python", the Python FAQs & HOWTOs, and the Python Enhancement Proposals (PEPs). An online version of the docs can be found...

Please Reproduce: PHP 5.2 -> 5.3 Windows Apache2.2 crash
Hi, Recently moved from 5.2 to 5.3. Now Apache will crash on loading pretty much all my pages with this in the error report; szAppName : httpd.exe szAppVer : 2.2.14.0 szModName : php5ts.dll szModVer : 5.3.1.0 offset : 0000c266 Eventually found out how it happens. If I pass to a function an undefined variable as per example; function testing($var1,$var2){ return 1; } echo testing($undefined1,$undefined2); It will crash. No error in Apache log, no error in PHP log. If I define $undefined2 before calling testing() then it won't crash. Whether I define $undefined1 or not (strangely, if not strange enough already) doesn't make any difference, only causes a crash on the second or higher variable in the function definition. Whether or not I specify $var2 = null or any other value in the function definition; it will still crash if $undefined2 is not previously defined. Looking at the changes between 5.2 and 5.3 ; I assume this problem has spawned from this reported change "The newer internal parameter parsing API has been applied across all the extensions bundled with PHP 5.3.x. This parameter parsing API causes functions to return NULL when passed incompatible parameters. There are some exceptions to this rule, such as the get_class() function, which will continue to return FALSE on error" Now; I'm sure you may say, well that's just bad coding practice, you should always define your variab...

wxPython 2.4.2.4 segmentation fault on (Python 2.2.2 SuSE 8.2)
Hi everything runs normally but exiting demo.py or any app we get Segmentation Fault wxPython was built from sources (as per readme.1st.txt) as latest downloaded from wxPython site while building wxGTK several errors reported as could not read from makefile.in files please assist Sanjay Minni Note that we used GTK1 i.e. compiled without the GTK2 option on SuSE 8.2 Thanks Sanjay Minni ...

PHP 5.x and Wordpress 1.5.2 and Apache 1.3.x
Folks, I'm using WP 1.5.2 on Apache 1.3.33 and tried it with both PHP 5.0.4 and php 5.1.0.rc.1 -- and getting seg faults (can't even complete setup) I complete the first step in Setup, and get the seg fault going to the second step. I would welcome any work arounds/solutions people might have. I checked our the wordpress site, http://www.wordpress.org/, but seeing mixed messages. Some folks say the seg fault is there, others say it works with Apache 2.0? Many thanks. -- John ________________________________________________________________...

[MSW 2.4.2 and 2.5.2] wxComboBox event bug?
Hi, I have a fairly concise example program appended below where selecting a wxComboBox item results in two EVT_COMBOBOX events being called, both in 2.4.2 and 2.5.2. The same application seems to work correctly on Mac OSX wxWidgets 2.4.2. I saw some discussion of this in the list archives but didn't see any resolution. Is this a known bug or am I doing something obviously wrong here? Thanks much, -Hollister -------------------------------------------- #include <wx/wx.h> class HelloWorldApp : public wxApp { public: virtual bool OnInit(); }; DECLA...

Why The Script Ran on PHP 4.2.3, but not 4.2.4
What is the big change from 4.2.4 from 4.2.3? I have many scripts not runing now. The scripts are working fine in PHP 3.x While, it should be 4.2.3 and 4.3.4 Why scripts running fine in 4.2.3 do not run in 4.3.4? > What is the big change from 4.2.4 from 4.2.3? I have many scripts not runing > now. The scripts are working fine in PHP 3.x > > On Sat, 10 Apr 2004 03:28:38 +0000, Finding Best Hosting wrote: > What is the big change from 4.2.4 from 4.2.3? I have many scripts not > runing now. The scripts are working fine in PHP 3.x 4.2.3 - Working ??? 4.2.4 - Not working...

Web resources about - <?= does not work on Windows XP Apache 2.2.x and PHP 5.2.4 - comp.lang.php

Window - Wikipedia, the free encyclopedia
This article is about the part of a building. For the Microsoft operating system, see Microsoft Windows . For other uses, see Window (disambiguation) ...

Microsoft Windows Information, Solutions, Tools - Windows IT Pro
Microsoft Windows information and solutions for IT pros. Topics include cloud computing, Windows Server, Exchange, Outlook, PowerShell, virtualization, ...

The Windows Blog
The Windows Blog is Microsoft's Official Blog for the Windows Operating System.

Man leans out window and pulls teen off moped in Halls Head road rage incident
... on a moped were lucky to escape being killed in a road rage incident in Halls Head when one was grabbed by a person leaning out a car window. ...

Apple announces 9.7 inch iPad Pro, targeting existing iPad and Windows users
As part of its media event, Apple has announced a new 9.7 inch version of the iPad Pro from $599 . It features much of the same internals as ...

Manage, move and resize your desktop windows with WinDock
... behave just as it always did. If you don’t need WinDock’s configurability, AquaSnap delivers improved snapping, and a lot of extras: window ...

The only Windows 10 tablet you should even consider is now cheaper than ever
... means people who have purchased it over the past nine months have spent their money wisely. On the other hand, it means that Microsoft's Windows ...

Apple thinks you'll replace your Windows PC with one of its new iPads
... isn't shy about using it to steal away Microsoft users. "You might not know this, but the majority of iPad Pro users are coming from a Windows ...

Prepare to patch a critical flaw in Windows and Samba file sharing
Systems administrators should get ready to fix a critical vulnerability on April 12 that affects the Windows and Samba implementations of the ...

Android N has a “Freeform” Desktop-Style Floating App Window Mode
As it turns out, Google’s Multi-Window in Android N isn’t the only new multi-tasking functionality the Android team has added. If you read closely ...

Resources last updated: 3/23/2016 7:29:45 PM