RE: [PHP] JavaScript php question - mainly JS though so slightly OT but hep needed!!! :o)

2001-12-18 Thread Martin Towell

if you have lots of links, then doing it this way, IMO, would be
easier/better - so:
script
 function windowPopup(xx) { window.open(info.php?patch=+xx, _new,
windowattribs); }
/script

but if there's only a few links, then placing the window.open code in the
link would be easiest, i think.

-Original Message-
From: Martin Hughes [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 19, 2001 9:54 AM
To: [EMAIL PROTECTED]
Subject: [PHP] JavaScript  php question - mainly JS though so slightly
OT but hep needed!!! :o)


How could I write the function windowPopup(XX) where XX is a variable that
can change from link to link, for a popup info window to load a php file
with the variable XX in the url?

So the link would look like:
a href=javascript:windowPopup(XX);Link Text/a

and I want that link to open the page info.php?patch=XX in a new popup
window

Do I do it something like this, or is there a faster/better way??

Cheers  Merry X-Mas!

Martin



-- 
PHP General 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]



Re: [PHP] OPEN_BASEDIR from user point of view (instead server admin)

2001-12-18 Thread Jim Lucas

php will return you four $vars to work with.
check this out.
http://www.php.net/manual/en/features.file-upload.php

then work with the tmp file and get done with it what needs to be done
before the script closes cause php will delete the file when the script is
done.

jim
- Original Message -
From: M [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, December 18, 2001 2:45 PM
Subject: [PHP] OPEN_BASEDIR from user point of view (instead server admin)


 Hello, I posted a question some days ago, but no answers received. I
 notice many people discussing OPEN_BASEDIR apache restriction here, but
 all discussion are from server admin point of view.

 Let me ask question in another way:

 Is it possible to tell HTTP FORM  command the complete path/name
 into local server for file being uploaded?. Note upload made by input
 type=file  .. command.

 The reason for this question is posted into my original question (below)

 Thanks

 Miguel

 = previous msg posted at 10/12/01 =

 Now a question about uploading files (.gif .jpg) using form
 method=post to be stored into Mysql blob fields.

 I hope somebody here having sites on www.blueboxinternet.com hosting
 company, because I have big trouble there I can't solve, and support
 says I first shoud read faq because they have lot of customers with no
 problems.

 I make industrial and commercial catalogs, so my customers should be
 able to send (upload) pictures of products and goodies directly from
 their HD to site, these pictures stored in Mysql tables and shown when
 customer pages are called by someone.
 The only way I know to perform this is

 html
 Form actionmyscript.php method=POST Enctype=MULTIPART/FORM-DATA
 Enter filename input type=file name=myfile
 Input type=submit name=upload value=send
 /form

 ?PHP
   if($upload)
   {
 $fp=Fopen ($myfile,r);

/* here lot of commands to store file into mysql tables */
 ...
   }
 ?
 /html

 This script will store picture-file into some tmp directory on bluebox
 servers and will return tmp file name into $myfile var when script
 called again by 'form action' command. Then I can treat file and store
 in DB.

 This script worked fine on bluebox servers  until NOVEMBER 1st ,
 when they made some important changes on their servers. When this change

 happened, my script began to receive this error:

 Warning: open_basedir restriction in effect. File is in wrong directory
 in
 /home/httpd/vhosts/meucatalogo.com/web_users/gratis/rest_prox.php on
 line 25

 Bluebox support says I am recording my files on tmp directory with owner

 'someowner' and trying to read file with 'anotherowner' owner.
 I argue I have no control about owners and file modes into their servers

 (specially into their tmp directories), and that PHP performs this task
 in a transparent way for me. Thats to say, I have no tools to bypass
 this problem.
 Then they answer I shoud read faq.

 Case some of you have site using this (otherwise excellent web hosting)
 company, I would greatly appreciate what solution for upload files thru
 HTML forms there exists.
 =




 --
 PHP General 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 General 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]




Re: [PHP] PHP4 on Windows98 with PWS4

2001-12-18 Thread Alex Shi

Now I set extension_dir point to correct path in php.ini, the 
problem changed: it shows 500 internal server error.


- Original Message - 
From: Alex Shi [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, December 18, 2001 5:51 PM
Subject: [PHP] PHP4 on Windows98 with PWS4


 Hello, folks!
 
 I installed PHP4 on Windows 98 with PWS4. When I try to
 run a very simple script, I got a just one line error message 
 One of the library files needed to run this application cannot 
 be found. The script is very simple: ? phpinfo(); ?, so
 I don't think the error has anything to do with it. Anyone has
 idea what's wrong with it? Please help me out if you know
 this issue. Thanks in advance!
 
 Alex Shi
 
 
 
 -- 
 PHP General 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 General 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] Question: Should exit() print out the integer exit-status?

2001-12-18 Thread Jani Taskinen


background information:

http://bugs.php.net/bug.php?edit=1id=11008
http://bugs.php.net/bug.php?edit=1id=14574

exit() function is broken. Fixing the broken behaviour is the
only real solution, IMO.

One solution:

- When passed argument is string: print out this string
- When passed argument is integer: Don't print it, use it as exit-status

This is what is the expected behaviour is and I really can't think
of any good examples where this would fail. Nobody ever gave any.
And to get the REAL users (not only Zeev's opinion) I'm sending
this also to php-general.

From manual:

The exit() function terminates execution of the script. It prints
status just before exiting. If status is an integer, that value will be
used as exit-status.

This can be understood in many ways. If the status is integer,
it is used as exit-status..but it's not clear that it's ALSO printed out
which is simply buggy behaviour.

Now, if general concencus amongs the users of PHP is that it should
also print out the exit-status when it's an integer then 'shell_exit()'
function should be added.

--Jani




-- 
PHP General 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]




Re: [PHP] PHP4 on Windows98 with PWS4

2001-12-18 Thread Jim Lucas

make sure you copy all the correct dll's into the c:\windows\system or
system32 directory.  the dll's have to be in a location that is included in
the window PATH in the autoexec.bat
Jim
- Original Message -
From: Alex Shi [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, December 18, 2001 2:51 PM
Subject: [PHP] PHP4 on Windows98 with PWS4


 Hello, folks!

 I installed PHP4 on Windows 98 with PWS4. When I try to
 run a very simple script, I got a just one line error message
 One of the library files needed to run this application cannot
 be found. The script is very simple: ? phpinfo(); ?, so
 I don't think the error has anything to do with it. Anyone has
 idea what's wrong with it? Please help me out if you know
 this issue. Thanks in advance!

 Alex Shi



 --
 PHP General 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 General 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]




Re: [PHP] Working with designers...

2001-12-18 Thread Fred


Mark [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
well, you don't have to wade through all that html, just put an
include() in there to a file that has all the php in it. then
dreamweaver should leave it alone.

Huh?

Obviously the logic can be included, but the output functions need to be
burried deep in dreamweaver created nested tables and javascripts.

Fred



-- 
PHP General 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] Question

2001-12-18 Thread Phillip B. Bruce

Hi,

   By any chance that Luke Welling or Laura Thomson is on this list?

--

*** Phillip B. Bruce ***
*** http://pbbruce.home.mindspring.com   ***
*** [EMAIL PROTECTED]   ***
***  ***
*** Have you ever noticed? Anybody going slower than***
*** you is an idiot, and anyone going faster than you***
*** is a maniac. - George Carlin***





-- 
PHP General 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]




Re: [PHP] JavaScript php question - mainly JS though so slightly OT but hep needed!!! :o)

2001-12-18 Thread Jim Lucas

