php-windows Digest 2 Mar 2003 19:27:33 -0000 Issue 1614

Topics (messages 18801 through 18808):

Re: unlink?
        18801 by: Wayne

Re: .htaccess and crypt
        18802 by: Wayne

Re: php.ini
        18803 by: Anthony Ritter

win2000 notepad
        18804 by: Joe Sze . HK

PHP install on Windows98 and PWS
        18805 by: Keith Engelhardt

Re: Stil having problems (WAS : Problem with links....)
        18806 by: Orlando Castañeda

Re: Send mail
        18807 by: Orlando Castañeda
        18808 by: Max Graham

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 ---
below should work, no matter what type of file path you use :)
<?php
//$filepath = "C:\Servers\php files\file to delete.php";
//$filepath = "delete_this.php";
$filepath = "C:\Servers\Root\file.php";
$i = unlink($filepath);
if($i){
    echo "File Deleted";
}else{
    echo "Failed To Delete File";
}
?>

"Paul Dymecki" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hello,
>     I was wondering if anyone knows how to delete a file from the
> filesystem?  I've been trying unlink but it doesn't seem to be working as
> expected.  Do spaces in the file path have to be compensated for or
> something?
> thx for any help,
> Paul
>
>
>
>
>
> _________________________________________________________________
> The new MSN 8: smart spam protection and 2 months FREE*
> http://join.msn.com/?page=features/junkmail
>



--- End Message ---
--- Begin Message ---
by default, .htaccess / .htpasswd files use PLAIN TEXT passwords IE:
Username:Password

instead of *nix:
Username:crypt($password)

you could try to take the crypt function off the password on one of the
scripts :)

[i just edit my .htpasswd files in notepad tho, since i dont edit them much
ne how :D

"Chris Morris" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I have seen several PHP scripts that act as an interface to .htaccess
files.
> They are able to add, change, and delete users from a nice, web-based
> interface.  The only problem is that they don't work on Windows.
>
> I read a post somewhere where someone said that this is because the
scripts
> use "crypt" to write the encrypted password to the .htpasswd file and
> "crypt" is not the same on Windows and Linux/Unix.  Something about
Windows
> and Linux not using the same encryption functions.
>
> Anyway, has anyone gotten this to work on Windows?  I am doing research as
> to which technology would be best to implement an automated user creation
> and removal system and PHP and Apache seems to be the best solution, IF I
> can get this to work.
>
>



--- End Message ---
--- Begin Message ---
Sven,
I've got five screenshots at this URL:

www.gonefishingguideservice.com/php1.htm

If you get a chance please take a look.

I got php_gd2.dll from the zipfile (see photo) and the "extensions"
sub-directory were not there when I installed.

I don't have any other extension working.

Many thanks,
TR
.........................................................................

From: Sven Schnitzke:


Hi  Tony,
in my config (WIN98SE, PHP4.4.0-dev dec 02 ISAPI mode, Apache
1.3.23) GD2 works fine. So it should be possible to get yours going.
What about my suggestions on the error logging and stuff? No
comments from PHP? Just silently passing away?
If it is so that sounds like rests of an old installation hanging around
(incompatible dlls, possibly not even GD/GD2 itself, multiple PHP.INI and
so on). Do you have any other extension working?
The dlls of PHP are NOT versioned like M$ COM Objects, so  little
differences
in the versioning might hang your system. Do you use the dlls that came
with your other PHP binaries or did you fetch them later?
And please take a look at the complaints of PHP at startup. Most likely
there are some.
Good luck
--
Sven



---
[This E-mail scanned for viruses by gonefishingguideservice.com]


--- End Message ---
--- Begin Message ---
i have that win2000's notepad cannot recognize '\n' character ........

i use editplus or textpad can read "return" as my will,

is there any other character that both notepad and other text editor can
recognize


thx for your kind attention



--- End Message ---
--- Begin Message ---
I have installed PHP (using the install wizard and files from
http://www.php.net/downloads.php on Windows98 and PWS. The PWS <Home>
virtual directory
to set for Read, Execute, and Scripts access. PWS sever is runing and it
runs other web content (both html and ASP) fine. But I get a HTTP 500 -
Internal server error when accessing a page (http://localhost/PHPtest.php)
containing

<html>
<head>
<body>
<p>PHP Test</p>
<?php phpinfo()?>
</body>
</head>
</html>

I have tested the PHP executable with c:\PHP\php.exe -i and it dumps the
info file just fine.

I have checked the registry and .ini file and the settings and they seem to
match all the areas covered in the "manual install" instructions at the
http://localhost/PHPtest.php site. So, I assume the install wizard did its
job.

Can anyone suggest anything else to try? Or how to get PHP running on a
Windows98 and PWS platform?

Thanks in advance.

Keith E.
[EMAIL PROTECTED]





--- End Message ---
--- Begin Message ---
Sorry, in my application, i have something similar ;
my table "data" has an id (auto increment), name ,etc.
What i need is to show the name of the most recently entered id.
My Sql sintax is:
"SELECT name FROM data WHERE id=MAX(id)"

But i have an error displaing:
"Invalid use of group function"

any help please??



"Neil Smith" <[EMAIL PROTECTED]> escribió en el mensaje
news:[EMAIL PROTECTED]
> Hi - check your SQL : I think what you have here is a select asking for
> MAX(ID) which will return one result (this is what MAX does).
>
> So, no need to ask for WHERE id IN (SELECT(MAX(ID)) but instead ask for
> SELECT id=MAX(ID).
>
> If you wanted top n instead, ask for
> SELECT id FROM data ORDER BY id DESC LIMIT 0,n
>
> Probably. What are you actually trying to print out ?
>
> HTH
> Neil Smith.
>
> At 13:26 28/02/2003 +0000, you wrote:
> >I'm still having problems :
> >
> >My query :
> >$q = "SELECT id, computer_id, date, domain, ip, license_key, software,
wm_id
> >FROM data WHERE id IN (SELECT MAX(ID) FROM data GROUP BY Computer_ID) " .
> >$Where_Text . " ORDER BY Domain, Date DESC";
>



--- End Message ---
--- Begin Message ---
The trouble was in my php.ii file...
thanks all!

"Chris Morris" <[EMAIL PROTECTED]> escribió en el mensaje
news:[EMAIL PROTECTED]
> Have you set up your SMTP server in the PHP configuration?
>
>
> "Orlando castañeda" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> I am trying to send an e-mail like this:
>
> <?php
>      $to = "[EMAIL PROTECTED]";
>      $subject = "xsubject";
>      $message = "x data";
>           mail ($to, $subject, $message);
> ?>
>
> There are no errors, but the e-mail is never sent !
> I apreciate any help !
>
>
> Tito
> [EMAIL PROTECTED]
> [EMAIL PROTECTED]
> ICQ # 32019090
>
>



--- End Message ---
--- Begin Message ---
Orlando:

I used this in a script, I set up a message body like this

mail($mrecipient, $subject, $messagebody, $headers);

You may need to set the $headers variable ... or you can use this script that allows 
you to send a multipart MIME email

http://www.hotscripts.com/Detailed/18698.html



"Orlando castañeda" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> I am trying to send an e-mail like this:
> 
> <?php
>      $to = "[EMAIL PROTECTED]";
>      $subject = "xsubject";
>      $message = "x data";
>           mail ($to, $subject, $message);
> ?>
> 
> There are no errors, but the e-mail is never sent !
> I apreciate any help !
> 
> 
> Tito
> [EMAIL PROTECTED]
> [EMAIL PROTECTED]
> ICQ # 32019090

--- End Message ---

Reply via email to