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.

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

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,

[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

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

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

[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]

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

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.

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

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

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)

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:

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

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

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

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

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.

[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?)

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.

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,

[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

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

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

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

[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? --

[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

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

[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

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

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

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

[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

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

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

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'

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

[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

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.

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

[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,

<    1   2