[PHP] The LFReD Project goes open source.

2002-03-30 Thread Terry Brownell
Hello all, The LFReD Project has gone open source. LFReD is the award winning language processing intelligent agent. First release is a PHP conceptual knowledge base. https://sourceforge.net/projects/lfred/ http://www.LFReD.com Terry Brownell -- PHP General Mailing List

[PHP] anytext Question

2002-03-30 Thread Sebastian A.
I am trying to use anytext in an object but I am having a number of problems. anytext does not seem to work if it is indented. If I un-indent anytext and the text between it, it works perfectly. Does anyone know what could be causing this error? I can give you a sample of my code if it would

Re: [PHP] anytext Question

2002-03-30 Thread Miguel Cruz
On Sat, 30 Mar 2002, Sebastian A. wrote: I am trying to use anytext in an object but I am having a number of problems. anytext does not seem to work if it is indented. If I un-indent anytext and the text between it, it works perfectly. Does anyone know what could be causing this error? I can

[PHP] changing the color from black to blue on an image. Help on imagecolorset.

2002-03-30 Thread Andy
Hi there, I would like to change the color on a png file from black to blue. This png file is transparent and contains only a spot which is black. It is needed to stay transparent because I am gonna merge it later on with a jpeg. I tryed imagecolorset but anyhow I do not understand the syntax.

Re: [PHP] changing the color from black to blue on an image. Helpon imagecolorset.

2002-03-30 Thread bvr
first: http://www.php.net/manual/en/function.imagefill.php $col = imagecolorallocate($im, 51, 51, 204); then: ImageFill http://www.php.net/manual/en/function.imagefill.php($im, $x, $y, $col); or ImageSetPixel($im, $x, $y, $col); bvr. Andy wrote: Hi there, I would like to change the

[PHP] .::. THIS IS WHAT YOU'VE ALL BEEN WAITING FOR .::.

2002-03-30 Thread Vins
1 Dollar = 10 South African Rands for the best prices in the world www.auction4sale.co.za CHECK IT. Stand a chance to win a new cell phone when you register and sell something. Once you've added your auction, tell all your friend about it. You are also added to the competition when you bid

[PHP] www.auction4sale.co.za

2002-03-30 Thread Vins
www.auction4sale.co.za -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Qmail Question

2002-03-30 Thread Vins
I have qmail on my server. I've set up and email address to send all incoming mail to a php script. How would I break down the message and read the to field and the from field etc. where can i find information on that ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] class extends

2002-03-30 Thread caspar kennerdale
can you use class extends feature to refernce more than one class- so a class called contnet could call functions fromone called html and one called db? thanks in advance -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Qmail Question

2002-03-30 Thread caspar kennerdale
after your last two spams I'd be surprised if anyone would be will to answer your questions -Original Message- From: Vins [mailto:[EMAIL PROTECTED]] Sent: 30 March 2002 10:15 To: [EMAIL PROTECTED] Subject: [PHP] Qmail Question I have qmail on my server. I've set up and email address to

[PHP] php configs in the apache config file?

2002-03-30 Thread Robert Montgomery
Supposedly, in your apache httpd.conf file you can specify php config values. I'm trying to shore up security on a new box by setting the following within VirtualHost tags: php_value open_basedir /path/to/virtualhost/ However, it doesnt work. If I set the values in the php.ini file, it DOES

Re: [PHP] php configs in the apache config file?

2002-03-30 Thread bvr
It doesn't work with CGI installations of PHP. bvr. Robert Montgomery wrote: Supposedly, in your apache httpd.conf file you can specify php config values. I'm trying to shore up security on a new box by setting the following within VirtualHost tags: php_value open_basedir

Re: [PHP] Qmail Question

2002-03-30 Thread bvr
This is what you've been waiting for: F@#$CK OFF! bvr. Vins wrote: I have qmail on my server. I've set up and email address to send all incoming mail to a php script. How would I break down the message and read the to field and the from field etc. where can i find information on that ?

Re: [PHP] class extends

