NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
"pear""phped" support ..urgent


Joined: 28 Oct 2004
Posts: 2
Reply with quote
OS: win 2k

Hi,
I want to compile "pear code" in my phped .
It runs fine
http://localhost/pearform.php

...here localhost is G:\phped\Projects\

But in my phped it gives following error
================

Warning: main(HTML/Form.php): failed to open stream: No such
file or directory in G:\phped\Projects\pearform.php on line 3

Fatal error: main(): Failed opening
required 'HTML/Form.php' (include_path='.;..\include_lib')
in G:\phped\Projects\pearform.php on line 3

================

Do I need to make any change im my editor ?

Please help .

Thank You .
View user's profileFind all posts by phpeduserSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8342
Reply with quote
sorry, what are you trying to do ? Please explain in more details. Script samples would be helpful too.
php (not phped) does compile php scripts internally. From the user point of view it acts as an interpreter. In other words php engine takes source code and just runs it without any intermediate files.
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 28 Oct 2004
Posts: 2
Reply with quote
i have "pearform.php " in G:\phped\Projects\ folder


Code:

//pearform.php
<?

require_once "HTML/Form.php";

$form = new HTML_Form($_SERVER['PHP_SELF']);

$form->addText("name", "What's your name?");
$form->addSubmit("submit", "Go, Go");

$form->display();
?>


phped gives ...
Warning: main(HTML/Form.php): failed to open stream: No such
file or directory in G:\phped\Projects\pearform.php on line 3
.......
.......
but when I run it in IE
http://localhost/pearform.php
it give no error and give desire output.

I am new to pear ..plz help me .
P.S. It was my mistake saying phped "complier!! Embarassed "
View user's profileFind all posts by phpeduserSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8342
Reply with quote
Clear.
It means that the file HTML/Form.php is not found.
If you want to work with http server running locally, please proceed with FAQ forum and switch run mode to http/3rd party server. You'll have to install debugger module manually.
If you want to keep gooing with phped-provided local web server you have to get HTML/form.php file installed or make it accessible. See php manual on how include() works.
View user's profileFind all posts by dmitriSend private messageVisit poster's website
"pear""phped" support ..urgent
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic