Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    PHP


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Include PEAR DB Framework Using PHP 5.0.4 On Windows 2000


Get the following errors when trying to include PEAR DB framework using
PHP 5.0.4 on Windows 2000 with Apache 2.

Warning: main(PEAR-1.3.3/DB/DB.php) [function.main]: failed to open
stream: No such file or directory in E:Program FilesApache
GroupApache2htdocsservusincludesinclude.php on line 19

Fatal error: main() [function.require]: Failed opening required
'PEAR-1.3.3/DB/DB.php' (include_path='.includes;.') in E:Program
FilesApache GroupApache2htdocsservusincludesinclude.php on line 19

The include_path config variable looks like this:
include_path = ".includes;."

PHP is installed in
e:php-5.0.4
and the PEAR Class defs are in
e:php-5.0.4includesPEAR-1.3.3DBDB.php

The includes that fail are:
include_once("PEAR-1.3.3/DB/DB.php");

These worked with 4.4.0, but fail with 5.0.4 ...




View Complete Forum Thread with Replies

Related Forum Messages:
Ms Sql Serveur 2000 On Windows 2000 !!!
I've an error with php & win 2000 & ms sql serveur 2000! listen, i've write an program with win xp easyphp1.7 and ms sql serveur 2000 all is ok on localhost ! all i use some store procedures , triggers and so on all will be ok on local ! Code:

View Replies !
Is It Possible To Authenticate Users Running Apache On MacOS X (with PHP 4) And An Active Directory On Windows 2000 Or Windows XP?
From a PHP webpage, is it possible to authenticate users running Apache on MacOS X (with PHP 4) and an active directory on Windows 2000 or Windows XP?

View Replies !
Windows 2000 Problems
when I open IE and enter in "http://localhost" I get:

"The page cannot be displayed The page you are looking for is currently unavailable. The Web site might be experiencing technical difficulties, or you may need to adjust your browser settings."

blah blah blah....

Then, when I click the Personal Web Manager icon in the Admin tools, I get this error:

"Error connecting to servernamehere: Unexpected error 0x80074002 occurred. Do you wish to continue to attempt to connect to it in the future?"

View Replies !
PHP On IIS Windows 2000 Server
I've downloaded the latest PHP (EXE & ZIP)....

I followed all the instructions I can find and yet PHP will not work with
my IIS !!

Can anyone talk me though exactly how to get them working together?

View Replies !
Installing Php On Windows 2000
I've just installed php on windows 2000 with a pws. How can I test it to see if it's installed correctly.

View Replies !
Installing On Windows 2000 Iis 5
for some odd reason the installer program doesn't set the file extension
..php to be associated with anything, my guess is that it should be
php-win.exe (i've tried all 3 .exe files, and the php.exe produces the
correct results in a command window)... when running a .php in IE I can see
it execute in task manager but the IE screen will not change to display the
correct info.. anyone have any idea about this? IE settings wrong or
something?

View Replies !
Use Gettext In Windows 2000
How can i use gettext in windows 2000. problem in compile .po file. how can i make the .po file. tell me in detail step by step. also unable to find msgfmt.exe, libiconv.dll, libintl.dll to compile .po file in windows.

View Replies !
V4.0.2 And Exec() In Windows 2000 / IIS
Are there any tricks to getting the exec() function to work under
Windows 2000 with IIS? PHP v4.0.2 is installed on the server.

View Replies !
Problems With MS-SQL, Apace, PHP On Windows 2000
I want to use PHP for a project at work. This project requires Windows 2000 running Apache and accessing MS-SQL Server 2000. I am using the mssql php extension to access the db and have all the required files to access the db. If the environment was not correct, it shouldn't connect and successfully query int data types.

Everything works fine as long as I query for numeric datatypes such as int. However, every single time I try to query a text, char, var or datetime field, Apache crashes and I get a Windows error dialog saying that an error is being logged. Unfortunately, there is no error logged to either the Windows 2000 Event Log or the Apache log.

I love PHP and would really like to be able to use it for this project rather than JSP or ASP on IIS.

If anyone knows why this is crashing the server, I'd greatly appreciate any advice or help.

By the way, this is an enterprise-wide database so switching to MySQL is not an option.

View Replies !
How Can Windows 2000 Be Shut Down/ Restarted Via PHP?
How can windows 2000 be shut down/ restarted via PHP?

