php-windows Digest 26 Jun 2001 09:49:23 -0000 Issue 628

Topics (messages 8021 through 8038):

Re: Testing php in Win2000?
        8021 by: David Elliott
        8029 by: Bryan
        8038 by: Phil Driscoll

iconv
        8022 by: Marecandja

phpinfo() crashes apache
        8023 by: Mark Maggelet

Re: php scripts only work when connected to the internet.
        8024 by: Mark Maggelet
        8030 by: Hugh Bothwell
        8031 by: Bryan
        8033 by: Michel Laine

Re: mail() on Windows 2000
        8025 by: Michael Kelley
        8026 by: Ruslan Ohitin

Any information on php_dotnet.dll extension?
        8027 by: Scott Cadillac

Re: Need help with variables
        8028 by: Ruslan Ohitin
        8035 by: Michel Laine

gd/apache1.3/WinNT
        8032 by: Edmund

Unable to see my .php script in IE5
        8034 by: Michael
        8036 by: Michael

PHP and remote MySQL database
        8037 by: Javier Velasco

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 PGP SIGNED MESSAGE-----
Hash: SHA1

Hail Bryan

On 25 June 2001 at 21:57:12 +1000 (which was 12:57 where I live) Bryan
wrote and made these points

> I have a similar problem, but can only view the output in my browser from
> the php files when I am connected to the Internet. When I am not
> connected, I get the standard error page in the broswer.

Are you on a LAN ?

If not W2K has the nasty habit of switching of all TCP/IP bits when it does
not need them.

- --
 Cheers,                   _______________________________________________
  David                   |MUA- The 1, The Only, The Bat! | E-mailaholics |
 _________________________|  Win 2K Adv Ser 5.0.2195 SP2  | International |
| Tribble use #06 - indoor baseball.                                      |

-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5.8ckt (Build 06)
Comment: PGP Signed, sealed, delivered.

iQA/AwUBOzc/h/mK8eZlD0U0EQIo2QCcC1fyUP49xkYCfeJtBRSF+sKUN90AoOdS
mA+uSD8Aw6SKQWBhbaMWONB9
=6qw/
-----END PGP SIGNATURE-----





Thanks for the response.
Its on my laptop, and yeah, it works when I am connected to the network at
work, or connected to the internet from home. It doesn't work at all when
the laptop is standalone.

Is there a workaround for this??

Thanks,
Bryan.

"David Elliott" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hail Bryan
>
> On 25 June 2001 at 21:57:12 +1000 (which was 12:57 where I live) Bryan
> wrote and made these points
>
> > I have a similar problem, but can only view the output in my browser
from
> > the php files when I am connected to the Internet. When I am not
> > connected, I get the standard error page in the broswer.
>
> Are you on a LAN ?
>
> If not W2K has the nasty habit of switching of all TCP/IP bits when it
does
> not need them.
>
> - --
>  Cheers,                   _______________________________________________
>   David                   |MUA- The 1, The Only, The Bat! | E-mailaholics
|
>  _________________________|  Win 2K Adv Ser 5.0.2195 SP2  | International
|
> | Tribble use #06 - indoor baseball.
|
>
> -----BEGIN PGP SIGNATURE-----
> Version: PGP 6.5.8ckt (Build 06)
> Comment: PGP Signed, sealed, delivered.
>
> iQA/AwUBOzc/h/mK8eZlD0U0EQIo2QCcC1fyUP49xkYCfeJtBRSF+sKUN90AoOdS
> mA+uSD8Aw6SKQWBhbaMWONB9
> =6qw/
> -----END PGP SIGNATURE-----
>
>
> --
> 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]
>






This may not be your problem, but since it's bitten me on NT before, I 
thought I'd mention it.

I never have any problems accessing the local web server via localhost or by 
the machine's IP address, however if I try to access a local site via a name 
set up in the winnt\system32\drivers\etc\hosts file, then the browseri 
insists on going into it's dialup routing (even though I can ping the host 
from the command line).

I haven't found a way around this problem. It is normally not a great issue, 
but some software such as phorum issues redirect headers to redirect the 
browser to phorum's configured host. This makes it tricky to test a full 
production setup on my local machine.

