php-windows Digest 28 Jan 2006 11:38:16 -0000 Issue 2875

Topics (messages 26654 through 26656):

Re: Test.php loads, but nothing in Browser
        26654 by: Jim McDonald
        26655 by: Howard

µÏÐÅͨÊÖ»úÁìÅÜ2006£¬½µ¼Û·ç±©ÆÕ»Ý¾©³Ç
        26656 by: [EMAIL PROTECTED]

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 ---
Yes, the closing tag is optional and PHP tends to ignore additional
whitespace.  HOWEVER, if you put white space in the middle of a token
(i.e. "? >" or "phpin fo();"), PHP will die. 

-jim

-----Original Message-----
From: M. Sokolewicz [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 27, 2006 3:06 AM
To: Howard
Cc: [email protected]
Subject: Re: Test.php loads, but nothing in Browser

actually, the closing tag is optional in php; it's not required(!) and
PHP also doesn't mind a ton of whitespaces, it ignores them

I would also suggest checking your display_errors value in your php.ini,
make sure it's On.

- tul

Howard wrote:

> Error Reporting is set as you show.
> 
> I changed the script to what you show, and it still doesn't work.
> 
> Apache recognizes PHP but for some reason doesn't run scripts. I even 
> tried the "Hello World" script in an html file.
> 
> 
> More likely than not you have notices/warnings turned off in your 
> php.ini file.  Check
> 
> error_reporting = E_ALL
> 
> set.  The problem with your test.php script is probably that you do 
> not have a proper closing tag.  You said your script is:
> 
> <? phpinfo( ) ; ? >
> 
> when it should look more like:
> 
> <? phpinfo(); ?>
> 
> The main difference here is the "? >" vs. the correct tag of "?>".
> 
> -jim
> 
> -----Original Message-----
> From: Howard [mailto:[EMAIL PROTECTED]
> Sent: Thursday, January 26, 2006 2:54 PM
> To: [email protected]
> Subject: Test.php loads, but nothing in Browser
> 
> Here is the setup. MS XP Pro. Apache 2.0.55, PHP 5.1.2.
> 
> I downloaded the zipped archive and extracted to c:\php.
> 
> Using Manual Installation Method.
> 
> Apache Monitor is running and going to localhost does show the Apache 
> Logo and information. Also in Apache montior at the bottom here is 
> what is displayed
> 
> Apache/2.0.55(Win32) PHP/5.1.2.
> 
> I wrote in Notepad the script <? phpinfo( ) ; ? >, and saved the page 
> as test.php. I placed it in the Apache/htdocs directory as instructed.

> When loaded througha Browser it is my understanding that I should be 
> able to see info on my version on PHP.
> 
> Well it loads with no error. But there is nothing in the Browser
Window.
> MS IE 6.
> 
> Any ideas?? Or can someone help going over the settings.
> 
> Thanks
> 
> Howard

--- End Message ---
--- Begin Message ---
Thanks Massimo

Your suggestion helped. It was the Short Tag setting was turned off.

The only changed I made was to turn it on, and restart Apache. Voila and 
there
is the PHP info page.

I can't remember seeing the any info in the directions about setting this 
tag.
It seems to be omitted since it is optional, but my guess is that most 
people
write their scripts using short tags. So the default setting should be set
to short. Any reason to keep it set to off?? Security Reason??

Howard

"mailbox 19860221" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
"Howard" <[EMAIL PROTECTED]> wrote:
> I wrote in Notepad the script <? phpinfo( ) ; ? >,
> and saved the page as test.php
Try
<?php phpinfo(); ?>

This should work correctly. You used the "short open tags" syntax,
often disabled in your php.ini configuration;

<?php
script_goes_here
?>

is the most correct, *common* and portable syntax.

Best regards
--
Massimo Lombardo 

--- End Message ---
--- Begin Message ---
迪信通手机领跑2006,降价风暴普惠京城

   
   北京咨询电话:010-88270088
服装、电影优惠热线:010-88516753,裴小姐
酒店、机票优惠热线:13581658660,陶先生
化妆品优惠热线:010-80666969,黄先生

    
新春到、财运到,迪信通送出千万大红包;购手机、抽大奖,迪信通抛出新年大手笔。值此2006年春节到来之际,迪信通手机连锁启动“快乐购手机、安心过大年”全国统一大行动。为了满足广大消费者的春节购物需求,迪信通从即日起将全线手机价格下调20%-30%,近千款手机疯狂降价,还赠送超值礼品;微笑服务月也将于春节期间启动,全新“6S”服务标准,打造行业服务新坐标。除此之外,为酬谢广大消费者的支持和厚爱,迪信通还特别推出让利七大举措。
措施一:迪信通送千万大红包。单台送50-300元红包代金券,让消费者购机物超所值。
措施二:在迪信通购机抽好礼。一等奖:价值4999元的摄像机10台;二等奖:价值2600元的摩托罗拉V3手机50台;三等奖:价值299元的MP3 
100台或者返乡车票(火车硬座)300张或者100元充值卡500张;四等奖:可乐两听或孙继海签名足球一个,共20000个。
措施三:迪信通单台特价手机让利300元―500元。如:诺基亚2300,仅售499元,还送时尚风情围巾一个;诺基亚3100仅售718元,还送舒适挚爱靠垫套一个;诺基亚3220仅售1028元,还送舒适挚爱靠垫套一个;诺基亚3120仅售738元,还送舒适挚爱靠垫套一个;诺基亚6270直降500元,还送精致水杯一个;
 
诺基亚6021仅售1418元,还送孙继海签名足球一个。摩托罗拉V3直降300元,还送温馨元宝枕一个;索爱T290C仅售698元,还送可乐两听;金立350B仅售1680元,还送食用油一桶;金立638仅售1380元,还送食用油一桶。每一款特价手机高达150台左右的库存必将满足您方方面面的需求。
措施四:迪信通部分手机仅售88-388元。有小巧可爱的掌上精灵,也有30万像素的拍照先锋,期待您的光临!
措施五:迪信通手机配件以旧换新,无须任何凭证,限国产万禧通、飞毛腿等配件。 
措施六:迪信通会员可免费领取礼品。新会员送孙继海签名足球,老会员送可乐两听。 
措施七:军人、学生持有效证件购机送卡号、50元充值卡。 
在迪信通购机,您还可以享受到一站购齐的乐趣,数据线,蓝牙耳机,蓝牙适配器,各种型号的内存卡,精品MP3等,影音娱乐,一网打尽!
如果你想购买手机,还犹豫什么呢?迪信通将是你绝佳的选择。快快行动吧!迪信通将以极低的价位,高质量的服务来赢得你的满意和信赖!

      北京迪信通公司各店联系表
序号店名地址
1总店(F区)  西三环中路17号新兴宾馆
2旗舰店西三环中路甲17号
3东四店东城区东四大街1号北侧
4万讯德店公主坟二层坟2号万银宝通宾馆一层
5城乡五层店城乡贸易中心五层
6东大桥店蓝岛大厦东门对面
7崇文门店崇文门外大街5号新世界商场地下一层
8王府井店王府井大街277号(中国照相馆对面)
9劲松店劲松中街(劲松商场对面)
10十里堡店朝阳区华堂商场对面云柏鞋业一层
11安贞店安贞桥振宇家具城旁
12丰台店丰台区西四环丰台桥南
13清河店清河一街83号清河百信商厦一层清河桥西北角
14房山店永乐圆三店(鑫特隆商场对面 )
15密云店密云古楼大街瑞嘉商场一层
16昌平店美廉美超市一店旁
17磁器口大都市街南一楼109号
18中关村店中关村科贸电子城四层
19欧尚一店海淀区四季青欧尚购物中心超市一层
20欧尚二店海淀区四季青欧尚购物中心一层
21京广店朝阳区呼家楼向军北里6号楼一层106室 
22人大店北三环四通桥十字路口西好伦哥旁
23亚运村店北辰购物中心向北 九台2000家园一层路东
24看丹桥店丰台桥南欧尚店三层
25中关村二店中关村科贸电子城南侧一层
26中关村三中关村北一条10号盛和科技中心一层
27石景山华联店石景山区石景山路22号华联一层
28良乡店良乡拱辰大街78号良乡商场一层
29良乡二店良乡北关西路22号华冠购物中心往西20米
30大红门店北京市丰台区木犀园环岛南300米路西天雅服装市场南侧
31知春路店知春路17号城铁知春路站向东1000米
32阜成门华联店阜城门华联四层
33中科店中科大厦一层
34六里桥店六里侨南里易初莲花北侧
35五道口店海淀区城铁五道口站向东20米路北
36高井店朝阳区朝阳路易初莲花向东200米路北
37清河金五星清河一街金五星商厦对面
38东单东单十字路口向北100米路东(东方新天地东门对面)
39昌平二店昌平西关农贸大厦一层
40通县西门店通州新华大街物美西门店东侧
41马家堡店丰台嘉园二里美廉美超市旁

--- End Message ---

Reply via email to