Re: [PHP] Owner

2002-09-25 Thread John Taylor-Johnston
Justin, > Best advice is to post strictly to the newsgroup with a dud email address, Unfortunately, that doesn't work. I had a hotmail address, but not acceptable. Someone did not put it on the "accepted' list. Someone back there needs to accept that address to allow that poster to post when u

Re: [PHP] Owner

2002-09-25 Thread Justin French
The problem is NOT the list, but the services like marc that archive the lists activities... this means your email address sits there in plain view on MANY web pages for bots to find. Best advice is to post strictly to the newsgroup with a dud email address, or use a specific email address for yo

[PHP] Owner

2002-09-25 Thread John Taylor-Johnston
Hi, Who is the forum's owner? I want to post questions using [EMAIL PROTECTED] and [EMAIL PROTECTED] in my from: and reply-to: I post infrequently to this list using news://news.php.net/php.general NOT [EMAIL PROTECTED] This is about the only list I post to. I've been receiving a lot of spam

[PHP] Looking for a forum

2002-09-25 Thread John Taylor-Johnston
Hi, I'm looking for some forum script, a bit like this: http://www.chevelles.com/cgi-bin/forum/Ultimate.cgi Can anyone post a link to something useful? John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: PEAR or not PEAR

2002-09-25 Thread Rasmus Lerdorf
No DB abstraction layer, including MetaBase offers true database abstraction. No layer will make stored procedures portable. No layer will make your fancy Oracle DECODE() query portable. No layer will magically make your MS-SQL triggers work anywhere else. For any moderately complex database w

[PHP] Re: PEAR or not PEAR

2002-09-25 Thread Manuel Lemos
Hello, On 09/24/2002 11:15 AM, Joshua E Minnie wrote: > I was reading an article at PHPBuilder.com (not very recent, 01/15/2001) > about PEAR DB, and was wondering if anyone had any experience using PEAR > rather than the functions dedicated specifically to each type of DB (i.e. > mysql_, mssql_,

[PHP] Re: Mail() and Attachments

2002-09-25 Thread Manuel Lemos
Hello, On 09/25/2002 07:00 PM, Tom Ray wrote: > I was wondering with mail() how do you attach a file to the message you are > sending? I have to take the data from the form and write it to a CSV file that > needs to be mailed to the client, I got everything put how to attach the CSV > file to the

Re: [PHP] Configure php for windows

2002-09-25 Thread Khalid El-Kary
hi, please tell me about your Apache version, PHP version, the changes you made to the httpd.conf and error messages of returned thanx _ Join the world’s largest e-mail service with MSN Hotmail. http://www.hotmail.com -- PH

[PHP] Example script : Employee schedule

2002-09-25 Thread Faisal Abdullah
Hi people. Does anyone happen to know whether there is a sample script/application out there which can tell me (and everyone else in the organisation) of what "john doe" is doing, and where & when he's doing it? I don't know a proper name for this type of application, therefor I haven't found any

Re: [PHP] Configure php for windows

2002-09-25 Thread Uma Shankari T.
On Thu, 26 Sep 2002, Justin French wrote: JF>What test are you running? JF> JF>Justin I am running this code only.. Regards, Uma -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] replacing literal " in string

2002-09-25 Thread Tom Rogers
Hi, Thursday, September 26, 2002, 12:02:29 AM, you wrote: RM> Could somebody help me with the correct syntax for an ereg_replace to RM> replace literal occurences of the quote character in a string. I can't RM> seem to get it right. RM> In other words, I have a form input variable -- that liter

Re: [PHP] Configure php for windows

2002-09-25 Thread Justin French
What test are you running? Justin on 26/09/02 12:10 PM, Uma Shankari T. ([EMAIL PROTECTED]) wrote: > > Hello, > > > I have installed php in windows machine and configure php according to > the manual given in the net..While running test program it is not displaying > the result properly and

[PHP] Configure php for windows

2002-09-25 Thread Uma Shankari T.
Hello, I have installed php in windows machine and configure php according to the manual given in the net..While running test program it is not displaying the result properly and not showing any error also..Apache is running..Can any one pls tell me how to go about with this..?? Regards,

Re: [PHP] How to test if a number is negative

