Re: [PHP] is my server working

2003-06-15 Thread John Hicks
Merry--

No, it's not working.

Does your Apache httpd.conf file load the PHP modules?

Try changing your tags from ? ... ? to ?php ... ?

Try a page that contains only this one line:

?php phpinfo(); ?

Good luck.

--John

On Sunday 15 June 2003 01:09 am, Khoo Merry wrote:
 I'm using windows me, server apache 1.3 for php.
 I had wrote this code and tried it at local host, but the
 php code didn't work. The code is like this:

 ?
 $Greet = Hello World
 $Today = date(l F d, Y);
 ?
 html
 body
 Today's date is
 ?
 print($Today\n);
 print($Greet);
 ?
 /body
 /html
 Istead of print
 Today's date is Sunday June 14, 2003
 Hello World
 The out put is only Today's date is. Is my server
 working with php? I am really appreciate if anyone can
 answer my problem. Thank you.

 merry



 -
 Do you Yahoo!?
 SBC Yahoo! DSL - Now only $29.95 per month!

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



Re: [PHP] is my server working

2003-06-15 Thread Alex Ciurea
try to use echo instead of print()   :


echo $myString;


or, if u realy want to use the print function, try this:


print($myString, %s);


maybe will work


Alex Ciurea Greets You
www.netonwave.com


- Original Message -
From: Khoo Merry [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, June 15, 2003 8:09 AM
Subject: [PHP] is my server working


 I'm using windows me, server apache 1.3 for php.
 I had wrote this code and tried it at local host, but the php code didn't
work. The code is like this:

 ?
 $Greet = Hello World
 $Today = date(l F d, Y);
 ?
 html
 body
 Today's date is
 ?
 print($Today\n);
 print($Greet);
 ?
 /body
 /html
 Istead of print
 Today's date is Sunday June 14, 2003
 Hello World
 The out put is only Today's date is. Is my server working with php?
 I am really appreciate if anyone can answer my problem.
 Thank you.

 merry



 -
 Do you Yahoo!?
 SBC Yahoo! DSL - Now only $29.95 per month!





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



Fwd: Re: [PHP] is my server working

2003-06-15 Thread Khoo Merry
i had configure the php 4 with apache 1.3 in the httpd.conf configuration file. When i tried the single line in the local host. Note: forwarded message attached.
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!---BeginMessage---
Merry--

No, it's not working.

Does your Apache httpd.conf file load the PHP modules?

Try changing your tags from ? ... ? to ?php ... ?

Try a page that contains only this one line:

?php phpinfo(); ?

Good luck.

--John

On Sunday 15 June 2003 01:09 am, Khoo Merry wrote:
 I'm using windows me, server apache 1.3 for php.
 I had wrote this code and tried it at local host, but the
 php code didn't work. The code is like this:

 ?
 $Greet = Hello World
 $Today = date(l F d, Y);
 ?
 html
 body
 Today's date is
 ?
 print($Today\n);
 print($Greet);
 ?
 /body
 /html
 Istead of print
 Today's date is Sunday June 14, 2003
 Hello World
 The out put is only Today's date is. Is my server
 working with php? I am really appreciate if anyone can
 answer my problem. Thank you.

 merry



 -
 Do you Yahoo!?
 SBC Yahoo! DSL - Now only $29.95 per month!
---End Message---
-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] is my server working

2003-06-15 Thread Lars Torben Wilson
On Sun, 2003-06-15 at 01:07, Alex Ciurea wrote:
 try to use echo instead of print()   :
 
 
 echo $myString;
 
 
 or, if u realy want to use the print function, try this:
 
 
 print($myString, %s);
 
 
 maybe will work
 
 
 Alex Ciurea Greets You
 www.netonwave.com


I think you might be getting confused with printf(). In that case, the
above would be: 

  printf(%s, $myString);

In any event, the choice will have no impact here. It simply appears
that the original poster has not got PHP installed properly, or else
the system is not configured to pass that page of through PHP.


  http://www.php.net/print
  http://www.php.net/printf


-- 
 Torben Wilson [EMAIL PROTECTED]+1.604.709.0506
 http://www.thebuttlesschaps.com  http://www.inflatableeye.com
 http://www.hybrid17.com  http://www.themainonmain.com
 - Boycott Starbucks!  http://www.haidabuckscafe.com -




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



