Re: [PHP-WIN] variable in an array? Answer: Double quotes

2006-03-03 Thread John Ellingsworth
The answer to the interpolation problem is to use double quotes: $dsn = "{$servers["$id"]["type"]}://{$servers["$id"]["username"]}:{$servers["$id"]["password"[EMAIL PROTECTED]"$id"]["hostName"]}/{$servers[&

[PHP-WIN] variable in an array?

2006-03-03 Thread John Ellingsworth
:{$servers[$id]["password"[EMAIL PROTECTED]"hostName"]}/{$servers[$id]["databaseName"]}"; This works, so the problem is translating $id properly: $dsn = "{$servers[0]["type"]}://{$servers[0]["username"]}:{$servers[0]["password"[EMAIL PROTECTED]"hostName"]}/{$servers[0]["databaseName"]}"; I would appreciate any help with this. -- Regards, John Ellingsworth http://john.ellingsworth.org -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-WIN] Page-style data display system [w/link]

2006-01-14 Thread John Ellingsworth
Dan You may want to try the Pear Pager package: http://www.google.com/search?q=php+pear+pager [sorry for the missing link] -- Thanks, John -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-WIN] Page-style data display system

2006-01-14 Thread John Ellingsworth
Dan You may want to try the Pear Pager package: -- Thanks, John Ellingsworth Project Leader, Virtual Curriculum Academic Programs School of Medicine University of Pennsylvania (215) 573-4451 Virtual Curriculum http://www.cu2000.med.upenn.edu AIM: vc2000support To contact the Virtual

RE: [PHP-WIN] Connecting to MSSQL Server

2004-02-25 Thread John Ellingsworth
I don't recall the specifics, but I believe it drops shortly afterwards. Do a netstat on it after a specific duration and you will see it has disconnected. Also, check out mssql_connect and mssql_pconnect. Thanks, John Ellingsworth http://mail.med.upenn.edu/~jellings/ AIM: vc2000su

RE: [PHP-WIN] copying uploaded files

2004-02-19 Thread John Ellingsworth
use: copy("c:/php/uploads/sample.txt", "d:/neweb/ainek/"); Thanks, John Ellingsworth http://mail.med.upenn.edu/~jellings/ AIM: vc2000support -Original Message- From: Mark Anderson [mailto:[EMAIL PROTECTED] Sent: Thursday, February 19, 2004 8:34 PM To: [EMAIL PROT

RE: [PHP-WIN] IMAGES IN DB

2004-02-08 Thread John Ellingsworth
In a file called image.php do this: Then embed this into an img tag in a DIFFERENT page: Thanks, John Ellingsworth http://mail.med.upenn.edu/~jellings/ AIM: vc2000support -Original Message- From: zanzamarr [mailto:[EMAIL PROTECTED] Sent: Sunday, February 08, 2004 5:11 AM To

RE: [PHP-WIN] Problem with form

2004-02-05 Thread John Ellingsworth
t;. $omrID . " omr was not successfully added to the database.Please try again.\n"; } } Thanks, John Ellingsworth http://mail.med.upenn.edu/~jellings/ AIM: vc2000support -Original Message- From: Disko_kex [mailto:[EMAIL PROTECTED] Sent: Thursday, Februar

RE: [PHP-WIN] Joining Form Fields To Insert into Database

2004-01-25 Thread John Ellingsworth
$customer_dob = $dob_day."/".$dob_month."/".$dob_year; for 01/25/2004 format. Thanks, John Ellingsworth http://mail.med.upenn.edu/~jellings/ AIM: vc2000support -Original Message- From: kaizer boab [mailto:[EMAIL PROTECTED] Sent: Sunday, January 25, 2004 4:41 PM

RE: [PHP-WIN] Session Variables Problem (Missing)

2004-01-10 Thread John Ellingsworth
patientID"])) { $patientID = $_POST["patientID"]; $_SESSION["sesspatientID"] = $patientID; } // this is the part I had to add to make it work if (isset($_SESSION["sesspatientID"])) { $sesspatientID = $_SESSION["sesspatientID"];

RE: [PHP-WIN] Re: Last Critical Upgrade

2003-09-24 Thread John Ellingsworth
Hey, moderator - can we kill the virus thread and stick to php? Thanks, John Ellingsworth http://mail.med.upenn.edu/~jellings/ AIM: vc2000support -Original Message- From: Shadow [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 2:08 PM To: [EMAIL PROTECTED] Subject: Re

RE: [PHP-WIN] Automatic load .php page

2003-09-21 Thread John Ellingsworth
You could just add this to the authentication page: Logging you in, hang tight! You could just set the time to zero and it will auto send to the next page, and leave out the text. Thanks, John Ellingsworth http://mail.med.upenn.edu/~jellings/ -Original Message- From: ascll

RE: [PHP-WIN] Quick Question

2003-09-18 Thread John Ellingsworth
Thanks, John Ellingsworth http://mail.med.upenn.edu/~jellings/ -Original Message- From: Ben Wheeler [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 3:13 PM To: [EMAIL PROTECTED] Subject: [PHP-WIN] Quick Question Has anyone heard of this company? I just bought a

