php-windows Digest 2 Jun 2003 19:06:54 -0000 Issue 1758

Topics (messages 20152 through 20162):

Re: OT - Dreamweaver MX help needed
        20152 by: George Pitcher

Re: Installation problems...
        20153 by: Cristian MARIN
        20155 by: Per Lundberg

Re: php.ini directory
        20154 by: Sven Schnitzke

Error from PHP with COM: Creating simple Words doc
        20156 by: Wee Keat [VisualDensity]

IIS and include: including content from external server
        20157 by: Rod Martin
        20162 by: Christoph Grottolo

ms exchange public folders
        20158 by: sven

Re: Read all the webmonkey tutorials, still need guidance
        20159 by: sven

Get value of tag
        20160 by: Jeremy Whitlock
        20161 by: sven

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 ---
Thanks guys,

Its working fine now.

Fastest response I've ever seen on any list!!!!

No need for any further copies!

Cheers

George

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Behalf Of George Pitcher
> Sent: 02 June 2003 7:26 am
> To: [EMAIL PROTECTED]
> Subject: OT - Dreamweaver MX help needed
>
>
> Hi all,
>
> Sorry to waste bandwidth with this request.
>
> In a moment of madness late last night, I modified my
> 'MMDocumenttypes.xml'
> file without taking a backup first.
>
> Since then, I get a 'fatal error' message whenever I start DW.
>
> I would just re-install from scratch but my CD set is back in
> Edinburgh and
> I won't be there until Friday night.
>
> Can anyone be a real star and send me a copy? I can be found in the
> dreamweaver\Configuration\Documenttypes folder.
>
> MTIA
>
> George in Oxford
>
>
>
> #############################################################
> List Archives: <http://www.ListSearch.com/LassoTalk.lasso>
> Support Knowledgebase: <http://support.blueworld.com/>
> Support Inquiries: <mailto:[EMAIL PROTECTED]>
> Feature Requests: <mailto:[EMAIL PROTECTED]>
> Bug Reports: <mailto:[EMAIL PROTECTED]>
> General Inquiries: <mailto:[EMAIL PROTECTED]>
> This message is sent to you because you are subscribed to
>   the mailing list <[EMAIL PROTECTED]>.
> To unsubscribe, E-mail to: <[EMAIL PROTECTED]>
> To switch to the DIGEST mode, E-mail to <[EMAIL PROTECTED]>
> To switch to the INDEX mode, E-mail to <[EMAIL PROTECTED]>
> Send administrative queries to  <[EMAIL PROTECTED]>
>
>


--- End Message ---
--- Begin Message ---
You don't have the permission to access the mysql database as the user '[EMAIL 
PROTECTED]' because even if this user exist it have to be added in the list of known 
users of mysql. You can do that by using in a Linux the mysql_setpermission:

mysql_setpermission -u {your_super_user}

and then use option 4 from list.

When the username is asked use : '[EMAIL PROTECTED]' and password and also run the 
script again and use the user '[EMAIL PROTECTED]' and you shouldn't have no more 
problems 



