[PHP] Website and Mozilla/Firefox

2005-01-10 Thread Lester Caine
All of a sudden I am having problems with www.php.net, selecting download or manual flashes up the relevant page, and then it goes blank. It's doing it on three machines that have been accessing those pages fine for weeks, with both Firefox1 and Mozilla1.7, and nothing has been changed on the

[PHP] PHP Accellerator into Zend Engine2 by default

2005-01-10 Thread kioto
PHP is scripting language interpreted and not compiled. I want know about the difference beetwean the bytecode of JSP and ASP.NET than PHP-Accelerator. Why this extension isn't a built-in into Zend Engine parsing ? This is a better solution to comparison the performace of PHP versus other

SV: [PHP] Website and Mozilla/Firefox

2005-01-10 Thread Tommy Skarateppen
I have exactly the same problem. I've never had problems displaying the php.net site with Firefox before, but now suddenly it flashes the correct page for a short moment before it goes blank. It seems like I'm beeing redirected to a new location. If I manage to hit the Esc-button, before I'm

[PHP] exec() function

2005-01-10 Thread akshay
exec() function is not working. Is there any setting in PHP.ini -- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: SV: [PHP] Website and Mozilla/Firefox

2005-01-10 Thread Richard Davey
Hello Tommy, Monday, January 10, 2005, 9:30:23 AM, you wrote: TS I have exactly the same problem. I've never had problems displaying the TS php.net site with Firefox before, but now suddenly it flashes the correct TS page for a short moment before it goes blank. It seems like I'm beeing TS

Re: [PHP] Website and Mozilla/Firefox

2005-01-10 Thread John Holmes
Lester Caine wrote: All of a sudden I am having problems with www.php.net, selecting download or manual flashes up the relevant page, and then it goes blank. It's doing it on three machines that have been accessing those pages fine for weeks, with both Firefox1 and Mozilla1.7, and nothing has

Re: [PHP] Website and Mozilla/Firefox

2005-01-10 Thread Lester Caine
John Holmes wrote: I switched from using the us2.php.net mirror to the us4.php.net mirror and things were fine. That has been 'knobled' now. At least now I know I'm not going mad ;) -- Lester Caine - L.S.Caine Electronic Services -- PHP General Mailing List

Re: [PHP] exec() function

2005-01-10 Thread tr
akshay wrote / napsal (a): exec() function is not working. Is there any setting in PHP.ini Do you use PHP5? If yes, use instead: example: $var=shell_exec('ls'); trobi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] *** glibc detected *** double free or corruption: error