actually Martin, that is what Martin was doing.
href=javascript:function_name()  calls to a js function.

my suggestion would be to write it this way.

a href=#no_hash onClick=YourFunction(xx)text/a

that way, if the client clicks the link/button before the page is done
downloading the page. it won't stop the page from finishing.  if you do it
the way you wrote below.  the page will stop downloading, including the
images that havn't finished.

Jim
- Original Message -
From: Martin Towell [EMAIL PROTECTED]
To: 'Martin Hughes' [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, December 18, 2001 3:05 PM
Subject: RE: [PHP] JavaScript  php question - mainly JS though so slightly
OT but hep needed!!! :o)


 if you have lots of links, then doing it this way, IMO, would be
 easier/better - so:
 script
  function windowPopup(xx) { window.open(info.php?patch=+xx, _new,
 windowattribs); }
 /script

 but if there's only a few links, then placing the window.open code in the
 link would be easiest, i think.

 -Original Message-
 From: Martin Hughes [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, December 19, 2001 9:54 AM
 To: [EMAIL PROTECTED]
 Subject: [PHP] JavaScript  php question - mainly JS though so slightly
 OT but hep needed!!! :o)


 How could I write the function windowPopup(XX) where XX is a variable that
 can change from link to link, for a popup info window to load a php file
 with the variable XX in the url?

 So the link would look like:
 a href=javascript:windowPopup(XX);Link Text/a

 and I want that link to open the page info.php?patch=XX in a new popup
 window

 Do I do it something like this, or is there a faster/better way??

 Cheers  Merry X-Mas!

 Martin



 --
 PHP General 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 General 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]




Re: [PHP] Working with designers...

2001-12-18 Thread Mark

On Tue, 18 Dec 2001 16:00:09 -0800, Fred wrote:

Mark [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
well, you don't have to wade through all that html, just put an
include() in there to a file that has all the php in it. then
dreamweaver should leave it alone.

Huh?

Obviously the logic can be included, but the output functions need
to be
burried deep in dreamweaver created nested tables and javascripts.

hmm,
I'm assuming that javascript is the programmer's responsibility, not
the designer's. Maybe the javascript needs to be dynamically
generated, probably it doesn't. either way it's in a separate file
doesn't get edited in dreamweaver.

I understand that the php will probably have to be in a table and the
designer's will want to be able to change it's appearance, and that's
where css comes in. i.e.:

table class=php_table_class
  tr class=php_tr_class
td class=php_td_class
  div class=php_content_class?echo $dynamic_content?/div
/td
  /tr
/table

yes, there's some html in the included file, but the designer's don't
need to have access to it because they can just change how it looks
in the stylesheet.


--
PHP General 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]




Re: [PHP] 4.10

2001-12-18 Thread Brian Clark

* Mark ([EMAIL PROTECTED]) [Dec 18. 2001 17:44]:

 Hi, I'm trying to build php 4.10 with Ming support.
 (the ming I get from cvs that is supposed to work with 4.10)

[...]

 Configuring libtool
 checking build system type... i686-pc-linux-gnu
 checking for ld used by GCC... /usr/bin/ld
 checking if the linker (/usr/bin/ld) is GNU ld... yes
 checking for BSD-compatible nm... /usr/bin/nm -B
 updating cache ./config.cache
 ./ltconfig: ./ltconfig: No such file or directory
 configure: error: libtool configure failed

See:

http://marc.theaimsgroup.com/?l=php-devm=98968922501296w=2

-- 
Brian Clark | Avoiding the general public since 1805!
Fingerprint: 07CE FA37 8DF6 A109 8119 076B B5A2 E5FB E4D0 C7C8
$ mount -t neuro /dev/brain /mnt/head


-- 
PHP General 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]




Re: [PHP] Working with designers...

2001-12-18 Thread Jim Lucas

hope you don't plan to use that example table in netscape 4.x

- Original Message - 
From: Mark [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, December 18, 2001 4:10 PM
Subject: Re: [PHP] Working with designers...


On Tue, 18 Dec 2001 16:00:09 -0800, Fred wrote:

Mark [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
well, you don't have to wade through all that html, just put an
include() in there to a file that has all the php in it. then
dreamweaver should leave it alone.

Huh?

Obviously the logic can be included, but the output functions need
to be
burried deep in dreamweaver created nested tables and javascripts.

hmm,
I'm assuming that javascript is the programmer's responsibility, not 
the designer's. Maybe the javascript needs to be dynamically 
generated, probably it doesn't. either way it's in a separate file 
doesn't get edited in dreamweaver.

I understand that the php will probably have to be in a table and the 
designer's will want to be able to change it's appearance, and that's 
where css comes in. i.e.:

table class=php_table_class
  tr class=php_tr_class
td class=php_td_class
  div class=php_content_class?echo $dynamic_content?/div
/td
  /tr
/table

yes, there's some html in the included file, but the designer's don't 
need to have access to it because they can just change how it looks 
in the stylesheet.


-- 
PHP General 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 General 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]




Re: [PHP] JavaScript php question - mainly JS though so slightly OT but hep needed!!! :o)

2001-12-18 Thread Mark

On Tue, 18 Dec 2001 15:58:10 -0800, Jim Lucas wrote:
actually Martin, that is what Martin was doing.
href=javascript:function_name()  calls to a js function.

my suggestion would be to write it this way.

a href=#no_hash onClick=YourFunction(xx)text/a

better yet:
a href=javascript:void(0) onClick=YourFunction(xx)text/a

to keep weird browsers from doing things you don't expect (like
jumping to the top)

that way, if the client clicks the link/button before the page is
done
downloading the page. it won't stop the page from finishing.  if you
do it
the way you wrote below.  the page will stop downloading, including
the
images that havn't finished.

Jim
- Original Message -
From: Martin Towell [EMAIL PROTECTED]
To: 'Martin Hughes' [EMAIL PROTECTED]; php-
[EMAIL PROTECTED]
Sent: Tuesday, December 18, 2001 3:05 PM
Subject: RE: [PHP] JavaScript  php question - mainly JS though so
slightly
OT but hep needed!!! :o)


 if you have lots of links, then doing it this way, IMO, would be
 easier/better - so:
 script
 function windowPopup(xx) { window.open(info.php?patch=+xx,
_new,
 windowattribs); }
 /script

 but if there's only a few links, then placing the window.open code
in the
 link would be easiest, i think.

 -Original Message-
 From: Martin Hughes [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, December 19, 2001 9:54 AM
 To: [EMAIL PROTECTED]
 Subject: [PHP] JavaScript  php question - mainly JS though so
slightly
 OT but hep needed!!! :o)


 How could I write the function windowPopup(XX) where XX is a
variable that
 can change from link to link, for a popup info window to load a
php file
 with the variable XX in the url?

 So the link would look like:
 a href=javascript:windowPopup(XX);Link Text/a

 and I want that link to open the page info.php?patch=XX in a new
popup
 window

 Do I do it something like this, or is there a faster/better way??

 Cheers  Merry X-Mas!

 Martin



 --
 PHP General 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: php-list-
[EMAIL PROTECTED]







--
PHP General 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]




Re: [PHP] JavaScript php question - mainly JS though so slightly OT but hep needed!!! :o)

2001-12-18 Thread Jim Lucas

the bad thing is, it will still stop the browser from finishing the loading
of the page.

