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




How Can I Load Load Additional Extensions ?


My OS is Winxp . My web server is apache 2 which is installed as a NT
service .

My php version is 4.32 , and I extracted it into "c:php" .

I run php as a apache module .

I want to load Additional extensions .They are php_mbstring.dll,
php_xslt.dll and php_domxml.dll .

I have made changes to php.ini as follow.
extension_dir = "c:phpextensions"
extension=php_mbstring.dll
extension=php_xslt.dll
extension=php_domxml.dll

then I restarted apache2 .

but it told me that the modules could not be located .




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Does PHP Load All The Extensions In The PHP.INI..
I am using Windows IIS with PHP5 CGI. When I want to use an extension
in PHP5 under Windows I enable the extension line in PHP.INI. (e.g.
extension=php_sqlite.dll).

Does PHP load all the extensions in the PHP.INI on every invocation of
a request? If I have 20 different extensions not all of them are used
on every page request. Is this inefficient?

Would using dl() be more efficient? And why is it being depracated
under 5?

Extensions, (Unable To Load Dynamic Library)
in the php.ini file, I've changed the extension dir: extension_dir="c:program filesPHPextensions" and I have php_sockets.dll in that directory. But adding the line 'extension=php_sockets.dll' to the php.ini file or adding 'dl('php_sockets.dll');' to the top of a .php file result in the same warning:

Warning: Unable to load dynamic library 'c:program filesPHPextensionsphp_sockets.dll' - A device attached to the system is not functioning. I assume that it's finding the dll, because changing the directory to something obviously wrong gives a separate warning: 'One of the library files needed to run this application cannot be found.' But I'm not sure what else is going on to foul things up.

I found an old, similiar thread (URL) and copied another .dll along with the sockets one to my windowssystem dir (WinME), changed the php.ini line, and came up with similiar results, unfortunately.

Load Dll
Is it possible to store some functions into a dll file and load that
dll as a php extension? Id yes, how?

Page Load For IP
Is there any way only a certian IP address on our network can see a
particular Table on the page? or if a certian ip Adress goes to our intranet page load a certain page depending on that IP address.

Getting PHP To Load Up Images
I'm storing images on a separate drive than that that has PHP running on it. PHP (the group www) has permission on that drive to read files and so on, how can I get PHP to load that image into a web browser? Even better, how can I get PHPThumb to interact and use that image?

Cannot Load Excel
I want to load excel.
However, this simple code doesn't work. When I open this page, there's
nothign happen, not even 'unable to initiate excel" or othere error
message.
I have excel in server. Do you know why it doesn't work? Should I make
some special setting?

<?php