View Replies !
EGroupWare - With Windows 2000 Install
using Apache, PHP and MySQL on my own PC - been using
it for a while on ISP hosted servers and plesk to create oline forums using
things like Invision and PHPBB but decided to give running eGroupWare a go
on my own PC.

I have windows 2000 Pro and followed some online tutorial to the letter
(excpet downloaded the very latest version of MySQl, PHP, etc) to install
Apache, PHP and MySQL and all worked fine.

Now downloaded eGroupWare and put it in the c:web folder and ran the setup
file

but when I go to my browser and tpye:
http://localhost/egroupware/login.php

I get the following below can anyone point me in the direction of what it
all means??

Warning: main(C:/php/phpgwapi/setup/setup.inc.php): failed to open stream:
No such file or directory in c:webegroupwareheader.inc.php on line 102

Warning: main(): Failed opening 'C:/php/phpgwapi/setup/setup.inc.php' for
inclusion (include_path='.;c:php4pear') in
c:webegroupwareheader.inc.php on line 102

Warning: main(C:/php/phpgwapi/inc/functions.inc.php): failed to open stream:
No such file or directory in c:webegroupwareheader.inc.php on line 110

Warning: main(): Failed opening 'C:/php/phpgwapi/inc/functions.inc.php' for
inclusion (include_path='.;c:php4pear') in
c:webegroupwareheader.inc.php on line 110

Warning: main(C:/php/phpgwapi/inc/xml_functions.inc.php): failed to open
stream: No such file or directory in c:webegroupwareheader.inc.php on
line 111

Warning: main(): Failed opening 'C:/php/phpgwapi/inc/xml_functions.inc.php'
for inclusion (include_path='.;c:php4pear') in
c:webegroupwareheader.inc.php on line 111

Warning: main(C:/php/phpgwapi/inc/soap_functions.inc.php): failed to open
stream: No such file or directory in c:webegroupwareheader.inc.php on
line 112

Warning: main(): Failed opening 'C:/php/phpgwapi/inc/soap_functions.inc.php'
for inclusion (include_path='.;c:php4pear') in
c:webegroupwareheader.inc.php on line 112

Fatal error: Call to undefined function: createobject() in
c:webegroupwarelogin.php on line 26

View Replies !
Exec() Function Under Windows 2000 With IIS?
Are there any tricks to getting the exec() function to work under
Windows 2000 with IIS? PHP v4.0.2 is installed on the server.

View Replies !
Why I Cant Setup Apache In Windows 2000
i can install apache in windows 2000 professional
but when i was to install it in a LAN it cant run correctly
when i type http://localhost/ in browser i recieve The page can not find
why?

View Replies !
Installing Php4 On Windows 2000 Webserver
Is this possible? If so, how do I do it exactly? All I can find is tutorials on how to install it on Apache. If anyone knows the answer can you please help me? I'm desparate. Thanks in advance.

View Replies !
PHP5 Installation With MySQL, Windows 2000
Why I still have "undefined function error" messages?


I included path c:php to my windows env.
Edited php.ini file: include directory value. removed comment mark
from extension=php_mysql.dll
copied libmysql.dll to system32 directory
Apache2 runs fine.
I can run phpinfo.php
I can create a database into the MySQL.

View Replies !
A Framework? Smarty? Pear?
My project is to create a basic social networking site, where users can submit their own stories and rate them (much in the same way as digg). This is a one time deal, and I would not need to re-use any of the code.

