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

2005-01-10 Thread James \(IFMS\)
I *really* appreciate everybody's previous input. I may be a highly experienced programmer, but am relatively new to PHP. OK, I figured out what was going on. Google enough and read enough and the light goes on finally. The problem was not the "require_once" but a scoping problem. Specifically

[PHP] Functions in replacement string of eregi_replace

2005-01-10 Thread Ville Mattila
Hi there! I'm looking for a workaround to carry out a feature similar to that I could use any PHP function inside the replacement string in eregi_replace (or ereg_replace). I have a set of HTML code with some -headers. Now I should convert all HTML headers to uppercase strings. As far as I know

[PHP] Error loading extension dlls in WindosXP for PHP4.3.10

2005-01-10 Thread Ranjan K. Baisak
I am using PHP4.3.10 in WindowsXP. When I am trying to use extension dlls e.g. php_xmlrpc.dll and when trying to restart Apache2 Web Server, I am getting error message as "UnKnows():Unable to load dynamic library './php_xmlrpc.dll.dll' - The specified module could not be found". The DLL file php_xm

[PHP] Error loading extension dlls in WindosXP for PHP4.3.10

2005-01-10 Thread Ranjan K. Baisak
I am using PHP4.3.10 in WindowsXP. When I am trying to use extension dlls e.g. php_xmlrpc.dll and when trying to restart Apache2 Web Server, I am getting error message as "UnKnows():Unable to load dynamic library './php_xmlrpc.dll.dll' - The specified module could not be found". The DLL file php_xm

[PHP] Forms on PHP

2005-01-10 Thread PHPDiscuss - PHP Newsgroups and mailing lists
Hi, I am new to this or any newsgroup in PHP, as well as PHP itself, so this question is probably rather elementary. I have a form which on clicking on the "Submit" button calls up a compiled program on the server that is executed and writes output to a file. This file is then read by the PHP sc

Re: [PHP] Re: unable to load curl

2005-01-10 Thread Sagar C Nannapaneni
> Please respond to the newsgroup and not to my personal email. > > Is it a file access/ownership thing? > > 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 = "C:\php

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

2005-01-10 Thread Curt Zirzow
* Thus wrote John Holmes: > zerof wrote: > >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. > >

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

2005-01-10 Thread Curt Zirzow
* Thus wrote 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,

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

2005-01-10 Thread John Holmes
zerof wrote: 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

[PHP] test

2005-01-10 Thread shimuqiheb

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

2005-01-10 Thread Rasmus Lerdorf
Jason Morehouse wrote: I still don't really get why apache hands parsing off to php when it knows it doesn't have read access to the file, but I'll save that for another list! It could check, I suppose, but it doesn't always know that just because it can't access the file the receiver won't be a

RE: [PHP] Comparison Operator

2005-01-10 Thread Richard Lynch
Chadwick, Russell wrote: > > 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

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

2005-01-10 Thread Richard Lynch
[EMAIL PROTECTED] wrote: > 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.

Re: [PHP] sorting mysql results

2005-01-10 Thread Leon Poon
Sort when querying from database: SELECT name, type FROM some_table ORDER BY type ASC, name ASC - Original Message - From: "Sebastian" <[EMAIL PROTECTED]> To: Sent: Tuesday, January 11, 2005 5:38 AM Subject: [PHP] sorting mysql results I have a list of rows in the database and i would l

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

2005-01-10 Thread Richard Lynch
> On Jan 10, 2005, at 12:49 PM, 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 roottest.html >> -rw---1 root roottest.php >> >> Trying to

Re: [PHP] sorting mysql results

2005-01-10 Thread Leif Gregory
Hello Sebastian, Monday, January 10, 2005, 2:38:18 PM, you wrote: S> if the $row['type'] is music i want to output an and the S> results below it but below the files results.. makes sense? i S> thought i remember doing this once using a dummy var but cant S> remember how. i guess i could always r

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 curren

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 statemen

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.

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

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 i

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 er

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 p

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 ac

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 w

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

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

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

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

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] 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: http://www

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 t

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

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

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 __

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 have

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 apa

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: Sent: Mond

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

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 th

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] 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] 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 to get your breaks in HTML. $numweeks = count($var); echo "Number of weeks: " . $numweeks . "\n";

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 40

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? $value = 0; $curval = 'A'; if ($value == $curval) { echo "WTH, Over"; } ?> $value = 0 means false. And your comparison is false. Try: If the comparison is false, the echo shouldn't be executed. Th

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] does php ready for enteprise ?

2005-01-10 Thread Chris W. Parker
Supri anto 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

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

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? > > $value = 0; > $curval = 'A'; > if ($value == $curval) { > echo "WTH, Over"; > } > ?> The string is converted to an integer when compared with an integer. See

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 (http://www.php.net/

Re: [PHP] Comparison Operator

2005-01-10 Thread trobi
Chadwick, Russell wrote / napísal (a): Could anyone tell me why this code echos? "; } ?> Try === If you use == $value is compared to $curval $value is integer so php converts $curval to integer so it contains no digtis so it assumes that $curval=0; why it is. trobi -- PHP General Mailing List

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 will

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,

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

2005-01-10 Thread Jay Blanchard
[snip] Could anyone tell me why this code echos? "; } ?> [/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 integer with a string, the string is converted to a number. If you compare two

[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] if(date("Y-m-d") >

2005-01-10 Thread Andrew Kreps
n't had my coffee this morning. :) Try this code: $weeks = array ("20050107", "20050110", "20050115"); for ($i = count($weeks) - 1; $i >= 0; $i--) { if (date ("Ymd") >= $weeks[$i]) { print "This is week " . (

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

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

2005-01-10 Thread Andrew Kreps
; $week17 = "2005-05-09; > > if(date("Y-m-d") >= $week3) > { > echo "this is week 3"); > } > ?> > You're actually pretty close. What I would do is remove the dashes from the equation and make that date a unique number. The advanta

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 d

[PHP] Re: Comparison Operator

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

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

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

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

2005-01-10 Thread Chadwick, Russell
Could anyone tell me why this code echos? "; } ?>

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

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 alwa

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

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

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

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

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

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 th

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 _R

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:

[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/) To

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 de

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

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 n

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 sever

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

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

[PHP] Re: unable to load curl

2005-01-10 Thread Jason Barnett
Please respond to the newsgroup and not to my personal email. Is it a file access/ownership thing? 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 = "C:\php\extensions" > >

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

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

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

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 cl

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 Maga

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 r

  1   2   >