[PHP] problem install pws and php

2004-05-12 Thread lee 03
i am a beginner for php programming, my OS is win98 while my webserver is PWS, all is in the same machine,when i try to run my internet explorer( type in http://localhost/phpinfo.php), phpinfo.php cannot be display. i try to reinstall pws and php follow the instrustruction but its still same

RE: [PHP] PHP5 - instanceof [SOLVED]

2004-05-12 Thread Martin Towell
ah yes, of course "instanceof" means you're working with an instance of an class - Pity there's no equivalent for classes :( oh well, I'll just have instantiate the class first then do the checking. Thanks Martin > -Original Message- > From: Travis Low [mailto:[EMAIL PROTECTED] > Sent:

[PHP] Multiple Socket's at one time

2004-05-12 Thread Terence
Hi All, A simple example I got from the manual: $fp = @fsockopen ($address, $port, $errno, $errstr, 5); if (!$fp) { echo "Oops"; } else { echo "Ok"; fclose ($fp); } Can someone point me in the direction of being able to probe multiple ports at the same time? (multi-threading or forking con

Re: [PHP] PHP5 - instanceof

2004-05-12 Thread Travis Low
An instance only exists after it has been instantiated. So you can't know anything about an instance (== an object) beforehand. It's like knowing a person before they are born. Maybe you mean you want to determine if class B is a subclass of class A. That's the same problem again. Even if PH

[PHP] PHP5 - instanceof

2004-05-12 Thread Martin Towell
I have been playing with PHP5 and am liking it more and more. But I have one question about "instanceof" If you have something like this: This would echo "BA". That's good, I understand that. Now the question: Is it possible to determine if B is an instance of A without instantiating it? Than

RE: [PHP] a good user directory application...

2004-05-12 Thread bruce
ryan... we've seen apps that have had some of the functions we're looking for... ie dating apps, cms systems, etc... we're curious if anybody has seen/used something that they've considered to be really good/solid... -bruce [EMAIL PROTECTED] -Original Message- From: Ryan A [mailto:[EMAI

Re: [PHP] a good user directory application...

2004-05-12 Thread Ryan A
On 5/13/2004 4:29:52 AM, [EMAIL PROTECTED] wrote: > hey... > > hi. > we're looking for a good/really good web based user directory > application. we'd > like the app to be able to allow users to login, and add > information to their profile. > we'd prefer an app that would provide the > ability to

Re: [PHP] HTTP_RAW_POST_DATA

2004-05-12 Thread Michal Migurski
> > Isn't this potentially a DoS attack vector anyway? I don't need a server > > to accept or read my obscenely long POST requests to clog the pipes with > > them. Would the proper way to handle this risk be to disallow POST at the > > webserver level, or does turning always_populate_raw_post_data

[PHP] a good user directory application...

2004-05-12 Thread bruce
hey... hi. we're looking for a good/really good web based user directory application. we'd like the app to be able to allow users to login, and add information to their profile. we'd prefer an app that would provide the ability to select/add additional information fields and not constrain us. we w

Re: [PHP] HTTP_RAW_POST_DATA

2004-05-12 Thread Curt Zirzow
* Thus wrote Michal Migurski ([EMAIL PROTECTED]): > > > Anyone have any clue why this is the case? Is there a performance > > > reason that raw post data must be explicitly enabled, or is it more of > > > a protective measure for overly permissive beginner scripts? > > > > If it was always enabled,

[PHP] Re: Zip-code Form Validation Scripts and Zipcode Program

2004-05-12 Thread Manuel Lemos
Hello, On 05/12/2004 09:22 PM, Ryan Munevar wrote: Question 1: Does anyone have a really good php form validation script for Zip-codes? Question 2: Does anyone know of a great depository of form validation scripts for all kinds of form inputs? http://www.phpclasses.org/formsgeneration Ques

Re: [PHP] HTTP_RAW_POST_DATA

2004-05-12 Thread raditha dissanayake
Michal Migurski wrote: Anyone have any clue why this is the case? Is there a performance reason that raw post data must be explicitly enabled, or is it more of a protective measure for overly permissive beginner scripts? If it was always enabled, it sure would make a DoS attack easy. I'd ju

Re: [PHP] HTTP_RAW_POST_DATA

2004-05-12 Thread raditha dissanayake
Chris Shiflett wrote: --- raditha dissanayake <[EMAIL PROTECTED]> wrote: NOw I am very curious, the raw_post_data doesn't always get populated even with that setting. If i have not been barking up the wrong tree all these years that variable only gets populated if the content type is not url-en

[PHP] Zip-code Form Validation Scripts and Zipcode Program

2004-05-12 Thread Ryan Munevar
Hey Guys, Question 1: Does anyone have a really good php form validation script for Zip-codes? Question 2: Does anyone know of a great depository of form validation scripts for all kinds of form inputs? Question 3: Does anyone know (yea I know, getting tedious here) of a way or program to

Re: [PHP] mysql went away

2004-05-12 Thread raditha dissanayake
This should be in a mysql newsgroup. Bill Green wrote: HI. I've been using mySQL 4.0.13, php4.3.4, and phpMyAdmin2.5.5 on Mac OS 10.3.3 as a learning/testing/development environment for a couple of months now - no problems, works great. I've created more than a few mySQL databases and tables,

[PHP] site search engine.. not dynamic

2004-05-12 Thread Aaron Wolski
Hi all, Can anyone point me in the direction of a site search engine that reads files in a directory find relevant results for an search term that a person might enter on a site? I need to build a site search engine but the problem is. the site isn't dynamic (yet) so I need to read actual files

[PHP] Re: Ordering alphabetical in secondary select string

2004-05-12 Thread R.G. Vervoort
it are different table and the first table does not contain names, onlu the id form names. Ordering ASC woll not work because it is not in the first query thank for thinking with me anyway "Dennis Biletsky" <[EMAIL PROTECTED]> schreef in bericht news:[EMAIL PROTECTED] > > "R.G. Vervoort" <[EMAIL

Re: [PHP] Reshuffling an array

2004-05-12 Thread Todd Cary
Works as advertised. Made it a sort. Todd John W. Holmes wrote: From: "Todd Cary" <[EMAIL PROTECTED]> I do the following: $eventList = array(); $eventList[] = "Any"; $dbh = db_open($host, $user, $password, $database); if($dbh) { $sthdl = db_get_event_data($dbh); while ($row = m

Re: [PHP] Breaking out of a loop...

2004-05-12 Thread Tom Rogers
Hi, Thursday, May 13, 2004, 6:57:14 AM, you wrote: RF> Hi, RF> I have this code (below) that waits for particular data to come over RF> the socket ("ENX"), at which point it breaks out of the loop and does RF> other things. Presently, it will loop forever, until it receives RF> "ENX"—a good star

Re: [PHP] HTTP_RAW_POST_DATA

2004-05-12 Thread Chris Shiflett
--- raditha dissanayake <[EMAIL PROTECTED]> wrote: > NOw I am very curious, the raw_post_data doesn't always get > populated even with that setting. If i have not been barking up > the wrong tree all these years that variable only gets populated > if the content type is not url-encoded or multipart

Re: [PHP] Breaking out of a loop...

2004-05-12 Thread Curt Zirzow
* Thus wrote Ren Fournier ([EMAIL PROTECTED]): > Thanks for the help, but I now get the error "PHP Warning: > socket_set_option() expects exactly 4 parameters, 3 given in > /Users/test/cr.php on line 51" when I run the script. Also, it still > seems to just wait on that "while" line, ins

Re: [PHP] Breaking out of a loop...

2004-05-12 Thread René Fournier
Thanks for the help, but I now get the error "PHP Warning: socket_set_option() expects exactly 4 parameters, 3 given in /Users/test/cr.php on line 51" when I run the script. Also, it still seems to just wait on that "while" line, instead of skipping to the "} elseif ($elapsed > 5) {" a

Re: [PHP] PHP Session Handlers

2004-05-12 Thread Paul Higgins
Ok, thanks. One other question. If I use the example I cited earlier, are the session values still stored in a flat file? Or do I have to replace that with database entries? Thanks. From: "John W. Holmes" <[EMAIL PROTECTED]> Reply-To: "John W. Holmes" <[EMAIL PROTECTED]> To: "Paul Higgins"

[PHP] security and extended ascii characters

2004-05-12 Thread Chris W
In an effort to make sure no binary data is maliciously submitted via a form I have code the makes sure all characters in any input field are with in the range of a space to a "~". However now that I am getting some users of my site from Europe, that are having problems submitting some extended ch

[PHP] mysql went away

2004-05-12 Thread Bill Green
HI. I've been using mySQL 4.0.13, php4.3.4, and phpMyAdmin2.5.5 on Mac OS 10.3.3 as a learning/testing/development environment for a couple of months now - no problems, works great. I've created more than a few mySQL databases and tables, but yesterday I created a database, a table, and LOAD DA

Re: [PHP] HTTP_RAW_POST_DATA

2004-05-12 Thread Michal Migurski
> > Anyone have any clue why this is the case? Is there a performance > > reason that raw post data must be explicitly enabled, or is it more of > > a protective measure for overly permissive beginner scripts? > > If it was always enabled, it sure would make a DoS attack easy. I'd just > send lots

Re: [PHP] Breaking out of a loop...

2004-05-12 Thread Curt Zirzow
* Thus wrote Ren Fournier ([EMAIL PROTECTED]): > Hi, > > I have this code (below) that waits for particular data to come over > the socket ("ENX"), at which point it breaks out of the loop and does > other things. Presently, it will loop forever, until it receives > "ENX"—a good start—but I als

Re: [PHP] HTTP_RAW_POST_DATA

2004-05-12 Thread Chris Shiflett
--- Michal Migurski <[EMAIL PROTECTED]> wrote: > Anyone have any clue why this is the case? Is there a performance > reason that raw post data must be explicitly enabled, or is it more > of a protective measure for overly permissive beginner scripts? If it was always enabled, it sure would make a

[PHP] Breaking out of a loop...

2004-05-12 Thread René Fournier
Hi, I have this code (below) that waits for particular data to come over the socket ("ENX"), at which point it breaks out of the loop and does other things. Presently, it will loop forever, until it receives "ENX"—a good start—but I also need it to break-out if the loop runs longer than five s

[PHP] Re: Memory usage

2004-05-12 Thread Torsten Roehr
"Oliver Hankeln" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi! > > I get memory exceded errors and want to find out why. So I am looking > for a way to determine how much memory is currently beeing used by my > script. Is this possible? > getPID + reading from /proc dosent work

[PHP] mcrypt & pdflib configuration

2004-05-12 Thread William Holroyd
I've already posted this question in comp.lang.php but no one seemed to have an answer to it. So I've got PHP to recognize mcrypt and pdflib in the phpinfo() output, but trying to use any of the functions fail with "...undefined function called..". There aren't any configurable files with either d

[PHP] Re: User/Group rights system?

2004-05-12 Thread Torsten Roehr
"David David" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello, > > Does anyone know of an open source "user/group" based > permission system built with php/MySQL? > > That is, the effective rights for any user on a > specific secured object are computed from various > permit/den

[PHP] Re: include (or require) doesn't seem to work

2004-05-12 Thread Torsten Roehr
"Daniel Barbar" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Thanks Torsten! Using the file-system relative path made it work (I had > tried only with the absolute path, which ddidn't work). However, I checked > again and I did have 'allow_url_fopen = On' in /etc/php.ini. I'll take

[PHP] SuExec and PHP

2004-05-12 Thread Travis Low
Greetings. We have a need for our PHP scripts to run as the user and group associated with each Apache virtual domain on our Redhat server. Currently, all PHP scripts run as nobody.nobody. I know that the apache suexec module allows CGI scripts to run as the user and group of the virtual host

[PHP] Using PHP4 4.3.4 as a CGI

2004-05-12 Thread Mark Constable
Debian testing system with a recent update to php-cgi 4.3.4. I have been using the /usr/bin/php4 binary as a some.cgi with a shbang line of "#!/usr/bin/php4" which worked fine up until this recent 4.3.4 update. Now the new 4.3.4 php4 binary does not produce a "Content-type: index/html\n\n" header

Re: [PHP] PHP Session Handlers

2004-05-12 Thread John W. Holmes
From: "Paul Higgins" <[EMAIL PROTECTED]> > I just read this tutorial: > http://www.phpbuilder.com/columns/ying2602.php3 > > I understand what each function does and what to do in each function. > However, my question is this: If I write my own session handling functions, > do I have to explic

[PHP] PHP Session Handlers

2004-05-12 Thread Paul Higgins
Hi all, I just read this tutorial: http://www.phpbuilder.com/columns/ying2602.php3 I understand what each function does and what to do in each function. However, my question is this: If I write my own session handling functions, do I have to explicity call them myself? If so, when do I

RE: [PHP] Strange music playing behavior

2004-05-12 Thread Jay Blanchard
[snip] > Top posting rocks! > You like to live dangerously. ;) [/snip] Dammit! I forgot the [sarcasm] tags! :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Strange music playing behavior

2004-05-12 Thread Ryan Schefke
I fixed it, thanks! It turns out my src=" " location was wrong since I moved the file. I just freaked cause I thought it was an issue with php+html. Sorry, Ryan -Original Message- From: Ryan Schefke [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 12, 2004 2:35 PM To: 'Jay Blanchard'; 'P

Re: [PHP] Strange music playing behavior

2004-05-12 Thread John Nichel
Jay Blanchard wrote: Top posting rocks! You like to live dangerously. ;) -- John C. Nichel KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Strange music playing behavior

2004-05-12 Thread Ryan Schefke
I just tried it between the tags, that doesn't make a difference. As I mentioned, when I run it standalone it will work fine and it's a php file, not html so the html tags aren't needed. ...this is painful! -Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED] Sent: Wednesda

RE: [PHP] Strange music playing behavior

2004-05-12 Thread Jay Blanchard
[snip] I know it's a lot of code but it's below. Again, when I have the /* MUSIC? */ section as a standalone file (making sure to open and close the database and include the correct require statements) it works fine; however, when added to the code below (music section 4 paragraphs down) it doesn'

RE: [PHP] Strange music playing behavior

2004-05-12 Thread Ryan Schefke
I know it's a lot of code but it's below. Again, when I have the /* MUSIC? */ section as a standalone file (making sure to open and close the database and include the correct require statements) it works fine; however, when added to the code below (music section 4 paragraphs down) it doesn't play

Re: [PHP] Reshuffling an array

2004-05-12 Thread John W. Holmes
From: "Todd Cary" <[EMAIL PROTECTED]> > I do the following: > >$eventList = array(); >$eventList[] = "Any"; >$dbh = db_open($host, $user, $password, $database); >if($dbh) { > $sthdl = db_get_event_data($dbh); > while ($row = mysql_fetch_object($sthdl)) { >$eventLi

RE: [PHP] Strange music playing behavior

2004-05-12 Thread Jay Blanchard
[snip] I'm getting some strange behavior trying to play music. The script below works fine standalone. However, when I put it into a larger script the music doesn't play but all of the echo statements work and when I view the source the tags are fine, etc. What could the issue be? If you need me t

[PHP] Strange music playing behavior

2004-05-12 Thread Ryan Schefke
I'm getting some strange behavior trying to play music. The script below works fine standalone. However, when I put it into a larger script the music doesn't play but all of the echo statements work and when I view the source the tags are fine, etc. What could the issue be? If you need me to send

RE: [PHP] Re: Automatically send auth info

2004-05-12 Thread jon roig
I may be mistaken, but I think you can use CURL to grab that data. Check out the options available here: http://us3.php.net/manual/en/function.curl-setopt.php In particular, you may want to look at CURLOPT_USERPWD - jon roig --- Outgoing mail is certified Virus Free. Checked by AVG ant

[PHP] Re: Reshuffling an array

2004-05-12 Thread Justin Patrin
Todd Cary wrote: I do the following: $eventList = array(); $eventList[] = "Any"; $dbh = db_open($host, $user, $password, $database); if($dbh) { $sthdl = db_get_event_data($dbh); while ($row = mysql_fetch_object($sthdl)) { $eventList[] = $row->EV_EVENT; } } else { $

RE: [PHP] Re: Automatically send auth info

2004-05-12 Thread motorpsychkill
> Are you using a web form? You can just grab the values from the form if > that's the case. But I suppose that you are not doing that, so you > could just add some variables for username / password as part of the > query string. Just realize, you're now sending login info in plain text! > > --

[PHP] Reshuffling an array

2004-05-12 Thread Todd Cary
I do the following: $eventList = array(); $eventList[] = "Any"; $dbh = db_open($host, $user, $password, $database); if($dbh) { $sthdl = db_get_event_data($dbh); while ($row = mysql_fetch_object($sthdl)) { $eventList[] = $row->EV_EVENT; } } else { $eventList[] = "* N

Re: [PHP] Constant questions

2004-05-12 Thread Curt Zirzow
* Thus wrote Ren Fournier ([EMAIL PROTECTED]): > Hi, > > I have two questions involving Constants. > > 1. I want to refer to a refer to a Constant by its value (which is > unique), and return its name. E.g.,: > > define ("SEND_DS","1"); > define ("SEND_DS_ACK","2"); > define (

Re: [PHP] Constant questions

2004-05-12 Thread Richard Davey
Hello René, Wednesday, May 12, 2004, 6:29:13 PM, you wrote: RF> Such that the output will be MY_NAME. If I echo $val, the output will RF> be Rene. But I want to see the constants Name, not Value. Any ideas? No easy way I can think of, but you could do: $array = get_defined_constants(); and the

[PHP] Re: Submit button as image

2004-05-12 Thread Justin Patrin
Sam wrote: What do you do with this? Submit.x=22&Submit.y=13 if($_GET['Submit.x'] > 0) ??? Is there some smarter way of dealing with an image as a submit button? input name="Submit" type="image" value="doesNOTseemTOmatter" Thanks Well, it comes through as an image map in most browsers. I've fou

Re: [PHP] Submit button as image

2004-05-12 Thread Curt Zirzow
* Thus wrote Sam ([EMAIL PROTECTED]): > > What do you do with this? > Submit.x=22&Submit.y=13 > > if($_GET['Submit.x'] > 0) ??? $_GET['Submit_x']; php converts .x to _x to be compatible accross browser versions. > > Is there some smarter way of dealing with an image as a submit button? > >

RE: [PHP] Submit button as image

2004-05-12 Thread Chris W. Parker
Sam on Wednesday, May 12, 2004 10:10 AM said: > What do you do with this? nothing. i usually don't give my image buttons a name value so that never shows up. what it's meant for is server side image maps. the browser is telling the server where on the image the user

[PHP] Constant questions

2004-05-12 Thread René Fournier
Hi, I have two questions involving Constants. 1. I want to refer to a refer to a Constant by its value (which is unique), and return its name. E.g.,: define ("SEND_DS","1"); define ("SEND_DS_ACK","2"); define ("RESEND_DS","3"); define ("STARTUP_DS","12"); For exa

[PHP] Submit button as image

2004-05-12 Thread Sam
What do you do with this? Submit.x=22&Submit.y=13 if($_GET['Submit.x'] > 0) ??? Is there some smarter way of dealing with an image as a submit button? input name="Submit" type="image" value="doesNOTseemTOmatter" Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] HTTP_RAW_POST_DATA

2004-05-12 Thread raditha dissanayake
Chris Boget wrote: same configuration. Where would I look to discover why one server would have data held in $HTTP_RAW_POST_DATA whereas the other server would not? Check the value of "always_populate_raw_post_data" in php.ini on both servers. That was it. Thank you so very much!!

Re: [PHP] search query analyzer

2004-05-12 Thread raditha dissanayake
Paul Godard wrote: Hi I am looking for some good ideas to combine some fields with query operators (multiple words, or/and, >/„/¾<, range of numerical values...). Let's say I have 2 fields (numerical & text) to combine where the serach criteria can be as complicated as this : - year : >1950, 19

Re: [PHP] Max file size for uploads?

2004-05-12 Thread Brian Dunning
Is there a true max size or do I just have something messed up somewhere that I need to tweak?? I've got a client who needs their customers to upload large files for printing this way - and it stops at 30MB. There is some setting in Windows XP that we have not been able to change. It's been a lo

Re: [PHP] loading 250kb include files, performance degration?

2004-05-12 Thread raditha dissanayake
Merlin wrote: Hi there, I am working on a complex webapp written in php. Recently I was reading about performance issues and after analysing the code I found that most of the files load 5 external php include files to run. All together those include files make about 250KB (there are 5 files).

Re: [PHP] PHP Sessions on Windows

2004-05-12 Thread John W. Holmes
David Mitchell wrote: I first attempted to edit the php.ini so that the session save path was C:\Temp. No matter what I did, the save path always showed up in phpinfo() as /tmp. So I created folder on the root of C: called tmp and everything worked. You were not editing the correct php.ini, then.

Re: [PHP] Max file size for uploads?

2004-05-12 Thread raditha dissanayake
Robert Sossomon wrote: I have an upload script that I am trying to allow for 725MB, I have written the script to handle files of that size, and I modified the upload_max_filesize = 730M I tried uploading a 15MB file and it blew up (current error message is not in my brain). Is there a true max siz

[PHP] changing http to https

2004-05-12 Thread David T-G
Hi, all -- We have lovely variables like $_SERVER['SCRIPT_URI'] so that we don't have to hard-code the site or script name into our files, and that's great; it even includes the SID for me if cookies are off. I'd like to be able to point someone to https://sitename/script.php to log in securely,

[PHP] function "gethostbyname" - how can i deactivate cache / force look-up???

2004-05-12 Thread Tobes
Hi there - in a script I use the function "gethostbyname" to resolve a hostname (www.example.com) into an IP-address. Unfortunately, the host name that I try to resolve changes its IP address frequently. Since the function "gethostbyname" caches its results, it sooner or later returns a wrong IP-ad

Re: [PHP] Memory usage

2004-05-12 Thread Curt Zirzow
* Thus wrote Oliver Hankeln ([EMAIL PROTECTED]): > Hi! > > I get memory exceded errors and want to find out why. So I am looking > for a way to determine how much memory is currently beeing used by my > script. Is this possible? > getPID + reading from /proc dosent work because php is an apache

[PHP] Re: include from another URL

2004-05-12 Thread AcZ
Nik wrote: Hi there, I'm new to these groups so forgive me if I'm asking at the wrong place (tell me where then :) Ok, I'm not PHP guru but I need to create a simple script that would do this: Include a content from another URL into the current output. I have done something like this: -- code

RE: [PHP] default and another constructor

2004-05-12 Thread Ford, Mike [LSS]
> -Original Message- > From: Rudy Metzger [mailto:[EMAIL PROTECTED] > Sent: 12 May 2004 14:27 > > On Wed, 2004-05-12 at 15:18, Mark Constable wrote: > > > > function forum($naam=NULL,$tijd=NULL,$tekst=NULL) > > > > and test the incoming variables with isset() before > > attempting to

Re: [PHP] Linux command in PHP

2004-05-12 Thread Curt Zirzow
* Thus wrote Mike Mapsnac ([EMAIL PROTECTED]): > I have script that basically process a file. If something found in the > file, the script send email. > > Today I tried to add another option, that gives sound and send email. > The script works ok when I run from shell. But when I add the code

Re: [PHP] Send username & password in HTTP headers

2004-05-12 Thread Nagendra Prasad
Hi, That worked, Thanks a lot.. Regards TNP Professional Services ZUSTEK INDIA __ -- Original Message --- From: Chris Shiflett <[EMAIL PROTECTED]> To: [EMAIL PROTECTED], [EMAIL PROTECTED] Sent: Wed, 12 Ma

RE: [PHP] PHP Sessions on Windows

2004-05-12 Thread Daniel Clark
I think you need to restart PHP to pickup the new php.ini changes. My php.ini is in the windows directory (I believe). >> -Original Message- >> From: David Mitchell [mailto:[EMAIL PROTECTED] >> Sent: 12 May 2004 13:21 >> >> OK, I managed to get it working. >> >> I first attempted to edit

[PHP] Re: Automatically send auth info

2004-05-12 Thread Jason Barnett
Motorpsychkill wrote: Hi all, Some of my webpages are no longer working with the IE browser after MS implemented some security patches which disable sending authentication info through the URL: http://user:[EMAIL PROTECTED] This no longer works with IE, but is fine with most other browsers. Doe

RE: [PHP] Linux command in PHP

2004-05-12 Thread Jay Blanchard
[snip] Today I tried to add another option, that gives sound and send email. The script works ok when I run from shell. But when I add the code to cronjob, the email is send but NO SOUND. Any ideas what can cause such problem? # Below the code that start the xmms sound $alert = "/usr/bin/xmms

[PHP] Memory usage

2004-05-12 Thread Oliver Hankeln
Hi! I get memory exceded errors and want to find out why. So I am looking for a way to determine how much memory is currently beeing used by my script. Is this possible? getPID + reading from /proc dosent work because php is an apache module. (I can´t change this) Thanks! -- PHP General Maili

[PHP] Linux command in PHP

2004-05-12 Thread Mike Mapsnac
I have script that basically process a file. If something found in the file, the script send email. Today I tried to add another option, that gives sound and send email. The script works ok when I run from shell. But when I add the code to cronjob, the email is send but NO SOUND. Any ideas w

Re: [PHP] Send username & password in HTTP headers

2004-05-12 Thread Chris Shiflett
--- Nagendra Prasad <[EMAIL PROTECTED]> wrote: > I'm posting some XML data to my client's website using HTTP Post. > Assume I'm posting to getxml.php (hosted on my clients server). > Now my client has put authentication on his website using > header('WWW-Authenticate: Basic realm="Private Area"');

[PHP] FIXED: Max file size for uploads?

2004-05-12 Thread Robert Sossomon
It's fixed now.. If using Apache on RedHat here is everything to fix at once: FIRST AND FOREMOST DECIDE THE MAX SIZE YOU WANT IN MB, ADD A COUPLE MORE TO IT, AND THEN CONVERT TO BYTES (MB * 1024 * 1024) 1. httpd/conf.d/php.conf LimitRequestBody ?? #byte size you calculated 2.

RE: [PHP] PHP Sessions on Windows

2004-05-12 Thread Ford, Mike [LSS]
> -Original Message- > From: David Mitchell [mailto:[EMAIL PROTECTED] > Sent: 12 May 2004 13:21 > > OK, I managed to get it working. > > I first attempted to edit the php.ini so that the session > save path was C:\Temp. No matter what I did, the save path > always showed up in phpinfo

Re: [PHP] PHP5 and static attributes

2004-05-12 Thread Curt Zirzow
* Thus wrote Rudy Metzger ([EMAIL PROTECTED]): > Dear all, > > I have a problem with 'referencing' static attributes. I have the > following class tree. > > // --- CLASS A - > class A > { > protected static $myInstance; > } > > // --- CLASS B ---

Re: [PHP] Max file size for uploads?

2004-05-12 Thread Mark Pecaut
On Wed, May 12, 2004 at 10:07:09AM -0400, Robert Sossomon wrote: > I get this error message now in my httpd error log: > > [Wed May 12 10:07:01 2004] [error] [client 66.43.177.38] Requested > content-length of 69888498 is larger than the configured limit of > 524288, referer: http://dinghy.homeip.

Re: [PHP] default and another constructor

2004-05-12 Thread Michal Migurski
> No, you cannot do this kind of method overloading, not like this anyway. > If you are using PHP5 you can kind of emulate overloading by using the > __call() function... some googling will find examples. > > You can at least make the below work by removing the first forum() > instance and using >

RE: [PHP] Max file size for uploads?

2004-05-12 Thread Robert Sossomon
I get this error message now in my httpd error log: [Wed May 12 10:07:01 2004] [error] [client 66.43.177.38] Requested content-length of 69888498 is larger than the configured limit of 524288, referer: http://dinghy.homeip.net/upload.php Any thoughts? TIA! Robert -Original Message- Fro

Re: [PHP] default and another constructor

2004-05-12 Thread Mark Constable
On Wed, 12 May 2004 11:27 pm, Rudy Metzger wrote: > On Wed, 2004-05-12 at 15:18, Mark Constable wrote: > > You can at least make the below work by removing the first > > forum() instance and using > > > > function forum($naam=NULL,$tijd=NULL,$tekst=NULL) > > > > and test the incoming variables wit

Re: [PHP] HTTP_RAW_POST_DATA

2004-05-12 Thread Michal Migurski
> > > Check the value of "always_populate_raw_post_data" in php.ini on > > both servers. > > > > Thats such a funny name. > > Not to mention misleading, since it doesn't always populate > $HTTP_RAW_POST_DATA when enabled. Always should mean always. Anyone have any clue why this is the case? Is the

Re: [PHP] Sessions not working on Linux - Apache - FOllow Up

2004-05-12 Thread Zac
Have looked at this more and can now tell you that this is definatley down to the server not writing any contents into the sess_nnn file. Does anyone have any ideas why this would happen? I've checked all permissions and tried changing the save_path to another folder that I created specifically

Re: [PHP] Max file size for uploads?

2004-05-12 Thread Richard Davey
Hello Robert, Wednesday, May 12, 2004, 2:37:23 PM, you wrote: RS> I have an upload script that I am trying to allow for 725MB, I have RS> written the script to handle files of that size, and I modified the RS> upload_max_filesize = 730M RS> I tried uploading a 15MB file and it blew up (current e

Re: [PHP] default and another constructor

2004-05-12 Thread Lieve Vissenaeken
Thanks Mark for helping me out... The way you describe it with "function forum($naam=NULL,$tijd=NULL,$tekst=NULL)" is a good trick !! Kind Regards. "Mark Constable" <[EMAIL PROTECTED]> schreef in bericht news:[EMAIL PROTECTED] > On Wed, 12 May 2004 10:43 pm, Lieve Vissenaeken wrote: > > Please ,c

[PHP] Max file size for uploads?

2004-05-12 Thread Robert Sossomon
I have an upload script that I am trying to allow for 725MB, I have written the script to handle files of that size, and I modified the upload_max_filesize = 730M I tried uploading a 15MB file and it blew up (current error message is not in my brain). Is there a true max size or do I just have so

Re: [PHP] Sessions not working on Linux - Apache

2004-05-12 Thread John Nichel
Zac wrote: Thanks for your response: PHP Version 4.2.2 $_SESSION[test] = 'testData'; Regards Zac Please respond to the list, and not to an individual user (unless asked of course). Try adding quotes around your key... $_SESSION['test'] = "testData"; -- John C. Nichel KegWorks.com 716.856.96

Re: [PHP] Sessions not working on Linux - Apache

2004-05-12 Thread Zac
>> What version of PHP? How are you 'setting' session variables? Version 4.2.2 $_SESSION[test] = 'testData'; Cheers Zac -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] default and another constructor

2004-05-12 Thread Rudy Metzger
On Wed, 2004-05-12 at 15:18, Mark Constable wrote: > On Wed, 12 May 2004 10:43 pm, Lieve Vissenaeken wrote: > > Please ,could anybody help me ? I'm not so familiar with PHP. > > > > I've the following problem with my code when I try to make an object from > > the class "forum" with the code "$test

Re: [PHP] default and another constructor

2004-05-12 Thread Rudy Metzger
Strange that you get this error. Normally you should get a "Fatal error: Cannot redeclare forum::forum() " PHP does not support 'function overloading', at least not in a way java is doing it. One of the drawbacks of a free typed langauge (in contrary to a strictly typed one). cheerio /rudy O

Re: [PHP] default and another constructor

2004-05-12 Thread Mark Constable
On Wed, 12 May 2004 10:43 pm, Lieve Vissenaeken wrote: > Please ,could anybody help me ? I'm not so familiar with PHP. > > I've the following problem with my code when I try to make an object from > the class "forum" with the code "$test=new forum()". I always get a > warning on this: "Warning: M

Re: [PHP] Sessions not working on Linux - Apache

2004-05-12 Thread John Nichel
Zac Hillier - Net Affectors wrote: Running on apache 1.3 session.save_handler = files session.save_path = /tmp session.use_cookies = 1 session.name = i session.auto_start = 0 session.cookie_lifetime = 0 session_start() is included in the top of each page. When I test session files are being writt

[PHP] default and another constructor

2004-05-12 Thread Lieve Vissenaeken
Please ,could anybody help me ? I'm not so familiar with PHP. I've the following problem with my code when I try to make an object from the class "forum" with the code "$test=new forum()". I always get a warning on this: "Warning: Missing argument 1 for forum() in /lvdata/www/tennis/php/sql.inc"

RE: [PHP] PHP Sessions on Windows

2004-05-12 Thread David Mitchell
OK, I managed to get it working. I first attempted to edit the php.ini so that the session save path was C:\Temp. No matter what I did, the save path always showed up in phpinfo() as /tmp. So I created folder on the root of C: called tmp and everything worked. Thanks, Dave -- PHP General Mail

Re: [PHP] parsing value by URL-worked

2004-05-12 Thread Richard Davey
Hello, Wednesday, May 12, 2004, 12:53:44 PM, you wrote: gr> thanks a lot dear Zac and richard gr> that worked. I earlier tried $_POST[name] but not $_GET[name]. gr> thanks again No worries. One point though - make sure you use $_GET['name'] and *not* $_GET[name] (note the lack of quotes) - there

[PHP] Re: PHP5 and static attributes

2004-05-12 Thread Aidan Lister
Do you have to access that variable statically? If you're scope is the class: echo $this->myInstance; Otherwise, echo C::$myInstance will access it outside the class (I think), even though it's inherited. "Rudy Metzger" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Dear all, >

Re: [PHP] parsing value by URL

2004-05-12 Thread Mark Constable
On Wed, 12 May 2004 09:42 pm, gowthaman ramasamy wrote: > I have a problem in passing the value to another PHP script from the > first one. can any one help me to debug it. > > ENCTYPE="text/plain"> > if(isset($_POST['submit'])) > { > does many things > > $detail_file='testrun_hetero_srtdou

Re: [PHP] Resequencing logic

2004-05-12 Thread Burhan Khalid
Matt Grimm wrote: I apologize if this message is a repeat; I've had trouble posting with Thunderbird. I'm interested in how you folks would approach the following issue: You have a list of data, in a user-defined sequence. For instance, a list of song titles that can be rearranged on a web pa

  1   2   >