php-windows Digest 7 Apr 2006 10:35:22 -0000 Issue 2932
Topics (messages 26820 through 26824):
Re: PHP 4.4.2 and MySQL 5?
26820 by: Alejandro C. Garrammone
26821 by: Jeff Chastain
Accessing multiple KEY/ITEM pairs using array_walk_recursive
26822 by: Anand
Re: Access javascript from php
26823 by: El Bekko
Select list again
26824 by: Alf Stockton
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[email protected]
----------------------------------------------------------------------
--- Begin Message ---
First of all, I suposed that you have Win32 running.
Ok, then if you install PHP from the installer then you need to download the
ZIP file too, because the installer don't have the extensions, and mysql
installs on PHP with an extension.
Then, look for the extension in php.ini located on C:\windows.
When you are ready, look in the php.ini the section MySQL and configure this
part with the correct data of the mysql server you are running.
I hope this helps. (sorry for my english)
Alex
----- Original Message -----
From: "Jeff Chastain" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, April 05, 2006 3:43 PM
Subject: [PHP-WIN] PHP 4.4.2 and MySQL 5?
I have MySQL 5 installed and running with several non-PHP applications on
my
development server. I am trying to install a PHP app that supposedly only
works on PHP 4 currently (not PHP 5). So, I installed PHP 4 and
everything
looks good there. However, I cannot get it to connect with MySQL 5.
I have found a few postings online regarding this issue, but no solutions.
Has anybody done this and can you provide some pointers?
Thanks.
--- End Message ---
--- Begin Message ---
I tried this ...
- Overwriting the libmysql.dll/php_mysql.dll and
libmysqli.dll/php_mysqli.dll with the ones from the PHP5 zip
- Enabling the mysql and mysqli extensions in the php.ini file
However, ever after restarting IIS, the phpInfo dump is still showing the
old 3.X api for MySQL and not the new one. It seems like PHP4 is intent on
using its internal MySQL settings over any add-on extension.
Thanks.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 06, 2006 1:11 AM
To: Jeff Chastain
Cc: [email protected]
Subject: Re: [PHP-WIN] PHP 4.4.2 and MySQL 5?
You could try the following:
1) delete your existing php_mysql.dll
2) copy php_mysqli.dll into your extensions directory
3) rename php_mysqli.dll to php_mysql.dll
Then repeat steps 1-3 for the libmysql.dll/libmysqli.dll
> I have MySQL 5 installed and running with several non-PHP applications
> on my development server. I am trying to install a PHP app that
> supposedly only works on PHP 4 currently (not PHP 5). So, I installed
> PHP 4 and everything looks good there. However, I cannot get it to
> connect with MySQL 5.
>
> I have found a few postings online regarding this issue, but no solutions.
> Has anybody done this and can you provide some pointers?
>
> Thanks.
>
--
PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit:
http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Hello Everyone!!
I have a multidimensional array. I want to get multiple KEY / ITEM pairs
using at array_walk_recursive function.
I want to retrieve all entries where "kind" is "directory"
Example Array:
Array
(
[0] => Array
(
[path] => D:\webs/New Folder
[name] => New Folder
[kind] => directory
[content] => Array
(
[0] => Array
(
[path] => D:\webs/New Folder/index.php
[name] => index.php
[extension] => php
[size] => 138
[kind] => file
)
[1] => Array
(
[path] => D:\webs/New Folder/index___.htm
[name] => index___.htm
[extension] => htm
[size] => 1159
[kind] => file
)
[2] => Array
(
[path] => D:\webs/New Folder/post_test.php
[name] => post_test.php
[extension] => php
[size] => 258
[kind] => file
)
[3] => Array
(
[path] => D:\webs/New Folder/test.htm
[name] => test.htm
[extension] => htm
[size] => 3203
[kind] => file
)
)
)
[1] => Array
(
[path] => D:\webs/SVNAdmin
[name] => SVNAdmin
[kind] => directory
[content] => Array
(
[0] => Array
(
[path] => D:\webs/SVNAdmin/index.htm
[name] => index.htm
[extension] => htm
[size] => 3728
[kind] => file
)
)
)
[2] => Array
(
[path] => D:\webs/test
[name] => test
[kind] => directory
[content] => Array
(
[0] => Array
(
[path] => D:\webs/test/index.htm
[name] => index.htm
[extension] => htm
[size] => 1159
[kind] => file
)
[1] => Array
(
[path] => D:\webs/test/index.php
[name] => index.php
[extension] => php
[size] => 248
[kind] => file
)
[2] => Array
(
[path] => D:\webs/test/myname.php
[name] => myname.php
[extension] => php
[size] => 135
[kind] => file
)
[3] => Array
(
[path] => D:\webs/test/mypagedesign
[name] => mypagedesign
[kind] => directory
[content] => Array
(
[0] => Array
(
[path] =>
D:\webs/test/mypagedesign/admin.txt
[name] => admin.txt
[extension] => txt
[size] => 6
[kind] => file
)
[1] => Array
(
[path] =>
D:\webs/test/mypagedesign/index.htm
[name] => index.htm
[extension] => htm
[size] => 4111
[kind] => file
)
[2] => Array
(
[path] =>
D:\webs/test/mypagedesign/login.gif
[name] => login.gif
[extension] => gif
[size] => 5029
[kind] => file
)
[3] => Array
(
[path] =>
D:\webs/test/mypagedesign/logtest.php
[name] => logtest.php
[extension] => php
[size] => 1380
[kind] => file
)
[4] => Array
(
[path] =>
D:\webs/test/mypagedesign/newaccount.htm
[name] => newaccount.htm
[extension] => htm
[size] => 1005
[kind] => file
)
[5] => Array
(
[path] =>
D:\webs/test/mypagedesign/newaccount.php
[name] => newaccount.php
[extension] => php
[size] => 1009
[kind] => file
)
[6] => Array
(
[path] =>
D:\webs/test/mypagedesign/passwd.txt
[name] => passwd.txt
[extension] => txt
[size] => 80
[kind] => file
)
[7] => Array
(
[path] =>
D:\webs/test/mypagedesign/Trash Dump
[name] => Trash Dump
[kind] => directory
[content] => Array
(
[0] => Array
(
[path] =>
D:\webs/test/mypagedesign/Trash Dump/createFile.php
[name] =>
createFile.php
[extension] =>
php
[size] => 277
[kind] => file
)
[1] => Array
(
[path] =>
D:\webs/test/mypagedesign/Trash Dump/log_me_in.php
[name] =>
log_me_in.php
[extension] =>
php
[size] => 810
[kind] => file
)
[2] => Array
(
[path] =>
D:\webs/test/mypagedesign/Trash Dump/passwd.txt
[name] =>
passwd.txt
[extension] =>
txt
[size] => 96
[kind] => file
)
)
)
)
)
[4] => Array
(
[path] => D:\webs/test/page1.php
[name] => page1.php
[extension] => php
[size] => 295
[kind] => file
)
[5] => Array
(
[path] => D:\webs/test/passwd.txt
[name] => passwd.txt
[extension] => txt
[size] => 96
[kind] => file
)
[6] => Array
(
[path] => D:\webs/test/post_test.php
[name] => post_test.php
[extension] => php
[size] => 258
[kind] => file
)
[7] => Array
(
[path] => D:\webs/test/recursive.php
[name] => recursive.php
[extension] => php
[size] => 3980
[kind] => file
)
[8] => Array
(
[path] => D:\webs/test/testpage.perl
[name] => testpage.perl
[extension] => perl
[size] => 0
[kind] => file
)
)
)
[3] => Array
(
[path] => D:\webs/index.php
[name] => index.php
[extension] => php
[size] => 248
[kind] => file
)
[4] => Array
(
[path] => D:\webs/myfile.php
[name] => myfile.php
[extension] => php
[size] => 250
[kind] => file
)
[5] => Array
(
[path] => D:\webs/recursive.php
[name] => recursive.php
[extension] => php
[size] => 4153
[kind] => file
)
)
Thanks
ANAND
--- End Message ---
--- Begin Message ---
Alf Stockton wrote:
I have written my program in such a way that all the html is separate
from my php but now I need to include a piece of javascript within the
php but the php is very unhappy with <script type="text/javascript">,
telling me Parse error: syntax error, unexpected '<' on that line.
How do I do this?
Err...
echo '<script type="text/javascript">';
should do it.
--- End Message ---
--- Begin Message ---
How can I, with only HTML & PHP, retrieve the select value from a
selection the user made without a select button?
--
Regards,
Alf Stockton www.stockton.co.za
Q: How many lawyers does it take to change a light bulb?
A: One. Only it's his light bulb when he's done.
My email disclaimer is available at www.stockton.co.za/disclaimer.html
--- End Message ---