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[&
:{$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
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
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
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
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
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
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
$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
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"];
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
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
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
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
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
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
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
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
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
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
>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
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
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
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
$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
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
26 matches
Mail list logo