Where I need to use php to access multiple sites on the local machine, I tend 
to run each site on a different port on localhost (although you could 
probably also run each site on a different IP address.

Apologies if this is not the cause of your problem.

Cheers
-- 
Phil Driscoll




Hello,

I've been suggested that I use iconv() instead of trying to compile recode on
Windows platform.

I'm using PHP v4.0.6 and I receive this error

Fatal error: Call to undefined function: iconv() in D:\Program Files\Apache
Group\Apache\htdocs/test.php on line 2

test.php file:
<?php
        echo iconv("IBM850", "IBM437", ",");
?>

Any help?

Thanks,
Marecandja

____________________________________________________________________
Get free email and a permanent address at http://www.amexmail.com/?A=1




Hi,
I'm using php4-07 as a module, apache 1.3.20 and phpinfo() always
crashes apache, as well as scripts that use gd. any suggestions?

thanks,
- Mark





On Mon, 25 Jun 2001 22:27:06 +1000, Bryan ([EMAIL PROTECTED])
wrote:
>Hi,
>
>Win2k, IIS, 4.05
>
>I have a problem where I can only view the output in my browser from
>the php
>files when I am connected to the Internet.
>When I am not connected, I get the standard error page in the
>broswer.
>
>Hope someone can help??

I've seen that some of the network functions just hang forever, such
as get_host_by_name() when there's no internet connection. try
looking for one of those.

- Mark






""Bryan"" <[EMAIL PROTECTED]> wrote in message
9h7agu$biv$[EMAIL PROTECTED]">news:9h7agu$biv$[EMAIL PROTECTED]...
> Hi,
>
> Win2k, IIS, 4.05
>
> I have a problem where I can only view the output in my browser from the
php
> files when I am connected to the Internet.
> When I am not connected, I get the standard error page in the broswer.
>
> Hope someone can help??

If you read the file directly with your browser, it won't work.  Try looking
at http://localhost/whatever.php instead.  You have to pull it through the
server to get it to process the PHP before it gets to your browser.






Thanks Hugh,
I have been trying http://mylaptop/whatever.php where mylaptop is the
localhost but it won't process when the laptop is standalone and not
connected to the network or dialled in to the web. When I am connected, all
php scripts work fine.

Am I missing something in the configuration of IIS??

Bryan.

""Hugh Bothwell"" <[EMAIL PROTECTED]> wrote in message
9h91nj$aul$[EMAIL PROTECTED]">news:9h91nj$aul$[EMAIL PROTECTED]...
>
> ""Bryan"" <[EMAIL PROTECTED]> wrote in message
> 9h7agu$biv$[EMAIL PROTECTED]">news:9h7agu$biv$[EMAIL PROTECTED]...
> > Hi,
> >
> > Win2k, IIS, 4.05
> >
> > I have a problem where I can only view the output in my browser from the
> php
> > files when I am connected to the Internet.
> > When I am not connected, I get the standard error page in the broswer.
> >
> > Hope someone can help??
>
> If you read the file directly with your browser, it won't work.  Try
looking
> at http://localhost/whatever.php instead.  You have to pull it through the
> server to get it to process the PHP before it gets to your browser.
>
>
>
> --
> 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]
>






Bryan wrote:

> Hi,
>
> Win2k, IIS, 4.05
>
> I have a problem where I can only view the output in my browser from the php
> files when I am connected to the Internet.
> When I am not connected, I get the standard error page in the broswer.
>
> Hope someone can help??
>
> --
> 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]

I think it has something to do with DNS.
If you put in the name of the server in the address of your browser it need to
connect to the internet to resolve your server name into an IP address.
Don't flame me if this isn't the correct answer - I am a newbie ;-)

Try accessing your php pages by using the IP number of the server:
i.e. HTTP//:192.168.xxx.xxx

or use "local host" if you have the server on the same 'puter (hope this is
right):
HTTP//:127.0.0.1


--

Michel Laine







You can change your php.ini file to increase the timeout length ... Best 
to track down WHY it's taking so long .... In that respect i have NO idea.

The easy fix is the ini file change

[EMAIL PROTECTED] wrote:

