php-windows Digest 5 May 2005 17:40:02 -0000 Issue 2659
Topics (messages 25971 through 25975):
Re: a problem with the mail() function
25971 by: Leo G. Divinagracia III
Re: register_globals issue
25972 by: michael
Real path through aliases
25973 by: Liam
PHP 5, mySQL and Win XP. I NEED HELP
25974 by: Oscar Andersson
Re: [PHP] PHP 5, mySQL and Win XP. I NEED HELP
25975 by: bala chandar
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 ---
unfortunately, the problem lies within your machine not PHP or it's
mail() function.
try using an email client (like thunderbird, outlook, etc) on that
machine and see if you can send out mail.
otherwise, get another smtp server.
i had pegasus mail's mercury server a few years ago.
i thought i had locked down the settings but my work network people said
it was being used for spam relay.... that ended that experiment.
i am now thinking of using a class to send out email via external SMTP
server...
--
Leo G. Divinagracia III
[EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
It may just be that you need to restart Apache for your changes to take
effect. You could alternatively use the ini_set() function in an include
file or something to turn it on.
Jason Barnett writes:
Bill Kirk wrote:
I am running php 4.3.10 on a Windows 2003 server with Apache 2.
My problem is that I have set register_globals = on in the php.ini file
(which is in the windows directory (everyone has read rights to it), but
when I do a php info on it, it shows that register_globals is off, and
the
application we are trying to bring up needs it on.
1st issue: the php.ini that you changed is likely not the php.ini that is
being loaded. Check the output of your phpinfo() to see where PHP loaded
this file.
- system32 directory
- apache directory
- php directory
(can't remember the order...)
2nd issue: do you really *want* an application that requires
register_globals = on?
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Hi,
I'm running PHP 4.3 and Apache 2, trying to figure something out.
Is there a way from PHP to determine the real (harddrive, not URL) path
being accessed by a URL? For example, if I want to know where on my
harddrive http://localhost/web/ is, it's going to be DOCUMENT_ROOT/web, and
I can make that work using REQUEST_URI for anything under my document root
However, some of my folders are apache folder aliased to other parts of my
harddrive. Example, http://localhost/music is actually f:/my
documents/music/
Is there any way to let PHP figure this out automatically, without having to
hardcode my script to look there every time?
I really appreciate any answers you might have
Thanks,
Liam
--- End Message ---
--- Begin Message ---
I have made a instal of the latest mySQL and PHP 5 on my computer.
I have made the following changes to my php.ini file
extension=php_mysql.dll
extension_dir = "c:\php\"
and i have put the php_mysql. and libmysql.dll in c:\php\ and in c:\windows
to
Now i try this in my php-file
$con = mysql_connect("localhost:3306", "buddy", "bestbuddy");
I cant connect to mySQL. I dont know what is wrong. mySQL listen to port
3306. I have tried with my IP to. I get this warning
Warning: mysql_connect() [function.mysql-connect]: Too many open links (0)
in myfilename.php.
I hope for help
Oscar Andersson
--- End Message ---
--- Begin Message ---
hey
On 5/5/05, Oscar Andersson <[EMAIL PROTECTED]> wrote:
> I have made a instal of the latest mySQL and PHP 5 on my computer.
> I have made the following changes to my php.ini file
>
> extension=php_mysql.dll
> extension_dir = "c:\php\"
>
> and i have put the php_mysql. and libmysql.dll in c:\php\ and in c:\windows
> to
>
> Now i try this in my php-file
> $con = mysql_connect("localhost:3306", "buddy", "bestbuddy");
stop the mysql server and restart and again run your php script. there
might be some disk space constraint all be there
>
> I cant connect to mySQL. I dont know what is wrong. mySQL listen to port
> 3306. I have tried with my IP to. I get this warning
> Warning: mysql_connect() [function.mysql-connect]: Too many open links (0)
> in myfilename.php.
>
> I hope for help
> Oscar Andersson
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
bala> balachandar muruganantham
blog> lynx http://chandar.blogspot.com
web> http://www.chennaishopping.com
--- End Message ---