Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [pear] nie działa za żadne skarby
ppatrykp
post 15.11.2008, 01:35:13
Post #1





Grupa: Zarejestrowani
Postów: 17
Pomógł: 0
Dołączył: 30.03.2007

Ostrzeżenie: (0%)
-----


witam, nie jestem pewien czy to dobry dział, jeśli nie przepraszam i proszę o przeniesienie tam gdzie trzeba.

Mój problem polega na tym, że pisze skrypt tworzący plik xls i nie mogę w ogóle inkludować odpowiednichn bibliotek PEAR
non stop taki efekt:
  1. <?php
  2. Warning: require_once(Spreadsheet/Excel/Writer/Workbook.php) [function.require-once]: failed to open stream: No such file or directory in /home/ppatrykp/public_html/bosch/doexcel.php on line 35
  3.  
  4. Fatal error: require_once() [function.require]: Failed opening required 'Spreadsheet/Excel/Writer/Workbook.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/ppatrykp/public_html/bosch/doexcel.php on line 35
  5. ?>


bądź


  1. <?php
  2. Warning: require_once(Spreadsheet/Excel/Writer.php) [function.require-once]: failed to open stream: No such file or directory in /home/ppatrykp/public_html/bosch/doexcel.php on line 35
  3.  
  4. Fatal error: require_once() [function.require]: Failed opening required 'Spreadsheet/Excel/Writer.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/ppatrykp/public_html/bosch/doexcel.php on line 35
  5. ?>


mam konto wirtualne na webd.pl

w necie są raptem śladowe informacje o takim problemie, niestety nieużyteczne. Co robię źle?

z góry dzięki
Paweł
Go to the top of the page
+Quote Post
pinochet
post 15.11.2008, 10:14:13
Post #2





Grupa: Zarejestrowani
Postów: 120
Pomógł: 12
Dołączył: 9.10.2008
Skąd: Tricity.Rumia()

Ostrzeżenie: (0%)
-----


spróbuj podać pełną ścieżkę do bibliotek. Jeżeli php działa w safe-mode może występować taki problem...
jeszcze mozesz sprawdzic:
get_include_path()
a potem ewentualnie:
set_include_path()

Ten post edytował pinochet 15.11.2008, 10:20:52
Go to the top of the page
+Quote Post
ppatrykp
post 15.11.2008, 13:10:30
Post #3





Grupa: Zarejestrowani
Postów: 17
Pomógł: 0
Dołączył: 30.03.2007

Ostrzeżenie: (0%)
-----


to zwraca mi funkcja get_include_path()
.:/usr/lib/php:/usr/local/lib/php

natomiast nie rozumiem co powinienem ustawić funkcją set_include_path, tą scieżkę, którą zwraca pierwsza funkcja?
gdy to robię wciąż pojawia się ten błąd

mam coś takiego w cPanel-u
  1. <?php
  2. ini_set("include_path", '/home/ppatrykp/php:' . ini_get("include_path")  );
  3. ?>

próbowałem tym działać ale wciąż ten sam błąd

Ten post edytował ppatrykp 15.11.2008, 13:15:52
Go to the top of the page
+Quote Post
Noddi
post 15.11.2008, 15:33:41
Post #4





Grupa: Zarejestrowani
Postów: 45
Pomógł: 7
Dołączył: 25.12.2004
Skąd: Kraków

Ostrzeżenie: (0%)
-----


Z dokumentacji PEAR:

  1. <?php
  2. ini_set('include_path', '~/pear/lib' . PATH_SEPARATOR
  3.        . ini_get('include_path'));
  4.  
  5. // From PHP 4.3.0 onward, you can use the following,
  6. // which especially useful on shared hosts:
  7. set_include_path('~/pear/lib' . PATH_SEPARATOR
  8.                 . get_include_path());
  9. ?>


--------------------
"Yes, experience matters. No, one year repeated fifteen times does not count."
bartoszlugowski.com
Go to the top of the page
+Quote Post
ppatrykp
post 15.11.2008, 15:48:06
Post #5





Grupa: Zarejestrowani
Postów: 17
Pomógł: 0
Dołączył: 30.03.2007

Ostrzeżenie: (0%)
-----


wciąż wraca ten sam błąd
  1. <?php
  2. Warning: require_once(Spreadsheet/Excel/Writer.php) [function.require-once]: failed to open stream: No such file or directory in /home/ppatrykp/public_html/doexcel.php on line 42
  3.  
  4. Fatal error: require_once() [function.require]: Failed opening required 'Spreadsheet/Excel/Writer.php' (include_path='~/pear/lib:~/pear/lib:.:/usr/lib/php:/usr/local/lib/php') in /home/ppatrykp/public_html/doexcel.php on line 42
  5. ?>


co ciekawe odpalam to samo na home.pl i uzyskuje inny błąd tzn krószy
  1. <?php
  2. Fatal error: require_once() [function.require]: Failed opening required 'Spreadsheet/Excel/Writer.php' (include_path='~/pear/lib:~/pear/lib:.:/:/usr/php/pear') in /doexcel.php on line 42
  3. ?>

wiec jak widać nie ma tego warning-u

