php-windows Digest 30 Nov 2004 01:31:48 -0000 Issue 2488

Topics (messages 25056 through 25064):

Re: CHMOD function issue.
        25056 by: Mike

Re: HI! can u help me?
        25057 by: Gryffyn, Trevor

Re: Cookie's folder
        25058 by: Gryffyn, Trevor

Difference between Installer and ZIP?
        25059 by: Ian

Re: edge detection
        25060 by: Gryffyn, Trevor

Re: Online-php-games
        25061 by: PHPDiscuss - PHP Newsgroups and mailing lists

How to configure PHP5 with support of Java 1.4 on window platform
        25062 by: rui zhang
        25063 by: rui zhang
        25064 by: Shen Kong

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 ---
I just want to make sure of something...

What OS is the machine this is happening on? This is the PHP-Windows list
and CHMOD really doesn't work on Windows - it's a Unix command. 

But if you're having problems on a unix system, check to see if there is a
umask value set that would be causing this.

-M

> -----Original Message-----
> From: Kuldeep [mailto:[EMAIL PROTECTED] 
> Sent: Monday, November 29, 2004 3:16 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] CHMOD function issue.
> 
> Hello All,
> 
> I have made a admin area on my site where it allows the admin 
> to change the pagelayout, I.E : font color, table color, font 
> size, background color.
> the Folder permission is set to 755 and the file permissions 
> are set to 644. I used the CHMOD funtion to change the 
> permission to 666 before making the changes ti file and then 
> change it back to 644 after the change is done.
> But it does not work the way I want it to, the permission 
> remains the same.
> 
> Anywho with a solution???
> 
> --
> PHP Windows Mailing List (http://www.php.net/) To 
> unsubscribe, visit: http://www.php.net/unsub.php
> 

--- End Message ---
--- Begin Message ---
In addition to the opendir() and readdir() there's also the dir() class:
http://us2.php.net/manual/en/class.dir.php

Don't forget to take a look at the script on the readdir() page:

<?php 
if ($handle = opendir('.')) {
   while (false !== ($file = readdir($handle))) { 
       if ($file != "." && $file != "..") { 
           echo "$file\n"; 
       } 
   }
   closedir($handle); 
}
?> 

You need to remember that "." and ".." are condidered directories (aka
folders).

You can also use is_dir() and is_file() to determine if it's a file or a
directory:
http://us2.php.net/manual/en/function.is-dir.php
http://us2.php.net/manual/en/function.is-file.php


And something I never used before but came to my attention recently (yet
another function in a long line of "PHP will already do that"
slap-in-the-forehead things..  The glob() function:
http://us2.php.net/manual/en/function.glob.php

(And now I see in the glob() page, the fnmatch() function too!  Wow.. Is
there anything PHP doesn't do already? Hah)


Looks like with glob(), you can do your image file type matching too.
Maybe something like this (untested):


$filefilter = array("*.jpg","*.gif","*.png");

foreach (glob({implode(",",$filefilter)},GLOB_BRACE) as $filename) {
  if (is_file($filename)) echo "$filename size " . filesize($filename) .
"\n";
}


The note on the glob() page says that it CAN be case sensitive, so you
might need to do "*.jpg" and "*.JPG"


Anyway, some more functions and thoughts to add to what Mike already
offered.

-TG

> -----Original Message-----
> From: Mike [mailto:[EMAIL PROTECTED] 
> Sent: Friday, November 26, 2004 5:33 PM
> To: 'Kurlic'; [EMAIL PROTECTED]
> Subject: RE: [PHP-WIN] HI! can u help me?
> 
> 
> Take a look at 
> 
> opendir() http://us2.php.net/manual/en/function.opendir.php
> 
> and 
> 
> readdir() http://us2.php.net/manual/en/function.readdir.php
> 
> Everything that you need is there.
> 
> -M
> 
> > -----Original Message-----
> > From: Kurlic [mailto:[EMAIL PROTECTED] 
> > Sent: Friday, November 26, 2004 4:14 PM
> > To: [EMAIL PROTECTED]
> > Subject: [PHP-WIN] HI! can u help me?
> > 
> > Hi all!
> > 
> > Can i ask u a question?
> > 
> > Using PHP:
> > How can i count the files in a folder and obtain their names?
> > (i want to produce a script that count the images in a folder 
> > and make a list of them...)
> > 
> > please help me... ^_^
> > 
> > Thank you by Kurlic
> > --------------------
> > [EMAIL PROTECTED]
> > --------------------
> > 
> > --
> > PHP Windows Mailing List (http://www.php.net/) To 
> > unsubscribe, visit: http://www.php.net/unsub.php
> > 
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 

--- End Message ---
--- Begin Message ---
It's probably not the cookies you're trying to fix.  The cookies are
stored on the client side and should be automatically set up by the
client's web browser.  There should never be a problem with a cookie
folder not existing and you needing to do something to fix it.
(although I'm sure someone really creative could screw up their
configuration to the point that this may be an issue.. 99.9999% of the
time this shouldn't be an issue).

What you may be thinking about is the sessions folder on the server.
Check the PHP.INI that your PHP is using (check phpinfo() for this
information if you need to.. Usually it's in your PHP folder or, on
Windows, in your C:\WINDOWS folder... If I remember right).

In the PHP.INI you'll find a line like this:

session.save_path = C:\PHP\sessiondata


Make sure that the folder mentioned there exists.  If it doesn't, you
won't be able to store session data.  Sessions use a cookie on the
client's side to keep track of the session ID automatically for you.  So
if the real question is that you're having issues with sessions and you
believe it's a cookie related issue, check your PHP.INI and make sure
that folder exists.


For the sake of completeness, cookies on a Windows system (for Internet
Explorer) are stored in:

C:\Documents and Settings\%username%\Cookies

That's on NT (?), 2000 and XP.

In Windows 9x, I believe it was:

C:\Windows\Cookies

Or something like that.

Opera, Firefox, and other browsers store their cookie data in other
places.  Consult your browser help file for info.

-TG


> -----Original Message-----
> From: Darkravin [mailto:[EMAIL PROTECTED] 
> Sent: Saturday, November 27, 2004 12:19 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Cookie's folder
> 
> 
> Hi
>    I'm try to use cookie's however it is not working. I 
> remember there was a problem with cookie's on windows servers
> where if the folder wasn't there it would not create and
> cookie's woudn't work, and you had to create the folder your
> self. Does anyone know where this folder is 
> called andwhere to place it? I have tryed to find info on it 
> but can't find anything.
> Cheers
> 
> 
> PHP 4 v4.3.6
> Apache 2 v2.0.52
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 

--- End Message ---
--- Begin Message ---
Hi there,

Just went to php.net to download the installer/zip.

I notice that the zip is quite large 7 megs or so... but the installer is 
only 2 megs..

The installer says CGI ONLY, i quite a newbie at this and I just wish to 
install it on the server, what are the differences?

The installer says it automatically configures IIS for me but the ZIP 
doesn't state that..

Can anybody give any guidance on which method I should go for ??

Thanks in advance

Ian 

--- End Message ---
--- Begin Message ---
I don't know that I could help you in any case, but some additional
information might be helpful.

Are you talking specifically about doing an edge detection type filter
for images like you'd find in Photoshop?

If you can clarify the question, someone might have some information for
you.

If you figure it out, I'd be curious to see how you did it.   You also
might do some Google searches for edge detection algorithms then all you
need in PHP would be to read the pixel data in to run the algorithm on.

Good luck!

-TG

> -----Original Message-----
> From: Henry [mailto:[EMAIL PROTECTED] 
> Sent: Sunday, November 28, 2004 1:43 PM
> 
> does anyone know how to make
> an edge detection using php ???

--- End Message ---
--- Begin Message ---
Cyrus Misthalin wrote:

> Does someone of you own a php-online-game?

I am curretly coding quite a complex MMO game in php, based around a mySQL
db, if you have a look at wardrox.com you will see the game. Post in the
forum if you have any further questions and i would be glad to help.

--- End Message ---
--- Begin Message ---
Hi Fellows

I am trying to integrate PHP and Java,and this is the situation I have.
I am using Apache 2.0.52 and PHP 5.0.2, and my java version is 1.4. PHP 
works fine with Apache, but once I want to call some java functions based on 
my setting made to the php.ini, Apache crashes. PHP is installed under 
c:\php, Apache is installed under c:\program files, and Java SDK is 
installed under c:\j2sdk1.4.2_05. I would appreciate your help on this 
issue, since I have been tortured by this problems for more than a week.

yours,

Rui 

--- End Message ---
--- Begin Message ---
Hi Fellows

I am trying to integrate PHP and Java,and this is the situation I have.
I am using Apache 2.0.52 and PHP 5.0.2, and my java version is 1.4. PHP
works fine with Apache, but once I want to call some java functions based on
my setting made to the php.ini, Apache crashes. PHP is installed under
c:\php, Apache is installed under c:\program files, and Java SDK is
installed under c:\j2sdk1.4.2_05. I would appreciate your help on this
issue, since I have been tortured by this problems for more than a week.

yours,

Rui

--- End Message ---
--- Begin Message --- Rui Zhang wrote:
Hi Fellows

I am trying to integrate PHP and Java,and this is the situation I have.
I am using Apache 2.0.52 and PHP 5.0.2, and my java version is 1.4. PHP
works fine with Apache, but once I want to call some java functions based on
my setting made to the php.ini, Apache crashes. PHP is installed under
c:\php, Apache is installed under c:\program files, and Java SDK is
installed under c:\j2sdk1.4.2_05. I would appreciate your help on this
issue, since I have been tortured by this problems for more than a week.

yours,

Rui

yes , me too . but when i use PHP4.3.x , it runs well . mybe there aren't stable java support in PHP5 now.


--
-- ShenKong ([EMAIL PROTECTED])
-- http://www.openphp.cn

--- End Message ---

Reply via email to