[PHP] Re: No SSL support in core functions with shared extensions

2004-08-30 Thread Michael Ranner
Am Dienstag, 31. August 2004 06:32 schrieben Sie: > A) I have never done, nor seen, a FBSD port build with a > "tag=," construct before, but perhaps it does work? Yes it builds the shared extension, look at "configure --help" > B) Using PHP5 as a reference instead of PHP4, the ext/openssl/configu

Re: [PHP] No SSL support in core functions with shared extensions

2004-08-30 Thread Michael Ranner
Am Dienstag, 31. August 2004 08:18 schrieb Curt Zirzow: > * Thus wrote Michael Ranner: > > Hello! > > > > Warning: fsockopen(): no SSL support in this build > > in /usr/local/www/squirrelmail/functions/imap_general.php on line 445 > > > > If I build PHP with "--with-openssl=${OPENSSLBASE}" SSL is s

Re: [PHP] Time consumed in microseconds

2004-08-30 Thread Karam Chand
Darn missed it. Looking into the docs I am using code somthing like this: $start = microtime(); $result = mysql_query ( $query, $mysql ); $end = microtime(); $diff = microtime_diff ($start, $end); function microtimdiff() is given by: function microtime_

Re: [PHP] No SSL support in core functions with shared extensions

2004-08-30 Thread Curt Zirzow
* Thus wrote Michael Ranner: > Hello! > > Warning: fsockopen(): no SSL support in this build > in /usr/local/www/squirrelmail/functions/imap_general.php on line 445 > > If I build PHP with "--with-openssl=${OPENSSLBASE}" SSL is supported by > "fsockopen()", but with "--with-openssl=shared,${OPE

Re: [PHP] My code has problem.

