473,396 Members | 2,061 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

very basic question on function

<?php
function h()
{
echo 'hello';
}
?>
BIG
<? h(); ?>
Result with PHP4.3.10/Apache1.3.33 =BIGBIGhello
Result with PHP5.2.6/Apache2.2.3 =BIG

with PHP 5.2.6
hello is not displayed
why?
how can I fix this?

Thank you

Jun 26 '07 #1
4 1117
On Jun 26, 2:07 pm, Personne <cpdiv...@gmail.comwrote:
<?php
function h()
{
echo 'hello';}

?>
BIG
<? h(); ?>

Result with PHP4.3.10/Apache1.3.33 =BIGBIGhello
Result with PHP5.2.6/Apache2.2.3 =BIG

with PHP 5.2.6
hello is not displayed
why?
how can I fix this?

Thank you

maybe change
<? h(); ?>
to
<?php h(); ?>

short_open_tag may not be enabled on the PHP5.2.6 install

Jun 26 '07 #2
I figured this out 1 minute after I posted !!!

Any I have more problem now, pages are renderer differently

Thank you anyway, for this fast answer

Jun 26 '07 #3

Personne wrote:
I figured this out 1 minute after I posted !!!

Any I have more problem now, pages are renderer differently

Thank you anyway, for this fast answer
well, Personne, why don't you share with all of us what your solution
was so that the whole user community can learn from it as this is what
I thought was one of the sole purposes of this great online community.

I guess I could be wrong here...

Thanks,

Gene Kelley

Jun 28 '07 #4
On 28 Jun, 14:15, phpCodeHead <phpcodeh...@gmail.comwrote:
Personne wrote:
I figured this out 1 minute after I posted !!!
Any I have more problem now, pages are renderer differently
Thank you anyway, for this fast answer

well, Personne, why don't you share with all of us what your solution
was so that the whole user community can learn from it as this is what
I thought was one of the sole purposes of this great online community.

I guess I could be wrong here...

Thanks,

Gene Kelley
I think you are wrong here. If you read carefully:

1) Personne posted the question
2) baker posted teh answer
3) Personne said that he also worked this out (1 minute after I
posted) and thanked baker for his fast answer.

Jun 28 '07 #5

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

Similar topics

5
by: hellrazor | last post by:
Hi there, First of all, I'm very much a C++ amateur (i.e., a newb). I'm having to program a win32 system service for my employer, and I'm almost done with the task, but I need help with...
5
by: Lee David | last post by:
I went to the sun site and downloaded what I hope is the development part of java. I downloaded JDK5 with Netbeans. I installed it and now have a folder in my program group "Netbeans". Is that...
17
by: blueapricot416 | last post by:
This is a very basic question -- but I can't find the answer after looking for 20 minutes. If you code something like: function set_It() { setTimeout('Request_Complete("apple", -72)',5000) }...
10
by: mcl | last post by:
Why can I not the change the value of a variable in another class, when I have passed it via a parameter list. I am sure I am being stupid, but I thought passed objects were Read/ Write eg...
56
by: mdh | last post by:
As I begin to write more little programs without the help of the exercises, little things pop up that I need to understand more fully. Thus, below, and although this is not the exact code, the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.