php-general Digest 7 Dec 2006 12:42:34 -0000 Issue 4501
php-general Digest 7 Dec 2006 12:42:34 - Issue 4501 Topics (messages 245590 through 245607): PHP Installation question 245590 by: Beauford 245593 by: Chris 245601 by: Beauford 245602 by: Chris Re: How to not be abused by mail form injectors? 245591 by: Curt Zirzow 245594 by: Curt Zirzow 245595 by: Dotan Cohen 245598 by: bruce 245599 by: Jochem Maas Re: taking a one off payment 245592 by: Mark R. Cervarich 245605 by: Lester Caine Re: Newsgroup connect time has become very long 245596 by: Chuck Anderson 245597 by: Chuck Anderson Fatal error: Call to a member function on a non-object 245600 by: XeRnOuS ThE 245603 by: Ryan Creaser 245606 by: T.Lensselink Re: [PHP-DEV] Making a method called list or other language constructs names. 245604 by: Richard Lynch recursive function problem 245607 by: Sjef Administrivia: To subscribe to the digest, e-mail: [EMAIL PROTECTED] To unsubscribe from the digest, e-mail: [EMAIL PROTECTED] To post to the list, e-mail: php-general@lists.php.net -- ---BeginMessage--- Hi, I am trying to install vBulletin and keep getting this error: Fatal error: Call to undefined function: gzinflate(). The only thing I can find on this is that zlib needs to be configured with PHP at compile time. So I reinstalled PHP using the following: ./configure --with-mysql --with-apache=../apache_1.3.36 --with-zlib --with-gd make make install The above finishes with no error. I rebooted, but still get same error, and zlib or gd doesn't show up in my phpinfo output. zlib is installed, and from my understanding gd is included with PHP, all the other libraries for gd are also installed. So what am I doing wrong? Also, how do I find out where something is installed? i.e. zlib. If I do a search on it I get hundreds of hits... Last. In the above ./configure line I get a message from PHP saying I am using the built in version of MySQL - if I point it to the actual MySQL source directory I get the following error. configure: error: Cannot find libmysqlclient library under ../mysql-5.0.22 Any help is appreciated. I am using Slacware 10, PHP 4.4.4, MySQL5.0, and Apache 1.3.36 Thanks ---End Message--- ---BeginMessage--- Beauford wrote: Hi, I am trying to install vBulletin and keep getting this error: Fatal error: Call to undefined function: gzinflate(). The only thing I can find on this is that zlib needs to be configured with PHP at compile time. So I reinstalled PHP using the following: ./configure --with-mysql --with-apache=../apache_1.3.36 --with-zlib --with-gd make make install The above finishes with no error. I rebooted, but still get same error, and zlib or gd doesn't show up in my phpinfo output. zlib is installed, and from my understanding gd is included with PHP, all the other libraries for gd are also installed. So what am I doing wrong? Check if you have zlib-devel or zlib-dev package installed. You need this to be able to compile support into other applications. No idea how you do this on slackware. Also try specifying the path to zlib: --with-zlib=/usr for example. Also, how do I find out where something is installed? i.e. zlib. If I do a search on it I get hundreds of hits... No idea about slackware. Do a search or ask a slackware list/forum. Last. In the above ./configure line I get a message from PHP saying I am using the built in version of MySQL - if I point it to the actual MySQL source directory I get the following error. configure: error: Cannot find libmysqlclient library under ../mysql-5.0.22 Install the mysql-dev/devel /or mysql-client packages most likely. Or point it to the right directory. You need to point it to the base of the mysql package. Eg if mysql is installed in /usr/local/mysql (so binaries are under /usr/local/mysql/bin libs are in /usr/local/mysql/lib) then --with-mysql=/usr/local/mysql -- Postgresql php tutorials http://www.designmagick.com/ ---End Message--- ---BeginMessage--- I have zlib-1.2.1.1-i486-1. Whether that is zlib-devel or zlib-dev I have no idea, and not sure how to find out. Sort of figured out the MySQL problem, but now I get an error when I run 'make'. This is not a biggie, but the other problem I need to get resolved. Thanks -Original Message- From: Chris [mailto:[EMAIL PROTECTED] Sent: December 6, 2006 7:35 PM To: Beauford Cc: php-general@lists.php.net Subject: Re: [PHP] PHP Installation question Beauford wrote: Hi, I am trying to install vBulletin and keep getting this error: Fatal error: Call to undefined function: gzinflate(). The only thing I can find on this is that zlib needs to be configured with PHP at compile time. So I reinstalled PHP using the following: ./configure --with-mysql --with-apache=../apache_1.3.36 --with-zlib
php-general Digest 8 Dec 2006 01:22:33 -0000 Issue 4502
php-general Digest 8 Dec 2006 01:22:33 - Issue 4502 Topics (messages 245608 through 245628): Re: recursive function problem 245608 by: T.Lensselink 245609 by: Jochem Maas 245610 by: Sjef 245611 by: Sjef 245612 by: Paul Scott 245613 by: Sjef 245615 by: Roman Neuhauser 245626 by: Chris Re: Ensuring that variable contains a number 245614 by: Roman Neuhauser 245616 by: Dave Goodchild Active Directory password change utility in PHP 245617 by: Saqib Ali Re: taking a one off payment 245618 by: Jonesy 245619 by: Mark R. Cervarich 245623 by: Lester Caine LAMP appliance for non-profit use 245620 by: Saqib Ali 245624 by: Johannes Lindenbaum 245625 by: Johannes Lindenbaum news.php.net times out - unreachable for days 245621 by: Chuck Anderson 245622 by: Chuck Anderson Re: PHP Installation question 245627 by: Beauford 245628 by: Chris Administrivia: To subscribe to the digest, e-mail: [EMAIL PROTECTED] To unsubscribe from the digest, e-mail: [EMAIL PROTECTED] To post to the list, e-mail: php-general@lists.php.net -- ---BeginMessage--- If you show some code maybe somebody on the list can help you. On Thu, 7 Dec 2006 13:41:00 +0100, Sjef [EMAIL PROTECTED] wrote: Hello! I wrote a recursive function, but when running the function appache stalls, the error log says: module mod_php4.c is already running, skipping Is this a bug, or am I doing something wrong? Thanxs, Sjef -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php ---End Message--- ---BeginMessage--- Sjef wrote: Hello! I wrote a recursive function, but when running the function appache stalls, the error log says: module mod_php4.c is already running, skipping this error message is from the apache start up routine - you seem to loading the php4 apache module twice. fix you apache config file. Is this a bug, or am I doing something wrong? you are doing something wrong - but it is nothing to do with your recursive function (at least from what you write I fairly certain that you can rule it out) Thanxs, Sjef ---End Message--- ---BeginMessage--- Hello! I wrote a recursive function, but when running the function appache stalls, the error log says: module mod_php4.c is already running, skipping Is this a bug, or am I doing something wrong? Thanxs, Sjef ---End Message--- ---BeginMessage--- Hello! I wrote a recursive function, but when running the function appache stalls, the error log says: module mod_php4.c is already running, skipping Is this a bug, or am I doing something wrong? Thanxs, Sjef ---End Message--- ---BeginMessage--- On Thu, 2006-12-07 at 13:41 +0100, Sjef wrote: Hello! I wrote a recursive function, but when running the function appache stalls, the error log says: Did you write a recursive function to send this mail to this list perhaps? --Paul All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/uwc2006/content/mail_disclaimer/index.htm ---End Message--- ---BeginMessage--- No, I'm sure I didn't. My news server is incredibly slow, and I am (incredibly?) impatient, so I pushed the send button more than once ... Sorry about that! Sjef -Oorspronkelijk bericht- Van: Paul Scott [mailto:[EMAIL PROTECTED] Verzonden: donderdag 7 december 2006 14:50 Aan: Sjef CC: php-general@lists.php.net Onderwerp: Re: [PHP] recursive function problem On Thu, 2006-12-07 at 13:41 +0100, Sjef wrote: Hello! I wrote a recursive function, but when running the function appache stalls, the error log says: Did you write a recursive function to send this mail to this list perhaps? --Paul ---End Message--- ---BeginMessage--- # [EMAIL PROTECTED] / 2006-12-07 13:41:00 +0100: I wrote a recursive function, but when running the function appache stalls, the error log says: module mod_php4.c is already running, skipping That has nothing to do with the function call. Is this a bug, or am I doing something wrong? The bug is in your code. -- How many Vietnam vets does it take to screw in a light bulb? You don't know, man. You don't KNOW. Cause you weren't THERE. http://bash.org/?255991 ---End Message--- ---BeginMessage--- Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2006-12-07 13:41:00 +0100: I wrote a recursive function, but when running the function appache stalls, the error log says: module mod_php4.c is already running, skipping That has nothing to do with the function call. Is this a bug, or am I doing something wrong? The bug is in your code. Not a bug in the code. You have two calls to mod_php4.c in your apache config file(s). -- Postgresql php tutorials http://www.designmagick.com/ ---End Message---
Re: [PHP] Fatal error: Call to a member function on a non-object
Not only that. think you are also passing the wrong parameters to the constructor. On Thu, 07 Dec 2006 15:48:10 +1030, Ryan Creaser [EMAIL PROTECTED] wrote: XeRnOuS ThE wrote: First, if a fatal error is occurring on line 24, why is it executing line 24 successfully and returning data? Second, if there’s a fatal error on line 24, why is line 25 still processed? Maybe because you're running it twice? Line 41 with the $this-Auth( ... seems to be running the constructor again, it might be failing there? - rjc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] recursive function problem
Hello! I wrote a recursive function, but when running the function appache stalls, the error log says: module mod_php4.c is already running, skipping Is this a bug, or am I doing something wrong? Thanxs, Sjef -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] recursive function problem
If you show some code maybe somebody on the list can help you. On Thu, 7 Dec 2006 13:41:00 +0100, Sjef [EMAIL PROTECTED] wrote: Hello! I wrote a recursive function, but when running the function appache stalls, the error log says: module mod_php4.c is already running, skipping Is this a bug, or am I doing something wrong? Thanxs, Sjef -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] recursive function problem
Sjef wrote: Hello! I wrote a recursive function, but when running the function appache stalls, the error log says: module mod_php4.c is already running, skipping this error message is from the apache start up routine - you seem to loading the php4 apache module twice. fix you apache config file. Is this a bug, or am I doing something wrong? you are doing something wrong - but it is nothing to do with your recursive function (at least from what you write I fairly certain that you can rule it out) Thanxs, Sjef -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] recursive function problem
Hello! I wrote a recursive function, but when running the function appache stalls, the error log says: module mod_php4.c is already running, skipping Is this a bug, or am I doing something wrong? Thanxs, Sjef -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] recursive function problem
Hello! I wrote a recursive function, but when running the function appache stalls, the error log says: module mod_php4.c is already running, skipping Is this a bug, or am I doing something wrong? Thanxs, Sjef -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] recursive function problem
On Thu, 2006-12-07 at 13:41 +0100, Sjef wrote: Hello! I wrote a recursive function, but when running the function appache stalls, the error log says: Did you write a recursive function to send this mail to this list perhaps? --Paul All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/uwc2006/content/mail_disclaimer/index.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] recursive function problem
No, I'm sure I didn't. My news server is incredibly slow, and I am (incredibly?) impatient, so I pushed the send button more than once ... Sorry about that! Sjef -Oorspronkelijk bericht- Van: Paul Scott [mailto:[EMAIL PROTECTED] Verzonden: donderdag 7 december 2006 14:50 Aan: Sjef CC: php-general@lists.php.net Onderwerp: Re: [PHP] recursive function problem On Thu, 2006-12-07 at 13:41 +0100, Sjef wrote: Hello! I wrote a recursive function, but when running the function appache stalls, the error log says: Did you write a recursive function to send this mail to this list perhaps? --Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Ensuring that variable contains a number
# [EMAIL PROTECTED] / 2006-12-06 23:51:45 +0200: How can I ensure that a variable contains a postive integer number? I'm currently using this code: $number=(1-$number); $number=(1-$number); if ( $number1 ) { $number=1; } But I'm sure that there is a better way. What would that be? Thanks. As the 'number' is used in a for loop, it actually is alright if it is a float. I just added a check that the number is indeed =1, otherwise I set it to 1. Good enough for this project, anyway... :) $number = max(intval($number), 1); -- How many Vietnam vets does it take to screw in a light bulb? You don't know, man. You don't KNOW. Cause you weren't THERE. http://bash.org/?255991 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] recursive function problem
# [EMAIL PROTECTED] / 2006-12-07 13:41:00 +0100: I wrote a recursive function, but when running the function appache stalls, the error log says: module mod_php4.c is already running, skipping That has nothing to do with the function call. Is this a bug, or am I doing something wrong? The bug is in your code. -- How many Vietnam vets does it take to screw in a light bulb? You don't know, man. You don't KNOW. Cause you weren't THERE. http://bash.org/?255991 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Ensuring that variable contains a number
is_numeric will return true for a positive or negative number.
[PHP] Active Directory password change utility in PHP
Hello All, Last year I wrote a small ASP utility which allowed domain users to change their Active Directory password using a web site. The utility used ADSI (Active Directory Service Interfaces) so it was quite easy to implement. However now we would like to integrated this into our LAMP based stack, so I am planning to re-write the application in PHP. Would it be possible to write such a application in PHP? If so, can you please give me some pointers. My other PHP apps talk to AD using LDAP libraries, but I haven't tried password change for a directory that spans multiple domains. Any suggestions would be greatly appreciate. saqib http://www.full-disk-encryption.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: taking a one off payment
On Thu, 07 Dec 2006 07:14:12 +, Lester Caine wrote: Mark R. Cervarich wrote: http://checkout.google.com -- Google's answer to PayPal. Best part is, they are taking NO FEES from now through 12/31/2007. So you can use them to receive credit card payments for just over a year for FREE. At 2% + $20 per transaction they needed to do something to get take-up I've used it, and once account was setup, I was paid within 2-3 days. Best part is, you can, from inside the webpage, click Send Invoice and it will ask you for an email addy, and a description of what you are billing 'em for. You don't have to create a full shopping cart system!!! I'm assuming that this is US only? An international alternative to Paypal would be nice if only to ensure that rates are kept competitive. Look at ClickBuy (aka, or formerly ka: FirstGate): http://clickandbuy.com/ I use them from here in the North American Colonies to pay my subscription to individual.de -- my usenet server. WFM. Jonesy -- Marvin L Jones| jonz | W3DHJ | linux 38.24N 104.55W | @ config.com | Jonesy | OS/2 *** Killfiling google posts: http//jonz.net/ng.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Re: taking a one off payment
On Thu, 7 Dec 2006, Lester Caine wrote: Mark R. Cervarich wrote: http://checkout.google.com -- Google's answer to PayPal. Best part is, they are taking NO FEES from now through 12/31/2007. So you can use them to receive credit card payments for just over a year for FREE. At 2% + $20 per transaction they needed to do something to get take-up Hmmm, your decimal is in the wrong place: https://checkout.google.com/support/sell/bin/answer.py?answer=30724ctx=sibling If you're not an AdWords advertiser, or if you've exceeded your free transaction processing amount for the month, you'll only be charged 2.0% plus $0.20 per transaction. Compare that to PayPal's Standard Rate of (2.9% + $0.30). Either free, or at (2% + $0.20), google checkout would appear to be cheaper than paypal. mark (just a happy checkout customer) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] LAMP appliance for non-profit use
Hello All, I know this is little bit off-topic but I think users of this group can give good advice on this topic. We have a in-house built application using MySQL + PHP + Apache. It is essentially a elaborate collection of online forms that will be used for managing school scholarship in the 3rd world countries. The student/teachers will either come to the office or fill out the forms online. We have identified few pilot location and would like to deploy this application. However due to lack of IT support at the location we have decided to use a pre-configured appliance which support the LAMP stack. All we want to do is directly ship the appliance to the location, and remotely install our app. We want the appliance to require minimal maintenance and administration, and have a auto-update feature to get security patches etc. I had previously worked on a similar project and used Sun Cobalt 550 servers. But now I think Sun has stopped making them and you can only buy them refurbished and the auto-update features are severely limited. Any other suggestion??? We want the appliance to cost us $1,000 / unit. Thanks saqib http://www.full-disk-encryption.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] news.php.net times out - unreachable for days
It's probably been well over a week or even two. I can no longer connect to php.net through Thunderbird (as I have been doing daily for many months). It always times out. I'll be lucky if this post even makes it. I saw some other posts indicating that I am not alone. Something NEEDS to be fixed. I'll just have to keep trying to connect every day and hope something changes. As of now, das ist kaput! -- * Chuck Anderson • Boulder, CO http://www.CycleTourist.com * -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] news.php.net times out - unreachable for days
It's actually been well over a week or even two. I can no longer connect to php.net with Thunderbird (as I have been doing daily for many months - news.php.net - port 119). It always times out. I'll be lucky if this post even makes it. I got connected briefly yesterday and saw some other posts indicating that I am not alone. Something NEEDS to be fixed. I'll just have to keep trying to connect every day and hope something changes. As of now, das ist kaput! -- * Chuck Anderson • Boulder, CO http://www.CycleTourist.com * -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: taking a one off payment
Mark R. Cervarich wrote: On Thu, 7 Dec 2006, Lester Caine wrote: Mark R. Cervarich wrote: http://checkout.google.com -- Google's answer to PayPal. Best part is, they are taking NO FEES from now through 12/31/2007. So you can use them to receive credit card payments for just over a year for FREE. At 2% + $20 per transaction they needed to do something to get take-up Hmmm, your decimal is in the wrong place: https://checkout.google.com/support/sell/bin/answer.py?answer=30724ctx=sibling If you're not an AdWords advertiser, or if you've exceeded your free transaction processing amount for the month, you'll only be charged 2.0% plus $0.20 per transaction. Mush easier to read WITH the leading zero - At 1280x1024 I can't ACTUALLY see the decimal point! But it is only available in the US so does not help me :( -- Lester Caine - G8HFL - L.S.Caine Electronic Services - http://home.lsces.co.uk Model Engineers Digital Workshop - http://home.lsces.co.uk/ModelEngineersDigitalWorkshop/ Treasurer - Firebird Foundation Inc. - http://www.firebirdsql.org/index.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: LAMP appliance for non-profit use
Hello, in my eyes, if you want easy and secure and easily customisable use Apachefriends' XAMPP. It's released for Mac, Linux (various flavours, or as source) and Win32 environments. http://www.apachefriends.org Hope this helps, Regards, Johannes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: LAMP appliance for non-profit use
Sorry, my bad - totally ignore that email. Thought you were looking for a new LAMPP solution. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] recursive function problem
Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2006-12-07 13:41:00 +0100: I wrote a recursive function, but when running the function appache stalls, the error log says: module mod_php4.c is already running, skipping That has nothing to do with the function call. Is this a bug, or am I doing something wrong? The bug is in your code. Not a bug in the code. You have two calls to mod_php4.c in your apache config file(s). -- Postgresql php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] PHP Installation question
I'm thinking though that this isn't really the problem. When I install Slackware, I install everything (except for games). On my older PC I installed version 8.1 and had no problems, but now with version 10 I have problems. I'm pretty sure that zlib-dev or zlib-devel has never been included in either version of Slack. So I think I'm just going around in circles with this. Thoughts.. B -Original Message- From: Chris [mailto:[EMAIL PROTECTED] Sent: December 7, 2006 12:15 AM To: Beauford Cc: php-general@lists.php.net Subject: Re: [PHP] PHP Installation question Beauford wrote: I have zlib-1.2.1.1-i486-1. Whether that is zlib-devel or zlib-dev I have no idea, and not sure how to find out. Zlib is different to zlib-dev/zlib-devel. The zlib package only contains the binaries and man pages. The zlib-devel package contains the header files (zlib.h for example) you need for compiling against it. -- Postgresql php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP Installation question
Beauford wrote: I'm thinking though that this isn't really the problem. When I install Slackware, I install everything (except for games). On my older PC I installed version 8.1 and had no problems, but now with version 10 I have problems. I'm pretty sure that zlib-dev or zlib-devel has never been included in either version of Slack. So I think I'm just going around in circles with this. locate zlib.h if that returns nothing, then the problem is still that you need the zlib-dev package installed. If it does return something then what does it return ? Maybe you need to specify the path to zlib in the php configure line. -- Postgresql php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] weird timestamp problem
I am working on an app that has 15 minute blocks of time to schedule meeting room reservations and have ran into an rather odd problem. Any ideas as to what could be causing this I am expecting the block of code output this: 7:00PM 7:15PM 7:15PM 7:30PM 7:30PM 7:45PM etc from 5:00 AM local time (PST) to 9:30 PM, but instead starting at 7:45PM, I see this (time jumps from 8:00 to 8:01). 7:45 PM 8:00 PM 8:01 PM 8:16 PM 8:16 PM 8:31 PM 8:31 PM 8:46 PM etc What is odd is that the app works as intended if I use 30 minute blocks of 15 minute blocks Snippet of code is below // menu start time $start_c = mktime(5, 0, 0, $month_t, $day_t, $year_t); // menu end time $end_c = mktime(21, 30, 0, $month_t, $day_t, $year_t); while($start_c $end_c) { $time_start = $start_c; $loop_s = $loop_s+900; $time_end = $end_c; $unix_e = $time_end-900; $unix_s = date(U, $time_start); $timeloop_e = date(g:i A, $time_end); $timeloop_s = date(g:i A, $time_start); print(trtd class=\timeblock\ align=\center\. $timeloop_s .br /. $timeloop_e . /td\n); } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] PHP Installation question
On the old PC zlib.h is in /usr/local/inlude. On the new PC it's in /usr/include and /usr/include/linux. I'm in the process of reinstalling PHP, but I have my doubts. Thanks -Original Message- From: Chris [mailto:[EMAIL PROTECTED] Sent: December 7, 2006 8:21 PM To: Beauford Cc: php-general@lists.php.net Subject: Re: [PHP] PHP Installation question Beauford wrote: I'm thinking though that this isn't really the problem. When I install Slackware, I install everything (except for games). On my older PC I installed version 8.1 and had no problems, but now with version 10 I have problems. I'm pretty sure that zlib-dev or zlib-devel has never been included in either version of Slack. So I think I'm just going around in circles with this. locate zlib.h if that returns nothing, then the problem is still that you need the zlib-dev package installed. If it does return something then what does it return ? Maybe you need to specify the path to zlib in the php configure line. -- Postgresql php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] fopen failed to open pipe file in Linux+Apache environment
Hi, I have problem of open named pipe file in linux. Here is my sample code: $fifo_file = /dev/pmsg; @ $fp = fopen($fifo_file, 'w+b'); if(!$fp) { echo open .$fifo_file. failed; } else { $msg_cmd = ttt; fwrite($fp, $msg_cmd, strlen($msg_cmd)); fclose($fp); } There is an other program which is waiting for messages from /dev/pmsg forever. You could also test it by running `cat /dev/pmsg` in shell console. Every one have permissions of read and write for /dev/pmsg prw-rw-rw- 1 root root 0 12-08 10:13 /dev/pmsg Environment info: php-5.1.2-5, httpd-2.2.0-5.1.2, OS: Redhat FC5 Thanks in advance, Mike
Re: [PHP] PHP Installation question
Beauford wrote: Hi, I am trying to install vBulletin and keep getting this error: Fatal error: Call to undefined function: gzinflate(). The only thing I can find on this is that zlib needs to be configured with PHP at compile time. So I reinstalled PHP using the following: ./configure --with-mysql --with-apache=../apache_1.3.36 --with-zlib --with-gd make make install The above finishes with no error. I rebooted, but still get same error, and zlib or gd doesn't show up in my phpinfo output. zlib is installed, and from my understanding gd is included with PHP, all the other libraries for gd are also installed. So what am I doing wrong? Also, how do I find out where something is installed? i.e. zlib. If I do a search on it I get hundreds of hits... Last. In the above ./configure line I get a message from PHP saying I am using the built in version of MySQL - if I point it to the actual MySQL source directory I get the following error. configure: error: Cannot find libmysqlclient library under ../mysql-5.0.22 Any help is appreciated. I am using Slacware 10, PHP 4.4.4, MySQL5.0, and Apache 1.3.36 Thanks Did you recompile apache after running php's make install? Using --with-apache builds a module that gets compiled *into* apache (as opposed to --with-apxs which creates a dynamic module), ie. you need to rebuild apache after building php. My guess is the gzinflate error probably comes from an old php module. - rjc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] fopen failed to open pipe file in Linux+Apache environment
mike xu wrote: Hi, I have problem of open named pipe file in linux. Here is my sample code: $fifo_file = /dev/pmsg; @ $fp = fopen($fifo_file, 'w+b'); It's wb+ not w+b -- Postgresql php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] fopen failed to open pipe file in Linux+Apache environment
mike xu wrote: Hi, I have problem of open named pipe file in linux. Here is my sample code: $fifo_file = /dev/pmsg; @ $fp = fopen($fifo_file, 'w+b'); if(!$fp) { echo open .$fifo_file. failed; } else { $msg_cmd = ttt; fwrite($fp, $msg_cmd, strlen($msg_cmd)); fclose($fp); } There is an other program which is waiting for messages from /dev/pmsg forever. You could also test it by running `cat /dev/pmsg` in shell console. Every one have permissions of read and write for /dev/pmsg prw-rw-rw- 1 root root 0 12-08 10:13 /dev/pmsg Environment info: php-5.1.2-5, httpd-2.2.0-5.1.2, OS: Redhat FC5 Thanks in advance, Mike Are you getting any errors? What if you remove the @ from the start of line 2, any errors now? - rjc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] weird timestamp problem
I'm not sure why you'd have that problem, but I definitely think you're over-engineering the code. That could well be why you're having a problem. You can greatly simplify it like so: $start_c = mktime(5, 0, 0, $month_t, $day_t, $year_t); $end_c = mktime(21, 30, 0, $month_t, $day_t, $year_t); for ($start_time = $start_c; $start_time = $end_c; $start_time += 900) { $start = date(g:i A, $start_time); $end = date(g:i A, $start_time + 900); print $startbr /$end; } There may be an edge-case at the end you need to deal with, as I've not tested the above, but as there's less code there's fewer places things can go wrong. That's generally a good way to do things. :-) On Thursday 07 December 2006 18:55, Amanda Emily wrote: I am working on an app that has 15 minute blocks of time to schedule meeting room reservations and have ran into an rather odd problem. Any ideas as to what could be causing this I am expecting the block of code output this: 7:00PM 7:15PM 7:15PM 7:30PM 7:30PM 7:45PM etc from 5:00 AM local time (PST) to 9:30 PM, but instead starting at 7:45PM, I see this (time jumps from 8:00 to 8:01). 7:45 PM 8:00 PM 8:01 PM 8:16 PM 8:16 PM 8:31 PM 8:31 PM 8:46 PM etc What is odd is that the app works as intended if I use 30 minute blocks of 15 minute blocks Snippet of code is below // menu start time $start_c = mktime(5, 0, 0, $month_t, $day_t, $year_t); // menu end time $end_c = mktime(21, 30, 0, $month_t, $day_t, $year_t); while($start_c $end_c) { $time_start = $start_c; $loop_s = $loop_s+900; $time_end = $end_c; $unix_e = $time_end-900; $unix_s = date(U, $time_start); $timeloop_e = date(g:i A, $time_end); $timeloop_s = date(g:i A, $time_start); print(trtd class=\timeblock\ align=\center\. $timeloop_s .br /. $timeloop_e . /td\n); } -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817012 If nature has made any one thing less susceptible than all others of exclusive property, it is the action of the thinking power called an idea, which an individual may exclusively possess as long as he keeps it to himself; but the moment it is divulged, it forces itself into the possession of every one, and the receiver cannot dispossess himself of it. -- Thomas Jefferson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Going crazy over mod_deflate
Before I start, I am using apache 2.0.52 with PHP 4.3.9. In my .htaccess, I have a rewrite rule that rewrites /bb.flv as /bb.php, and this bb.php file reads a flv file and outputs it. In the PHP file, I am specifying content-type as video/x-flv and content-length, however mod_deflate still compresses this, and also removes the content-length header from the response, and this messes up the flv player!... I tried everything, simply everything, and yet could not get mod_deflate to by-pass this file. For some reason, it does not see this content as video/x-flv, and treats is as regular text And, when I disable the mod_deflate filter, everything returns back to normal. BTW, I am not doing any compression on the PHP side!... Things I tried are: + AddOutputFilterByType DEFLATE text/html text/plain text/xml + SetEnvIfNoCase Request_URI \ \.(?:gif|jpe?g|png|flv)$ no-gzip dont-vary I tried putting these in directory, location, virtual and global context, and none of them worked. Additionally, I tried to rewrite the type using the rewriterule as: RewriteRule ^bb.flv /bb.php [T=video/x-flv] I also tried ForcedType, AddTpe, AddOutputFilter (by extension), etc. etc. But, still the output is compressed. And, the response headers I am seeing are: content-disposition: inline; filename=123.flv Vary: Accept-Encoding Content-Encoding: gzip Keep-Alive: timeout=5, max=96 Connection: Keep-Alive Transfer-Encoding: chunked Content-Type: video/x-flv Can you please tell what I am missing here and/or is there anyway I can by-pass the mod_deflate compression? TIA. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Active Directory password change utility in PHP
Hello I use php_ldap (see the php.net/ldap) to authenticate users against a AD server. However, this is the LDAP interface and I don't know if poeple will be allowed to change their password that way... vincent -Original Message- From: Saqib Ali [mailto:[EMAIL PROTECTED] Sent: Thu 7/12/2006 18:45 To: php-general@lists.php.net Subject: [PHP] Active Directory password change utility in PHP Hello All, Last year I wrote a small ASP utility which allowed domain users to change their Active Directory password using a web site. The utility used ADSI (Active Directory Service Interfaces) so it was quite easy to implement. However now we would like to integrated this into our LAMP based stack, so I am planning to re-write the application in PHP. Would it be possible to write such a application in PHP? If so, can you please give me some pointers. My other PHP apps talk to AD using LDAP libraries, but I haven't tried password change for a directory that spans multiple domains. Any suggestions would be greatly appreciate. saqib http://www.full-disk-encryption.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP / MVC layout question
Hello, the Zend Framework, as others, offers a MVC implementation for PHP. I guess my understanding of this is right, but I still have a question. Maybe you can help. Depending on the request, a controller is called. This can do various stuff w/o model(s), and then a view is displayed. That is, only one vue is displayed at a time. We use this happily into applications where input or list forms are displayed one at a time. The top banner template is included into every application view so that is will always be displayed. But I do not like the idea to embed (include) the top banner template into every view. The problem is even more obvious when we want to create a 'portal' layout, displaying many information panels, which should be splitted into many models/views. For example, a portal homepage may display a login form, a news feed, a banner, a footer, a poll, etc. When the user enters a bad username into the login form, we should re-display the portal page and provide the error message near the login form. So, the request to the login controller should be able to re-display the complete layout. How do you handle this? frames? iframes? ajax? other? thanks for your interest. Vincent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] recursive function problem
# [EMAIL PROTECTED] / 2006-12-08 10:59:51 +1100: Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2006-12-07 13:41:00 +0100: I wrote a recursive function, but when running the function appache stalls, the error log says: module mod_php4.c is already running, skipping That has nothing to do with the function call. Is this a bug, or am I doing something wrong? The bug is in your code. Not a bug in the code. You have two calls to mod_php4.c in your apache config file(s). that's completely unrelated to his apache stalling when he calls his recursive function. -- How many Vietnam vets does it take to screw in a light bulb? You don't know, man. You don't KNOW. Cause you weren't THERE. http://bash.org/?255991 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP Installation question
# [EMAIL PROTECTED] / 2006-12-08 12:21:16 +1100: Beauford wrote: I'm thinking though that this isn't really the problem. When I install Slackware, I install everything (except for games). On my older PC I installed version 8.1 and had no problems, but now with version 10 I have problems. I'm pretty sure that zlib-dev or zlib-devel has never been included in either version of Slack. So I think I'm just going around in circles with this. locate zlib.h if that returns nothing, then the problem is still that you need the zlib-dev package installed. or that his locate database hasn't been rebuilt since he installed the file. please give better advice. -- How many Vietnam vets does it take to screw in a light bulb? You don't know, man. You don't KNOW. Cause you weren't THERE. http://bash.org/?255991 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] fopen failed to open pipe file in Linux+Apache environment
Thanks a lot forr your reply. Here is the error msg: *Warning*: fopen(/dev/pmsg) [function.fopenhttp://localhost/Source/test/function.fopen]: failed to open stream: Permission denied in * /var/www/html/Source/test/register_user.php* on line *31 It still doesn't work even if I move pmsg to /tmp/ directory and change its own to appache... * On 12/8/06, Ryan Creaser [EMAIL PROTECTED] wrote: mike xu wrote: Hi, I have problem of open named pipe file in linux. Here is my sample code: $fifo_file = /dev/pmsg; @ $fp = fopen($fifo_file, 'w+b'); if(!$fp) { echo open .$fifo_file. failed; } else { $msg_cmd = ttt; fwrite($fp, $msg_cmd, strlen($msg_cmd)); fclose($fp); } There is an other program which is waiting for messages from /dev/pmsg forever. You could also test it by running `cat /dev/pmsg` in shell console. Every one have permissions of read and write for /dev/pmsg prw-rw-rw- 1 root root 0 12-08 10:13 /dev/pmsg Environment info: php-5.1.2-5, httpd-2.2.0-5.1.2, OS: Redhat FC5 Thanks in advance, Mike Are you getting any errors? What if you remove the @ from the start of line 2, any errors now? - rjc