Re: [PHP] Zend PHP Certification test

2004-10-01 Thread Curt Zirzow
* Thus wrote j kensler: 1:11 1:15 1:19 heh.. I got this all graphed out on paper :) I'm simply looking for patterns to decipher what ever this is abut: - 7 (0x111) is an important key, no bit is ever added more than that - only one 10:XX - 10:07 - differences only occure between

[PHP] php script run by cron job

2004-10-01 Thread Merlin
Hi there, I already managed it to run a php script by cron, but now I cant remember the exact syntax. Somehow it does not work. /var/log/messages tells me that cron has called the line, but it never runs. I did try to run the line without cron and it works. Here is the how I did it: 14 8 * * *

[PHP] How do I produce a random database query for each day or week?

2004-10-01 Thread I.A. Gray
Hi, My brain is working very slowly this morning (maybe that is because of having 5hrs sleep...) Could someone help me with this problem. I would like to show a different CD with information on it, on the home page each week- a kind of 'recording of the week' and I would also like to have on the

[PHP] Zend Optimizer not installed

2004-10-01 Thread Ox
Hey All, Does anyone know of a hosting company that will provide Zend Optimizer v2.1.0 or later on a VIRTUAL hosting package. (preferably in the UK) I have been helping a guy out who has had a development done and the developers kindly didnt tell me that they use Zend Optimizer to encode their

[PHP] Re: How do I produce a random database query for each day or week?

2004-10-01 Thread Merlin
Hello Gray, could you possibly use some case clauses? Lets say you use 7 case clauses for the week. And each day has a random number. So you do a random on Monday and then you sort it out int the monday case statement and so on. Just an idea, Merlin I.A. Gray wrote: Hi, My brain is working very

[PHP] Re: include_path and safe_mode in virtualhost

2004-10-01 Thread Christian Ista
because you've got allow_url_fopen = On. safe_mode doesn't stop that. You need to turn the allow_url_fopen Off to limit that ability... Thanks, That's work fine :) Christian, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Zend Optimizer not installed

2004-10-01 Thread Graham Cossey
Hi Ox I'm UK based but currently use GlobalServers in the US (www.globalservers.com). They run Virtual Private Servers of 3 levels, 2 of which allow root access. They do claim to run Zend Optimizer but as yet I have not determined if this is active on my account. HTH Graham. -Original

Re: [PHP] list of Months

