[PHP] Copying Directory

2002-04-08 Thread Hiroshi Ayukawa

Hello,

I guess anyone have made the function to coppy directories, not files.
I'd like to copy directory including sub directories to other place.
Doesn't anyone has mades that kind of function?And please telll me.

  Thamks in advance.
  HiroshiAyukawa
  http://hoover.ktplan.ne.jp/kaihatsu/php_en/index.php?type=top


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Re: Copying Directory

2002-04-08 Thread Hiroshi Ayukawa

Sorry,
It didn't work.Mine too.
ALL of the files inside the deeoer directory come to top of the 
directory.
I'll go on trying .
Thanks.

By the way , your script looks like Python script , dont'you?

Hiroshi AYukawa
http://hoover.ktplan.ne.jp/kaihatsu/php_en/index.php?type=top

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Re: Copying Directory

2002-04-08 Thread Hiroshi Ayukawa

Thanks,
 But I can  try it ,cause I like PHP and I want to write a code tahat 
runs anyware.
 Actually, we use both *nix  windows.
 
I will announce if I could madde it.

Regards,
Hiroshi
http://hoover.ktplan.ne.jp/kaihatsu/php_en/index.php?type=top

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Directory check

2002-04-08 Thread Hiroshi Ayukawa

Does anyone know how to check a directory exiasts?

Thanks in advance,
Hiroshi Ayukawa
http://hoover.ktplan.ne.jp/kaihatsu/php_en/index.php?type=top


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Re: Directory check

2002-04-08 Thread Hiroshi Ayukawa

Thamks, evwryone.
I've never used is_dir.
It was a great help.

Hiroshi Ayukawa
http://hoover.ktplan.ne.jp/kaihatsu/php_en/index.php?type=top

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] New to PHP Need Help

2002-04-04 Thread Hiroshi Ayukawa

Hello,
The result $Location_info is an array.So you've got the answer 'Array'.
Consider that you requested MySQL to fetch several columns through SQL 
Select * from So the result was an array.
You can get the content of the result like $Location_info[0],$Location_
info[2],and so on.

Hiroshi Ayukawa
http://hoover.ktplan.ne.jp/kaihatsu/php_en/index.php

I am trying to define variables through an anchor tag to retrive data from
MySQL,  When the script runs it displays Array.  I am running WIN2K and IIS
5

echo a href=location.php?location=2Camp Street Cafe/a;

Here is the script that is called.

?php

$db = mysql_connect(localhost, , )
 or die (Could not connect to Localhost);
mysql_select_db (ETM, $db)
 or die (Could not connect to the Database);

$table = locations;
$location = ($_REQUEST[location]);
$query = Select * from $table where Location_ID = $location;
$result= mysql_query($query);
$Location_Info = mysql_fetch_row($result);

echo p$Location_Info;

?






-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] PEAR

2002-04-03 Thread Hiroshi Ayukawa

Hello,

You should modify include_path in php.ini like

include_path = .;c:\php\pear;C:\Apache\htdocs\includes
  ^^^
 the directory where pear files are in.


I often use DB.php from pear.It is very useful!
Good luck.

Hiroshi Ayukawa
http://hoover.ktplan.ne.jp/kaihatsu/php_en/index.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] New Server, Bad Attitude

2002-04-03 Thread Hiroshi Ayukawa

Hello,

1. PHP automatically sticks in the backslash in front
of apostrophes and quotation marks. This seems
weird Don't trust it. What's up here?

It is a setting of php.ini.
magic_quotes_gpc is it.
Default setting is magic_quotes_gpc=On, it means add slashes in front of 
\ and ' of the data required from a form(i.e. http get  post 
parameters).
See the function reference of get_magic_quotes_gpc() and ini_set().


3. The mail function doesn't send e-mail, or I should
say hasn't yet (after a few hours). Is this a PHP
setting? Maybe the sendmail functionality is wonky on
the server? Or is it possible PHP isn't looking in the
proper place for the sendmail stuff?
 Can you send an email with your sendmail program of your hardware?
 sendmail setting must be done properly.
 

Regards,
Hiroshi Ayukawa
http://hoover.ktplan.ne.jp/kaihatsu/php_en/index.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] help please - strange session behaviour on IIS with php4.1.2

2002-04-02 Thread Hiroshi Ayukawa

