RE: [PHP] PHP Sessions on Windows

2004-05-12 Thread rich
> How does one get sessions working on Windows? I have modified my php.ini > file so that session.save_path = C:\Temp, restarted and Apache. > Still I get > this error message: > > Warning: session_start(): open(/tmp\sess_26310affee160329c9e50f27663f8971, > O_RDWR) failed: No such file or directory

php-general Digest 12 May 2004 07:24:51 -0000 Issue 2758

2004-05-12 Thread php-general-digest-help
php-general Digest 12 May 2004 07:24:51 - Issue 2758 Topics (messages 185936 through 185955): Re: php calender 185936 by: Daniel Clark 185937 by: Torsten Roehr include (or require) doesn't seem to work 185938 by: Daniel Barbar 185939 by: Torsten Roehr

[PHP] function imagecreatefromjpeg()

2004-05-12 Thread PHP
Hello, I use the function imagecreatefromjpeg() to create thumbnails of my pictures. This is the code I use : It works for some of my pictures, but with some pictures the result is an imagefile with filesize zero. When I check the log files then I see that these lines has occured: [11-May-2004

[PHP] PHP5 and static attributes

2004-05-12 Thread Rudy Metzger
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 -- class B extends class A { } // --- CLASS C ---

[PHP] Ordering alphabetical in secondary select string

2004-05-12 Thread R.G. Vervoort
Does anyone have a suggestion how I can order a list with names in a secondary select string. The first string selects a number of locations where people work >From this string I get several id's form people (in the location table there are no names but id's form the people table) that wo

RE: [PHP] php calender

2004-05-12 Thread Angelo Zanetti
read the archives this question was asked last week. cheers angelo -Original Message- From: Edward Peloke [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 11, 2004 9:12 PM To: PHP Mailing Lists Subject: [PHP] php calender I am currently working on a site for a vacation rental company. The

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

2004-05-12 Thread Daniel Barbar
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 a closer look later and report the problem if I find it. Thanks again, Daniel "

[PHP] Send username & password in HTTP headers

2004-05-12 Thread Nagendra Prasad
Hi, I have a problem. 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"'); Now the page getxml.php ask

Re: [PHP] function imagecreatefromjpeg()

2004-05-12 Thread Petr U.
On Wed, 12 May 2004 10:48:24 +0200 "PHP" <[EMAIL PROTECTED]> wrote: > [11-May-2004 23:16:15] PHP Warning: imagecreatefromjpeg() [ href='http://www.php.net/function.imagecreatefromjpeg'>function.imagecreatef > romjpeg]: '/home/infos/domalle/miweb/pizias/photodir/6.jpg' is not a > valid JPEG file

Re: [PHP] function imagecreatefromjpeg()

2004-05-12 Thread PHP
I checked to open it with Fireworks and I got an error, but other programs like MS Internet Explorer can open it perfectly. The files on which PHP gives an error are the same as the ones that Fireworks can't open and vice versa. Is there a solution to fix these files, since they are not really co

[PHP] Sessions not working on Linux - Apache

2004-05-12 Thread Zac Hillier - Net Affectors
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 written into the /tmp folder and the se

[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

[PHP] Methods for instatiating an object

2004-05-12 Thread Jordi Canals
Hi all, It is not a big issue, but that is something that I never had clear. I've been looking at the manual and found no answer, so I will ask with an example: When instantiating an object, I could do it in two different ways: A) $object = new MyClass; B) $object =& new MyClass; I c

Re: [PHP] Methods for instatiating an object

2004-05-12 Thread Mark Constable
On Wed, 12 May 2004 08:41 pm, Jordi Canals wrote: > A)$object = new MyClass; > B)$object =& new MyClass; > 1) In case A, PHP creates a new object and returns a Copy of this new > object, so really I will have the object two instances for the object in > memory ... > > 2) In case B, PHP cre

[PHP] PHP in Uppsala, Sweden

2004-05-12 Thread Anders Hellström
Hi, I don't know how many PHP users there are here in Uppsala, Sweden, but there are bound to be a few given the size of the city, and the university probably helps too. I've set up a mailing list where we can talk in a more relaxed manner where things don't have to be strictly PHP related lik

Re: [PHP] Methods for instatiating an object

2004-05-12 Thread Rudy Metzger
On Wed, 2004-05-12 at 12:41, Jordi Canals wrote: > Hi all, > > It is not a big issue, but that is something that I never had clear. > I've been looking at the manual and found no answer, so I will ask with > an example: > > When instantiating an object, I could do it in two different ways: > >

Re: [PHP] function imagecreatefromjpeg()

2004-05-12 Thread Petr U.
On Wed, 12 May 2004 12:08:29 +0200 "PHP" <[EMAIL PROTECTED]> wrote: > Is there a solution to fix these files, since they are not really corrupt ? I don't know :) -- Petr U. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] php installer

2004-05-12 Thread 高会娟
Hi: I want to make a php install package on Win32 contain my php.ini and auto add .php file map to IIS5.0,but i don't know where the IIS file map is stored,i searched 'php' in registry and all ini file in system dir,but no result returned. who know the key? Best Regards beforefly [EM

[PHP] parsing value by URL

2004-05-12 Thread gowthaman ramasamy
hello list, I have a problem in passing the value to another PHP script from the first one. can any one help me to debug it. I generate the following URL from first script to pass two variables to next script. But the values are not passed on. But the URL invokes the second script (ya with out par

Re: [PHP] Methods for instatiating an object

2004-05-12 Thread Jordi Canals
Rudy Metzger wrote: It is as you say. The problem is normally negligible, but makes a big difference if there is alot done in the constructor of the object (e.g. scanning a huge file for certain strings). Then this will slow things down. This however is solved in PHP5. Thanks to all for your answer

Re: [PHP] parsing value by URL

2004-05-12 Thread Richard Davey
Hello, Wednesday, May 12, 2004, 12:42:30 PM, you wrote: gr> script 2 gr> _ gr> second script ... that is detailedresults.php gr> print $name; gr> print "$name"; ?>> You've probably got Register Globals turned off (and quite rightly) which means t

[PHP] parsing value by URL-worked

2004-05-12 Thread gowthaman ramasamy
thanks a lot dear Zac and richard that worked. I earlier tried $_POST[name] but not $_GET[name]. thanks again i ll reset what richard mentioned. On Wed, 2004-05-12 at 17:12, Zac Hillier - Net Affectors wrote: > try $_GET[name] > > Zac > > -- PHP General Mailing List (http://www.php.net/) To u

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

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

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

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

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

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

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

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

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

[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

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

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

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

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

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

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

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

[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

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

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

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

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 (

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

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

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

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

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

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

[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

[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

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"

  1   2   >