I want to share this to you all. I was struct to convert PDF to SWF from PHP using EXEC() function. Problem i faced is the folder name with white spaces. I was tried all the poosibilities. Finally I catch the solution. The code i used is
<?php
// Syntax: exec('path_to_exe "path_to_source_PDF_file" -o "path_to_converting_swf_file"');
// I missed the double codes (") in the path_to_source_PDF_file and path_to_converting_swf_file. Hence the conversion not happened.
// Example: [ I used SWFtools to convert PDF o SWF]
exec("C:\\SWFTools\\pdf2swf.exe c:\\test.pdf -o C:\\navneeth.swf");
?>
I hope this will help to someone.
Drupal and PHP related posts - Drupal Chennai, Navaneethakrishnan.R
Friday, July 2, 2010
Wednesday, April 21, 2010
Drupal Site offline page theme
To enable offline theme add the following line in settings.php
<?php
$conf['maintenance_theme'] = '<themename>';
?>
Now the site is ready with offline theme. Drupal provides contributed offline theme to use. Click here http://ftp.drupal.org/files/projects/offline-6.x-1.1.tar.gz to download offline theme.
<?php
$conf['maintenance_theme'] = '<themename>';
?>
Now the site is ready with offline theme. Drupal provides contributed offline theme to use. Click here http://ftp.drupal.org/files/projects/offline-6.x-1.1.tar.gz to download offline theme.
Subscribe to:
Posts (Atom)