PDA

View Full Version : newbie


vap
02-01-2006, 02:15 PM
Hi everyone,I've just downloaded First Page 2006.Im trying to run some PHP codes but it doesn't work(Nothing displays on the screen when I click into Preview),actually the program doesn't run any server side scripts except HTML and JS.My PHP codes run well in normal browser like IE 6.Im using PHP5,MySQL and Apache.Do I have to set up the root path in First page ?How can I do that?

PsychoticDude85
02-01-2006, 02:24 PM
Ok, you have some misconceptions.

HTML and Javascript are NOT server side, they are client side codes.

PHP IS server side, and therefore it will only work when passed through a server such as Apache, the preview is not a server and it therefore only runs PHP tags as unidentified HTML tags, which does not work. Hence why PHP will not work in FP06.

groucho
02-01-2006, 06:23 PM
You have to
1 - Have a web server such as Apache loaded on your PC.
2 - Associate the file directory with the URL. Options -> General Preferences -> Server Mappings

ishan
02-14-2006, 11:38 PM
For some reason i think its better to use a dirct view in a web browser then in the First Page 2006, some times u don't get all the path information needed by a editor, dosn't matter what editor it is...