> I am using the mail function and everything seems to be working correctly as far as 
>the mail being sent of; however, I always get the following error:Fatal error: 
>Maximum execution time of 30 seconds exceeded in ...
> 
> Can anyone offer any suggestions?
> 
> Matt


-- 

Michael Kelley                  
[EMAIL PROTECTED] 
        
Programmer/Systems Analyst I    
New Mexico State University
Information and Communication Technologies
Work # (505)-646-1374
P.O. Box 30001
MSC: 3AT
Las Cruces, NM 88003









Hello Matt,

Nac> I am using the mail function and everything seems to be working correctly as far 
as the mail
Nac> being sent of; however, I always get the following error:
Nac> Fatal error: Maximum execution time of 30 seconds exceeded in ...

Your script run more then 30 seconds. This is maximum execution time
by default. Try to add this line at the beginning of the script:
set_time_limit(60); // or 0 for no limit

Nac> Can anyone offer any suggestions?

Nac> Matt


-- 
Best regards,
 Ruslan Ohitin
 mailto:[EMAIL PROTECTED]






Hi Folks,

I was just wondering if anyone knows anything about the work being done the
php_dotnet.dll extension?

Where is it at, and what is planned for it?

I found the following link from Google:

http://www.seismo.unr.edu/ftp/pub/updates/bankert/php-4.0.4pl1/ext/dotnet/

Which lists Sam Ruby in the credits - anybody have an email address for him?

Thank you and Cheers...

--
Scott Cadillac
Manager of Web Application Development
Plus International Corp.
604-942-1020 ext. 226
[EMAIL PROTECTED]
http://www.plusinternational.com

Does your company have an Enterprise Information Portal? Check out Salsa at
www.plusinternational.com/flash/salsa.htm

Vancouver * Victoria * Kelowna * Windsor * Chicago * Wisconsin *
Seattle * Michigan * Santa Barbara







Hello Michel,

You mixing php variables and Template variables. They are from
different "namespaces". set_var() takes associative array with string
keys - Template var names. Edit one line of your code:

ML>     $var = ${"DAY".$j};
$var = "DAY" . $j; // $var is a string "DAYn"

-- 
Best regards,
 Ruslan Ohitin
 mailto:[EMAIL PROTECTED]



ML> I am trying to assign a bunch of strings to some Template variables
ML> where:

ML> I have an array $day[n] where n is 0-34 and contain strings.
ML> I have Template variables named "DAYn", where n is a number 1-35.

ML> The template parsing is up and running, so i have left that part out.


ML>   // Do it!
ML>   for ($i = 0; $i <= 34; $i++) {

ML>     // Need help with this part
ML>     $j = $i + 1;
ML>     $var = ${"DAY".$j};
ML>     $val = $day[$i];

ML>     // Set PHPLIB Template variable
ML>     $t->set_var( $var => $val );

ML>   }

ML> // Do the rest (like parse templates)

ML> I have tried so many different combinations that i don't remember them
ML> all - The one above being the most recent.
ML> Not that it worked any better than any of the other ones...
ML> I have read Variable variables in the online manual.
ML> If that was on the right track - it must mean that i am just too stupid
ML> to get it right.

ML> Please help!
ML> --

ML> Michel Laine






Ruslan Ohitin wrote:

> Hello Michel,
>
> You mixing php variables and Template variables. They are from
> different "namespaces". set_var() takes associative array with string
> keys - Template var names. Edit one line of your code:
>
> ML>     $var = ${"DAY".$j};
> $var = "DAY" . $j; // $var is a string "DAYn"
>
> --
> Best regards,
>  Ruslan Ohitin
>  mailto:[EMAIL PROTECTED]
>

I am afraid that this suggestion didn't help me.
or am i missing something?

With the example above i get the (string) value of variable $var to be "DAYn" -
And not the variable name, which is what i want.

In theory what i want to achieve is this:
$DAY1="Monday";
$DAY2="Next day";
$DAY4="Some other day";
....
....

