[PHP] Help with Mod mathematical function

2003-08-07 Thread Dean Baldwin
Hi, I am porting a vb application across to php but have come up against a small problem. The code uses the Mod calculation however I cannot find any Mod in php. The line of code that uses it looks like: Data = (index Mod 16) Anybody have any ideas how I recreate this in php? Both data and index

RE: [PHP] Stop neurotic posting

2003-08-07 Thread Jennifer Goodie
Not to beat a dead horse, but... >From two separate responses: > And as for Google, I don't feel like I have time to wade through pages and > pages of irrelevant links until I find what I'm looking for when I have a > better resource right here. > > I've actually learned quite a few useful thin

Re: [PHP] Downloding files once

2003-08-07 Thread CPT John W. Holmes
From: "Boaz Yahav" <[EMAIL PROTECTED]> > > Can you fake a referrer by say, using fsockopen() and sending your > own headers? Yep. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Insidious!

2003-08-07 Thread Nicholas Robinson
Could this have anything to do with our being registered as spammers? On Wednesday 06 Aug 2003 9:59 am, [EMAIL PROTECTED] wrote: > Do you recall during the height of the War in March? > I posted a simple joke - got one (positive) reply before getting kicked off > the list by Mr Lerdorf himself. >

[PHP] Re: Semaphores

2003-08-07 Thread l0t3k
"Cristiano Duarte" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I know there is no support for semaphores in Windows. > But does the Windows and Mac implement semaphores ? If they don't what is > used instead ? they both support semaphores. its just that most PHP developers seem

[PHP] Re: postmaster@hanmir.com

2003-08-07 Thread Ben
I just got two, Expecting two more now "Joe Harman" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hey is every one getting a returned message from > [EMAIL PROTECTED] > > Joe Harman > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.

Re: [PHP] Hitler and Recent Threads

2003-08-07 Thread CPT John W. Holmes
From: "Mark" <[EMAIL PROTECTED]> > > And as they say, "Never argue with a fool. People will > not be able to tell the differnce." I thought it was "Never argue with an idiot. They drag you down to their level and beat you with experience" :) ---John Holmes... -- PHP General Mailing List (http

RE: [PHP] AOL Email client

2003-08-07 Thread Jennifer Goodie
> Here is what my header look like: > > $headers .= "MIME-Version: 1.0\r\n"; > $headers .= "Content-type: text/plain; > charset=us-ascii\r\n"; > $headers .= "From: ".$name." <".$email.">\r\n"; > $headers .= "To

RE: [PHP] AOL Email client

2003-08-07 Thread Jennifer Goodie
> I am using php mail and setting all my $headers info to show From:, To:, What does your call to mail() look like? How are you formatting you headers? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] bug in code - can't find it!

2003-08-07 Thread Amanda McComb
Oh, yeah. Well, I just copied and pasted that from another form. Taken out, it still doesn't work. Even the echo, which is on no way related to the checkbox. Thanks! On Wed, 6 Aug 2003, Chris Sherwood wrote: > VALUE="CHECKED"> $search_result2[a.retired_flag]?> > } > > well for starters ch

Re: [PHP] Stop neurotic posting

2003-08-07 Thread John Manko
perhaps there should be two lists (novice and advanced), and the advanced listed shouldn't answer questions if it's considered trivial enough for the novice list to answer. Curt Zirzow wrote: * Thus wrote andu ([EMAIL PROTECTED]): This is a very busy list, over 100 message in a quiet day a

Re: [PHP] session bug or feature

2003-08-07 Thread Curt Zirzow
* Thus wrote Christian Calloway ([EMAIL PROTECTED]): > Hey Everyone, > > I am running Apache 2.047 with PHP (as module) 4.3.2. I ran into something > interesting and I wanted to know if it was a bug, or actually supposed to be > that way. Given the following lines of code: > > > session_start()

[PHP] for loop and FTP

2003-08-07 Thread Kevin Millecam
Hi all, You can probably tell I'm pretty new at this. I need to grab five pages from a web site every day and then FTP those pages to another site. I was wondering if I should grab all five pages (and store them somewhere) and then FTP all five. Or if I could keep the FTP connection open while

[PHP] mysql_error() problem?

