>>First when an embperl script fails there is such a log entry:
>>[11526]Reading file://fatal.epl as input using PerlIO (0 Bytes)...
>>[11526]ERR: 12: fatal.epl(1): File file://fatal.epl open error: No such
file or
>>directory
>Embperls Execute function takes a filename and _not_ a URL. This is the same
>in 1.3 and 2.0. Embperl itself never would add this file:// prefix, you must
>given it somewhere. Just remove it and it should work ok.
I don't call the Execute function. fatal.epl should be opened if an error
occures.
In Embperl 1.3.x this worked but now Embperl 2.0b7 tries to open "//fatal.epl".
Is this also a problem with the chdir?
Or can I define the file which should be opened on error?
----------------
>>When I use the following command to get the current url (and append it as an
cgi
>>var to submit the next called page where she should link back) I get the full
>>path (eg "/admin/view-table.epl" instead of "view-table.epl").
>>
>>[-
>>$retcmd = $ENV{"REQUEST_URI"};
>>-]
>Yes, that's how REQUEST_URI is defined in the CGI spec. Embperl doesn't
>change any environment variable.
Ok...Strange that it worked before in Embperl 1.3.x.....
----------------
>>I also have a problem where I have to define 2 variables for one file (one
>>is
>>the real filename with the complete path and a second for the web link).
>>$fname = "/home/nac/web/tmp/$what-$type-$intid-$offset-$now.png";
>>$rname = "../tmp/$what-$type-$intid-$offset-$now.png";
>>In embperl 1.3.x i could use the $rname for both the file access and as
>>web-link. Since Embperl 2.x the relational path didn't work any more and
>the png
>>files where created in "/tmp" instead of "/home/nac/web/tmp".
>>
>>Is this a bug or a feature?
>This is a feature. Embperl 2.0 avoids to make a chdir for every sourcefile
>(which could be a lot, in case you use several source files to build one
>page). You can get the path of the current page with
>[- $req = shift -]
>[- $path = $req -> component -> cwd -]
>and then simply prepend it to your relativ path. There is an option on the
>TODO list, that will allow you to the old behaveiour in one of the next
versions
>Gerald
Why do I need the variable $req and shift it?
----------------------------
Alex
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]