znalazłem w moim cPanelu coś takiego
  1. <?php
  2. ini_set("include_path", '/home/ppatrykp/php:' . ini_get("include_path")  );
  3. ?>

ale daje identyczny efekt, poradź co tu w takim razie zrobić jeśli możesz... może powinienem zmienić hosting, na jakiś pewny?
Go to the top of the page
+Quote Post
Noddi
post 15.11.2008, 15:51:15
Post #6





Grupa: Zarejestrowani
Postów: 45
Pomógł: 7
Dołączył: 25.12.2004
Skąd: Kraków

Ostrzeżenie: (0%)
-----


Ścieżkę "~/pear/lib" zmień na prawidłową, tam gdzie masz zainstalowane PEAR.


--------------------
"Yes, experience matters. No, one year repeated fifteen times does not count."
bartoszlugowski.com
Go to the top of the page
+Quote Post
ppatrykp
post 15.11.2008, 15:57:56
Post #7





Grupa: Zarejestrowani
Postów: 17
Pomógł: 0
Dołączył: 30.03.2007

Ostrzeżenie: (0%)
-----


czy jest funkcja, którą mogę to sprawdzić?
Go to the top of the page
+Quote Post
Noddi
post 15.11.2008, 16:08:21
Post #8





Grupa: Zarejestrowani
Postów: 45
Pomógł: 7
Dołączył: 25.12.2004
Skąd: Kraków

Ostrzeżenie: (0%)
-----


Domyślnie jest to: /usr/share/pear/

Ten post edytował Noddi 15.11.2008, 17:29:10


--------------------
"Yes, experience matters. No, one year repeated fifteen times does not count."
bartoszlugowski.com
Go to the top of the page
+Quote Post
ppatrykp
post 15.11.2008, 16:38:43
Post #9





Grupa: Zarejestrowani
Postów: 17
Pomógł: 0
Dołączył: 30.03.2007

Ostrzeżenie: (0%)
-----


sprawdzałem już tą ścieżkę i niestety również nie działa. Jakieś pomysły jak to sprawdzić?
Go to the top of the page
+Quote Post
Noddi
post 15.11.2008, 17:29:01
Post #10





Grupa: Zarejestrowani
Postów: 45
Pomógł: 7
Dołączył: 25.12.2004
Skąd: Kraków

Ostrzeżenie: (0%)
-----


Spróbuj: /home/ppatrykp/php


--------------------
"Yes, experience matters. No, one year repeated fifteen times does not count."
bartoszlugowski.com
Go to the top of the page
+Quote Post
ppatrykp
post 15.11.2008, 19:01:27
Post #11





Grupa: Zarejestrowani
Postów: 17
Pomógł: 0
Dołączył: 30.03.2007

Ostrzeżenie: (0%)
-----


już w googlach nie ma patentu, który bym nie sprawdził. Napisałem do pomocy technicznej WebD, poczekam co oni napiszą i wkleję rozwiązanie tu, myślę że może być komuś bardzo pomocne w przyszłości...
Go to the top of the page
+Quote Post
pinochet
post 15.11.2008, 23:50:10
Post #12





Grupa: Zarejestrowani
Postów: 120
Pomógł: 12
Dołączył: 9.10.2008
Skąd: Tricity.Rumia()

Ostrzeżenie: (0%)
-----


to chyba jedyne co możesz zrobic :]
oprócz
exec("find / -name "Writer.php")
ja na przykład mam biblioteki peara w
/usr/share/php/
jest tam co prawda podfolder PEAR ale biblioteki jak np propel są w folderze:
/usr/share/php/propel
serwer stoi na ubuntu a ja dopiero raczkuje w administracji wiec ... mogą być tu jakieś nieścisłości ...
Go to the top of the page
+Quote Post
ppatrykp
post 16.11.2008, 02:07:56
Post #13





Grupa: Zarejestrowani
Postów: 17
Pomógł: 0
Dołączył: 30.03.2007

Ostrzeżenie: (0%)
-----


ok, dzięki man:) tylko, że ja nie chce stawiać specjalnie pod jeden skrypt PEAR-a serwer-a no chyba, że będę naprawdę musiał.
Ale obiło mi się o uszy, że mogę wrzucić PEAR-a bądz tylko potrzebny moduł lokalnie na dysk mojego wirtualnego serwera i nawet znalazłem info w manual-u PEAR-a ale nie mam pojęcia jak się za to zabrać...jakieś pomysły?


co do webd.pl to jestem pewien, że mają coś zwalone na tym serwie gdzie jest moje konto... opcje dotyczące modułów pear-a w cPanel-u wywalaja ostre błędy...
Go to the top of the page
+Quote Post
pinochet
post 16.11.2008, 04:23:49
Post #14





Grupa: Zarejestrowani
Postów: 120
Pomógł: 12
Dołączył: 9.10.2008
Skąd: Tricity.Rumia()

Ostrzeżenie: (0%)
-----


informacje o serwie podałem bo ... to ustawienia defaultowe biggrin.gif tyle że na ubuntu. Ktoś pisał wyżej o innych domyślnych ścierzkach.
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 15.07.2025 - 19:23