Would I be best suited using a framework such as CakePHP (I've heard they slow down considerably with large websites) or would I be best coding everything from scratch?

P.S. If I want a custom home page based upon the network the user belongs to, should I create a basic template that selects the information I want and displays it based upon the networkid of the user?

View Replies !
UPDATE Command Is Not Working On MySQL, Windows 2000 Server
Hi all,

I encountered mysterious problem with MySQL and PHP.

UPDATE command is not working on MySQL configured on Apache 2 with Windows 2000 Server.

It pulled my hairs for atleast 5 hours.

MySQL says Affected rows: 0 (Query took ~ sec) always?

Now, I've decided to move all PHP files and db to remote server.

Can anyone suggest possible reasons for above errors?

View Replies !
Configuring Jpgraph On Windows 2000+Apache+PHP+MySql Server
Could someone walk me step by step on how to install and get JpGraph
running on a Windows 2000+Apache+PHP+MySql server?

View Replies !
PEAR, Smarty, Fixing A Custom Framework
I've been beating this application to death for a month, trying to get it to work...it was written by another programmer, there's NO documentation, it's for a side freelance job...it uses both PEAR and Smarty; it reads from a set of configuration files via parse_ini_file(). The conf files look as they should: Code:

View Replies !
Where Is The Best Place To Download A PEAR Installer For Windows?
Where is the best place to download a PEAR installer for windows?

View Replies !
Pear Include
i looked for a seperate PEAR board but didnt see any so not sure if im posting this in the right place: I've installed pear onto my windows (not my choice), installed all the packages that I need etc, the problem is that i dont have access to change the include_path so in every script I need to include something like this Code:

View Replies !
How To Include PEAR In Php.ini?
I don't want to provide absolute path to PEAR files. How to include in php.ini?


View Replies !
Pear Include Path
Is there a way to find the path to pear libraries (such as DB.php) if you do not have shell access? I have access to some space on an ISP's server and I want to use PEAR, but I don't know where to find the files. Any way to tell from phpinfo().

View Replies !
Pear Package Sub-include
I was trying the pear package on my local winmachine and noticed that one of the includes has a backslash

<?php
include('Mail.php');
include('Mailmime.php');

is this a path backslash? i.e. if I access pair on my linux server, do I have to put a forward slash in between Mail and mime? such as Mail/ mime.php Or does the slash have another meaning? I haven't found a lot of pear documentation and the one I am reading has that slash, which I'm not sure is for any host or just for win.

View Replies !
Zend Framework And Rasmus' "The No-framework PHP MVC Framework"
The Zend framework preview release is out
<http://framework.zend.com/> and I don't know why such PEAR like (yet
another) framework is needed.

At the same time, Rasmus' article
<http://toys.lerdorf.com/archives/38-The-no-framework-PHP-MVC-framework.html>
is quite contrary to Zend's move (if I'm right).

View Replies !
PEAR::SOAP Installed, But Script Execution Just Stops On Include
i have PEAR::SOAP installed correctly (beta, all dependent packages are
installed). When i try out the following simple Script

<?php
print "Include is ... ";
include_once("SOAP/Server.php");
print " ok!";
?>

the Server only outputs "Include is...". The PEAR-Packages are
includable, i checked all server settings, nothing is wrong with the
apache/php config, so it must be another problem which i can't figure
out. The Server does not report any errors at all when executing the
test-script above. I have the same problem on my local machine (XAMPP
installation, using PHP4), so i think it's a problem with PEAR::SOAP
and not a server config.

Running on a linux machine with Apache 2 and PHP 4.3.8.

Installed packages:
===================
Package Version State
Archive_Tar 1.3.1 stable
Console_Getopt 1.2 stable
DB 1.7.6 stable
Date 1.4.5 stable
File 1.2.2 stable
HTTP_Request 1.3.0 stable
Log 1.9.0 stable
Mail 1.1.9 stable
Mail_Mime 1.3.1 stable
Net_DIME 0.3 beta
Net_Socket 1.0.6 stable
Net_URL 1.0.14 stable
PEAR 1.3.5 stable
SOAP 0.9.1 beta
XML_RPC 1.4.4 stable

View Replies !
Include File Problem On Windows
i have a php file on a linux server. new i'm developing a new site that will be placed on a windows server. the problem is that i want to inlcude the file that is on the linux server, but it didnt work. the include works fine in two different linux servers.

View Replies !
PEAR Newbie Trying To User PEAR DB And Falling At The First Hurdle
I've just installed PEAR on my local machine and all is well, updated
the include_path to point to my PEAR dir. So, when I just try to make
a simple connection like so the script just seems to stop but no error
messsages. I do get error messages normally (ie. when I can a method
from an object that doesnt actually exist) as I have set...

View Replies !
Php Setup On Win 2000 IIS
php setup on win 2000 IIS how is it done, i've try but the pages dont show up . any one know of a step by step setup tutrioal on this please. I have phpMyAdmin 2.3.3 and My SQL.

View Replies !
Window 2000 & PHP.ini Set-up
I know i have to change some of the settings in the php.in file, can anyone tell me how to configure this file. At the moment the PHP works but does not save any session cookies. I only use the machine for web development. Spec :

- Windows 2000
- PHP 4.2.3

