Re: [PHP] cron with php as apache module

2002-03-22 Thread Paul Roberts
wget http://your.server.address/phpscript.php did the trick thanks Paul Roberts [EMAIL PROTECTED] - Original Message - From: "Bruce S. Garlock" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, March 22, 2002 8:55 PM Subject: Re: [PHP] cron with php as

Re: [PHP] included files not reread by php when i edit the files

2002-03-22 Thread Jim Lucas [php]
how about giving an example of the error message(s)... - Original Message - From: "Chris" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, March 22, 2002 12:59 PM Subject: [PHP] included files not reread by php when i edit the files > While editing pages, for some reason (defa

[PHP] Jazz problem

2002-03-22 Thread Sanj
template page at http://www.isbliss.co.nz/beta/mainpages/template.html disregard any linked pages. This will be the template for all the other pages. 1. Could you please tell me why when you hover off or anywhere on this page the "hair salon" button is highlighted. think I have done something t

[PHP] Automatic Language Detection

2002-03-22 Thread ....::: rObEr2 :::....
Hey! I want to have my website on English, Spanish and Norwegian so I want a PHP script that sends the user to the page on their language. I've seen some portals doing some PHP things, and sending the user to a 'fancy' URL with the Languange that their Borwser/OS is on. Can someone please tell

[PHP] A Language Script?

2002-03-22 Thread ....::: rObEr2 :::....
Hey! I want to have my website on English, Spanish and Norwegian so I want to have a PHP script that sends the user to the page on their language. I've seen some portals doing some PHP things, and sending the user to a 'fancy' URL with the Languange that their Borwser/OS is on. Can someone plea

RE: [PHP] A Language Script?

2002-03-22 Thread Demitrious S. Kelly
$HTTP_ACCEPT_LANGUAGE -Original Message- From: ::: rObEr2 ::: [mailto:[EMAIL PROTECTED]] Sent: Friday, March 22, 2002 1:59 PM To: [EMAIL PROTECTED] Subject: [PHP] A Language Script? Hey! I want to have my website on English, Spanish and Norwegian so I want to have a PHP script

[PHP] GOOD PRACTICE (was: RE: [PHP] A Language Script?)

2002-03-22 Thread Demitrious S. Kelly
I've been watching the lists from time to time and I see a lot of requests for information like this floating around. I wonder if people know of the phpinfo() command... in my experience it's been an invaluable tool to help with little issues that pop up with 'where do I find out XXX about XXX' ma

RE: [PHP] FAQ

2002-03-22 Thread Kevin Stone
Too often novices are expected to know how to find this information by mental telepathy because they either don't know the keywords to search for or don't realize that certain common resources exist. If the list administrators would simply compile a short email containing FAQ and RESOURCE links t

RE: [PHP] FAQ

2002-03-22 Thread J. Scott Johnson
Hi, New poster, no need to flame unnecessarily... Following up on James' original posting, I took 2000 or so message headers from the archive and extracted (Perl, sorry) keywords for about 50% of the postings. This gave the following metrics on problems: 13 table 65 apache 70 a

[PHP] Drawing graphs - opinions

2002-03-22 Thread Lee P Reilly
Hi, I see there a number of PHP scripts/libraries out there for the purpose of graphing data. Which one is considered to be the best, most powerful / easiest to use? I need to plot X/Y graphs for some data sets with vertical error margin lines going along the y-axis. Any recommendations? Cheers,

Re: [PHP] Database Development Price Inquiry?

2002-03-22 Thread [-^-!-%-
Yeah, I've ran into a few of those customers. It's even worst when you find one that doesn't know what they want, yet have many, sometimes conflicting, restrictions. Thanks, Miles! -john On Fri, 22 Mar 2002, Miles Thompson wrote: > It depends on the project. I generally charge $50/hr

[PHP] Re: Drawing graphs - opinions

2002-03-22 Thread Lee P Reilly
Lee P Reilly wrote: > with > vertical error margin lines going along the y-axis. Any recommendations? Ahem, the X axis. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] A Language Script?

2002-03-22 Thread Demitrious S. Kelly
http://vancouver-webpages.com/multilingual/ccodes.txt http://vancouver-webpages.com/multilingual/iso639a.txt This seems like useful information for this purpose... and so I've decided to forward it to the list as well... if this is considered spamming please let me know so that I can avoid it in

Re: [PHP] Maillist

2002-03-22 Thread Ashley M. Kirchner
"Robert V. Zwink" wrote: > Then when someone sends back the $unique_id by clicking on your link, you > can instuct MySQL to disable the record: > > "UPDATE users SET send_email = 'NO' WHERE > MD5(email_address.'ThisIsASecretKey123')=$unique_id " This works...with a small change (or is it a f

[PHP] Variable problem

2002-03-22 Thread Leif K-Brooks
I have a variable name in a print <<< END and then some text after it. The thing is, php thinks that the text is part of the variable name, which makes the variable, and the text after it, not show up. But, if I put a space, it makes my html not work right. Any ideas? -- PHP General Mailing

RE: [PHP] Variable problem

2002-03-22 Thread Rick Emery
show your code -Original Message- From: Leif K-Brooks [mailto:[EMAIL PROTECTED]] Sent: Friday, March 22, 2002 5:18 PM To: [EMAIL PROTECTED] Subject: [PHP] Variable problem I have a variable name in a print <<< END and then some text after it. The thing is, php thinks that the text is p

[PHP] MySQL query results

2002-03-22 Thread Ashley M. Kirchner
How can I tell whether anything was matched and changed after a mysql_db_query? If I'm in MySQL's console and I perform a query, it comes back and tells me something like: Query OK, 0 rows affected (0.00 sec) Rows matched: 0 Changed: 0 Warnings: 0 And if something matched, 'Rows

RE: [PHP] Variable problem

2002-03-22 Thread Rick Emery
${varable}ABC -Original Message- From: Leif K-Brooks [mailto:[EMAIL PROTECTED]] Sent: Friday, March 22, 2002 5:21 PM To: Rick Emery Subject: Re: [PHP] Variable problem on 3/22/02 6:18 PM, Rick Emery at [EMAIL PROTECTED] wrote: show your code -Original Message- From: L

RE: [PHP] MySQL query results

2002-03-22 Thread Rick Emery
$result = mysql_query(.)' mysql_num_rows($result) -Original Message- From: Ashley M. Kirchner [mailto:[EMAIL PROTECTED]] Sent: Friday, March 22, 2002 5:28 PM To: PHP-General List Subject: [PHP] MySQL query results How can I tell whether anything was matched and changed after a

Re: [PHP] included files not reread by php when i edit the files

2002-03-22 Thread Chris
On 22 Mar 2002 at 13:30, Jim Lucas [php] wrote: > how about giving an example of the error message(s)... ok Jim. step by step. 1. parse error on line 36 of include.php. 2. then i fixed the error , even made line 36 empty, so the message should point to line 37. 3. reloaded, and the message

Re: [PHP] MySQL query results

2002-03-22 Thread Ashley M. Kirchner
Rick Emery wrote: > $result = mysql_query(.)' > mysql_num_rows($result) Hrm, this is resulting in: Warning: Supplied argument is not a valid MySQL result resource in ./index.php on line 16 Rows The query does get executed, and the record does get changed. The code looks like

[PHP] Double quotes in form fields and submitting them

2002-03-22 Thread webapprentice
Hi, I have a form with a text field, say userName. I put a value in that has double quotes (i.e. "foobar") and submit this form. On output I have this: The output ends up being a \. How do I keep the double quotes? Thanks, Stephen

RE: [PHP] Variable problem

2002-03-22 Thread Chris
On 22 Mar 2002 at 17:27, Rick Emery wrote: > ${varable}ABC in quotes you can help php with {$(varabl)}ABC > > > -Original Message- > From: Leif K-Brooks [mailto:[EMAIL PROTECTED]] > Sent: Friday, March 22, 2002 5:21 PM > To: Rick Emery > Subject: Re: [PHP] Variable problem > >

[PHP] ttf broken?

2002-03-22 Thread Michael A. Peters
Red Hat 7.2 OK- I'm going on ahead w/o T1lib for the moment. compiled and installed php-4.1.2 Now some font stuff is busted. Any image where I use ImageTTFText no longer works. I used these configure options for my php gd functions- --with-zlib=/usr \ --with-gd \ --e

[PHP] Create Email POP accounts with PHP

2002-03-22 Thread Julian
Hello! I want to know how I can create email POP accounts from a script PHP. If somebody can help me, thank ahead of time! Regards! Julian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] MySQL query results

2002-03-22 Thread Ashley M. Kirchner
After a bit of research: -- Rick Emery wrote: > $result = mysql_query(.)' > mysql_num_rows($result) Hrm, this is resulting in: Warning: Supplied argument is not a valid MySQL result resource in ./index.php on line 16 Rows -- Rightfully so. mysql_qu

Re: [PHP] MySQL query results

2002-03-22 Thread Chris
On 22 Mar 2002 at 16:41, Ashley M. Kirchner wrote: > Rick Emery wrote: > The query does get executed, and the record does get changed. > > The code looks like this: > > $conn = @MYSQL_CONNECT($host,$user,$password) ; > mysql_select_db($database, $conn); > $query = "UPDATE clients

[PHP] ttf broken?

2002-03-22 Thread Michael A. Peters
Red Hat 7.2 OK- I'm going on ahead w/o T1lib for the moment. compiled and installed php-4.1.2 Now some font stuff is busted. Any image where I use ImageTTFText no longer works. I used these configure options for my php gd functions- --with-zlib=/usr \ --with-gd \ --e

Re: [PHP] MySQL query results

2002-03-22 Thread Rasmus Lerdorf
http://www.php.net/manual/en/function.mysql-affected-rows.php On Fri, 22 Mar 2002, Ashley M. Kirchner wrote: > > After a bit of research: > > -- > Rick Emery wrote: > > > $result = mysql_query(.)' > > mysql_num_rows($result) > > Hrm, this is resulting in: > > Warning: Supp

Re: [PHP] MySQL query results

2002-03-22 Thread Chris
oops. i see then my previous mail will not help in this case. wasn't there something called 'affected_rows'? search the online manual for 'affected'. On 22 Mar 2002 at 17:09, Ashley M. Kirchner wrote: > > After a bit of research: > > -- > Rick Emery wrote: > > > $result = mys

Re: [PHP] MySQL query results

2002-03-22 Thread Ashley M. Kirchner
Rasmus Lerdorf wrote: > http://www.php.net/manual/en/function.mysql-affected-rows.php Thanks Rasmus. I did try that as well, same result. If I don't bother with the $result, everything's fine. Like I said, the query runs, and gets executed. The DB field gets changed as it should and all.

Re: [PHP] MySQL query results

2002-03-22 Thread Ashley M. Kirchner
Chris wrote: > > The query does get executed, and the record does get changed. > > seems there is something wrong with the query, can you either echo the query and > feed it directly to mysql, (e.g. in phpmyadmin) see what happens? Nope, the query's fine. I can run it manually, and thro

Re: [PHP] MySQL query results

2002-03-22 Thread Ashley M. Kirchner
Chris wrote: > oops. i see then my previous mail will not help in this case. wasn't > there something called 'affected_rows'? search the online manual for > 'affected'. I did. Read my reply to Rasmus as well. :) At this rate, I may just say to heck with the $result, and always assume some

[PHP] Does anybody use UltraDev?

2002-03-22 Thread ....::: rObEr2 :::....
Hey! Does anybody use UltraDev for PHP? Any comments about it? (Personally I go for Visual PHP Studio) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Create Email POP accounts with PHP

2002-03-22 Thread Dan Harrelson
I am a newbie and can't tell you how to do it, but I know that the book I am reading can! Chapter 27 is titled "Building a Web-based Email Service". The Book is title "PHP and MySQL Web Development" and I like it alot. It was recommended on the mysql.com. http://tangledweb.com.au/ -Dan --

Re: [PHP] MySQL query results

2002-03-22 Thread Rasmus Lerdorf
But did you read the documentation? It states: int mysql_affected_rows ( [resource link_identifier]) That's an optional link identifier. You don't feed it a result resource. Just call it without any arguments. The affected rows is tied to a database connection, not a result set. -Rasmus On

Re: [PHP] Create Email POP accounts with PHP

2002-03-22 Thread ....::: rObEr2 :::....
vpopmail? "Dan Harrelson" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... | I am a newbie and can't tell you how to do it, but I know that the book | I am reading can! Chapter 27 is titled "Building a Web-based Email | Service". The Book is title "PHP and MySQ

Re: [PHP] Does anybody use UltraDev?

2002-03-22 Thread Dan Harrelson
I do, and was just thinking of posing a similar question. My question was specific to the PHAkt app server extension. I've tried it out and think it's great, though limited. For example, my simple project (my very first :) calls for inserts into 2 tables from a single form. Phakt doesn't suppo

Re: [PHP] Perl NewsGroup?

2002-03-22 Thread David Duong
I didn't put mailing list I meant Usenet lists. "Bvr" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > > Why not try www.perl.com ??? > > I found: http://www.perl.com/cs/user/query/q/6?id_topic=50 > > bvr. > > David Duong wrote: > > >This may be the worst plac

[PHP] Re: what is the difference between function and language construct?

2002-03-22 Thread David Duong
empty -- Determines whether a variable is set gives a boolean result. $var = 0; if (empty($var)) { // evaluates true echo '$var is either 0 or not set at all'; } if (!isset($var)) { // evaluates false echo '$var is not set at all'; } I don't think that would work. Try: If you want

[PHP] What is the PHP version of Grep?

2002-03-22 Thread David Duong
I was wondering what is the equvilent of the perl coommand: grep. Can you list all the files in a certain directory and put it in an array. Can you list all the files with *.htm in a certain directory and put it in an array. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vi

RE: [PHP] What is the PHP version of Grep?

2002-03-22 Thread Demitrious S. Kelly
Stristr() -Original Message- From: David Duong [mailto:[EMAIL PROTECTED]] Sent: Friday, March 22, 2002 4:43 PM To: [EMAIL PROTECTED] Subject: [PHP] What is the PHP version of Grep? I was wondering what is the equvilent of the perl coommand: grep. Can you list all the files in a certain

Re: [PHP] PHP/mySQL hosting

2002-03-22 Thread bvr
go to google, put in 'free mysql hosting', press 'feeling lucky' .. http://www.free-php-hosting.com/ bvr. Daniel Negron/KBE wrote: >Does anyone have a good site for free mySQL and PHP hosting ? > > >**DAN** > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:

Re: [PHP] MySQL query results

2002-03-22 Thread Ashley M. Kirchner
Rasmus Lerdorf wrote: > But did you read the documentation? It states: Yes. But, reading it, and my brain actually registering what I was reading, now that's a different story. :) It _is_ Friday after all. Thanks! -- H | "Life is the art of drawing without an eraser." - John Gardner

[PHP] URL information into a variable

2002-03-22 Thread Phil Schwarzmann
How do I take the current URL and turn it into a variable? THANKS!! Phil

[PHP] question - display rows

2002-03-22 Thread Phil Schwarzmann
When I want to display a table onto the screen I use this code $query = "SELECT * FROM database"; $result = mysql_query($query); $num_rows = mysql_num_rows($result); for ($i = 0; $i < $num_rows; $i++) { $field1 = mysql_result($result, $i, field1); $field2 = mysql_result($result, $i, field2);

Re: [PHP] question - display rows

2002-03-22 Thread Justin French
Hi, (untested code) or better still: $value) { // convert $myrow["id"] to $id, etc etc for all fields // much easier to work with!! $$key=nl2br(stripslashes($value)); } echo $id.$heading.$message; } ?> Justin French - http://indent.com.au http://

Re: [PHP] URL information into a variable

2002-03-22 Thread Justin French
Hi, This really is pretty easy to find in the manual. I believe you'd want either $PHP_SELF or $REQUEST_URI, both documented here: http://www.php.net/manual/en/reserved.variables.php Justin French - http://indent.com.au http://soundpimps.com http://hinge.net.au Phil Sc

RE: [PHP] URL information into a variable

2002-03-22 Thread J. Scott Johnson
Here you go: Scott -Original Message- From: Phil Schwarzmann [mailto:[EMAIL PROTECTED]] Sent: Friday, March 22, 2002 9:08 PM To: [EMAIL PROTECTED] Subject: [PHP] URL information into a variable How do I take the current URL and turn it into a variable? THANKS!! Phil -- PHP Gener

Re: [PHP] MySQL query results

2002-03-22 Thread Justin French
FWIW, straight from my code, with a few snips: Justin French -- http://indent.com.au http://soundpimps.com http://hinge.net.au "Ashley M. Kirchner" wrote: > > Rasmus Lerdorf wrote: > > > But did you read the documentation? It states: > > Yes. But, reading it, and my br

Re: [PHP] MySQL query results

2002-03-22 Thread Ashley M. Kirchner
Justin French wrote: > $sql = "SELECT * FROM news ORDER BY id DESC LIMIT $limit"; You're forgetting (or just didn't read my code), I'm UPDATE-ing, not SELECT-ing. mysql_num_rows() doesn't work on UPDATE. Anyway, thanks to Rasmus for pointing out my error. -- H | "Life is the art of

[PHP] [newman] Whats wrong with this MySql Statement?

2002-03-22 Thread Philip J. Newman
mysql_query("UPDATE access SET accessVIEW = accessVIEW+1 WHERE accessIP = $proxy_ip"); is there anything wrong with this? Philip J. Newman PhilipNZ :: Design Solutions http://www.philipnz.com/ [EMAIL PROTECTED] ICQ# 20482482 +64 25 6144012

RE: [PHP] FAQ

2002-03-22 Thread Demitrious S. Kelly
I'm willing to help host the project... I'd be on a slack 8 box with a cable connection... only one IP address. It's my home connection so we'd have to share bandwidth... but I think it could be a valuable resource... -Original Message- From: J. Scott Johnson [mailto:[EMAIL PROTECTED]]

[PHP] session problem?

2002-03-22 Thread bob
1.php?2.php session_start(); session_start(); .. .. $_SESSION['a'] =$a; echo $_SESSION['a']; $_SESSION['b'] =$b; echo $_SESSION[

[PHP] what's wrong with IE?

2002-03-22 Thread Alexander Javier
why is the $HTTP_POST_VARS array empty if i use IE? when i used NN, everything's ok. please help! - Do You Yahoo!? Yahoo! Movies - coverage of the 74th Academy Awards®

[PHP] Advice needed

2002-03-22 Thread James Newkid
Sorry couldn't think of a better subject for this email :( This has stumped 7 people so far. I'm not an expert with php, but any help would be great. I have the following $Quantity1 $Quantity2 $Quantity3 and $Price1 $Price2 $Price3 These variables will eventually make a "chart"/database wit

[PHP] Re: Advice needed

2002-03-22 Thread michael kimsal
If this is the explanation the other 7 got, I'm not surprised they're stumped. :) You don't seem to explain the formula to determine q100, q300, etc., which bugged me, but the text of your question seems to indicate we don't really need to know this. > Now the tricky part is $Quantity2 can eit

[PHP] Re: Drawing graphs - opinions

2002-03-22 Thread michael kimsal
Lee P Reilly wrote: > Hi, > > I see there a number of PHP scripts/libraries out there for the purpose > of graphing data. Which one is considered to be the best, most powerful > / easiest to use? I need to plot X/Y graphs for some data sets with > vertical error margin lines going along the y-axi

[PHP] Retreiving website contents

2002-03-22 Thread Liam
Hi, I've asked this before but I'm still ost. How can I receive the contents of a remote website through PHP and only display one section of it? Someone said something about curl.  What is it, where could I get it? Thanks for your help, Liam -- PHP General Mailing List (http://www.php.ne

[PHP] this mailing list

2002-03-22 Thread Liam
How much data (in Kilobytes) would I receive on  average per month from this list? cheers, Liam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Advice needed

2002-03-22 Thread Daniel Tryba
On Sat, Mar 23, 2002 at 05:19:05AM +, James Newkid wrote: > so if $Quantity1 is 10 > and $Price1 is $1.00 > that means each "unit" is .10 > > so the output would be > q1 q2 q3 q5 q10 q15 q20 q25 q50 q100 q300 q500 q600 q10 > 0 0 0 0 .10 .10 .10 .10 .10 .10 .10 .10 .10 .10 > >

Re: [PHP] Perl NewsGroup?

2002-03-22 Thread Don Read
On 23-Mar-2002 David Duong wrote: > I didn't put mailing list I meant Usenet lists. > comp.lang.perl.misc This is not a newbie froup. Read the FAQ, and post your code, or prepare to be flamed to a crackly crunch. Regards, -- Don Read [EMAIL PROTECTED] --

[PHP] Configure PHP during RPM install

2002-03-22 Thread David McInnis
I have installed PHP using the RPM packages from RedHat. Now I need to reconfigure PHP to include more options. Is there a way to include these options when reinstalling the RPM or do I need to ditch the RPM and compile from the source files? David McInnis -- PHP General Mailing List (http:/

[PHP] Re: [newman] Whats wrong with this MySql Statement?

2002-03-22 Thread Julio Nobrega
mysql_query("UPDATE access SET accessVIEW = accessVIEW+1 WHERE accessIP = '$proxy_ip'"); Singles quotes around $proxy_ip? -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca Ajudei? Salvei? Que tal um presentinho? http://www.submarino.com.br/wishlistclient.asp?wlid=664

[PHP] Re: Tool to remove comments??

2002-03-22 Thread Julio Nobrega
There's an php obfuscator, http://pobs.mywalhalla.net/, and one of the options is to remove comments. -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca Ajudei? Salvei? Que tal um presentinho? http://www.submarino.com.br/wishlistclient.asp?wlid=664176742884 "Oliver Hei

Re: [PHP] Re: Tool to remove comments??

2002-03-22 Thread Michael A. Peters
there's also two tools called sed and grep that are available on any unix system. and probably easily gettable on windblows. That can probably remove most comments. Why you would want to remove comments, I don't know. They are very useful in the future when fixing something or changing something

[PHP] Stripslashes & addslashes question ...

2002-03-22 Thread John Kelly
Hi, can someone tell me why the following results in evaluated variables with 2 slashes in front of apostrophys instead of one and how I can modify it to only add 1? Thanks! foreach($_POST as $k=>$v){ if (get_magic_quotes_gpc()){ $_POST[$k] = stripslashes($v); } $_POST[$k] = addslashes($v); eval(

[PHP] assert in php.ini setting.

2002-03-22 Thread S.Murali Krishna
can any one tell me what is this ;assert.active= On ; assert(expr); active by default ;assert.warning = On ; issue a PHP warning for each failed ;assert.bail= Off ; don't bail out by default. ;assert.callback = 0 ; user-function to be called if an assertion ;assert.

<    1   2