php-windows Digest 5 Jan 2002 07:31:37 -0000 Issue 937

Topics (messages 11302 through 11312):

Re: Newbie Question: Creating database
        11302 by: Carl Campbell
        11306 by: Jack Cazes

Re: COM adn PHP4 stéphane BOUCHONNET
        11303 by: SCOTT.NOVINGER.airborne.com

Apache cant find my index.htm
        11304 by: t_virtussavant
        11308 by: LaserJetter

print files
        11305 by: Leon_Tseng.ea.epson.com

Re: COM adn PHP4
        11307 by: alain samoun

$PHP_SELF
        11309 by: Gregory Hart
        11310 by: David
        11312 by: Steve Yates

Question about time functions
        11311 by: Michael Reynolds

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 ---
I think it will suit you well, to get (and install) the 'phpMyAdmin'
package.  It will simplify the aspect of creating and maintaining the
database, while you learn the ins-and-outs of MySQL.

You may want to invest some time in reading and learning the MySQL
documentation.  Especially the part where the GRANT instruction is covered.

In a nutshell, you want to:

        CREATE the database for your user.
        GRANT the particular user, with rights over the database.

Then, let him/her do with it as they please.

> -----Original Message-----
> From: Jack Cazes [mailto:[EMAIL PROTECTED]]
> Sent: Friday, January 04, 2002 10:53 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Newbie Question: Creating database
>
>
> I have windows 2000 server with PHP 4.1.0 and Mysql. I'm not
> quite sure how
> PHP interelates with Mysql. Does PHP access Mysql directly? Or does it via
> the Windows ODBC.
>
> The reason why I am asking is because I have a user who wants a database
> created and wants to know the credentials to access the
> database...so I then
> used MyCC to create the database but there is no mention of username and
> password.
>
> Only if I create a FSN in the ODBC manager (by the way I loaded
> myodbc) does
> it ask for username and password...is this correct?
>
> Any help appreciated.
>
>
>
>
>
> --
> 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]

--- End Message ---
--- Begin Message ---
Actually I think I'm beginning to understand it. In the Mysql database is a
USER table. In that table contains all the users and privileges...is this
correct? Is there anyway of specifiying a certain user to a certain
database....that is only user A is allowed to access database B?

Thanks again





"Carl Campbell" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I think it will suit you well, to get (and install) the 'phpMyAdmin'
> package.  It will simplify the aspect of creating and maintaining the
> database, while you learn the ins-and-outs of MySQL.
>
> You may want to invest some time in reading and learning the MySQL
> documentation.  Especially the part where the GRANT instruction is
covered.
>
> In a nutshell, you want to:
>
> CREATE the database for your user.
> GRANT the particular user, with rights over the database.
>
> Then, let him/her do with it as they please.
>
> > -----Original Message-----
> > From: Jack Cazes [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, January 04, 2002 10:53 AM
> > To: [EMAIL PROTECTED]
> > Subject: [PHP-WIN] Newbie Question: Creating database
> >
> >
> > I have windows 2000 server with PHP 4.1.0 and Mysql. I'm not
> > quite sure how
> > PHP interelates with Mysql. Does PHP access Mysql directly? Or does it
via
> > the Windows ODBC.
> >
> > The reason why I am asking is because I have a user who wants a database
> > created and wants to know the credentials to access the
> > database...so I then
> > used MyCC to create the database but there is no mention of username and
> > password.
> >
> > Only if I create a FSN in the ODBC manager (by the way I loaded
> > myodbc) does
> > it ask for username and password...is this correct?
> >
> > Any help appreciated.
> >
> >
> >
> >
> >
> > --
> > 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]
>


--- End Message ---
--- Begin Message ---
this site may provide some insight.  phpbuilder.net

here is an article that i found useful.

http://www.phpbuilder.net/columns/alain20001003.php3

bon chance!

scott

--- End Message ---
--- Begin Message ---
first, i know this is not a group for apache. but i cant find any group that
discuss apache (or newssever that has one).
i use apache 1.3.20 with PHP4.1.0 on windows98SE
the url is http://10.10.10.32 (you cant access it. its on a LAN)
i have a subdirectory called blunt. but if i typed http://10.10.10.32/blunt
my browser cant find the index page (i did have an file called index.htm on
it).
i work with dreamweaver4 and it always produce html page with .htm
extension. is this the problem? does apache only serve webpage file with
.html extension?
another question. did having php4 means i can run cgi script on my server or
sholud i install or modify somethin on the httpd.conf?
thanx for your time

ps; anyone know any newsserver that has apache discussion group on it?
preferably in english. all i can find is at `fido7.ru.apache` in russian
or maybe a webbased forum will also do.


--- End Message ---
--- Begin Message ---
Apache is usually set up alredy to look for an index.htm OR index.html file
as the start page in a directory. You can check this in httpd.conf: Open it
in notepad and do a search for 'index.html' or 'index.htm' to find the list
of pages to use as an index - you can add index.php if you wanted as well.
It might not be finding the page because you missed the slash off the end of
the URL. Try http://10.10.10.32/blunt/ and see if that works. If you really
want to use http://10.10.10.32/blunt to get to
http://10.10.10.32/blunt/index.htm then make an alias in the [Alias] section
of httpd.conf.

If you have PHP4 on the server, it doesnt let you run CGI or Perl scripts
unless you have a verion of Perl on the server as well. You can have both
without a problem.

I dont know of an Apache newsgroup run by ASF but there are newgroups
dedicated to web servers and servers running on Windows NT etc. I think
there is an Apache mailing list on their website but I'd be interested in an
Apache specific newsgroup if anybody knows of one.

