[PHP] PDO mysql Connection issue

2012-11-28 Thread ad...@buskirkgraphics.com
I am having a PDO mysql connection issue I cant explain. On server server1.mydomain.com I have a test script 171.16.23.44 is by an A record called server2.mydoamin.com they are 2 different servers. This script returns an error: ERROR: Access denied for user 'user'@'server1.mydomain.com' (using p

Re: [PHP] Re: PDO question

2012-11-28 Thread ad...@buskirkgraphics.com
> On November 28, 2012 at 4:11 PM Jim Giner > wrote: > On 11/28/2012 3:58 PM, ad...@buskirkgraphics.com wrote: > > > > Guys, > > I am not quiet sure what is happening but every time i try to connect to a > > remote host it refers back to localhost. > > >

Re: [PHP] Re: PDO question

2012-11-28 Thread ad...@buskirkgraphics.com
>On November 28, 2012 at 4:11 PM Jim Giner wrote: > On 11/28/2012 3:58 PM, ad...@buskirkgraphics.com wrote: > > > > Guys, > > I am not quiet sure what is happening but every time i try to connect to a > > remote host it refers back to localhost. > > > &g

[PHP] PDO question

2012-11-28 Thread ad...@buskirkgraphics.com
Guys, I am not quiet sure what is happening but every time i try to connect to a remote host it refers back to localhost. $pdo = new PDO('mysql:host=171.16.23.44;dbname=test', 'user','password'); ERROR: Access denied for user 'user'@'localhost' (using password: YES) in /var/www/html/text.php An

Re: [PHP] include path in httpd.conf

2010-04-05 Thread ad
Ash, Nice call. .htaccess was not being processed at all which led me to a cname configuration error for the sub domain. Thanks!. On 4/5/2010 8:27 PM, Ashley Sheridan wrote: On Mon, 2010-04-05 at 19:40 -0400, ad wrote: I have several virtual hosts on a dedicated server. In a IFmodule

[PHP] include path in httpd.conf

2010-04-05 Thread ad
I have several virtual hosts on a dedicated server. In a IFmodule mod_php5c container in an httpd.conf include file I have the following to create a unique include path for each virtual host: IfModule mod_php5.c> php_value include_path ".:/home/virtual/site#/path/to/include" php_admin_flag saf

[PHP] Fatal error: Call to undefined function: mysql_connect()

2003-03-04 Thread AD
I'm getting this error while testing the script below just for connectivity. Mysql is running on XP and apache and php are on openbsd. It seems like I don't have something configured right in php I guess but I'm not sure. Here is the script: \n"; while ($line = mysql_fetch_array($result))

[PHP] RE: PHP object communication

2001-10-29 Thread ad
Sorry, it was Tim that suggested that what I required wasn't really OO. My apologies Tim, and thanks for your emails. adam Adam Beecher - CEO & Core Geek - ieWebs™ e ... [EMAIL PROTECTED] w ... http://www.iewebs.com m ... Box 81, Eglinton St,

[PHP] RE: PHP object communication

2001-10-25 Thread ad
Hi Tim, > If you want access to error functions within the db class it must either > extend the error class or have an error object within it. Either ... > I'll go for the latter, because extends isn't appropriate in this case: > Class DB > { var $error; > ... > function DB() // constr

[PHP] PHP object communication

2001-10-24 Thread ad
Not coming from a programming background, I'm going to have difficulty explaining this one... :) I would like to handle an entire application through one object, which in turn contains objects. I only recently "got" classes though, and I don't fully understand if what I want to do is possible, or

Re: [PHP] Form Question

2001-10-21 Thread AD
Why not just post to the same script, then you don't have to worry about this? Hth, -AD "Chip Landwehr" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I can't do that because the form is to big and there is a limit to

Re: [PHP] Disable Back Button

2001-10-19 Thread AD
If you really need to, it would need to be done client side, e.g. JavaScript. But reconsider it, okay? please :) -AD "Chip Landwehr" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > lol! > > True, so true... > >

[PHP] download script

2001-08-21 Thread AD
Hi, I'm working on a download script header("Content-Type: application/octet-stream\n"); header("Content-Length: $size\n"); header("Content-Disposition: attachment; filename=\"$file\"\n"); header("Content-Description: Download\n"); readfile($path.$file); This works, but when the initial file do