-- 
-------------------------------------------------
Cristian MARIN
InterAKT Online (www.interakt.ro)
+4021 411 2610 
[EMAIL PROTECTED]

  "Bobo Wieland" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
  Okey, I still need help!

  The error message still states as follows:
   Warning: mysql_connect() [function.mysql-connect]: Access denied for user:
  '[EMAIL PROTECTED]' (Using password: YES) in
  E:\pingstkyrkan\data\common_db.inc on line 12
   0: Connection faild to the host localhost.

  I have no idea what to do, but I expect that it all has to do with my
  inexperience of installing and configuring these things. Iäve only installed
  PHP/MySQL/Apache one time before and it was a pain! =)

  I started with installing Apache2 (used Apache 1.somthing before...). Then I
  installed php4.3 and managed them to work together. the only problem that I
  see is that, before I could only access the webserver localy (127.0.0.1)
  wich is what I want, but now I can use my external IP and connect to my
  webserver. I only want it to be a local webserver...
  Anyway, I installed MySQL 4.0.13 and it seems to work okey by itself. But
  trying to connect to it via PHP is hopeless. As i understand it the user
  information is correct, but it still doesn't work. A quick look at php.ini
  though says, under MySQL; "Client API version: 3.23.49". Shouldn't it read
  4.0.13?!?

  I have no idea if I should do any changes to php.ini, httpd.conf or my.ini.

  Please help me!


  Thank you all!



  .bobo

  ----- Original Message ----- 
  From: "Bobo Wieland" <[EMAIL PROTECTED]>
  To: "Ryan Marrs" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
  Sent: Thursday, May 29, 2003 12:57 PM
  Subject: Re: [PHP-WIN] Installation problems...


  > I'm running PHP as ISAPI (i think... ;-) ) and I use Apache2 - which I've
  > restarted a number of times...
  >
  > *sigh*
  >
  >
  > thanks!
  >
  >
  > .bobo
  >
  >
  > ----- Original Message ----- 
  > From: "Ryan Marrs" <[EMAIL PROTECTED]>
  > To: "'Bobo Wieland'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
  > Sent: Thursday, May 29, 2003 12:54 PM
  > Subject: RE: [PHP-WIN] Installation problems...
  >
  >
  > > Are you running PHP as ISAPI or CGI?
  > >
  > > If it's ISAPI, you'll need to restart IIS before your changes to the
  > php.ini
  > > file will take effect.
  > >
  > >
  > >
  > > -----Original Message-----
  > > From: Bobo Wieland [mailto:[EMAIL PROTECTED]
  > > Sent: Thursday, May 29, 2003 6:51 AM
  > > To: [EMAIL PROTECTED]
  > > Subject: [PHP-WIN] Installation problems...
  > >
  > >
  > > Trying to reinstall PHP/MySQL/Apache on my WinXP setup...
  > >
  > > Ran in to some trouble though, that I hope you can help me with...
  First,
  > > I'm getting the following warning message:
  > >
  > > "Warning: session_start() [function.session-start]:
  > > open(/tmp\sess_a0b08aae778010e958503bfde26c0ab5, O_RDWR) failed: No such
  > > file or directory (2) in E:\plantis\sida_1.php on line 1"
  > >
  > > I have PHP installed in D:\PHP and in php.ini I've the session save path
  > set
  > > to: "D:/PHP/tmp". The directory "tmp" is in my PHP directory.
  > >
  > >
  > >
  > > Second problem. I can't connect to mysql. The message says the
  following;
  > >
  > > Warning: mysql_connect() [function.mysql-connect]: Access denied for
  user:
  > > '[EMAIL PROTECTED]' (Using password: YES) in
  > > E:\pingstkyrkan\data\common_db.inc on line 12
  > > 0: Connection faild to the host localhost.
  > >
  > > I don't even know if I've installed MySQL correctly... WinMySQLAdmin
  says
  > > MyODBC; Not Found, Driver 3.51 Not Found....
  > >
  > > Why should it be so hard to install and configure these things?!? Is it
  > > because it's free software?
  > >
  > >
  > >
  > > Please help me!
  > >
  > >
  > >
  > > thanks!
  > >
  > >
  > >
  > >
  > > .bobo
  > >
  > >
  >
  >
  > -- 
  > PHP Windows Mailing List (http://www.php.net/)
  > To unsubscribe, visit: http://www.php.net/unsub.php
  >
  >



--- End Message ---
--- Begin Message ---
On Sat, 2003-05-31 at 11:15, Bobo Wieland wrote:
> Okey, I still need help!
> 
> The error message still states as follows:
>  Warning: mysql_connect() [function.mysql-connect]: Access denied for user:
> '[EMAIL PROTECTED]' (Using password: YES) in
> E:\pingstkyrkan\data\common_db.inc on line 12
>  0: Connection faild to the host localhost.
> 
> I have no idea what to do, but I expect that it all has to do with my
> inexperience of installing and configuring these things.

Yes, I would also say that this is true.

How would you answer these questions?

1) Have you created a MySQL user with the user name pingstkyrkan_ne,
which is allowed to connect from 127.0.0.1?
2) Does it work to connect with another username/password (such as the
root user)?

My suggestion: install phpMyAdmin.  It will make your life a whole lot
easier.  Take a look at http://www.phpmyadmin.net.  It will let you
access your MySQL databases from a web browser, and also do user
management etc.

(Regarding your other question, about only listening on the local
interface: I don't know much about Apache 2, but look in the
configuration for the BindAddress directive)

--
Best regards,

Per Lundberg / Capio ApS
Phone: +46-18-4186040
Fax: +46-18-4186049
Web: http://www.nobolt.com

Attachment: signature.asc
Description: This is a digitally signed message part


--- End Message ---
--- Begin Message ---
yes it is. Search order for PHP.INI is
a) current dir
b) WINDIR
c) C:\PHP4
Where current dir is the folder PHP*.EXE is residing when
executing in CLI and CGI modes and the folder containing 
the webserver when in ISAPI mode.
-- 
Sven