LJ


"T_virtussavant" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> first, i know this is not a group for apache. but i cant find any group
that
> discuss apache (or newssever that has one).
> i use apache 1.3.20 with PHP4.1.0 on windows98SE
> the url is http://10.10.10.32 (you cant access it. its on a LAN)
> i have a subdirectory called blunt. but if i typed
http://10.10.10.32/blunt
> my browser cant find the index page (i did have an file called index.htm
on
> it).
> i work with dreamweaver4 and it always produce html page with .htm
> extension. is this the problem? does apache only serve webpage file with
> .html extension?
> another question. did having php4 means i can run cgi script on my server
or
> sholud i install or modify somethin on the httpd.conf?
> thanx for your time
>
> ps; anyone know any newsserver that has apache discussion group on it?
> preferably in english. all i can find is at `fido7.ru.apache` in russian
> or maybe a webbased forum will also do.
>
>


--- End Message ---
--- Begin Message ---

Greetings all!

I'm a newbie to PHP and I wonder how I can print a file (eg. .doc, .xls
etc.) using PHP.
I looked at the printer functions but I can't seem to print anything other
than plain text and bitmaps.
Any help would be greatly appreciated. :p

--- End Message ---
--- Begin Message ---
Replace:
$ret=com_propset($word,Selection.Font.bold,True);
     $word->Selection->Font->bold("$ret");
With:
     $word->Selection->Font->bold=true; #Set font to bold for rest of
document
Or, to set all document to font/bold:
        $word->Documents->Add();
      $myRange = $word->ActiveDocument->Content;
      $myRange->Font->bold=true;

A+
Alain

-----Original Message-----
From: stéphane BOUCHONNET [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 04, 2002 5:54 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] COM adn PHP4


Hello,

I'm a frenchman, and i try to use COM functions in
WORD with no sucess.

here is a part of my code where i try to simply put a
bold font at true in
order to make a beautiful document, but i can't.


Perhaps do you know a good site or document on this
,or
giving me teh good syntax.

best regards.

My configuration : windows 98
PHP4.0.6.
Apache 1.3.22
Mysql


script :
    $word = new COM("word.application") or die
           ("Impossibilité d'instancier Word");

     # Rendre visible la fenêtre Word
     $word->Visible = 1;

     # Ouvrir un nouveau document
     $word->Documents->Add();

     $word->Selection->TypeText("Document en cours de
développement....");
     $word->Selection->TypeParagraph();
     $word->Selection->TypeParagraph();
     $ret=com_propset($word,Selection.Font.bold,True);
     $word->Selection->Font->bold("$ret");
     $word->Selection->TypeText("$coll[1] $coll[0]");
     $word->Selection->TypeParagraph();
     $word->Selection->TypeParagraph();

     $word->Selection->TypeText("né le : $naissance");
     $word->Selection->TypeParagraph();
     $word->Selection->TypeText("Fonction    :
$fonc[0]");
     $word->Selection->TypeParagraph();
     $word->Selection->TypeText("Nationalité :
$nat[0]");
     $word->Selection->TypeParagraph();
     $word->Selection->TypeText("CLIENTS");
     $word->Selection->TypeParagraph();
     $word->Selection->TypeText("$coll[12]");


     # Sauvegarder le document
     $word->Documents[1]->SaveAs("CV $coll[1]
$coll[0]");
     //Libération des ressources
     $word = null;
     unset($word);

=====
@+Stéphane

___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Courrier : http://courrier.yahoo.fr

--
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]

--- End Message ---
--- Begin Message ---
Hi,
    I understand that the variable $PHP_SELF doesn't always work. I'm using Windows 98 
SE with PHP 4.1.1. Is there any way to get $PHP_SELF to work?
-Greg
--- End Message ---
--- Begin Message ---
Gregory Hart said something on 05 Jan 2002, in php.windows:

> Hi,
>     I understand that the variable $PHP_SELF doesn't always work. I'm
>     using Windows 98 SE with PHP 4.1.1. Is there any way to get
>     $PHP_SELF to work? 
> -Greg
> 

>From the manual: 
http://download.php.net/manual/en/language.variables.predefined.php
$PHP_SELF
The filename of the currently executing script, relative to the document 
root. If PHP is running as a command-line processor, this variable is not 
available. 

$SCRIPT_NAME usually works for me on most servers.

Regards,
David
--- End Message ---
--- Begin Message ---
"David" <[EMAIL PROTECTED]> wrote:
> Gregory Hart said something on 05 Jan 2002, in php.windows:
> >     I understand that the variable $PHP_SELF doesn't always work.
I'm
> >     using Windows 98 SE with PHP 4.1.1. Is there any way to get

    I think I have seen $PHP_SELF not work on PWS...is that what you
have?  You might try $PATH_INFO or $SCRIPT_URL.

> $SCRIPT_NAME usually works for me on most servers.

    I think this returns the program or CGI name.  At least is does on
the versions of Apache that I've tried.


 - Steve Yates
 - SRT Enterprises
 - I have a dream:  DIR C: 965465065464984030373436 bytes free...

/ Taglines by Taglinator - www.srtware.com /




--- End Message ---
--- Begin Message ---
Are there any functions which return the elapsed
system uptime, in integer format, preferebly
milliseconds or microseconds?  Some people have
suggested using the first key from the microtime()
array, but that returns microseconds from Jan 1 '70,
not microseconds since system start.

__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/
--- End Message ---

Reply via email to