BigLar Posted October 11, 2005 Posted October 11, 2005 I'm not a coder but I'm finally starting to understand PHP/osCommerce design better. Since I don't know PHP I have to make a change on my local machine and then upload the file to test it. My next step is to get a local copy of my store running on my laptop. Anyway, is there a viewer that can be used to preview your PHP page changes like you can with Frontpage and HTML?
MarcoZorro Posted October 12, 2005 Posted October 12, 2005 The first thing you need to do is understand the difference between php and html... Mainly in the fact that PHP needs to be executed to do something where as html doesnt. The only way to do this is by running the code so you will need either an editor with a built in webserver and PHP engine or just use a web browser in the background... Incidently... The new Zend Studio 5 has some of the features you want but its not cheap :)
wizardsandwars Posted October 12, 2005 Posted October 12, 2005 Most modern text editors have a 'ftp open' and a 'ftp save' option. This makes it easy to hit the save button, and refresh your browser to see the changes. ------------------------------------------------------------------------------------------------------------------------- NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit. If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help.
happyday Posted May 27, 2006 Posted May 27, 2006 The first thing you need to do is understand the difference between php and html... Mainly in the fact that PHP needs to be executed to do something where as html doesnt. The only way to do this is by running the code so you will need either an editor with a built in webserver and PHP engine or just use a web browser in the background... Incidently... The new Zend Studio 5 has some of the features you want but its not cheap :) Hello it seem to me that you are knowlegdable in PHP. I have Frontpage 2003, I know the basic of html, and I have no knowlegde in PHP. I notice that when I edit my page in frontpage, I see php code. some with heading title and this this what I want to change. I want to know which file do I go into to edit the <title_heading> and if you could explain to me what php. do thanks Trang
Daemonj Posted May 28, 2006 Posted May 28, 2006 My first suggestion would be to get rid of Frontpage 2003 and use a different editor. To learn PHP, open a file and follow it from top to bottom. Reference the PHP online documentation when you come across a command that you do not recognize. If the command begins with tep_ you will most likely need to look in the includes/functions directory and probably the general.php or html_output.php files. Another thing you could do is just read through the PHP online documentation. Anything that is all capitals (e.g. HEADING_TITLE) is a constant usually defined in the includes/languages/[language].php file or the language file for the file that you are viewing. Other constants are defined from the database from the configuration table but you will rarely need to modify those. "Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein
Recommended Posts
Archived
This topic is now archived and is closed to further replies.