I have 54 Template variables named "DAYn".
I want to (in a for loop - 'cause there are 54 of them!) transfer all string
values from my $day[n] array to the Template variables namned "DAYn".
The array $day[n] is then supposed to hold the required strings.
$day[1]="Monday";
$day[2]="Next day";
$day[3]="Some other day";
...
...


--

Michel Laine






Hi,  I have an NT server setup with Apache 1.3.x and just got
PHP installed again and working (with extension=php_gd.dll commented
out).    However, once I uncomment that line, I get an Internal
Server Error.  

"Premature end of script headers: e:/apache/cgi-bin/php.exe".

Now I have the php_gd.dll in the e:/apache/modules and have
set the correct extension directory in the php.ini file.
I even copied the php_gd.dll file and the gds32.dll to the
WINNT/system32 directory.  Still no go.  I had PHP4.03(or
something like that) installed a while back and the GD
libraries worked.  Now, they don't. 

Can someone point out what I might be missing?  

Edmund


-- 
email: [EMAIL PROTECTED] | "boku wa ima mo, hashiri tsuzukeru."




Please help

I am having some serious problems.  I have used a text editor to write the
following code and saved it with a .php extension

<? phpinfo(); ?>

I saved this in the htdocs directory.

I then went into my IE5 browser and typed http://localhost/phpinfo.php

What I saw was the above code in my browser <? phpinfo() ; ?>

I also viewed the source and saw the following <? phpinfo() ; ?>

My httpd.conf file has been changed in the following places


ServerAdmin [EMAIL PROTECTED]
ServerName localhost
ScriptAlias /php4/ "C:/php4/"
AddType application/x-httpd-php  .phtml  .php
AddType application/x-httpd-php-source  .phps
Action application/x-httpd-php /php4/php.exe

php4 is in my c drive and I know this to be the correct path

I have not listed all the httpd.conf file as nothing else was changed.

All the text files have been saved as .php  I renamed the php.ini-dst to
php.ini and moved this file to the C:\Windows directory where my .ini files
reside and I then put the php4ts.dll in my c:\windows\system\ directory.  I
did not move the msvcrt.dll file over as I already had a copy of it there.

Maybe by looking at what I have typed in you will find an error somewhere.


Regards

Krysia












Hi Again

I hope that you all realise that I am using Apache 1.3.12

Also I am able to see the Apache start up page when I type htttp://localhost

Regards

Krysia
""Michael"" <[EMAIL PROTECTED]> wrote in message
9h9g5f$t9f$[EMAIL PROTECTED]">news:9h9g5f$t9f$[EMAIL PROTECTED]...
> Please help
>
> I am having some serious problems.  I have used a text editor to write the
> following code and saved it with a .php extension
>
> <? phpinfo(); ?>
>
> I saved this in the htdocs directory.
>
> I then went into my IE5 browser and typed http://localhost/phpinfo.php
>
> What I saw was the above code in my browser <? phpinfo() ; ?>
>
> I also viewed the source and saw the following <? phpinfo() ; ?>
>
> My httpd.conf file has been changed in the following places
>
>
> ServerAdmin [EMAIL PROTECTED]
> ServerName localhost
> ScriptAlias /php4/ "C:/php4/"
> AddType application/x-httpd-php  .phtml  .php
> AddType application/x-httpd-php-source  .phps
> Action application/x-httpd-php /php4/php.exe
>
> php4 is in my c drive and I know this to be the correct path
>
> I have not listed all the httpd.conf file as nothing else was changed.
>
> All the text files have been saved as .php  I renamed the php.ini-dst to
> php.ini and moved this file to the C:\Windows directory where my .ini
files
> reside and I then put the php4ts.dll in my c:\windows\system\ directory.
I
> did not move the msvcrt.dll file over as I already had a copy of it there.
>
> Maybe by looking at what I have typed in you will find an error somewhere.
>
>
> Regards
>
> Krysia
>
>
>
>
>
>
>
>
>
> --
> 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!

I created a database in freesql.org and some scripts to access it. If I
run the scripts from php.exe (under windows NT) they work fine, ie.
access the database and retrieve data ok. But when I run them from
browser I get the following error:

Warning: MySQL Connection Failed: Can't create TCP/IP socket (10106)

And I have no idea about what is going on.

Can anyone help me with this.

Javier



Reply via email to