php-windows Digest 15 Mar 2002 23:58:42 -0000 Issue 1049
Topics (messages 12641 through 12657):
Stange 'page-loading' effect
12641 by: George Pitcher
12645 by: alain samoun
Re: How do you install PHP on Win98 with PWS?
12642 by: Keith Hughes
12646 by: Nicole Amashta
GD library update
12643 by: Alberto. Sartori
12644 by: alain samoun
Re: Cannot connect to MySQL with PHP 4.1.1
12647 by: Arijit Chaudhuri
Cookies not working right on Win 2000 and IIS 5
12648 by: Arijit Chaudhuri
PHP ide
12649 by: Dan Zarrella
12650 by: Dan Zarrella
12651 by: Dan Zarrella
12653 by: Vail, Warren
12657 by: Craig Morrison
Strange error with FastTemplate and IIS 5
12652 by: Elias Santiago
Multiple conditions in an if statement
12654 by: Asendorf, John
12655 by: Vail, Warren
changing "included file" in a container
12656 by: Wolfgang Schneider
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 ---
Hi all,
I have a part of my development site where the user hits a button, sending a
stream of values to a response page.
However, on testing, the response page comes up with 'server not found' but
when I refresh that error page, it loads the correct page but without any of
the transferred values.
Any ideas as to where it going wrong?
I'm using PHP-4.1.1, Apache (console) on Win 2000Pro.
Regards
George
George Pitcher is Technical Manager for the HERON Project
at Napier University, Edinburgh.
--- End Message ---
--- Begin Message ---
You probably have an error in your code, difficult to help without at least
a snippet of it.
A+
Alain
-----Original Message-----
From: George Pitcher [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 15, 2002 4:14 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: [PHP-WIN] Stange 'page-loading' effect
Hi all,
I have a part of my development site where the user hits a button, sending a
stream of values to a response page.
However, on testing, the response page comes up with 'server not found' but
when I refresh that error page, it loads the correct page but without any of
the transferred values.
Any ideas as to where it going wrong?
I'm using PHP-4.1.1, Apache (console) on Win 2000Pro.
Regards
George
George Pitcher is Technical Manager for the HERON Project
at Napier University, Edinburgh.
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
How do you make sure the read and execute scripts are enabled?
I'm a complete Newbie.
Cheers
Keith
"Nicole Amashta" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> You need to make sure you have read and execute scripts enabled and also
> make sure you are web sharing the directory that the scripts are running
out
> of.
>
> Nicole
> www.aeontrek.com
>
> "Keith Hughes" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Hi,
> > I'm trying to get PHP (4.1.2 I think....the new one) working on my
Windows
> > 98 PC, using PWS (don't know what version).
> > I've downloaded the "install" CGI script from php.net, which says it
does
> it
> > all for you, and I've also had a quick play round with the .ini files
> (moved
> > different ones to the c:\windows dir).
> > I still can't seem to get it working, and when I've published HTML files
> > with PHP script in them, it just displays a blank page.
> > The only thing I'm trying to do at the moment is getting it to say
"hello
> > world", but later on I'll be using it to link with MySQL.
> > Can anybody tell me how to get this working.
> > Thanks
> >
> > Keith
> >
> >
>
>
--- End Message ---
--- Begin Message ---
Run the PWS admin panel. There is an "advanced" button on the left. You find
the "site" that is listed in the window and double click it to view the
properties. From there, you should be able to add the read and execute
permissions. I know this is kind of vague because I haven't used PWS in a
while and don't have direct access to view the exact steps. I hope this
helps you in the right direction.
Good luck,
Nicole
www.aeontrek.com
"Keith Hughes" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> How do you make sure the read and execute scripts are enabled?
> I'm a complete Newbie.
> Cheers
>
> Keith
>
> "Nicole Amashta" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > You need to make sure you have read and execute scripts enabled and also
> > make sure you are web sharing the directory that the scripts are running
> out
> > of.
> >
> > Nicole
> > www.aeontrek.com
> >
> > "Keith Hughes" <[EMAIL PROTECTED]> wrote in message
> > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > > Hi,
> > > I'm trying to get PHP (4.1.2 I think....the new one) working on my
> Windows
> > > 98 PC, using PWS (don't know what version).
> > > I've downloaded the "install" CGI script from php.net, which says it
> does
> > it
> > > all for you, and I've also had a quick play round with the .ini files
> > (moved
> > > different ones to the c:\windows dir).
> > > I still can't seem to get it working, and when I've published HTML
files
> > > with PHP script in them, it just displays a blank page.
> > > The only thing I'm trying to do at the moment is getting it to say
> "hello
> > > world", but later on I'll be using it to link with MySQL.
> > > Can anybody tell me how to get this working.
> > > Thanks
> > >
> > > Keith
> > >
> > >
> >
> >
>
>
--- End Message ---
--- Begin Message ---
Hi guys, I'm looking for a new version (altready compiled as .dll) of GD library.
Anyone can help me?
Thanks,
Alb
Alberto Sartori - Developer
Hard Programming Dep.
--- End Message ---
--- Begin Message ---
php4win.de
Look for php_gd2.dll,
A+
Alain
-----Original Message-----
From: Alberto. Sartori [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 15, 2002 8:07 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] GD library update
Hi guys, I'm looking for a new version (altready compiled as .dll) of GD
library. Anyone can help me?
Thanks,
Alb
Alberto Sartori - Developer
Hard Programming Dep.
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Hi,
I recently installed php from php.net on Win 2000 with IIS 5 with mysql. Its
running without a hitch. I had to install MyODBC also from the mysql site.
Regards,
Arijit
"Nicole Amashta" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Are you sure you are using a complete new install of PHP? Remove all old
php
> files ( dlls, ini, etc) and install completely fresh to make sure you are
> using all the versions that go with the version of PHP you are wanting to
> use (eg. 4.1.1).
>
> Nix
> www.aeontrek.com
>
>
> "Egil Helland" <[EMAIL PROTECTED]> wrote in message
> 20020301140822.DRWQ355.mta02@workhorse">news:20020301140822.DRWQ355.mta02@workhorse...
> Just another little note here:
>
> I have tried every version from 4.0.4 pl1 and upwards. The only
> version I get to work i 4.0.4 pl1. This also includes the latest
> development version (4.3.0-dev) available.
>
> Whatever happened after the 4.0.4 release? I can switch back to this
> release, and everything starts working again right away!
>
> -e
>
> On Fri, 1 Mar 2002 14:31:18 +0100, Egil Helland wrote:
> >I actully use the $link = part, I just did not include it below. The
> > MySQL daemon is there allright, I am hooked up to it now in fact,
> >but php is not able to do the same!
> >
> >This is no problem with IIS, this is pure php + mysql, that I am
> >pretty sure of. I have seen loads of others with similar problems,
> >some running apache, some iis, some running on unix! Dont know what
> >cause this still, so any help is appreciated!
> >
> >-e
> >
> >On Fri, 01 Mar 2002 11:36:07 +0000, Pac mon wrote:
> >>Well i'd suggest triple checking that mysqld is running. Uh.. try
> >>putting: $link = mysql_connect(....) or die(....);
> >>Just small things, but maybe it'll work.. other than that... No..
> >>i've never had a problem with mysql, but then again i'm running
> >>apache..not IIS.
> >>
> >>
> >>----Original Message Follows----
> >>For some reason, after I upgraded to 4.1.1, I am not able to
> >>connect to MySQL DB sources anymore. AFAIK I have set up the ini
> >>file like I should, there are no differences in the IIS config
> >>since the 4.0.5 version I have been running here was installed.
> >>
> >>Anyone familiar with this? I have seen hundreds of these errors all
> >>over the web, but I have not found a solution to the problem yet. I
> >>am tired of searching around the web for something that is probably
> >>trivial :)
> >>
> >>I have not upgraded my MySQL install, only php. The codeline that
> >>does not get through is:
> >>
> >>mysql_connect($host,$user,$password) or die ('Could not connect');
> >>
> >>The output I get is:
> >>
> >>Warning: Can't connect to MySQL server on 'localhost' (10061) in
> >>************ on line 77
> >>
> >>Warning: MySQL Connection Failed: Can't connect to MySQL server on
> >>'localhost' (10061) in ************* on line 77 Could not connect
>
>
> -=//
> Egil Helland / IKON AS - MCSE, Internet, Intranet
> mailto:[EMAIL PROTECTED] http://egil.net
> file://=-
>
>
>
>
--- End Message ---
--- Begin Message ---
Hi,
Apart from RedHat Linux, I have also started using PHP on Windows 2000
Professional with MySQL database. Eveything is working perfectly except
cookies. As an example, if I use the following code:
<?php
setcookie("name", "test") ;
print("$name") ;
?>
"test" is not printed at first. If I do a browser refresh, it does get
printed. This is true even if I set all relevent parameters for setcookie.
The cookies work fine in Linux and also on all my clients Linux server.
I am using the php.exe file from the InstallShield version of Windows PHP
from php.net. Would greatly appreciate any help on where I am going wrong or
what needs to be done. The php.ini file has a session save path but nothing
for cookies.
Regards,
Arijit Chaudhuri
--- End Message ---
--- Begin Message ---
I'm curious to see everyone's opion on php-ide's/editors, which one is the
best, most complete, easiest, and why, personally i have huge demands i
place on my editor (html-kit) and i'm looking for one (free) that can meet
my demands for a more php-centric and complete Development Environment. -dan
_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com
--- End Message ---
--- Begin Message ---
as much as i do like vim (i've replaced notepad and wordpad with gvim and
winvi) it doesn't offer the debugging, sytax higlightng etc that i am
looking for.
_________________________________________________________________
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx
--- End Message ---
--- Begin Message ---
debugging as in variable watching etc, if you can do that i'd love to use
gvim... how?
_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail.
http://www.hotmail.com
--- End Message ---
--- Begin Message ---
I am limited to editing as well (no debug) and, after trying several tools,
have settled on ConTEXT (http://www.fixedsys.com/context), which provides
syntax highlighting, which is real handy when I've failed to key the final
quote on a string, etc. This editor will show line numbers as well and
these match error messages that come from PHP.
Warren Vail
Tools, Metrics & Quality Processes
(415) 667-7814
Pager (877) 774-9891
215 Fremont 02-658
-----Original Message-----
From: Dan Zarrella [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 15, 2002 12:09 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] PHP ide
I'm curious to see everyone's opion on php-ide's/editors, which one is the
best, most complete, easiest, and why, personally i have huge demands i
place on my editor (html-kit) and i'm looking for one (free) that can meet
my demands for a more php-centric and complete Development Environment. -dan
_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Dan Zarrella wrote:
>
> I'm curious to see everyone's opion on php-ide's/editors, which one is the
> best, most complete, easiest, and why, personally i have huge demands i
> place on my editor (html-kit) and i'm looking for one (free) that can meet
> my demands for a more php-centric and complete Development Environment. -dan
PHPEdit?
I use it on a daily basis for projects (30+ PHP scripts all loaded at the same
time). It offers syntax highlighting, brace/bracket/quote completion, function
auto-completion and a debugger.
It is early in the development cycle, but it more than suits my needs.
http://www.phpedit.com/
YMMV..
--
Craig Morrison
http://www.mtsprofessional.com/
A Win32 Email server that works for you.
--- End Message ---
--- Begin Message ---
Hi:
I designed a website using FastTemplate 1.1.0. I used Apache for Windows
1.3.14 and PHP version 4.0.6 for development in a test-server. Everything
went fine, and I am sure that all template variables were defined.
Now, when I uploaded the finished site to the IIS 5.0 server running the
SAME PHP version, I get errors beneath ALL pages saying for example:
"[FastTemplate] Warning: no value found for variable: $main"
It spits out this error for ALL template variables, but strangely all the
content for the variables is shown on the page, yet FastTemplate spits out
this error, but ONLY on the IIS server, not on Apache... In Apache, it runs
without a hitch. No scripts or variables use Apache or IIS directives or
variables. I even compared both php.exe files on the test server and the IIS
(production) server, and they are identical. The test server is configured
EXACTLY as the Production one, they even have the EXACT same hardware and
software installation (Norton Ghost'ed). The PHP, MySQL initialization
files and directories are identical. The ONLY difference is the webserver
software.
Any ideas?
P.D. Before someone else "recommend" using Apache, it is a server running
some databases that MUST run on IIS... Management decision, not mine, can't
change webserver software.
--- End Message ---
--- Begin Message ---
I have a question about the efficiency of an if statement...
Say you have the following statement,
if ( $i == 6 && eregi ( "foo" , $bar ) ) { }
And the first portion ( $i == 6 ) IS NOT true, does PHP even attempt to run
the regular expression?
Just wondering.
Thanks,
John
---------------------
John Asendorf - [EMAIL PROTECTED]
Web Applications Developer
http://www.lcounty.com - NEW FEATURES ADDED DAILY!
Licking County, Ohio, USA
740-349-3631
Nullum magnum ingenium sine mixtura dementiae fuit
--- End Message ---
--- Begin Message ---
I'd be willing to bet it did not;
I often use;
if(isset($var) && $var != "") xxxxx
second test above would generate error if $var was not valid and the second
test was executed anyway. The key is the && between the two tests, first
one fails, no need to test the second, probably lifted right out of the C
compiler implementation and syntax.
Warren Vail
Tools, Metrics & Quality Processes
(415) 667-7814
Pager (877) 774-9891
215 Fremont 02-658
-----Original Message-----
From: Asendorf, John [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 15, 2002 1:39 PM
To: Php-Windows (E-mail)
Subject: [PHP-WIN] Multiple conditions in an if statement
I have a question about the efficiency of an if statement...
Say you have the following statement,
if ( $i == 6 && eregi ( "foo" , $bar ) ) { }
And the first portion ( $i == 6 ) IS NOT true, does PHP even attempt to run
the regular expression?
Just wondering.
Thanks,
John
---------------------
John Asendorf - [EMAIL PROTECTED]
Web Applications Developer
http://www.lcounty.com - NEW FEATURES ADDED DAILY!
Licking County, Ohio, USA
740-349-3631
Nullum magnum ingenium sine mixtura dementiae fuit
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Hi everyone,
I am wondering how to do the following:
I have a php file that sort of serves as a "container" and has a
header, footer and side navigation which remain the same ...
furthermore, in the main part of the page, a file is called via
"include( );", and in this file there is a link for "previous" and
"next" ...which should call the main "container file" with the
previous or next "included file" ...
In frames, this would be on problem, seeing that the "Included file"
would be displayed in one frame by itself, and thus the "prev" and
"next" links would call the respective files in the same frame ....
only, I am not using frames at all, but rather the header, foorter,
left side naviigation sections are php files which are included.
Would anyone have a suggestion on what to put in the <A HREF= ....>
</A> tag to achieve this result? Any info is much appreciated.
God bless you with His grace and peace
Wolfgang
Looking for Biblical information? COME AND SEE!
-- ONLINE Courses: http://classes.bibelcenter.de ... NEW!
-- BibelCenter: http://www.bibelcenter.de
-- Bookstore: http://www.worthy.net/BibelCenter/
--- End Message ---