- Original Message -
From: Mark [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; Martin Towell [EMAIL PROTECTED];
[EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, December 18, 2001 4:16 PM
Subject: Re: [PHP] JavaScript  php question - mainly JS though so slightly
OT but hep needed!!! :o)


On Tue, 18 Dec 2001 15:58:10 -0800, Jim Lucas wrote:
actually Martin, that is what Martin was doing.
href=javascript:function_name()  calls to a js function.

my suggestion would be to write it this way.

a href=#no_hash onClick=YourFunction(xx)text/a

better yet:
a href=javascript:void(0) onClick=YourFunction(xx)text/a

to keep weird browsers from doing things you don't expect (like
jumping to the top)

that way, if the client clicks the link/button before the page is
done
downloading the page. it won't stop the page from finishing.  if you
do it
the way you wrote below.  the page will stop downloading, including
the
images that havn't finished.

Jim
- Original Message -
From: Martin Towell [EMAIL PROTECTED]
To: 'Martin Hughes' [EMAIL PROTECTED]; php-
[EMAIL PROTECTED]
Sent: Tuesday, December 18, 2001 3:05 PM
Subject: RE: [PHP] JavaScript  php question - mainly JS though so
slightly
OT but hep needed!!! :o)


 if you have lots of links, then doing it this way, IMO, would be
 easier/better - so:
 script
 function windowPopup(xx) { window.open(info.php?patch=+xx,
_new,
 windowattribs); }
 /script

 but if there's only a few links, then placing the window.open code
in the
 link would be easiest, i think.

 -Original Message-
 From: Martin Hughes [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, December 19, 2001 9:54 AM
 To: [EMAIL PROTECTED]
 Subject: [PHP] JavaScript  php question - mainly JS though so
slightly
 OT but hep needed!!! :o)


 How could I write the function windowPopup(XX) where XX is a
variable that
 can change from link to link, for a popup info window to load a
php file
 with the variable XX in the url?

 So the link would look like:
 a href=javascript:windowPopup(XX);Link Text/a

 and I want that link to open the page info.php?patch=XX in a new
popup
 window

 Do I do it something like this, or is there a faster/better way??

 Cheers  Merry X-Mas!

 Martin



 --
 PHP General 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: php-list-
[EMAIL PROTECTED]









-- 
PHP General 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]




Re: [PHP] PHP4 on Windows98 with PWS4

2001-12-18 Thread Alex Shi

Thank you!

I copied all the .dlls and point extension_dir to corrent path...Okay,
the library file not found problem seems fixed but now the problem
changed to 500 internal server error! I typed php -i from dos shell
and it print correct html code. And I tried both cgi and isapi mode
but got same error. It seems like this must be a web server config
problem but I don't how to find out a clue.

Alex



- Original Message -
From: Jim Lucas [EMAIL PROTECTED]
To: Alex Shi [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, December 18, 2001 6:52 PM
Subject: Re: [PHP] PHP4 on Windows98 with PWS4


 make sure you copy all the correct dll's into the c:\windows\system or
 system32 directory.  the dll's have to be in a location that is included
in
 the window PATH in the autoexec.bat
 Jim
 - Original Message -
 From: Alex Shi [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, December 18, 2001 2:51 PM
 Subject: [PHP] PHP4 on Windows98 with PWS4


  Hello, folks!
 
  I installed PHP4 on Windows 98 with PWS4. When I try to
  run a very simple script, I got a just one line error message
  One of the library files needed to run this application cannot
  be found. The script is very simple: ? phpinfo(); ?, so
  I don't think the error has anything to do with it. Anyone has
  idea what's wrong with it? Please help me out if you know
  this issue. Thanks in advance!
 
  Alex Shi
 
 
 
  --
  PHP General 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 General 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]




Re: [PHP] Working with designers...

2001-12-18 Thread Mike Eheler

LOL.

Use Netscape 4.

Now there's a condtradiction you don't hear every day.

Mike

Jim Lucas wrote:

 hope you don't plan to use that example table in netscape 4.x
 
 - Original Message - 
 From: Mark [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Sent: Tuesday, December 18, 2001 4:10 PM
 Subject: Re: [PHP] Working with designers...
 
 
 On Tue, 18 Dec 2001 16:00:09 -0800, Fred wrote:
 
Mark [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
well, you don't have to wade through all that html, just put an
include() in there to a file that has all the php in it. then
dreamweaver should leave it alone.

Huh?

Obviously the logic can be included, but the output functions need
to be
burried deep in dreamweaver created nested tables and javascripts.

 
 hmm,
 I'm assuming that javascript is the programmer's responsibility, not 
 the designer's. Maybe the javascript needs to be dynamically 
 generated, probably it doesn't. either way it's in a separate file 
 doesn't get edited in dreamweaver.
 
 I understand that the php will probably have to be in a table and the 
 designer's will want to be able to change it's appearance, and that's 
 where css comes in. i.e.:
 
 table class=php_table_class
   tr class=php_tr_class
 td class=php_td_class
   div class=php_content_class?echo $dynamic_content?/div
 /td
   /tr
 /table
 
 yes, there's some html in the included file, but the designer's don't 
 need to have access to it because they can just change how it looks 
 in the stylesheet.
 
 
 


-- 
PHP General 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]




Re: [PHP] OPEN_BASEDIR from user point of view (instead server admin)

2001-12-18 Thread M

Jim Lucas wrote:

 php will return you four $vars to work with.
 check this out.
 http://www.php.net/manual/en/features.file-upload.php

 then work with the tmp file and get done with it what needs to be done
 before the script closes cause php will delete the file when the script is
 done.

 jim

Thanks Jim. Yes, I know about these variables. I am using there (specially
$userfile) to fopen. Problem is with file permission on server side. I don't
know how to bypass this problem unless I could say to HTTP where to store temp
files instead storing in tmp default dir. Support people insists I am trying
to read files with different owner, but I am just client.


-- 
PHP General 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]




Re: [PHP] 4.10

2001-12-18 Thread Mark

On Tue, 18 Dec 2001 19:11:02 -0500, Brian Clark wrote:
* Mark ([EMAIL PROTECTED]) [Dec 18. 2001 17:44]:

 Hi, I'm trying to build php 4.10 with Ming support.
 (the ming I get from cvs that is supposed to work with 4.10)

[...]

 Configuring libtool
 checking build system type... i686-pc-linux-gnu
 checking for ld used by GCC... /usr/bin/ld
 checking if the linker (/usr/bin/ld) is GNU ld... yes
 checking for BSD-compatible nm... /usr/bin/nm -B
 updating cache ./config.cache
 ./ltconfig: ./ltconfig: No such file or directory
 configure: error: libtool configure failed

See:

http://marc.theaimsgroup.com/?l=php-devm=98968922501296w=2

Thanks Brian,
I tried that suggestion but it didn't work for me. I really wish I
didn't update libtool because configure was working fine before that.
Maybe I'll try to go back.

o- Mark


--
PHP General 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]




Re: [PHP] Working with designers...

2001-12-18 Thread Jim Lucas