> -----Ursprüngliche Nachricht-----
> Von:  =?ISO-8859-2?Q?Katona_G=E1bor?= [SMTP:[EMAIL PROTECTED]
> Gesendet am:  Sonntag, 1. Juni 2003 16:19
> An:   [EMAIL PROTECTED]
> Betreff:      [PHP-WIN] php.ini directory
> 
>  << Datei: ATT00001.g95; charset = ISO-8859-2 >>

--- End Message ---
--- Begin Message ---
Hi all...

I was trying out PHP and COM on my WinXP machine with IIS 5 and I used the following 
code, which was an example from the PHP manual:

/*
######################### the code #####################
*/

<?php
// starting word
$word = new COM("word.application") or die("Unable to instanciate Word");
print "Loaded Word, version {$word->Version}\n";

//bring it to front
$word->Visible = 0;

//open an empty document
$word->Documents->Add();

//do some weird stuff
$word->Selection->TypeText("This is a test...");
$word->Documents[1]->SaveAs("UselessTest.doc");

//closing word
$word->Quit();


//free the object
$word->Release();
$word = null;
?>

/*
######################### end of code #####################
*/

It didn't work at all... so I do not know how else I could experiment. This is the 
error:

 
/*
######################### the error #####################
*/

Loaded Word, version 10.0

Warning:  Invoke() failed: Exception occurred.
 Source: Microsoft Word Description: Could not open macro storage. in 
C:\Inetpub\wwwroot\Practice\COM.php on line 18

Warning:  Invoke() failed: Exception occurred.
 Source: Microsoft Word Description: The requested member of the collection does not 
exist. in C:\Inetpub\wwwroot\Practice\COM.php on line 22


/*
######################### end of error #####################
*/

I have tried Googling it... and it seems that someone else have the same problem.... 
but unfortunately, there's no answer to those questions asked. Can anyone give me some 
pointers?

Any help deeply appreciated. Thanks.


Yours,

Wee Keat Chin
------------------------------------------
"Two things are infinite: the universe and human stupidity; and I'm not sure about the 
the universe." - Albert Einstein 

--- End Message ---
--- Begin Message --- Setup:

Windows NT 4.0
PHP 4.2.1
IIS 4.0

I'm trying to share content between an intranet and internet server. I am trying to INCLUDE a content html file from another server into my template html but I cannot INCLUDE anything from an external URL. Includes work fine internally.

I get this error:

Warning: Failed opening 'http://www.state.il.us/cms/surpauction0607.htm' for inclusion (include_path='.;c:\php4\pear') in D:\Netscape\SuiteSpot\docs\cms\dev\1_employ\Default.htm on line 54

Any help? Thanks!


--- End Message ---
--- Begin Message ---
[EMAIL PROTECTED] (Rod Martin) wrote:

>Setup:

>PHP 4.2.1

>
>I'm trying to share content between an intranet and internet server. I 
>am trying to INCLUDE a content html file from another server into my 
>template html but I cannot INCLUDE anything from an external URL. 

Upgrade PHP to 4.3.2. Remote includes had not been working on windows
until 4.3.0 I think and then they were buggy. And then you must set
allow_url_fopen = 1 in php.ini.

Christoph

--- End Message ---
--- Begin Message ---
hi,

is there a solution to access public folders of an ms exchange 2000 server?

i got a folder with lots of contacts and want to access them via php. by now
i am able to reach my exchange information store and see my storage group
via ldap. but there are no public folders in the folder hierarchies and no
contacts.

is it possible to get the contacts via ldap (which objectclasses?)? or are
there other solutions (mapi?)?

thx sven.



--- End Message ---
--- Begin Message ---
does a var $_GET['rider_name'] exist?
maybe registe_globals is turned off in php.ini?
ciao.

"Stephen Rivas Jr" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
> I have read and re read all of the webmonkey Installation of Apache/PHP4
and
> finally got the phpinfo() function working. I'm sad to say, I can't
believe
> it took me that long.
>
> now I'm looking at forms and swapping variables - read stuff on that. it
is
> NOT working. I've made code, copied code, read, reread...etc. My forms
swap
> the info properly - if I use method=get then the correct info is passed
and
> visible in the address.
>
> But, when I echo the variables (like $rider_name) they don't show up. And
I
> know that my INPUTs are named properly - is there something I'm missing?
>
> Thanks.
>
> Stephen Rivas Jr
> [EMAIL PROTECTED]
> http://www.throttlehead.com
>
>



--- End Message ---
--- Begin Message ---
PHP-List,
                I'm working on a module and I need to be able to get the
value of:
[code=vb]
 
where the results would be "vb".  Can someone help?  Thanks,
 
Jeremy Whitlock --- MCP/MCSA
IT Manager for Star Precision, Inc.
Phone:  (970) 535-4795
Metro:  (303) 926-0559
Fax:  (970) 535-0780
Metro Fax:  (303) 926-0559
http://www.starprecision.com 
 

--- End Message ---
--- Begin Message ---
maybe a regular expression does it for you?

$str ="[code=vb]";
preg_match("/\[code=([a-z]+)\]/", $str, $reg);
echo $reg[1];

i assumed that your value is only lower alpha and at least one char, can
simlpy be modified.

ciao SVEN.

"Jeremy Whitlock" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
> PHP-List,
>                 I'm working on a module and I need to be able to get the
> value of:
> [code=vb]
>
> where the results would be "vb".  Can someone help?  Thanks,
>
> Jeremy Whitlock --- MCP/MCSA
> IT Manager for Star Precision, Inc.
> Phone:  (970) 535-4795
> Metro:  (303) 926-0559
> Fax:  (970) 535-0780
> Metro Fax:  (303) 926-0559
> http://www.starprecision.com
>
>



--- End Message ---

Reply via email to