php-windows Digest 26 Apr 2001 11:24:38 -0000 Issue 565

Topics (messages 7048 through 7058):

Bandwidth for webhosts
        7048 by: PHPWIN

Re: WebHosts with PHP4 and MySql
        7049 by: Jeff Pearson

Re: Authorization on IIS5 (PHP4; Win2k)
        7050 by: Joel Gilbert

Re: ISS, PHP & LDAP Authorization
        7051 by: Joel Gilbert

Access97 + odbc_columns
        7052 by: Руслан Охитин

Several " Constant already defined " errors.
        7053 by: Chipmaster

Re: Sessions
        7054 by: Roman Lichszteld

Re: MYSQL Help
        7055 by: edwin
        7056 by: Tom Mathews

Re: Uploading Files on Pasword Protected Sites ?
        7057 by: David Elliott

PLEASE!! : Permissions on COM1?
        7058 by: sean.networkdata.co.uk

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]


----------------------------------------------------------------------


Hi there
 was wondering if anyone could tell me what it means when a web host says that you get 
something like 10GB bandwidth for web visitors/hits?

How do they calculate the bandwidth?

Cheers




I use www.eaccounts.net/jp52950052/ for all of my sites. Have not had a
problem yet.......And they are very cheap. They charge you ONLY for the
actual resources that you use.

Jeff Pearson

> -----Original Message-----
> From: PHPWIN [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 25, 2001 8:23 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] WebHosts with PHP4 and MySql
>
>
> Hi there
>  Does anyone know any good sites with php4 and MySql? May or may
> not be free, but must be reliable and fast. Like always available
> and non-hanging kind of  performance.
>
> Free sites seem to be overloaded at the database end, very
> detrimental to the site function.
>
> Any good paid for webhosts?
>
> Cheers
>
> Xon
>





Thanks, it's up and running fine now. I had some trouble working out how to
query the Win2K Active Directory (correct syntax order), but after examining
the results of an ldifde.exe dump in Win2K it was pretty simple.

"Johan Lundqvist" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> In php.ini just enable LDAP in "Dynamic Extensions" section by entering
> the line extension=php_ldap.dll and restart the web-server (if ISAPI
> module) and off you go...
>
> Joel Gilbert wrote:
> >
> > Thanks for the info. Just one more thing, is it possible to set up LDAP
in
> > PHP for Win2K & IIS, and if so, how? The PHP docs say you have to
recompile
> > PHP with LDAP support. Sorry for my stupidity on this, but how can I do
this
> > under PHP for Windows?
> >
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>






Hi All,
Never mind that question, it's just a simple matter of working out the Win2K
directory structure. I used the ldifde.exe utility in Win2K to dump the
directory to a text file and then examined the structure. Simple enough...



""Joel Gilbert"" <[EMAIL PROTECTED]> wrote in message
9c30ti$r0d$[EMAIL PROTECTED]">news:9c30ti$r0d$[EMAIL PROTECTED]...
> Hi,
>     I figured out how to enable LDAP support, just a matter of
uncommenting
> the appropriate line in php.ini. Now I can connect to the Win2K Active
> Directory server, but only with anonymous login, and can't do any queries.
> Does anyone have any sample scripts for accessing Win2K Directories with
> LDAP? This is hopefully the last piece in the puzzle that will allow me to
> use all PHP instead of ASP.
>
> Joel
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>






Hi all

I want to get ms access 97 tables/columns info with

$db=odbc_connect(...)
$res=odbc_columns($db)
while ($rec=db_fetch_into($res)) {
      // do something with $rec
}

where db_fetch_into is:
function db_fetch_into($result) {
    $row = array();
    $cols = @odbc_fetch_into($result, &$row);
    if (!$cols) {
    db_check_errors($php_errormsg);
    return false;
    }
    return $row;
}

and get "Initialization of d:\winnt\user32.dll failed" system message.

Can someone helps me?

I use WinNT Server sp6a / Apache 1.3.19 / PHP 4.0.4pl1 as apache module


R. Ohitin
[EMAIL PROTECTED]






I am trying to run PHP Nuke 5.0 beta 3 on a Windows 2000 Pro Machine with
IIS 5.0, PHP4 and MySQL Server. Each of the Systems works fine including PHP
but... When I run http://localhost/ the page loads including the MySQL
content and I get dozens and dozens of nice little error messages, which
state that many may constants are already defined on different line numbers
in the language/lang-english.php file. Well I admit I am not the brightest
in PHP, but I am trying my best and I sure would apreciate your help.

Thx Guyz.






> I haven't worked with trans_sid much, so I'm not very familiar with the
> specifics.
>
> The problem is that the get variable PHPSESSID or whatever is passed as a
> get while the action of a form is POST.
>
> One workaround is to create a hidden input named PHPSESSID or SID and set
> it's value to <? echo $SID ?>.
>
> Good luck, and let me know how you fixed it!!!  ;-)
> -Joe

