On 22 avr. 2011, at 14:06, Gerrit Garbereder wrote: > thanks for your answer. > I tested the php module with a test file which contains the phpinfo(); > command. This works fine, so I guess the php module works properly. > > I wonder why it works on the old server cause the javascript include > is done client side, isn't it? > It should not matter as apache if the HTTP frontend, so whereever the include is done, it ends on apache that should detect some string as PHP program to interpret. I would compare the two apache config, there must be some difference, folder restriction, permission, ... something that prevent PHP to be seen as PHP on the new one.
> Regards, > Gerrit > > -- > Gerrit Garbereder > Mathematisch-technischer Softwareentwickler > > RWTH Aachen University, Center for Computing and Communication > Rechen- und Kommunikationszentrum > Virtual Reality Group > Dienstgebäude Kopernikusstraße 6, 52074 Aachen (Germany) > Raum 108 > Tel.: +49 (0) 241 80-29731 > mailto:[email protected] > URL: www.vr.rwth-aachen.de > > > > On Fri, Apr 22, 2011 at 13:41, Jean-Baptiste BRIAUD -- Novlog > <[email protected]> wrote: >> Check the apache config and ensure PHP module is activated. >> What you describe look like an apache without PHP activated, so PHP >> "program" is passed as text to the HTTP client. >> >> On 22 avr. 2011, at 12:54, Gerrit Garbereder wrote: >> >>> Hey folks, >>> >>> I'm working on an old script using qooxdoo 0.8. Ther script works on >>> an lampp server very well but i get in trouble when moving it to an >>> current apache2 server. >>> There is a java script file which gets included via html (<script >>> type="text/javascript" src="script/urls.js"></script>) and has the >>> following content: >>> >>> <?php >>> session_start(); >>> if (isset($_SESSION['cName'])) { >>> echo "user = \"".$_SESSION[cName]."\";"; >>> echo "status = \"".$_SESSION[iStatus]."\";"; >>> } else { >>> echo "user = \"".$none."\";"; >>> } >>> ?> >>> >>> urlString = "../../"; >>> >>> urlSaveString = urlString + "projects/saveProject.php"; >>> urlUpdateString = urlString + "projects/updateProject.php"; >>> .... >>> >>> On the old server the php stuff is executed before the javascript part >>> and so the variables user and status are set. Works well. >>> But on the new server the php stuff is not excecuted before the js >>> part and so the php commands are includes as they are and an error >>> occoures, when the user variable is used. >>> >>> I'm not pretty sure if this is the right mailing list for this issue >>> but do you know why the behaivior is so different? >>> >>> Best regards, >>> Gerrit >>> >>> -- >>> Gerrit Garbereder >>> Mathematisch-technischer Softwareentwickler >>> >>> RWTH Aachen University, Center for Computing and Communication >>> Rechen- und Kommunikationszentrum >>> Virtual Reality Group >>> Dienstgebäude Kopernikusstraße 6, 52074 Aachen (Germany) >>> Raum 108 >>> Tel.: +49 (0) 241 80-29731 >>> mailto:[email protected] >>> URL: www.vr.rwth-aachen.de >>> >>> ------------------------------------------------------------------------------ >>> Fulfilling the Lean Software Promise >>> Lean software platforms are now widely adopted and the benefits have been >>> demonstrated beyond question. Learn why your peers are replacing JEE >>> containers with lightweight application servers - and what you can gain >>> from the move. http://p.sf.net/sfu/vmware-sfemails >>> _______________________________________________ >>> qooxdoo-devel mailing list >>> [email protected] >>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel >> >> >> ------------------------------------------------------------------------------ >> Fulfilling the Lean Software Promise >> Lean software platforms are now widely adopted and the benefits have been >> demonstrated beyond question. Learn why your peers are replacing JEE >> containers with lightweight application servers - and what you can gain >> from the move. http://p.sf.net/sfu/vmware-sfemails >> _______________________________________________ >> qooxdoo-devel mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel >> > > ------------------------------------------------------------------------------ > Fulfilling the Lean Software Promise > Lean software platforms are now widely adopted and the benefits have been > demonstrated beyond question. Learn why your peers are replacing JEE > containers with lightweight application servers - and what you can gain > from the move. http://p.sf.net/sfu/vmware-sfemails > _______________________________________________ > qooxdoo-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel ------------------------------------------------------------------------------ Fulfilling the Lean Software Promise Lean software platforms are now widely adopted and the benefits have been demonstrated beyond question. Learn why your peers are replacing JEE containers with lightweight application servers - and what you can gain from the move. http://p.sf.net/sfu/vmware-sfemails _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