RE: [PHP-WIN] passthru(), system(), exec()

2003-09-18 Thread John Ellingsworth
Here's how I do it with passthru(): $cmd = "mycmd.exe Keyword(\"+$keyword[$k];|d:$origpath\")"; passthru($cmd); Thanks, John Ellingsworth http://mail.med.upenn.edu/~jellings/ -Original Message- From: Aidal [mailto:[EMAIL PROTECTED] Sent: Thursday, Sept

RE: [PHP-WIN] Array problem (NEVERMIND)

2003-09-11 Thread John Ellingsworth
I forgot the break; for the switch :( Thanks, John Ellingsworth http://mail.med.upenn.edu/~jellings/ -Original Message- From: John Ellingsworth [mailto:[EMAIL PROTECTED] Sent: Thursday, September 11, 2003 2:37 PM To: [EMAIL PROTECTED] Subject: [PHP-WIN] Array problem Hi. In the

[PHP-WIN] Array problem

2003-09-11 Thread John Ellingsworth
AS path, Thumbnail.name AS filename, Thumbnail.idThumb FROM Thumbnail INNER JOIN Path ON Thumbnail.idPath = Path.idPath WHERE (Thumbnail.idThumb = 'Array') : Anyone have any suggestions? I have tried is_array, foreach($thumbarray as $key => $value), and can't tell why I am

RE: [PHP-WIN] Form data

2003-08-21 Thread John Ellingsworth
Muhammad You need to grab the variable first - register_globals is in safe mode, probably - so you should do this (you seem to be using an older, insecure method of doing it): Welcome ! Thanks, John Ellingsworth http://mail.med.upenn.edu/~jellings/ -Original Message- From

RE: [PHP-WIN] Multiple selection in php

2003-08-19 Thread John Ellingsworth
PHP can support it easily :) On your form.php put: // OPEN YOUR FORM echo "\n"; //CREATE A SELECT BOX echo "\n"; // A BUNCH OF CHOICES echo "WORD\n"; //CLOSE YOUR FORM echo "\n"; //END FORM.PHP? In your post.php page put: // DO SOME ERROR CHECKING FOR SAFETY SAK

RE: [PHP-WIN] yeeessss i finaly did it ;-)

2003-07-22 Thread John Ellingsworth
Yes Thanks, John Ellingsworth -Original Message- From: WebDevMagazine [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 22, 2003 9:20 PM To: [EMAIL PROTECTED] Subject: Re: [PHP-WIN] yeee i finaly did it ;-) Are you using Apache and PHP ? Bogomil -- PHP Windows Mailing List

RE: [PHP-WIN] yeeessss i finaly did it ;-)

2003-07-22 Thread John Ellingsworth
Ok I need info please post here. Thanks, John Ellingsworth -Original Message- From: WebDevMagazine [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 22, 2003 9:14 PM To: [EMAIL PROTECTED] Subject: [PHP-WIN] yeee i finaly did it ;-) I just Run COM objects over Windows XP (with all

RE: [PHP-WIN] help with multiple select

2003-07-17 Thread John Ellingsworth
>From the page where I allow multiple keyword submissions: echo "\n"; $sql->Query("SELECT idKeyword AS idKeyword, keyword AS keyword FROM Keyword WHERE (keyword <> '') ORDER BY keyword"); $rowcount = $sql->rows; for ($i=0; $i < $rowc

RE: [PHP-WIN] How to detect syntax errors before releasing a PHP application?

2003-07-14 Thread John Ellingsworth
I place this in a file that is required for every page so that I see all errors: // we want to see all errors error_reporting(E_ALL); Thanks, John Ellingsworth -Original Message- From: Thai Thanh Ha [mailto:[EMAIL PROTECTED] Sent: Monday, July 14, 2003 10:27 PM To: [EMAIL PROTECTED

RE: [PHP-WIN] Date question

2003-06-24 Thread John Ellingsworth
You can also place this into your script: ini_set('mssql.datetimeconvert' , 0); although the format is still changed: In the DB: 3/24/2003 7:05:17 PM Output onto php page: 2003-03-24 19:05:17 Thanks, John Ellingsworth -Original Message- From: Darvin Andrioli [mailto:[EMAIL

RE: [PHP-WIN] Fw: PHP mySQL testing server does not map to the URL

2003-06-16 Thread John Ellingsworth
PHP w/Apache or IIS? w/Apache I wrote some documentation here that may help; let me know if not. http://ellingsworth.org/john/modules.php?op=modload&name=News&file=article&s id=10&mode=thread&order=0&thold=0 ( http://ellingsworth.org/john/ ) Thanks, John Ellingswort

[PHP-WIN] exif_read_data

2003-06-05 Thread John Ellingsworth
$name=>$val) { echo "$key.$name: $val\n"; } } Thanks, John Ellingsworth -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-WIN] exif_read_data

2003-06-05 Thread John Ellingsworth
1.jpg"; $exif = exif_read_data ($origpath,0,true); echo "test2.jpg:\n"; foreach($exif as $key=>$section) { foreach($section as $name=>$val) { echo "$key.$name: $val\n"; } } Thanks, John Ellingsworth -- PHP Windows Mailing List (http://www.p