well, the class tag in the tr won't work with ns6 , but fortunately for you
( sigh ) ns 6 does include the div tag.
- Original Message -
From: Mike Eheler [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, December 18, 2001 4:28 PM
Subject: Re: [PHP] Working with designers...


 LOL.

 Use Netscape 4.

 Now there's a condtradiction you don't hear every day.

 Mike

 Jim Lucas wrote:

  hope you don't plan to use that example table in netscape 4.x
 
  - Original Message -
  From: Mark [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
  Sent: Tuesday, December 18, 2001 4:10 PM
  Subject: Re: [PHP] Working with designers...
 
 
  On Tue, 18 Dec 2001 16:00:09 -0800, Fred wrote:
 
 Mark [EMAIL PROTECTED] wrote in message
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 well, you don't have to wade through all that html, just put an
 include() in there to a file that has all the php in it. then
 dreamweaver should leave it alone.
 
 Huh?
 
 Obviously the logic can be included, but the output functions need
 to be
 burried deep in dreamweaver created nested tables and javascripts.
 
 
  hmm,
  I'm assuming that javascript is the programmer's responsibility, not
  the designer's. Maybe the javascript needs to be dynamically
  generated, probably it doesn't. either way it's in a separate file
  doesn't get edited in dreamweaver.
 
  I understand that the php will probably have to be in a table and the
  designer's will want to be able to change it's appearance, and that's
  where css comes in. i.e.:
 
  table class=php_table_class
tr class=php_tr_class
  td class=php_td_class
div class=php_content_class?echo $dynamic_content?/div
  /td
/tr
  /table
 
  yes, there's some html in the included file, but the designer's don't
  need to have access to it because they can just change how it looks
  in the stylesheet.
 
 
 


 --
 PHP General 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 General 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] Re: Question: Should exit() print out the integer exit-status?

2001-12-18 Thread Yasuo Ohgaki

Jani Taskinen wrote:

 background information:
 
 http://bugs.php.net/bug.php?edit=1id=11008
 http://bugs.php.net/bug.php?edit=1id=14574
 
 exit() function is broken. Fixing the broken behaviour is the
 only real solution, IMO.


Since some people prefer to keep current behavior (for a while?)

How about just keep current behavior until ZE2? (PHP 5?)
ZE2 will break some ZE1 behavior, I suppose.
Making exit() to return return code is nice and would be
OK for ZE2. IMHO.

We really need to consider removing/changing legacy feature 
behavior at some point...

Error Level and Message handling in current source is one other
thing I would like to change :)
Do you want consistent error levels, error id, localized error
messges? I guess lots of you do ;)

 
 One solution:
 
 - When passed argument is string: print out this string
 - When passed argument is integer: Don't print it, use it as exit-status
 
 This is what is the expected behaviour is and I really can't think
 of any good examples where this would fail. Nobody ever gave any.
 And to get the REAL users (not only Zeev's opinion) I'm sending
 this also to php-general.
 
 From manual:
 
 The exit() function terminates execution of the script. It prints
 status just before exiting. If status is an integer, that value will be
 used as exit-status.
 
 This can be understood in many ways. If the status is integer,
 it is used as exit-status..but it's not clear that it's ALSO printed out
 which is simply buggy behaviour.

 
 Now, if general concencus amongs the users of PHP is that it should
 also print out the exit-status when it's an integer then 'shell_exit()'
 function should be added.
 
 --Jani



I agree. It's possilbe do this now, w/o much BC problem.

die()/exit() is identical in ZE1. How about make them separate?

If type is integer, die() for print and return exit code and exit()
for only return return code.

-- 
Yasuo Ohgaki


-- 
PHP General 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]




Re: [PHP] Working with designers...

2001-12-18 Thread Mark

On Tue, 18 Dec 2001 16:37:07 -0800, Jim Lucas wrote:
well, the class tag in the tr won't work with ns6 , but fortunately
for you
( sigh ) ns 6 does include the div tag.

well, I don't know what a designer would really want to do with tr
anyway but you got the general idea of what I'm saying.



- Original Message -
From: Mike Eheler [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, December 18, 2001 4:28 PM
Subject: Re: [PHP] Working with designers...


 LOL.

 Use Netscape 4.

 Now there's a condtradiction you don't hear every day.

 Mike

 Jim Lucas wrote:

  hope you don't plan to use that example table in netscape 4.x
 
  - Original Message -
  From: Mark [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]; php-
[EMAIL PROTECTED]
  Sent: Tuesday, December 18, 2001 4:10 PM
  Subject: Re: [PHP] Working with designers...
 
 
  On Tue, 18 Dec 2001 16:00:09 -0800, Fred wrote:
 
 Mark [EMAIL PROTECTED] wrote in message
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 well, you don't have to wade through all that html, just put an
 include() in there to a file that has all the php in it. then
 dreamweaver should leave it alone.
 
 Huh?
 
 Obviously the logic can be included, but the output functions
need
 to be
 burried deep in dreamweaver created nested tables and
javascripts.
 
 
  hmm,
  I'm assuming that javascript is the programmer's responsibility,
not
  the designer's. Maybe the javascript needs to be dynamically
  generated, probably it doesn't. either way it's in a separate
file
  doesn't get edited in dreamweaver.
 
  I understand that the php will probably have to be in a table
and the
  designer's will want to be able to change it's appearance, and
that's
  where css comes in. i.e.:
 
  table class=php_table_class
   tr class=php_tr_class
td class=php_td_class
 div class=php_content_class?echo
$dynamic_content?/div
/td
   /tr
  /table
 
  yes, there's some html in the included file, but the designer's
don't
  need to have access to it because they can just change how it
looks
  in the stylesheet.
 
 
 


 --
 PHP General 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: php-list-
[EMAIL PROTECTED]








--
PHP General 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]




Re: [PHP] JavaScript php question - mainly JS though so slightly OT but hep needed!!! :o)

2001-12-18 Thread Mark

On Tue, 18 Dec 2001 16:16:20 -0800, Jim Lucas wrote:
the bad thing is, it will still stop the browser from finishing the
loading
of the page.

not in any browser I've tried.


--
PHP General 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] Access rights for php files on Linux?

2001-12-18 Thread Daniel Fassnauer

Well, I have encounterd a problem which is quite big (for me), so I hope 
I find help here.
My setup is a Linux Machine, running Apache with php as a module.
In order for the webserver to parse the file, i have to give read 
permission to world.
This is a problem, because about 100 people have shell access and could 
then just cat /www/myphpfile.php, and would thus get passwords which i 
dont want to share (like mysql password in the phpmyadmin config file) 
and general access to my code. Also, the different users on the machine 
want to be able to host php files with everyone else being able to read 
them. Is there any way i can actually do that?
I must say that i am rather new to all this stuff, so i am really 
confused as what to do, and i would appreciate any help..
Thanks in advance...

Daniel


-- 
PHP General 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]




Re: [PHP] addslash/stripslashes

2001-12-18 Thread Michael Sims

At 09:49 PM 12/18/2001 +0100, TD - Sales International Holland B.V. wrote:
Also I'm looking for a small feature of HTML. I know this isn't the right
list so if you guys don't reply no hard feelings. At this moment I use meta
to refresh (go back to the form) after entering the data, you'll see a page
that it's succeeded (or failed for that matter) and than after 3 secs you'll
go back to the main empty form. However, I'd like to know a way other than
meta, since when an error occurs it can happen the HTML header is already
printed out and thus I can't use the meta tag anymore. I was thinking about
javascript or something but other ways are welcome since javascript can be
disabled in the browser.

Unless I'm misunderstanding you, something like:

?
header(Location: http://www.php.net/;);
?

should do the trick.  No need to mess with meta refresh tags.  Have your 
form post to itself and at the top of the page do your data validation.  If 
the validation failed, set an error string and display it at the top of the 
form.  Otherwise, use the header() function to direct them to the next page 
on your site.  The only drawback is that if you need variables on the next 
page you'll have to pass them as an URL parameter...

http://www.php.net/manual/en/function.header.php


-
Michael Sims
mhsims at midsouth dot rr dot com

The Web site you seek
Can not be located but
Countless more exist.
-


-- 
PHP General 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]




Re: [PHP] Access rights for php files on Linux?

2001-12-18 Thread Jim Lucas

