php-windows Digest 29 Jan 2007 05:31:02 -0000 Issue 3122

Topics (messages 27409 through 27413):

Re: PHP returns source file instead of processing it
        27409 by: Stut
        27410 by: Reinhard Mayr aka Czerwinski
        27411 by: Stut
        27412 by: Reinhard Mayr aka Czerwinski

Parameters in JavaScript
        27413 by: Alf Stockton

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [email protected]


----------------------------------------------------------------------
--- Begin Message ---
Reinhard Mayr aka Czerwinski wrote:
I installed the windows binaries (5.2.0 installer from http://www.php.net/downloads.php) on my XP box. To test the installation of PHP, I use a minimal test script "phpinfo.php":

<? phpinfo() ?>

When I call "php phpinfo.php", all I get is a dump of the source file but not the info I should recieve. It seems as if PHP does not process the file but just prints it.

You are using short tags which are disabled by default in that version of PHP. That is why it's not interpreting the code.

Change <? to <?php and it'll work fine.

-Stut

--- End Message ---
--- Begin Message ---
Ah, I see...

I found a way to set this globally: http://www.thescripts.com/forum/thread3754.html

In a nutshell: php.ini/short_open_tag = on
The php.ini file should be located to be found as explained in http://at.php.net/manual/en/configuration.php

Thanks for your help!

On Sun, 28 Jan 2007 18:33:45 +0100, Stut <[EMAIL PROTECTED]> wrote:

Reinhard Mayr aka Czerwinski wrote:
I installed the windows binaries (5.2.0 installer from http://www.php.net/downloads.php) on my XP box. To test the installation of PHP, I use a minimal test script "phpinfo.php":
 <? phpinfo() ?>
When I call "php phpinfo.php", all I get is a dump of the source file but not the info I should recieve. It seems as if PHP does not process the file but just prints it.

You are using short tags which are disabled by default in that version of PHP. That is why it's not interpreting the code.

Change <? to <?php and it'll work fine.

-Stut




--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

--- End Message ---
--- Begin Message ---
Reinhard Mayr aka Czerwinski wrote:
Ah, I see...

I found a way to set this globally: http://www.thescripts.com/forum/thread3754.html

In a nutshell: php.ini/short_open_tag = on
The php.ini file should be located to be found as explained in http://at.php.net/manual/en/configuration.php

Except if/when you move your site to another server you're betting on them having short tags enabled. Best to type 3 extra characters for each opening tag now, than having to change them all later. Where software development is concerned shortcuts are very very rarely worth taking.

-Stut

Thanks for your help!

On Sun, 28 Jan 2007 18:33:45 +0100, Stut <[EMAIL PROTECTED]> wrote:

Reinhard Mayr aka Czerwinski wrote:
I installed the windows binaries (5.2.0 installer from http://www.php.net/downloads.php) on my XP box. To test the installation of PHP, I use a minimal test script "phpinfo.php":
 <? phpinfo() ?>
When I call "php phpinfo.php", all I get is a dump of the source file but not the info I should recieve. It seems as if PHP does not process the file but just prints it.

You are using short tags which are disabled by default in that version of PHP. That is why it's not interpreting the code.

Change <? to <?php and it'll work fine.

-Stut




--Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--- End Message ---
--- Begin Message --- I read the cited thread on short tags and I see your point. But I deal with a Mantis installation, and it seems as if the scripts were deployed with short tags...

For those of you who are interested in following these Mantis issues:
http://mantis.phplist.com/view.php?id=1175
http://mantis.phplist.com/view.php?id=6419
http://mantis.phplist.com/bug_view_advanced_page.php?bug_id=6682

Cheers,

Cz.

On Sun, 28 Jan 2007 19:39:49 +0100, Stut <[EMAIL PROTECTED]> wrote:

Reinhard Mayr aka Czerwinski wrote:
Ah, I see...
I found a way to set this globally: http://www.thescripts.com/forum/thread3754.html
 In a nutshell: php.ini/short_open_tag = on
The php.ini file should be located to be found as explained in http://at.php.net/manual/en/configuration.php

Except if/when you move your site to another server you're betting on them having short tags enabled. Best to type 3 extra characters for each opening tag now, than having to change them all later. Where software development is concerned shortcuts are very very rarely worth taking.

-Stut

Thanks for your help!
 On Sun, 28 Jan 2007 18:33:45 +0100, Stut <[EMAIL PROTECTED]> wrote:

Reinhard Mayr aka Czerwinski wrote:
I installed the windows binaries (5.2.0 installer from http://www.php.net/downloads.php) on my XP box. To test the installation of PHP, I use a minimal test script "phpinfo.php":
 <? phpinfo() ?>
When I call "php phpinfo.php", all I get is a dump of the source file but not the info I should recieve. It seems as if PHP does not process the file but just prints it.

You are using short tags which are disabled by default in that version of PHP. That is why it's not interpreting the code.

Change <? to <?php and it'll work fine.

-Stut

--Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
 -- PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

--- End Message ---
--- Begin Message ---
How do I complete a command to be issued by JavaScript with parameters.

The above is the short version, the long sad story follows...:-)

I have a PHP created web page consisting of data in a table. One of the fields in this table is populated by the PHP variable, $EarnTypeID. If a user clicks on the appropriate field I want to issue a JavaScript request for confirmation before issuing the JavaScript command that then calls another PHP script that will carry out the required task based on the value in the $EarnTypeID. ie I want to "location = 'earntypeDelete.php?UID=$EarnTypeID' but have the $EarnTypeID contain the correct value.

--
Regards,
Alf Stockton            www.stockton.co.za

I'll burn my books.
                -- Christopher Marlowe
My email disclaimer is available at www.stockton.co.za/disclaimer.html

--- End Message ---

Reply via email to