Re: [PHP] php form

2002-01-05 Thread M.E. Suliman
Hi Brian I would need to email it as an attachment. Thanks Mohamed - Original Message - From: Brian Clark [EMAIL PROTECTED] To: PHP is not a drug. [EMAIL PROTECTED] Sent: Saturday, January 05, 2002 8:23 AM Subject: Re: [PHP] php form * M.E. Suliman ([EMAIL PROTECTED]) [Jan 05. 2002

[PHP] array_walk inside class method

2002-01-05 Thread S. Murali Krishna
Hi All, I want to use array_walk function inside a class method. But the problem is i want the second argument to array_walk ( function name ) be a another function of the same class. when i gave like that its telling Error : function not exist. class some() { function

Re: [PHP] array_walk inside class method

2002-01-05 Thread Attila Strauss
hi $this-func1(); best regards attila Hi All, I want to use array_walk function inside a class method. But the problem is i want the second argument to array_walk ( function name ) be a another function of the same class. when i gave like that its telling Error : function not exist.

[PHP] check browser communication

2002-01-05 Thread Daniel Urstöger
Hiya ! A little offtopic this question, but really important .. I need to check all the communication between my client PC and a server in the world wide web. Inlcuding all the header info and so on .. Would be a great help for developeing my script ... Could anybody of you suggest me

[PHP] Printing return value of array_count_values?

2002-01-05 Thread Daniel Alsén
Hi! How do i echo the return values of array_count_values? Regards # Daniel Alsén| www.mindbash.com # # [EMAIL PROTECTED] | +46 704 86 14 92 # # ICQ: 63006462 | +46 8 694 82 22 # # PGP: http://www.mindbash.com/pgp/ # -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Re: Printing return value of array_count_values?

2002-01-05 Thread George Nicolae
array_count_values() returns an array using the values of the input array as keys and their frequency in input as values ? $array = array (1, hello, 1, world, hello); $a=array_count_values ($array); // returns array (1=2, hello=2, world=1) while ($b = each($a)) echo $b[0].=.$b[1]. ; ? -- Best

SV: [PHP] Re: Still need help with miscount

2002-01-05 Thread Daniel Alsén
I have worked this over in my head over the holidays and still haven´t got a solution. Can anyone help? I have a MySql table populated with numerical values from 0 to 10 in five different fields. I need a function that counts all occurances of each value, ie: 1: 12, 2: 3, 4: 74 etc... I have

[PHP] Problems Installing 4.1.1 on FreeBSD 4.4 STABLE

2002-01-05 Thread Tim Gustafson
Hello Everyone. I just tried to upgrade my Apache 1.3.22 web server to us PHP 4.1.1. I was running PHP 4.0.6 without problems for months, but wanted to take advantage of the bug fixes and new features. The compile seemed to go OK, and the new httpd runs fine. However, I've encountered a

php-general Digest 5 Jan 2002 14:18:07 -0000 Issue 1093

2002-01-05 Thread php-general-digest-help
php-general Digest 5 Jan 2002 14:18:07 - Issue 1093 Topics (messages 79513 through 79556): Paging through MySQL results in PHP 79513 by: Nelson Goforth Re: configuring sever to send mail (Win2k) 79514 by: CJ 79534 by: CJ 79537 by: Brian Clark Re: How to

Re: [PHP] adding users on *nix

2002-01-05 Thread Bogdan Stancescu
I'm not sure how you'd go about doing that, but be warned that you're walking on very thin ice (security-wise) to allow such an action. You must be very extra super careful not to get hacked! Not only that you'll be potentially allowing hackers to create users on your machine, but at some time

Re: [PHP] check browser communication

2002-01-05 Thread Bogdan Stancescu
What do you mean exactly? You want to be able to monitor (as in see) the data being transacted by your browser with the server or is it something else you're after? Bogdan Daniel Urstöger wrote: Hiya ! A little offtopic this question, but really important .. I need to check all the

Re: [PHP] check browser communication

2002-01-05 Thread Daniel Urstöger
Bogdan Stancescu [EMAIL PROTECTED] schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... What do you mean exactly? You want to be able to monitor (as in see) the data being transacted by your browser with the server or is it something else you're after? Bogdan Yeah, exactly

[PHP] Plz help w/ php/MySQL

2002-01-05 Thread Anthony Rodriguez
The following php script successfully e-mails both messages but it doesn't update in the table scr_149 the column notified. Why? ?php $connection=mysql_connect(localhost,wagner,123) or die (No connection!); $db=mysql_select_db(sbwresearch_com,$connection) or die (No database!); $message_1=

[PHP] PHP 4.1.1 problem after compile

2002-01-05 Thread DWilliams
I am trying to ugrade php 4.0.3pl1 to PHP4.1.1...I am VERY new at this compiling stuff, but I though I had pretty good instructions to go by. My configure statement: ./configure --prefix=/usr --with-mysql --with-apxs=/usr/sbin/apxs --with-gd --with-gettext=/usr --enable-safe-mode

Re: [PHP] Plz help w/ php/MySQL

2002-01-05 Thread Bogdan Stancescu
Anthony Rodriguez wrote: The following php script successfully e-mails both messages but it doesn't update in the table scr_149 the column notified. Why? ?php $connection=mysql_connect(localhost,wagner,123) or die (No connection!); $db=mysql_select_db(sbwresearch_com,$connection) or die

[PHP] Help Please

2002-01-05 Thread Necro
Can anyone help me with this... ? if ($HTTP_POST_VARS[action] == 1) { checklogin($HTTP_POST_VARS[user_name], $HTTP_POST_VARS[password]); exit; } function checklogin($user_name, $password) { login($user_name, $password); if ($sid != -1) {

[PHP] Re: Paging through MySQL results in PHP

2002-01-05 Thread Phillip Oertel
hi nelson, i'm not sure if i get you right, but you could store the 'base' of your generated SQL query in a session variable, that way you don't have to drag the $kw array along. // before any html output (sends http headers) session_start(); // build query from keywords -- results in string

[PHP] ob_gzhandler doesn't seem to be working

2002-01-05 Thread Andrew Brampton
I thought I would try out the ability to GZip my PHP pages, so that they would be sent quicker and use less of my bandwidth :) Anyway I have found the following tutorials and information on this: http://www.zend.com/zend/art/buffering.php http://www.php.net/manual/en/function.ob-gzhandler.php

Re: SV: [PHP] Re: Still need help with miscount

2002-01-05 Thread Bogdan Stancescu
I don't know if this is actually it, but the line $num_vals[$i] = mysql_fetch_array($result); seems strange to me - doesn't mysql_fetch_array return an array? You should try list($num_vals[$i]) = mysql_fetch_array($result); and see if you get any improvements... Daniel Alsén wrote: I have

Re: [PHP] Checking the season

2002-01-05 Thread Bogdan Stancescu
You could do a case() or if/elseif, check if it's spring, summer or autumn and leave the code for winter as default/else. Bogdan webapprentice wrote: Hi, Just need a sounding board to help me think this through. I want to check the current date to determine what season it is and display

[PHP] Re: Help Please

2002-01-05 Thread Phillip Oertel
line 29: mysql_query('$SQL') will send the following query to your db: $SQL i know of no db that understands that ;-) everything in single quotes is NOT parsed by php. here, use double quotes, or better, none at all. hope it works now, phil. -- PHP General Mailing List

[PHP] Re: Help Please (clarification)

2002-01-05 Thread Phillip Oertel
Phillip Oertel wrote: line 29: mysql_query('$SQL') will send the following query to your db: $SQL -- it sends exactly this string instead of the content of your variable $SQL, which contains the real query. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail:

[PHP] Webmail with attach

2002-01-05 Thread Luz Lopez
Hi all, I am making a small webmail, But I need that this webmail have attach, I can to put one attach athis mail, but I need many attach in the webmail, I made a bucle for many attach, but now I can't to manipulate this attach for that the user send mail with many attach. Some body can help

[PHP] print on printer

2002-01-05 Thread Luz Lopez
Hi All I have a php that access to database and show the values in the browser, But I need add hte option of print on printer, but that only print the table with values. Somebody can help me? Thanks in Advanced, Regards, _

[PHP] xmldoc undefined with domxml apparently enabled

2002-01-05 Thread Luca
Hi, I can't get DOMXML to work. The line $doc = xmldoc($xml); // (line 26) (where $xml is a string containing a valid xml document) raises a fatal error: Fatal error: Call to undefined function: xmldoc() in d:\...\class.xmltemplate.php on line 26 I'm running PHP 4.1.1 as an Apache module

[PHP] MySQL error... but it works!!??

2002-01-05 Thread Simon Kimber
Does anyone have any idea why this is giving me a Warning: Supplied argument is not a valid MySQL result resource in... error? The funny thing is that apart from that error message it works perfectly!! --- $crdate = date(Y-m-d); $result = mysql_query(SELECT * FROM sites

Re: [PHP] MySQL error... but it works!!??

2002-01-05 Thread Adam Baratz
Does anyone have any idea why this is giving me a Warning: Supplied argument is not a valid MySQL result resource in... error? You'll have to give more code, which line you get that error from, etc., to give us a better idea why it's not working. However, a quick tip: $crdate = date(Y-m-d);

[PHP] Webmail with Attach

2002-01-05 Thread Luz Lopez
Hi All, I am making a webmail, this webmail can send with just one attach, but I need that that my webmail can send mail with many attach. Now my function have the follwing code line: if ($attach != none) { $file = fopen($attach, r); $contents =

Re: [PHP] PHP XML with Dynamic Content

2002-01-05 Thread Emile Bosch
Writing it on the fly would be kinda redundant.. I think.. :( from mysql data to xml to data.. .. would slow things down a bit i think.. :( Brian Clark [EMAIL PROTECTED] wrote in message 20020105030550.GD17616@ganymede">news:20020105030550.GD17616@ganymede... * Emile Bosch ([EMAIL PROTECTED])

[PHP] XML based content management system.

2002-01-05 Thread Emile Bosch
Does anyone know an opensource XML based content management system? Written in PHP? Warm regards, Emile Bosch -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators,

Fw: [PHP] MySQL error... but it works!!??

2002-01-05 Thread Adam Baratz
- Original Message - From: Bas van Rooijen [EMAIL PROTECTED] To: Adam Baratz [EMAIL PROTECTED] Sent: Saturday, January 05, 2002 4:39 PM Subject: Re: [PHP] MySQL error... but it works!!?? maybe try: if (!$result) { echo(mysql_error()); } bvr. On Sat, 5 Jan 2002 15:55:39

[PHP] Can't get accurate day of year

2002-01-05 Thread Hugh Danaher
Hello All and Happy New Year. I have a simple routine to get the year, date and the day of year. Year and date come out correctly but the day of year is one less than the date. It being January, it's easy to see the error. The only thing I can figure, is that the date(z) function gets a

Re: [PHP] MySQL error... but it works!!??

2002-01-05 Thread Mehmet Kamil ERISEN
Hi, So far the best way to troubleshoot mysql+php for me has been to add an or die after the sql exec. $crdate = date(Y-m-d); $result = mysql_query(SELECT * FROM sites WHERE creation_date = '$crdate' AND status = 'T') or die ('CAN NOT EXEC SQL'); Or you can do $sql = SELECT * FROM sites

[PHP] output compression and imp 2.x not working under IE

2002-01-05 Thread Robert Mena
Hi, I've recently upgraded my server to php 4.1.1 and turned on the output compression under php.ini. For some browsers (IE 5/5.5 so far) it made imp stop working. Does anybody know if this is a limitation of php, imp or explorer ? Anyone has tried that with the latest imp/horde ? thanks.

[PHP] Re: Can't get accurate day of year

2002-01-05 Thread Jim Winstead
Hugh Danaher [EMAIL PROTECTED] wrote: Hello All and Happy New Year. I have a simple routine to get the year, date and the day of year. Year and date come out correctly but the day of year is one less than the date. It being January, it's easy to see the error. The only thing I can figure,

Re: [PHP] Re: Can't get accurate day of year

2002-01-05 Thread Hugh Danaher
So, I add 1 to the number and move on. Thanks, Hugh - Original Message - From: Jim Winstead [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, January 05, 2002 3:24 PM Subject: [PHP] Re: Can't get accurate day of year Hugh Danaher [EMAIL PROTECTED] wrote: Hello All and Happy

[PHP] Here ya go..

2002-01-05 Thread Chris Hall
5 hosting plans, apache 1.3 - debian 2.22r3. lets also say i have the same 5 plans, except on a windows 2000 adv server. i want to limit access levels and functions my users are allowed to use. This is preliminary -- I am somewhat familiar with how shell hosting works, and I believe my answer is

[PHP] HTML doc check in PHP? How to?

2002-01-05 Thread Kraa de Simon
Hi, I would like to be able to check html documents against a template html document using PHP. In the example below I would like to check if the document starts with a h1 + string + /h1, and is followed by a h1 + version + ... etc. etc. Should/could I use XML? Any ideas would be greatly

Re: [PHP] jukebox

2002-01-05 Thread Meir Kriheli
On Friday 04 January 2002 22:20, Scott wrote: Has anyone experimented with controlling an mp3 player like mpg123 from php? I want to build a radio automation system using a web interface, but not sure how I want to handle the actual playing of music. Basically I would have a mysql database

[PHP] quote 76

2002-01-05 Thread Rambo Amadeus
Hi, how can i make data submited throug form, Quoted Printable Encode to 76 characters. thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL

Re: [PHP] array_walk inside class method

2002-01-05 Thread Gyozo Papp
it may be better: array_walk($this-array, array($this, 'func1'); Attila Strauss [EMAIL PROTECTED] wrote in message 001d01c195db$67647da0$[EMAIL PROTECTED]">news:001d01c195db$67647da0$[EMAIL PROTECTED]... | hi | | $this-func1(); | | | best regards | attila | | | | | Hi

[PHP] sorting and limitin sql in php pages??????

2002-01-05 Thread Mehmet Kamil ERISEN
Hi, As the data grows I like to add the functionality that people see 30 lines of the result on one page. Also I like to give users the ability to sort per columns... I know this is done pretty much everwhere. What's the best or easiest way of doing it? Mehmet Erisen

Re: [PHP] Checking the season

2002-01-05 Thread webapprentice
I'll have to use and if/elseif construct, because I don't believe a switch() constructs cases can take expressions, can it? - Original Message - From: Bogdan Stancescu [EMAIL PROTECTED] To: webapprentice [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Saturday, January 05, 2002 11:38 AM

[PHP] regular expressions

2002-01-05 Thread Gerard Samuel
Need some help with this one. Dont know where to begin. I have content in a string and a constant that changes depending on if yourre in the root or in a directory. The purpose of the constant is to provide dynamic links. The string will have href links like a href=index.phpIndex/a I want to

php-general Digest 6 Jan 2002 03:16:54 -0000 Issue 1094

2002-01-05 Thread php-general-digest-help
php-general Digest 6 Jan 2002 03:16:54 - Issue 1094 Topics (messages 79557 through 79591): Re: adding users on *nix 79557 by: Bogdan Stancescu Re: check browser communication 79558 by: Bogdan Stancescu 79559 by: Daniel Urstöger Plz help w/ php/MySQL 79560

[PHP] To you know-it-all's out there...

2002-01-05 Thread Torkil Johnsen
Yeah this is a BIT of topic... I have this code: ? header(Content-type: image/svg+xml); print('?xml version=1.0 encoding=iso-8859-1?'); ? ?php $text=This page uses PHP and SVG; ? !DOCTYPE svg PUBLIC -//W3C//DTD SVG 2303 Stylable//EN

[PHP] Re: To you know-it-all's out there...

2002-01-05 Thread Manuel Lemos
Torkil Johnsen wrote: Yeah this is a BIT of topic... I have this code: ? header(Content-type: image/svg+xml); print('?xml version=1.0 encoding=iso-8859-1?'); ? ?php $text=This page uses PHP and SVG; ? !DOCTYPE svg PUBLIC -//W3C//DTD SVG 2303 Stylable//EN

Re: [PHP] regular expressions

2002-01-05 Thread Michael Sims
At 10:16 PM 1/5/2002 -0500, Gerard Samuel wrote: Need some help with this one. Dont know where to begin. I have content in a string and a constant that changes depending on if yourre in the root or in a directory. The purpose of the constant is to provide dynamic links. The string will have

Re: [PHP] regular expressions

2002-01-05 Thread Michael Sims
At 10:22 PM 1/5/2002 -0600, Michael Sims wrote: function insertpath($string) { return preg_replace(/(a href=\)(.*\.*\/a)/i,$1._CONSTANT.$2,$string); } ? Forgot to mention that the i at the end of the regex means to make the match case-insensitive... -- PHP General Mailing List

Re: [PHP] Checking the season

2002-01-05 Thread Tom Rogers
Hi This should work: ? $year = date(Y); $spring = mktime (0,0,0,3,21,$year); $summer = mktime (0,0,0,6,21,$year); $autumn = mktime (0,0,0,9,21,$year); $winter = mktime (0,0,0,12,21,$year); $now = mktime(); if($now $spring || $now = $winter): echo Winter; elseif($now = $autumn):

Re: [PHP] Checking the season

2002-01-05 Thread webapprentice
Thanks for the code snippet. I see that everybody defaults to a season. I was doing a comparison between two seasons, so that's why it messed up when it into the new year. Thanks to Bogdan and Tom for the helpers. I can go debug my code. And make it less complicated. ^_^;;; (It's was a lot

Re: [PHP] NEWBIE IN DISTRESS: Install Instructions are not work for PHP 4.1.1!!!

2002-01-05 Thread snyperx
Nothing noted in the error log. The lines I have tried using are the EXACT ones stated in the install.txt file. I basically copied them from the install doc and pasted it into the httpd.conf file. Mark Brian Clark [EMAIL PROTECTED] wrote in message

[PHP] Is the 'dl' function a bad idea to use?

2002-01-05 Thread Joelmon2001
Hey, thanks for your time. You are busy, so I'll be brief A.) If I were to use it, for a gd or mysql library, not oftenly, certainly not more than 100 requests per day, would it affect the server negatively? B.) Is there a delay in using it as oppossed to compiling them during installation

[PHP] take links from url

2002-01-05 Thread Alawi
I want to take string between table/table tags in put it in variable How can I do that ?