$ex = new COM("excel.application") or die("Unable to instantiate
excel");
echo "Loaded Word, version {$ex->Version}
";

?>

Form Should Load First..
I am running a script which sends an email first then shows an html form. But here what happens, it is taking so long to load the html form because of the mail function. Once mail function executes, the form loads.

I want to run the mail function behind the scene and show the form first. I have tried with the php flush() also. Can anyone please help me regarding this. I want to show the form first instead of waiting for the mail function to finish execute.

100% CPU Load : How To Investigate?
Someone I know is running some Web 2.0-type web site that lives on a
shared host, and is experiencing 100% CPU load after a few hours. At
this point, his provider couldn't tell if it's due to a DoS attack, or
a bug in his application.

1. For the DoS thing, I assume looking at the log files should be
enough to tell if it's the problem is due to a suspicious rise in the
number of connections at some point.

2. As for bugs, are there tools available for PHP that can monitor an
application and reveal bugs that could explain this CPU load?

Load Xml From A Php Script
i have an swf file that load xml data from a php script. when i run directly this swf this works well and load de xml data. but when i tray to load this swf as a clip in other swf then it does not load the data, it read the header of the xml file and nothing more
if i change the php script for static xml file (same output that produces the php script) work in both cases any idea?

PHP 5 Won't Load On Apache 2.0.55
I am trying to load PHP 5 on Apache 2.0.55 on FreeBSD. PHP5 install throws
error saying it needs Apache 1.3.

How To Minimize DB Load?
A friend is running a community application in PHP on a shared
server, and his provider is complaining that it's using the DB too
much.

Apart from making changes to how data are organized in the DBMS, are
there ways in PHP to minimize DB load, eg. caching data instead of
reading/writing them from/to the DBMS every time, etc.?

Can Not Load Php_ming.so
I try to install php_ming.so in my php . I am using Redhat 8.0 php 4.2.2
apache 2.0.4.

I am doing as the howto install file want me to do.
as follow.
http://ming.sourceforge.net/install.html
------------------
download php_ming.so.gz
uncompress it and copy it to your php modules directory
(you can find your php module directory by running php-config
--extension-dir)
Now either just add 'extension=php_ming.so' to your php.ini file, or put
'dl('php_ming.so');' at the head of all of your Ming scripts.
-----------------------

but apache or php can not load php_ming.so.

How can I fix the problem?

Auto Load
I am tring to figure out how to do something. I am starting to build a collection of coomon used php class, kind of a framework but not really, that i will be using for all my site.  For instance i have a database class that handle all mysql database stuff.  I have a site class that handles html stuff(generating header/footer, form elements, etc..,

i just have all these classes included in 1 folder but it is starting get big and i would like to be able to start searating them with folders. the problem is how can i tell the auto load where the class is without changing the name of the class?

MySQL Load With PHP
Would a medium sized (~500 pages) database driven website, search
engine and mailing list be too much for one MySQL database? Instead of
making using different databases I would use different tables. I would
use PHP for all of this.



Load Url Into A Frame
I have a database with url's in it, and I want to load one at random into a frame, when a link is clicked I want to load a new random url into the frame

I can do everything except load the new url into the frame, how would I do that?

Load Text
I want the user to fill out a textbox and have that text upload to a webpage.
Like a news announcement , the user can enter in what they want to say and then send and it appears underneath other text entries (using php/mysql).

Now the problem is mysql seems to have a limit on what you can store , especially on the server that hosts my mysql (250 chars limit).

I want 500-1000 words max so what can i do?

Load Time
I have a fairly simple php Load Time script that makes use of microtime(), but I was wondering how to make it more acurate.  The load time is thousandths of a second, when the actual page isn't visible for 5 or 10 more seconds.  Are there any other php options for doing this? I was thinking perhaps buffers, but I don't even know if that would work.

How To Load CSV Onto PHP Page
is there a way to load CSV file into a PHP page? if ever, how and what is the code?

Load Averages Script
Is their any possible way or script that will show the load averages on a windows machine??

Cannot Load MySQL Extension.
This is prolly the third windows box I've set up PHP/MySQL on, but for some reason this one is giving me greif. Anywho, PHP is successfully installed and running, apache works fine, and MySQL is running as a service. All sql/php modules are loaded up fine in apache's conf file, but when I try running phpmyadmin, I get this error:
'cannot load MySQL extension'

phpmyadmin documentation says:
"Usually, the problem is solved by installing a software package called "PHP-MySQL" or something similar. "


Now, I haven't been able to find this software package. Anyone know what could be causing this? I've never had this problem before.

Server Load; Script Vs DB
I'm currently using a very basic script that takes the requested URI and determines where to redirect the user based on it's content, it simply uses a case statement with approx 20 options.

My only concern with this particular application is server load (high traffic) and I'm wondering if using the plain script or using a MySQL DB to find the target URL's would be better.

Load Testing Tools
Wondering what tools people use to load test their applications?

Reducing Server Load
I've got a script that I've released as open source. A user recently reported to me that their host has complained that it's using too much of the server resources. He says that it occasionally jumps up to 15% memory usage, and the CPU usage up around 1.5-2.5. This is on a Celeron 2.2gHz with 512 of RAM. He reports getting around 900 unique visitors a day.

I'd like to do what I can to improve the script to make it not so heavy on server load, but am not quite sure what to do to improve it. All of the appropriate fields are indexed, and when doing queries, I always call the specific columns and don't use SELECT *. Anyone got any other suggestions?

Cannot Load A Mysql Extension
this simple matter but ý need a urgent need.
ý tried set phpMyAdmin on RedHat9 mysql3.23.54 php4.2.2 and apache 2.0.40 but when try to reach index page of PhpMyAdmin it gives me an error as "cannot load a mysql extension check php config" even if mysql.so is under lib/php4/.
What thing must change php config file?

Confused On Load Balancing
I'm planning on putting together an application that will allow users to
upload many multi media files. But lets say my current provider limits
me to 300 gigs of HD space. I fully expect to fill that up, then I...

Need Help With PHP Causing High Load
I've redesigned my site. I went from a design that used SSI to include files for navigation and ads to PHP pages.

PHP is used in the pages for include files mostly. I also have a PHP image rotation script.

I'm on a dedicated server. Since I've switched over the load has gone off the charts-see the image.

How could PHP pages cause the load to do this??

Are there things I can tweak on the server?

You can see the PHP code here:

PHP Include And Server Load
I'm building a site that could in theory be divided into several includes. My concern is that some pages could end up having nothing but the header and includes. Should I avoid having "X" number of includes?

Cannot Load Mysql Extension
I posted this to the sourceforge phpMyAdmin ng, but there was a comment
that it was properly a php question, so I'm posting it here.

I'm on Windows XP, and have just installed Apache, php 5, and
phpMyadmin from zipped binaries. The only thing irregular thing I’m
conscious of doing is unpack phpMyadmin, files and directories,
directly into Apache2htdocs, because that was the only place I knew I
could reach with the <http://localhost> syntax. The phpMyadmin book I’m
using focuses on domains, and not local file-based installations, so
I’m floundering a bit here.

I believe I have php flying, because I can use Firefox to browse to
http://localhost/phpinfo.php and see the HTML-like display in the
browser. I created a little echo-the-date .php and put it in
Apache2htdocs, it renders the date in Firefox properly. The
_SERVER["SERVER_SOFTWARE"] entry reported by phpinfo is “Apache/2.0.52
(Win32) PHP/5.0.2.”

I have uncommented extension=php_mysql.dll in php.ini, and set
extension_dir to "c:php5ext". I copied libmysql.dll and php_mysql.dll
to ..system32. In fact, I have nine copies of libmysql.dll in six
different file sizes on my system. (Could that be the problem-battling
DLLs?)

Per page 18 of Jason Gilmore’s “Beginning PHP 5 and MySQL,” I added
“index.php” to httpd.conf’s DirectoryIndex entry.

However, when I attempt to browse to <http://localhost/index.php>,
which is the configuration test for phpMyadmin, I get the dread--
cannot load mysql extension, please check PHP Configuration Documentation

I imagine this is some little thing in my.ini, httpd.conf, or php.ini.
Any suggestions?

Server Load Benchmarking
I've built my php-enabled page. There are logins/logouts, blob queries to a mysql database. Now I'd like to see if this thing is efficient let's say at 50 hits/sec. (watching the cpu utilisation on a page reload isn't really good....) Does anyone know how to benchmark for such a task?

Server Load Averages
There are a fairly large collection of PHP scripts that will pull the server load averages calculations from a Unix server, but I am running my Apache server on XP (I know, not the best combination, but it's what I have to work with)

Is there any way of getting a load averages calculation (or something similar) on and Apache Server running under XP?

Load Data Into MySQL
I have a table in which its primary key is auto-incremented. Yet, when
I try to load data using load data infile, this column will not
auto-increment. I am leaving that column blank in my file to be
uploaded, yet it fills this value in with a zero for all records.

Should I be using a php script to load this file? Why isnt this
updating correctly?

Importing From CSV Using LOAD DATA
what attributes should i use for a text coloum should it be binary?

Incrementing On Page Load
I have one form that I want to send email. Instead of using multiple pages, I have condensed it to one. However, I don't know how to increment a value, say "display", each time the submit button is clicked.

For instance - I have $display = "1". I want 1 to increment to 2, 3, and so on once the user clicks submit once, twice, etc. But I only want the "validation fields" to show after the user has clicked submit.

Sessions And Load Balancing?
Anyone run into the issue where their ISP uses multiple servers to host your site and they have load balancing built in? Anyone know of a solution besides cutting back to one server?

Load Test For Php Application
is there something like "load runner" in freesoftware world to make a load test for an application in PHP/apache/mysql i just want to know how many simultaneous connexions are possibles on the web site.

Load File From Client
I am trying to do a load data local infile command for using it from my client to load his data to my server. Now the question is How is more confortable and security
a) Open the file into client and read line by line and creating record in my DB

b)Copy the file to the server and use command LOCAL DATA INFILE directly I am using SSL of course without certification but it doesn't matter yet? Which can be more secure to do?