2003-08-07 Thread Tyler Longren
Hi, I'm running an UPDATE query on my table. After executing the query, I check mysql_error() to see if there's any errors: if (mysql_error() == "") { // success } else { // failure } mysql_error() is always empty even if the query didn't succeed. So it always thinks it succeeds. I rem

[PHP] php + wddx

2003-08-07 Thread Angelo Marcos Rigo
Hi Maybe anybody has passed by this situation : I have a webserver machine with linux apache 2.0 php 4.2.2 with wddx support and a windows machine with iis server wich have a .Net system wich i need to use a authentication system function . I would like to receive information about what req

RE: [PHP] Re: Password storage system

2003-08-07 Thread Chris W. Parker
> "Daevid Vincent" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > I'm in search of an 'enterprise level' password storage system. Try PMS: Password Management System. I believe it can be found on sourceforge. hth, chris. -- PHP General Mailing List (http://www.php.net/) To unsu

Re: [PHP] greedy preg

2003-08-07 Thread Marek Kilimajer
And what about [^>]* -if there are no html tags skate wrote: Do you need to use ".*?"? If there will be only white characters, use \s* instead. unfortunately there's some content either side of $file before this content is different for each item, so i can't define it in the pattern. -- P

[PHP] FDF support in RedHat

2003-08-07 Thread Cesar Cordovez
Hi List! I know this is old history, but the archives has nothing, the manual is so far away and google is kind of slow this morning, so... Can somebody teach me how to compile php with fdf support in red hat linux 8 as if I where a 5 year old? (which I am =) Thanks. PD. My mother will change

Re: [PHP] Sum a column of values from a MySQL query

2003-08-07 Thread Adam Alkins
Quoting "Ben C." <[EMAIL PROTECTED]>: > I am trying to sum a query of values from a MySQL table. The code I am > using is: > > ---BEGIN CODE #1-- > $sql_2 = "SELECT SUM(partpaidamount) as partpaid > FROM $tb_name > WHERE invoiceid = \"$invoiceid\" > "; > > $result_

[PHP] PHP 4.3.3RC3 Released

2003-08-07 Thread Ilia Alshanetsky
PHP 4.3.3RC3 was just released, hopefully this will be the final release candidate prior to the final release. Please test this release as much possible so that any new/critical bugs maybe uncovered and resolved before the final. If you do find such bugs (hopefully you won't) be sure to label them

[PHP] Re: Building an XML Parser Class

2003-08-07 Thread Greg Beaver
http://pear.php.net/XML_Parser :) Greg -- phpDocumentor http://www.phpdoc.org Donald Tyler wrote: Hi, I am trying to create a Class that will parse an XML document. It all works fine as individual functions but I cant get it to work as a class. For example, when I do the following in my class: x

[PHP] greedy preg

2003-08-07 Thread skate
$contents = preg_replace( "|.*?$file.*?|si", "", $contents ); it's being run on an XML file, where each entry is .. with a $file pointer in there. it works okay, except for the fact that it deletes that record, and every record before it. i can't figure out why it's being greedy? i know i

Re: [PHP] snippet

2003-08-07 Thread David Nicholson
** CORRECTION BELOW ** Hello, This is a reply to an e-mail that you wrote on Tue, 5 Aug 2003 at 11:14, lines prefixed by '>' were originally written by you. > $sFont =submit("font") ? SITE_ROOT . PROG_PATH . submit("font") : ""; it is the same as: if(submit("font")){ $sFont = SITE_ROOT . PR

[PHP] module to display e-mail from source

2003-08-07 Thread Juan Nin
Does anyone know of any module which can display an e-mail from it's source? I mean, that it receives the mails source, and displays it as it is displayed in a webmail for example.. It should be able to hand HTML messages and attachments I searched the web and found nothing... I could take code f

RE: [PHP] Formatted text from mySQL DB

2003-08-07 Thread PHPSpooky
> [snip] > Ah, this question again. Has it been four days already? > [/snip] > > ROFLMFAO! I snorted coffee through my nose!!! :) Eww I do not like coffee in my mouth.. but nostrils! Yuck! PHPSpooky -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: h

[PHP] php calendar suggestion..

2003-08-07 Thread Louie Miranda
I currently downloaded phpcalendar from.. http://www.cascade.org.uk/software/php/calendar/index.php Im amaze how things goes with that software, i just couldnt figure out how to link to a file for a specific date. Can anyone suggest a similar program like this, that is simple and only an admin ca

Re: [PHP] Correct Coding

2003-08-07 Thread Juan Nin
> Is this the best way to do this? > if(isset($Task) && $Task == "Add") { Do something } > I want to check if the variable is set and if so, if it is "Add". why don't just do: if($Task == "Add") { Do something } regards, Juan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, v

RE: [PHP] setting function variables

2003-08-07 Thread Jennifer Goodie
> I am trying to specify a single php file to contain all the > variables and I > just call this file where necessary. What I am running into is > that I want > to do this for all the built in functions (i.e. mssql_query) as > well. I've > tried numerous attempts but can't get it to operate witho

[PHP] session bug or feature

2003-08-07 Thread Christian Calloway
Hey Everyone, I am running Apache 2.047 with PHP (as module) 4.3.2. I ran into something interesting and I wanted to know if it was a bug, or actually supposed to be that way. Given the following lines of code: The problem is, when I set the global variable $foo="rab", when I echo the session v

Re: [PHP] Correct Coding

2003-08-07 Thread Robert Cummings
Looks good. Cheers, Rob. On Thu, 2003-08-07 at 13:09, Christopher J. Crane wrote: > Is this the best way to do this? > > if(isset($Task) && $Task == "Add") { Do something } > > I want to check if the variable is set and if so, if it is "Add". > > > > > -- > PHP General Mailing List (http:/

Re: [PHP] Hitler and Recent Threads

2003-08-07 Thread Ryan A
I pity the poor sap who just joined the list and instead of finding php topics discussed finds quotes,jokes,godwins laws, quirks laws,name calling, referneces to Hitler and other topics... Can we end this now please? -Ryan We will slaughter you all! - The Iraqi (Dis)information ministers site h

Re: [PHP] Correct Coding

2003-08-07 Thread CPT John W. Holmes
From: "Martin Peck" <[EMAIL PROTECTED]> > > > That can generate an error if $Task was never assigned a value. > > > > > > > could you not do > > > > if(@$Task == "Add" ){do something } > > > > to suppress the error of the variable not being set? > > I have never seen php give an error if $Task is n

Re: [PHP] chown / chgrp of a http owned file after upload

2003-08-07 Thread Mike Migurski
>I have written as part of my CMS, an image upload system, now when the >images are placed in the destination folder, they are owned by httpd.root >and I need to get them to be owned by siteuser.sitegroup. > >I have tried to chmod and chgrp it to siteuser.sitegroup but it gives >permission denied e

Re: [PHP] Stop neurotic posting

2003-08-07 Thread Curt Zirzow
* Thus wrote [EMAIL PROTECTED] ([EMAIL PROTECTED]): > > This is a very busy list, over 100 message in a quiet day and most > > people are helpful and decent, don't mind reading and learning. > > Unfortunately there are some who mostly post stuff like 'read the > > manual' and other shit like tha

Re: [PHP] error: cannot redeclare ()

2003-08-07 Thread CPT John W. Holmes
From: "Martin Towell" <[EMAIL PROTECTED]> > I'm getting the following error: > > PHP Fatal error: Cannot redeclare () (previously declared in > /path/to/file/functions.inc:19) in /path/to/file/functions.inc on line 0 > > Anyone have any ideas how a no-name function could be generated? > Line 19 co

Re: [PHP] Edit a page in PHP

2003-08-07 Thread Jeremy Darling
Thanks greatly thats exactly what I was looking for. "John W. Holmes" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Jeremy Darling wrote: > > This is driving me nuts. I know it can be done, cuz I've seen it done > > before, but I can't figure it out. > > > > I would like to have a

Re: [PHP] gettin parameters from url, architecture question

2003-08-07 Thread Chris Shiflett
--- Merlin <[EMAIL PROTECTED]> wrote: > What do you think? Maybe there is another possiblitiy=? Are you certain the site in question doesn't simply parse the HTML files as if they were PHP? Even so, I do not understand how you think one of these URLs is more "search optimized" than the other: htt

Re: [PHP] Unzipping Files

2003-08-07 Thread Adam Alkins
Try the zziplib library, http://www.php.net/manual/en/ref.zip.php -- Adam Alkins http://www.rasadam.com Quoting Matt Palermo <[EMAIL PROTECTED]>: > Anyone know where I can find tutorials or examples on how to use the > gunzip, gzip, and other commands using PHP to work with compressed > files?

Re: [PHP] Stop neurotic posting

2003-08-07 Thread Robert Cummings
On Wed, 2003-08-06 at 16:36, Chris Sherwood wrote: > > or what does it take to actually give a reasonable answer... if I am gonna > be rude I wont say anything... doesnt any one remember their mother telling > them if you dont have anything nice to say dont say anything at all? > That kind of t

RE: [PHP] How to point at a spot and get relevant information?

2003-08-07 Thread Yao, Minghua
Robert and skate, Thank you for your reponses. The problem is there are thousands of spots on the plot. The locations are random. -MY -Original Message- From: Robert Cummings [mailto:[EMAIL PROTECTED] Sent: Thursday, August 07, 2003 11:00 AM To: skate Cc: Yao, Minghua; [EMAIL PROTECTED]

RE: [PHP] Best PHP CMS

2003-08-07 Thread Ezra Nugroho
Also look at http://www.caravelcms.org Quoting Matt Schroebel <[EMAIL PROTECTED]>: > > > -Original Message- > > From: Anthony [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, August 05, 2003 9:52 AM > > To: [EMAIL PROTECTED] > > Subject: [PHP] Best PHP CMS > > > > > > I'm just looking f

[PHP] Re: on specific time in the month do script!!

2003-08-07 Thread Bobby Patel
look into executing your php script through cron. (Cron is a Unix schedular and nothing to do with PHP). Or you can use Tash Schedular (on windows servers, I guess). Also, check the archives but I think this issue was answered as above. "Nabil" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PRO

Re: [PHP] Command line php....

2003-08-07 Thread John Nichel
That did it. Thanks. Jason Wong wrote: On Wednesday 06 August 2003 11:11, John Nichel wrote: 4.3.2 Try disabling output buffer in php.ini. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Piping and the CLI parser

2003-08-07 Thread Nicolas Frisby
Sorry Jason, I didn't catch my typo about the echo program until recently. Regardless of that, do you know anything of how the piping mechanism works? Thanks for your time, -Nick "Jason Wong" <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > On Tuesday 05 August 2003 13:25, Nico

Re: [PHP] Parse error not understood

2003-08-07 Thread CPT John W. Holmes
From: "Chris Blake" <[EMAIL PROTECTED]> [snip] > //If "Delete User" is selected-- > if ( $_REQUEST['useroption'] == 'delete') > { [snip] > No matter which option I select I get the following output : > -- > Parse error: parse error, unexpected $ in > /var/www/html/Sessions/userman.php o

RE: [PHP] dev style guide

2003-08-07 Thread Mike Migurski
>At the risk of starting a flame/religious/holy war I find the One True >Brace style to have some inconsistency if it is as above. The 'function' >does not open the curly brace at the EOL, but the 'if' does. Yeah, that's pretty much the definition of the OTBS. :) I'm not sure why I find it so nat

[PHP] Re: [PHP-WIN] Re: Can't Pass variable to other page

2003-08-07 Thread Miha Nedok
Or access you variables via $_GET. $varname = $_GET['varname']; -Mike On Thu, 7 Aug 2003, Ben wrote: > Date: Thu, 7 Aug 2003 10:25:57 +0100 > From: Ben <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED], [EMAIL PROTECTED] > Subject: [PHP-WIN] Re: Can't Pass variable to other page > > I had the same

Re: [PHP] moderator: has anything on this list changed?

2003-08-07 Thread Juan Nin
From: "Curt Zirzow" <[EMAIL PROTECTED]> > well, I guess we are on are own, the bcc bounced :/ what about [EMAIL PROTECTED] or [EMAIL PROTECTED] ? regards, Juan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] problem using unlink()

2003-08-07 Thread James Brash
thanks for your help, I have already its 777 >You need to chmod or chown the directory where the file is located. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Running script produces no output

2003-08-07 Thread Chris Blake
Hi Jacob, The script does indeed run, and I have since added the following : $shell_return = shell_exec("./info.sh" . " 2>&1"); This pointed out to me that the error was in the script itself, and not the php... I have now sorted this out so it works as expected... Thanks for your time in assis

Re: [PHP] for the love of god, remove me

2003-08-07 Thread Joseph Bannon
> It's not usless if you read the page. > [EMAIL PROTECTED] As I said, the page is useless. This doesn't work either. J. > On Sun, 2003-08-03 at 13:45, Joseph Bannon wrote: > > > PHP General Mailing List (http://www.php.net/) > > > To unsubscribe, visit: http://www.php.net/unsub.php > > > >

RE: [PHP] Attention everyone 0-t

2003-08-07 Thread Chris W. Parker
Ryan A on Wednesday, August 06, 2003 4:42 PM said: > for some reason over 90% of all posters to this list has been > blacklisted by spamcop... And how do you know this? > any ideas on what we can do about it? Dunno. c. -- PHP General Mailing List (http://www.p

RE: [PHP] Stop neurotic posting

2003-08-07 Thread Chris W. Parker
Jennifer Goodie on Wednesday, August 06, 2003 11:27 AM said: >> and in any event they're often things I >> wouldn't have thought about looking up anyway. > > > I love how the argument for not doing research is not having the > time/not wanting to waste time. That

RE: [PHP] mail

2003-08-07 Thread Jay Blanchard
[snip] * Thus wrote Jay Blanchard ([EMAIL PROTECTED]): > > GIS for "send attachments with PHP mail()" GIS? Google Search? [/snip] Information :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] moderator: has anything on this list changed?

2003-08-07 Thread Curt Zirzow
* Thus wrote Curt Zirzow ([EMAIL PROTECTED]): > > I'm bcc'ing this to [EMAIL PROTECTED], hopefully someone over there > can help the list out with this issue. well, I guess we are on are own, the bcc bounced :/ Curt -- "I used to think I was indecisive, but now I'm not so sure." -- PHP Gener

[PHP] Re: How to run PHP from a MySQL DB

2003-08-07 Thread Jeremy Darling
Thanks Alexandru, I just picked PHP back up and am quite a bit rusty on where to find information these days. Jeremy "Alexandru Costin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > Please take a look at http://php.weblogs.com/ their first article is > exactly abou

Re: [PHP] greedy preg

2003-08-07 Thread John W. Holmes
skate wrote: What are the possible values of $file? Are you looking to replace just a specific occurance of a $file between tags? Maybe this will help: $contents = preg_replace("|[^<]*$file[^<]*|si","",$contents); or just use the 'U' modifier for "ungreedy"... i'm looking to replace the entir

RE: [PHP] error: cannot redeclare ()

2003-08-07 Thread Martin Towell
thnx - I'll see if this help.. -Original Message- From: Joe Harman [mailto:[EMAIL PROTECTED] Sent: Thursday, 7 August 2003 4:38 PM To: 'Martin Towell'; [EMAIL PROTECTED] Subject: RE: [PHP] error: cannot redeclare () Hi Martin... I am guessing you have a nested function that is being rede

Re: [PHP] Help with Mod mathematical function

2003-08-07 Thread Jason Wong
On Wednesday 06 August 2003 18:19, Dean Baldwin wrote: > I am porting a vb application across to php but have come up against a > small problem. The code uses the Mod calculation however I cannot find any > Mod in php. The line of code that uses it looks like: > > Data = (index Mod 16) > > Anybody

Re: [PHP] Display Records in Multiple Pages help please !

2003-08-07 Thread daniel
100k = 100k records = 200 meg hehe > a sample from my db class, i had to store the total in a session as > calling the total on every page on a large database was painful doing > count(*) or even SQL_CALC_FOUND_ROWS, on a small database u just cant > tell but on a database of 100k + it was painful

[PHP] Hitler and Recent Threads

2003-08-07 Thread Phillip Blancher
OK Everyone... Isn't this a PHP list... -- Best Regards, Phil Phillip Blancher Web Developer & Lead Graphic Designer < http://www.ontarioweb.ca > 1-866-209-0349 < [EMAIL PROTECTED] > - Original Message - From: "Robert Cummings" <[EMAIL PROTECTED]> To: "Chris Sherwood" <[EMAIL PROTECTED]>