Re: [PHP] exec() sytem() problem with starting ext. prg

2002-05-20 Thread Alexander Saupe
What is a TTY (see below)? - Original Message - From: "Rasmus Lerdorf" <[EMAIL PROTECTED]> To: "Alexander Saupe" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, May 20, 2002 2:06 PM Subject: Re: [PHP] exec() sytem() problem with starting ext. prg > su - nobody (substitute you

RE: [PHP] MySQL and sorting

2002-05-20 Thread David Freeman
> Is there a way to extract lets say a bunch of dates from a > mysql db, and the sort them in order from newest to oldest? > Also how would you sort names in alphabetical order? Yes, and a php list is obviously a good place to ask an sql question. In any case, you want to examine your favo

RE: [PHP] php4.2.0 (win) error message question

2002-05-20 Thread Rasmus Lerdorf
Hebrew On Tue, 21 May 2002, Martin Towell wrote: > I understand that I put :: when I shouldn't have. But why is it called > T_PAAMAYIM_NEKUDOTAYIM and not T_DOUBLE_COLON or something else? It's not > latin or something is it? > > -Original Message- > From: Peter [mailto:[EMAIL PROTECTED]

[PHP] Smart quote algorithm

2002-05-20 Thread Miguel Cruz
I have an application where I need to take some text that may contain inch and foot marks (aka ASCII quotes, ' and ") and change them to typesetters' quotes prior to exporting as an RTF. I poked around a little and didn't have much luck; I wonder if anyone has already implemented the required al

Re: [PHP] MySQL and sorting

2002-05-20 Thread Jason Wong
On Tuesday 21 May 2002 10:11, Cleeker wrote: > Is there a way to extract lets say a bunch of dates from a mysql db, and > the sort them in order from newest to oldest? Also how would you sort > names in alphabetical order? Yes, look at the date/time functions in the (mysql) manual. -- Jason Won

Re: [PHP] MySQL and sorting

2002-05-20 Thread Tyler Longren
The MySQL manual will explain this in great detail. To sort by date: SELECT * FROM table ORDER BY date ASC; for that to work, all the values in date should be a timestamp (ex: 2002052000) To sort by names: SELECT * FROM table ORDER BY name ASC; If you want reverse the order, replace the '

Re: [PHP] MySQL and sorting

2002-05-20 Thread Miguel Cruz
On Mon, 20 May 2002, Cleeker wrote: > Is there a way to extract lets say a bunch of dates from a mysql db, and > the sort them in order from newest to oldest? Also how would you sort > names in alphabetical order? Read the section of the MySQL manual that covers "ORDER BY" clauses. miguel --

[PHP] MySQL and sorting

2002-05-20 Thread Cleeker
Is there a way to extract lets say a bunch of dates from a mysql db, and the sort them in order from newest to oldest? Also how would you sort names in alphabetical order? ~Cleeker -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Text file

2002-05-20 Thread Cleeker
/* Opens the file in the current dir and allows read only parimiters to it (R) */ $foo = fopen(foo.txt, R); /* This then sends the contents to the browser for output */ fpassthru($foo); fclose($foo); That is REALLY basic if you want some more functions (which your probably will) for file handlin

RE: [PHP] php4.2.0 (win) error message question

2002-05-20 Thread Martin Towell
I understand that I put :: when I shouldn't have. But why is it called T_PAAMAYIM_NEKUDOTAYIM and not T_DOUBLE_COLON or something else? It's not latin or something is it? -Original Message- From: Peter [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 21, 2002 1:19 PM To: Php Subject: RE: [PH

RE: [PHP] php4.2.0 (win) error message question

2002-05-20 Thread Peter
try looking it up in the manual on php.net i just did a search for it and found a few results such as http://www.php.net/manual/en/tokens.php#AEN98855 which leads to (when you find it in the table) http://www.php.net/manual/en/keyword.paamayim-nekudotayim.php -Original Message- From: M

[PHP] php4.2.0 (win) error message question

2002-05-20 Thread Martin Towell
Just thought I'd try defining a class method outside of the class definition block. Here's the code blah(); ?> Here's the error I got Parse error: parse error, unexpected T_PAAMAYIM_NEKUDOTAYIM, expecting '(' in C:\WINNT\Profiles\mtowell\Desktop\test1.html on line 7 So, okay, I can't do that.

Re: [PHP] date Question

2002-05-20 Thread Justin French
Hi, If you want "last month" from the *CURRENT* date + time, then look at something like strtotime('last month'), which may help, generating a time stamp of the same day, time, etc in the previous month. To format a different time stamp into what you want, consider the date() function in the man

Re: [PHP] display errors for developers only?

2002-05-20 Thread Analysis & Solutions
Hey Jeff: > In the php.ini file I have display_errors = Off, how would I configure > the server, or the application to display the errors for specific hosts, > the developers? How about combining a user defined error handler function that tests for various $_SERVER and/or $_HTTP variables, that

Re: [PHP] verify file against array?

2002-05-20 Thread Analysis & Solutions
On Mon, May 20, 2002 at 01:26:20PM -0600, Jas wrote: > $types = array(".gif"=>"1", ... snip ... > > if ($img1_name != "" && eregi('$types', $img1_name)) { A few things FYI: * eregi() takes a string as the pattern, not an array. * you put $types in single quotes, which doesn't get evaluated...

Re: [PHP] Re: CGI / Apache module session permissions

2002-05-20 Thread Analysis & Solutions
Steve: On Sat, May 18, 2002 at 03:45:23PM -0400, Steve Clay wrote: > Saturday, May 18, 2002, 1:05:30 PM, I wrote: > SC> CGI, which works fine except that the CGI doesn't have permissions to > SC> my sessions that were saved running under the Apache module. I > > chmod($sess_file,0666); Allowing

Re: [PHP] Whats the best way?

2002-05-20 Thread Analysis & Solutions
Gerard: On Sat, May 18, 2002 at 12:38:37PM -0400, Gerard Samuel wrote: > HTTP_ACCEPT_LANGUAGE is 'en-us, en;q=0.75, nl;q=0.50, fr;q=0.25' > > $foo = split(',', $_SERVER['HTTP_ACCEPT_LANGUAGE'] ); > foreach ($foo as $bar) { >$string = > preg_replace("/([a-z]{2})|(-[a-z]{2})|(;q=[0-9]\.[0-9]

Re: [PHP] display errors for developers only?

2002-05-20 Thread Jim lucas
if you are running apache you could turn that option on inside of a specific ... block. Jim Lucas - Original Message - From: "Jeff Bearer" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, May 20, 2002 12:44 PM Subject: [PHP] display errors for developers only? > In the php.ini

[PHP] Re: Sane path? Avoiding people climbing in directory structure ../../

2002-05-20 Thread Philip Hallstrom
You could also use the realpath() function... realpath -- Returns canonicalized absolute pathname realpath() expands all symbolic links and resolves references to '/./', '/../' and extra '/' characters in the input path and return the canonicalized absolute pathname. The resulting path will have

Re[4]: [PHP] Refresh doesn't work

2002-05-20 Thread Olexandr Vynnychenko
Hello Johan, Tuesday, May 21, 2002, 2:13:07 AM, you wrote: JE> I'am admining both a IIS5.1 server and a Apache 2.0.35 server, under WinXP. JE> (say's it all, chaos!) JE> And I've never got the header to work, but location, does the trick, JE> sometimes... I don't know how it works Sometimes? Do

Re: [PHP] Sane path? Avoiding people climbing in directory structure ../../

2002-05-20 Thread Bogdan Stancescu
Just to aknowledge that your post is being read: I think that's all you have to do - that obviously doesn't necessarily mean I'm also right. :-) Bogdan Jimmy Lantz wrote: > Hi, > I'm planning on using userinput as a part of path to read (horrific I > know :) > So to make this userinput a bit

[PHP] Re: Installing PHP 4.2.1

2002-05-20 Thread Johan Ekström
This is what you must do. Copy Part ^^ copy php4ts.dll to c:\winnt\system32\ copy php4sapi.dll to c:\winnt\system32\ if you want any extensions, copy them to to c:\winnt\system32\ configuration part ^^^ in php.ini ¨ edit doc_root like : c:/Inetpub/wwwroot ed

[PHP] Re: Installing PHP 4.2.1

2002-05-20 Thread Johan Ekström
This is what you must do. Copy Part ^^ copy php4ts.dll to c:\winnt\system32\ copy php4sapi.dll to c:\winnt\system32\ if you want any extensions, copy them to to c:\winnt\system32\ configuration part ^^^ in php.ini ¨ edit doc_root like : c:/Inetpub/wwwroot ed

Re: [PHP] Running out of sockets! Help!

2002-05-20 Thread Casey Allen Shobe
On Monday 20 May 2002 05:59 pm, Miguel Cruz wrote: > Some time studies of lsof output could provide clues. The brute force > bandaid solution would be to recompile your kernel with lots more > filehandles, but that just prolongs the problem (and could lead to other > problems, like running out of

[PHP] Re: imagecopy() no errors, but does nothing :-(

2002-05-20 Thread Philip Hallstrom
take a look at ImageAlphaBlending() On Mon, 20 May 2002, Evan wrote: > Here is how i fixed the problem: > > //Adding logo > $dst_im = @ImageCreateFromJPEG("../".$pathImg.$NomeFile); > $src_im = @ImageCreateFromPNG("../imgsite/logoxmail.png"); > $dst_size = GetImageSize("../".$pathImg.$Nome

Re: [PHP] Running out of sockets! Help!

2002-05-20 Thread Miguel Cruz
On Mon, 20 May 2002, Casey Allen Shobe wrote: > Since compiling PHP --with-sybase-ct, I get the following errors in the > error_log after several days of webserver uptime: > socket: Too many open files in system > socket: Too many open files in system > socket: Too many open files in system > sock

[PHP] Running out of sockets! Help!

2002-05-20 Thread Casey Allen Shobe
Since compiling PHP --with-sybase-ct, I get the following errors in the error_log after several days of webserver uptime: socket: Too many open files in system socket: Too many open files in system socket: Too many open files in system socket: Too many open files in system socket: Too many open fi

RE: [PHP] timezone problem

2002-05-20 Thread Miguel Cruz
On Mon, 20 May 2002, SP wrote: > i'm testing on a windows so not sure where the timezone info would be > but what you are saying that if i port my app to a unix box then it > would be easy to just add the missing timezones in /usr/share/zoneinfo, > right? if that's the case then i could just test

RE: [PHP] timezone problem

2002-05-20 Thread SP
hi miguel i'm testing on a windows so not sure where the timezone info would be but what you are saying that if i port my app to a unix box then it would be easy to just add the missing timezones in /usr/share/zoneinfo, right? if that's the case then i could just test with pacific, eastern and m

[PHP] Re: Calling Compiled File From PHP File

2002-05-20 Thread Manuel Lemos
Hello, On 05/20/2002 05:02 PM, Bruce Miller wrote: > I have an algorithm that I don't want anyone to see; therefore I can't put > it in a php file. Is there a way I can create a compiled file containing the > algorithm/method that a php file can call? I see information on creating > extensi

[PHP] Installing PHP 4.2.1

2002-05-20 Thread Conover, Ryan
I am having trouble installing PHP 4.2.1 on Win2K/IIS5 as an ISAPI Module. I copied php.ini file with my config to the winnnt folder, and set the the app mappings and Isapi filters to C:\PHP\SAPI\php4isapi.dll, but the module does not read any of the changes in the php.ini file. How can I get php

[PHP] Sane path? Avoiding people climbing in directory structure ../../

2002-05-20 Thread Jimmy Lantz
Hi, I'm planning on using userinput as a part of path to read (horrific I know :) So to make this userinput a bit more secure I'm thinking to use $path = escapeshellarg($path); $path = str_replace("../","",$path); I'm thinking to use a basedir in a constant something like /usr/home/userdir (thi

[PHP] Re: Calling Compiled File From PHP File

2002-05-20 Thread Manuel Lemos
Hello, On 05/20/2002 05:02 PM, Bruce Miller wrote: > I have an algorithm that I don't want anyone to see; therefore I can't put > it in a php file. Is there a way I can create a compiled file containing the > algorithm/method that a php file can call? I see information on creating > extensions--i

[PHP] Re: imagecopy() no errors, but does nothing :-(

2002-05-20 Thread Evan
Here is how i fixed the problem: //Adding logo $dst_im = @ImageCreateFromJPEG("../".$pathImg.$NomeFile); $src_im = @ImageCreateFromPNG("../imgsite/logoxmail.png"); $dst_size = GetImageSize("../".$pathImg.$NomeFile); $src_size = GetImageSize("../imgsite/logoxmail.png"); ImageCopy( $dst_i

Re: [PHP] exec() sytem() problem with starting ext. prg

2002-05-20 Thread Rasmus Lerdorf
su - nobody (substitute your web server user id) then try to run the command The other problem can be that the app requires a TTY. -Rasmus On Mon, 20 May 2002, Alexander Saupe wrote: > Hello php-general, > > on a LAMP server I have the following problem: > > 1. playing around I tried to execut

Re: [PHP] exec() sytem() problem with starting ext. prg

2002-05-20 Thread Miguel Cruz
Have you checked is_readable() on the full pathname of the file? Perhaps one of the parent directories isn't accessible to the web server. miguel On Mon, 20 May 2002, Alexander Saupe wrote: > Hello php-general, > > on a LAMP server I have the following problem: > > 1. playing around I tried

Re: [PHP] Text file

2002-05-20 Thread Miguel Cruz
On Mon, 20 May 2002, Rodrigo wrote: > What I need is a php file that will read a text file and show it on a > html file. > > And it will also write to a text file, but at the end of the file. Well, you're in luck; that's all very easy to do. Are you having a specific problem with some aspect o

[PHP] exec() sytem() problem with starting ext. prg

2002-05-20 Thread Alexander Saupe
Hello php-general, on a LAMP server I have the following problem: 1. playing around I tried to execute the linux df (diskfree) command with exec() or system() - no problem, works fine! 2. trying to start an application did not work! - the application which I am trying to start can be started by

RE: [PHP] Text file

2002-05-20 Thread Scott Hurring
... so open up the text file and read it. What problem are you having? Are permissions set correctly? Are you making sure to escape "\" on Win? --- Scott Hurring Systems Programmer EAC Corporation [EMAIL PROTECTED] Voice: 201-462-2149 Fax: 201-288-1515 > -Original Message- > From: Rod

[PHP] Re: A new GUI client for mySQL

2002-05-20 Thread Vinod Palan
hi , I saw this software its just query analyzer I would like users to have first look @ http://www.anse.de/mysqlfront/ this is real good for managing mysql remotely Thanks Vinod -- Vinod Palan A Calypso Technology, Inc. [EMAIL PROTECTED] (415) 817-2463 Phone "Ritesh Nadhani" <[EMAIL PROTECTE

[PHP] Text file

2002-05-20 Thread Rodrigo
Hi guys: What I need is a php file that will read a text file and show it on a html file. And it will also write to a text file, but at the end of the file. Thanx, Rodrigo de Oliveira Costa.

Re: [PHP] Calling Compiled File From PHP File

2002-05-20 Thread Rasmus Lerdorf
Yes, building a small custom extension is the way to go. And the source tree is the same for UNIX and Windows. On Mon, 20 May 2002, Bruce Miller wrote: > I have an algorithm that I don't want anyone to see; therefore I can't put > it in a php file. Is there a way I can create a compiled file co

[PHP] Calling Compiled File From PHP File

2002-05-20 Thread Bruce Miller
I have an algorithm that I don't want anyone to see; therefore I can't put it in a php file. Is there a way I can create a compiled file containing the algorithm/method that a php file can call? I see information on creating extensions--is this the way to go? If so, it looks like there's php sourc

Re: [PHP] Refresh doesn't work

2002-05-20 Thread Bogdan Stancescu
Do you really need that 3 second delay? You can use a location header instead... Bogdan Olexandr Vynnychenko wrote: >Hello Thalis, > >Monday, May 20, 2002, 10:51:57 PM, you wrote: > >TAK> Have you tried creating HTML with the equivalent META header? > >TAK> >TAK> >TAK> > >TAK> Does it work

Re: [PHP] Read a var from stdin

2002-05-20 Thread Analysis & Solutions
On Sun, May 19, 2002 at 12:38:36AM -0500, Miguel Cruz wrote: > On Sat, 18 May 2002, Rafael Perazzo wrote: > > Is there any way to ask the user to type the value of > > a variable from stdin ? (like read in Pascal, or scanf > > in C). I'm using PHP from command line. > > $f = fopen('php://stdin

RE: [PHP] Any Ideas "@" becomes "_Xy"

2002-05-20 Thread Scott Hurring
> -Original Message- > From: Analysis & Solutions [mailto:[EMAIL PROTECTED]] > Subject: Re: [PHP] Any Ideas "@" becomes "_Xy" > > On Sat, May 18, 2002 at 11:45:49AM +0100, Henry wrote: > > > > > http://GetResponse.com/k.cgi?a=blahblah&f=henry_Xyteacake.force9.co.uk > > I subscribed usin

Re: [PHP] xml parsing

2002-05-20 Thread Analysis & Solutions
Hi: To be honest, I don't feel like wading through their example to figure out what's wrong. The way they're parsing doesn't seem very efficient to me. Check this tutorial/example out: http://www.analysisandsolutions.com/code/phpxml.htm Way cleaner and straight ahead. Enjoy, --Dan --

[PHP] Re: PHP & Excel

2002-05-20 Thread Evan
Have a look at my post of 17/05/2002, I got a lot of help from there. Bye, Evan "Jean-Louis Letortorec" <[EMAIL PROTECTED]> ha scritto nel messaggio 615315231286D21182E40008C7B1EED241EDF7@COMPAQ3000">news:615315231286D21182E40008C7B1EED241EDF7@COMPAQ3000... > Hello every one: > > I'm trying to

RE: [PHP] Expiring certain session data while keeping the session itself

2002-05-20 Thread Scott Hurring
What about something like this: (un-tested, just off the top of my head) It'll set a cookie the first time a user gets to the page, and will then only re-load data every 75+ seconds (from the time the user first loads data) -- and only updates the cookie when data is re-loaded if (date("U") > (

Re: [PHP] Any Ideas "@" becomes "_Xy"

2002-05-20 Thread Analysis & Solutions
On Sat, May 18, 2002 at 11:45:49AM +0100, Henry wrote: > > http://GetResponse.com/k.cgi?a=blahblah&f=henry_Xyteacake.force9.co.uk > I subscribed using the email address [EMAIL PROTECTED] > They appear to have translated the "@" symbol to "_Xy". > Any guess why? Is there a PHP function that does t

[PHP] imagecopy() no errors, but does nothing :-(

2002-05-20 Thread Evan
What I'm planning to do is to add the logo of the site over every image uploaded. Here is the code after upload: $dst_im = @ImageCreateFromJPEG ("../".$pathImg.$NomeFile); $src_im = @ImageCreateFromJPEG ("../imgsite/logo.jpg"); $dst_size = GetImageSize("../".$pathImg.$NomeFile);//800x60

Re[2]: [PHP] Refresh doesn't work

2002-05-20 Thread Olexandr Vynnychenko
Hello Thalis, Monday, May 20, 2002, 10:51:57 PM, you wrote: TAK> Have you tried creating HTML with the equivalent META header? TAK> TAK> TAK> TAK> Does it work for you? TAK> cheers, TAK> thalis TAK> On Mon, 20 May 2002, Olexandr Vynnychenko wrote: >> Hello php-general, >> >> Has anyon

Re: [PHP] Refresh doesn't work

2002-05-20 Thread pong-TC
[EMAIL PROTECTED] writes: >Hello php-general, > > Has anyone else here the same proplem as I have? I write in my php: > >header("Refresh: 3; url=newpage.php"); > >Netscape 4.79 works fine and goes to page.php after 3 seconds pass. >But IE 6 doesn't want to do that. Can anyone explain such a wonde

[PHP] display errors for developers only?

2002-05-20 Thread Jeff Bearer
In the php.ini file I have display_errors = Off, how would I configure the server, or the application to display the errors for specific hosts, the developers? -- Jeff Bearer, RHCE Webmaster PittsburghLIVE.com 2002 EPpy Award, Best Online U.S. Newspaper -- PHP General Mailing List (http://ww

[PHP] Refresh doesn't work

2002-05-20 Thread Olexandr Vynnychenko
Hello php-general, Has anyone else here the same proplem as I have? I write in my php: header("Refresh: 3; url=newpage.php"); Netscape 4.79 works fine and goes to page.php after 3 seconds pass. But IE 6 doesn't want to do that. Can anyone explain such a wonderful behavior? -- Best regards,

Re: [PHP] Refresh doesn't work

2002-05-20 Thread Thalis A. Kalfigopoulos
Have you tried creating HTML with the equivalent META header? Does it work for you? cheers, thalis On Mon, 20 May 2002, Olexandr Vynnychenko wrote: > Hello php-general, > > Has anyone else here the same proplem as I have? I write in my php: > > header("Refresh: 3; url=newpage.php"); >

[PHP] Re: [PHP-EVANGELISM] PHPDocumentor v1.0rc1 release announcement

2002-05-20 Thread Dave Mertens
On Sun, May 19, 2002 at 07:54:45PM -0500, Greg Beaver wrote: > PHPDocumentor is a JavaDoc-like automatic documentation generator for PHP > written in PHP. It is the most versatile tool for documenting PHP. This sounds like the phpdoc tool that php/pear is using already. But what can *WE*, as advo

[PHP] verify file against array?

2002-05-20 Thread Jas
I am trying to register an array containing file types, htm, jpg, jpeg, gif and pdf. I think I am missing something, if someone could look at this and tell me what I am doing wrong that would be awesome, thanks in advance. jas "1", ".jpg"=>"2", ".jpeg"=>"2", ".htm"=>"3", ".pd

Re: [PHP] PHP Cookies

2002-05-20 Thread Miguel Cruz
[ by the way Darren, your email address doesn't work ] On Mon, 20 May 2002, Darren wrote: > Ok what i mean is this if the $skin cookie is not present then what can i > add to this so that it has a default value with the color #00 > > if($skin=="default") { $skin="#6e6e6e"; }; > if($skin=="re

Re: [PHP] List content of folders?

2002-05-20 Thread Jason Wong
On Tuesday 21 May 2002 02:24, Hawk wrote: > Is there some var that does this automaticly? I don't really know what to > search for on php.net.. :P > If there isn't, is there any other way to do this? I know it's possible > with asp but I have no plans on using asp :P Download the manual and look

Re: Re: [PHP] Re: php.net sloooooooowwww

2002-05-20 Thread Eric Coleman
Hello Rasmus Lerdorf, === At 2002-05-18, 22:45:00 Rasmus Lerdorf wrote: === >http://php.he.net/distributions/php-4.2.1-Win32.zip > Why not use a cookie and some type of redirection on php.net, where a user is forced to choose a mirror, and then when they go to php.net, it redirects them

Re: [PHP] refresh (part of) a page?

2002-05-20 Thread Sqlcoders.com Programming Dept
Hi there!, To keep both on the same line, you need to put them inside a table (like this: ) You can switch off any borders with the following: in the iframe code use an iframe tag like this: So to combine the two (both on the same line with no borders), something like this...

Re: [PHP] PHP & Excel

2002-05-20 Thread 1LT John W. Holmes
> What if the user opens up the sheet and changes a number > after PHP creates it? Wouldn't you want formulas to > re-compute the sheet and keep it correct? :) Like I said, it depends on your case. When I create an Excel file, it's a "snapshot" of everything. If you need an updated speadsheet,

RE: [PHP] PHP & Excel

2002-05-20 Thread Scott Hurring
> -Original Message- > From: 1LT John W. Holmes [mailto:[EMAIL PROTECTED]] > Subject: Re: [PHP] PHP & Excel > > I would think that you wouldn't need formulas. Isn't that the > idea of using > PHP to create the Excel document? Have PHP compute the values of the > "formulas" and print out

RE: [PHP] PHP & Excel

2002-05-20 Thread Scott Hurring
Are you on a Win32 platform? If so, use COM... $cell = $sheet->Cells($row,$col); $cell->activate; $cell->formula = "your formula"; --- Scott Hurring Systems Programmer EAC Corporation [EMAIL PROTECTED] Voice: 201-462-2149 Fax: 201-288-1515 > -Original Message- >

Re: [PHP] PHP & Excel

2002-05-20 Thread 1LT John W. Holmes
Can you just write out the formula to a cell? i.e. write the value "=SUM(C1:C5)" to a cell and see if it's evaluated? Just throwing things out... I would think that you wouldn't need formulas. Isn't that the idea of using PHP to create the Excel document? Have PHP compute the values of the "formu

Re: [PHP] Re: php.net sloooooooowwww

2002-05-20 Thread Rasmus Lerdorf
http://php.he.net/distributions/php-4.2.1-Win32.zip On Sat, 18 May 2002, Jason Caldwell wrote: > Is there some place else I can download release 4.2.1 ??? www.php.net is > dead slow, and us2.php.net is taking forever to prompt me for the > download -- I keep getting hit with the "Page Cannot be

Re: [PHP] Why would this command just Die!

2002-05-20 Thread Rasmus Lerdorf
Change your die() call to this: die(mysql_error()) so you can actually see what is going on. -Rasmus On Mon, 20 May 2002, Php Developers wrote: > This command just dies! > > I have checked sql connection ... ok > the insert into line ... ok > > Pfft it just don't wanna work > > > > $answe

[PHP] PHP & Excel

2002-05-20 Thread LeTortorec, Jean-Louis
Hello every one: I'm trying to create XLS files on the fly. I found BiffWriter. Looks great for adding texts and numbers, but not formulas. Has anyone implemented something about formulas? Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsu

RE: [PHP] Variable won't work in function, even when I global it?

2002-05-20 Thread Scott Hurring
Or why not just use include_once() or require_once() ?? That's their purpose. --- Scott Hurring Systems Programmer EAC Corporation [EMAIL PROTECTED] Voice: 201-462-2149 Fax: 201-288-1515 > -Original Message- > From: Paul Roberts [mailto:[EMAIL PROTECTED]] > Subject: Re: [PHP] Variable wo

[PHP] Re: List content of folders?

2002-05-20 Thread Jas
readdir(); search for that and you should find what you need. HTH Jas "Hawk" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Is there some var that does this automaticly? I don't really know what to > search for on php.net.. :P > If there isn't, is there any ot

Re: [PHP] while loop question - problem (new set of eyes needed)

2002-05-20 Thread Rasmus Lerdorf
You are resetting $row inside your loop. Don't do that. On Sun, 19 May 2002, Lee P Reilly wrote: > Hi, > > I wonder if someone could have a quick look at this for me? It's a > simple while loop, but it's not acting the way (I think) it should. If I > break down the while loop, it reads: > > ---

[PHP] List content of folders?

2002-05-20 Thread Hawk
Is there some var that does this automaticly? I don't really know what to search for on php.net.. :P If there isn't, is there any other way to do this? I know it's possible with asp but I have no plans on using asp :P Håkan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vis

Re: [PHP] php.net sloooooooowwww

2002-05-20 Thread Rasmus Lerdorf
Use a mirror. us2.php.net is quick We are having some network problems on the main server. A good reminded to everyone to go find your local mirrors and use them instead. On Sat, 18 May 2002, Jason Caldwell wrote: > Anyone know why http://www.php.net is s incredibly slow today > (

Re: [PHP] Email harvesters

2002-05-20 Thread Hugh Bothwell
"Miguel Cruz" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > But then how would newsgroup users write back to people? > > miguel > > On Mon, 20 May 2002, Leif K-Brooks wrote: > > I think it would be a good idea to have whatever software sends list > > messages

Re: [PHP] Email harvesters

2002-05-20 Thread Rasmus Lerdorf
If there was just one archive of this list and we controlled it, then this would be ok. But the fact is that there are dozens, and we don't control any of them. So I don't see how this could be done. -Rasmus On Mon, 20 May 2002, Richard Baskett wrote: > I wrote this email to the php Archive l

Re: [PHP] Re: Register_Shutdown_Function ??

2002-05-20 Thread Rasmus Lerdorf
What makes you think you can echo something after your script has timed out? Change that print to write something to a file in /tmp and you will see that it works just fine. -Rasmus On Sat, 18 May 2002, Jason Caldwell wrote: > Here's my code: > > set_time_limit(1); > functi

Re: [PHP] Re: Register_Shutdown_Function ??

2002-05-20 Thread Rasmus Lerdorf
Windows? Blah. This stuff may very well not work there. No idea. -Rasmus On Sat, 18 May 2002, Jason Caldwell wrote: > It doesn't matter. I'm setting the output *not* to the browser, but to the > command shell, where I am running the script from. If you look at the > errors, you'll see 2 of

Re: [PHP] eval()

2002-05-20 Thread Bogdan Stancescu
Sorry, please change line 2 with $x="q$i". Bogdan Bogdan Stancescu wrote: > for ($i = 1; $i <= 3; $i++) { > $x= "$q$i"; > $val=$$x; > echo"$val\n"; > echo"\n"; > } > > > > jtjohnston wrote: > >> I know I'm not doing this right, but .. >> >> What I want to do is display the value of $q1 through

Re: [PHP] eval()

2002-05-20 Thread Bogdan Stancescu
for ($i = 1; $i <= 3; $i++) { $x= "$q$i"; $val=$$x; echo"$val\n"; echo"\n"; } jtjohnston wrote: >I know I'm not doing this right, but .. > >What I want to do is display the value of $q1 through $q3. >How? I can't get eval() to do it, can I? > >for ($i = 1; $i <= 3; $i++) >{ >$x= eval ("\$q".$i

Re: [PHP] bug in SLEEP() function...

2002-05-20 Thread Rasmus Lerdorf
This is well-documented. Right out of the set_time_limit() docs: Note: The set_time_limit() function and the configuration directive max_execution_time only affect the execution time of the script itself. Any time spent on activity that happens outside the execution of the script such as sy

Re: [PHP] eval()

2002-05-20 Thread Miguel Cruz
On Mon, 20 May 2002, jtjohnston wrote: > I know I'm not doing this right, but .. > > What I want to do is display the value of $q1 through $q3. > How? I can't get eval() to do it, can I? > > for ($i = 1; $i <= 3; $i++) > { > $x= eval ("\$q".$i); > echo"$x\n"; > echo"\n"; > } eval() is for runni

[PHP] eval()

2002-05-20 Thread jtjohnston
I know I'm not doing this right, but .. What I want to do is display the value of $q1 through $q3. How? I can't get eval() to do it, can I? for ($i = 1; $i <= 3; $i++) { $x= eval ("\$q".$i); echo"$x\n"; echo"\n"; } John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Problem with mktime()

2002-05-20 Thread Rasmus Lerdorf
08 and 09 are not real numbers. Any number starting with a 0 is an octal number which means you can only use digits 0-7 Drop the leading 0 and everything will work. -Rasmus On Mon, 20 May 2002, Johannes Tyra [BrainData] wrote: > Hi, > > I want to read out the asterisk from a birthdate. > > Fi

Re: [PHP] gmdate question

2002-05-20 Thread Miguel Cruz
On Mon, 20 May 2002, SP wrote: > I am using gmdate to get the GMT timezone and it's working but how does > it know what timezone my server is to make the time adjustment? > Where's the setting for this? In your server's configuration files somewhere. Nothing to do with PHP. miguel -- PHP Ge

Re: [PHP] timezone problem

2002-05-20 Thread Miguel Cruz
I think these are system-specific. You'll probably have to check which time zone your machine understands. For instance, on this FreeBSD machine there are hundreds of them in /usr/share/zoneinfo but on other machines there are only a handful. In short, I believe it's an OS rather than a PHP th

Re: [PHP] PHP Cookies

2002-05-20 Thread Miguel Cruz
On Mon, 20 May 2002, Darren Edwards wrote: > Hi, i want to use a cookie to set a skin for a site but when i go to the > site when there is no cookie set then it will display no images background > colors ect... So what i need to do is have a command that will set other > images background ect. as

Re: [PHP] Email harvesters

2002-05-20 Thread Miguel Cruz
But then how would newsgroup users write back to people? miguel On Mon, 20 May 2002, Leif K-Brooks wrote: > I think it would be a good idea to have whatever software sends list > messages to the newsgroup block out the addresses. > > Miguel Cruz wrote: > > >If you're concerned and don't have

Re: [PHP] undefined function: sybase_pconnect()

2002-05-20 Thread Jason Wong
On Monday 20 May 2002 23:56, Patrick Laverty wrote: > Create a function called sybase_pconnect(). That is the soluction. I doubt it. > At 05:11 PM 5/20/02 +0530, Vivek Kumar Agrawal wrote: > >Hi All, > > > >I am getting some error like this: > > "Fatal error: Call to undefined function: syb

[PHP] Expiring certain session data while keeping the session itself

2002-05-20 Thread Chris Knipe
Hiya, me again :-) Is it possible to expire certain session data, while still keeping the session itself in tact? Example... $_SESSION['AlwaysTrue'] = "True"; $_SESSION['ExpireThis'] = "10:20:00"; At 10:19:50 the session is registered. AlwaysTrue must remain True for as long as the session it

Re: [PHP] date Question

2002-05-20 Thread Jason Wong
On Monday 20 May 2002 23:01, Randy Johnson wrote: > Is their a way to retrieve the previous month using/altering the code > below: > > // get the current timestamp into an array > $timestamp = time(); > $date_time_array = getdate($timestamp); > $month = $date_time_array["mon"]; >

Re: [PHP] mysql_fetch_array errors

2002-05-20 Thread Philip Olson
A key to understanding your mysql errors is by using the mysql_error() function. It's wonderful! Here's a simple example with a little error checking: Regards, Philip Olson On Sun, 19 May 2002, Justin Latham wrote: > I am trying to clone my webserver because I am switching ISPs. So I

RE: [PHP] PHP Cookies

2002-05-20 Thread Jay Blanchard
[snip] Hi, i want to use a cookie to set a skin for a site but when i go to the site when there is no cookie set then it will display no images background colors ect... So what i need to do is have a command that will set other images background ect. as default if there is no cookie there. How ca

Re: [PHP] online bidding

2002-05-20 Thread Bogdan Stancescu
Hi! My opinion is that you should skip the array step and jump to database implementation - it's a slightly different approach and you'd have to change most of the array code... Bogdan [EMAIL PROTECTED] wrote: >the following code represents an ineloquent way of capturing data from multiple fo

Re: [PHP] refresh (part of) a page?

2002-05-20 Thread 1LT John W. Holmes
You can't have any output before you call header. Something in main.php on line 41 is causing some output that breaks the header() call. Be sure you don't have any whitespace at the end of included files. ---John Holmes... - Original Message - From: "savaidis" <[EMAIL PROTECTED]> To: <[E

[PHP] More on escaping for SQL statements

2002-05-20 Thread Dennis Gearon
I appreciate all the replies to my question before about this. And also to the person who asked the question later in the day! What I'm looking for is a database neutral, comprehensive way to do escaping. First of all, though, will a php string hold binary data with the value of 0x00 at multiple

RE: [PHP] Email harvesters

2002-05-20 Thread Brian McGarvie
but then no one would be able to reply to an individual... > -Original Message- > From: Leif K-Brooks [mailto:[EMAIL PROTECTED]] > Sent: 20 May 2002 11:42 AM > To: Miguel Cruz > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] Email harvesters > > > I think it would be a good idea to have wha

Re: [PHP] MSIE & GZIP problem

2002-05-20 Thread Garth Dahlstrom
> Has anyone heard of the problem with MSIE 6? If this is a > known problem; I'll have to perform some browser check to make > sure I can gzip to that MSIE > version 6 build (whatever) -- kind of a hassle. > > I just did a search on Technet, and could find no mention of it. I've experinced si

Re: [PHP] MSIE & GZIP problem

2002-05-20 Thread Garth Dahlstrom
> Has anyone heard of the problem with MSIE 6? If this is a > known problem; I'll have to perform some browser check to make > sure I can gzip to that MSIE > version 6 build (whatever) -- kind of a hassle. > > I just did a search on Technet, and could find no mention of it. I've experinced si

Re: [PHP] refresh (part of) a page?

2002-05-20 Thread Jason Wong
On Monday 20 May 2002 16:39, savaidis wrote: > I look and I search everything, it looks I'm reaching to a wall :) > I used Netscape, I uploaded to my internet server, still the same. > Plus, I cannot find "header already send" at manual. > > The error message is : > Warning: Cannot add header info

  1   2   >