your scripts have to have to be readable by your apache user/group  if it
can't read them then it can't run them.  now as for being allowed to only
view files of yours, you would want to place the apache user in your group.
this will give it access to read your files, but so will others running
apache, ie a person writes a php script that is ran by apache and then can
read your files because the process is running as the apache user which can
see your files.  so, to answer your question, no, there isn't a simple way
to do this.


- Original Message -
From: Daniel Fassnauer [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, December 18, 2001 4:56 PM
Subject: [PHP] Access rights for php files on Linux?


 Well, I have encounterd a problem which is quite big (for me), so I hope
 I find help here.
 My setup is a Linux Machine, running Apache with php as a module.
 In order for the webserver to parse the file, i have to give read
 permission to world.
 This is a problem, because about 100 people have shell access and could
 then just cat /www/myphpfile.php, and would thus get passwords which i
 dont want to share (like mysql password in the phpmyadmin config file)
 and general access to my code. Also, the different users on the machine
 want to be able to host php files with everyone else being able to read
 them. Is there any way i can actually do that?
 I must say that i am rather new to all this stuff, so i am really
 confused as what to do, and i would appreciate any help..
 Thanks in advance...

 Daniel


 --
 PHP General 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 General 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]




Re: [PHP] Working with designers...

2001-12-18 Thread Fred

Maybe you have never had to deal with a dreamweaver created web page, but it
deposits little javascript code all over the page for decoration.
Apparently the dreamweaver designers pick components like rollover menu
images etc and dreamweaver gladly disperses the javascript code throughout
the document.  Assuming the href's are going to be dynamic to account for
GET variables then the php coder has to dig through the javascript to place
a php element or generate the javascript dynamically, which is apparently
what these designers were trying to avoid.  i.e. they did not want anyone
touching their beautifully created dreamweaver document.

Fred

Mark [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
On Tue, 18 Dec 2001 16:00:09 -0800, Fred wrote:

Mark [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
well, you don't have to wade through all that html, just put an
include() in there to a file that has all the php in it. then
dreamweaver should leave it alone.

Huh?

Obviously the logic can be included, but the output functions need
to be
burried deep in dreamweaver created nested tables and javascripts.

hmm,
I'm assuming that javascript is the programmer's responsibility, not
the designer's. Maybe the javascript needs to be dynamically
generated, probably it doesn't. either way it's in a separate file
doesn't get edited in dreamweaver.

I understand that the php will probably have to be in a table and the
designer's will want to be able to change it's appearance, and that's
where css comes in. i.e.:

table class=php_table_class
  tr class=php_tr_class
td class=php_td_class
  div class=php_content_class?echo $dynamic_content?/div
/td
  /tr
/table

yes, there's some html in the included file, but the designer's don't
need to have access to it because they can just change how it looks
in the stylesheet.




-- 
PHP General 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] Re: Question

2001-12-18 Thread Fred

Don't recall seeing them here, but many of us have read their book if that
is of any help.

Fred

Phillip B. Bruce [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Hi,

By any chance that Luke Welling or Laura Thomson is on this list?

 --
 
 *** Phillip B. Bruce ***
 *** http://pbbruce.home.mindspring.com   ***
 *** [EMAIL PROTECTED]   ***
 ***  ***
 *** Have you ever noticed? Anybody going slower than***
 *** you is an idiot, and anyone going faster than you***
 *** is a maniac. - George Carlin***
 






-- 
PHP General 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] telneting sockets help..

2001-12-18 Thread brendan

hi

i have been trying to write a telnet client to a tn3270 IBM mainframe 
database ( pericles.ipaustralia.gov.au:23 ) using fsockopen ...
i thought it wouldnt be that bad given i have done something similar 
with usenet ..
however i cannot get it to work no matter what I do .. i just get a 
permanent hang ...
has anyone ever attempted this or have any solutions?

i know this is rather open ended but i cant offer any code which even 
kind of works..

it would be much appreciated..


-- 
PHP General 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]




RE: [PHP] telneting sockets help..

2001-12-18 Thread James Cox

Hi,

I had recent problems like this, and I traced it to firewall issues; however
i just checked the destination, and  found it is possible to telnet to that
port, so it's not a firewall issue on their side.

Try using the following code -- and let it run, see what response you get.

?php

$host = pericles.ipaustralia.gov.au;

$fp = fsockopen($host, 23, $errno, $errstr, 5);
   if (!($fp)) {
echo SOCKET ERROR: $errno - $errstrbr\n;
}

?

Hope that helps,

James Cox

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
James Cox :: Senior Support Engineer
Wherewithal, Inc. e: [EMAIL PROTECTED]
Wherewithal. Capture Creative Connections.
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
 -Original Message-
 From: brendan [mailto:[EMAIL PROTECTED]]
 Sent: 19 December 2001 04:12 AM
 To: [EMAIL PROTECTED]
 Subject: [PHP] telneting sockets help..


 hi

 i have been trying to write a telnet client to a tn3270 IBM mainframe
 database ( pericles.ipaustralia.gov.au:23 ) using fsockopen ...
 i thought it wouldnt be that bad given i have done something similar
 with usenet ..
 however i cannot get it to work no matter what I do .. i just get a
 permanent hang ...
 has anyone ever attempted this or have any solutions?

 i know this is rather open ended but i cant offer any code which even
 kind of works..

 it would be much appreciated..


 --
 PHP General 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 General 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] fgets and eval

2001-12-18 Thread Gerard Onorato

Hello all,

Okay here is the situation. I am reading a file using fgets up until I hit a certain 
delimiter within the text. No problem there. This text file may or may not 
contain php in the format ? blah ?. So I now have two variables $header and $footer 
which may or may not contain some php within them. I need to echo 
the variables at the top and bottom of other files but need any php that may be in 
there to execute.

 I tried echo(eval($header)) 

and I also tried

$header = addslashes($header); 
eval(\$header = \$header\;); 
$header= stripslashes($header); 
echo($header); 

The first produces and error, the second produces no error however only variables 
evaluate while actual commands, such as echo just get written into the 
code.

Any idea  what I may be doing wrong here?

Thanks,

Gerard



-- 
PHP General 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]




Re: [PHP] telneting sockets help..

2001-12-18 Thread brendan

hi james,
thanks for your reply  ..
i was able to connect ( i should have written that in the email) its 
getting the info to flush to the screen that i cant do .. it just hangs..

so if you add
something like

while (!feof($fp)) {
 echo fgets ($fp,128);
 }
 fclose ($fp);

to the end
you get nothing..

...
herein lies my second sleepless day..
i have been tyring to use the sockets() functions which have been 
added.. but they are badly documented and extremely unfriendly..

how did you manage to interact with your telnet server?
cheers
brendan


James Cox wrote:

 Hi,
 
 I had recent problems like this, and I traced it to firewall issues; however
 i just checked the destination, and  found it is possible to telnet to that
 port, so it's not a firewall issue on their side.
 
 Try using the following code -- and let it run, see what response you get.
 
 ?php
 
 $host = pericles.ipaustralia.gov.au;
 
 $fp = fsockopen($host, 23, $errno, $errstr, 5);
if (!($fp)) {
   echo SOCKET ERROR: $errno - $errstrbr\n;
 }
 
 ?
 
 Hope that helps,
 
 James Cox
 
 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
 James Cox :: Senior Support Engineer
 Wherewithal, Inc. e: [EMAIL PROTECTED]
 Wherewithal. Capture Creative Connections.
 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
 
-Original Message-
From: brendan [mailto:[EMAIL PROTECTED]]
Sent: 19 December 2001 04:12 AM
To: [EMAIL PROTECTED]
Subject: [PHP] telneting sockets help..


hi

