Re: [PHP] Sql results

2002-03-30 Thread Miguel Cruz
On Sat, 30 Mar 2002, Alberto Wagner wrote: > But I Want a way to do something if there isn't any result > > 31/03/2002 01:52:10, Jason Wong <[EMAIL PROTECTED]> wrote: > > >On Sunday 31 March 2002 07:29, Alberto Wagner wrote: > >> $Sql_Query_Login Returns an empty mysql array like: > >> > >> $Sql

Re: [PHP] Re: Why?

2002-03-30 Thread andy thomas
On Sat, 30 Mar 2002, Michael Kimsal wrote: > 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

[PHP] Postgres question

2002-03-30 Thread Robert Abbate
Greetings to all! I have a webhosting company, and I'm trying to be able to use PHP to calculate each of my hosting customer's Postgres database disk usage. It doesn't seem as easy as MySQL (since MySQL uses the user name to store all their database files). Does anyone know how I can calculate P

Re: [PHP] Php.ini

2002-03-30 Thread Dennis Moore
I do not know about a separate php.ini file but you can assign specific values in your settings or you can set them using your .htaccess file pending on how you have set up your server. Assuming you are running Apache on a UNIX type machine ie php_value upload_max_filesize 500 go to ch

Re: [PHP] Case Statements - lil help please

2002-03-30 Thread Dennis Moore
Try the following... // check the error code and generate an appropriate error message switch($e) { case( -1): $message = "No such user."; break; case(0): $message = "Invalid username and/or password."; break; case(2): $message = "Unauthorized access

Re: [PHP] Sql results

2002-03-30 Thread Patrick Hartnett
use it after your query to see if there is a result set. Like follows: $result = mysql_query($query) or die ("Error in query: " . mysql_error()); // if row exists -> user/pass combination is correct if (mysql_num_rows($result) == 1) { return 1; }

Re: [PHP] Sql results

2002-03-30 Thread Jason Wong
On Sunday 31 March 2002 08:44, Alberto Wagner wrote: > But I Want a way to do something if there isn't any result mysql_num_rows() ? -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk /* The road to Hades is easy to travel. -- Bion */ -- PHP General Mailing List (ht

Re: [PHP] Sql results

2002-03-30 Thread Patrick Hartnett
try this, it sees if there is a result, and you can then proceed to do what you need to do. if (mysql_num_rows($result) == 1) //match found { //do something here; } // no match found else { //do something here;

Re: [PHP] Sql results

2002-03-30 Thread Alberto Wagner
But I Want a way to do something if there isn't any result 31/03/2002 01:52:10, Jason Wong <[EMAIL PROTECTED]> wrote: >On Sunday 31 March 2002 07:29, Alberto Wagner wrote: >> $Sql_Query_Login Returns an empty mysql array like: >> >> $Sql_Query_Login = Mysql_Query("SELECT Nome FROM users WHERE

[PHP] php form mail - what am I doing wrong?

2002-03-30 Thread lmlweb
I'm suffering eye fatique, and after reading the code for the maybe millionth of time, I still can't figure out what I'm doing wrong in this one. Ideally, you get to this registration form by clicking on a link in a previous page, so the registration form automatically enters in the event name. T

[PHP] Case Statements - lil help please

2002-03-30 Thread Patrick Hartnett
Are case statements not implemented in PHP4? If so, can someone help me debug this one, I seem to have some syntax incorrect, and am not sure what exactly is wrong with the statement. I get a parse error on the first line, but can't find any documentation on case statements in PHP4, so I am k

[PHP] MySQL Connection Error - mysql_select_db

2002-03-30 Thread Patrick Hartnett
Thanks for all the help so far, great to have others out there helping. Only way it will let me connect is to explicitly use the connection information in the connect statement and the select_db statements, can't pass in the variables. This seems a little on the insecure side, and a pain. Is

php-general Digest 31 Mar 2002 04:55:00 -0000 Issue 1258

2002-03-30 Thread php-general-digest-help
php-general Digest 31 Mar 2002 04:55:00 - Issue 1258 Topics (messages 90792 through 90856): Re: Not a valid MySQL resource? 90792 by: Rasmus Lerdorf 90794 by: Brian Waskiewicz 90796 by: Jason Wong 90854 by: Brian Waskiewicz PHP 4.2.ORC1 - SID gets deleted

Re: [PHP] Sql results

2002-03-30 Thread Jason Wong
On Sunday 31 March 2002 07:29, Alberto Wagner wrote: > $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"; > } > >

Re: [PHP] register_globals

2002-03-30 Thread Jason Wong
On Sunday 31 March 2002 17:05, Liam wrote: > 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?

Re: [PHP] Not a valid MySQL resource?

2002-03-30 Thread Brian Waskiewicz
I set it up so that I check the query for errors, and there are none. It is pretty random - sometimes the page works, and sometimes it doesn't, for no apparent reason. I haven't changed anything on the database side. Thanks. "Jason Wong" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECT

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 Captain

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 1

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!"); Mysql_Select_D

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

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

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 tags than some how the image is > loaded or redirected. > > Is their a way I can record impressions and environment variables like IP, > Browser, referr

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

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

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

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 a

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

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

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

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

2002-03-30 Thread Demitrious S. Kelly
Take a look at this: "; foreach ( $ourdata as $data ) { foreach ( $data as $array ) { echo "Username: ".$array[0].""; echo "Pnumber: ".$array[1].""; echo "sec2: ".$array[2]."";

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 15:40,

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

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

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

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

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... "; } ?> -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Saturday, March 30, 2002 4:22 PM T

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

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

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

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

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 PROTE

[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 PROTECTED]">news:[E

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

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.

[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: Do you know what I mean? Thanks, -Sean Kennedy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[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; $i"; When I do this i

[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 01c1d83c$9c334e50$8b6712cb@iceberg">news

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

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

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

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

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 prev

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

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 question

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

[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 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 (http://www.p

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

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 3

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

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 ha

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

[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

[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

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

[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

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 g

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 i

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

[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: Link"; echo ''. SID.""; echo session_id(); ?> As

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 t

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 confi

[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] 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] 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 'sp

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 for

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

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

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

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

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

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: "bv

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

[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

[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

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

[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. (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 in deli

[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

  1   2   >