2004-08-30 Thread Curt Zirzow
* Thus wrote Pahlevanzadeh Mohsen: > My code is: > include_once('./auth/Auth.php'); > function x(){echo "xxx";} > > > $parameterforauth=array("dsn"=>"", > "table"=>"usernames", > "usernamecol"=>"user", >

Re: [PHP] DOM loadXML not loading doctype as expected in PHP5

2004-08-30 Thread Christian Stocker
On Tue, 31 Aug 2004 00:27:25 -0400, David Numan <[EMAIL PROTECTED]> wrote: > Hi > > I'm working on a project using PHP5 and I'm using the DOM extension > quite heavily. I need to be able to store various character entities > such as $nbsp; and é Note: this is for a custom XML document, not > stand

Re: [PHP] Problems with writing a stream wrapper to regular fopen/close functions...

2004-08-30 Thread Curt Zirzow
* Thus wrote John Holmes: > > This is the file that defines the custom stream and some of the > implementation. Not all methods are implemented, but I don't think that > matters to this issue. > > Custom Stream Class: > > stream_wrapper_register('cache','CacheStream'); >

[PHP] DOM loadXML not loading doctype as expected in PHP5

2004-08-30 Thread David Numan
Hi I'm working on a project using PHP5 and I'm using the DOM extension quite heavily. I need to be able to store various character entities such as $nbsp; and é Note: this is for a custom XML document, not standard (X)HTML. When I load my XML string into my domDocument I've been trying variations

Re: [PHP] Does this beginner's book exist?

2004-08-30 Thread JanetVal
In a message dated 8/30/2004 5:56:56 PM Pacific Daylight Time, [EMAIL PROTECTED] writes: >Does a book for complete beginners exist that also demonstrates basic >good programming practices, has decent examples, and perhaps >exercises/quizzes (not as important as the first two)? I recommend PHP

Re: [PHP] OpenLDAP+MD5 Passowrds+PHP != Work?

2004-08-30 Thread Steven Hildreth
I have several other apps that are authentication against it and a couple of them do not allow plain (MD5 and CRYPT only). Thanks, Steven On Mon, 30 Aug 2004 20:17:23 -0700, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I don't think this will work. Why do you need to MD5 the passwd if you >

Re: [PHP] OpenLDAP+MD5 Passowrds+PHP != Work?

2004-08-30 Thread Saqib . N . Ali
I don't think this will work. Why do you need to MD5 the passwd if you sending it over LDAPS:?? (LDAP over SSL)? Thanks. Saqib Ali http://validate.sf.net Steven Hildreth <[EMAIL PROTECTED]> wrote on 08/30/2004 06:33:32 PM: > Hi, Attempting to connect to an OpenLDAP server to authenticate

Re: [PHP] [Newbie Guide] For the benefit of new members

2004-08-30 Thread John Nichel
Jason Wong wrote: On Tuesday 31 August 2004 07:06, Brent Clements wrote: Damn, I just felt the wrath of the list even though I completely agree with you guys, I was just pointing out some employers requirements. Wrath? What wrath? You ain't seen nuthin yet. Hell hath no fury like Jason scorned. ;

Re: [PHP] Storing image in database

2004-08-30 Thread Jim Grill
> Dre wrote: > > line 8 is > > > just that .. and the code before it is the following > > > > //== > > > > > > Untitled Document > > > > > > > > > > //== > > > > That is the output I mentioned. > >

Re: [PHP] Time consumed in microseconds

2004-08-30 Thread John Holmes
Karam Chand wrote: In Win32 API to profile a job we use the following method: timetaken = GetTickCount(); /* do some job */ timetaken = GetTickCount() - timetaken; In this way timetaken returns you the time taken by the job to complete? How can I get it in PHP. I want the exact figure in ms? I u

Re: [PHP] Does this beginner's book exist?

2004-08-30 Thread Larry E . Ullman
Does a book for complete beginners exist that also demonstrates basic good programming practices, has decent examples, and perhaps exercises/quizzes (not as important as the first two)? The newest edition of my PHP for the World Wide Web: Visual QuickStart Guide takes into account register globals

[PHP] Time consumed in microseconds

2004-08-30 Thread Karam Chand
Hello, In Win32 API to profile a job we use the following method: timetaken = GetTickCount(); /* do some job */ timetaken = GetTickCount() - timetaken; In this way timetaken returns you the time taken by the job to complete? How can I get it in PHP. I want the exact figure in ms? I used mic

[PHP] OpenLDAP+MD5 Passowrds+PHP != Work?

2004-08-30 Thread Steven Hildreth
Hi, Attempting to connect to an OpenLDAP server to authenticate a user, just want to see if the password the user passes is the stored password if true. I can get the LDAP connection to connect to the server, but unless I switch the LDAP server to use only clear I continually get a 'Invalid Credent

[PHP] Does this beginner's book exist?

2004-08-30 Thread Chris Lott
I am looking for a new text for my beginning PHP and MySQL programming class. This class is for COMPLETE beginners who have never programmed before. I have used, in the past, PHP4: A Beginner's Guide and PHP for the World Wide Web (Visual Quicktart). (I will be using PHP4, at least until the Redha

[PHP] quoted_printable_encode

2004-08-30 Thread Bambero
What do you think about this function ? == function _headerencode($headervalue, $headername=false, $charset='ISO-8859-1', $length=76) { if($headername) $headername.=': '; $headervalue=str_replace('%', '=', rawurlencode($headerv

Re: [PHP] Closing my Window after Download

2004-08-30 Thread Curt Zirzow
* Thus wrote PHP Junkie: > Ave, > > It still doesn't work. Not only that, I put up a "close window" button in > the page and even that doesn't show up. Although that's still not what I > want. What I want is the window to close automatically. > > Here's my page: > > $file = "$P/$F"; > header("C

Re: [PHP] [Newbie Guide] For the benefit of new members

2004-08-30 Thread Jason Wong
On Tuesday 31 August 2004 07:06, Brent Clements wrote: > Damn, I just felt the wrath of the list even though I completely agree with > you guys, I was just pointing out some employers requirements. Wrath? What wrath? You ain't seen nuthin yet. I think all we're pointing out is that it takes just

Re: [PHP] Bug with mktime??

2004-08-30 Thread Michal Migurski
gives the following output: $i : Month: Year 0 : 08 : 2004 1 : 10 : 2004 2 : 10 : 2004 3 : 12 : 2004 4 : 12 : 2004 5 : 01 : 2005 6 : 03 : 2005 7 : 03 : 2005 8 : 05 : 2005 9 : 05 : 2005 10 : 07 : 2005 11 : 07 : 2005 Your bug is being caused by short months. If you ask mktime() to give you the

Re: [PHP] Bug with mktime??

2004-08-30 Thread Jason Wong
On Tuesday 31 August 2004 05:53, John Clegg wrote: > I have been using mktime() to determine the next 12 months for a > program, and i have discovered what seems a bug in the function. > > The following code... > > for($i=0;$i < 12;$i++){ > > $currentDate = date("d m Y",mktime(0, 0, 0,date("m")+$

Re: [PHP] Storing image in database

2004-08-30 Thread Marek Kilimajer
Dre wrote: line 8 is just that .. and the code before it is the following //== Untitled Document //== That is the output I mentioned. And output either html OR image, you cannot output both. Try yo

[PHP] Re: Bug with mktime??

2004-08-30 Thread Peter Brodersen
On Tue, 31 Aug 2004 09:53:01 +1200, in php.general [EMAIL PROTECTED] (John Clegg) wrote: >I have been using mktime() to determine the next 12 months for a >program, and i have discovered what seems a bug in the function. > >The following code... > >for($i=0;$i < 12;$i++){ > >$currentDate = date("

Re: [PHP] Closing my Window after Download

2004-08-30 Thread Jasper Howard
if you're not getting any html after your php script, then there's a different problem. I do the same thing and all I use is: and I've never had a problem with it not closing... -- -->> Jasper Howard ::

Re: [PHP] [Newbie Guide] For the benefit of new members

2004-08-30 Thread Brent Clements
Damn, I just felt the wrath of the list even though I completely agree with you guys, I was just pointing out some employers requirements. -Brent - Original Message - From: "Stut" <[EMAIL PROTECTED]> To: "Brent Clements" <[EMAIL PROTECTED]> Cc: "PHP Mailing List" <[EMAIL PROTECTED]> Sent

Re: [PHP] [Newbie Guide] For the benefit of new members

2004-08-30 Thread JanetVal
In a message dated 8/30/2004 3:10:42 PM Pacific Daylight Time, [EMAIL PROTECTED] writes: The problem with that request is that some employers require you to have a vacation message set. -Brent Then you need to get off the list before you leave. You can resubscribe when you return. If you need t

Re: [PHP] [Newbie Guide] For the benefit of new members

2004-08-30 Thread Marek Kilimajer
Brent Clements wrote: The problem with that request is that some employers require you to have a vacation message set. -Brent The problem is that the employers use vacation programs that do not respect "Precedence: bulk" header. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vi

[PHP] Bug with mktime??

2004-08-30 Thread John Clegg
Hi I have been using mktime() to determine the next 12 months for a program, and i have discovered what seems a bug in the function. The following code... $currentDate = date("d m Y",mktime(0, 0, 0,date("m")+$i , date("d"), date("Y"))); $currentDateArray = explode(" ",$currentDate); $currentMon

Re: [PHP] Browser back button

2004-08-30 Thread -{ Rene Brehmer }-
Documented research indicates that on Fri, 27 Aug 2004 15:20:58 -0600, Michael Gale wrote about "[PHP] Browser back button": >Hello, > > I am sure this has been asked more then a few times but ... I have a web site > where almost every page is dynamically >created. So if at some point in th

Re: [PHP] [Newbie Guide] For the benefit of new members

2004-08-30 Thread Jim Grill
Sounds like someone else's problem -- not the list's problem. If that's the case, use a different email address for mailing lists. There are plenty of free email providers out there if you can't get a spare account. Jim Grill > The problem with that request is that some employers require you to

[PHP] Re: Problem sending mail

2004-08-30 Thread Peter Brodersen
On Tue, 31 Aug 2004 00:03:26 +0200, in php.general [EMAIL PROTECTED] (M. Sokolewicz) wrote: >that would depend from which place you run the script. >file_get_contents("text.inc") will be looked for in: >1. the current working directory >2. the included dirs Remember though that for 2), it looks i

Re: [PHP] [Newbie Guide] For the benefit of new members

2004-08-30 Thread Stut
On Mon, 30 Aug 2004 16:27:42 -0500, Brent Clements <[EMAIL PROTECTED]> wrote: > The problem with that request is that some employers require you to have a > vacation message set. Then you should temporarily unsubscribe from the list until you return. Vacation messages on mailing lists are more ann

Re: [PHP] [Newbie Guide] For the benefit of new members

2004-08-30 Thread Jason Wong
On Tuesday 31 August 2004 05:27, Brent Clements wrote: > The problem with that request is that some employers require you to have a > vacation message set. unsubscribe and re-subscribe. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design

[PHP] Re: Problem sending mail

2004-08-30 Thread M. Sokolewicz
Zoran Lorkovic wrote: $file = file_get_contents("text.inc"); $start = "[start]"; $end = "[/end]"; $pos_start = strpos ($file, $start); $pos_end = strpos ($file, $end); $data = substr ($file, $pos_start, $pos_end); mail ("[EMAIL PROTECTED]", "My Subject", $data); This

Re: [PHP] [Newbie Guide] For the benefit of new members

2004-08-30 Thread Paul Waring
> The problem with that request is that some employers require you to have a > vacation message set. They can use another email account or mail from home then, it's not like there's a shortage of free web-based email providers. Paul -- PHP General Mailing List (http://www.php.net/) To unsubscri

Re: [PHP] Problem sending mail

2004-08-30 Thread Jason Wong
On Tuesday 31 August 2004 05:02, Zoran Lorkovic wrote: > $file = file_get_contents("text.inc"); > $start = "[start]"; > $end = "[/end]"; > $pos_start = strpos ($file, $start); > $pos_end = strpos ($file, $end); > $data = substr ($file, $pos_start, $pos_end); > mail ("[EMAIL

Re: [PHP] [Newbie Guide] For the benefit of new members

2004-08-30 Thread Matthew Sims
*** Automated Message - Do Not Reply *** Hello, I am currently out on vacation on a warm sunny beach, suckin' down an alcoholic beverage or something and will reply to your message when I return...or not. -- --Matthew Sims -- *** End *** > Another thing I'd like to ad

Re: [PHP] [Newbie Guide] For the benefit of new members

2004-08-30 Thread Brent Clements
The problem with that request is that some employers require you to have a vacation message set. -Brent - Original Message - From: "Paul Waring" <[EMAIL PROTECTED]> To: "Jay Blanchard" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]>; "PHP Mailing List" <[EMAIL PROTECTED]> Sent: Monday, Augus

[PHP] My code has problem.

2004-08-30 Thread Pahlevanzadeh Mohsen
My code is: "", "table"=>"usernames", "usernamecol"=>"user", "passwordcol"=>"pass"); $ptr_auth_C=new auth("DB",$parameterforauth,"x"); $ptr_auth_C->start(); ?> My output is : Warning: _factory(Auth/Container/DB.php): fail

[PHP] Handling Exceptions from Embedded PHP module

2004-08-30 Thread Nathan Schmitz
I'm attempting to troubleshoot a stability problem I'm having using the php_embed module. I'm running in a windows environment. The second time a script is interpreted that uses the "openlog" function, it will throw an access exception within the _efree function. I've looked over the SAPI str

[PHP] Problem sending mail

2004-08-30 Thread Zoran Lorkovic
$file = file_get_contents("text.inc"); $start = "[start]"; $end = "[/end]"; $pos_start = strpos ($file, $start); $pos_end = strpos ($file, $end); $data = substr ($file, $pos_start, $pos_end); mail ("[EMAIL PROTECTED]", "My Subject", $data); This code works when I ca

Re: [PHP] Closing my Window after Download

2004-08-30 Thread PHP Junkie
Ave, It still doesn't work. Not only that, I put up a "close window" button in the page and even that doesn't show up. Although that's still not what I want. What I want is the window to close automatically. Here's my page: D/L Window function close_opener() { pare

RE: [PHP] PHP- Dependant dropdown based on Mysql queries

2004-08-30 Thread Vail, Warren
I think you are coming to the compromise I've always had to make too. Warren Vail -Original Message- From: Francisco Puente XFMP (QA/EMC) [mailto:[EMAIL PROTECTED] Sent: Monday, August 30, 2004 1:44 PM To: Vail, Warren Cc: Brent Clements; [EMAIL PROTECTED] Subject: RE: [PHP] PHP- Depend

RE: [PHP] PHP- Dependant dropdown based on Mysql queries

2004-08-30 Thread Francisco Puente XFMP (QA/EMC)
Hi Vail, You are 100% correct on all the items you've mentioned. That's why I'm trying to get the less painful solution for this. I believe I'll end up reloading the page on each selection since I'll have only 3 or 4 dropdown menu to be processed by PHP and the server res

RE: [PHP] PHP- Dependant dropdown based on Mysql queries

2004-08-30 Thread Francisco Puente XFMP (QA/EMC)
Hi Greg, Yes, sorry if I missed the 'if not reloading the page is a requirement"... I can reload the page as many times I need since the queries are extensive but fast, so the server, and this runs on an intranet. I'm working right now to get this to work with some ideas p

RE: [PHP] PHP- Dependant dropdown based on Mysql queries

2004-08-30 Thread Vail, Warren
You are presented with some difficult design choices and limitations. The way I believe you are envisioning things may not work. The problem that you face is that PHP only runs on the server when preparing the page. You are asking some interactions to take place once the web page is presented

Re: [PHP] [Newbie Guide] For the benefit of new members

2004-08-30 Thread Paul Waring
Another thing I'd like to add: if you're on a public mailing list don't leave a vacation message set when you go away, it's *extremely* annoying. Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP- Dependant dropdown based on Mysql queries

2004-08-30 Thread Greg Donald
On Mon, 2004-08-30 at 14:28, Francisco Puente XFMP (QA/EMC) wrote: > Hi Brent, > I believe this is the way to go, but since I'm not a javascript guy I would > like to get some php help for doing this. > I you know some javascript can you please post some code for this task? > So

Re: [PHP] Storing image in database

2004-08-30 Thread Daniel Schierbeck
Dre wrote: line 8 is just that .. and the code before it is the following //== Untitled Document //== "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Dre wrote: Hi ..

Re: [PHP] Storing image in database

2004-08-30 Thread Torsten Roehr
"Dre" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > line 8 is > just that .. and the code before it is the following > > file://== > > > Untitled Document > > > > Why not putting your PHP code at the top of the page? The blank l

RE: [PHP] Re: PHP- Dependant dropdown based on Mysql queries

2004-08-30 Thread Francisco Puente XFMP (QA/EMC)
Hi Torsten, I believe this is what I need, I'll give it a try, and I'll add the 'onChange()' event as you say. I'll get back to the list once I did some extra effort trying this ;-) Kind regards, Francisco -Original Message- From: Torsten Roehr [mailto:[EMAIL PRO

RE: [PHP] Re: crypt()

2004-08-30 Thread Stefan Holmes
You should give some consideration to _not_ emailing passwords. Many popular sites rely on double entry of a password during registration which reduces the need to email the password to the user during confirmation of their registration. The fact that most users have only 1 password which they us

Re: [PHP] Storing image in database

2004-08-30 Thread Dre
line 8 is Untitled Document //== "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Dre wrote: > > Hi .. > > > > I'm trying to save and view image files in a MySQL database, I made the save > > operation successfull

Re: [PHP] Storing image in database

2004-08-30 Thread Dre
line 18 is > header("Content-type: $image"); "Michal Migurski" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Everytime I try to execute this code I get this error > > > > Warning: Cannot modify header information - headers already sent by > > (output > > started at C:\Program

Re: [PHP] Storing image in database

2004-08-30 Thread Dre
thanks .. I will search for it "Jason Wong" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Tuesday 31 August 2004 02:34, Dre wrote: > > > Cannot modify header information - headers already sent by > > Search the archives or google (former would be better as latter would give > l

RE: [PHP] question dealing with divs, forms, and select/options..

2004-08-30 Thread Jay Blanchard
[snip] the above is a short approximation of the underlying logic that i'm trying to implement. i can post/send the actual php that i'm using if anybody's able to help [/snip] That is an excellent idea -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php

Re: [PHP] question dealing with divs, forms, and select/options..

2004-08-30 Thread Jason Wong
On Tuesday 31 August 2004 03:12, bruce wrote: > this question probably has more to do with html/divs than actual php.. but > since i'm implementing in php, figured i'd ask here as well!! Since you wrote this message on a Windows based machine I figured you should ask Bill Gates as well. -- Jas

[PHP] Re: PHP- Dependant dropdown based on Mysql queries

2004-08-30 Thread Torsten Roehr
wrote in message news:[EMAIL PROTECTED] > Hi All, > I'm trying to generate a PHP page with 3 or 4 dropdown menus, each of one dependant upon each other, that means: > #2 dropdown should change upon selecting something on dropdown #1, #3 should change based on the selection at #2 to finally submit

RE: [PHP] PHP- Dependant dropdown based on Mysql queries

2004-08-30 Thread Francisco Puente XFMP (QA/EMC)
Hi Brent, I believe this is the way to go, but since I'm not a javascript guy I would like to get some php help for doing this. I you know some javascript can you please post some code for this task? Someone else proposed to query ALL the information from the database to

Re: [PHP] PHP- Dependant dropdown based on Mysql queries

2004-08-30 Thread Greg Donald
On Mon, 2004-08-30 at 13:42, Francisco Puente XFMP (QA/EMC) wrote: > Hi All, > I'm trying to generate a PHP page with 3 or 4 dropdown menus, each of one > dependant upon each other, that means: > #2 dropdown should change upon selecting something on dropdown #1, #3 should > change ba

Re: [PHP] PHP- Dependant dropdown based on Mysql queries

2004-08-30 Thread Brent Clements
Using a combination of javascript and php this is easily done. Below is just a way off the top of my head. There are probably simpler ways of doing it or even more elegant but again this is just off the top of my head. You would populate your first dropdown box by whatever method. Then you would d

Re: [PHP] Probably not a php question, but here goes..how do I convert pixels to page units?

2004-08-30 Thread Marek Kilimajer
Brent Clements wrote: I have a pdf class that has a function that allows you to add an image to the pdf your creating. The problem is that the function requires that the height and width of the image be specified in page units. Well I know what the pixel height and width are of my image, how do

Re: [PHP] Convert gif to jpeg on the fly using gd?

2004-08-30 Thread Jason Wong
On Monday 30 August 2004 08:02, Brent Clements wrote: > I have a class that only accepts jpegs and png's but all of my images(we > have over 200 of them) are in gif format. > > Is there a way to convert from gif to jpeg on the fly without outputting > the new image to file or the screen or using a

Re: [PHP] Probably not a php question, but here goes..how do I convert pixels to page units?

2004-08-30 Thread Justin French
I have no experience with PDF generation in PHP at all, but I can make some observations... 1. When dealing with the page size, you're probably dealing with a unit of measurement other than pixels -- my guess is either inches, centimetres or millimetres. 2. Then you have an image, which is mea

[PHP] No SSL support in core functions with shared extensions

2004-08-30 Thread Michael Ranner
Hello! Some weeks ago, the FreeBSD PHP4 port has changed from building with static extensions to use seperate ports for each extension. I use SquirrelMail, which uses "fsockopen()" to connect with our IMAP server. For this connections TLS/SSL is needed, and all was working ok with static includ