This topic has been archived. It cannot be replied.
-
工作学习 / 专业知识杂谈 / A new dummy question: is it possible to combine a html page using javascripts/css and a php page? if so, how? i know it's lame but i could only add the html part (with the <head> containing some .css linkages) to the end of php file to work.if i add the html portion to the top of php portion (the way it should be), the php won't show properly at all.
thanks for any help or tips!
-linjiaotou(林教头);
2007-6-27
{144}
(#3769711@0)
-
by my experience. if the SGML/HTML tag is proper used(no open tag, quote keyword properly as string), javascript won't affect php execution.
-647i(流浪的步行万里);
2007-6-27
(#3769725@0)
-
and php5 will give you warning by executing .php file in command line. check the warning or error message.
-647i(流浪的步行万里);
2007-6-27
(#3769728@0)
-
no warning. everything seems hunky dorey on cmd line.
-linjiaotou(林教头);
2007-6-27
(#3769751@0)
-
thx for ur reply. i did ensure those. :(
-linjiaotou(林教头);
2007-6-27
(#3769740@0)
-
paste a sample.
-647i(流浪的步行万里);
2007-6-27
(#3769744@0)
-
Here you go! - a cleaned copy. I tried using both .phtml and .php file extension.
-linjiaotou(林教头);
2007-6-27
{1237}
(#3769774@0)
-
今早还没起床我就预感到问题在哪里了:缺了最后一个收尾的</span>。不过我这里贴的code整理过,你看不出有错。多谢流浪的步行万里指引了正确方向!- 真是个巨笨的问题!:)
-linjiaotou(林教头);
2007-6-28
(#3770737@0)
-
next time, use tidy
-647i(流浪的步行万里);
2007-6-28
(#3771926@0)
-
u da man! thanks. just installed it from the ports tree.
-linjiaotou(林教头);
2007-6-28
(#3771973@0)