i have been trying to write a telnet client to a tn3270 IBM mainframe
database ( pericles.ipaustralia.gov.au:23 ) using fsockopen ...
i thought it wouldnt be that bad given i have done something similar
with usenet ..
however i cannot get it to work no matter what I do .. i just get a
permanent hang ...
has anyone ever attempted this or have any solutions?

i know this is rather open ended but i cant offer any code which even
kind of works..

it would be much appreciated..


--
PHP General 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 General 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]




Re: [PHP] Error while calling a function

2001-12-18 Thread J.F.Kishor

Hello Sir,

Thanks for spending time for my mail and thanks for you kind
response, but sir though php is a server side scripting language it
supports the following tag

script language=php/script 

This is mentioned in the php manual, and I have done lot of scripts
of same kind using above tags an' all of them are working fine.

This is part of php manual
---

Migrating from PHP/FI 2.0 to PHP 3.0 
Start/end tags

   The first thing you probably will notice is that PHP's start and end
   tags have changed. The old ?  form has been replaced by three new
   possible forms:

   Example A-1. Migration: old start/end tags
? echo This is PHP/FI 2.0 code.\n; 

   As of version 2.0, PHP/FI also supports this variation:

   Example A-2. Migration: first new start/end tags
? echo This is PHP 3.0 code!\n; ?
   Notice that the end tag now consists of a question mark and a
   greater-than character instead of just greater-than. However, if you
   plan on using XML on your server, you will get problems with the first
   new variant, because PHP may try to execute the XML markup in XML
   documents as PHP code. Because of this, the following variation was
   introduced:

   Example A-3. Migration: second new start/end tags
?php echo This is PHP 3.0 code!\n; ?

   Some people have had problems with editors that don't understand the
   processing instruction tags at all. Microsoft FrontPage is one such
   editor, and as a workaround for these, the following variation was
   introduced as well:

   Example A-4. Migration: third new start/end tags
script language=php

  echo This is PHP 3.0 code!\n;
/script

 
Thanking you,

cheers :)
- JFK
kishor
Nilgiri Networks

On Tue, 18 Dec 2001, Jim Lucas wrote:

 Plus, what is the script language='php' tag for.
 PHP is a server side language, not client side.
 and you have the above mentioned tag inside of an IF statement.  so, if the
 statement doesn't return true, it will never print the openning tag but it
 will always print the closing /script tag.
 
 Jim
 - Original Message -
 From: J.F.Kishor [EMAIL PROTECTED]
 To: PHP Mailing List [EMAIL PROTECTED]
 Sent: Tuesday, December 18, 2001 5:26 AM
 Subject: [PHP] Error while calling a function
 
 


-- 
PHP General 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]




Re: [PHP] Access rights for php files on Linux?

2001-12-18 Thread Michael Geier

Use include files to pass your authentication information.

?
include('auth.php');
?

auth.php:
?
$username=foo;
$password=bar;
?

put auth.php in your home directory with you as owner and apache group id
as group, or create a group that contains you and apache user (probably
'nobody').

$ chmod 740 /your/home/dir/auth.php

On Wed, 19 Dec 2001, Daniel Fassnauer wrote:

 Well, I have encounterd a problem which is quite big (for me), so I hope
 I find help here.
 My setup is a Linux Machine, running Apache with php as a module.
 In order for the webserver to parse the file, i have to give read
 permission to world.
 This is a problem, because about 100 people have shell access and could
 then just cat /www/myphpfile.php, and would thus get passwords which i
 dont want to share (like mysql password in the phpmyadmin config file)
 and general access to my code. Also, the different users on the machine
 want to be able to host php files with everyone else being able to read
 them. Is there any way i can actually do that?
 I must say that i am rather new to all this stuff, so i am really
 confused as what to do, and i would appreciate any help..
 Thanks in advance...

 Daniel





-- 
PHP General 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] is_reference?

2001-12-18 Thread GaM3R

ok, the idea is this

foreach ( $_user_details as $key=$value ) {
$return_array[$key] = $_user_details[$key];
}

im doing that and i want that when $return_array gets updated and isnt a reference 
anymore to be able to add it to the sql for an update, thats no problem IF i can work 
out a way to test if its a reference or a new string to update the database with

any suggestions?

i know i can foreach and == test them but an is_reference would be faster if it 
existed :/


Cameron



RE: [PHP] Access rights for php files on Linux?

2001-12-18 Thread scott

For a little bit more security, you could find out what user
apache is running as (look in httpd.conf), and chown the
file to that user:group and set permissions 400.
(So that only the apache process can read the file)

However, this is not very secure, becuase a CGI script
could still read your file.  (Any file that is readable by
the webserver is, in essence, readable by any script being
executed by that webserver - which, to say the least, can
be a rather large security problem)

 -Original Message-
 From: Michael Geier [mailto:[EMAIL PROTECTED]]
 Subject: Re: [PHP] Access rights for php files on Linux?
 
 Use include files to pass your authentication information.
 
 ?
 include('auth.php');
 ?
 
 auth.php:
 ?
 $username=foo;
 $password=bar;
 ?
 
 put auth.php in your home directory with you as owner and apache group id
 as group, or create a group that contains you and apache user (probably
 'nobody').
 
 $ chmod 740 /your/home/dir/auth.php
 
 On Wed, 19 Dec 2001, Daniel Fassnauer wrote:
 
  Well, I have encounterd a problem which is quite big (for me), so I hope
  I find help here.
  My setup is a Linux Machine, running Apache with php as a module.
  In order for the webserver to parse the file, i have to give read
  permission to world.
  This is a problem, because about 100 people have shell access and could
  then just cat /www/myphpfile.php, and would thus get passwords which i
  dont want to share (like mysql password in the phpmyadmin config file)
  and general access to my code. Also, the different users on the machine
  want to be able to host php files with everyone else being able to read
  them. Is there any way i can actually do that?
  I must say that i am rather new to all this stuff, so i am really
  confused as what to do, and i would appreciate any help..
  Thanks in advance...
 
  Daniel


-- 
PHP General 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]




Re: [PHP] telneting sockets help..

2001-12-18 Thread Kancha .

I'm in a smilar situation. I'm trying to telnet to a
RAS server using php and the process justs hangs. I
tried to telnet to other linux servers as well and the
result was same. fsockopen to other ports such as 21
or even 25 workds. It's just the port 23 that's giving
this strange problem.

So far I haven't got a clue.


--- brendan [EMAIL PROTECTED] wrote:
 hi
 
 i have been trying to write a telnet client to a
 tn3270 IBM mainframe 
 database ( pericles.ipaustralia.gov.au:23 ) using
 fsockopen ...
 i thought it wouldnt be that bad given i have done
 something similar 
 with usenet ..
 however i cannot get it to work no matter what I do
 .. i just get a 
 permanent hang ...
 has anyone ever attempted this or have any
 solutions?
 
 i know this is rather open ended but i cant offer
 any code which even 
 kind of works..
 
 it would be much appreciated..
 
 
 -- 
 PHP General 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]
 


__
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

-- 
PHP General 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]




RE: [PHP] telneting sockets help..

2001-12-18 Thread Lawrence . Sheed

Have you tried setting socket blocking?
Here's what I do...

var $connection=0; 
$host = pericles.ipaustralia.gov.au;
$port=23;

switch( $connection=fsockopen($host,$port) )   { 
   case -3: 
return(-3 socket could not be created); 
   case -4: 
return(-4 dns lookup on host '$host' failed); 
   case -5: 
return(-5 connection refused or timed out); 
   case -6: 
return(-6 fdopen() call failed); 
   case -7: 
return(-7 setvbuf() call failed); 
   default: 
//let getline do its job bit by bit rather than timeout by timeout
;)
  set_socket_blocking ($connection,false);
  } 