Avoiding Load Time?
I have a script that takes quite a long time to load since the PHP is processing quite a lot of info. Is there any way I can initiate the script, then have it move on to another page right away so I don't have to wait for the PHP to finish processing? (having ignore_user_abort(); on so it will continue to process in the "background" - if my thinking is correct...)

Load Text In A Textbox
Assume you see a textbox with name $textbox and you enter the following: yada yada, When you submit the linebreaks in the text will be converted: PHP Code:

How To Load Different Pages From The Same Form
Suppose to have a PHP page with a form (method=post) and inside it two
text field and two buttons.

I would like to pass the two text fields to the page1.php if is pushed
the first button and to the page2.php if is pushed the second button.

Set Time To Load A Page
I want to make a page which take time almost 60 seconds to load the contents....means a script in php which sleep for a 60 seconds and then execute the next part....

Load Data Into MySQL
I have a table in which its primary key is auto-incremented. Yet, when
I try to load data using load data infile, this column will not
auto-increment. I am leaving that column blank in my file to be
uploaded, yet it fills this value in with a zero for all records.

Should I be using a php script to load this file? Why isnt this
updating correctly?

Unable To Load Module
I have just reintalled my computer and with that; PHP.

But.. I keep getting the error:
PHP Startup: Unable to load dynamic library 'C:PHPmodulesphp_mysql.dll' -
The specified module could not be found.