2002-09-25 Thread Miles Thompson
Or, as my teenage son, who is smarter than me, suggests ... 1 / $x + abs( $x ) which yields 1/0 if $x is neg. (He didn't go into trapping for the error ... sigh.) Miles At 11:07 PM 9/25/2002 -0300, Miles Thompson wrote: >$x = -1; >if ($x < 0 ){ > echo "Negative"; >else >

[PHP] RE: negative numbers

2002-09-25 Thread Mike Dunlop
Nevermind, I have been using if($number<0) { //negative number... but it wasn't working correctly due to a str_replace statement that removing zeros which was screwing it up ok later -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to test if a number is negative

2002-09-25 Thread Miles Thompson
$x = -1; if ($x < 0 ){ echo "Negative"; else echo "Positive"; } Or am I missing something? Miles At 07:02 PM 9/25/2002 -0700, Mike Dunlop wrote: >I've look through all the numerican functions but can't readily see a way >to test for a negative number e.g -7 > >Any ideas o

[PHP] How to test if a number is negative

2002-09-25 Thread Mike Dunlop
I've look through all the numerican functions but can't readily see a way to test for a negative number e.g -7 Any ideas on how to do this? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Encrypt data...

2002-09-25 Thread Tom Rogers
Hi, Thursday, September 26, 2002, 4:45:04 AM, you wrote: SF> How do I encrypt the data and decrypt it back using PHP? I do know that hte SF> random number can not be used becuase it will make it impossible to decrypt SF> it. SF> Thanks! Here is a simple class for encoding and decoding: class

Re: [PHP] Re: Re: Cronjob

2002-09-25 Thread Daren Cotter
OH MY GOD. I searched the php.ini file twice, and didn't see that freaking variable. Thank you so much Tom!!! --- Tom Rogers <[EMAIL PROTECTED]> wrote: > Hi, > > Thursday, September 26, 2002, 9:50:28 AM, you wrote: > DC> Philip, > > DC> Running test.php arg1 arg2 > test.txt > > DC> Then search

[PHP] Who is online script example

2002-09-25 Thread Research and Development
Hello. Has anyone noticed that some sites can display a list of users currently looking at their site? I would like to see the code to do such things. Thanks in advance. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] cookies from cgi script

2002-09-25 Thread Roger Thomas
Dear all, I have a cgi script that create cookie with the cookie path set to /cgi-bin/ How do I access the value of that cookie from a php-script ? I have tried $_COOKIE["cookiename"] but the value is blank. From my NS cookie manager, I know that there is value associated with that cookie. Pleas

Re: [PHP] RFE: Multiple auto_prepend_file statements to work in Apache

2002-09-25 Thread Alex Vincent
John Holmes wrote: > Even if it's only one file, have that file include the other necessary > files... so two.php would include one.php, three.php, etc. You could > even build the logic into two.php so it decides which other files to > include based on any number of conditions. > > ---John Holme

Re: [PHP] Re: Re: Cronjob

2002-09-25 Thread Tom Rogers
Hi, Thursday, September 26, 2002, 9:50:28 AM, you wrote: DC> Philip, DC> Running test.php arg1 arg2 > test.txt DC> Then searching test.txt for arg1, it was found here: DC> HTTP_GET_VARS["test_php_arg1_arg2"] DC> Nowhere else. DC> Gotta be a server issue? DC> --- Philip Hallstrom <[EMAIL PR

RE: [PHP] PHP POST arrar is dropping 4 characters

2002-09-25 Thread John Holmes
This was just talked about last week, search the archives. IIRC, it was a bug, so maybe search the buglist, too. ---John Holmes... > -Original Message- > From: David Busby [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, September 25, 2002 7:29 PM > To: [EMAIL PROTECTED] > Subject: [PHP] PH

[PHP] Re: Re: Cronjob

2002-09-25 Thread Daren Cotter
Philip, Running test.php arg1 arg2 > test.txt Then searching test.txt for arg1, it was found here: HTTP_GET_VARS["test_php_arg1_arg2"] Nowhere else. Gotta be a server issue? --- Philip Hallstrom <[EMAIL PROTECTED]> wrote: > Then try a script with: > > phpinfo(); > ?> > > in it and run it

RE: [PHP] dynamic website

2002-09-25 Thread Don Read
On 25-Sep-2002 Donahue Ben wrote: > I have a general question of a dynamic website using > PHP4 and mysql database. If there are many, many > users visiting a dynamic website at once, will it > cause the database to be bogged down with so many > users visiting the website? If so, how do you aro

Re: [PHP] What other list are there?

2002-09-25 Thread Kevin Stone
All signs point to.. www.php.net - Original Message - From: "Chuck Payne" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, September 25, 2002 3:23 PM Subject: [PHP] What other list are there? > Hi, > > I am getting ready to start another project that will have to do a lot of

[PHP] What other list are there?

2002-09-25 Thread Chuck Payne
Hi, I am getting ready to start another project that will have to do a lot of math. So I need to ask some question on how to get php and mysql to do that. So can you tell what mailing list there because I think that I might have to ask other list since this is general list, I am I think this migh

[PHP] Calling an external C function under Unix

2002-09-25 Thread Anna Sotnichenko
Hello All! I want to transfer a PHP script with minimum changes from IIS under Win2000 to Unix. My ISAPI PHP script calls some external C-functions through PHP W32api extension. Is there a way to call external C-function from PHP-script under UNIX? Thanks in advance. -- PHP General Mailing L

[PHP] Re: [PHP-NOTES] note 25493 added to function.define

2002-09-25 Thread Friedhelm Betz
> I can't find a "redefine" or "undefine" clause. Does it exists ? > I need to redefine a constant and PHP reports a notice on it. Please read the fine manual carefully and follow the link section on constants. Your note will be removed. -- PHP General Mailing List (http://www.php.net/) To un

[PHP] listing of directories into links

2002-09-25 Thread Bryan Koschmann - GKT
Hi, I need to do something where my page is a generated list of directories. Say, I want to easily make links to all user pages (/home/user1/public_html, /home/user2/public_html, and so on). Can anyone give me any ideas? Thanks, Bryan -- PHP General Mailing List (http://www.php.net/

Re: [PHP] Encrypt data...

2002-09-25 Thread Scott Fletcher
Well, I meant a script. I do have mcrypt but I don't feel comfortable with that becuase if I upgrade PHP or Mcrypt, then it could affected the encrypt data. "Mike Dunlop" <[EMAIL PROTECTED]> wrote in message news:a05100304b9b7b58c8d3b@[65.106.126.146]... > http://php.net/mcrypt > > >How do I en

[PHP] Re: Explorer-like "drill down" interface

2002-09-25 Thread Philip Hallstrom
On Wed, 25 Sep 2002, Mike Dunlop wrote: > >I have two questions: > > > >2. I have allowed packets through my firewall destined for port > >3306, the mysql server. So I can connect to the server from a remote > >machine. Are there any known security vulnerabilities in the mySQL > >server? > I wou

[PHP] Re: Re: Cronjob

2002-09-25 Thread Philip Hallstrom
Then try a script with: in it and run it as: % php script.php arg1 arg2 arg3 and then search the output for arg1 and find out where it is. It's got to be there somewhere. -philip On Wed, 25 Sep 2002, Daren Cotter wrote: > Don, > > It was not there anywhere. > > --- Don Read <[EMAIL PROTEC

Re: [PHP] help with apache2.0.40 and php 4.2.3

2002-09-25 Thread Robert Cummings
[EMAIL PROTECTED] wrote: > > I have run into a snag with apache and php4 it consists of me not > being able to specify where my config file should be and it will not > unload the libphp4.so module. Every time apachectl is run it > comkplains that the module is already loaded even on a fres boot

[PHP] help with apache2.0.40 and php 4.2.3

2002-09-25 Thread meaje
I have run into a snag with apache and php4 it consists of me not being able to specify where my config file should be and it will not unload the libphp4.so module. Every time apachectl is run it comkplains that the module is already loaded even on a fres boot with out loading any version of

Re: [PHP] Re: Cronjob

2002-09-25 Thread Daren Cotter
Don, It was not there anywhere. --- Don Read <[EMAIL PROTECTED]> wrote: > > On 25-Sep-2002 Daren Cotter wrote: > > This just prints out a bunch of info (seems to be > > unimportant)...what am I looking for in this? > > > > You're looking for your argument string "blah" > > -- > Don Read

Re: [PHP] Re: Cronjob

2002-09-25 Thread Don Read
On 25-Sep-2002 Daren Cotter wrote: > This just prints out a bunch of info (seems to be > unimportant)...what am I looking for in this? > You're looking for your argument string "blah" -- Don Read [EMAIL PROTECTED] -- "Beer is proof that God loves us and w

RE: [PHP] Output Buffering - Am I using it correctly?

2002-09-25 Thread Jay Blanchard
[snip] OK. One of the silly classes fails, saying -- Fatal error: No parent class available in this context in biff.php on line 52 line 52 is -- 49 function BiffWriter() 50 { 51 error_reporting (E_ALL); 52 parent::BiffBase(); 53 $this->_fill_AA_notati

RE: [PHP] Output Buffering - Am I using it correctly?

2002-09-25 Thread Beau Hartshorne
> Can you get the server to write it to a file, and then let the client > download the file normally? > [/snip] > > Believe me, if I could have taken that way out I would have done it. I am > researching some classes, but they all seem to take just as long to create > the spreadsheet. What about

Re: [PHP] Re: Cronjob

2002-09-25 Thread Daren Cotter
This just prints out a bunch of info (seems to be unimportant)...what am I looking for in this? --- Don Read <[EMAIL PROTECTED]> wrote: > > On 25-Sep-2002 Daren Cotter wrote: > > Holy wowsers...about 5 pages of jibberish printed > out, > > and at the end: > > > > Warning: Nesting level too dee

Re: [PHP] Re: Cronjob

2002-09-25 Thread Don Read
On 25-Sep-2002 Daren Cotter wrote: > Holy wowsers...about 5 pages of jibberish printed out, > and at the end: > > Warning: Nesting level too deep - recursive > dependency? in test.php on line 3 > > There isn't even a line 3 in the script: > > var_dump($argv); > var_dump($GLOBALS); > ?> > S

[PHP] Re: hidden PATH_INFO

2002-09-25 Thread Joel Boonstra
> Hi there. I'm trying to come up with a way to do > PATH_INFO urls without having to call a script. Let me > explain. > > I know how to make it work with a url like this: > > http://foo.com/bar.php/arg1/arg2/etc > > or even: > > http://foo.com/bar/arg1/arg2/etc > > What I'm trying to figure out i

Re: [PHP] Re: Cronjob

2002-09-25 Thread Daren Cotter
Holy wowsers...about 5 pages of jibberish printed out, and at the end: Warning: Nesting level too deep - recursive dependency? in test.php on line 3 There isn't even a line 3 in the script: --- Don Read <[EMAIL PROTECTED]> wrote: > > On 25-Sep-2002 Daren Cotter wrote: > > Jason, > > > > Th

[PHP] PHP and M$ Access

2002-09-25 Thread Reuben D. Budiardja
Hello, Sorry if this seems like a dumb question. But can PHP work with MS Access, for example if I want to develop a web database application? Does the API exist for that? The system is going to be like Linux/Apache/PHP as the web server, and Win2k/NT with M$ Access as the database. I am wonde

Re: [PHP] Re: Cronjob

2002-09-25 Thread Robert Cummings
Daren Cotter wrote: > > In any case, register_globals is ON for my server. > > I don't understand why this isn't working? I'm doing > exactly what the manual says. What could I be missing? No idea the following worked as expected for me: Script: Execute: php foo.php blah Output: X-Powered-B

Re: [PHP] Re: Cronjob

2002-09-25 Thread Don Read
On 25-Sep-2002 Daren Cotter wrote: > Jason, > > That's exactly what I'm trying to do, and it's not > working: > > My Script: >#!/usr/bin/php -f > $test = $argv[1]; > print $test; > $demo = "This Works"; > print $demo; > ?> > > Running: > ./test.php blah > > Yiels only "This Works", but not

RE: [PHP] Output Buffering - Am I using it correctly?

2002-09-25 Thread Jay Blanchard
[snip] I am researching some classes [/snip] OK. One of the silly classes fails, saying -- Fatal error: No parent class available in this context in biff.php on line 52 line 52 is -- 49 function BiffWriter() 50 { 51 error_reporting (E_ALL); 52 parent::B

Re: [PHP] Re: Cronjob

2002-09-25 Thread Daren Cotter
In any case, register_globals is ON for my server. I don't understand why this isn't working? I'm doing exactly what the manual says. What could I be missing? --- Robert Cummings <[EMAIL PROTECTED]> wrote: > Nope, $GLOBALS remains as always... > > > http://www.php.net/manual/en/language.va

Re: [PHP] Re: Cronjob

2002-09-25 Thread Robert Cummings
Nope, $GLOBALS remains as always... http://www.php.net/manual/en/language.variables.predefined.php#language.variables.superglobals Cheers, Rob. Jason Young wrote: > > Jeez.. pardon me.. $_GLOBALS .. I don't know where I got SERVER from.. > *sleeps before posting from now on* > > -J > >

Re: [PHP] Encrypt data...

2002-09-25 Thread Mike Dunlop
http://php.net/mcrypt >How do I encrypt the data and decrypt it back using PHP? I do know that hte >random number can not be used becuase it will make it impossible to decrypt >it. > >Thanks! > > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, visit: http://www.php.net/uns

[PHP] RE: ? (FIXED) (Errr... problem uploading files)

2002-09-25 Thread Jose Fandos
Hi there! > Hi - it seems from your PHPinfo output that you have not specified, in > your > PHP.ini file, a directory where the server can put the uploaded files. If > this is not specified by a system defaul, you need to specifiy it here. > This means that : they will disappear into oblivion (at

[PHP] Encrypt data...

2002-09-25 Thread Scott Fletcher
How do I encrypt the data and decrypt it back using PHP? I do know that hte random number can not be used becuase it will make it impossible to decrypt it. Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Cronjob

2002-09-25 Thread Jason Young
Jeez.. pardon me.. $_GLOBALS .. I don't know where I got SERVER from.. *sleeps before posting from now on* -J Jason Young wrote: > Correction.. isn't it $_SERVER and not $SERVER > > Jason Young wrote: > >> Daren, >> >> This post from Robert explains why you're having trouble :) >> >> I forgot

Re: [PHP] Re: Cronjob

2002-09-25 Thread Jason Young
Correction.. isn't it $_SERVER and not $SERVER Jason Young wrote: > Daren, > > This post from Robert explains why you're having trouble :) > > I forgot the PHP version on my machine doesn't have the register_globals > problem. > > THAT should work. > > -Jason > >> >> I'm think you're all fo

Re: [PHP] Re: Cronjob

2002-09-25 Thread Jason Young
Daren, This post from Robert explains why you're having trouble :) I forgot the PHP version on my machine doesn't have the register_globals problem. THAT should work. -Jason > > I'm think you're all forgetting about register_globals being off by > default these days... The following may hel

Re: [PHP] Re: Cronjob

2002-09-25 Thread Daren Cotter
Robert, This does not work, but thanks anyway =) Script: Command Line: /usr/bin/php -f test.php blah Output: This Works --- Robert Cummings <[EMAIL PROTECTED]> wrote: > Jason Young wrote: > > > > I can't say I'm really too familiar with the php > commandline.. > > > > You're using /usr/b

[PHP] dynamic website

2002-09-25 Thread Donahue Ben
I have a general question of a dynamic website using PHP4 and mysql database. If there are many, many users visiting a dynamic website at once, will it cause the database to be bogged down with so many users visiting the website? If so, how do you around this problem. Thanks, Ben

Re: [PHP] Re: Cronjob

2002-09-25 Thread Daren Cotter
I'm using a PHP script. I got a PHP script to run mysql queries no problem, but the trouble is I need to pass off arguments to the script (those arguments shape the queries). --- Mike Dunlop <[EMAIL PROTECTED]> wrote: > Darren, > > Do you want to use a shell script or a php page to > run your qu

Re: [PHP] Re: Cronjob

2002-09-25 Thread Daren Cotter
Jason, That's exactly what I'm trying to do, and it's not working: My Script: #!/usr/bin/php -f Running: ./test.php blah Yiels only "This Works", but not "blah". I'm using version 4.0.6 --- Jason Young <[EMAIL PROTECTED]> wrote: > I can't say I'm really too familiar with the php > command

RE: [PHP] Output Buffering - Am I using it correctly?

2002-09-25 Thread Jay Blanchard
[snip] > I guess that this means I am out of luck here. Anyone know a cleaner > method for delivering spreadsheets? Can you get the server to write it to a file, and then let the client download the file normally? [/snip] Believe me, if I could have taken that way out I would have done it. I am

Re: [PHP] Re: Cronjob

2002-09-25 Thread Robert Cummings
Jason Young wrote: > > I can't say I'm really too familiar with the php commandline.. > > You're using /usr/bin/php (or equivalent) and attempting to use your > exec() that way? > > If you do 'php -?' you'll get a list of commands that you can use, and I > don't see a way to pass cmdline argume

RE: [PHP] Output Buffering - Am I using it correctly?

2002-09-25 Thread Beau Hartshorne
> I guess that this means I am out of luck here. Anyone know a cleaner > method for delivering spreadsheets? Can you get the server to write it to a file, and then let the client download the file normally? Beau -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:/

Re: [PHP] Re: Cronjob

2002-09-25 Thread Mike Dunlop
Darren, Do you want to use a shell script or a php page to run your queries? - MD >Jason, > >I'm not using a web script any longer, I'm using >command-line (I determined that it is installed on the >server). > >I read about $argc and $argv, but when I call the >script passing two arguments, b

Re: [PHP] Re: Cronjob

2002-09-25 Thread Jason Young
I can't say I'm really too familiar with the php commandline.. You're using /usr/bin/php (or equivalent) and attempting to use your exec() that way? If you do 'php -?' you'll get a list of commands that you can use, and I don't see a way to pass cmdline arguments as variables.. Having said th

Re: [PHP] Explorer-like "drill down" interface

2002-09-25 Thread Mike Dunlop
I would recommend using javascript for the expanding/contracting list stuff and I don't know of any vulnerablilities in MySQL Server... - Mike D >I have two questions: > >1. I would like to build a php page that contains a Windows >explorer-like drill down mechanism, where clicking the '

Re: [PHP] Explorer-like "drill down" interface

2002-09-25 Thread Bill Farrell
Hi Richard, There are a couple out there... I created one for myself (V1."un") that does something similar... It relies on a couple of support files for mime-types and icons. Here's the code... if you like the idea, I can zip up the icons and extension-to-mime folders and send it to ya. My web

[PHP] Explorer-like "drill down" interface

2002-09-25 Thread Richard Fox
I have two questions: 1. I would like to build a php page that contains a Windows explorer-like drill down mechanism, where clicking the '+' beside an item will expand the sub-items below (which can also have a '+' or '-' on the left) and clicking the '-' will collapse the item. Is there any e

Re: [PHP] Re: Cronjob

2002-09-25 Thread Daren Cotter
Jason, I'm not using a web script any longer, I'm using command-line (I determined that it is installed on the server). I read about $argc and $argv, but when I call the script passing two arguments, both $argc and $argv are blank. Is this a php.ini setting I need to change or somethign? --- Ja

Re: [PHP] Re: Cronjob

2002-09-25 Thread Jason Young
Sorry to butt in :) Arguments to web scripts are done in the format: page.php?arg1=data1&arg2=data2 So you would use that full string as the lynx path. Hope this helps :) -Jason Daren Cotter wrote: > Thanks for the info Chris, it works! > > How do I pass arguments to the script? I'm assuming

RE: [PHP] Output Buffering - Am I using it correctly?

2002-09-25 Thread Jay Blanchard
[snip] Output buffering is doing nothing for you in the given example. It does not reduce client side resources... if anything it increases the usage serverside resources. Perhaps you are thinking of gz compression? You might use a combination of ob* functions and gz* functions to minimize band

Re: [PHP] Re: Cronjob

2002-09-25 Thread Daren Cotter
Thanks for the info Chris, it works! How do I pass arguments to the script? I'm assuming it'd just be: test.php arg1 arg2 The stuff I've read says $argc should be the count of the # of arguments, and $argv should be an array holding them...but when I do a simple: print "# of Arguments: $argc\n"

Re: [PHP] Output Buffering - Am I using it correctly?

2002-09-25 Thread Kevin Stone
Output buffering is doing nothing for you in the given example. It does not reduce client side resources... if anything it increases the usage serverside resources. Perhaps you are thinking of gz compression? You might use a combination of ob* functions and gz* functions to minimize bandwidth r

RE: [PHP] Cronjob

2002-09-25 Thread John Holmes
Use lynx or wget to call your web page. lynx --dump http://www.domain.com/my_cron_page.php ---John Holmes... > -Original Message- > From: Daren Cotter [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, September 25, 2002 12:36 PM > To: PHP General Mailing List > Subject: [PHP] Cronjob > > I

Re: [PHP] Re: Cronjob

2002-09-25 Thread Philip Hallstrom
-dump is an option to lynx to tell it to output the page and quits. the rest of it says send all output (and errors) to /dev/null On Wed, 25 Sep 2002, Daren Cotter wrote: > What does the "-dump" and ">/dev/null 2>&1" stuff do? > > --- Philip Hallstrom <[EMAIL PROTECTED]> wrote: > > You could se

Re: [PHP] Re: Cronjob

2002-09-25 Thread Chris Hewitt
> > >On Wed, 25 Sep 2002, Daren Cotter wrote: > >> >>My problem, is that I absolutely NEED to run a PHP >>script using crontab. The script needs to send >>numerous queries to a database every hour. Is there >>any way I can accomplish this, directly or indirectly? >> Are you sure its not already th

Re: [PHP] Re: Cronjob

2002-09-25 Thread Daren Cotter
What does the "-dump" and ">/dev/null 2>&1" stuff do? --- Philip Hallstrom <[EMAIL PROTECTED]> wrote: > You could setup cron to run lynx or some other > command line web browser... > something like: > > 0 * * * * /path/to/lynx -dump > http://server/path/to/script.php >/dev/null 2>&1 > > Then as

Re: [PHP] Fw: Speed of the PHP Parser MySQL vs. textfiles

2002-09-25 Thread Holger Heinze, Portalmeister GmbH
Hi, apologies for the confirmation, didn't even know it was set on this Computer (not my own) until I got it myself. I hate it =) Sorry again, Holger -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Fw: Speed of the PHP Parser MySQL vs. textfiles

2002-09-25 Thread Holger Heinze, Portalmeister GmbH
Hi people, maybe someone here has experience with this question: We have to create a CMS System for beginners. For storing data, we have 3 possibilities: 1. Store Data in MySQL, query the database, inlcude the dynamic content via php. echo $mysqldata[headline]."\n"; --

RE: [PHP] Time is off?

2002-09-25 Thread Jon Haworth
Hi Brandon, > I did a basic script and the > time is off in that script [...] I have checked the > server time and the server hardware clock. Well, date("h:I") means "display the hours (in 12-hour format), followed by a colon, followed by a 1 or a 0 depending on whether daylight saving is i

[PHP] Output Buffering - Am I using it correctly?

2002-09-25 Thread Jay Blanchard
Howdy group! I am outputting a rather large data set to an Excel spreadsheet from a MySQL database on a healthy FreeBSD server. The Apache server is on the same server as the database. The code looks like this Now, even though I have set ob_start() the headers get sent (as it says in the d

[PHP] Re: Cronjob

2002-09-25 Thread Philip Hallstrom
You could setup cron to run lynx or some other command line web browser... something like: 0 * * * * /path/to/lynx -dump http://server/path/to/script.php >/dev/null 2>&1 Then as the first thing in that script you will probably want to set the time limit to 0 so it doesn't time out... On Wed,

FW: RE: [PHP] where's waldo

2002-09-25 Thread Kevin Porter
I received this shortly after posting to this list. Anyone else get one of these? I'm confused... thanks, - Kev > -Original Message- > From: [EMAIL PROTECTED] > [SMTP:[EMAIL PROTECTED]] > Sent: 25 September 2002 17:10 > To: [EMAIL PROTECTED] > Subject: Re: RE: [PHP] where's wald

[PHP] Cronjob

2002-09-25 Thread Daren Cotter
I have PHP installed on a Cobalt RaQ550. I know there are two ways of installing PHP, one as a binary, and one as an Apache module. I am pretty sure PHP gets installed as an Apache module for the Cobalt installation. My problem, is that I absolutely NEED to run a PHP script using crontab. The scr

[PHP] Time is off?

2002-09-25 Thread Brandon Orther
Hello, I am trying to figure out why Squirrel Mail is giving the wrong time. I did a basic script and the time is off in that script too. I have checked the server time and the server hardware clock. They are both on. Does anyone know a reason that the php time would be off? I am thinking

Re: [PHP] authenticating and redirecting with special access

2002-09-25 Thread Bryan Koschmann - GKT
Chris, That is a very good point. As stupid as it sounds, I forgot about the include() statement (still new I guess, not used to all this extra cool stuff!). When I was suggesting the .htaccess, I was thinking more of the "require valid-user" and thinking maybe the php could tell it whether it i

Re: [PHP] where's waldo

2002-09-25 Thread @ Edwin
Good idea! And your idea about this is also great: It should work... I forgot that there was someting like that in HTML... :) - E On Thursday, September 26, 2002 12:55 AM Subject: RE: [PHP] where's waldo Kevin Porter wrote: > One more thing... if you store your 'waldo co-ordinates' data i

Re: [PHP] replacing literal " in string

2002-09-25 Thread Kevin Stone
Robert, That str_replace() you wrote should work. But you might also try these variations.. $key = str_replace('"', '', $key); $key = str_replace(chr(34), '', $key); Good luck, Kevin - Original Message - From: "ROBERT MCPEAK" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesda

RE: [PHP] where's waldo

2002-09-25 Thread Kevin Porter
One more thing... if you store your 'waldo co-ordinates' data in a text file, make sure it is in a directory outside of the webtree... - Kev > -Original Message- > From: Kevin Porter [SMTP:[EMAIL PROTECTED]] > Sent: 25 September 2002 16:52 > To: '@ Edwin'; Marek Kilimajer > Cc: [EMAI

Re: [PHP] where's waldo

2002-09-25 Thread @ Edwin
True. Perhaps. But, I think, you can actually do something like that WITH php. Say PHP+Flash or PHP+Javascript... Of course, if you're able to do something like this just by using PHP+Javascript (and HTML only), most probably, you can just take a peek at the code and find out where "waldo" is...

RE: [PHP] Stress Test Script?

2002-09-25 Thread Jon Haworth
Hi Jay, > Does anyone have a good php script that will > test (i.e. benchmark) my MySQL machine and my > Web server? Give ab a go - it comes with Apache, you should find it in your bin/ directory. "man ab" for all the gory details. Cheers Jon -- PHP General Mailing List (http://www.php.net

RE: [PHP] Set a default global - $_GET[]

2002-09-25 Thread John Holmes
> How do i set a default value for a url parameter ($_GET[".."]) in PHP 4.1? > I currently have a class that sets a default global value but this does > not > work in this version - the script displays an error if no url value is > passed in the url. if(!isset($_GET['...'])) { $_GET['...'] == "de

Re: [PHP] where's waldo

2002-09-25 Thread Marek Kilimajer
This is for java, javascript, or flash, not much to do for php. Kenneth Love wrote: >hi all. > >i'm interested in creating a php game that generates a page of random (ish) >images, one of which is waldo (or the like). when the player clicks on >waldo, they're taken to the next, slightly harder l

[PHP] Stress Test Script?

2002-09-25 Thread Jay
Does anyone have a good php script that will test (i.e. benchmark) my MySQL machine and my Web server? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Set a default global - $_GET[]

2002-09-25 Thread Patrick Lebon
How do i set a default value for a url parameter ($_GET[".."]) in PHP 4.1? I currently have a class that sets a default global value but this does not work in this version - the script displays an error if no url value is passed in the url. Thanks -- PHP General Mailing List (http://www.php.n

[PHP] pdflib output reolution higher than 72 dpi possible?

2002-09-25 Thread andy
Hi there, I would like to output a pdf with pdflib with 300 dpi How could I define the output resolution? Default seems to be 72 dpi Thanx for any hint, Andy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] where's waldo

2002-09-25 Thread Kenneth Love
hi all. i'm interested in creating a php game that generates a page of random (ish) images, one of which is waldo (or the like). when the player clicks on waldo, they're taken to the next, slightly harder level. anyone think that sounds fun? any pointers, tips, advice, criticisms? -- ->-> http:

Re: [PHP] pretty simple problem in mailing a dynamic page

2002-09-25 Thread Justin French
Multipart Mime messages... you can't just put HTML source in an email... See Manuel's class on phpclasses.org for Regards, Justin French on 26/09/02 3:04 AM, usha ([EMAIL PROTECTED]) wrote: > I just want to email a dynamic page ( So I designed a page consisting of > datas pulled from db and

[PHP] Question

2002-09-25 Thread Roman Duriancik
I have variables $sk1,$fr2,$fr3,$sk4, how i write values in this variables in statement for... roman -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Authentication on NT??

2002-09-25 Thread Per Lundkvist
Hi I have installed PHP on a Windows NT Server 4.0 and it works (almost) fine! The thing is that I get the "Enter network password" - prompt when I first go to a PHP-file. Not if I go to an ASP file. So if I just hit enter in the prompt, I get in to the PHP-page and can continue surfing. I guess

  1   2   >