Function GetLine() {
global $debug,$connection;
$line = fread($connection,128);
while(empty($line)){
$line = fread($connection,128);
usleep(25); 
}

//If debugging on, force output
if ($debug) {
print ($line) .br;
System(echo ''); 
flush;
}

return ($line);
}


print GetLine();

-Original Message-
From: brendan [mailto:[EMAIL PROTECTED]]
Sent: December 19, 2001 1:04 PM
To: [EMAIL PROTECTED]; James Cox
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] telneting sockets help..


hi james,
thanks for your reply  ..
i was able to connect ( i should have written that in the email) its 
getting the info to flush to the screen that i cant do .. it just hangs..

so if you add
something like

while (!feof($fp)) {
 echo fgets ($fp,128);
 }
 fclose ($fp);

to the end
you get nothing..

...
herein lies my second sleepless day..
i have been tyring to use the sockets() functions which have been 
added.. but they are badly documented and extremely unfriendly..

how did you manage to interact with your telnet server?
cheers
brendan


James Cox wrote:

 Hi,
 
 I had recent problems like this, and I traced it to firewall issues;
however
 i just checked the destination, and  found it is possible to telnet to
that
 port, so it's not a firewall issue on their side.
 
 Try using the following code -- and let it run, see what response you get.
 
 ?php
 
 $host = pericles.ipaustralia.gov.au;
 
 $fp = fsockopen($host, 23, $errno, $errstr, 5);
if (!($fp)) {
   echo SOCKET ERROR: $errno - $errstrbr\n;
 }
 
 ?
 
 Hope that helps,
 
 James Cox
 
 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
 James Cox :: Senior Support Engineer
 Wherewithal, Inc. e: [EMAIL PROTECTED]
 Wherewithal. Capture Creative Connections.
 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
 
-Original Message-
From: brendan [mailto:[EMAIL PROTECTED]]
Sent: 19 December 2001 04:12 AM
To: [EMAIL PROTECTED]
Subject: [PHP] telneting sockets help..


hi

i have been trying to write a telnet client to a tn3270 IBM mainframe
database ( pericles.ipaustralia.gov.au:23 ) using fsockopen ...
i thought it wouldnt be that bad given i have done something similar
with usenet ..
however i cannot get it to work no matter what I do .. i just get a
permanent hang ...
has anyone ever attempted this or have any solutions?

i know this is rather open ended but i cant offer any code which even
kind of works..

it would be much appreciated..


--
PHP General 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 General 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 General 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]




Re: [PHP] telneting sockets help..

2001-12-18 Thread brendan

ta lawrence ..

did you get that to work on your server side??
if so maybe its a m$IIS problem (which i am forced to run off)  .. 
because that code hangs here too
cheers

brendan


Lawrence Sheed wrote:

 Have you tried setting socket blocking?
 Here's what I do...
 
 var $connection=0; 
 $host = pericles.ipaustralia.gov.au;
 $port=23;
 
 switch( $connection=fsockopen($host,$port) )   { 
case -3: 
 return(-3 socket could not be created); 
case -4: 
 return(-4 dns lookup on host '$host' failed); 
case -5: 
 return(-5 connection refused or timed out); 
case -6: 
 return(-6 fdopen() call failed); 
case -7: 
 return(-7 setvbuf() call failed); 
default: 
   //let getline do its job bit by bit rather than timeout by timeout
 ;)
   set_socket_blocking ($connection,false);
   } 
 
 Function GetLine() {
   global $debug,$connection;
   $line = fread($connection,128);
   while(empty($line)){
   $line = fread($connection,128);
   usleep(25); 
   }
 
   //If debugging on, force output
   if ($debug) {
   print ($line) .br;
   System(echo ''); 
   flush;
   }
 
   return ($line);
 }
 
 
 print GetLine();
 
 -Original Message-
 From: brendan [mailto:[EMAIL PROTECTED]]
 Sent: December 19, 2001 1:04 PM
 To: [EMAIL PROTECTED]; James Cox
 Cc: [EMAIL PROTECTED]
 Subject: Re: [PHP] telneting sockets help..
 
 
 hi james,
 thanks for your reply  ..
 i was able to connect ( i should have written that in the email) its 
 getting the info to flush to the screen that i cant do .. it just hangs..
 
 so if you add
 something like
 
 while (!feof($fp)) {
  echo fgets ($fp,128);
  }
  fclose ($fp);
 
 to the end
 you get nothing..
 
 ...
 herein lies my second sleepless day..
 i have been tyring to use the sockets() functions which have been 
 added.. but they are badly documented and extremely unfriendly..
 
 how did you manage to interact with your telnet server?
 cheers
 brendan
 
 
 James Cox wrote:
 
 
Hi,

I had recent problems like this, and I traced it to firewall issues;

 however
 
i just checked the destination, and  found it is possible to telnet to

 that
 
port, so it's not a firewall issue on their side.

Try using the following code -- and let it run, see what response you get.

?php

$host = pericles.ipaustralia.gov.au;

$fp = fsockopen($host, 23, $errno, $errstr, 5);
   if (!($fp)) {
  echo SOCKET ERROR: $errno - $errstrbr\n;
}

?

Hope that helps,

James Cox

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
James Cox :: Senior Support Engineer
Wherewithal, Inc. e: [EMAIL PROTECTED]
Wherewithal. Capture Creative Connections.
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .


-Original Message-
From: brendan [mailto:[EMAIL PROTECTED]]
Sent: 19 December 2001 04:12 AM
To: [EMAIL PROTECTED]
Subject: [PHP] telneting sockets help..


hi

i have been trying to write a telnet client to a tn3270 IBM mainframe
database ( pericles.ipaustralia.gov.au:23 ) using fsockopen ...
i thought it wouldnt be that bad given i have done something similar
with usenet ..
however i cannot get it to work no matter what I do .. i just get a
permanent hang ...
has anyone ever attempted this or have any solutions?

i know this is rather open ended but i cant offer any code which even
kind of works..

it would be much appreciated..


--
PHP General 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 General 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] Re: kancha [PHP] telneting sockets help..

2001-12-18 Thread brendan

have you tried the client script at http://php.ca/manual/en/ref.sockets.php
??
this seems to (kind of) work ..
however i get a ton of warning messsages from php such as

Attempting to connect to '202.14.186.30' on port '23'...
Warning: socket_connect() expects parameter 1 to be resource, boolean
Warning: socket_read() expects parameter 1 to be resource, boolean given
Warning: socket_write() expects parameter 1 to be resource, boolean
Warning: socket_close() expects parameter 1 to be resource, boolean

not sure why

might be different for you?
cheers


Kancha . wrote:

 I'm in a smilar situation. I'm trying to telnet to a
 RAS server using php and the process justs hangs. I
 tried to telnet to other linux servers as well and the
 result was same. fsockopen to other ports such as 21
 or even 25 workds. It's just the port 23 that's giving
 this strange problem.
 
 So far I haven't got a clue.
 
 
 --- brendan [EMAIL PROTECTED] wrote:
 
hi

i have been trying to write a telnet client to a
tn3270 IBM mainframe 
database ( pericles.ipaustralia.gov.au:23 ) using
fsockopen ...
i thought it wouldnt be that bad given i have done
something similar 
with usenet ..
however i cannot get it to work no matter what I do
.. i just get a 
permanent hang ...
has anyone ever attempted this or have any
solutions?

i know this is rather open ended but i cant offer
any code which even 
kind of works..

