ThoaiOnline 0 Report post Posted February 28, 2005 I saw many sites on the Net that use php. And I think it's a really useful language. But I don't have any book or document about php. If someone know, please tell me. Share this post Link to post Share on other sites
avalon1405241471 0 Report post Posted February 28, 2005 You can start by reading more about it at http://php.net/. All php scripts start with "<?" or "<?php" and end with "?>". Share this post Link to post Share on other sites
k221405241470 0 Report post Posted February 28, 2005 Go to http://php.net/ as Avalon saud and start read all the documents you can..then create some basic scripts and donwload a nukk(php-nuke for example) reading the source of the nuke you can understand better the OO(Object oriented) programming, in fact i think on the site(php.net) they don't explain very well this kind of approach to the programming..'njoy Share this post Link to post Share on other sites
wedjarl 0 Report post Posted March 1, 2005 Assuming you have mastered HTML, PHP wont be too steep for you. Books are often very much useful, but if dont have any of them, online resources will do. Google is there to search for you....you could start reading articles about php from websites like http://www.w3schools.com/ or any of other sites listed on Google search results.PHP is a flexible language. On a PHP enabled server, altering an HTML document, to a .PHP wont change how the page will look like. PHP can be integrated into websites by simply opening and closing tags (ie. <? and ?>). Everything outside the tags is treated normally. You could start discovering about it maybe by downloading some PHP scripts and see for your self your this PHP scripts work. Share this post Link to post Share on other sites
avalon1405241471 0 Report post Posted March 1, 2005 You can start php script with "<?" in file not save with "html" or "htm" extension.If you intend to use php script with file save with "html" or "htm" extension, your php script will have to start with "<?php".If php script start with "<?" and resulted in plain text then start your php script with "<?php" and all php script end with "?>". Share this post Link to post Share on other sites
whafizi 0 Report post Posted March 1, 2005 You can start php script with "<?" in file not save with "html" or "htm" extension. If you intend to use php script with file save with "html" or "htm" extension, your php script will have to start with "<?php". If php script start with "<?" and resulted in plain text then start your php script with "<?php" and all php script end with "?>". <{POST_SNAPBACK}> in apache web server, php files are only parsed by PHP engine if only you use this setting in httpd.conf; AddType application/x-httpd-php .php if you want all the html files to be parsed by PHP engine, then you should add the line; AddType application/x-httpd-php .html but doing this will increase the resource consumption in server because all the html files will be processed by PHP engine eventhough they dont contain any php scripting. secondly, those "<?" are short open tags. you can enable the use of it by having this in php setting, php.ini file; short_open_tag = On otherwise, only php code within "<?php" and "?>" are only recoqnized by php engine Share this post Link to post Share on other sites