2002-03-30 Thread bvr
Read http://www.php.net/manual/language.oop.php bvr. caspar kennerdale wrote: can you use class extends feature to refernce more than one class- so a class called contnet could call functions fromone called html and one called db? thanks in advance -- PHP General Mailing List

Re: [PHP] Security hole using cookies for sessions. Workaround?

2002-03-30 Thread bvr
Three tips: - Let the session expire after X secs. - Use BODY's ONUNLOAD attribute/JS event handler - Provide a 'Logout' button. bvr. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] SPAM

2002-03-30 Thread Vins
Lets define that Large quantities of email sent to large ammounts of email address at one time. I posted 2 messages. You people take everything too seriously. I'm sure you've also doen it once in you life before. And a message for bvr and caspe kennerdale. You are obviousely Americans

[PHP] Has anyone written such a function?

2002-03-30 Thread Boaz Yahav
Hi I need a function that will get a date in the past and return how much time has passed since that date till now. The input to the function is a MySQL DATETIME format and the output should be something like : 2 Years, 36 Days, 7 hours , 25 minutes I would write it but I'm pretty sure it has

[PHP] Not to harp the subject Vins

2002-03-30 Thread anti-blank
But actually be it one email, two emails or 1000 emails what you did really is considered spam. spam 1. messaging (From Hormel's Spiced Ham, via the Monty Python Spam song) To post irrelevant or inappropriate messages to one or more Usenet newsgroups, mailing lists, or other messaging system

RE: [PHP] banner ads

2002-03-30 Thread Boaz Yahav
What about phpAdsNew? http://www.phpadsnew.com Sincerely berber Visit http://www.weberdev.com Today!!! To see where PHP might take you tomorrow. -Original Message- From: tom hilton [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 13, 2002 11:11 PM To: [EMAIL PROTECTED]

[PHP] Exec command problems

2002-03-30 Thread Georgie Casey
when i try to execute a program, PHP just stalls there for ages, my page doesnt load or anything. the program is a dos pogram, i pass variables thru d command line and when the program runs it just returns 1 line of output and stops. WHATS D PROBLEM? btw, i first get PHP to write a text file and

[PHP] SPAM or ADVERTISING

2002-03-30 Thread Alienator
once apon a time there was a South African online company called EasyInfo.co.za. have a look, www.easyinfo.co.za, the pulled a stunt and stoll all the unlisted numbers from the local telephone company telkomsa www.telkom.co.za. turns out, after the big court case they are now getting 3 times more

RE: [PHP] Dynamic Web Navigation

2002-03-30 Thread Boaz Yahav
http://www.weberdev.com Check out the Articles / Tutorials Sincerely berber Visit http://www.weberdev.com Today!!! To see where PHP might take you tomorrow. -Original Message- From: Omland Christopher m [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 12, 2002 6:43 PM To:

Re: [PHP] Qmail Question

2002-03-30 Thread bvr
I'm west-european, and I don't want to fuck with you and I don't know what it's like.. THANKS AGAIN. bvr. Vins wrote: Listen here. I'm south african. You wouldn't want to fuck with. I'm sure you know what we all are like. Watch what you say - Original Message - From: bvr [EMAIL

Re: [PHP] SPAM

2002-03-30 Thread bvr
Yeah, pretty obvious .. you must have figured that from the .NL extension to my e-mail address.. Lemme guess, .ZA that's Japan nie waar nie ?? You are obviously not an expert so don't make us filthen this list with (anti-)SPAM messages and stupid off-topic definitions. THANKS! bvr. Vins

Re: [PHP] SPAM

2002-03-30 Thread vins
oh dam and American that can actually speak some Traditional Afrikaans that makes absolutely no sense. listen check the south african afrikaans gramma website before trying to message me with shit like that Bvr [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

RE: [PHP] SPAM

2002-03-30 Thread caspar kennerdale
And a message for bvr and caspe kennerdale. You are obviousely Americans setting the record straight- this is a huge assumption- and I'm not american, and you didnt even spell my name correctly! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] SPAM

2002-03-30 Thread vins
well, lets just clasify that as a dis to your name Caspar Kennerdale [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... And a message for bvr and caspe kennerdale. You are obviousely Americans setting the record straight- this is a huge assumption- and I'm

Re: [PHP] Qmail Question

2002-03-30 Thread vins
well. just a small translation... i will climb through my monitor and out yours and beat the living shit out of you Bvr [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I'm west-european, and I don't want to fuck with you and I don't know what it's like..

Re: [PHP] SPAM

2002-03-30 Thread bvr
WHEN DOES IT GET TO YOUR BRAIN that i'm not American.. grammatica hulp is niet nodig, ik spreek *echt* nederlands ;) bvr. oh dam and American that can actually speak some Traditional Afrikaans that makes absolutely no sense. listen check the south african afrikaans gramma website

[PHP] RE: oh no

2002-03-30 Thread caspar kennerdale
and what of it -Original Message- From: Vincent Kruger [mailto:[EMAIL PROTECTED]] Sent: 30 March 2002 14:08 To: caspar kennerdale Subject: oh no you a fucking pommy. god dam

Re: [PHP] banner ads

2002-03-30 Thread vins
phpadsnew is good. well developed program and it's making me tons of cash Boaz Yahav [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... What about phpAdsNew? http://www.phpadsnew.com Sincerely berber Visit http://www.weberdev.com Today!!! To see where

[PHP] SPAM SPAM SPAM

2002-03-30 Thread vins
SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM love it. cheerz all -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] SPAM SPAM SPAM

2002-03-30 Thread Duncan Hill
On Sat, 30 Mar 2002, vins wrote: SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM *plonk* -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] SPAM or ADVERTISING

2002-03-30 Thread Matt Friedman
So the end justifies the means is what you are saying. Using an example of someone who got what they wanted through devious and dishonest actions as a justification for your actions is a demonstration of your warped ideas of what is ok and what is not. Spammers do not get it. They're only out

[PHP] please /ignore childish spammer (Auction for sale)

2002-03-30 Thread bvr
I'm sorry, I made a mistake even responding to this person and with that annoyed lots of people on this list and wasted my time. Now we're running the risk that he will turn into a spoiler which can be pretty bad on an unmoderated list.. Therefore I'll stop replying to his messages (including

[PHP] GOOD, now that we've all stopped our pettiness including me, back to qmail

2002-03-30 Thread vins
I need help with qmail could anyone help me? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Not a valid MySQL resource?

2002-03-30 Thread Brian Waskiewicz
Can anyone tell me what is causing the following error: Warning: Supplied argument is not a valid MySQL result resource in /ip/sums/www/test/admin/mailing_list.phtml on line 123 The page will work fine one time, then I'll come back later and get the error. I won't change anything, but the page

php-general Digest 30 Mar 2002 16:50:10 -0000 Issue 1257

2002-03-30 Thread php-general-digest-help
php-general Digest 30 Mar 2002 16:50:10 - Issue 1257 Topics (messages 90744 through 90791): Re: Processing Code created on the fly 90744 by: Jason Wong 90745 by: Jonathan Duncan 90749 by: Miguel Cruz 90750 by: Jason Wong Re: gettext functionality needs

Re: [PHP] Not a valid MySQL resource?

2002-03-30 Thread Rasmus Lerdorf
Always always always check your queries for errors before trying to use the result set. ie. $result = mysql_query($sql) or die(mysql_error()); (assuming you want a query failure to be a fatal error) -Rasmus On Sat, 30 Mar 2002, Brian Waskiewicz wrote: Can anyone tell me what is causing

[PHP] PHP 4.2.ORC1 - SID gets deleted

2002-03-30 Thread Carsten Saathoff
Hi, I'm not sure where to post this, neither if I should report this as a bug, because I'm not sure if it is one at all. I installed php 4.2 ORC1 lately and encountered a strange session problem. The following script reproduces this problem: ?php session_start(); echo a

Re: [PHP] Not a valid MySQL resource?

2002-03-30 Thread Brian Waskiewicz
My page works fine from other computers - it just doesn't work from mine. I think it could be that the page is caching and IE6 isn't getting a new copy. How can I prevent it frlom caching? I've tried clearing my history, but I still get the error. Thanks. Rasmus Lerdorf [EMAIL PROTECTED] wrote

Re: [PHP] Some Problems that Newman has with PHP since reinstall.

2002-03-30 Thread Jason Wong
On Saturday 30 March 2002 14:26, Philip J. Newman wrote: Hi People, I just installed PHP again, and am having some problems with a few things. When Posting to a form, veriables do not travel across the pages. I have checked the PHP.INI for something but nothing seems to change this. Is it

Re: [PHP] Not a valid MySQL resource?

2002-03-30 Thread Jason Wong
On Sunday 31 March 2002 02:02, Brian Waskiewicz wrote: My page works fine from other computers - it just doesn't work from mine. I think it could be that the page is caching and IE6 isn't getting a new copy. How can I prevent it frlom caching? I've tried clearing my history, but I still get

[PHP] Re: Has anyone written such a function?

2002-03-30 Thread Hugh Bothwell
(shrug) convert to unixtime, subtract, and reformat In fact, you could do the conversion and subtraction in your SQL query, returning just 'elapsed seconds since date', and reformat from there. I need a function that will get a date in the past and return how much time has passed since that

[PHP] Re: changing the color from black to blue on an image. Help on imagecolorset.

2002-03-30 Thread Hugh Bothwell
Andy [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi there, I would like to change the color on a png file from black to blue. This png file is transparent and contains only a spot which is black. It is needed to stay transparent because I am gonna merge

[PHP] Re: problems trying to use PHP to choose CSS

2002-03-30 Thread Hugh Bothwell
I am trying this method: Register a global variable ($CSS) using a FORM. [snip] I wonder if I am not doing something stupid/overlooking something obvious, but I am very new PHP so that is possible. // in my global PHP file // Now what I am trying to do here is set a default that should

[PHP] Re: Nead Help With A Php Script

2002-03-30 Thread Hugh Bothwell
I need a php script that checks if the there is a cookie set with the users username and if not it brings you to an other page and telling you that you are not loged in! (a) Don't cross-post all over. (b) Cookies 'automagically' become global variables, so a simple version is

Re: [PHP] php configs in the apache config file?

2002-03-30 Thread Robert Montgomery
OK, I've figured it out. Apparantly when setting php vars in an apache config file, you HAVE to use the form php_admin_value as opposed to just php_value. Some of the php documentation is vague or even misleading, such as this example from the online docs, which does not use the form

[PHP] Re: Nead Help With A Php Script

2002-03-30 Thread Hugh Bothwell
Aaargh! typo... if(!session_is_registered(username)) ])) { should be if(!session_is_registered(username)) { -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Some Problems that Newman has with PHP since reinstall.

2002-03-30 Thread Philip J. Newman
Still didn't work, found the problem thoe. it was a file I never put into my system32 folder (o; Thanks for your help.s - Original Message - From: Jason Wong [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, March 31, 2002 6:10 AM Subject: Re: [PHP] Some Problems that Newman has

[PHP] Any easy way to go from MySQL Dates to PHP dates?

2002-03-30 Thread David Johansen
I was just wondering if there's any way to work with dates returned from a MySQL query in PHP. Right now I do all of different stuff in my MySQL query but it's really cumbersome, so I would like to be able to do it all with PHP. Is there any way to do that? Thanks, Dave Here's my MySQL query:

Re: [PHP] Image manipulation with PHP on RHLinux 7.1

2002-03-30 Thread Dale Lora Marshall
Ok, I've been looking at the image functions, and found that I needed to recompile PHP with exif support and load GD and other functions. I've done all of that and now I get the following: Source: /home/jamboimages/images/uploads/alamoarea_97_round_sm.jpg 600 : /images/patches/1997/1997R15.jpg

Re: [PHP] Any easy way to go from MySQL Dates to PHP dates?

2002-03-30 Thread Jason Wong
On Sunday 31 March 2002 04:04, David Johansen wrote: I was just wondering if there's any way to work with dates returned from a MySQL query in PHP. Right now I do all of different stuff in my MySQL query but it's really cumbersome, so I would like to be able to do it all with PHP. Is there

[PHP] Tracking impressions

2002-03-30 Thread David Duong
Hello, I need a script that can track impressions through PHP. I know you load a php script from IMG tags than some how the image is loaded or redirected. Is their a way I can record impressions and environment variables like IP, Browser, referrer, etc. -- PHP General Mailing List

[PHP] time question

2002-03-30 Thread anders nawroth
How do I get the current time() for Central European Time (= GMT +01:00). I want it to work wherever the server stands. How can I get the difference between server time and GMT, for instance? A. Nawroth -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] time question

2002-03-30 Thread J. Scott Johnson
Why wouldn't you use gmdate: http://www.php.net/manual/en/function.gmdate.php and then increment it yourself by an offset? Scott -Original Message- From: anders nawroth [mailto:[EMAIL PROTECTED]] Sent: Saturday, March 30, 2002 5:05 PM To: [EMAIL PROTECTED] Subject: [PHP] time

[PHP] Php.ini

2002-03-30 Thread Chris Kay
Question I have is, Is it possible to specify a php.ini in each virtual host? That way allowing each website to run a different configuration. Cause I have a website that I want to use Session_set_save_handler = user but I want another website to use the default php Files handle. Also for

Re: [PHP] Re: Nead Help With A Php Script

2002-03-30 Thread Rasmus Lerdorf
(c) Obviously, this won't prevent someone from faking a username via the querystring, so you have to specify that it's a cookie: if(!isset($_COOKIE[username])) { header(Location: http://www.mysite.com/login.php;); exit; } Note that nothing prevents users

Re: [PHP] php configs in the apache config file?

2002-03-30 Thread Rasmus Lerdorf
OK, I've figured it out. Apparantly when setting php vars in an apache config file, you HAVE to use the form php_admin_value as opposed to just php_value. Some of the php documentation is vague or even misleading, such as this example from the online docs, which does not use the form

[PHP] register_globals

2002-03-30 Thread Liam
31/03/2002 9:05:53 AM Hi all, I'm running a webhosting service and I'm looking at security issues. at the moment I have register_globals set to on Is there any reason I should turn it off? What are the security risks of having them on? Cheers, Liam -- PHP General Mailing List

Re: [PHP] Image manipulation with PHP on RHLinux 7.1

2002-03-30 Thread Rasmus Lerdorf
exif_imagetype() is new function only available in PHP 4.2 (not released yet) and above. Use GetImageSize() for now. -Rasmus On Sat, 30 Mar 2002, Dale Lora Marshall wrote: Ok, I've been looking at the image functions, and found that I needed to recompile PHP with exif support and load GD

[PHP] Re: Why?

2002-03-30 Thread Michael Kimsal
Alberto Wagner wrote: Why everyone uses $foo or $foobar as examples? Why not? They are relatively benign words that are simply to type and aren't terribly language centric. $moo and $moocow would work just as well, or $asdf or $qwerty or others. As far as I know, they have no specific

[PHP] ZaireWeb

2002-03-30 Thread Liam
31/03/2002 9:26:46 AM You tool! Stop spying on my emails! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Php.ini

2002-03-30 Thread Jason Sheets
Look at chapter 3 of the PHP manual, it covers specifying PHP configuration in your http.conf or .htaccess files, you can do this per virtual host, per directory or however else you want to do it. Jason Chris Kay [EMAIL PROTECTED] wrote in message

[PHP] For Loop going too long

2002-03-30 Thread David Johansen
I have a question about something weird that I've noticed Here's some code that I have that loads up $sql = SELECT * FROM pickup_times WHERE DAYOFMONTH(time0_name) = $dayofmonth; $result = mysql_query($sql, $dbh); $day = mysql_fetch_array($result); for ($i=0; $isizeof($day); $i++)

[PHP] $HTTP_USER_AGENT

2002-03-30 Thread Sean Kennedy
Hello, Im making a small php script, but I need to know how to do something. My problem is: I have a script thats like this: ?php if ($HTTP_USER_AGENT == WHAT GOES HERE FOR IE AND NS?) { echo You have Internet Explorer; } else { echo You have Netscape; } ? Do you know

Re: [PHP] $HTTP_USER_AGENT

2002-03-30 Thread eric.coleman
Why not echo $HTTP_USER_AGENT and find out? - Original Message - From: Sean Kennedy [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, March 30, 2002 11:43 AM Subject: [PHP] $HTTP_USER_AGENT Hello, Im making a small php script, but I need to know how to do something. My

[PHP] RE: RE: $HTTP_USER_AGENT

2002-03-30 Thread Sean Kennedy
It prints out Mozilla/4.74 [en]C-CCK-MCD NS4xx/Winxx/EZN (Win95; U). Which part of that do i use? Thanks, -Sean Kennedy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] BUG in recursion

2002-03-30 Thread Uros Gruber
Hi! This is a code function Test() { static $count = 0; $count++; echo $count; if ($count 10) { Test (); } echo j; } test(); Output is 12345678910jj Why is there 10 j at the and. If this would work it can be only one. If $count is grater than 10 it

[PHP] Re: BUG in recursion

2002-03-30 Thread David Johansen
No it's right. Because $count will equal 10 and it'll print it out, the test will fail and then it'll trace the recursion back and print the j's. It would be a bug if it printed an 11, but it's right the way it is. Dave Uros Gruber [EMAIL PROTECTED] wrote in message [EMAIL

Re: [PHP] RE: RE: $HTTP_USER_AGENT

2002-03-30 Thread eric.coleman
try if( eregi(NS, $HTTP_USER_AGENT) ) { echo('You are using Netscape!'); } elseif( eregi('IE', $HTTP_USER_AGENT) ) { echo('Your using IE'); } else { echo('No Clue what the hell your using'); } - Original Message - From: Sean Kennedy [EMAIL PROTECTED] To: [EMAIL PROTECTED]

Re: [PHP] BUG in recursion

2002-03-30 Thread Lars Torben Wilson
On Sat, 2002-03-30 at 15:59, Uros Gruber wrote: Hi! This is a code function Test() { static $count = 0; $count++; echo $count; if ($count 10) { Test (); } echo j; } test(); Output is 12345678910jj Why is there 10 j at the and.

Re[2]: [PHP] BUG in recursion

2002-03-30 Thread Uros Gruber
Hi! This I simply don't understand why this code executes that way. So there is only inportant to put return after recursive call and it works like i wan't. I sometimes write small C programs and I don't remeber that code like this have to work that way Hm. -- bye, Uros

[PHP] Pulling data into an array and sorting

2002-03-30 Thread rdkurth
I need to pull data into and array from a mysql database and then sort that data according to one of the fields and then print it to the screen. Hear is an example of the data in the database username Pnumber sec2 sec3 sec4 sec5 sec6 Gary 123.345.122YES YES NO YES YES

[PHP] Disabling the Back Button?

2002-03-30 Thread David Johansen
OK, I basically just want to make it so that the user can't go back once they're done with an application form that I'm working on. I don't case if they go back in the middle and my page handles that just fine, but I want them to not be able to go back when they're all done. Is there some way

RE: [PHP] Pulling data into an array and sorting

2002-03-30 Thread Demitrious S. Kelly
Run a while loop on your data and pull it into an array Heres an example (though this pulls from a text file the idea is the same...) Hope this helps... ?php // READING THE DATA function read_data($datafile) { $data=file($datafile); foreach ( $data as $line ) {

RE: [PHP] Disabling the Back Button?

2002-03-30 Thread Demitrious S. Kelly
You could use sessions for the script... store a variable in the session when the page has been completed and make sure the script does not execute if the current session has the appropriate variable... -Original Message- From: David Johansen [mailto:[EMAIL PROTECTED]] Sent: Saturday,

[PHP] Another ?

2002-03-30 Thread Sean Kennedy
Hello, Whats the HTTP_USER_AGENT for opera? Thanks, -Sean Kennedy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: Re[2]: [PHP] BUG in recursion

2002-03-30 Thread Lars Torben Wilson
On Sat, 2002-03-30 at 16:16, Uros Gruber wrote: Hi! This I simply don't understand why this code executes that way. So there is only inportant to put return after recursive call and it works like i wan't. I sometimes write small C programs and I don't remeber that code like this have to

Re: [PHP] For Loop going too long

2002-03-30 Thread Lars Torben Wilson
On Sat, 2002-03-30 at 15:40, David Johansen wrote: I have a question about something weird that I've noticed Here's some code that I have that loads up $sql = SELECT * FROM pickup_times WHERE DAYOFMONTH(time0_name) = $dayofmonth; $result = mysql_query($sql, $dbh); $day =

Re[2]: [PHP] Pulling data into an array and sorting

2002-03-30 Thread rdkurth
Thank you for the response to my question unfortunately your answer just confused me even more. Saturday, March 30, 2002, 4:25:40 PM, you wrote: DSK Run a while loop on your data and pull it into an array DSK Heres an example (though this pulls from a text file the idea is the DSK

Re[4]: [PHP] BUG in recursion

2002-03-30 Thread Uros Gruber
Hi, Ok, no I understand why. So this explains why every function must have return. But how can i program for example one recursion or where to put return so that test would not be waiting for return but at the end of this recursion i would like to do something with that $count for example. Hmm

Re: [PHP] Another ?

2002-03-30 Thread eric.coleman
Probably Opera - Original Message - From: Sean Kennedy [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, March 30, 2002 12:28 PM Subject: [PHP] Another ? Hello, Whats the HTTP_USER_AGENT for opera? Thanks, -Sean Kennedy -- PHP General Mailing List

RE: [PHP] For Loop going too long

2002-03-30 Thread Demitrious S. Kelly
Try a foreach... it works well... -Original Message- From: Lars Torben Wilson [mailto:[EMAIL PROTECTED]] On Behalf Of Lars Torben Wilson Sent: Saturday, March 30, 2002 4:38 PM To: David Johansen Cc: [EMAIL PROTECTED] Subject: Re: [PHP] For Loop going too long On Sat, 2002-03-30 at

RE: Re[2]: [PHP] Pulling data into an array and sorting

2002-03-30 Thread Demitrious S. Kelly
Take a look at this: ?php $result = mysql_query(); while ( $data = mysql_fetch_array($result) ) { $pnumber=$data[Pnumber]; $ourdata[$pnumber][]=$data; } echo pre; foreach ( $ourdata as $data ) { foreach (

[PHP] A way to use WWW-Autorization

2002-03-30 Thread Alberto Wagner
I need a good autorizating script that works in any browser an apache server Alberto Tkz -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] mail() function.

2002-03-30 Thread Birtch, James
When I email using this function, the email which is received has the following content at the top of it... From: [EMAIL PROTECTED] Return-Path: [EMAIL PROTECTED] Message-ID: [EMAIL PROTECTED] X-OriginalArrivalTime: 31 Mar 2002 01:14:57.0786 (UTC) FILETIME=[790BEDA0:01C1D851] Any ideas on how

[PHP] Undefined variables

2002-03-30 Thread Ernesto
Hi, newbie here. I was erroneously using error_reporting=E_ALL ~E_NOTICE on my debug server. Now, I changed it to error_reporting=E_ALL and I can see lots of warnings about using undefined variables. So, if I don't want to see warnings all over the place, I have to check every variable with

Re: [PHP] Undefined variables

2002-03-30 Thread Lars Torben Wilson
On Sat, 2002-03-30 at 17:30, Ernesto wrote: Hi, newbie here. I was erroneously using error_reporting=E_ALL ~E_NOTICE on my debug server. Now, I changed it to error_reporting=E_ALL and I can see lots of warnings about using undefined variables. So, if I don't want to see warnings all over

Re: [PHP] Undefined variables

2002-03-30 Thread Shane Wright
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Not really. You either have to init your variables or turn off notices in error_reporting() (or otherwise suppress them; i.e. display_errors = off). initialising them with safe defaults is the thing to do - the point of the error is to warn

[PHP] Re: Disabling the Back Button?

2002-03-30 Thread Hugh Bothwell
You're asking the wrong question. 'Disabling the back button' changes the expected behaviour of the browser and as such is an *EVIL* thing to do, roughly on par with driving the wrong way down one-way streets or spray-painting your neighbor's cat. What you want is to 'prevent the user from

Re: [PHP] Undefined variables

2002-03-30 Thread Lars Torben Wilson
On Sat, 2002-03-30 at 17:43, Shane Wright wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Not really. You either have to init your variables or turn off notices in error_reporting() (or otherwise suppress them; i.e. display_errors = off). initialising them with safe defaults

Re: [PHP] Undefined variables

2002-03-30 Thread Shane Wright
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 sorry, didnt get that that was your prefered method - didnt mean to step on your toes :) S On Sunday 31 March 2002 2:50 am, Lars Torben Wilson wrote: On Sat, 2002-03-30 at 17:43, Shane Wright wrote: -BEGIN PGP SIGNED MESSAGE- Hash:

Re: [PHP] Tracking impressions

2002-03-30 Thread Miguel Cruz
On Sat, 30 Mar 2002, David Duong wrote: Hello, I need a script that can track impressions through PHP. I know you load a php script from IMG tags than some how the image is loaded or redirected. Is their a way I can record impressions and environment variables like IP, Browser, referrer,

[PHP] Sql results

2002-03-30 Thread Alberto Wagner
$Sql_Query_Login Returns an empty mysql array like: $Sql_Query_Login = Mysql_Query(SELECT Nome FROM users WHERE User = 'Anyone') There isn't a user if name Anyone... Why If (!$Sql_Query_Login) { Echo Ninguem; } Is returning False? -- PHP General Mailing List (http://www.php.net/) To

[PHP] MySQL Connection Error - mysql_select_db

2002-03-30 Thread Patrick Hartnett
here is a function used to authenticate users against mysql database. Problem is, I am not connecting for some reason. I have the db variables: $db_host $db_user $db_pass $db_name They are populated from an include (x.php) in the beginning of the php section. It is getting past the connect

[PHP] Re: ASP vs PHP

2002-03-30 Thread John Lim
Hello Ciro, For database access and automatic generation of forms, see http://phplens.com/ You can create search/edit/new record forms automatically through the web user interface with little coding. It also has a low level PHP interface for deep coding. This is a commercial product, developed

Re: [PHP] MySQL Connection Error - mysql_select_db

2002-03-30 Thread Alberto Wagner
31/03/2002 01:02:04, Patrick Hartnett [EMAIL PROTECTED] wrote: You Need to use the command Mysql_Select_Db($db_name) Or Die(Unable to connect!); after connect with mysql I use something like this: mysql_connect($db_host, $db_user, $db_pass) or die (Unable to connect!);

Re: [PHP] MySQL Connection Error - mysql_select_db

2002-03-30 Thread Tyler Longren
I don't think those variables are readable in the function. Not totally sure though. Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com - Original Message - From: Patrick Hartnett [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, March 30, 2002 10:02

Re: [PHP] mail() function.

2002-03-30 Thread Tyler Longren
Actually, that type of stuff is at the top of all e-mails. You'd always see it if you set your e-mail client to show you the headers. So, it may be something with your e-mail client. Can you provide the code you're using to send the e-mail? The mail() part would suffice. Tyler Longren

  1   2   >