View Replies !
MS-SQL Server 2000
i have a huge database that is mantained and updated on a daily basis. It is on a MS-SQL 2000 server. I need that data to be exported, preferably by a php script using a cron job every morning, to a MySQL database if anything has changed. I can write the code to do the SQL stuff and maipulate the data, but i'm confused as hell as how to connect to a MS-SQL server using either windows or linux (preferably linux) in order to GET the data!
php's documentation of MS-SQL functions is very "lacking".

View Replies !
Upgrading Php On WIN 2000 Advanced
I am currently using php 4.04 on a WIN 2000 advanced server and I want to upgrade. I downloaded the win32 4.3 installer and think its just a matter of running the installer to complete the process.

Is there anything else I need to configure (besides the php.ini) to keep my existing scripts running correctly? I am running multiple sites on one domain so I don't want to screw up the upgrade and cause any downtime.

View Replies !
Can't Output To Excel 2000
I can't seem to get Excel 2000 to translate an html page. I have Excel 97 perform the same task without a problem, but 2000 just diplays a series of broken image icons.
This the code that I am using to connect to Excel-

Header("Content-Disposition: inline; filename=myfile.xls");
Header("Content-Description: PHP4 Generated Data");
Header("Content-type: application/vnd.ms-excel; name='MIMS_Excel'");
flush;

Is it a coding issue or a setting on Excel that I don't know about, or is it simply impossible.

View Replies !
Number Of Days In 1/1/2000
I am looking for a script that can report the number of days since
2000. It should handle leap years but I am not worried about accuracy
to the hour/minute or seconds. I am writing a calendar program and need
a reference point to base all my dates from. So I picked 1/1/2000.

View Replies !
Compile A Program On Win 2000?
What do I need to compile a program on win 2000? how do i do it? What about with GD Support?

View Replies !
5 / SQL Server 2000 Problem
I just setup my server with IIS6, PHP5, and all that's working great. Now I'm trying to install SQL Server 2000, and I'm running into one particular problem.

When I add the extension in php.ini for php_mssql.dll, then try to connect to to the database i created for it... all it does is sit there looping forever "waiting for "servername"".....

I installed client network unitlity, created alias with IIS virtual directory..

View Replies !
MS Access 2000 Pagination
I am using an MS Access 2000 database with PHP, via ODBC. I would like to create the navigation links "last, prev, next, last" from a retrieved data recordset. I have managed to do this with MySQL using the "LIMIT" clause in the SQL statement, but Access does not seem to support that. It seems to me that one can oly retrieve the top n or bottom n records, but not something in the middle.

View Replies !
PHP / Microsoft SQL V7/2000 - Page Results
Anyone know a simple way to page results of a SQL Select using Microsoft SQL ? I don't believe they have anything as handy as MySQL LIMIT.

View Replies !
Install PHP On Microsoft 2000 Professional
how to install PHP onto my computer. It uses microsoft 2000 professional. I have downloaded one of the later versions of the source code from php.net, but I'm having trouble configuring it. I tried the automatic installer, but I think it needs to be done manually.

View Replies !
PHP With ADO Stored Procedures In SQL Server 2000
here is the problem..

When this procedure runs I am supposed to get 2 output parameters.
When an insert statement is going to generate duplicate names I get 1
for @checker and 3 for @insertid. When the Insert statement runs
properly I am supposed to get 2 for @checker and an actual identity
for @insertid.

When using the code below, the part where the insert statement is
unsuccessful works just as desired, however the part where it inserts
the record returns zeros for both parameters.

When the stored procedure is run using query analyzer it performs
correctly in both instances.

Here is my PHP code

$cmd = new COM("ADODB.Command", NULL, CP_UTF8);
$cmd->CommandText = "STP_insertartist";
$cmd->CommandType = 4;
$cmd->ActiveConnection = $conn;
$par=$cmd->Parameters;
$par->Append($cmd->CreateParameter("@firstname",200,1,50,$_POST["txtfname"]));
$par->Append($cmd->CreateParameter("@lastname",200,1,50,$_POST["txtlname"]));
$par->Append($cmd->CreateParameter("@livedate1",3,1,9,$begdate));
$par->Append($cmd->CreateParameter("@livedate2",3,1,9,$enddate));
$par->Append($cmd->CreateParameter("@style",200,1,300,$_POST["txtstyle"]));
$par->Append($cmd->CreateParameter("@datedescription",200,1,75,$datetext));
$par->Append($cmd->CreateParameter("@insertid",3,2,4));
$par->Append($cmd->CreateParameter("@checker",3,2,4));
$rec=$cmd->Execute;
$invid=$cmd->Parameters["@insertid"]->Value;
$check=$cmd->Parameters["@checker"]->Value;
echo("Check: ".$check." Invid: ".$invid);.........

