php-windows Digest 17 Dec 2001 12:27:33 -0000 Issue 905
Topics (messages 10925 through 10929):
Re: windows to Linux
10925 by: Ignatius Teo
htpasswd
10926 by: jtjohnston
How to do a File browse operation in PHP
10927 by: Balraj Dhaliwal
10929 by: Serdar Soydemir
Problems with sessions
10928 by: Ronny Salomonsen
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 ---
3 main things to look out for:
1. paths, paths, paths
2. Windoze specifics (eg. running DOS/Windoze commands using exec/system
etc)
3. Differences in PHP/MySQL versions on local development environment and
hosted environment (eg u run PHP4.1/MySQL 3.23.46 locally and the Linux box
runs 4.03pl1/MySQL 3.22.28)
Other than that, things should work fine.
*****************************************************
Ignatius Teo
Project Manager, Internet Access Services
Information Technology and Telecommunication Services
Corporate Services
Southern Cross University
PO Box 157 Lismore NSW 2480
Ph: +61 2 6620-3221 Fax: +61 2 6620-3033
Email: [EMAIL PROTECTED] | [EMAIL PROTECTED]
URL: http://www.scu.edu.au/admin/is/it/
*****************************************************
----- Original Message -----
From: "Ross Fleming" <[EMAIL PROTECTED]>
To: "jfpirtle" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, December 17, 2001 10:07 AM
Subject: RE: [PHP-WIN] windows to Linux
> With all respect, the linux list might be better suited to answer that. ;)
>
> Either way, there shouldn't be a problem, it'll still be apache/php and
> mysql on the linux box. I'm not sure how you'd go about transferring the
> data from the Win98 version of mysql to the linux one if you need that
> though. There are very likely to be utilities around that do that sort of
> thing for you though.
>
> Ross
>
> -----Original Message-----
> From: jfpirtle [mailto:[EMAIL PROTECTED]]
> Sent: 14 December 2001 05:07
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] windows to Linux
>
>
> Hello:
>
> I'm going to be developing a couple of projects. Right now the
development
> platform is Win98, Apache, Php and a database (MySQL or Firebird). When
> finished the projects will be migrated to a Linux hosting system using
> Apache. Anybody know what problems and pitfalls I can expect migrating a
> project from Win development to Linux hosting?
>
>
>
> --
> 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]
>
>
> --
> 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]
>
--- End Message ---
--- Begin Message ---
I'm sure question has been asked.
How can I do this? How can I edit a htpasswd file?
The pathes are right, no fork errors.
But file does not change.
I know ... it's a dangerous script, but what do you want, I need it!
Post & replies are helpful :)
Thanks,
John
---------------snip-----------------------
<FORM ACTION="testme.php" METHOD=POST>
Username: <INPUT TYPE="text" NAME="User"><BR>
Password: <INPUT TYPE="text" NAME="Pass"><BR>
<INPUT TYPE="submit">
</FORM>
<?php
$htpass = "c:\Program Files\EasyPHP\apache\bin\htpasswd.users";
if(($User == "") || ($Pass == "")){
echo "No username or password! No chance! Quitting.";
exit;
}
//$lastline =
exec('c:\Program Files\EasyPHP\apache\bin\htpasswd -b $htpass $User
$Pass');
//echo $lastline;
// $lastline contains last line of output from htpasswd, so
// you could do some error checking here
//system(escapeshellcmd("c:\Program Files\EasyPHP\apache\bin\htpasswd -b
$htpass $User $Pass"),$error);
echo "Done! Set $User with $Pass"
?>
--- End Message ---
--- Begin Message ---
I'd like to insert a button called "Browse..." which will open up the
File Open Explorer window on Win98 so that the user can input a file
name without having to type the entire file name. Can this be done with
PHP?
I am using PHP 4.0.6 with Apache 1.3.22 and Win98SE.
Thanks,
Balraj
--- End Message ---
--- Begin Message ---
This can be done simply by HTML, just put this line in your code:
<input type="file" name="xxx">
Balraj Dhaliwal wrote:
> I'd like to insert a button called "Browse..." which will open up the
> File Open Explorer window on Win98 so that the user can input a file
> name without having to type the entire file name. Can this be done with
> PHP?
>
> I am using PHP 4.0.6 with Apache 1.3.22 and Win98SE.
>
> Thanks,
> Balraj
>
>
>
--- End Message ---
--- Begin Message ---
Hi
I've developed a Download Manager software for my company which run as a
PHP-script with a control panel and stuff. I've got a MySQL DB with the
username/password and home directory.
When a user logs in it checks the username and password, if correct, create
a session. The session-file is created and the information inside it seems
to be OK. But when I try to open the session again to read it, it returns
nothing (NULL). What could be wrong.
The computer I developed the software with is a:
Windows 2000 Professional
OmniHTTPd (latest build)
PHP 4.0.6
MySQL (latest build)
The server which the application is supposed to be on uses:
Windows 2000 Professional Server
IIS 5.0
PHP 4.1.0
MySQL (latest build)
How come it works ok on one computer and not on the other. I've tried to use
session_save_path, but it doesn't work. And how come I can't use
$DOCUMENT_ROOT anymore? I get an errormessage of it on the server.
Thanks in advance.
--- End Message ---