php-windows Digest 26 Feb 2005 19:31:10 -0000 Issue 2591
Topics (messages 25671 through 25682):
Re: not so php related
25671 by: Joakim Ling
Re: Missing MySQL DLLs in Windows PHP 5.0.3 - not in pecl either!
25672 by: Edin Kadribasic
Re: I am looking for a PHP editor who has RTL support...
25673 by: Leo G. Divinagracia III
Newsgroup down?
25674 by: Joseph L. Mueller
PHP5 and UNC paths not working
25675 by: George Pitcher
GD problem
25676 by: Joakim Ling
Re: Cookie Problems on Localhost
25677 by: tony yau
25681 by: Randy Clamons
25682 by: Joseph L. Mueller
Not able to add data to a MySQL database
25678 by: Vaibhav Sibal
25680 by: M. Sokolewicz
Re: Reading MS Access database
25679 by: Robert Twitty
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 for the tips.
I tried iis_add_server, but I don't get it to work.
iis_add_server("c:\\inetpub\\wwwroot\\", "php added", "127.0.0.1", "80",
"php.localhost", 1, 1);
I receive no errors (code -501 if I print the result), and no server in IIS.
Anyone done this before?
Im running on
PHP 5.0.3
IIS6
Win2003
-----Ursprungligt meddelande-----
Fr�n: Unknown W. Brackets [mailto:[EMAIL PROTECTED]
Skickat: den 24 februari 2005 08:04
Till: [email protected]
�mne: [PHP-WIN] Re: not so php related
Jocke,
Well, some things you can do with the "iisfunc" PECL extension. See:
http://www.php.net/ref.iisfunc
However, modifying the DNS isn't part of that. It sounds like you want
dnscmd.exe from the Windows Support Tools, found here:
http://www.microsoft.com/resources/documentation/WindowsServ/2003/standard/proddocs/en-us/tools_howto.asp
Type dnscmd /? in a prompt for more information; you can pipe this was
exec, popen, system, and similar functions in PHP.
-[Unknown]
-------- Original Message --------
> Hi,
>
>
>
> Is there a way to add hosts in IIS6 and alias in DNS hosts from php or
> cmd. It would help me alot when I register a new customer.
>
>
>
> I know its not php related but if someone know please share.
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
All the "missing" dlls are in the .zip package. The installer doesn't have
any extensions bundled. The comment under the download link says: " no
external extensions included ".
Edin
----- Original Message -----
From: "Jimbus" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, February 22, 2005 10:16 PM
Subject: [PHP-WIN] Re: Missing MySQL DLLs in Windows PHP 5.0.3 - not in pecl
either!
> I think something must have changed, and I think it was intentional. In
> the php.ini under extensions, where they're all commented out and match
> all the dlls in the pecl pack, there is no php_mysql.dll commented out.
> This and the fact that the dll is missing from the pecl pack makes me
> think something has changed according to some plan. In otherwords, it
> wasn't an oversight that the dll is missing.
>
> It'd sure be nice to know what dll to use for mysql funx tho... I simply
> downgraded to php4 until this all gets worked out.
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
--- End Message ---
--- Begin Message ---
dont know if it has RTL but code highlighting is there:
www.maguma.com
they have a free IDE. just have to dig around for it. plus it beats
notepad... ;)
Amir BD wrote:
Does anyone know about a PHP editor(for windows, of course) that has
an RTL support?
It is very important because my Website is in Hebrew.
I know I can use notepad, but it's pretty lame for PHP. Highlighting
is very important for me.
Can anyone help me find such editor?
--
Leo G. Divinagracia III
[EMAIL PROTECTED]
zzzzz
--- End Message ---
--- Begin Message ---
My last few posts dont seem to have made it. Is the newsgroup down?
--
Joseph L. Mueller
--- End Message ---
--- Begin Message ---
Hi,
Firstly, I've trawled through Google, phpbuilder archives etc and have found
lots of similar requests to this, but no solution.
I need to grab some files from another machine on a local network but PHP5
won't work with the UNC path.
Does anyone know a solution or a workaround?
Cheers
George in Oxford
--- End Message ---
--- Begin Message ---
Hi
The standard font in GD doesn't support � (å) , it supports � and �. I
tried looking over the web for a gdf font, but no "standard" font with ���.
Anyone got a suggestion?
$title = "������";
imagestring ($this->img, 6, (($this->toolWidth/2)-((strlen($title)/2)*9)), 60,
htmlentities($title, ENT_NOQUOTES, 'UTF-8'), $this->textColor);
http://webdev.webeasy.nu/pages/tools/toolimg.php?tool=PHP&modul=������&width=150&height=200
thanks....
--- End Message ---
--- Begin Message ---
is your browser blocking the cookie?
"Joseph L. Mueller" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Luis Moreira wrote:
>
> > You can always try to set a cookie, but wether the browser allows it
> > or not, it's a whole different ball game.
> > I believe your problem lies here.
> >
> > Anyway, the two scripts I attach, I have just tried, and the cookie
> > was set by the first, WITH A MESSAGE FROM THE BROWSER ASKING IF I
> > ALLOWED IT.
> > The second script read the cookie, no problem.
> >
> >
> > Hope this helps.
> >
> > Luis
> >
> > Mikey wrote:
> >
> >>> That still leaves the problem of how to test cookies and sessions on
> >>> a local system.
> >>>
> >>
> >>
> >> Don't know if this will work, but have you tried setting an entry in
> >> your
> >> hosts file (C:\WINDOWS or C:\WINNT\system32\drivers\etc) for your
> >> machine
> >> name that points to 127.0.0.1?
> >>
> >> Eg:
> >> 127.0.0.1 mymachine
> >>
> >> HTH,
> >>
> >> Mikey
> >>
> >>
> >>
> Luis,
> Thanks for sending the script to my e-mail account. I tried them but no
> cookie was set. All I got rom the r_print was "Array {}".
>
> --
> Joseph L. Mueller
--- End Message ---
--- Begin Message ---
I tried your example script for setting a cookie. You are absolutely right, you
can not set a cookie to localhost that way. That said, it can be done!! Just
leave the domain parameter out of the setcookie call. Try this sample:
Begin sample:
<?php
setcookie("vegatable","artichoke") ;
?>
<html>
<body>
<SCRIPT language=javascript>
if (document.cookie) {
document.write(cookie+'<br>\n')
}
else {
document.write("No cookie found.<br>\n");
}
</SCRIPT>
<?php
print_r($_COOKIE);
?>
</body>
</html>
End sample
You can still set the expire, path. If you need the cookie to be secure,
specify an empty string for the domain. This works. If you set the domain to
either 'localhost' or '127.0.0.1', the cookie will not be set. The advantage of
setting the domain value is that the browser will return the same cookie value
to multiple hosts within the same domain.
Let's say you have three servers within the same domain to split up the
workload, with these names www1.mydomain.com, www2.mydomain.com,
www3.mydomain.com. Your application needs to monitor your session (or cookie)
data no matter which server they end up on. In this case, you could set the
domain to '.mydomain.com'. This will cause the browser to return the cookie for
any of the three above hosts. The domain needs to be a legitimate domain name
including a top level domain (.com, .net, etc.). So, localhost doesn't work!
If you are exploring how cookies work, or developing an application that will
run on a single web server, leaving the domain blank will take care of you.
Your browser will figure out where to send it.
If you are developing an application that will run on multiple servers, you
have a more complicate problem. In that case I would recommend connecting using
a private IP address (example: 192.168.0.0-255). It would also be helpful to
run a DNS name server for the LAN.
Randy Clamons
Systems Programming
Novaspace.com
> ------------Original Message------------
> From: "tony yau" <[EMAIL PROTECTED]>
> To: [email protected]
> Date: Fri, Feb-25-2005 12:41 PM
> Subject: Re: [PHP-WIN] Re: Cookie Problems on Localhost
>
> is your browser blocking the cookie?
>
> "Joseph L. Mueller" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > Luis Moreira wrote:
> >
> > > You can always try to set a cookie, but wether the browser allows
> it
> > > or not, it's a whole different ball game.
> > > I believe your problem lies here.
> > >
> > > Anyway, the two scripts I attach, I have just tried, and the cookie
> > > was set by the first, WITH A MESSAGE FROM THE BROWSER ASKING IF I
> > > ALLOWED IT.
> > > The second script read the cookie, no problem.
> > >
> > >
> > > Hope this helps.
> > >
> > > Luis
> > >
> > > Mikey wrote:
> > >
> > >>> That still leaves the problem of how to test cookies and sessions
> on
> > >>> a local system.
> > >>>
> > >>
> > >>
> > >> Don't know if this will work, but have you tried setting an entry
> in
> > >> your
> > >> hosts file (C:\WINDOWS or C:\WINNT\system32\drivers\etc) for your
> > >> machine
> > >> name that points to 127.0.0.1?
> > >>
> > >> Eg:
> > >> 127.0.0.1 mymachine
> > >>
> > >> HTH,
> > >>
> > >> Mikey
> > >>
> > >>
> > >>
> > Luis,
> > Thanks for sending the script to my e-mail account. I tried them but
> no
> > cookie was set. All I got rom the r_print was "Array {}".
> >
> > --
> > Joseph L. Mueller
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
Randy Clamons wrote:
I tried your example script for setting a cookie. You are absolutely right, you
can not set a cookie to localhost that way. That said, it can be done!! Just
leave the domain parameter out of the setcookie call. Try this sample:
Begin sample:
<?php
setcookie("vegatable","artichoke") ;
?>
<html>
<body>
<SCRIPT language=javascript>
if (document.cookie) {
document.write(cookie+'<br>\n')
}
else {
document.write("No cookie found.<br>\n");
}
</SCRIPT>
<?php
print_r($_COOKIE);
?>
</body>
</html>
End sample
You can still set the expire, path. If you need the cookie to be secure,
specify an empty string for the domain. This works. If you set the domain to
either 'localhost' or '127.0.0.1', the cookie will not be set. The advantage of
setting the domain value is that the browser will return the same cookie value
to multiple hosts within the same domain.
Let's say you have three servers within the same domain to split up the
workload, with these names www1.mydomain.com, www2.mydomain.com,
www3.mydomain.com. Your application needs to monitor your session (or cookie)
data no matter which server they end up on. In this case, you could set the
domain to '.mydomain.com'. This will cause the browser to return the cookie for
any of the three above hosts. The domain needs to be a legitimate domain name
including a top level domain (.com, .net, etc.). So, localhost doesn't work!
If you are exploring how cookies work, or developing an application that will
run on a single web server, leaving the domain blank will take care of you.
Your browser will figure out where to send it.
If you are developing an application that will run on multiple servers, you
have a more complicate problem. In that case I would recommend connecting using
a private IP address (example: 192.168.0.0-255). It would also be helpful to
run a DNS name server for the LAN.
Randy Clamons
Systems Programming
Novaspace.com
------------Original Message------------
From: "tony yau" <[EMAIL PROTECTED]>
To: [email protected]
Date: Fri, Feb-25-2005 12:41 PM
Subject: Re: [PHP-WIN] Re: Cookie Problems on Localhost
is your browser blocking the cookie?
"Joseph L. Mueller" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Luis Moreira wrote:
You can always try to set a cookie, but wether the browser allows
it
or not, it's a whole different ball game.
I believe your problem lies here.
Anyway, the two scripts I attach, I have just tried, and the cookie
was set by the first, WITH A MESSAGE FROM THE BROWSER ASKING IF I
ALLOWED IT.
The second script read the cookie, no problem.
Hope this helps.
Luis
Mikey wrote:
That still leaves the problem of how to test cookies and sessions
on
a local system.
Don't know if this will work, but have you tried setting an entry
in
your
hosts file (C:\WINDOWS or C:\WINNT\system32\drivers\etc) for your
machine
name that points to 127.0.0.1?
Eg:
127.0.0.1 mymachine
HTH,
Mikey
Luis,
Thanks for sending the script to my e-mail account. I tried them but
no
cookie was set. All I got rom the r_print was "Array {}".
--
Joseph L. Mueller
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I played around with Mikey's suggestion and also did some "googling"
hit upon using
"my.local.com", which works.
The hosts entry is:
127.0.0.1 my.local.com localhost
Apparently you need a third level entry.
Thanks to all who responded.
--
Joseph L. Mueller
--- End Message ---
--- Begin Message ---
Hi,
I am not able to insert data into my mysql database using php even if
i use a simple code as follows :
<?php
$link=mysql_connect("localhost","username","password");
mysql_select_db("test_db");
$query="INSERT INTO 'login' ('uname','access') VALUES ('try','super')";
mysql_query($query,$link);
?>
even after running this code on the server, there was no change in the
mysql database as seen by the phpmyadmin. Ive tried it with another
file and another table, but its not just happening. Though earlier
attempts with Mysql had worked, but those only involved reading data
from the database and I havent been able to write to it even once
since I have started working. Please help me out with this, in case
there is some information that I should have provided here and its not
there please ask for it, I will be more than happy to provide it.
Thanks
Vaibhav
--- End Message ---
--- Begin Message ---
You've got errors in your SQL.
For once, table-names should not be quoted (with single or double
quotes), same goes for column names ('uname' and 'access' in your example).
Easiest way to find out without asking is to add a call to
mysql_error(), so called "error handling"...! That would've told you
about the syntax errors. Fix those, and it should work just fine
- tul
Vaibhav Sibal wrote:
Hi,
I am not able to insert data into my mysql database using php even if
i use a simple code as follows :
<?php
$link=mysql_connect("localhost","username","password");
mysql_select_db("test_db");
$query="INSERT INTO 'login' ('uname','access') VALUES ('try','super')";
mysql_query($query,$link);
?>
even after running this code on the server, there was no change in the
mysql database as seen by the phpmyadmin. Ive tried it with another
file and another table, but its not just happening. Though earlier
attempts with Mysql had worked, but those only involved reading data
from the database and I havent been able to write to it even once
since I have started working. Please help me out with this, in case
there is some information that I should have provided here and its not
there please ask for it, I will be more than happy to provide it.
Thanks
Vaibhav
--- End Message ---
--- Begin Message ---
You can also use COM or ODBTP (http://odbtp.sourceforge.net). Is there any
particular reason why you don't want to use odbc?
-- bob
On Thu, 24 Feb 2005, Florin C. wrote:
> Hy,
>
> i want to read a ms access databese with php, but without odbc, is
> there a solution or i must use odbc.
>
> thanks in advanced.
> --
> Florin C.
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
--- End Message ---