View Replies !
Problems With PDO And MSSQL (SQLserver 2000)
I have to fix a error within one of our php sites which accesses
several identical MSSQL 2000 databases.

The php-script is able to access some of these databases and can
retrieve data out of the tables.
But on some databases it only can connect but does not get any data
from these databases.
Of course I checked the connects and that there is data in the
databases. This is all ok.

I assume know that I have to change some settings at the MSSQL
databases which are not working properly. Does someone know which
prerequisites are required on MSSQL side to interact correctly with PHP
via pdo ?

View Replies !
MySql Permission Problems (Win 2000)
I screwed up the permissions on my database. Basically I revoked all
the permissions of the root account on the mysql table.

To try to fix this, I went through all of the instructions here:

http://dev.mysql.com/doc/refman/5.0...ermissions.html

running:
mysqld-nt.exe --defaults-file="C:Program FilesMySQLMySQL Server
5.0my.ini" --init-file=C:mysql-init.txt

except in the mysql-init.txt file I put this:

GRANT ALL ON mysql.* TO root

View Replies !
ODBC Query Of Access 2000 Db Using LIKE
Attempting to query MS Access database with the ODBC drivers for PHP. When
using the LIKE statement no records are returned.

Example:

$query = " Select * From Dispatch Where Customer Like '*A*' ";
$result = odbc_prepare($db,$query);
odbc_execute($result);

Does anyone out there know the syntax that I should be using for the Like
statement in the Where clause? When I do a normal query, it works
fine....Just using wildcards it does not work....

View Replies !
MYSQL Select Using BETWEEN '1/1/2000' And '1/1/2004'
What is the syntax for a mysql select statement to select values between a range of dates. I am trying to use:

SELECT * from net5 WHERE Transaction_Date between '6/7/2004' and '11/3/2004'

My dates are stored as date_time in the database.

View Replies !
Problem Running PHP Script On 2000 Server
I am a web designer, and to process a form I placed a PHP script in it. The script sends input to an e-mail and writes it to a comma-delimited file as well.
Well, I tested it on a Linux server and it works fine. However, when the IT guys placed it on a Windows 2000 server, the form does not process. I got this message from IT:

"I tried installing Apache Webserver for windows and it displays the script on the screen when submitted but does not run the form. Rick, Is there anyway you can convert PHP -> ASP?" Code:

View Replies !
Ldap Queries Return Only 2000 Ad Users
I have a problem in a large domain, it seems like php ldap is limited to search / progress 2000 users, is this something related to php upload limit or something?

View Replies !
Pear Shaped PEAR
I read about PEAR in here a few days ago and thought I would give it a try
but I have got myself in a mess with the installation. I have found some
guides but they seem to move swiftly on from installation and get down to
using it.

I am using PHP 5.2.3 which came with NuSPhere PhED and is installed under...

View Replies !
Go-pear.bat:okay - Pear.bat Error - 5.2.4
first attempt at PEAR installation: PHP 5.2.4 - WinXP Sp2 - Apache 2.2

the Initial instruction, post-installation [local, vs system-wide] tells me (not verbatim) "...old version found... remember to use ./php/pear.bat instead...."

hence, the following command. note the feedback. Code:

View Replies !
Framework
I would like to know what's framework do you using ? Wich are plus and
minus, ... ? Could you desribe this in some words.

View Replies !
PHP Framework?
Can you please suggest a framework(not a CMS) for application development using PHP. I have went through some of them, but I want suggestion from someone who have used them succesfully.

View Replies !
Framework, Which One?
Since now, I've always used my bunch of code to make new applications.

I'd like to start to use a framework.
According to you, which is the best PHP framework at the moment?

View Replies !
What Framework To Use On IIS
I'm looking for a PHP framework to use on a IIS webserver. Most frameworks seems to only work on Apache. What frameworks would you recommend ?? CakePHP looks nice, but it needs mod_rewrite, is it possible to use it without mod_rewrite ?

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved