php-windows Digest 24 Nov 2002 07:21:17 -0000 Issue 1454

Topics (messages 17089 through 17094):

telnetting
        17089 by: DaMouse

PHP FTP Module Functions
        17090 by: Kevin Smith

HELP !!!
        17091 by: kata
        17092 by: Kevin Smith
        17093 by: Rich Gray

Help required... Simple File Upload
        17094 by: Raheel Hussain

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 ---
is there a way to connect to telnet via PHP
e.g. login then excute command then logout
O
Ensign Baker
HCO Officer
USS Atlantis
--- End Message ---
--- Begin Message ---
Hi All,

On the PHP website URL: http://www.php.net/manual/en/ref.ftp.php it states :
<snip>In order to use FTP functions with your PHP configuration, you should
add the --enable-ftp option when installing PHP 4 or --with-ftp when using
PHP 3.</snip>

In order to use these FTP functions does the PHP windows version have this
already compiled into it with the Binary installer or zip package?

Regards,

Kevin Smith

--- End Message ---
--- Begin Message ---
ok, i am not a very good programmer, but i've used PHP+MySQL+omniHTTPd for
designing my web pages.
 here is the problem-

- i have installed everything above.
it just can use "GET_VARS" or something, because i have this little script
(test.php):

<?
echo $a;
$a=123;
echo $a;
?>

ok, i start IE, hit "localhost", it displays 123, but if i assign to "a"
something like a=adadada, it doesen't get the values, still displays
123....what i've done wrong, everything is setup as ussual, i've tryed
Apache instead of omnihttpd, still nothing......

please help me on this one....! :(



--- End Message ---
--- Begin Message ---
hi Kata,

Hmmm.... are you still defining $a=123 and then on the next defining $a =
adadada, if so, then the syntax for $a should be :

$a = "adadada";
for text

and

$a = 123;
for numbers

Regards,

Kevin

----- Original Message -----
From: "kata" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, November 23, 2002 8:18 PM
Subject: [PHP-WIN] HELP !!!


> ok, i am not a very good programmer, but i've used PHP+MySQL+omniHTTPd for
> designing my web pages.
>  here is the problem-
>
> - i have installed everything above.
> it just can use "GET_VARS" or something, because i have this little script
> (test.php):
>
> <?
> echo $a;
> $a=123;
> echo $a;
> ?>
>
> ok, i start IE, hit "localhost", it displays 123, but if i assign to "a"
> something like a=adadada, it doesen't get the values, still displays
> 123....what i've done wrong, everything is setup as ussual, i've tryed
> Apache instead of omnihttpd, still nothing......
>
> please help me on this one....! :(
>
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

--- End Message ---
--- Begin Message ---
Not sure what you are trying to do here... are you trying to set $a from the
url i.e. http://blahblah.blah?a=1234 ? If yes then you will need to use
$_GET['a'] in your script as variables are no longer automatically assigned
from external sources... e.g.

<?
$a = 123;
echo 'Original value: '.$a;

$a = (isset($_GET['a']) ? $_GET['a'] : $a);
echo 'New value is: '.$a;
?>

HTH
Rich

-----Original Message-----
From: kata [mailto:[EMAIL PROTECTED]]
Sent: 23 November 2002 12:18
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] HELP !!!


ok, i am not a very good programmer, but i've used PHP+MySQL+omniHTTPd for
designing my web pages.
 here is the problem-

- i have installed everything above.
it just can use "GET_VARS" or something, because i have this little script
(test.php):

<?
echo $a;
$a=123;
echo $a;
?>

ok, i start IE, hit "localhost", it displays 123, but if i assign to "a"
something like a=adadada, it doesen't get the values, still displays
123....what i've done wrong, everything is setup as ussual, i've tryed
Apache instead of omnihttpd, still nothing......

please help me on this one....! :(




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



--- End Message ---
--- Begin Message ---
hi,
I got a problem in a simple file upload in a php file , i have two pages  and i m 
writing the code here as bellow

::page1.php::
<html>
 <head>
 </head>
 <body>
 <form name="f" method="post" enctype="multipart/form-data"  action="default2.php">
 <input type="hidden" name="MAX_FILE_SIZE" value="78728">
 Send this file: <input name="userfile" type="file">
 <input type="submit" value="Send File">
 </form>
 <body>
<html>

::default2.php::
move_uploaded_file($_FILES['userfile']['tmp_name'], 
"D:\\Raheel\\W3sites\\txtfiledemo\\uploads\\");
print($_FILES['userfile']['error']);


:: on default2.php i have the following error, which i can't figure out ::

Warning: Unable to create 'D:\W3sites\txtfiledemo\uploads\': Permission denied in 
D:\W3sites\txtfiledemo\default2.php on line 9

Warning: Unable to move 'c:\php\uploads\php76.tmp' to 
'D:\W3sites\txtfiledemo\uploads\' in D:\W3sites\txtfiledemo\default2.php on line 9
0




---------------------------------
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now
--- End Message ---

Reply via email to