2005-01-10 Thread Alex Greg
On Mon, 10 Jan 2005 06:58:21 +0600, Raditha Dissanayake [EMAIL PROTECTED] wrote: Alex Greg wrote: (apologies if this reaches the list twice - the first time I sent it, it didn't arrive within 12 hours) Hi, Recently I migrated the front-end of our bulletin board (running phpBB, patched

[PHP] strange sessions

2005-01-10 Thread Tim Burgan
Hello, I'm experiencing a weird thing regarding sessions - that I'm using for user authorisation. I have a page that the public can view (index.php) that includes a login button. When the login button is clicked a new window pops-up and asks for username and password. The user is then

Re: [PHP] Website and Mozilla/Firefox

2005-01-10 Thread M. Sokolewicz
Lester Caine wrote: John Holmes wrote: I switched from using the us2.php.net mirror to the us4.php.net mirror and things were fine. That has been 'knobled' now. At least now I know I'm not going mad ;) it's because of an issue with the JS scripts. Just have to wait and see if anyone gets to

[PHP] unpacking $_POST when example[1], example[2] in form.

2005-01-10 Thread Benjamin Edwards
If I have a form with elements like input type=text name=example[1] input type=text name=example[2] If example was not an array it would be accessed using $_POST[example] But how do I access the varable if it is an array like above. Ben

Re: [PHP] Website and Mozilla/Firefox

2005-01-10 Thread M. Sokolewicz
M. Sokolewicz wrote: Lester Caine wrote: John Holmes wrote: I switched from using the us2.php.net mirror to the us4.php.net mirror and things were fine. That has been 'knobled' now. At least now I know I'm not going mad ;) it's because of an issue with the JS scripts. Just have to wait and see

Re: [PHP] unpacking $_POST when example[1], example[2] in form.

2005-01-10 Thread Thomas Munz
$_POST[example][1] $_POST[example][2] If I have a form with elements like input type=text name=example[1] input type=text name=example[2] If example was not an array it would be accessed using $_POST[example] But how do I access the varable if it is an array like above. Ben -- PHP

[PHP] What program to use to make thumbnail images?

2005-01-10 Thread John Holmes
What do you guys recommend for making thumbnails from uploaded images? I know of the GD extension, Imagemagik and netpbm. Any other recommendations or opinions on which of the above work best with PHP? Thanks. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/

[PHP] $_REQUEST

2005-01-10 Thread Benjamin Edwards
Trying to get my head around relationship between/use of $_GET, $_POST and $_REQUEST. It seems to me that $_REQUEST is most useful as if it is used in place of $_POST/$_GET it would be possible to change posting method without changing the code. I am kind of assuming that $_REQUEST is and

Re: [PHP] $_REQUEST

2005-01-10 Thread Thomas Munz
Be carfull with this super var. This var is a merge of the GET, POST and FILES, and so only 1 index can only exists. If you have an index in the POST field called 'test' and also and index calles test in the FILES or GET var, than only one index of them is avaible and the other are gone I

Re: [PHP] $_REQUEST

2005-01-10 Thread John Holmes
Benjamin Edwards wrote: I am kind of assuming that $_REQUEST is and aggregate of $_POST, $_GET and $_FILES. Is this correct or are there differences. It's a combo of $_GET, $_POST and $_COOKIE. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The

RE: [PHP] On large application organization [long and possibly boring]

2005-01-10 Thread Jay Blanchard
[snip] Josh, I am interested in what you mean by but there may be a better overall approach. The reason I say that is because, though I'm no expert on application design, in my own code I've found that whenever I'm tempted to use a big switch, it's probably a better idea for me to make a class

Re: [PHP] Website and Mozilla/Firefox

2005-01-10 Thread Erwin Kerk
M. Sokolewicz wrote: M. Sokolewicz wrote: Lester Caine wrote: John Holmes wrote: I switched from using the us2.php.net mirror to the us4.php.net mirror and things were fine. That has been 'knobled' now. At least now I know I'm not going mad ;) it's because of an issue with the JS scripts.

[PHP] Re: unable to load curl

2005-01-10 Thread Jason Barnett
Sagar C Nannapaneni wrote: Hi, I've got a strange issue here i'm using apache2 with php 4.3.9 on win 2000. I've pointed the php extension directory to extension_dir = C:\php\extensions where all the extension dlls reside. All extensions are working and all dlls are loading properly,, What do

[PHP] Re: PHP Accellerator into Zend Engine2 by default

2005-01-10 Thread Jason Barnett
Kioto wrote: PHP is scripting language interpreted and not compiled. I want know about the difference beetwean the bytecode of JSP and ASP.NET than PHP-Accelerator. Why this extension isn't a built-in into Zend Engine parsing ? This is a better solution to comparison the performace of PHP versus

[PHP] Re: strange sessions

2005-01-10 Thread Jason Barnett
What was your question? Well if the problem is continuing sessions you need to either use cookies or append a session id to the end of a URL. -- Teach a person to fish... Ask smart questions: http://www.catb.org/~esr/faqs/smart-questions.html PHP Manual: http://php.net/manual/ php-general

[PHP] Re: unable to load curl

2005-01-10 Thread Jason Barnett
Please respond to the newsgroup and not to my personal email. quoteIs it a file access/ownership thing?/quote This is possible. Have you checked permissions for PHP user? My original question remains unanswered though and it is probably a better place to start... extension_dir =

[PHP] Re: What program to use to make thumbnail images?

2005-01-10 Thread zerof
John Holmes wrote: What do you guys recommend for making thumbnails from uploaded images? I know of the GD extension, Imagemagik and netpbm. Any other recommendations or opinions on which of the above work best with PHP? Thanks. -- Good choice, http://coppermine.sourceforge.net/demo/ ---

Re: [PHP] *** glibc detected *** double free or corruption: error

2005-01-10 Thread Richard Lynch
By default, the program that generated this error will also be killed; however, this (and whether or not an error message is generated) can be controlled via the MALLOC_CHECK_ environment variable. The following settings are supported: 0 -- Do not generate an

Re: [PHP] long running page on apache 2

2005-01-10 Thread Richard Lynch
Bret Hughes wrote: As I begin to write this I wonder if this really an apache issue but will ask here to see if anyone has some idea. We have a php interface to our system running apache 2 on fedora 1 box. One page calls a script that does a system() call on a script that runs for several

Re: [PHP] strange sessions

2005-01-10 Thread Richard Lynch
Tim Burgan wrote: The a user is not logged in, all links within the page work fine, but when the user IS logged in, a hyperlink from one page to another page (whose URL contains a different 'keyword') doesn't work. The browsers address bar updates to reflect the new page, but the web page

Re: [PHP] How do I start at a specific position in an array? Is there

2005-01-10 Thread Richard Lynch
Thomas Goyne wrote: On Sun, 09 Jan 2005 15:59:43 +0100, M. Sokolewicz [EMAIL PROTECTED] wrote: that's not a SPECIFIC place in the array, that's just current, next and previous. AFAIK there is no way to explicitly set the internal pointer of the array to a spcified place. I used a function

[PHP] mail() w/ postfix problem in Fedora Core 3

2005-01-10 Thread Nathaniel Price
I've been searching for the solution to this problem to no avail. I recently did a clean install of FC3 on a server that was running RH8. There were a number of PHP scripts that I had configured to send out email for notices or passwords or the like. However, now that I've upgraded I can't send

Re: [PHP] Global class instances mysteriously set to NULL

2005-01-10 Thread Richard Lynch
James \(IFMS\) wrote: I'm struggling to narrow this down, and am chasing my tail to figure this out. I apologise for the imprecise nature. PHP: 4.3.2 (latest RHEL 3 version; php-4.3.2-19.ent.src.rpm) OS: Linux kernel 2.4.21-15.0.3.EL Distro: RHEL 3, all updates I have an app that defines

[PHP] Super Gloabals Array

2005-01-10 Thread Elvie Limbo
Is it possible to put information into $_REQUEST super global array with using POST or GET? My problem is that I need information to be available globally but I don't want to use a form to do it. Any pointers would be greatly appreciated. -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Which script runs first?

2005-01-10 Thread Richard Lynch
Rory Browne wrote: I don't know much about frames(I hate the things), but the only thing I'd count on would be that the main frame will be loaded first. would it be possible to load your session variables in this? I wouldn't even count on the WHOLE file being loaded either... EG: FRAMESET ...

Re: [PHP] Super Gloabals Array

2005-01-10 Thread John Nichel
Elvie Limbo wrote: Is it possible to put information into $_REQUEST super global array with using POST or GET? My problem is that I need information to be available globally but I don't want to use a form to do it. Any pointers would be greatly appreciated. $_SESSION ? It won't be in the

Re: [PHP] mail() w/ postfix problem in Fedora Core 3

2005-01-10 Thread Richard Lynch
Nathaniel Price wrote: I've been searching for the solution to this problem to no avail. I recently did a clean install of FC3 on a server that was running RH8. There were a number of PHP scripts that I had configured to send out email for notices or passwords or the like. However, now that

Re: [PHP] How do I start at a specific position in an array? Is there

2005-01-10 Thread Robert Cummings
On Mon, 2005-01-10 at 11:28, Richard Lynch wrote: Thomas Goyne wrote: On Sun, 09 Jan 2005 15:59:43 +0100, M. Sokolewicz [EMAIL PROTECTED] wrote: that's not a SPECIFIC place in the array, that's just current, next and previous. AFAIK there is no way to explicitly set the internal pointer

Re: [PHP] Super Gloabals Array

2005-01-10 Thread trobi
Elvie Limbo wrote / napísal (a): Is it possible to put information into $_REQUEST super global array with using POST or GET? My problem is that I need information to be available globally but I don't want to use a form to do it. Any pointers would be greatly appreciated. use sessions or

Re: [PHP] Super Gloabals Array

2005-01-10 Thread Richard Lynch
Elvie Limbo wrote: Is it possible to put information into $_REQUEST super global array with using POST or GET? My problem is that I need information to be available globally but I don't want to use a form to do it. Any pointers would be greatly appreciated. E. Yeah, I guess...

Re: [PHP] long running page on apache 2

2005-01-10 Thread Bret Hughes
On Mon, 2005-01-10 at 10:17, Richard Lynch wrote: Bret Hughes wrote: As I begin to write this I wonder if this really an apache issue but will ask here to see if anyone has some idea. We have a php interface to our system running apache 2 on fedora 1 box. One page calls a script that

Re: [PHP] Super Gloabals Array

2005-01-10 Thread Rasmus Lerdorf
Elvie Limbo wrote: Is it possible to put information into $_REQUEST super global array with using POST or GET? My problem is that I need information to be available globally but I don't want to use a form to do it. Any pointers would be greatly appreciated. No. Use $GLOBALS instead. -Rasmus

Re: [PHP] mail() w/ postfix problem in Fedora Core 3

2005-01-10 Thread Rasmus Lerdorf
Nathaniel Price wrote: I've been searching for the solution to this problem to no avail. I recently did a clean install of FC3 on a server that was running RH8. There were a number of PHP scripts that I had configured to send out email for notices or passwords or the like. However, now that I've

Re: [PHP] How do I start at a specific position in an array? Is there

2005-01-10 Thread Richard Lynch
Robert Cummings wrote: On Mon, 2005-01-10 at 11:28, Richard Lynch wrote: Thomas Goyne wrote: On Sun, 09 Jan 2005 15:59:43 +0100, M. Sokolewicz [EMAIL PROTECTED] wrote: that's not a SPECIFIC place in the array, that's just current, next and previous. AFAIK there is no way to explicitly

Re: [PHP] How do I start at a specific position in an array? Is there

2005-01-10 Thread Marek Kilimajer
Richard Lynch wrote: I'll give you a simple case. I have a GTK PHP MP3 ID3 editor application I'm working on. When one opens a file in a directory, I provide next/prev buttons to quickly page to the next/prev file in the directory. Getting the next/prev to work is simple enough, but... I've got

[PHP] Re: What program to use to make thumbnail images?

2005-01-10 Thread Jason Morehouse
John Holmes wrote: What do you guys recommend for making thumbnails from uploaded images? I know of the GD extension, Imagemagik and netpbm. Any other recommendations or opinions on which of the above work best with PHP? Thanks. Imagemagik is your best bet IMHO. It's the most configurable and

Re: [PHP] Global class instances mysteriously set to NULL

2005-01-10 Thread James \(IFMS\)
Most likely, somewhere along the way, one of your files is triggering some condition which 'unsets' your variable. That's what it looks like. I can't find anything in the documentation or on the 'Net that describes such a condition. That's why I originally posted the question. Personally, I

[PHP] if(date(Y-m-d)

2005-01-10 Thread John Taylor-Johnston
Hi, I would like some help to improve this script. I'm a teacher with a schedule of 17 weeks. Instead of using if(date(Y-m-d) = $week3) I would like to do a for i = 1 to 17 and if the current date date(Y-m-d) = week[i] I would like to echo This is week $week[i]; Can someone show me how

[PHP] Comparison Operator

2005-01-10 Thread Chadwick, Russell
Could anyone tell me why this code echos? ?php $value = 0; $curval = 'A'; if ($value == $curval) { echo WTH, Overbr; } ?

[PHP] does php ready for enteprise ?

2005-01-10 Thread Supri anto
dear all, i' m want to start developing some mid scale apps ! i have discuss with my friend and i have one question. i wonder does php ready for enterprise? thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] 403 not working -- apache 2 / php5 / linux

2005-01-10 Thread Jason Morehouse
Hello. I'm not sure if this is an apache problem or php... but wondering if anyone has come across the same problem. -rw---1 root root test.html -rw---1 root root test.php Trying to access test.html via a browser servers up the apache 403 error page. The test.php

[PHP] Re: PHP Accellerator into Zend Engine2 by default

2005-01-10 Thread Manuel Lemos
Hello, on 01/10/2005 07:21 AM Kioto said the following: PHP is scripting language interpreted and not compiled. PHP is compiled into bytecodes before executing since PHP 4. There is also a real PHP to executable code compiler named Roadsend. http://www.roadsend.com/ I want know about the

[PHP] Re: Comparison Operator

2005-01-10 Thread Jason Morehouse
Russell Chadwick wrote: Could anyone tell me why this code echos? ?php $value = 0; $curval = 'A'; if ($value == $curval) { echo WTH, Overbr; } ? $value = 0 means false. And your comparison is false. Try: ?php $value = '0'; $curval = 'A'; if ($value == $curval) { echo WTH,

Re: [PHP] where can i find some tutorials aout sockets ?

2005-01-10 Thread Andrew Kreps
On Sun, 9 Jan 2005 03:00:35 +0200, Serban Nicolae [EMAIL PROTECTED] wrote: where can i find some tutorials aout sockets ? I don't know of any tutorials as such, but the manual has some good information. I usually find it useful to familiarize myself with the functions available before

Re: [PHP] if(date(Y-m-d)

2005-01-10 Thread Andrew Kreps
is remove the dashes from the equation and make that date a unique number. The advantage of the date format you're using is that the date represented as a number will always be sequential. So, if you do this: $week1 = 20050110; $week2 = 20050117; $week3 = 20050124; if(date(Ymd) = $week1) { echo

[PHP] PHP College Scholarships?

2005-01-10 Thread Andrew Wickham
Does anyone know of any college scholarships for PHP or Computer Science. I need some non-college specific ones. The reason I ask is obviously because I need some help going to college through scholarships, and I have been programming in PHP for about 6 years now. Please help me out guys!

Re: [PHP] if(date(Y-m-d)

2005-01-10 Thread Andrew Kreps
) = week[i] I would like to echo This is week $week[i]; Can someone show me how please? Ok, let me take another stab at this and answer the actual question you asked. What can I say, I haven't had my coffee this morning. :) Try this code: $weeks = array (20050107, 20050110, 20050115

[PHP] Error in foreach?

2005-01-10 Thread Brad Brening
Hello all; I have encountered a very strange error on one of our customers sites. Their script returns the following error: Warning:Invalid argument supplied for foreach This is in response to the following line: foreach ($_GET as $key = $value) All I am trying to do is parse the querystring!

RE: [PHP] Comparison Operator

2005-01-10 Thread Jay Blanchard
[snip] Could anyone tell me why this code echos? ?php $value = 0; $curval = 'A'; if ($value == $curval) { echo WTH, Overbr; } ? [/snip] Because it has an echo statement in it. And '==' is not '===' From http://us3.php.net/manual/en/language.operators.comparison.php If you compare an

RE: [PHP] does php ready for enteprise ?

2005-01-10 Thread Jay Blanchard
[snip] i' m want to start developing some mid scale apps ! i have discuss with my friend and i have one question. i wonder does php ready for enterprise? [/snip] Yes, it does/is. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How do I start at a specific position in an array? Is there

2005-01-10 Thread Robert Cummings
On Mon, 2005-01-10 at 12:44, Richard Lynch wrote: Robert Cummings wrote: On Mon, 2005-01-10 at 11:28, Richard Lynch wrote: Thomas Goyne wrote: On Sun, 09 Jan 2005 15:59:43 +0100, M. Sokolewicz [EMAIL PROTECTED] wrote: that's not a SPECIFIC place in the array, that's just current,

Re: [PHP] Comparison Operator

2005-01-10 Thread tg-php
Ahh.. the trick question. hah.. Ok, let me see if I remember this (although it doesn't seem to follow the logic in my head.. I know someone else will explain it better but let me take a crack at it): When comparing a two different variable types that PHP thinks it knows how to compare, it

Re: [PHP] Comparison Operator

2005-01-10 Thread trobi
Chadwick, Russell wrote / napísal (a): Could anyone tell me why this code echos? ?php $value = 0; $curval = 'A'; if ($value == $curval) { echo WTH, Overbr; } ? Try === If you use == $value is compared to $curval $value is integer so php converts $curval to integer so it contains no digtis so

Re: [PHP] does php ready for enteprise ?

2005-01-10 Thread trobi
Supri anto wrote / napísal (a): dear all, i' m want to start developing some mid scale apps ! i have discuss with my friend and i have one question. i wonder does php ready for enterprise? thanks It has the smell of flame. I will ignore it. trobi -- PHP General Mailing List

Re: [PHP] Comparison Operator

2005-01-10 Thread Brad Pauly
On Mon, 10 Jan 2005 10:26:16 -0800, Chadwick, Russell [EMAIL PROTECTED] wrote: Could anyone tell me why this code echos? ?php $value = 0; $curval = 'A'; if ($value == $curval) { echo WTH, Overbr; } ? The string is converted to an integer when compared with an integer. See this

Re: [PHP] 403 not working -- apache 2 / php5 / linux

2005-01-10 Thread Brad Pauly
On Mon, 10 Jan 2005 13:49:26 -0500, Jason Morehouse [EMAIL PROTECTED] wrote: Hello. I'm not sure if this is an apache problem or php... but wondering if anyone has come across the same problem. -rw---1 root root test.html -rw---1 root root test.php Trying to

Re: [PHP] 403 not working -- apache 2 / php5 / linux

2005-01-10 Thread trobi
Jason Morehouse wrote / napísal (a): Hello. I'm not sure if this is an apache problem or php... but wondering if anyone has come across the same problem. -rw---1 root roottest.html -rw---1 root roottest.php Trying to access test.html via a browser servers up the

RE: [PHP] does php ready for enteprise ?

2005-01-10 Thread Chris W. Parker
Supri anto mailto:[EMAIL PROTECTED] on Monday, January 10, 2005 10:45 AM said: i' m want to start developing some mid scale apps ! i have discuss with my friend and i have one question. i wonder does php ready for enterprise? what qualifications do you require in an application before you

Re: [PHP] does php ready for enteprise ?

2005-01-10 Thread Richard Davey
Hello Supri, Monday, January 10, 2005, 6:45:19 PM, you wrote: Sa i' m want to start developing some mid scale apps ! i have discuss Sa with my friend and i have one question. i wonder does php ready Sa for enterprise? I would say so: http://www.zend.com/platform Best regards, Richard Davey

Re: [PHP] Re: Comparison Operator

2005-01-10 Thread John Nichel
Jason Morehouse wrote: Russell Chadwick wrote: Could anyone tell me why this code echos? ?php $value = 0; $curval = 'A'; if ($value == $curval) { echo WTH, Overbr; } ? $value = 0 means false. And your comparison is false. Try: If the comparison is false, the echo shouldn't be

Re: [PHP] 403 not working -- apache 2 / php5 / linux

2005-01-10 Thread Richard Lynch
Jason Morehouse wrote: Hello. I'm not sure if this is an apache problem or php... but wondering if anyone has come across the same problem. -rw---1 root root test.html -rw---1 root root test.php Trying to access test.html via a browser servers up the apache 403

Re: [PHP] if(date(Y-m-d)

2005-01-10 Thread Travis Conway
Maybe this will help. Just keep adding to $var[] until you add all your weeks. Then execute it. This is written to run on the command line, but you can replace the \n with br to get your breaks in HTML. ? $var = Array(); $var[] = 2005-01-02; $var[] = 2005-01-09;

Re: [PHP] does php ready for enteprise ?

2005-01-10 Thread Richard Lynch
Supri anto wrote: i' m want to start developing some mid scale apps ! i have discuss with my friend and i have one question. i wonder does php ready for enterprise? PHP is ready. Are you? :-) All you need to do is Google for PHP Enterprise and read a few pages to figure out the answer to

Re: [PHP] 403 not working -- apache 2 / php5 / linux

2005-01-10 Thread Jason Wong
On Tuesday 11 January 2005 02:49, Jason Morehouse wrote: Hello. I'm not sure if this is an apache problem or php... but wondering if anyone has come across the same problem. It's a file permissions problem as can be seen clearly below (which you've thoughtfully included). -rw---1

Re: [PHP] 403 not working -- apache 2 / php5 / linux

2005-01-10 Thread Jason Morehouse
Richard Lynch wrote: Jason Morehouse wrote: Hello. I'm not sure if this is an apache problem or php... but wondering if anyone has come across the same problem. -rw---1 root root test.html -rw---1 root root test.php Trying to access test.html via a browser servers up

Re: [PHP] How do I start at a specific position in an array? Is there

2005-01-10 Thread Richard Lynch
Marek Kilimajer wrote: Richard Lynch wrote: I'll give you a simple case. I have a GTK PHP MP3 ID3 editor application I'm working on. When one opens a file in a directory, I provide next/prev buttons to quickly page to the next/prev file in the directory. Getting the next/prev to work is

Re: [PHP] Error in foreach?

2005-01-10 Thread tg-php
Sounds like $_GET isn't populated or has been over-written. Try doing the classic print_r on $_GET to see what it contains before you do the foreach. If you are using a form (rather than an a_href link) to pass the GET data and you're using all checkboxes or something else that returns nothing

RE: [PHP] Error in foreach?

2005-01-10 Thread Jay Blanchard
[snip] I have encountered a very strange error on one of our customers sites. Their script returns the following error: Warning:Invalid argument supplied for foreach This is in response to the following line: foreach ($_GET as $key = $value) All I am trying to do is parse the querystring! Any

Re: [PHP] 403 not working -- apache 2 / php5 / linux

2005-01-10 Thread Travis Conway
you have to allow others to read it. You have it so only root can access the file. Try this: chmod 644 test.php while logged in as root. This should put the file as -rw-r--r-- 1 root root test.php HTH Travis - Original Message - From: Jason Morehouse [EMAIL PROTECTED] To:

Re: [PHP] 403 not working -- apache 2 / php5 / linux

2005-01-10 Thread Jonel Rienton
man chmod, i gather you're new to linux/*nix http://jonel.road14.com -- I not know English well, but I know 7 computer languages. anonymous On Jan 10, 2005, at 12:49 PM, Jason Morehouse wrote: Hello. I'm not sure if this is an

Re: [PHP] 403 not working -- apache 2 / php5 / linux

2005-01-10 Thread Jason Morehouse
Jonel Rienton wrote: man chmod, i gather you're new to linux/*nix I don't need a lesson in file permissions, thanks. Apache runs as nobody. The problem isn't trying to get apache to display test.php, it's having it display the proper 403 error page, rather than a php error when it doesn't

RE: [PHP] Comparison Operator

2005-01-10 Thread Chadwick, Russell
The function this is from sometimes uses $_POST or $_GET input, so sometimes its comparing 1337 with '1337' and === would break that. so I'll have to use something like: if (($value == $curval) !(is_string ($curval) ($value == 0))) unless there is a better way

[PHP] Unique, hard session timeout on a shared server

2005-01-10 Thread kjohnson
I have researched a few ways to set a hard session timeout on a shared server. Does anyone have comments on the advantages/disadvantages of each approach? Are there other alternatives? 1. Override the php.ini settings in an .htaccess file: php_value session.gc_maxlifetime 900 php_value

Re: [PHP] Error in foreach?

2005-01-10 Thread Matt M.
This is in response to the following line: foreach ($_GET as $key = $value) is $_GET an array? when in doubt, print it out try: print_r($_GET) or even check is_array($_GET) might be an earlier version of php http://us2.php.net/manual/en/reserved.variables.php#reserved.variables.get --

[PHP] sorting mysql results

2005-01-10 Thread Sebastian
I have a list of rows in the database and i would like to sort them in two categories. example, echo $row['name'] . '-' . $row['type']; // output: row 1 - files row 2 - files row 3 - music row 4 - files I would like this output: files -- row 1 - files row 2 - files row 4 - files

Re: [PHP] Re: Comparison Operator

2005-01-10 Thread John Nichel
[EMAIL PROTECTED] wrote: Yeah, I stated that it was being converted to an integer, but what I didn't think about was that 'A' didn't contain any integers so it would end up being zero. I believe if it had been 'A23' then it would have been converted to 23. But if it had evaluated to false than

Re: [PHP] 403 not working -- apache 2 / php5 / linux

2005-01-10 Thread Jason Barnett
the wrong permissions. Why does apache not server the 403 on the php page? Maybe this is better off in the apache list. Yeah, this is really better on an Apache list... but... http://httpd.apache.org/docs/mod/core.html#errordocument -- Teach a person to fish... Ask smart questions:

Re: [PHP] mail() w/ postfix problem in Fedora Core 3 FIXED

2005-01-10 Thread Nathaniel Price
Nathaniel Price wrote: I've been searching for the solution to this problem to no avail. I recently did a clean install of FC3 on a server that was running RH8. There were a number of PHP scripts that I had configured to send out email for notices or passwords or the like. However, now that I've

Re: [PHP] Re: What program to use to make thumbnail images?

2005-01-10 Thread Curt Zirzow
* Thus wrote Jason Morehouse: John Holmes wrote: What do you guys recommend for making thumbnails from uploaded images? I know of the GD extension, Imagemagik and netpbm. Any other recommendations or opinions on which of the above work best with PHP? Thanks. Imagemagik is your best

[PHP] Re: PHP College Scholarships?

2005-01-10 Thread Daniel Schierbeck
Andrew Wickham wrote: Does anyone know of any college scholarships for PHP or Computer Science. I need some non-college specific ones. The reason I ask is obviously because I need some help going to college through scholarships, and I have been programming in PHP for about 6 years now. Please

Re: [PHP] 403 not working -- apache 2 / php5 / linux

2005-01-10 Thread Curt Zirzow
* Thus wrote trobi: Jason Morehouse wrote / napísal (a): Hello. I'm not sure if this is an apache problem or php... but wondering if anyone has come across the same problem. -rw---1 root roottest.html -rw---1 root roottest.php What about: as root:

Re: [PHP] does php ready for enteprise ?

2005-01-10 Thread Brent Baisley
One of the big arguments for PHP being ready for the enterprise is that, hey, Yahoo uses it! But it's more the reason why Yahoo uses it. Part of the reason is that PHP is scalable because of it's a shared nothing architecture, so you can scale it horizontally just about indefinitely. Plus it's

Re: [PHP] 403 not working -- apache 2 / php5 / linux

2005-01-10 Thread Curt Zirzow
* Thus wrote Jason Morehouse: Richard Lynch wrote: Jason Morehouse wrote: Hello. I'm not sure if this is an apache problem or php... but wondering if anyone has come across the same problem. -rw---1 root root test.html -rw---1 root root test.php

Re: [PHP] if(date(Y-m-d)

2005-01-10 Thread Bret Hughes
On Mon, 2005-01-10 at 12:08, John Taylor-Johnston wrote: Hi, I would like some help to improve this script. I'm a teacher with a schedule of 17 weeks. Instead of using if(date(Y-m-d) = $week3) I would like to do a for i = 1 to 17 and if the current date date(Y-m-d) = week[i] I would like

Re: [PHP] 403 not working -- apache 2 / php5 / linux

2005-01-10 Thread Jason Wong
On Tuesday 11 January 2005 04:13, Jason Morehouse wrote: I don't need a lesson in file permissions, thanks. Apache runs as nobody. The problem isn't trying to get apache to display test.php, it's having it display the proper 403 error page, rather than a php error when it doesn't have

Re: [PHP] 403 not working -- apache 2 / php5 / linux

2005-01-10 Thread Bret Hughes
On Mon, 2005-01-10 at 15:21, Jason Morehouse wrote: Jonel Rienton wrote: man chmod, i gather you're new to linux/*nix I don't need a lesson in file permissions, thanks. Apache runs as nobody. The problem isn't trying to get apache to display test.php, it's having it display the proper

Re: [PHP] 403 not working -- apache 2 / php5 / linux

2005-01-10 Thread Rasmus Lerdorf
Jason Morehouse wrote: Jonel Rienton wrote: man chmod, i gather you're new to linux/*nix I don't need a lesson in file permissions, thanks. Apache runs as nobody. The problem isn't trying to get apache to display test.php, it's having it display the proper 403 error page, rather than a php

Re: [PHP] 403 not working -- apache 2 / php5 / linux

2005-01-10 Thread Jason Morehouse
Richard Lynch wrote: A! Now we see the question! Why doesn't it yield 403 like it should First and foremost, use php.ini or httpd.conf or .htaccess to *NOT* let PHP send error messages OF ANY KIND to the browser on a production site. [You could also use ini_set within a script if the file in

[PHP] Security - chmod 777 - PHP upload/write

2005-01-10 Thread SED
Hi, Sometimes when I write a PHP-script and upload it to a ISP through password protected FTP, the only way to write data to a folder is to run chmod 777 for that folder, I want to write (or save) a data to (e.g. file-upload, flat-file-database). However, if I do so, I have been told, everyone

Re: [PHP] 403 not working -- apache 2 / php5 / linux

2005-01-10 Thread Rasmus Lerdorf
Jason Barnett wrote: the wrong permissions. Why does apache not server the 403 on the php page? Maybe this is better off in the apache list. Yeah, this is really better on an Apache list... but... http://httpd.apache.org/docs/mod/core.html#errordocument No, it has nothing to do with Apache.

Re: [PHP] sorting mysql results

2005-01-10 Thread Andrew Kreps
On Mon, 10 Jan 2005 16:38:18 -0500, Sebastian [EMAIL PROTECTED] wrote: I have a list of rows in the database and i would like to sort them in two categories. example, echo $row['name'] . '-' . $row['type']; // output: row 1 - files add order by `type` to your sql statement, and then

Re: [PHP] if(date(Y-m-d)

2005-01-10 Thread Richard Lynch
On Mon, 10 Jan 2005 13:08:28 -0500, John Taylor-Johnston [EMAIL PROTECTED] wrote: Hi, I would like some help to improve this script. I'm a teacher with a schedule of 17 weeks. Instead of using if(date(Y-m-d) = $week3) I would like to do a for i = 1 to 17 and if the current date date(Y-m-d)

  1   2   >