Creating .htaccess file
Hi
I'm trying to get rid of all the rogue characters on my site, which are apparent once published, but not when I publish to a local folder. I understand from previous topics, that I need to set up a .htaccess file, with something like this in it: AddCharset UTF-8 .html, so that browsers read the data correctly with Unicode (UTF-8).
There is no .htaccess file in my folder on the FTP site, so I need to create one. Using Cyberduck, I can create the file fine, but then I need to put the data in the file, that's when I run into problems. Downloading the file, I can edit it in text edit, but then if I try and save a file as .htaccess it becomes invisible and I can't upload it to the server.
Many thanks,
Ant
G5 2GHz dual, PowerBook G4 Mac OS X (10.2.x)
yes I've seen that link and I've checked the ftp settings. They're all as they're supposed to be. (i.e. charter encoding - UTF 8 and Default Transfer Mode - Binery). These are the characters I'm getting:
Final Cut Pro HD. Â
Livetype. Â
Motion. Â
Soundtrack Pro.
Â
With large digital storage facilities, we can work on-line right from the word go. Â
Â
Weâ€
I know that if, in Safari, I go View>text encoding>Unicode (UTF-8) that solves it. So I'm trying to get all viewers of the site to be able to see Unicode. I've read the previous posts and they directed me towards the .htaccess file - unfortunately that's the bit I can't crack.
Sorry - not really up on web design - a real novice. Have to say thought iWeb does make it easy to get stuff up quickly!
G5 2GHz dual, PowerBook G4 Mac OS X (10.2.x)
G5 2GHz dual, PowerBook G4 Mac OS X (10.2.x)
Similar Messages
-
Mod Rewrite & .htaccess File on a Mac (Leopard)
I just copied all my websites over from my PC to my Mac and
discovered
that my .htaccess files (originally created in Notepad)
vanished...or
have simply become invisible. So what program do most people
use to
create .htaccess files on a Mac? Do I need to track down my
Notepad
version and delete it, or do they actually disappear on a
Mac?
Also, I've read that mod rewrite doesn't work a Mac unless
you enable
it. Actually, I assume that isn't true for Leopard, as I
checked several
pages on my CMS, and they seemed to be working.
Still, I'm wondering what other surprises might be in store
for me. Can
anyone else who has migrated their websites from a PC to a
Mac tell me
what obstacles you ran into?
I recently upgraded to Leopard and MAMP Pro and just
installed Adobe
Creative Suite, Web Premium.
Thanks.Thanks.
pauljmartinez_sf wrote:
> The .htaccess file is just a plain text file so any
decent text editor can
> create and modify the files.
>
> There should be no cross platform issues using a
.htaccess file since it is
> used by the application and not the OS. .htaccess files
are for Apache, so if
> you're running a local version of Apache you should be
all set provided Apache
> is configured to allow .htaccess files.
>
> Mod-rewrite is also used by Apache and not the OS so no
problems here being on
> a Mac. You just need to make sure that mod_rewrite is
anabled. You might be
> able to do this from MAMP, otherwise you'll need to make
the change in the
> httpd.conf file for Apache and then restart Apache.
> -
.htaccess Files Invisible on a Mac
Sorry if this is kinda sorta a repeat question. I asked about
it some
time ago, but I'm in the dark again, so let me start from
scratch.
When I switched to a Mac and imported my websites from my PC,
I ran into
problems with my .htaccess files, which were originally
created with
Notepad. The problem is that the files are invisible - at
least in
certain circumstances.
At the moment, I can see my .htaccess files with Dreamweaver
locally,
though I have to use another program to open them. That's no
problem.
However, when I switch to remote view, I can't see my
.htaccess files. I
need to access an .htaccess file on one of my sites so I can
download
it. What's the trick for viewing an .htaccess file online
with a Mac?
Also, what Mac-based programs can be used to create more user
friendly
.htaccess files? Could I do it with TextEdit or Open Office?
Thanks.Brendon wrote:
> Try text wrangler, or spend a few $ and get BBEdit.
Either should work.
>
> "David Blomstrom" <[email protected]>
wrote in message
> news:gd3ea8$8iu$[email protected]..
>> Sorry if this is kinda sorta a repeat question. I
asked about it some time
>> ago, but I'm in the dark again, so let me start from
scratch.
>>
>> When I switched to a Mac and imported my websites
from my PC, I ran into
>> problems with my .htaccess files, which were
originally created with
>> Notepad. The problem is that the files are invisible
- at least in certain
>> circumstances.
>>
>> At the moment, I can see my .htaccess files with
Dreamweaver locally,
>> though I have to use another program to open them.
That's no problem.
>>
>> However, when I switch to remote view, I can't see
my .htaccess files. I
>> need to access an .htaccess file on one of my sites
so I can download it.
>> What's the trick for viewing an .htaccess file
online with a Mac?
>>
>> Also, what Mac-based programs can be used to create
more user friendly
>> .htaccess files? Could I do it with TextEdit or Open
Office?
>>
>> Thanks.
>
>
TextWrangler works locally, but I'd also like to be able to
view my
.htaccess files online.
I just tried an FTP program - Fetch. With it, I can view my
.htaccess
file online, though I haven't yet figure out how to download
it. That
is, I can download it, but I'm not sure what location it's
being located
to; I haven't been able to find it yet.
I need to find a split-screen FTP program that lets you
download files
from an online site to a specific local site.
David Blomstrom: PolITics Expert
http://www.geobop.org/ |
http://www.invisible-republic.org/
http://www.billysoft.org/ (M$)
http://www.freedomware.us/Topics/Mac_vs_PC/ -
Hello.
Is there an easy way to include a .htaccess file so that only authorized users can have access to a page created with iWeb '08 (on a non-.Mac server)? I know I can do this after the site is uploaded to the server, by manually going into the uploaded site and dropping in the file in the appropriate directory, but I would like to do this automatically.
On another note, is there a way to include a file that starts with a . (i.e., a hidden file) in iWeb '08? Even when I can "see" hidden files in Finder I cannot "see" them via iWeb '08.
Thanks for any thoughts,
KenNo, you must manually add the .htaccess file to your server space, and there is no way to somehow include such files in iWeb.
-
.htaccess file invisible online (with a Mac)
After I upgraded to a Mac, I had some minor problems working
with the
.htaccess files I imported from my PC. (They were created
with Notepad.)
I thought I had everything squared away, but I just
discovered that I
can't see my .htaccess files in remote view.
I can see them locally, though Dreamweaver won't open them; I
open them
with TextEdit instead. But they're invisible online.
Is there some way to make them visible in Dreamweaver in
remote view, or
do I have to find some ftp client that will recognize them?
Thanks.
David Blomstrom: PolITics Expert
http://www.geobop.org/ |
http://www.invisible-republic.org/
http://www.billysoft.org/ (M$)
http://www.freedomware.us/Topics/Mac_vs_PC/From the toolbar menu on the Files panel, VIEW | Hidden
files.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"David Blomstrom" <[email protected]> wrote
in message
news:g1qice$fte$[email protected]..
> After I upgraded to a Mac, I had some minor problems
working with the
> .htaccess files I imported from my PC. (They were
created with Notepad.) I
> thought I had everything squared away, but I just
discovered that I can't
> see my .htaccess files in remote view.
>
> I can see them locally, though Dreamweaver won't open
them; I open them
> with TextEdit instead. But they're invisible online.
>
> Is there some way to make them visible in Dreamweaver in
remote view, or
> do I have to find some ftp client that will recognize
them?
>
> Thanks.
>
> --
> David Blomstrom: PolITics Expert
>
http://www.geobop.org/ |
http://www.invisible-republic.org/
>
http://www.billysoft.org/ (M$)
>
http://www.freedomware.us/Topics/Mac_vs_PC/ -
Folder Rewrite using .htaccess file?
Hi I have created another folder in my website for something to clone a folder I currently have but no longer want to use. I am looking to redirect anyone tryping in the directory for my old folder to my new one using a .htaccess file or any other method you may suggest.
The paths I want to re direct are as follows www.dor2dor.com/postpeople to www.dor2dor.com/leaflet-distribution-jobs
If anyone can let me know the code I need to do this it would be much appreciated.This will redirect postpeople/something to leaflet-distribution-jobs/something
Options +FollowSymLinks
RewriteEngine on
RewriteRule ^postpeople(.*) /leaflet-distribution-jobs$1 [NC,R=301,L]
If you want to redirect postpeople/anything to leaflet-distribution-jobs, then
Options +FollowSymLinks
RewriteEngine on
RewriteRule ^postpeople(.*) /leaflet-distribution-jobs [NC,R=301,L]
Kenneth Kawamoto
http://www.materiaprima.co.uk/ -
.htaccess files with MAMP + ORIGINAL Apache installation
I installed MAMP on my MacBook Pro, and it set up phpMyAdmin quite nicely, but everything else has been a disaster. Though I can't connect to my databases with Dreamweaver, so I have to link to my online database. Similarly, working with MAMP's Apache installation kills my virtual hosts - and troubleshooting that is WAY over my head.
So I'd like to emulate other MAMP users who have decided to stick with the original Apache installation. My big goal is to simply get my .htaccess files with mod-rewrite rules to work.
According to this article...
http://rexselin.wordpress.com/2006/07/28/making-mod-rewrite-and-htaccess-work-on -mac-os-x/
....htaccess files don't work on Mac's unless you do the following:
1) Open the httpd.conf file and uncomment these three lines:
#LoadModule rewrite_module modules/mod_rewrite.so
#AddModule mod_rewrite.c
#AccessFilename .htaccess
The 2nd and 3rd lines were already uncommented. The closest I found to the first line was the following, which was also uncommented:
LoadModule rewrite_module libexec/httpd/mod_rewrite.so
I left it alone.
2) Change "AllowOverride None" to "AllowOverride All" in both the httpd.conf and /private/etc/httpd/users/MyName.conf files.
I did this in my httpd.conf file, but if I do it in MyName.conf, it kills my virtual hosts.
3) Restart Apache.
Can anyone tell me what to do next? I copied some code from my Apache error logs below, in case it includes any tips. However, most of the more recent errors were probably logged when I was using MAMP's Apache program, so it might be worthless.
Thanks!
[Sat Mar 24 20:32:22 2007] [notice] Digest: generating secret for digest authentication ...
[Sat Mar 24 20:32:22 2007] [notice] Digest: done
[Sat Mar 24 20:32:22 2007] [notice] Apache/2.0.59 (Unix) PHP/5.1.6 DAV/2 configured -- resuming normal operations
[Sat Mar 24 20:37:40 2007] [error] [client 127.0.0.1] File does not exist: /Applications/MAMP/bin/phpMyAdmin/css/themes, referer: http://localhost:8888/phpMyAdmin/css/phpmyadmin.css.php?lang=en-utf-8&server=1&c ollationconnection=utf8_general_ci&jsframe=right
[Sat Mar 24 20:37:42 2007] [error] [client 127.0.0.1] File does not exist: /Applications/MAMP/bin/phpMyAdmin/css/themes, referer: http://localhost:8888/phpMyAdmin/css/phpmyadmin.css.php?lang=en-utf-8&server=1&c ollationconnection=utf8_general_ci&jsframe=right
[Sat Mar 24 20:37:47 2007] [error] [client 127.0.0.1] File does not exist: /Applications/MAMP/bin/phpMyAdmin/css/themes, referer: http://localhost:8888/phpMyAdmin/css/phpmyadmin.css.php?lang=en-utf-8&server=1&c ollationconnection=utf8_general_ci&jsframe=right
[Sat Mar 24 20:37:49 2007] [error] [client 127.0.0.1] File does not exist: /Applications/MAMP/bin/phpMyAdmin/css/themes, referer: http://localhost:8888/phpMyAdmin/css/phpmyadmin.css.php?lang=en-utf-8&server=1&c ollationconnection=utf8_general_ci&jsframe=right
[Sat Mar 24 20:37:54 2007] [error] [client 127.0.0.1] File does not exist: /Applications/MAMP/bin/phpMyAdmin/css/themes, referer: http://localhost:8888/phpMyAdmin/css/phpmyadmin.css.php?lang=en-utf-8&server=1&c ollationconnection=utf8_general_ci&jsframe=right
[Sat Mar 24 21:02:31 2007] [error] [client 127.0.0.1] File does not exist: /Applications/MAMP/bin/phpMyAdmin/css/themes, referer: http://localhost:8888/phpMyAdmin/css/phpmyadmin.css.php?lang=en-utf-8&server=1&c ollationconnection=utf8_general_ci&jsframe=right
Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
[Sun Mar 25 00:41:08 2007] [notice] caught SIGTERM, shutting down
Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
[Sun Mar 25 00:44:16 2007] [notice] Digest: generating secret for digest authentication ...
[Sun Mar 25 00:44:16 2007] [notice] Digest: done
[Sun Mar 25 00:44:16 2007] [notice] Apache/2.0.59 (Unix) PHP/5.1.6 DAV/2 configured -- resuming normal operations
Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
[Sun Mar 25 00:47:46 2007] [notice] caught SIGTERM, shutting down
Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
[Sun Mar 25 00:47:53 2007] [notice] Digest: generating secret for digest authentication ...
[Sun Mar 25 00:47:53 2007] [notice] Digest: done
[Sun Mar 25 00:47:53 2007] [notice] Apache/2.0.59 (Unix) PHP/5.1.6 DAV/2 configured -- resuming normal operations
Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
[Sun Mar 25 00:51:32 2007] [notice] caught SIGTERM, shutting down
Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
[Sun Mar 25 00:51:37 2007] [notice] Digest: generating secret for digest authentication ...
[Sun Mar 25 00:51:37 2007] [notice] Digest: done
[Sun Mar 25 00:51:37 2007] [notice] Apache/2.0.59 (Unix) PHP/5.1.6 DAV/2 configured -- resuming normal operations
Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
[I deleted a bunch of stuff here...]
/Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
[Sun Mar 25 12:44:40 2007] [notice] caught SIGTERM, shutting down
Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
[Sun Mar 25 12:44:46 2007] [notice] Digest: generating secret for digest authentication ...
[Sun Mar 25 12:44:46 2007] [notice] Digest: done
[Sun Mar 25 12:44:46 2007] [notice] Apache/2.0.59 (Unix) PHP/5.1.6 DAV/2 configured -- resuming normal operations
[Sun Mar 25 13:26:37 2007] [error] [client 127.0.0.1] File does not exist: /Applications/MAMP/bin/phpMyAdmin/css/themes, referer: http://localhost:8888/phpMyAdmin/css/phpmyadmin.css.php?lang=en-utf-8&server=1&c ollationconnection=utf8_general_ci&jsframe=right
Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
[Sun Mar 25 14:26:12 2007] [notice] caught SIGTERM, shutting down
Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
[Sun Mar 25 14:26:18 2007] [notice] Digest: generating secret for digest authentication ...
[Sun Mar 25 14:26:18 2007] [notice] Digest: done
[Sun Mar 25 14:26:18 2007] [notice] Apache/2.0.59 (Unix) PHP/5.1.6 DAV/2 configured -- resuming normal operationsPlease ignore this thread. I finally stumbled over the problem - a line of sloppy code in my httpd.conf was apparently creating some interference. Thanks!
-
Where exactly do i upload my htaccess file?
Hi,
I had used the tutorial below to create a htaccess file for playing video on certain mobile devices but I'm not sure where to upload it. Does it just go into the servers root folder? and does it have to have a certain name? Mine is names htaccess.txt
http://camendesign.com/code/video_for_everybody
Any help would be great. ThanksKrumf wrote:
Hi,
I had used the tutorial below to create a htaccess file for playing video on certain mobile devices but I'm not sure where to upload it. Does it just go into the servers root folder? and does it have to have a certain name? Mine is names htaccess.txt
http://camendesign.com/code/video_for_everybody
Any help would be great. Thanks
It just goes in the remote site root folder i.e., might be named 'htdocs', 'public' or something like that but where you would upload your index.html file to.
There should be a period before the htaccess i.e., .htaccess but NO ext .txt (However you might want to upload the file first and then amend its name as inserting the period will most likely result in it disappearing from your desktop. It does if your using a Mac anyway, not sure about a PC. -
Error while creating control file
hi
i am getting following error while creating controll file
QL> shutdown
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup nomount
ORACLE instance started.
Total System Global Area 629145600 bytes
Fixed Size 1250548 bytes
Variable Size 171969292 bytes
Database Buffers 452984832 bytes
Redo Buffers 2940928 bytes
SQL> @c:\study\rose\c.sql
SP2-0042: unknown command "DATAFILE" - rest of line ignored.
SP2-0734: unknown command beginning "'C:\ORACLE..." - rest of line ignored.
SP2-0734: unknown command beginning "'C:\ORACLE..." - rest of line ignored.
SP2-0734: unknown command beginning "CHARACTER ..." - rest of line ignored.
SP2-0044: For a list of known commands enter HELP
and to leave enter EXIT.
1 CREATE CONTROLFILE SET DATABASE "ROSE" RESETLOGS froce logging NOARCHIVELOG
2 MAXLOGFILES 32
3 MAXLOGMEMBERS 2
4 MAXDATAFILES 32
5 MAXINSTANCES 16
6 MAXLOGHISTORY 1752
7 LOGFILE
8 GROUP 1 'C:\oracle\product\10.2.0\oradata\rose\LOG1ROSE.ORA' SIZE 50M,
9 GROUP 2 'C:\oracle\product\10.2.0\oradata\rose\LOG2ROSE.ORA' SIZE 50M,
10 GROUP 3 'C:\oracle\product\10.2.0\oradata\rose\LOG06.LOG' SIZE 25M,
11* GROUP 4 'C:\oracle\product\10.2.0\oradata\rose\LOG07.LOG' SIZE 25M
SQL>CHETAN YADAV wrote:
hi
i am getting following error while creating controll file
QL> shutdown
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup nomount
ORACLE instance started.
Total System Global Area 629145600 bytes
Fixed Size 1250548 bytes
Variable Size 171969292 bytes
Database Buffers 452984832 bytes
Redo Buffers 2940928 bytes
SQL> @c:\study\rose\c.sqlWe can't debug what we can't see. And what we can't see is the contents of "c:\study\rose\c.sql".
SP2-0042: unknown command "DATAFILE" - rest of line ignored.
SP2-0734: unknown command beginning "'C:\ORACLE..." - rest of line ignored.
SP2-0734: unknown command beginning "'C:\ORACLE..." - rest of line ignored.
SP2-0734: unknown command beginning "CHARACTER ..." - rest of line ignored.
SP2-0044: For a list of known commands enter HELP
and to leave enter EXIT.
1 CREATE CONTROLFILE SET DATABASE "ROSE" RESETLOGS froce logging NOARCHIVELOG
2 MAXLOGFILES 32
3 MAXLOGMEMBERS 2
4 MAXDATAFILES 32
5 MAXINSTANCES 16
6 MAXLOGHISTORY 1752
7 LOGFILE
8 GROUP 1 'C:\oracle\product\10.2.0\oradata\rose\LOG1ROSE.ORA' SIZE 50M,
9 GROUP 2 'C:\oracle\product\10.2.0\oradata\rose\LOG2ROSE.ORA' SIZE 50M,
10 GROUP 3 'C:\oracle\product\10.2.0\oradata\rose\LOG06.LOG' SIZE 25M,
11* GROUP 4 'C:\oracle\product\10.2.0\oradata\rose\LOG07.LOG' SIZE 25M
SQL> -
Hi All,Error while creating a file in EMIGALL
Hi All,
When am creating a File name in Data import screen.
The process which i had done is :
I had copied the Migration object DEVICE from std SAP to my company ZTEST and generated the report for this from menu option Migration object --> Generate Report . After that i had selected the option Data import from the same menu option .
In the Data import screen i had selected radibutton Batch Wrork porc and in the Import file tab i had given the file name as DEVICE.ZDE and pressed the create .When i pressed create the following message is appearing :
"Error Opening the file DEVICE.ZDE" .
if I see the detailed help it is showing the following message :
Error opening file DEVICE.ZDE
Message no. EM022
Diagnosis
File DEVICE.ZDE could not be opened.
Procedure
Check the file name and ensure that the file is not being used in another way.
pls provide me the solution for the above Issue ASAP.
regards,
BharatHi Bharat,
First of all make sure that Device file is of .txt with tab deliminated format, before uploading this file please close this file and try. Still if you are facing the same problem then let me know.
Regards,
Shailesh -
How to populate a table instaed of creating a file
Hello Everybody,
I have been thinking if any of you has ever done simmilar thing..
I have a crontab task that runs a script that gathers some space statistics each month from couple of servers..and sends an output to a file..
how to redirect that output so it populates certain table in the database?
can you recomend best approach?
thanks a lot,
agat81The easiest way would be to create your file in a way that it will look like
insert into your_table_name values (bla, 1,2 ,3);
insert into your_table_name values (blub, 4,5 ,6);
commit;
Then execute the script with sqlplus from cron.
cu
Andreas -
Can't create a file using fm 'File_Get_Name'
hi gurus,
Can you please help me with this issue. There's a program that have to create a file using the said fm. It was working before when it was set in OS NT. But when the settings and codes have been changed to UNIX, the program was able to generate the program. But the file doesn't exist. It seems it doesn't create a file in that server.
What else do I need to check?
Points will be rewarded. Thanks
Here's the code for your reference:
CALL FUNCTION 'FILE_GET_NAME'
EXPORTING
* CLIENT = SY-MANDT
logical_filename = 'Z_SYSBRIDGE'
OPERATING_SYSTEM = SY-OPSYS
* PARAMETER_1 = ' '
* PARAMETER_2 = ' '
* USE_PRESENTATION_SERVER = ' '
* WITH_FILE_EXTENSION = ' '
* USE_BUFFER = ' '
IMPORTING
* emergency_flag =
* file_format =
file_name = ltfile-out_path
EXCEPTIONS
file_not_found = 1
OTHERS = 2.Hi Maui,
Did you check SM69, where the code that ties to this FM creates a file after it execute your FM...
SM69 are os commands that does UNIX execution or other OS commands...
or maybe you have missed another FM like FM 'SXPG_OS_COMMAND' or of some sort.
Thanks
William Wilstroth -
Hi Experts,
I have created the logical path and filename in FILE tcode.I am trying to upload the pdf file to application server by using this path.But
I am getting message like "Unable to open the file".Even I cannot find the this path in AL11 tcode.Kindly anyone advise how to upload pdf file using
custom path and file created from FILE tcode.
Thanks & Regards,
Anusha.Hi Anusha,
Please give as below.
I forget to say you cannot open the PDF in AL11 and for that you need some configuration, i think it can be done using content server,not sure completely please wait for some more suggestions.
Regards,
Pavan -
We have a Java7 web app, which generate PDF report by calling Crystal Server 2013 SP4.
The app is being deployed on many different servers. We sometimes got the error below when generating report:
com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: Can not create temp file---- Error code:-2147215357 [CRSDK00000615] Error code name:internal
at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.controllerExportInternal(PrintOutputController.java:280)
at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(PrintOutputController.java:152)
at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(PrintOutputController.java:130)
at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(PrintOutputController.java:113)
Problem is, this seems to be a pretty generic exception. It could be caused by many different reasons.
e.g. network connection problem, wrong DB login, wrong folder path, lack of folder access right, etc.
Each time we could only guess what's wrong.
We are running into it again, and this time everything seems correctly configured so far.
We wonder if there are more info we can get to troubleshoot? For example, any log file of Crystal Server we should look into? Or does Crystal Server has debug mode which prints more details to tell us what goes wrong?Prithviraj Shekhawat wrote:
Hi Henry,
I believe you are using RAS SDKs to export the reports to PDF.
Apply trace on RAS server and check what you find in RAS logs.
Check whether you can see timeout error is RAS logs. Usually if connection is lost and the RAS server no more have the session to write to the temp directory, we do see these errors.
Also, does the account that runs RAS have permissions to create a file in RAS's default temp directory? Are you getting any out of memory or out of disk space exceptions on App server or RAS, tracing RAS server is the way to move forward.
Thanks,
Prithvi
>>I believe you are using RAS SDKs to export the reports to PDF.
Yes
>>Apply trace on RAS server and check what you find in RAS logs.
>>Check whether you can see timeout error is RAS logs.
How to configure tracing, and where are RAS logs? Is it configured in CMC --> Servers --> Crystal Report Services?
>>Also, does the account that runs RAS have permissions to create
>>a file in RAS's default temp directory?
Pretty sure yes.
>> Are you getting any out of memory or out of disk space exceptions
>>on App server or RAS, tracing RAS server is the way to move forward.
Not on App server.
For RAS, that's the problem, I am not sure where to look....... -
Hello,
While exporting Export reporting from BI4 getting exception
Can not create temp file---- Error code:-2147215357 [CRSDK00000615] Error code name:internal
In Trace Log I am getting
com.crystaldecisions.xml.serialization.XMLWriter||Failed to create an object instance for CrystalReports.TextObjectFormat
java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key CrystalReports.TextObjectFormat
at java.util.ResourceBundle.getObject(ResourceBundle.java:374)
at java.util.ResourceBundle.getString(ResourceBundle.java:334)
I tried following solution according to the all forums but still issue exist.
Done changes mention in KB article In <Installation-dir-of-BO>\Common\4.0\java\CRConfig.XML we have to increase the JAVA heap MIN and Max size
<JVMMaxHeap>64000000</JVMMaxHeap> <JVMMinHeap>32000000</JVMMinHeap>
Increase the value in the ReportApplicationServer Services in the CMC for "Number of database records to read when previewing or refreshing a report". The value -1 is for unlimited records but not recommended for performance.
Check for temporary read write permission on server
Using SDK library from C:\Program Files (x86)\SAP Business Objects\SAP BusinessObjects Enterprise XI 4.0\java\lib
Can you please let me know is there anything missing.Hi,
We face the same problem with some BI4 reports.
The same report works well with the "Crystal Reports Viewers API", as used in Infoview, but not with the "Report Application Server (RAS) API".
This error appears after some time working on a report. If we reproduce the same report, but from zero, no problem.
Hope it can help.
Ludovic.
Maybe you are looking for
-
How to link Interactive fields in Acorbat 9Pro?
Hi Im new in this and I would like to now how to link interactive fields in acrobat. lets say that I have 10 files (File1, File2, File3 etc......) and each file have the same COMBO BOX that display 5 options (option 1. option 2, option 3, option 4 a
-
Adobe flash player has downloaded successfully, but it's still not working
hello all, I have a new week old laptop, that has windows 7, I'm trying to view videos online, like on youtube, but it keeps saying download flash player, so I download it, then it says it again when i try to watch the videos. I've downloaded it abou
-
Avoid Distributed query in PL/SQL cursor code
Hi, I have to avoid a distributed qry in my cursor code in PL/SQL. The query follows like this, cursor c1 is select a.test,b.test1,a.test2 from apple a, [email protected] b, bat c where a.listid = b.listid and a.list_name = c.list_name; Now i need to
-
I am unable to delete my old Adobe CS5 suite programs
i am unable to delete my old Adobe CS5 suite programs.....it keeps telling me that Bridge CS5 is running when i try to uninstall. i also tried restarting the computer.
-
Error Only one EhP release is allowed additionally
Short Text Error Only one EhP release is allowed additionally: Long Text Hi experts, I have installed EHP3 using transaction saint. Now when I try to upgradeto EHP4 , I am getting following error in MOPZ. Error Only one EhP release is all