it would be much appreciated..


-- 
PHP General 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]


 
 
 __
 Do You Yahoo!?
 Check out Yahoo! Shopping and Yahoo! Auctions for all of
 your unique holiday gifts! Buy at http://shopping.yahoo.com
 or bid at http://auctions.yahoo.com
 


-- 
PHP General 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]




Re: [PHP] fgets and eval

2001-12-18 Thread Greg Donald


 Okay here is the situation. I am reading a file using fgets up until I hit
a certain delimiter within the text. No problem there. This text file may or
may not
 contain php in the format ? blah ?. So I now have two variables $header
and $footer which may or may not contain some php within them. I need to
echo
 the variables at the top and bottom of other files but need any php that
may be in there to execute.

  I tried echo(eval($header))

 and I also tried

 $header = addslashes($header);
 eval(\$header = \$header\;);
 $header= stripslashes($header);
 echo($header);

 The first produces and error, the second produces no error however only
variables evaluate while actual commands, such as echo just get written into
the
 code.

 Any idea  what I may be doing wrong here?

Try this, it's from a template parsing function I wrote:

$header = str_replace(\\',',addslashes($header));
eval(\$header = \$header\;);

Greg



-- 
PHP General 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]




Re: [PHP] telneting sockets help..

2001-12-18 Thread Kernel Panic

Hanging is normal accroding to your code, because the telnet server is
waiting for your handshake signal in order to telnet successfully, you
need to follow the protocal in rfc strictly.

I've wrote a telnet class, although it;s a very rough one, but it work. If
anybody have any change on it, please let me know. thx.

Lawrence Sheed [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]
...
 Have you tried setting socket blocking?
 Here's what I do...

 var $connection=0;
 $host = pericles.ipaustralia.gov.au;
 $port=23;

 switch( $connection=fsockopen($host,$port) )   {
case -3:
 return(-3 socket could not be created);
case -4:
 return(-4 dns lookup on host '$host' failed);
case -5:
 return(-5 connection refused or timed out);
case -6:
 return(-6 fdopen() call failed);
case -7:
 return(-7 setvbuf() call failed);
default:
 //let getline do its job bit by bit rather than timeout by timeout
 ;)
   set_socket_blocking ($connection,false);
   }

 Function GetLine() {
 global $debug,$connection;
 $line = fread($connection,128);
 while(empty($line)){
 $line = fread($connection,128);
 usleep(25);
 }

 //If debugging on, force output
 if ($debug) {
 print ($line) .br;
 System(echo '');
 flush;
 }

 return ($line);
 }


 print GetLine();

 -Original Message-
 From: brendan [mailto:[EMAIL PROTECTED]]
 Sent: December 19, 2001 1:04 PM
 To: [EMAIL PROTECTED]; James Cox
 Cc: [EMAIL PROTECTED]
 Subject: Re: [PHP] telneting sockets help..


 hi james,
 thanks for your reply  ..
 i was able to connect ( i should have written that in the email) its
 getting the info to flush to the screen that i cant do .. it just hangs..

 so if you add
 something like

 while (!feof($fp)) {
  echo fgets ($fp,128);
  }
  fclose ($fp);

 to the end
 you get nothing..

 ...
 herein lies my second sleepless day..
 i have been tyring to use the sockets() functions which have been
 added.. but they are badly documented and extremely unfriendly..

 how did you manage to interact with your telnet server?
 cheers
 brendan


 James Cox wrote:

  Hi,
 
  I had recent problems like this, and I traced it to firewall issues;
 however
  i just checked the destination, and  found it is possible to telnet to
 that
  port, so it's not a firewall issue on their side.
 
  Try using the following code -- and let it run, see what response you
get.
 
  ?php
 
  $host = pericles.ipaustralia.gov.au;
 
  $fp = fsockopen($host, 23, $errno, $errstr, 5);
 if (!($fp)) {
  echo SOCKET ERROR: $errno - $errstrbr\n;
  }
 
  ?
 
  Hope that helps,
 
  James Cox
 
  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
  James Cox :: Senior Support Engineer
  Wherewithal, Inc. e: [EMAIL PROTECTED]
  Wherewithal. Capture Creative Connections.
  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
 
 -Original Message-
 From: brendan [mailto:[EMAIL PROTECTED]]
 Sent: 19 December 2001 04:12 AM
 To: [EMAIL PROTECTED]
 Subject: [PHP] telneting sockets help..
 
 
 hi
 
 i have been trying to write a telnet client to a tn3270 IBM mainframe
 database ( pericles.ipaustralia.gov.au:23 ) using fsockopen ...
 i thought it wouldnt be that bad given i have done something similar
 with usenet ..
 however i cannot get it to work no matter what I do .. i just get a
 permanent hang ...
 has anyone ever attempted this or have any solutions?
 
 i know this is rather open ended but i cant offer any code which even
 kind of works..
 
 it would be much appreciated..
 
 
 --
 PHP General 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 General 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]


begin 666 telnet.php
M/#]P:' @+RH-D9I;4@;F%M93H@+VEN8VQU94O=5L;F5T+G!H T*#0I$
M97-CFEP=]NSH-@E#;%SR!F;W(@=5L;F5T(-O;FYE8W1I;VXL(AA
M;F1E;!T96QN970@:%N9'-H86ME+!A;F0@=5L;F5T(-O;FYE8W1I;VX-
M@T*075T:]R.B @( @( @1%V:60@3%U( @( R,# Q+SDO,3D-@T*
M4F5M87)KSH@268@6]U(-H86YG92!A;GD@V-R:7!T+!P;5AV4@96UA
M:6P@=\@9%V:61L0'1A;5N=EN9F\N8V]M+FAK#0H-DUO9EF:6-A=EO
M;B!(:7-T;W)Y.@T*#0I087)A;65T97)S.@T**B\-@T*+R\)9F]L;]W:6YG
M(-O;G-T86YT(9R;VT@F9C.#4T#0II9B H(61E9FEN960H(DY53(I*2![
M#0H)95F:6YE*).54PB+!C:'(H,DI.PT*?0T*:68@*%D969I;F5D*),
M1B(I*2![#0H)95F:6YE*),1B(L(-HB@Q,DI.PT*?0T*:68@*%D969I
M;F5D*)#4B(I*2![#0H)95F:6YE*)#4B(L(-HB@Q,RDI.PT*?0T*:68@
M*%D969I;F5D*)312(I*2![#0H)95F:6YE*)312(L(-HB@R-# I*3L-
MGT-FEF(@A95F:6YE9@B4T(B*2D@PT*61E9FEN92@B4T(B+!C:'(H
M,C4P*2D[#0I]#0II9B H(61E9FEN960H(E=)3$PB*2D@PT*61E9FEN92@B
M5TE,3(L(-HB@R-3$I*3L-GT-FEF(@A95F:6YE9@B5T].5(I*2![
M#0H)95F:6YE*)73TY4(BP@8VAR*#(U,BDI.PT*?0T*:68@*%D969I;F5D
M*)?1$\B*2D@PT*61E9FEN92@B7T1/(BP@8VAR*#(U,RDI.PT*?0T*:68@

[PHP] HELP read write???

2001-12-18 Thread NZeeman

HI
I See that the read and write functions have been discontinued in 4.1.0
can anyone tell me if they have been replaced with onther functions that
replace their functionality or how I could implement something like this :
read( stdin , $buff, $length );
write( stdout, $str_return, strlen( $str_returb ) );

Thanks for any help at all !

--
NZ
BTECH

I love deadlines
I like the sound they make when they rush past




-- 
PHP General 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]




<    1   2