I have the same problem, while I'm using Apache for web server / Win2k.
It seems that it depends on register_globals=On or Off.
When the register_globals=On, it works well.
But when the register_globals=Off I've got the same situation; session 
doesn't work.

I guess this is a bug of PHP4.1.2/Win, isn't it?,

Regards,
Hiroshi Ayukawa
http://hoover.ktplan.ne.jp/kaihatsu/php_en/index.php?type=top

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] !! New version of the TEMPLATE class of mine.

2002-04-02 Thread Hiroshi Ayukawa

I released new version of HTML template class.

http://hoover.ktplan.ne.jp/kaihatsu/php_en/index.php?type=top

You can separate HTML  PHP completely, and make it easy to build large 
complicated web site rapidly.
Moreover, it makes clear to separate the job between a web designer  a 
programmer. 

I appreciate any feedback.

Thanks,
Hiroshi Ayukawa


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Random number Question

2002-04-02 Thread Hiroshi Ayukawa

$guess = = $number
is wrong.

You should write:
$guess == $number


Regards,
Hiroshi Ayukawa
http://hoover.ktplan.ne.jp/kaihatsu/php_en/index.php?type=top

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Text Editor

2002-03-24 Thread Hiroshi Ayukawa

Hello,

What text editor do you use to write PHP?
I use Maruo editor http://www.ac.wakwak.com/~tetsuyat/maruo/ more than 1 
year.
Is there any better text editor for PHP?

Thanks,
Hiroshi Ayukawa
http://hoover.ktplan.ne.jp/kaihatsu/php_en/index.php?type=top 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] mysql question

2002-03-19 Thread Hiroshi Ayukawa

Hello,

The length of VARCHAR must be specified like;

CREATE TABLE  sailordata  ( sailorid  INT(8) NOT NULL DEFAULT 0, 
 lastname  VARCHAR(255) NOT NULL,
 firstname  VARCHAR(255) NOT NULL, 
 middlenames  VARCHAR(255) NOT NULL, 
 dob  VARCHAR(255) NOT NULL, 
 telephone  VARCHAR(255) NOT NULL, 
 fax  VARCHAR(255) NOT NULL, 
 email  VARCHAR(255) NOT NULL);
 
 
Regards,
Hiroshi Ayukawa
http://hoover.ktplan.ne.jp/kaihatsu/php_en/index.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] $_SESSION / Windows doesn't work!?

2002-03-17 Thread Hiroshi Ayukawa


Hi,

I'm trying to use $_SESSION on Windows2000+PHP4.1.2 binary version.
But it seems that $_SESSION doesn't work, even in the simplest samples 
like;
--
?php 
session_start();
if (!isset($_SESSION['count'])) {
$_SESSION['count'] = 0;
}
else {
$_SESSION['count']++;
}
print session_name().=.session_id().br.$_SESSION['count'];
?
a href='?=$PHP_SELF ?'!/a
---
session_id is set properly in this case.
Moreover, the old way of using session works, i.e. session_register(...) 
and so on.

Does anyone know about this trouble?

Regards,
Hiroshi Ayukawa
http://hoover.ktplan.ne.jp/kaihatsu/php_en/index.php?type=top

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Array

2002-03-13 Thread Hiroshi Ayukawa

How about using the function print_r()  ?

Regards,
Hiroshi Ayukawa
http://hoover.ktplan.ne.jp/kaihatsu/php_en/index.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Redirect?

2002-03-13 Thread Hiroshi Ayukawa

You can do it by modifying the setting of your HTTP server.
But if you want to do it by PHP, write

header(Location; http://www.boo.com/v2;);

in your PHP script of http://www.boo.com/index.php.

Regards ,
Hiroshi Ayukawa
http://hoover.ktplan.ne.jp/kaihatsu/php_en/index.php?type=top

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] [GD] quality of image after resize

2002-03-11 Thread Hiroshi Ayukawa


I had the same situation before.
At that time, I used Imagemagick and run it as another process.
GD is actually poor quality in resizing images, but Imagemagick is not 
poor.

Hiroshi Ayukawa
http://hoover.ktplan.ne.jp/kaihatsu/php_en/index.php?type=top

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] QUERY STRING question

2002-03-11 Thread Hiroshi Ayukawa

I guess they are almost same.
But, the contents of $QUERY_STRING are different.

Hiroshi Ayukawa
http://hoover.ktplan.ne.jp/kaihatsu/php_en/index.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php