Fwd: Re: [PHP] is my server working

2003-06-15 Thread Khoo Merry

?php $Today = date("l F d, Y"); ?
HTML BODY
Today's Date: ?php print("H3$Today/H3\n"); ?
/BODY /HTML
when i try to test my code at http://localhost/1-5.php4, they ask me if i want to download the file. it come out as document file not html. why?
Note: forwarded message attached.
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!---BeginMessage---
do it like this:

?
$Greet = Hello World
$Today = date(l F d, Y);
?
Today's date is ? print $Today; ?

or like this:

?
$Greet = Hello World
$Today = date(l F d, Y);
print $Greet;
print br\n;
print Today is $Today;
?

From: Khoo Merry [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: [PHP] is my server working
Date: Sat, 14 Jun 2003 22:09:12 -0700 (PDT)
I'm using windows me, server apache 1.3 for php.
I had wrote this code and tried it at local host, but the php code didn't 
work. The code is like this:

?
$Greet = Hello World
$Today = date(l F d, Y);
?
html
body
Today's date is
?
print($Today\n);
print($Greet);
?
/body
/html
Istead of print
Today's date is Sunday June 14, 2003
Hello World
The out put is only Today's date is. Is my server working with php?
I am really appreciate if anyone can answer my problem.
Thank you.
merry



-
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
_
Protect your PC - get McAfee.com VirusScan Online  
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

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

Re: [PHP] is my server working

2003-06-15 Thread Alex Ciurea
oh, I see. My bad, my mistake...

I also have had problems with apache/php in the past. The apache couldn't
parse the php files. All the php tags were interpreted as normal text and
displayed to the browser.

So, try :

phpinfo();

into one of your php files.

it should work if your apache/php server is configured properly.


Good luck!


Alex Ciurea Greets You
www.netonwave.com
- Original Message -
From: Lars Torben Wilson [EMAIL PROTECTED]
To: Alex Ciurea [EMAIL PROTECTED]
Cc: php mailinlist [EMAIL PROTECTED]; Khoo Merry
[EMAIL PROTECTED]
Sent: Sunday, June 15, 2003 11:18 AM
Subject: Re: [PHP] is my server working


 On Sun, 2003-06-15 at 01:07, Alex Ciurea wrote:
  try to use echo instead of print()   :
 
  
  echo $myString;
  
 
  or, if u realy want to use the print function, try this:
 
  
  print($myString, %s);
  
 
  maybe will work
 
  
  Alex Ciurea Greets You
  www.netonwave.com


 I think you might be getting confused with printf(). In that case, the
 above would be:

   printf(%s, $myString);

 In any event, the choice will have no impact here. It simply appears
 that the original poster has not got PHP installed properly, or else
 the system is not configured to pass that page of through PHP.


   http://www.php.net/print
   http://www.php.net/printf


 --
  Torben Wilson [EMAIL PROTECTED]+1.604.709.0506
  http://www.thebuttlesschaps.com  http://www.inflatableeye.com
  http://www.hybrid17.com  http://www.themainonmain.com
  - Boycott Starbucks!  http://www.haidabuckscafe.com -




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








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



Re: [PHP] is my server working

2003-06-15 Thread DvDmanDT
Allow me to paste the PHP bit of my httpd.conf:

LoadFile C:/PHP/php4ts.dll
Loadmodule php4_module c:\php\sapi\php4apache.dll
AddType application/x-httpd-php .php4
AddType application/x-httpd-php-source .phps
ScriptAlias /php3/ c:/php3/
ScriptAlias /php4/ c:/php/
ScriptAlias /php5/ D:/php5/
AddType application/x-httpd-php5 .php5
Action application/x-httpd-php5 /php5/php.exe
AddType application/x-httpd-php4 .php .phtml
Action application/x-httpd-php4 /php4/php.exe
AddType application/x-httpd-php3 .php3
Action application/x-httpd-php3 /php3/php.exe

I haven't added PHP 2 as of yet... Just wait... Anyway, this'll enable
.phps, apache module and cgi version of PHP 4, CGI version of 3 and 5...
Alex Ciurea [EMAIL PROTECTED] skrev i meddelandet
news:[EMAIL PROTECTED]
 oh, I see. My bad, my mistake...

 I also have had problems with apache/php in the past. The apache couldn't
 parse the php files. All the php tags were interpreted as normal text and
 displayed to the browser.

 So, try :
 
 phpinfo();
 
 into one of your php files.

 it should work if your apache/php server is configured properly.


 Good luck!

 
 Alex Ciurea Greets You
 www.netonwave.com
 - Original Message -
 From: Lars Torben Wilson [EMAIL PROTECTED]
 To: Alex Ciurea [EMAIL PROTECTED]
 Cc: php mailinlist [EMAIL PROTECTED]; Khoo Merry
 [EMAIL PROTECTED]
 Sent: Sunday, June 15, 2003 11:18 AM
 Subject: Re: [PHP] is my server working


  On Sun, 2003-06-15 at 01:07, Alex Ciurea wrote:
   try to use echo instead of print()   :
  
   
   echo $myString;
   
  
   or, if u realy want to use the print function, try this:
  
   
   print($myString, %s);
   
  
   maybe will work
  
   
   Alex Ciurea Greets You
   www.netonwave.com
 
 
  I think you might be getting confused with printf(). In that case, the
  above would be:
 
printf(%s, $myString);
 
  In any event, the choice will have no impact here. It simply appears
  that the original poster has not got PHP installed properly, or else
  the system is not configured to pass that page of through PHP.
 
 
http://www.php.net/print
http://www.php.net/printf
 
 
  --
   Torben Wilson [EMAIL PROTECTED]+1.604.709.0506
   http://www.thebuttlesschaps.com  http://www.inflatableeye.com
   http://www.hybrid17.com  http://www.themainonmain.com
   - Boycott Starbucks!  http://www.haidabuckscafe.com -
 
 
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 
 
 







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



Fwd: Re: [PHP] is my server working

2003-06-15 Thread Khoo Merry
Note: forwarded message attached.
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!---BeginMessage---
Allow me to paste the PHP bit of my httpd.conf:

LoadFile C:/PHP/php4ts.dll
Loadmodule php4_module c:\php\sapi\php4apache.dll
AddType application/x-httpd-php .php4
AddType application/x-httpd-php-source .phps
ScriptAlias /php3/ c:/php3/
ScriptAlias /php4/ c:/php/
ScriptAlias /php5/ D:/php5/
AddType application/x-httpd-php5 .php5
Action application/x-httpd-php5 /php5/php.exe
AddType application/x-httpd-php4 .php .phtml
Action application/x-httpd-php4 /php4/php.exe
AddType application/x-httpd-php3 .php3
Action application/x-httpd-php3 /php3/php.exe

I haven't added PHP 2 as of yet... Just wait... Anyway, this'll enable
.phps, apache module and cgi version of PHP 4, CGI version of 3 and 5...
Alex Ciurea [EMAIL PROTECTED] skrev i meddelandet
news:[EMAIL PROTECTED]
 oh, I see. My bad, my mistake...

 I also have had problems with apache/php in the past. The apache couldn't
 parse the php files. All the php tags were interpreted as normal text and
 displayed to the browser.

 So, try :
 
 phpinfo();
 
 into one of your php files.

 it should work if your apache/php server is configured properly.


 Good luck!

 
 Alex Ciurea Greets You
 www.netonwave.com
 - Original Message -
 From: Lars Torben Wilson [EMAIL PROTECTED]
 To: Alex Ciurea [EMAIL PROTECTED]
 Cc: php mailinlist [EMAIL PROTECTED]; Khoo Merry
 [EMAIL PROTECTED]
 Sent: Sunday, June 15, 2003 11:18 AM
 Subject: Re: [PHP] is my server working


  On Sun, 2003-06-15 at 01:07, Alex Ciurea wrote:
   try to use echo instead of print()   :
  
   
   echo $myString;
   
  
   or, if u realy want to use the print function, try this:
  
   
   print($myString, %s);
   
  
   maybe will work
  
   
   Alex Ciurea Greets You
   www.netonwave.com
 
 
  I think you might be getting confused with printf(). In that case, the
  above would be:
 
printf(%s, $myString);
 
  In any event, the choice will have no impact here. It simply appears
  that the original poster has not got PHP installed properly, or else
  the system is not configured to pass that page of through PHP.
 
 
http://www.php.net/print
http://www.php.net/printf
 
 
  --
   Torben Wilson [EMAIL PROTECTED]+1.604.709.0506
   http://www.thebuttlesschaps.com  http://www.inflatableeye.com
   http://www.hybrid17.com  http://www.themainonmain.com
   - Boycott Starbucks!  http://www.haidabuckscafe.com -
 
 
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 
 
 







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

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

Fwd: Re: [PHP] is my server working

2003-06-15 Thread Khoo Merry
Hei, everyone
My configuration is working now. Thank's for everybody helps.
My apache is able to parse the .php4 extension. 
I found that i shouldn't save my .php4 in document format. I have to use notepad instead of world pad. I dun know why it works in notepad but not in world pad. Can anyone tell me why?
Note: forwarded message attached.
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!---BeginMessage---
oh, I see. My bad, my mistake...

I also have had problems with apache/php in the past. The apache couldn't
parse the php files. All the php tags were interpreted as normal text and
displayed to the browser.

So, try :

phpinfo();

into one of your php files.

it should work if your apache/php server is configured properly.


Good luck!


Alex Ciurea Greets You
www.netonwave.com
- Original Message -
From: Lars Torben Wilson [EMAIL PROTECTED]
To: Alex Ciurea [EMAIL PROTECTED]
Cc: php mailinlist [EMAIL PROTECTED]; Khoo Merry
[EMAIL PROTECTED]
Sent: Sunday, June 15, 2003 11:18 AM
Subject: Re: [PHP] is my server working


 On Sun, 2003-06-15 at 01:07, Alex Ciurea wrote:
  try to use echo instead of print()   :
 
  
  echo $myString;
  
 
  or, if u realy want to use the print function, try this:
 
  
  print($myString, %s);
  
 
  maybe will work
 
  
  Alex Ciurea Greets You
  www.netonwave.com


 I think you might be getting confused with printf(). In that case, the
 above would be:

   printf(%s, $myString);

 In any event, the choice will have no impact here. It simply appears
 that the original poster has not got PHP installed properly, or else
 the system is not configured to pass that page of through PHP.


   http://www.php.net/print
   http://www.php.net/printf


 --
  Torben Wilson [EMAIL PROTECTED]+1.604.709.0506
  http://www.thebuttlesschaps.com  http://www.inflatableeye.com
  http://www.hybrid17.com  http://www.themainonmain.com
  - Boycott Starbucks!  http://www.haidabuckscafe.com -




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








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

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

Re: Fwd: Re: [PHP] is my server working

2003-06-15 Thread Lars Torben Wilson
On Sun, 2003-06-15 at 19:56, Khoo Merry wrote:
 Hei, everyone
 My configuration is working now. Thank's for everybody helps.
 My apache is able to parse the .php4 extension. 
 I found that i shouldn't save my .php4 in document format. I have to
 use notepad instead of world pad. I dun know why it works in notepad
 but not in world pad. Can anyone tell me why?

Yes: your scripts need to be in plain text format, and was saving the
formatting and other information along with the text--probably in some
binary format that only Microsoft fully understands. There might be an
option to save to plain text (*.txt) but it's been a couple of years
since I've used it and I'm not sure.


Torben


P.S. Please turn off HTML email when emailing this list.


-- 
 Torben Wilson [EMAIL PROTECTED]+1.604.709.0506
 http://www.thebuttlesschaps.com  http://www.inflatableeye.com
 http://www.hybrid17.com  http://www.themainonmain.com
 - Boycott Starbucks!  http://www.haidabuckscafe.com -




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



[PHP] is my server working

2003-06-14 Thread Khoo Merry
I'm using windows me, server apache 1.3 for php.
I had wrote this code and tried it at local host, but the php code didn't work. The 
code is like this:
 
?
$Greet = Hello World
$Today = date(l F d, Y);
?
html
body
Today's date is
?
print($Today\n);
print($Greet);
?
/body
/html
Istead of print
Today's date is Sunday June 14, 2003
Hello World
The out put is only Today's date is. Is my server working with php?
I am really appreciate if anyone can answer my problem. 
Thank you.
 
merry



-
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!