Cannot Load Mysql Extension - Php_mysql.dll File Required.
I need php_mysql.dll file and where i can add this file...cause my sql server
shows a error that "Cannot load mysql extension"..
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
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.
Php_mysql.dll Extension Not Loading
I've enabled php_gd2.dll and php_mbstring.dll in the php.ini file and they're loading ok but the php_mysql.dll is not getting loaded. Apache's error.log reports: PHP Warning: PHP Startup: Unable to load dynamic library 'c:/program files/php/ext/php_mysql.dll' - The specified module could not be found. in Unknown on line 0 What puzzles me is that the MySQL server works ok, PHP works ok, several extensions work ok but php_mysql.dll cannot be found although it is in the extension directory.
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.
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?
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?
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.
PHPMyAdmin ? Error - Cannot Load Mysql Extension
Good Day: I installed my php5, mysql5, and Apaceh2.2. and my configurations was: PHP: (php.ini): ----------------- extension_dir = "C:php5ext" Uncomment this line: extension=php_mysql.dll Apache: (httpd.conf): ---------------------- AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps LoadModule php5_module "C:/php5/php5apache2_2.dll" **it works As i write a simple program with php, i tried to use PHPMyAdmin after downloading it & put the folder of htdocs. But it gives me that error. ---------------------------------- phpMyAdmin - Error Cannot load mysql extension. Please check your PHP configuration. - Documentation ----------------------------- what about configuring phpMyadmin?
Unable To Load Dynamic Library 'C:/php/ext/php_mysql.dll'
I keep getting this: "PHP Warning: PHP Startup: Unable to load dynamic library 'C:phpextphp_mysql.dll' - The specified module could not be found." when I tried to load the php_mysql.dll module when starting my Apache 2.0 in windows XP. The file, php_mysql.dll is there. why? Do I have to load this file before I can use "mysql_connect()"?
Unable To Load Dynamic Library './php_mysql.dll'
When I start my PC(winXP Pro), it always says: Unknown(): Unable toload dynamic library './php_msql.dll' - The specified module could not be found. Then my Apache servre starts, load php module and works well. I copied php_msql.dll to my system32 directory. Who knows what's wrong?
PHP 5.2.1: Cli Does Load Php_mysql.dll While The Same Script Executed By Apache 2.2 Fails Call To Undefined Function Mysql_connect()
After I overcame some short_open_tag (thanks, Rik!) I encounter another strange php-behaviour. The script I just got to work on the windows-commandline obviously does as php.ini tells php to do and loads php_mysql.dll: E:ersDHCP>php ./extractLog.php .... some mysql-stuff, some output, OK The same script invoked by the webserver apache 2.2 entails an error: http://localhost/extractLog.php PHP Fatal error: Call to undefined function mysql_connect() My configuration php.ini does contain the line extension=php_mysql.dll and seems to be OK while I use the script from commandline. Is there anybody who can give me a hint where to cope with this error?Christian
HELP "Cannot Load Mysql Extension"
Fedora Core 2 server with httpd-2.0.54-10.2 php-4.3.10-2.4 php-mysql-4.3.10-2.4 It had MySQL 3.23.58.something on it, but the PHP websites were using a 4.something MySQL on another machine. I updated the MySQL on this machine to mysql-4.1.20-1.FC4.1 and now no PHP sites come up. But mysql.so is right where it's always been: [root@web1 abtech]# ls -l /usr/lib/php4/mysql.so -rwxr-xr-x 1 root root 44364 Dec 21 2004 /usr/lib/php4/mysql.so And the extension line has been commented out of /etc/php.ini and Apache restarted.
Cannot Load Imap Extension In Win98
I removed the ; before "extension=php_imap.dll" in php.ini, and when I start Apache 1.3 I get the following error message: Unknown():Unable to load dynamic library 'c:phpextensionsphp_imap.dll". Uno de los dispositivos vinculados al sistema no funciona (Translation: one of the devices attached to the system doesn't work). I already checked the extension_dir directive, and copied php_imap.dll to c:windows just in case. I am using Windows98 SE with php 4.3.3 as module in Apache 1.3
Grabing A File From A Remote Source (auth Required)
I'm trying to create an iGoogle gadget which will grab an XML file and output something besed on its contents. The problem I'm having is that in order to get the XML file, authentication is required. The url is something like this: https://www.website.com/login.php?user=myusername&pass=mypassword&login=Login&Check=OK&t=/xmlgenerator.php?id=123456 When you go to that url with a browser the server will authenticate you and redirect you to https://www.website.com/xmlgenerator.php?id=123456 which outputs the XML file I need. Any idea if it's possible to do this using PHP?
Check Form For Required Details Before Mysql Insert
I'm making a script that will let the users of my site enter information into a form and then submit it to a database. I've created the database and set up an sql user account that's only allowed to insert to a specific table so that's all ok. The thing i'm having trouble with, is checking the required forms have been filled in. I don't need to do any reqular expression matches on any of the inputs, i just need to let the user know when they've missed out a required field and to stop the script if they haven't. I know this could have tons of different methods, i'm after something basic that will give me an idea how to do it as a beginner. Are there any turtorials or guides on the net that will give me the information i need? Oh, i'm aware the sql part of the code isn't complete. Please remember i'm somewhat of a php noob so go easy. Code:
PHP With No File Extension
I'm running PHP as an Apache module. I've always wondered how you set Apache up to parse a file as PHP without a file extension. Do you use the AddType directive?
File Extension .inc
is there a reason why people put the extension ".inc" or ".inc.php" on some files, mainly configuration files ?? Is it necessary? Any more info you can give would be appreciated. I've had a look on the php.net site but cant see anything on why it is used.
Add .php Extension To A Wrtten File
<?php $File = $_POST['mysql_connect']; $Handle = fopen($File, 'w'); $File is passed from an HTML form. Where do I define the extension of the file that is to be written?
.php File Extension In Browsers
I have recently installed php, apache on windows xp. I have wrote a simple test file -- test.php <?php echo "hello world" ?> When I plugin the http://localhost/test.php in IE it works fine and when I plugin the same in OPERA it gives me a file download box. when I type http://localhost/test instead of http://localhost/test.php in IE the script still runs fine in the browser.
Apache 1.3.x And The Php File Extension
A curious observation: I have my apache web server configured for the PHP apache module to parse files ending in the .php extension. nothing unusual about that, but I also noticed that if I leave the file extension off completely, not only does apache map it to the corresponding php file, but it allows the php module to parse it accordingly. for instance... Lets say I have a file called foo.php in the document root. Normally, I could access it like so http://localhost/foo.php but as it turns out, I can also access it like so http://localhost/foo and I do not have any folders off the document root named "foo". I'm using apach 1.3.24 with PHP v4.3.2-RC1 running on windows XP pro SP1
Hidden Php File Extension
how can i make php file extension hidden in the URL somthing like this (http://mail.google.com/mail/?view)
Adding (.jpg) Extension To A File
I am not storing file names for images in my database. What I am doing to display an image is just "echo" ID of the record and then add ".jpg" at the end. It works fine, but now I need to do something different. I need to resize the image to create thumbnail. I wrote function that does just that, however I can't make it to work because when I try to maipulate the file, it can't find it. It's obvious because it looks for an "ID.jpg" in my database and I only have "ID." Now my question is how can I add an extension to to a string for this type of manipulation. In other words I need to do something like this: $image_name = "$ID + .jpg" //to create for example 12345.jpg . . . Resize $image_name . . . Save resized image with name 12345.jpg into /thmbnails directory.
Renaming A File But Preserving The Extension
A question for those of you who always seem to know the one line way of doing things. I'm using php 4.4.4 and I want to rename the first part of the file to a particular string. For example, if my input string were $input = "/path/to/my/file/12345.jpg"; I would want my result to be "/path/to/my/file/header.jpg", assuming "header" was my fixed string.
Check File Extension Properly
here's my code. Can't get it to check file extension properly or file size...had it working before but not sure why it's buggy now. } elseif ($photo) { $ext = strtolower(substr($photo, -3)); if ($ext == "peg") { $ext = "jpg"; } if ($ext != "gif" || $ext != "jpg" || $ext != "jpeg" || $ext !="bmp" ) { $focus = "photo"; $msg = "Please provide a valid gif, jpeg, or bmp photo"; } else { $photo_size = getimagesize($photo); if ($photo_size > 25000) { $msg = "Photo must be smaller than 25k."; }}} elseif { etc, etc. } else { dbqueries...
Extension : Adding A New File To The Project
I have compiled my first extension following the instructions here: http://www.php.net/manual/en/zend.php and more specifically using phpize. The project contains only one C file. How do I add more file to it ?
Download Script That Changes File Extension
i have a website with mp3's that my proxy at work doens't allow the downloads. is it possible to come up with a php download script that changes the file extension before submiting it for download?
Running A PHP File With An Image Extension (jpg, Gif, Etc.)
This might be a question for Apache people, but does anyone know if it's possible to run a PHP file that has an image extension, like script.jpg? I know I could just as easily make a PHP file like script.php that outputs image data and call it from an IMG tag, but I want the script to have a .jpg extension. If it is possible, I would like to also know if it's possible to limit this behavior to a specific directory or script, not server-wide.
Calling A File When You Don't Know The Proper Extension?!
Alright here's the schematics of what i'm trying to do.. 1. I wrote an upload script which only allows certain file types and has a maxsize on it. -- They are being stored in /files/new/ 2. My next page I want to display the image in a thumbnail. But a fairly larger one where I can specify my own dimensions (ie: 50% x 50%) depending on the type of print it is. When the image is displayed I'm looking to add a CSS dotted border around it. --Here's the key with the dotted border - I would like to print the border INSIDE the image 1/2" from the outside of the border. Showing the bleed space that would be if you printed the design from a printshop. Here's how i'm displaying the image now Quote<?php $filename = $_POST['name']; $filename .= '.gif'; echo "<img src='../files/new/".$filename."' width='50%' height='50%'>"; ?> As you can see I'm assuming that it's a .gif extension - when in reality it could be .gif, .jpg, or .png. Is there anyway that I can make a call to the server to pull the file with the file named $filename without the extension? This is currently my problem so far that I would like to address and would appreciate any input on how to work-around this!!
Retrieving The File Extension From A String.
I am have huge problems with this simple problem. I am trying to retrieve the file extension of a file from a string like I have string say "file.php" how do I get the .php out of that with out just saying it is .php like: Say I have a bunch of files that I might be using in actuallity it is infinite. So lets say the files it could be for now are: file.php file.htm file.html file.gif file.jpg file.css file.js If I don't know what the file extension is and I can't think of possible extensions. What would I do to retrieve the file extension on those. I'm thinking of maybe some function that takes the string and cuts off the first section of the string before the dot. Rather then cutting of the extension like strtok($value, ".");. Also you should note my host does not have finfo functions or there is one other function for gathering the mimetypes forgot what it was and can't find it now though.
Php_mysql.dll
I have Apache 2.0.50 and PHP5 on a Xp test machine (not going live) I also have installed MySQL 4.0.20 Modiefied php.ini, changed the extensions_dir to 10 different things in a row, none helped. copied all the dlls all over the place, no dice. Uncommented the extension = php_mysql.dll and got an error starting apache. Commented it out again, no error ,but still the undefined function mysql_connect in PHP The script runs perfectly in my PHPEdit IDE environment, so that and MySQL isn't the issue (the console works too). checked google, found some reports of similar stuff, but none of the suggestions seems to be applicable.=
Adding The MySQL Extension (debian)
I *always* have trouble getting LAMP up on a new distribution I'm trying out -- this is the chief reason for a bad case of upgrade-o-phobia that i have. This week it's Debian (Ubuntu). I successfully apt-getted apache2, mysql, and php4, but the latter did not include the mysql extension. Have been looking around for a place to download this so I can just plug it in and I thought I'd ask here if anyone knew of such a place. Right now I'm seeing if apt-get install php4-mysql will do it... couldn't find package. ick.
Loop Through Array Find File Extension
i need to build a little script for my browser script... i need to do the following... extract the .ext from the given file name, then i need to pass that to an array that has a list of valid extensions and what icon to use.
.htaccess - Parsing A PHP File With A .html Extension?
Can I use .htaccess to parse a PHP file with a standard .html extension?? This doesn't seem to work: AddType text/html .html AddHandler server-parsed .html I'm using a remote host, so modifying the server's .conf file isn't really an option nor is modifying the php.ini file.
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 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?
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);
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?
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?
LOAD DATA MySQL
I have been struggling to get an idea of how to achieve the task in hand. What I am trying to do... I have a MySQL database, I am trying to create php page to pick a file (browse to file required) and either upload the file to the server or if possible use the location path of the file to be a variable in a...
Load Into Database From The Text File
i'm having difficulties here to load a text file to my database... let's say if i've a table named "train_info", and the field for that particular table is user-id, training_hours, training_date. let's say i've a text file that looks like this : " 123434 12 2002-08-03 545322 10 2002-08-03 533434 12 2002-08-03 654333 12 2002-08-03 535434 12 2002-08-03 " Is it possible for me to read such text file to be inserted into my "train_info" table?
How To Load Uneven XML File Into An Array
I need an array filled with an XML file made from the CSV example below. bactisample row has 14 "columns" bactiresult row has 11 "columns" CSV is taken and run through an XML creator (we have no control over this piece).....
CPU Load Problem On A Php/MySQL Linksite
I got a CPU load problem on my Php/MySQL based Link site. Site gets 6000-10.000 unique visitor and 120.000-180.000 page hits. Its not too many traffic I think. After my hosting (Shared) complained about CPU load 2 months ago I reduced MySQL queries and remove some sections on site. And indexed some table columns in my databas. But its not worked. Then I used a Cache system and included cached files on the site. Queries decreased 80%. But thats not decreased CPU load too. I have learnt "ob_start()" function uses CPU to compress file. I was using it for a long time and I removed it. Guess what,that's not worked too. I wonder that how can I be sure what's making this CPU load. Which part of site or which code, function? In the logs MySQL skip-locking has most of the (CPU) resources . I heard some debug tool, benchmark tests. Is there a way to know whats going on in the code? What tool (script) do you recommend? On my site outgoing links open in a new window and every link has a frame to count hits, commenting and voting. So every click makes a database connection to UPDATE hit value. I think this can make that CPU load problem. But I tried to write these hit values to text file and import it to database time to time with cronjobs. But nothing has changed. Same old heavy site. Now I'm going to try write whole database to the static pages. Like this forum every heavy traffic site uses this in there days. But I dont have that huge traffic I think. In this case I dont really understand this: If I write 100.000 pages from database in every 10 minutes isn't that a big cpu and HDD load too? What is the catch? I read in a forum search engine bots makes a really heavy traffic. I use mod_rewrite (Search Engine Friendly urls) on my site to spiders visit whole site. And I see that I got very frequent Google,Yahoo,MSN and other bot visits. But everyone wants that huh? Should I ban these bots with robots text or meta tags? I dont understand how can 10.000 visitors make that problem. I see that in Cpanel up to %700 cpu load with a red sign. Shared hostings say they allow "10%-20%" CPU usage maximum. But my server's Root admin says 99% of system resources are free on Linux command line! So which one is true? But cpanel resets the server after some time with this cpu load. So hosting providers dont want my site... Please help me to get rid off this problem. Especially I want to know what is my site's problem? I tried 3 hosting provider and same problem comes up. Do I need a dedicated host for this site? (!)
|