[PHP] Re: Probs with a form

2003-07-05 Thread therm
Lpa wrote: Hey, I must send datas threw a form, but I dont want to have a submit button.. Is there a way to 'simulate' the click of a submit button? Thnx for your help Laurent You could use Javascript, i.e. when cursor leaves the last form element use the relevant function (sorry can't

php-general Digest 5 Jul 2003 06:54:22 -0000 Issue 2157

2003-07-05 Thread php-general-digest-help
php-general Digest 5 Jul 2003 06:54:22 - Issue 2157 Topics (messages 154011 through 154035): Re: Snarl, hiss, growl (frustration) 154011 by: Robert Cummings 154012 by: Rasmus Lerdorf 154020 by: Robert Cummings 154021 by: Rasmus Lerdorf 154022 by: Kyle

RE: [PHP] how to :: multi select

2003-07-05 Thread Thomas Hochstetter
Thanks guys. I will have a look at the array[] convention. Meanwhile I did my own thing by naming them all different and parsing the $QUERY_STRING for them. It is a mess! So thanks again! Cheers Thomas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Problem about insert some chinese into MySQL db

2003-07-05 Thread Erick
There will have some error of words I tried addslashes(stripslashes($String)) But also can't work -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Builing PHP with Courier-IMAP

2003-07-05 Thread Jason Wong
On Saturday 05 July 2003 06:05, Fisayo Adeleke wrote: I run courier-imap, but I have problems when trying to build php with imap support. It gives the error message configure: error: Cannot find imap library (libc-client.a). Please check your IMAP installation. If you're using Redhat then

Re: [PHP] mail()

2003-07-05 Thread Jason Wong
On Saturday 05 July 2003 02:57, Phil Dowson wrote: Could someone let me know if it is possible to pass a resultset of a query to a single variable so it can be included as the message part of the mail function? Short answer: yes Long answer: what exactly are you trying to do and what exactly

Re: [PHP] Problem about insert some chinese into MySQL db

2003-07-05 Thread Jason Wong
On Saturday 05 July 2003 16:10, Erick wrote: There will have some error of words What errors? I tried addslashes(stripslashes($String)) But also can't work Try using mysql_escape_string() or mysql_real_escape_string(). -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source

Re: [PHP] Problem about insert some chinese into MySQL db

2003-07-05 Thread Erick
What errors? Can't display those words. -- Jason Wong [EMAIL PROTECTED] ¼¶¼g©ó¶l¥ó·s»D :[EMAIL PROTECTED] On Saturday 05 July 2003 16:10, Erick wrote: There will have some error of words What errors? I tried addslashes(stripslashes($String)) But also can't work Try using

Re: [PHP] mail()

2003-07-05 Thread Dan Anderson
Could someone let me know if it is possible to pass a resultset of a query to a single variable so it can be included as the message part of the mail function? if I were you I would try something like... ?php $result = mysql_query($query); $email = NULL; // it's bad form to dot without

Re: [PHP] Probs with a form

2003-07-05 Thread Lars Torben Wilson
On Fri, 2003-07-04 at 15:02, LPA wrote: Hey, I must send datas threw a form, but I dont want to have a submit button.. Is there a way to 'simulate' the click of a submit button? Thnx for your help Laurent Hi there, This is really an HTML question, and not a PHP question, but use an

[PHP] Timing out fopen using https stream wrapper?

2003-07-05 Thread Giz
I have a class that uses fopen to read some xml data from a site with ongoing stability issues. Fopen is using the stream wrapper for http. Something I've struggled with is finding a way to set a timeout value when fopen is attempting to get a page from a site that is inaccessible for some

Re: [PHP] Timing out fopen using https stream wrapper?

2003-07-05 Thread Dan Anderson
It seems I have been over the documentation repeatedly, but there simply isn't any documented way of setting a timeout duration. Any ideas? If you want to set a time out on execution of the /script/, check out: http://us3.php.net/manual/en/function.set-time-limit.php -Dan -- PHP General

[PHP] Authorization script

2003-07-05 Thread Kyle Babich
I am making an authorizatoin script for the control panel of a loggin system I have been writing. Here is what I have right now: ?php require_once('config.inc.php'); $authorized = 0; $getUser = $_SERVER['PHP_AUTH_USER']; $getPass = $_SERVER['PHP_AUTH_PW']; if (($getUser == $user) ($getPass ==

Re: [PHP] Authorization script

2003-07-05 Thread Dan Anderson
The problem is that if a user clicks cancel the control panel loads instead of the program dying. Why and how do I stop it? Please provide more info -- like what do you mean by if the user clicks cancel. -Dan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Authorization script

2003-07-05 Thread Chris Knipe
I am making an authorizatoin script for the control panel of a loggin system I have been writing. Here is what I have right now: Well, if you copied and paste'd this, then I'm surprised that you don't get a syntax error if (!$authorized) { header('Cache-Control: no-store, no-cache,

Re: [PHP] A php-mysql checkbox question

2003-07-05 Thread Lowell Allen
From: John T. Beresford [EMAIL PROTECTED] I have a problem trying to show a checkbox list and have some of the boxes checked and not others. Here are the details: table: features rec_id | fName - 1 | Window - 2 | pool -

[PHP] Limit output of query field

2003-07-05 Thread fkeessen
Hi there, Hope you can help me with the following: I have a query and i'm showing the output: echo $row-text; That goes o.k. but the text is 400 characters long and I only one to show the first 50 characters and at the end showing ... dot's.. Help! Thank you very much! Frank -- PHP

Re: [PHP] Limit output of query field

2003-07-05 Thread Dan Anderson
Look up the function substr. It will allow you to create a string of the first 50 chars from your 400 char string. -Dan On Sat, 2003-07-05 at 09:58, [EMAIL PROTECTED] wrote: Hi there, Hope you can help me with the following: I have a query and i'm showing the output: echo $row-text;

RE: [PHP] Limit output of query field

2003-07-05 Thread Audun Larsen
Try this: if(strlen($row-text)50) { echo substr($row-text,0,47) . ...; } else { echo $row-text; } - Audun -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Saturday, July 05, 2003 3:59 PM To: [EMAIL PROTECTED] Subject: [PHP] Limit output of query field

Re: [PHP] Limit output of query field

2003-07-05 Thread Marek Kilimajer
Make it with your sql query, it will be faster: SELECT ..., IF(LENGTH(text)50, CONCAT(SUBSTRING(text,0,50),'...'), text) as text [EMAIL PROTECTED] wrote: Hi there, Hope you can help me with the following: I have a query and i'm showing the output: echo $row-text; That goes o.k. but the text

Re: [PHP] Limit output of query field

2003-07-05 Thread Dan Anderson
Make it with your sql query, it will be faster: SELECT ..., IF(LENGTH(text)50, CONCAT(SUBSTRING(text,0,50),'...'), text) as text I won't outright disagree, but warn fkessen to be careful. There are some scenarios in which that would not be faster. -Dan -- PHP General Mailing List

[PHP] Permission Problem

2003-07-05 Thread Mr|P
I moved from myphpnuke to phpnuke. When trying to register a new user account on the website it get the error: You are trying to access a restricted area. We are Sorry, but this section of our site is for Registered Users Only. Thanks for your help. -- PHP General Mailing List

[PHP] simple query help

2003-07-05 Thread Paul Ferrie
Hi guys, I am working on a flash forum for my site. Came with the FOED book, anyways i am tyring to delete the threadCount by -1 from the db. could below does dlete the count but in multipules of 2. Anyone cheers $query = UPDATE forumForums SET threadCount = threadCount -1 WHERE forumID =

Re: [PHP] simple query help

2003-07-05 Thread Marek Kilimajer
because you execute the query twice. Remove the last line, it is not needed as UPDATE does not return any result. Paul Ferrie wrote: Hi guys, I am working on a flash forum for my site. Came with the FOED book, anyways i am tyring to delete the threadCount by -1 from the db. could below does

Re: [PHP] Permission Problem

2003-07-05 Thread Marek Kilimajer
Go to admin - Modules, and set Your_Account to be visible to all visitors. Mr|P wrote: I moved from myphpnuke to phpnuke. When trying to register a new user account on the website it get the error: You are trying to access a restricted area. We are Sorry, but this section of our site is for

Re: [PHP] mail()

2003-07-05 Thread Phil Dowson
Perfect solution. Thanks!!! - Original Message - From: Dan Anderson [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, July 05, 2003 4:30 am Subject: Re: [PHP] mail() Could someone let me know if it is possible to pass a resultset of a query to a single variable so it can

[PHP] Help a newbie.

2003-07-05 Thread Michael Whiting
Hey everyone. I was hoping you could help with something. I am trying to create a thumbnail image gallery using PHP and cookies. The idea is that different series of images can be viewed by clicking on + and - links that will then show or hide the thumbnails. Ie show/hide different rows of a

[PHP] Help a newbie 2.

2003-07-05 Thread Michael Whiting
Sorry - here's the HTML source. Don't laugh :) !doctype html public -//W3C//DTD HTML 4.01 Transitional//ENhtml head style type=text/css !-- body {margin:50;} -- /style titleai-em.net | image gallery/title link rel=stylesheet href=style.css type=text/css meta http-equiv=Content-Type

[PHP] ip's behind proxy-server

2003-07-05 Thread Paul van der Linden
I've a problem: I need to block accounts with the same ip, but if it's a proxy-server you get only the proxy-server ip's. I downloaded somewhere this script: ?php $proxy=; $IP = ; if (isSet($_SERVER)) { if (isSet($_SERVER[HTTP_X_FORWARDED_FOR])) { $IP = $_SERVER[HTTP_X_FORWARDED_FOR]; $proxy =

Re: [PHP] Help a newbie.

2003-07-05 Thread Dan Anderson
If I were you I would create a mySQL (or Postgresql) database containing all of the thumbnails. Use the row id of the mySQL (Postgresql) table to decide which row to display. You probably will want to look up the documentation and/or google. -Dan On Sat, 2003-07-05 at 11:44, Michael Whiting

Re: [PHP] ip's behind proxy-server

2003-07-05 Thread Jason Sheets
By design many proxies are designed to allow the client to be anonymous as well as proxy the connection, so they will not ever reveal the clients IP address. Not only that but on some ISPS (AOL) the users proxy may change with each request, making tracking the user by the IP not practical or

Re: [PHP] Help a newbie 2.

2003-07-05 Thread Reuben D. Budiardja
On Saturday 05 July 2003 11:47 am, Michael Whiting wrote: Sorry - here's the HTML source. Don't laugh :) snip if ($view1 = true): That statement will always evaluate to true. You may need if($view1 == true) notice the double equal sign if ($view1 = false): Same here RDB -- PHP

[PHP] sqlite_seek() problem

2003-07-05 Thread Alan D'Angelo
Hello, I would want to make a question over the function sqlite_seek(), why it is giving to me of the problems. When I make a query with sqlite_query() and use sqlite_fetch_array() all works well: Example: $result = sqlite_query('SELECT * FROM test', $conn); while($row =

[PHP] Delimiter must not be alphanumeric or backslash

2003-07-05 Thread Gentian Hila
hello there, I am just learning PHP now, so i am very new to it. I was trying the following code which i received from a PHP book. I am using Version 4.3.1 installed in windows ? $text = pot post pat patent; if(preg_match( \bp\w+t\b, $text, $array ) ) print $array[0]; ? I was expecting

Re: [PHP] Delimiter must not be alphanumeric or backslash

2003-07-05 Thread Alan D'Angelo
Try this: ?php $text = pot post pat patent; if(preg_match(/\bp\w+t\b/, $text, $array)){ print $array[0]; } ? the pattern in preg_match() does not have correct limit :) - Original Message - From: Gentian Hila [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, July 05, 2003

[PHP] Failed to Receive in E:\...\mailscript.php on line 25

2003-07-05 Thread Håkon Strandenes
Hi, I am making a small PHP script for managing a simple mailing list. The PHP script is added in the bottom of this message. This PHP script works great on IIS 5.1 with PHP 4.3.0, witch I have installed locally on my system to test my scripts. But when I transfer the script over to my host

[PHP] Re: Failed to Receive in E:\...\mailscript.php on line 25

2003-07-05 Thread Thomas Seifert
are you sure that the smtp-settings in php.ini are correct on your host's server? Thomas On Sat, 5 Jul 2003 20:15:14 +0200 [EMAIL PROTECTED] (Håkon strandenes) wrote: Hi, I am making a small PHP script for managing a simple mailing list. The PHP script is added in the bottom of this

Re: [PHP] Red Hat 9, Apache 2, and PHP

2003-07-05 Thread o_j_p_p
Hello Jeff Schwartz, I heard that Apache 2 is not a stable web server using PHP parser, for this reasoun I think that in the php.net web site have said that. bye. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Q on echo phpinfo() ;

2003-07-05 Thread jsWalter
I ran this as a script from my Apache and it gave me a beautiful web page just full of wonderful information! But I have a question on just 1 item... Configuration File (piping) Path C:\WINNIT How does this value get set? My PHP is installed at 'G:\etc\php' My php.ini is there as well. The

php-general Digest 5 Jul 2003 19:21:43 -0000 Issue 2158

2003-07-05 Thread php-general-digest-help
php-general Digest 5 Jul 2003 19:21:43 - Issue 2158 Topics (messages 154036 through 154072): Re: how to :: multi select 154036 by: Thomas Hochstetter Problem about insert some chinese into MySQL db 154037 by: Erick 154040 by: Jason Wong 154041 by: Erick Re:

RE: [PHP] Re: Failed to Receive in E:\...\mailscript.php on line 25

2003-07-05 Thread Håkon Strandenes
No, actually not. But i think so. This is the server to my ISP, so I cannot change it. But the SMTP server is set to localhost, so I THINK it's correct. I have made a php script with only the phpinfo() tag in here: http://grimstad.seilforening.no/Mailinglister/phpinfo.php Regards, Håkon

[PHP] Sessions help needed!

2003-07-05 Thread John Fuller
Hello all, I am new to php in general and am trying to set up a user authentification system with mysql. The registration page works well and sends all of the data to the appropriate table in mysql. However, when I try to get the registered user to log in and start a session, the system

Re: [PHP] Q on echo phpinfo() ;

2003-07-05 Thread Philip Olson
You may set the location of php.ini by using the PHPRC environment variable or during ./configure use the --with-config-file-path directive. Maybe you should just copy a php.ini into the directory PHP is looking for it in, which appears to be C:\WINNIT. If PHP was actually reading a php.ini,

Re: [PHP] Authentication system

2003-07-05 Thread olinux
there's a good example in this article A Complete, Secure User Login System by Tim Perdue http://www.phpbuilder.com/columns/tim2505.php3 olinux On 2 Jul 2003 at 13:00, Mike Migurski wrote: You may find it easier to include, in the e-mail, a uniquely-generated, limited-time URL

[PHP] PHP crashing with using Oracle

2003-07-05 Thread Reuben D. Budiardja
Hello, I installed PHP-4.3.2 with oci8 and oracle support (using --with-oci8 --with-oracle). I recompile apache-1.3.27 to use the libpthread as mentioned here: http://ww.php.net/oci8 Now, I got crashes when using oracle with php. In my apache error logs, I get: [Sat Jul 5 17:24:28 2003]

Re: [PHP] Q on echo phpinfo() ;

2003-07-05 Thread jsWalter
Philip Olson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] You may set the location of php.ini by using the PHPRC environment variable or during ./configure use the --with-config-file-path directive. So, I take it that this is a setting you use during compile time. So, to fix

[PHP] SSL POST problems, cURL, fsockopen, ipv6??

2003-07-05 Thread af
Hello. I've read all the documentation I can find about https POSTs using curl, fsockopen with ssl://, even PEAR's Net_Socket package, but I'm running into a PHP problem I haven't seen before. Platform Info: OpenBSD 2.9, PHP 4.3.2, Apache 1.3.27, ModSSL 2.8.14, OpenSSL 0.9.6, curl 7.9.8 (I've

Re: [PHP] Delimiter must not be alphanumeric or backslash

2003-07-05 Thread Jaap van Ganswijk
At 2003-07-05 20:01 +0200, Alan D'Angelo wrote: Try this: ?php $text = pot post pat patent; if(preg_match(/\bp\w+t\b/, $text, $array)){ print $array[0]; } ? the pattern in preg_match() does not have correct limit :) It is probably also a good idea to use single quotes ('/\bp\w+t\b/') so PHP

[PHP] looping through values from a field? Need hellp.

2003-07-05 Thread Micah Montoy
I have this javascript that enables browsing and selecting of a file. This file location and name are then transferred further down in the form as an option. Multiple files may be chosen as they are just added one below the other. Anyway, when the form is submitted it is only retrieving the

Re: [PHP] looping through values from a field? Need hellp.

2003-07-05 Thread Lars Torben Wilson
On Sat, 2003-07-05 at 15:55, Micah Montoy wrote: I have this javascript that enables browsing and selecting of a file. This file location and name are then transferred further down in the form as an option. Multiple files may be chosen as they are just added one below the other. Anyway,

RE: [PHP] Timing out fopen using https stream wrapper?

2003-07-05 Thread Giz
This has no effect on stream operations. I have a timeout set in php.ini, but the script never times out, so that should further illustrate the issue. -Original Message- From: Dan Anderson [mailto:[EMAIL PROTECTED] Sent: Saturday, July 05, 2003 5:11 AM To: Giz Cc: [EMAIL PROTECTED]

RE: [PHP] Timing out fopen using https stream wrapper?

2003-07-05 Thread Giz
That only works to set a timeout on reading data once the fopen has successfully returned. The problem is that the fopen function is hanging. -Original Message- From: Arjen Brouwer [mailto:[EMAIL PROTECTED] Sent: Saturday, July 05, 2003 6:08 AM To: Giz Subject: Re: [PHP] Timing out fopen

Re: [PHP] looping through values from a field? Need hellp.

2003-07-05 Thread Micah Montoya
I think that will do it. thanks, - Original Message - From: Lars Torben Wilson [EMAIL PROTECTED] To: Micah Montoy [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Saturday, July 05, 2003 4:59 PM Subject: Re: [PHP] looping through values from a field? Need hellp. On Sat, 2003-07-05 at

RE: [PHP] Limit output of query field

2003-07-05 Thread Giz
This add a bit more functionality, in that it will adjust to the nearest end of a word, and includes a 'more' link to the full text. This also assumes that the article may already only be 50 chars or less. $maxsize = 50; // might be better as a DEFINE $post = $row-text; $post = (strlen($post)

RE: [PHP] Permission Problem

2003-07-05 Thread Giz
You need to seek help from a phpnuke support forum. -Original Message- From: Mr|P [mailto:[EMAIL PROTECTED] Sent: Saturday, July 05, 2003 7:53 AM To: [EMAIL PROTECTED] Subject: [PHP] Permission Problem I moved from myphpnuke to phpnuke. When trying to register a new user account on the

RE: [PHP] simple query help

2003-07-05 Thread Giz
My guess is that you actually have 2 rows in the table for every forumID. -Original Message- From: Paul Ferrie [mailto:[EMAIL PROTECTED] Sent: Saturday, July 05, 2003 8:07 AM To: [EMAIL PROTECTED] Subject: [PHP] simple query help anyways i am tyring to delete the threadCount by -1 from

RE: [PHP] simple query help

2003-07-05 Thread Giz
Bleh nevermind, it's because you were executing the query twice (calling mysql_query in the if () and then again below. -Original Message- From: Giz [mailto:[EMAIL PROTECTED] Sent: Saturday, July 05, 2003 4:37 PM To: 'Paul Ferrie'; [EMAIL PROTECTED] Subject: RE: [PHP] simple query help

[PHP] Forms and PHP_SELF

2003-07-05 Thread Beauford.2005
Hi, I have a very simple form that searches a MySQL database and I want to be able to have the search appear on the same page as the search. FORM NAME=search METHOD=post ACTION=? $PHP_SELF; ? INPUT type=text size=30 name=player INPUT TYPE=image src=../images/submit.gif

RE: [PHP] looping through values from a field? Need hellp.

2003-07-05 Thread Giz
Yeah, this is the behavior of select lists. What comes through in the form post is the item that was last selected. What I've found you have to do with javascript is populate a hidden field with the values, using some delimiter (I've used commas) and you can easily explode those values into an

[PHP] FW: Forms and PHP_SELF

2003-07-05 Thread Beauford.2005
I just figured it out, so I guess I was on the right track - I just forgot to make the variable name in the form global. -Original Message- From: Beauford.2005 [mailto:[EMAIL PROTECTED] Sent: July 5, 2003 7:43 PM To: PHP Subject: Forms and PHP_SELF Hi, I have a very simple form that

Re: [PHP] Forms and PHP_SELF

2003-07-05 Thread Alan D'Angelo
For print $PHP_SELF, or $_SERVER['PHP_SELF'] use: ?php echo $_SERVER['PHP_SELF']; ? or the shortcur sintax: ?=$_SERVER['PHP_SELF']? (if short_open_tag = On in php.ini) - Original Message - From: Beauford.2005 [EMAIL PROTECTED] To: PHP [EMAIL PROTECTED] Sent: Sunday, July 06, 2003

Re: [PHP] looping through values from a field? Need hellp.

2003-07-05 Thread Micah Montoya
Ok. I gave it a shot but have run into one other question that I wasn't able to find that was addressed by the article. My select statement looks like this: select name=imgList[] style=width:350; size=6 multiple/select When I create the php file, I am trying something like below but it isn't

[PHP] sqlite_seek() problem

2003-07-05 Thread Alan D'Angelo
Hello !! When I make a query with sqlite_query() and use sqlite_fetch_array() all works well: Example: $result = sqlite_query('SELECT * FROM test', $conn); while($row = sqlite_fetch_array($resulr, SQLITE_NUM, true)){ $rows[] = $row; } $rows is: Array ( [0] = Array (

Re: [PHP] looping through values from a field? Need hellp.

2003-07-05 Thread Lars Torben Wilson
On Sat, 2003-07-05 at 17:13, Micah Montoya wrote: Ok. I gave it a shot but have run into one other question that I wasn't able to find that was addressed by the article. My select statement looks like this: select name=imgList[] style=width:350; size=6 multiple/select When I create the

Re: [PHP] looping through values from a field? Need hellp.

2003-07-05 Thread Micah Montoya
That was the trick. Just the space was messing things up. Thanks. - Original Message - From: Lars Torben Wilson [EMAIL PROTECTED] To: Micah Montoya [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Saturday, July 05, 2003 6:18 PM Subject: Re: [PHP] looping through values from a field?

[PHP] Compiling 4.2.3 with MySQL ... what does it look for?

2003-07-05 Thread -{ Rene Brehmer }-
X-posted to PHP General, PHP DB, and MySQL Hi gang Attempting to get my Linux test-server working, but ran into a problem when making PHP... System is RedHat 8, Apache 1.3.27 (compiled myself, tested OK), MySQL 4.0.13. The Apache 2.0.40 and PHP 4.2.2 that came w. RH8 didn't work correctly,

RE: [PHP] Timing out fopen using https stream wrapper?

2003-07-05 Thread Dan Anderson
This has no effect on stream operations. I have a timeout set in php.ini, but the script never times out, so that should further illustrate the issue. But if you'd visited the page I sent you and viewed user comments you would see how to set a time limit for socket operations (what you're

Re: [PHP] Forms and PHP_SELF

2003-07-05 Thread Leif K-Brooks
Dan Anderson wrote: Be careful when using PHP self. Not all servers support it. If you're planning on using this script over and over on multiple servers you may find creating a variable is helpful. $some_variable = the_script_name.php; Then, where you would use PHP_SELF just echo (or

Re: [PHP] Forms and PHP_SELF

2003-07-05 Thread Dan Anderson
Please don't mislead users! That's plain untrue. I assure you that server administrators can turn off the variables such as PHP SELF. It may not be common but it does happen. -Dan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Timing out fopen using https stream wrapper?

2003-07-05 Thread Giz
I've looked at that page extensively and seen nothing there that would handle my issue, long before I ever mailed the problem to this list. What in particular from there did you see that would be useful to my use of fopen('http://etc')? -Original Message- From: Dan Anderson

RE: [PHP] Timing out fopen using https stream wrapper?

2003-07-05 Thread Dan Anderson
From the user comments: I think it might be useful to point out that set_time_limit() doesn't have any effect on stream operations. A stalled script, either during open operations (e.g. fsockopen()) or read operations (e.g. fgets()), can make your script run forever. So it would be advisable to

[PHP] Re: [PHP-DB] Compiling 4.2.3 with MySQL ... what does it look for?

2003-07-05 Thread olinux
try --with-mysql=/usr --- -{ Rene Brehmer }- [EMAIL PROTECTED] wrote: X-posted to PHP General, PHP DB, and MySQL Hi gang Attempting to get my Linux test-server working, but ran into a problem when making PHP... System is RedHat 8, Apache 1.3.27 (compiled myself, tested OK), MySQL

RE: [PHP] Timing out fopen using https stream wrapper?

2003-07-05 Thread Giz
Thanks for the reply, Well hopefully this will help narrow down the issue. With Fsockopen a timeout can be passed, however, this is using fopen. I am hoping there may be some obscure way of setting a timeout but so far, I've not been able to find one. -Original Message- From: Dan

Re: [PHP] Forms and PHP_SELF

2003-07-05 Thread Leif K-Brooks
Dan Anderson wrote: I assure you that server administrators can turn off the variables such as PHP SELF. It may not be common but it does happen. The only way to do that would be editing the PHP source. That's above the IQ of any sysadmin who would want to do that. -- The above message is

[PHP] instanceof on class (not objects) php 5

2003-07-05 Thread Greg Beaver
Hi, Is it possible to determine whether a class implements an interface without instantiating an object of that class? ?php interface tester { function doesStuff(); } class MyClass implements tester { function doesStuff(){} } $var = 'MyClass'; if ($var instanceof_equiv tester) {