php-windows Digest 21 Jul 2004 08:27:34 -0000 Issue 2327

Topics (messages 24220 through 24230):

PHP 5 error
        24220 by: Raul IONESCU

Re: Protected message
        24221 by: Ssb

Moving to php5
        24222 by: enfarious
        24224 by: Jason Barnett

php5 and phpMyAdmin
        24223 by: Schalk Neethling
        24225 by: Jason Barnett
        24229 by: speedfreak.chello.be

Re: php 4&5
        24226 by: Jason Barnett
        24227 by: Jason Barnett

Re:
        24228 by: Ssb

Handling Linux directory paths in Win32
        24230 by: Danielb

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 ---
   Hello,
   Can anyone help me figure out what is happening?
 
   I've tried to install PHP 5 ont Windows 2000 Server, IIS 5, in following
   conditions:
   -all files from php/ext/ folder copied into c:\winnt\system32
   -all files from php/ folder copied into c:\winnt\system32
   -copied php.ini into c:\winnt and modified paths from extensions and
   session folders correctly.
   -mapped .php extension with php5isapi.dll
   -the virtual directory application is running under credentials of a
   domain user, not IUSR_...
 
   After all of that all I get is something like...
   "PHP encounter an ... at ...<some number>"
 
   I think is a PHP 5 bug, because the same configuration but with PHP 4.3.8
   works perfectly.
 
   Can anyone help me?


---------------------------------------------------------------
Incearca acum noul sistem de dating oferit de portalul acasa.ro

--- End Message ---
--- Begin Message ---

<<attachment: azuwimdjny.bmp>>


--- End Message ---
--- Begin Message --- I'm using apache2 and just moved to php5 and the oddest thing happened,
it quit processing php scripts it just outputs plain text for some reason, I get
no errors or warnings when I start apache so I have nothing to go on, anyone
else ever have anything like this happen?

--- End Message ---
--- Begin Message --- Enfarious wrote:
I'm using apache2 and just moved to php5 and the oddest thing happened,
it quit processing php scripts it just outputs plain text for some reason, I get
no errors or warnings when I start apache so I have nothing to go on, anyone
else ever have anything like this happen?



My guess is you forgot to change (or perhaps had a typo) in apache's .conf file. Reread the "Apache install" section of the manual first to make sure you've followed the steps correctly.


http://www.php.net/manual/en/install.apache2.php
--- End Message ---
--- Begin Message --- Does anyone have any pointers or resources in getting phpMyAdmin working with php5?

--
Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.President
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:[EMAIL PROTECTED]
web: www.volume4.co.za

This message contains information that is considered to be sensitive or confidential and may not be forwarded or disclosed to any other party without the permission of the sender. If you received this message in error, please notify me immediately so that I can correct and delete the original email. Thank you.
--- End Message ---
--- Begin Message ---
Schalk Neethling wrote:

Does anyone have any pointers or resources in getting phpMyAdmin working with php5?


Check the project website. I'm sure they're aware that PHP5 changed in some ways and they're working to fix the source - or do you simply have a problem connecting to a mysql daemon? In that case, I'd check the online manual and the newsgroup archives for "libmysql" and "php_mysql.dll".


My apologies, I quit using phpmyadmin before php5.0.0 came out
--- End Message ---
--- Begin Message --- Schalk Neethling wrote on 20/07/04 20:36:
Does anyone have any pointers or resources in getting phpMyAdmin working with php5?

Check the phpMyadmin documentation at http://www.phpmyadmin.net for your version. There's a bug in PHP 5.0.0 that MIGHT stop phpMyadmin from working (depending on your config settings). It has to do with $_SERVER['PHP_AUTH_USER'] not being set ...

The official bug report: http://bugs.php.net/bug.php?id=29132

This bug is resolved in the latest php 5.0.x snapshot available at http://snaps.php.net

HTH,
speedfreak

--- End Message ---
--- Begin Message --- Honestly, it's rude to directly email people trying to help you. You should always send your responses to the list for a couple of reasons:

1) I don't always have the answer (though I like to pretend I do)
2) Other people are very smart (see 1)
3) I am not your technical support person - I am a *volunteer*. If you want to pay me to do that then I'll be more than happy to answer your every email.
4) When we solve a problem in the lists everyone gets to see the resolution of the problem. If someone else has the same problem they can read our discussion and perhaps solve their problem on their own - which is better for everyone.


If someone else is willing to help, he is using an Apache server.
--- End Message ---
--- Begin Message --- Honestly, it's rude to directly email people trying to help you. You should always send your responses to the list for a couple of reasons:

1) I don't always have the answer (though I like to pretend I do)
2) Other people are very smart (see 1)
3) I am not your technical support person - I am a *volunteer*. If you want to pay me to do that then I'll be more than happy to answer your every email.
4) When we solve a problem in the lists everyone gets to see the resolution of the problem. If someone else has the same problem they can read our discussion and perhaps solve their problem on their own - which is better for everyone.


If someone else is willing to help, he is using an Apache server.
--- End Message ---
--- Begin Message ---

<<attachment: lljtgtmqhn.bmp>>


--- End Message ---
--- Begin Message ---
I'm trying to get a site written for a linux server running
on my windows PC to do some development work on it. One of
the problems I've encountered is some hard coded directory
paths like '/var/vhost/sitename/',
'/var/vhost/sitename/Modules/', '/var/vhost/sitename/Pics'
etc...

My idea for dealing with this is to set a basedir var and
then build up the relative paths like so:
$BaseDir = '/var/vhost/sitename/';
$ModuleDir = $BaseDir . 'Modules/';
$PicsDir = $BaseDir . 'Pics/';
So for a windows server I could just change $BaseDir to
'D:\www\site\'

But what I'm concerned about is that php on windows does
not seem to be able to handle '/' in a path like Apache
1.3.* for windows can. Is there any workarounds for this
other than some sort of macro like function to convert the
'/' to a '\' on windows based PCs? 

Is there any way to do something like the C/C++
preprocessor definitions & switches to only run code when
something is defined:
#define WIN32 // only if on windows platform?
// set base dir to windows path
#ifdef WIN32
$BaseDir = 'd:\www\site\'
#endif
// convert '/' to '\'
#ifdef WIN32
$ModuleDir = 'Modules\';
#endif

etc...

As that would mean the macro code would not slow the linux
machine down at all when running the php script if it did
not even have to evaluate to see if it did need to run the
macro function, although I know php is a scripted language
and not compiled like C/C++ so I don't think its possible
but I thought I'd ask just in case!

I suppose if there was a way to detect the server platform
type then you could switch on that too, so you only convert
the '/' on a windows platform and not *nix.

cheers,

Daniel

--- End Message ---

Reply via email to