The number one problem any webmaster faces when he or she decides to run Linux programs in a Windows world seems to be the PATH.
For example: you might be told when setting up a program that you have to change a path to suit your system requirements and you are given an example that looks like this: /usr/www/log
At first you might say to yourself that's not to bad I can do this for example:
c:\xampp\htdocs\log\ and this would be wrong for two reasons.
1) linux likes / instead of \
2) normally linux does not like a trailing /
3) normally linux like a capital C
So the correct way to write the path for the example above would be:
C:/xampp/htdocs/log
You will also notice that in most examples you will see a " at the begining and end " of a path statement. It could be single or double.
"C:/xampp/htdocs/log"
'C:/xampp/htdocs/log'
Question: Does anyone know how to solve the issue of paths once and for all or to put it another way how can we make any program designed to work in a Linux world using (php and apache) work in a windows world.
Here is an example of a problem I am working on right now.
error_reporting("E_ERROR | E_PARSE");
$VERSION = "1.1.0dev";
$_CONFIG = true;
/* paths */
$CFG_JPGRAPH_DIR = "./jpgraph"; I am trying to get the program to see or should I say read this directory with no success so far.
/* Rating Graph */
$CFG_GRAPH_LINE_COLOR = "red";
$CFG_GRAPH_FILL_COLOR = "orange";
/* % Victories Graph */
$CFG_GRAPH_LINE2_COLOR = "black";
$CFG_GRAPH_FILL2_COLOR = "#60A0F0";
$CFG_GRAPH_SHOW = "rating"; /* Values = rating | pv */
$CFG_GRAPH_LIMIT = 100; /* Show graphic from these number of past games. Less number means faster graphics */
Note: this is just a clip!
Do we need a linux emulator or what..
Any ways anyone have any ideas...Thanks
hahahah