2004-10-01 Thread Marek Kilimajer
[EMAIL PROTECTED] wrote: Hi, to create a list of all months in drop-down menu I use this code: ?php $month_names = array(1='Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'); ? select name=QuoteMonth option value=/option ?php for($i=1; $i=12; $i++) { if(date('m')

RE: [PHP] How do I produce a random database query for each day or week?

2004-10-01 Thread Graham Cossey
A couple of thoughts: As you want to cycle through the list rather than randomly (with repetition) picking from the list, have you considered storing the last CD shown details in the DB? If each CD has a sequential ID then each week (or day) you increment the number which will determine what CD

Re: [PHP] Zend Optimizer not installed

2004-10-01 Thread Wee Keat
Hi Ox, Does anyone know of a hosting company that will provide Zend Optimizer v2.1.0 or later on a VIRTUAL hosting package. (preferably in the UK) I'm with Lunarpages ( http://www.lunarpages.com ) on a virtual hosting server and they have Zend Optimizer installed. However, I do not know what

Re: [PHP] php script run by cron job

2004-10-01 Thread Nick Wilson
* and then Merlin declared Hi there, I already managed it to run a php script by cron, but now I cant remember the exact syntax. Somehow it does not work. /var/log/messages tells me that cron has called the line, but it never runs. I did try to run the line without cron and it

Re: [PHP] Re: mail() and Verizon

2004-10-01 Thread Sam Smith
Hello, On 10/01/2004 12:47 AM, Sam Smith wrote: Can anyone tell why the mail (see below) is not being relayed to [EMAIL PROTECTED]: #Note: There were 2 To: addresses. Below is the header from the successful mail to the second address. Each address will receive different message

[PHP] How I can get x509 certificate distinguished name?

2004-10-01 Thread Diavolo
Hello, All! I have SSL site, visitor to see a site content need valid certificate. I want to get their Distinguished name (DN) and authorize some users without prompting to enter username or password. It is possible do by php, other proposes also welcome Sorry for my English, is not my first

Re: [PHP] Zend PHP Certification test

2004-10-01 Thread Greg Donald
On Thu, 30 Sep 2004 21:05:33 -0500, j kensler [EMAIL PROTECTED] wrote: 1:11 1:15 1:19 1:26 1:27 1:28 What about the durations between the times from frame to frame? like: 4,4,7,1,1 for the above. That's what I was graphing out yesterday evening. Some definate patterns in there. --

[PHP] PHP (anti) crash policy?

2004-10-01 Thread Olaf van der Spek
Hi, What is the PHP policy regaring crashes and fatal errors? Are scripts allowed to cause a crash or fatal error of Apache/PHP itself? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP (anti) crash policy?

2004-10-01 Thread Marek Kilimajer
Olaf van der Spek wrote: Hi, What is the PHP policy regaring crashes and fatal errors? Are scripts allowed to cause a crash or fatal error of Apache/PHP itself? No -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP (anti) crash policy?

2004-10-01 Thread Manuel Lemos
Hello, On 10/01/2004 08:54 AM, Olaf Van Der Spek wrote: What is the PHP policy regaring crashes and fatal errors? Are scripts allowed to cause a crash or fatal error of Apache/PHP itself? A PHP served request can only crash if there is a bug that makes it crash. Under Apache pre-fork model only

[PHP] Re: PHP (anti) crash policy?

2004-10-01 Thread Olaf van der Spek
Manuel Lemos wrote: Hello, On 10/01/2004 08:54 AM, Olaf Van Der Spek wrote: What is the PHP policy regaring crashes and fatal errors? Are scripts allowed to cause a crash or fatal error of Apache/PHP itself? A PHP served request can only crash if there is a bug that makes it crash. Sure. But what

Re: [PHP] PHP (anti) crash policy?

2004-10-01 Thread Christophe Chisogne
Olaf van der Spek wrote: Are scripts allowed to cause a crash or fatal error of Apache/PHP itself? Oh yes, at least with php4 as an apache module :( On a Debian Woody server, php4 (4.1.2) sometimes crashes at logrotate time (with apache doing gracefull restart) with the following error, which

[PHP] Re: PHP (anti) crash policy?

2004-10-01 Thread Manuel Lemos
Hello, On 10/01/2004 09:41 AM, Olaf Van Der Spek wrote: What is the PHP policy regaring crashes and fatal errors? Are scripts allowed to cause a crash or fatal error of Apache/PHP itself? A PHP served request can only crash if there is a bug that makes it crash. Sure. But what is the answer to

Re: [PHP] PHP (anti) crash policy?

2004-10-01 Thread Marek Kilimajer
Christophe Chisogne wrote: Olaf van der Spek wrote: Are scripts allowed to cause a crash or fatal error of Apache/PHP itself? Oh yes, at least with php4 as an apache module :( On a Debian Woody server, php4 (4.1.2) sometimes crashes at logrotate time (with apache doing gracefull restart) with the

[PHP] Re: PHP (anti) crash policy?

2004-10-01 Thread Olaf van der Spek
Manuel Lemos wrote: Hello, On 10/01/2004 09:41 AM, Olaf Van Der Spek wrote: What is the PHP policy regaring crashes and fatal errors? Are scripts allowed to cause a crash or fatal error of Apache/PHP itself? A PHP served request can only crash if there is a bug that makes it crash. Sure. But

Re: [PHP] Suggestion for IN()

2004-10-01 Thread Daniel Schierbeck
Jay Blanchard wrote: You could write a function and share it with the rest of us! function between ($var, $min, $max) { return ($var $min $var $max) ? TRUE : FALSE; } function in () { if (func_num_args() 2) trigger_error('You must provide at least one argument for in()',

Re: [PHP] PHP (anti) crash policy?

2004-10-01 Thread Christophe Chisogne
Marek Kilimajer wrote: That is not a bug in a php script, but in the php engine itself. Indeed, and I found it very annoying. Maybe if you lower the logrotate script's priority? Process priority making php crash? I dont understand how. Ok, I become a little out of topic, but here's what my apache

Re: [PHP] Suggestion for IN()

2004-10-01 Thread Christophe Chisogne
Daniel Schierbeck wrote: return ($var $min $var $max) ? TRUE : FALSE; (...) return in_array($needle, $haystack) ? TRUE : FALSE; You can return booleans without comparing them to true/false: return $var $min $var $max; return in_array($needle, $haystack); Christophe

[PHP] Re: PHP (anti) crash policy?

2004-10-01 Thread Manuel Lemos
Hello, On 10/01/2004 10:00 AM, Olaf Van Der Spek wrote: Is a (bug in a) script allowed to cause such a crash? Not bugs in a script but rather in the PHP engine. In theory, the PHP engine should never crash but there is no such thing as bug free software. So if I report a script that causes

RE: [PHP] Zend Optimizer not installed

2004-10-01 Thread Dan Joseph
Hi, Does anyone know of a hosting company that will provide Zend Optimizer v2.1.0 or later on a VIRTUAL hosting package. (preferably in the UK) www.1and1.co.uk -Dan Joseph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP (anti) crash policy?

2004-10-01 Thread Olaf van der Spek
Manuel Lemos wrote: Hello, On 10/01/2004 10:00 AM, Olaf Van Der Spek wrote: Is a (bug in a) script allowed to cause such a crash? Not bugs in a script but rather in the PHP engine. In theory, the PHP engine should never crash but there is no such thing as bug free software. So if I report a

Re: [PHP] Suggestion for IN()

2004-10-01 Thread Daniel Schierbeck
Christophe Chisogne wrote: Daniel Schierbeck wrote: return ($var $min $var $max) ? TRUE : FALSE; (...) return in_array($needle, $haystack) ? TRUE : FALSE; You can return booleans without comparing them to true/false: return $var $min $var $max; return in_array($needle,

[PHP] successive imap_open calls result in failure

2004-10-01 Thread felix
Hi, Have been experiencing a problem with the webmail program IMP (http://www.horde.org). It appears that after a large search through many folders something happens in either the c-client or the imapd server but I can't seem to trace the problem. Debugging so far has shown me that, after

Re: [PHP] list of Months

2004-10-01 Thread afan
Well, looks like the idea is alway the same, with some (very usefull) variations. Thanks for help! Afan [EMAIL PROTECTED] wrote: Hi, to create a list of all months in drop-down menu I use this code: ?php $month_names = array(1='Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug',

[PHP] Re: PHP (anti) crash policy?

2004-10-01 Thread Manuel Lemos
Hello, On 10/01/2004 10:12 AM, Olaf Van Der Spek wrote: Is a (bug in a) script allowed to cause such a crash? Not bugs in a script but rather in the PHP engine. In theory, the PHP engine should never crash but there is no such thing as bug free software. So if I report a script that causes

[PHP] Re: PHP (anti) crash policy?

2004-10-01 Thread Olaf van der Spek
Manuel Lemos wrote: Hello, On 10/01/2004 10:12 AM, Olaf Van Der Spek wrote: So what went wrong with this bug report? http://bugs.php.net/bug.php?id=30153 It's marked as bogus, although it provides a script to reproduce the crash. That is not a crash. Your script making a PHP function request

Re: [PHP] successive imap_open calls result in failure

2004-10-01 Thread raditha dissanayake
[EMAIL PROTECTED] wrote: The problem is so far from php all I've been able to determine is that after so many folders being opened in quick succession, it gets blocked from being able to access any more for a period of about 5-10 minutes, which means that when your logged out due to the failed

[PHP] Re: PHP (anti) crash policy?

2004-10-01 Thread Olaf van der Spek
Manuel Lemos wrote: That is not a crash. Your script making a PHP function request 600MB of memory. Since it exceeds the configured memory limit, there is no way to recover from memory exhaustion and the script just exits cleanly. It BTW, I don't agree. It's easily possible to recover from this

RE: [PHP] How do I produce a random database query for each day or week?

2004-10-01 Thread -{ Rene Brehmer }-
At 10:31 01-10-2004, Graham Cossey wrote: A couple of thoughts: As you want to cycle through the list rather than randomly (with repetition) picking from the list, have you considered storing the last CD shown details in the DB? If each CD has a sequential ID then each week (or day) you increment

Re: [PHP] World time convertor

2004-10-01 Thread -{ Rene Brehmer }-
At 11:19 30-09-2004, Phpu wrote: Howdy Is there a time convertor written in php? I mean to convert a specific hour/date in all world countries. I've been looking for something like this as well, but have come up empty ... apparently noone's felt comfortable dealing with the Daylight Saving Time

RE: [PHP] Suggestion for IN()

2004-10-01 Thread Ford, Mike
On 01 October 2004 14:05, Daniel Schierbeck wrote: Jay Blanchard wrote: You could write a function and share it with the rest of us! function between ($var, $min, $max) { return ($var $min $var $max) ? TRUE : FALSE; } Don't make PHP do more work than it needs to: return

Re: [PHP] UNSUBSCRIBE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

2004-10-01 Thread -{ Rene Brehmer }-
At 17:08 30-09-2004, Pankaj Kafley wrote: What an ass ! And my filters don't even catch the many exclamation marks cuz this list is white-listed . *sigh* -- Rene Brehmer aka Metalbunny If your life was a dream, would you wake up from a nightmare, dripping of sweat, hoping it was over? Or

[PHP] Re: PHP (anti) crash policy?

2004-10-01 Thread Manuel Lemos
Hello, On 10/01/2004 10:29 AM, Olaf Van Der Spek wrote: So what went wrong with this bug report? http://bugs.php.net/bug.php?id=30153 It's marked as bogus, although it provides a script to reproduce the crash. That is not a crash. Your script making a PHP function request 600MB of memory. Since

[PHP] Re: PHP (anti) crash policy?

2004-10-01 Thread Manuel Lemos
Hello, On 10/01/2004 10:32 AM, Olaf Van Der Spek wrote: That is not a crash. Your script making a PHP function request 600MB of memory. Since it exceeds the configured memory limit, there is no way to recover from memory exhaustion and the script just exits cleanly. It BTW, I don't agree.

Re: [PHP] successive imap_open calls result in failure

2004-10-01 Thread felix
Quoting raditha dissanayake [EMAIL PROTECTED]: This probably means that your imap server is running under xinetd (or something similar) that has a rate limit or a limit on the number of connections from one client. You can find out how many connections are open with netstat and i think you

[PHP] Re: PHP (anti) crash policy?

2004-10-01 Thread Olaf van der Spek
Manuel Lemos wrote: On 10/01/2004 10:29 AM, Olaf Van Der Spek wrote: So Apache restarts just because it thinks that's funny? FATAL: erealloc(): Unable to allocate 603602944 bytes [Sun Sep 19 16:11:16 2004] [notice] Parent: child process exited with status 1 -- Restarting. I was not aware that

RE: [PHP] successive imap_open calls result in failure

2004-10-01 Thread Michael Sims
[EMAIL PROTECTED] wrote: Quoting raditha dissanayake [EMAIL PROTECTED]: This probably means that your imap server is running under xinetd (or something similar) that has a rate limit or a limit on the number of connections from one client. You can find out how many connections are open with

[PHP] Re: PHP (anti) crash policy?

2004-10-01 Thread Olaf van der Spek
Manuel Lemos wrote: Hello, On 10/01/2004 10:32 AM, Olaf Van Der Spek wrote: That is not a crash. Your script making a PHP function request 600MB of memory. Since it exceeds the configured memory limit, there is no way to recover from memory exhaustion and the script just exits cleanly. It

[PHP] Re: PHP (anti) crash policy?

2004-10-01 Thread Olaf van der Spek
Manuel Lemos wrote: I was not aware that memory allocation failures could make PHP to exit its process but since it seems intentional there must be a reasoning behind that for which I am not the person that should explain. Maybe the reason has to due to the fact that when memory allocation

[PHP] Re: PHP (anti) crash policy?

2004-10-01 Thread Manuel Lemos
Hello, On 10/01/2004 11:14 AM, Olaf Van Der Spek wrote: So Apache restarts just because it thinks that's funny? FATAL: erealloc(): Unable to allocate 603602944 bytes [Sun Sep 19 16:11:16 2004] [notice] Parent: child process exited with status 1 -- Restarting. I was not aware that memory

[PHP] Re: PHP (anti) crash policy?

2004-10-01 Thread Manuel Lemos
Hello, On 10/01/2004 11:15 AM, Olaf Van Der Spek wrote: That is not a crash. Your script making a PHP function request 600MB of memory. Since it exceeds the configured memory limit, there is no way to recover from memory exhaustion and the script just exits cleanly. It BTW, I don't agree. It's

[PHP] Re: PHP (anti) crash policy?

2004-10-01 Thread Olaf van der Spek
Manuel Lemos wrote: If it is not normal, why don't you just evaluate the expected memory size that is going to be allocated before calling the PHP function that does it and handle the situation within your PHP code? Because I've no idea how gzinflate decides how much memory to allocate. -- PHP

[PHP] Re: PHP (anti) crash policy?

2004-10-01 Thread Manuel Lemos
Hello, On 10/01/2004 11:20 AM, Olaf Van Der Spek wrote: I was not aware that memory allocation failures could make PHP to exit its process but since it seems intentional there must be a reasoning behind that for which I am not the person that should explain. Maybe the reason has to due to the

[PHP] Question about error_reporting()

2004-10-01 Thread Al
If I place this at the top of my script file, the page just hangs. error_reporting (E_ERROR | E_WARNING); A virtual host on a Unix/Apache system. Runs fine without the error_reporting(). The default system error reporting only shows E_ERRORS, so I wanted to see warnings also. Thanks -- PHP

[PHP] Re: PHP (anti) crash policy?

2004-10-01 Thread Manuel Lemos
Hello, On 10/01/2004 11:34 AM, Olaf Van Der Spek wrote: If it is not normal, why don't you just evaluate the expected memory size that is going to be allocated before calling the PHP function that does it and handle the situation within your PHP code? Because I've no idea how gzinflate decides

[PHP] Re: PHP (anti) crash policy?

2004-10-01 Thread Olaf van der Spek
Manuel Lemos wrote: Hello, On 10/01/2004 11:34 AM, Olaf Van Der Spek wrote: If it is not normal, why don't you just evaluate the expected memory size that is going to be allocated before calling the PHP function that does it and handle the situation within your PHP code? Because I've no idea

[PHP] Re: PHP (anti) crash policy?

2004-10-01 Thread Olaf van der Spek
Manuel Lemos wrote: Hello, On 10/01/2004 11:20 AM, Olaf Van Der Spek wrote: I was not aware that memory allocation failures could make PHP to exit its process but since it seems intentional there must be a reasoning behind that for which I am not the person that should explain. Maybe the reason

Re: [PHP] Zend Optimizer not installed

2004-10-01 Thread Ox
Many thanks to all! Ill have to investigate further with these provisders, Thanks again On Fri, 1 Oct 2004 09:12:35 -0400, Dan Joseph [EMAIL PROTECTED] wrote: Hi, Does anyone know of a hosting company that will provide Zend Optimizer v2.1.0 or later on a VIRTUAL hosting package.

[PHP] Re: PHP (anti) crash policy?

2004-10-01 Thread Olaf van der Spek
Manuel Lemos wrote: If you do not think that discussing your alternative solution is worth doing in php-dev, I do not think that keep discussing it php-general is helping anybody. I will post there. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: PHP (anti) crash policy?

2004-10-01 Thread Manuel Lemos
Hello, On 10/01/2004 11:42 AM, Olaf Van Der Spek wrote: If it is not normal, why don't you just evaluate the expected memory size that is going to be allocated before calling the PHP function that does it and handle the situation within your PHP code? Because I've no idea how gzinflate decides

[PHP] Re: PHP (anti) crash policy?

2004-10-01 Thread Manuel Lemos
Hello, On 10/01/2004 11:44 AM, Olaf Van Der Spek wrote: But this does mean the policy does allow scripts to crash the engine/server. The way I see it, calling exit() is not a crash. If the code was Indeed, I should've added or fatal error. But from the script's point of view, it's the same as

Re: [PHP] Zend PHP Certification test

2004-10-01 Thread Jay Blanchard
[snip] I know I'm way off but, those are some of my observations of the patterns involved. [/snip] Anyone see that sneaky Shiflett character this morning? I sent in the answer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Question about error_reporting()

2004-10-01 Thread Greg Donald
On Fri, 01 Oct 2004 10:36:28 -0400, Al [EMAIL PROTECTED] wrote: If I place this at the top of my script file, the page just hangs. error_reporting (E_ERROR | E_WARNING); A virtual host on a Unix/Apache system. Runs fine without the error_reporting(). The default system error reporting

Re: [PHP] Re: PHP (anti) crash policy?

2004-10-01 Thread Marek Kilimajer
Manuel Lemos wrote: Hello, On 10/01/2004 11:44 AM, Olaf Van Der Spek wrote: But this does mean the policy does allow scripts to crash the engine/server. The way I see it, calling exit() is not a crash. If the code was Indeed, I should've added or fatal error. But from the script's point of

Re: [PHP] list of Months

2004-10-01 Thread Paul Bissex
On Fri, 01 Oct 2004 10:30:19 +0200, Marek Kilimajer [EMAIL PROTECTED] wrote: What about dumping the $month_names array and using strftime()? Interesting -- more portable since the month names would then follow locale settings. Plus it paves the way for a really hairy one-liner. With apologies

Re: [PHP] Question about error_reporting()

2004-10-01 Thread Al
Greg Donald wrote: On Fri, 01 Oct 2004 10:36:28 -0400, Al [EMAIL PROTECTED] wrote: If I place this at the top of my script file, the page just hangs. error_reporting (E_ERROR | E_WARNING); A virtual host on a Unix/Apache system. Runs fine without the error_reporting(). The default system error

[PHP] PHP Host with PayFlow Pro

2004-10-01 Thread Neal Carmine
Hello List, I'm trying to locate a PHP web host, preferably one running PHP 5, that also supports the PHP payflow pro binaries? Anyone have any recommendations? Thanks, Neal Carmine -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Question about error_reporting()

2004-10-01 Thread Greg Donald
On Fri, 01 Oct 2004 12:13:18 -0400, Al [EMAIL PROTECTED] wrote: What's puzzling is that I can simply comment out the error_reporting line and the code runs fine. Also, the Apache error log doesn't show any errors. with or without the error_reporting. Make sure you have log_errors = On in

Re: [PHP] Re: mail() and Verizon

2004-10-01 Thread Sam Smith
have you tried sending the same message, via the same path (i.e., smtp server), but not generated via php, to this recipient? by same that includes the same rfc821 from/return-path. I logged on to the web server where php is running and did telnet localhost 25 hello ... The mail was reported

[PHP] Image Manipulation

2004-10-01 Thread GH
I would like to know if there is a way to have PHP determine the dimensions of an image (i.e. JPG or PNG) and if it more than Xpx wide or height have it scale it down proportionally to that width or height? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] PHP sandbox discussion

2004-10-01 Thread Jason Davidson
Hey fella's, i thought i would start a thread for once :) Ive got a 'php sandbox', that im encorparating into a simple php tutorial. THe tutorial is much like any php tutoiral, and really, is just for me to get more comfortable using and parsing xml with the dom functions. What i would like to

Re: [PHP] Image Manipulation

2004-10-01 Thread Jason Davidson
Yes there is way, search for GD in the php manual, it will explain a solution better than i will. Jason GH [EMAIL PROTECTED] wrote: I would like to know if there is a way to have PHP determine the dimensions of an image (i.e. JPG or PNG) and if it more than Xpx wide or height have it scale

Re: [PHP] Image Manipulation

2004-10-01 Thread Matt M.
I would like to know if there is a way to have PHP determine the dimensions of an image (i.e. JPG or PNG) and if it more than Xpx wide or height have it scale it down proportionally to that width or height? look at http://us4.php.net/gd -- PHP General Mailing List (http://www.php.net/) To

[PHP] Naming conventions

2004-10-01 Thread Jensen, Kimberlee
What do you use for your naming conventions for variables functions classes I'm trying to tell my students what the standard is currently. Are people using camel case or underscores or both? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Fri 10/1/2004

Re: [PHP] PHP Host with PayFlow Pro

2004-10-01 Thread Matt M.
I'm trying to locate a PHP web host, preferably one running PHP 5, that also supports the PHP payflow pro binaries? Anyone have any recommendations? have you tried google? http://www.google.com/search?hl=enlr=ie=UTF-8client=firefox-aq=PHP5+hosting+payflowbtnG=Search also, search the mailing

Re: [PHP] Re: mail() and Verizon

2004-10-01 Thread Mark
--- Sam Smith [EMAIL PROTECTED] wrote: have you tried sending the same message, via the same path (i.e., smtp server), but not generated via php, to this recipient? by same that includes the same rfc821 from/return-path. I logged on to the web server where php is running and did telnet

Re: [PHP] Naming conventions

2004-10-01 Thread Jason Davidson
Oh please dont start a thread on which is better .. but i beleive it was decided that camel case is the standard now. Jason Jensen, Kimberlee [EMAIL PROTECTED] wrote: What do you use for your naming conventions for variables functions classes I'm trying to tell my students what the

Re: [PHP] Naming conventions

2004-10-01 Thread Greg Donald
On Fri, 1 Oct 2004 11:28:57 -0700, Jensen, Kimberlee [EMAIL PROTECTED] wrote: What do you use for your naming conventions for variables functions classes I'm trying to tell my students what the standard is currently. Are people using camel case or underscores or both? You probably want

[PHP] Why won't my attached PDF go through ??

2004-10-01 Thread PHP Junkie
Ave, I created a form which can accept 2 file attachments and send an HTML Email... Everything works great... The files even get attached and sent, the ONLY problem is... The PDF file I'm sending attached open up empty! They are all blank.. Like everything has been wiped off from them!! Here's

Re: [PHP] Naming conventions

2004-10-01 Thread Paul Bissex
On Fri, 1 Oct 2004 11:28:57 -0700, Jensen, Kimberlee [EMAIL PROTECTED] wrote: What do you use for your naming conventions for variables functions classes I'm trying to tell my students what the standard is currently. Are people using camel case or underscores or both? Without getting

RE: [PHP] Naming conventions

2004-10-01 Thread Dan Joseph
Hi, What do you use for your naming conventions for variables functions classes I'm trying to tell my students what the standard is currently. Are people using camel case or underscores or both? I'm not sure there is a standard for naming things. Here's how I do it...

RE: [PHP] PHP Host with PayFlow Pro

2004-10-01 Thread Neal Carmine
Yes... I tried google but was looking for recommendations, google does not give you experiences that people on this list may have. Hence the point of an email list in the first place. Neal -Original Message- From: Matt M. [mailto:[EMAIL PROTECTED] Sent: Friday, October 01, 2004 12:31

Re: [PHP] UNSUBSCRIBE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

2004-10-01 Thread Michelle Konzack
Am 2004-10-01 15:57:47, schrieb -{ Rene Brehmer }-: At 17:08 30-09-2004, Pankaj Kafley wrote: What an ass ! And my filters don't even catch the many exclamation marks cuz this list is white-listed . *sigh* I do not get them: ( '/home/michelle/.procmail/FLT_spam' )

Re: [PHP] Naming conventions

2004-10-01 Thread Greg Beaver
Jason Davidson wrote: Oh please dont start a thread on which is better .. but i beleive it was decided that camel case is the standard now. Jason Jensen, Kimberlee [EMAIL PROTECTED] wrote: What do you use for your naming conventions for variables functions classes I'm trying to tell my

[PHP] exec lynx -dump failure

2004-10-01 Thread Compu-Creations
Hello, I have a problem in getting lynx to run through the exec function. Here is my code ... $cmd = /usr/bin/lynx -dump http://freebsd.razvan.ca/copydir.php 21; exec($cmd,$err); print_r($err); I'm not sure what the problem is but I get this back .. Array ( [0] = /root/: No such directory ) Based

[PHP] set multiple variables

2004-10-01 Thread Joe Szilagyi
Hi, I have this working: if ($REMOTE_ADDR == 212.3.54.65) { header(Location: http://www.google.com/search?q=huzzah;); Redirect browser exit; } But I want to specify multiple IPs. What's the best recommended way for doing that? thanks Joe -- PHP General Mailing List

Re: [PHP] Zend PHP Certification test

2004-10-01 Thread Chris Shiflett
--- Jay Blanchard [EMAIL PROTECTED] wrote: Anyone see that sneaky Shiflett character this morning? I sent in the answer Several people, including Jay, are very close, but no one has solved it yet. If you were thinking of taking the Zend Certification exam anyway, this could save you $200.

Re: [PHP] set multiple variables

2004-10-01 Thread Paul Bissex
On Fri, 1 Oct 2004 17:38:31 -0400, Joe Szilagyi [EMAIL PROTECTED] wrote: Hi, I have this working: if ($REMOTE_ADDR == 212.3.54.65) { header(Location: http://www.google.com/search?q=huzzah;); Redirect browser exit; } But I want to specify multiple IPs. What's the

Re: [PHP] set multiple variables

2004-10-01 Thread Marek Kilimajer
Joe Szilagyi wrote: Hi, I have this working: if ($REMOTE_ADDR == 212.3.54.65) { header(Location: http://www.google.com/search?q=huzzah;); Redirect browser exit; } But I want to specify multiple IPs. What's the best recommended way for doing that? There was one request for

Re: [PHP] set multiple variables

2004-10-01 Thread Brad Pauly
On Fri, 1 Oct 2004 17:38:31 -0400, Joe Szilagyi [EMAIL PROTECTED] wrote: Hi, I have this working: if ($REMOTE_ADDR == 212.3.54.65) { header(Location: http://www.google.com/search?q=huzzah;); Redirect browser exit; } But I want to specify multiple IPs. What's the

[PHP] Session handlers

2004-10-01 Thread Shawn McKenzie
Just curious, what is the advantage of using a custom session handler, such as saving session data in MySQL? TIA, Shawn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Detecting Mysql server is running

2004-10-01 Thread barsalou
I know I can see if php has the ability to talk with the Mysql server, but is there a way to determine if the Mysql server is running. In some cases, I wouldn't have passwords, so a mysql_connect wouldn't work. Anyone have ideas? Thanks for the help. Mike B. -- PHP General Mailing List

Re: [PHP] Detecting Mysql server is running

2004-10-01 Thread Greg Donald
On Fri, 01 Oct 2004 16:13:23 -0800, barsalou [EMAIL PROTECTED] wrote: I know I can see if php has the ability to talk with the Mysql server, but is there a way to determine if the Mysql server is running. In some cases, I wouldn't have passwords, so a mysql_connect wouldn't work. Anyone

Re: [PHP] PHP sandbox discussion

2004-10-01 Thread raditha dissanayake
Jason Davidson wrote: Anywys.. heres the question.. what do you think is the most viable solution for security. 1. run apache in chroot envirnment. 2. run php in safe_mode 3. simply str_replace all filesystem functions with nothing. 4. use the disable_function settings to disable filesystem

Re: [PHP] Session handlers

2004-10-01 Thread raditha dissanayake
Shawn McKenzie wrote: Just curious, what is the advantage of using a custom session handler, such as saving session data in MySQL? The main reason you might want to store session informaton in a database instead of in files is that you can then load balance your site across multiple servers. If

Re: [PHP] PHP sandbox discussion

2004-10-01 Thread Jason Davidson
Hey, yup it is kind of dangerous, there is no argument there. Currenly i have php running safemode, and apache is running with user nobody. This combination makes it imposible for any filesystem commands to work on anything that isnt owned by nobody.. its an interesting situatoin i beleive...

RE: [PHP] Session handlers

2004-10-01 Thread Vail, Warren
I have used MySQL sessions and session handler routines to perform the following; 1. I was able to set different session timeouts for different applications as long as each application used a different session table. The garbage cleanup routines could be programmed to ignore the global session

Re: [PHP] php script run by cron job

2004-10-01 Thread Andrew Kreps
On Fri, 01 Oct 2004 08:18:55 +0200, Merlin [EMAIL PROTECTED] wrote: Here is the how I did it: 14 8 * * * root /usr/local/bin/php /home/www/cron/statistics.php Does anybody see an error in this? I'm not familiar with a crontab format that allows you to specify a username as you have

[PHP] array sort question

2004-10-01 Thread Ed Lazor
Any ideas on how I could sort this array by Title? $menu[1][ID] = 5; $menu[1][Title] = Test 1; $menu[2][ID] = 3; $menu[2][Title] = Test 4; $menu[3][ID] = 56; $menu[3][Title] = Test 8; $menu[4][ID] = 44; $menu[4][Title] = Test 3; Thanks, -Ed

RE: [PHP] UNSUBSCRIBE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

2004-10-01 Thread Mag
Prick. = -- - The faulty interface lies between the chair and the keyboard. - Creativity is great, but plagiarism is faster! - Smile, everyone loves a moron. :-) __ Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard.

[PHP] stand alone php

2004-10-01 Thread Mag
Hi, Is there any app that converts php to a stand alone version? like a windows .exe program. Just curious. Thanks, Mag = -- - The faulty interface lies between the chair and the keyboard. - Creativity is great, but plagiarism is faster! - Smile, everyone loves a moron. :-)

Re: [PHP] array sort question

2004-10-01 Thread Paul Bissex
On Fri, 1 Oct 2004 19:12:30 -0700, Ed Lazor [EMAIL PROTECTED] wrote: Any ideas on how I could sort this array by Title? $menu[1][ID] = 5; $menu[1][Title] = Test 1; $menu[2][ID] = 3; $menu[2][Title] = Test 4; uasort() is what you need here. Also see the usort() documentation page

[PHP] READ BEFORE REPLYING TO : Re: [PHP] UNSUBSCRIBE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

2004-10-01 Thread GH
Dear EVERYONE WHO HAS POSTED OR WANTS TO POST IN THIS THREAD... If Ms. Holland managed to get herself off of this list she is not seeing any of this... however you seem to be FLAMING the rest of the board with information that is NOT PHP related NOR is it relevant to ANY DISCUSSION that pertains

  1   2   >