> I haven't worked with trans_sid much, so I'm not very familiar with the
> specifics.
>
> The problem is that the get variable PHPSESSID or whatever is passed as a
> get while the action of a form is POST.
>
> One workaround is to create a hidden input named PHPSESSID or SID and set
> it's value to <? echo $SID ?>.
>
> Good luck, and let me know how you fixed it!!!  ;-)
> -Joe

Upps, I only got message: "Warning: Undefined variable: SID". I really don't
know why!

But now I changed some things - now I'm not using any frames and startup
page "teststart.php" looks like this:

<?
  $LoggedUserID="UserID";
  $LoggedUserName="Session tester";
  $LoggedUserPass="somepassword";

  session_start();
  session_register("LoggedUserID");
  session_register("LoggedUserPass");
  session_register("LoggedUserName");

  print("<CENTER>\n");
  print("<A HREF=\"test1.php\">Click here to continue...</A>\n");
  print("</CENTER>\n");
?>

Script "checkuser.php" (included at the top of 'test1.php') :

<?
  session_start();

  if( empty($LoggedUserID) || empty($LoggedUserPass) ||
empty($LoggedUserName) )
    {
      print("<FORM name=\"URLForm\" method=\"post\" target=\"_top\"
action=\"../start.php\">\n");
      print("<INPUT type=\"hidden\" name=\"StartPage\"
value=\"Login\">\n\n");
      print("</FORM>\n");

      print("<SCRIPT language=\"JavaScript\">\n");
      print("<!--\n");
      print("document.URLForm.submit()\n");
      print("//-->\n");
      print("</SCRIPT>\n");
    }
?>

And... I never achieve 'test1.php', I'm ALWAYS redirected to 'start.php'!
In folder where session id's re stored on the server appear  new session
files...

Regards

Roman Lichszteld
[EMAIL PROTECTED]





hi,

thanks!!

btw, do you know any good commandline or gui clients for Mysql?
i want to administer the DB remotely...

thanks
ed

""Johannes Janson"" <[EMAIL PROTECTED]> wrote in message
9c65b9$nle$[EMAIL PROTECTED]">news:9c65b9$nle$[EMAIL PROTECTED]...
> hi,
>
> the info in the manual about the command line in mysql apply also
> for win2k. Assuming you have root access go to the mysql prompt
> and type this:
> GRANT select, insert, update, delete, WhatPrivYouWant ON YourDB.* TO
> username
> IDENTIFIED BY 'YourPassword';
>
> This creates a user "username" with pasword "YourPassword" who has the
> specified priviledges
> on all tables in YourDB.







1) Command line console is always installed with MySQL - telnet to the
remote machine and you should be able to run it with no problems.
2) GUI - I reccommend phpmyadmin - get it from the MySQL site. It has a lot
of limitations, but the basic functionality is all fine.

Tom

edwin wrote:

> hi,
>
> thanks!!
>
> btw, do you know any good commandline or gui clients for Mysql?
> i want to administer the DB remotely...
>
> thanks
> ed
>
> ""Johannes Janson"" <[EMAIL PROTECTED]> wrote in message
> 9c65b9$nle$[EMAIL PROTECTED]">news:9c65b9$nle$[EMAIL PROTECTED]...
> > hi,
> >
> > the info in the manual about the command line in mysql apply also
> > for win2k. Assuming you have root access go to the mysql prompt
> > and type this:
> > GRANT select, insert, update, delete, WhatPrivYouWant ON YourDB.* TO
> > username
> > IDENTIFIED BY 'YourPassword';
> >
> > This creates a user "username" with pasword "YourPassword" who has the
> > specified priviledges
> > on all tables in YourDB.
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]




Hail vshah

On 25 April 2001 at 11:45:28 -0400 (EDT) (which was 16:45 where I live)
[EMAIL PROTECTED] wrote

> If I remove the password protection, it seems to work again. Is there
> something that I need to do in the PHP.ini file or is this a IIS related
> issue ?

IIS not PHP.

Check out the write permission of the I_User for the directory that you
want to copy the files into after they are uploaded.

-- 
 Regards,                  _______________________________________________
  David                   |    David  Elliott    |   Software Engineer    |
 _________________________|  [EMAIL PROTECTED] | PGP Key ID 0x650F4534  |
| "The Enterprise has seen more action than a tribble in heat" - Picardo  |






Hi all,

I am running PHP4/APACHE/WIN98

I am trying to do a fopen on COM1 and I get permission denied as shown
below.

Warning: fopen("COM1","r+") - Permission denied in c:\web\test.php on line
16
Warning: Supplied argument is not a valid File-Handle resource in
c:\web\test.php on line 17

I have been told by someone on this NG to change the permissions on COM1...
PLEASE tell me how to do this, I really really need to know...

Eagerly awaiting your generous response!


Sean




Reply via email to