I have installed PH 5.0.2 on a XP-SP2-box with IIS.
PHP works fine (if I uncomment the php_mysql.dll-line in
%systemroot%php.ini).

The file IS located in the directory. -And for testing purposes I have
copied the file to %systemroot%system32 as well, but with same result :-(

Cannot Load Php_mysql.dll Extension
I have installed PHP 5.2, MySQL 5.0, and Apache 2.2. Everything
works fine except the error mentioned in the subject. Here is the
error log for Apache which shows the problem...

[Mon May 28 03:11:03 2007] [notice] Apache/2.2.4 (Win32) PHP/5.2.2
configured -- resuming normal operations
[Mon May 28 03:11:03 2007] [notice] Server built: Jan 9 2007 23:17:20
[Mon May 28 03:11:03 2007] [notice] Parent: Created child process 2076
PHP Warning: PHP Startup: Unable to load dynamic library 'C:PHPext
php_mysql.dll' - Invalid access to memory location.
in Unknown
on line 0
[Mon May 28 03:11:03 2007] [notice] Child 2076: Child process is
running
[Mon May 28 03:11:03 2007] [notice] Child 2076: Acquired the start
mutex.
[Mon May 28 03:11:03 2007] [notice] Child 2076: Starting 250 worker
threads.
[Mon May 28 03:11:03 2007] [notice] Child 2076: Starting thread to
listen on port 80.
[Mon May 28 03:11:12 2007] [notice] Parent: Received shutdown signal
-- Shutting down the server.
[Mon May 28 03:11:12 2007] [notice] Child 2076: Exit event signaled.
Child process is ending.
[Mon May 28 03:11:13 2007] [notice] Child 2076: Released the start
mutex
[Mon May 28 03:11:14 2007] [notice] Child 2076: Waiting for 250 worker
threads to exit.
[Mon May 28 03:11:14 2007] [notice] Child 2076: All worker threads
have exited.
[Mon May 28 03:11:14 2007] [notice] Child 2076: Child process is
exiting
[Mon May 28 03:11:14 2007] [notice] Parent: Child process exited
successfully.

Cannot Load MySQL Extension
I'm trying to run phpMyadmin and i iinstalled it on my redhat 7.2 and this is the message i get when i look load my index.php file.

Dynamically Load A Class
I want to dynamically load a class using a variable, e.g.

$module = new Mod_{$tmp_Name} ();

Where $tmp_Name is the name of the class.

Is there anyway to achieve this kind of thing?

Howto Load SQL From A File
How to load sql file(external) with php ...

>>index.html
<form method=post action='test.php'>
<input type=file name=file><br>
<input type=submit value=DO>
</form>

>>test.php
$sql = file_get_contents($_FILES['file']);
$sql = trim($sql);

mysql_connect('localhost','root','');
mysql_select_db('test');
mysql_query($sql);

Page Load Frequency
I need a function to prevent a page from being loaded too often too
fast.
So say, one is only allowed to refresh a single page 5 times in 10
seconds, or 10 times in 5 seconds (or whatever ... ).
If the load frequency exceeds that, the site calls exit(); And a
message is displayed. Just like Expression Engine does ...

This way i want to protect the DB from being queried rediculously
often, and maybe even protect it from DDOS attacks.

I hope it's clear. I don't know where to start ..

How To Load A CGI Script Inside PHP?
Is there a way to load a CGI script inside PHP?

Unable To Load Library?
I restarted my virtual server on Friday night and since then I've been getting these emails every 10 minutes (there's a Cronjob scheduled to execute). Problem is, I have no idea what it means or why the error is suddenly occuring..

PHP Warning:  Unknown(): Unable to load dynamic library '/usr/lib/php4/pgsql.so' - libpq.so.3: cannot open shared object file: No such file or directory in Unknown on line 0


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