Re: [PHP] Stop neurotic posting

2003-08-06 Thread Jason Wong
On Wednesday 06 August 2003 14:26, Curt Zirzow wrote: Now noisyness from the 'helpers'... I have noticed at times that a question is answered the same way like 10 times by 10 different people; this I consider more noisy than a RTFM post. And what I find really annoying is that some helpers

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

2003-08-06 Thread Ben C.
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_2 = @mysql_query($sql_2,$connection) or

Re: [PHP] Running script produces no output

2003-08-06 Thread Jacob Vennervald Madsen
Does the script work when you run it by hand? Try to insert an echo TESTER in the top the shell script to make sure something is sent to stdout. And then check in your php script that you receive the message. Best regards, Jacob Vennervald On Wed, 2003-08-06 at 08:38, Chris Blake wrote:

RE: [PHP] dev style guide

2003-08-06 Thread Jay Blanchard
[snip] They use the One True Brace Style, which is encouraging: function fooFunction($arg1, $arg2 = '') { if (condition) { statement; } return $val; } [/snip] At the risk of starting a flame/religious/holy war I find the

Re: [PHP] OO function overloading?

2003-08-06 Thread Jean-Christian IMbeault
Greg Beaver wrote: This statement isn't entirely correct, overloading is possible with the overload extension. True. Nice work. But still a hack in my mind :) (though a *very* clean hack). Jean-Christian Imbeault -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Re: PHP Fusebox

2003-08-06 Thread Alexandru COSTIN
Hello Ralph, Anyway, as a sample of a very powerful and open Krysalis application, we have an already open CMS built upon Krysalis - the Komplete Lite CMS (I am proposing the lite for now as it's open source). Komplete Lite was designed for Krysalis and I can also say that Krysalis

Re: [PHP] problem using unlink()

2003-08-06 Thread Pascal Miquet
Hello, I'd suggest to have a look at your php.ini and see the value of some execute external commands. Don't remember exactly the name of this flag. HTH Regards Pascal Miquet Le mar 05/08/2003 à 13:53, James Brash a écrit : Hi, I have a problem using unlink(); on a system using FreeBSD and

RE: [PHP] Re: PHP Fusebox

2003-08-06 Thread Ralph Guzman
I am not set on Fusebox, but the reason I've been considering it is because I came across ezPublish 3, that uses this framework. I am looking for a CMS with a framework that I can use to develop my future projects. Are there any PHP/MySQL based XML/XSLT CMS that I can look at? I am just doing

[PHP] Running script produces no output

2003-08-06 Thread Chris Blake
Greetings learned PHP(eople); I have a small script sitting in my web directory which I have called upon as follows : ?php shell_exec('./info.sh'); ? The script is not being run, yet I can do things like ?php $info=shell_exec('ls -l'); echo 'pre$info/pre'; ? ..which produce output to the

[PHP] Stop Neurotic Posting

2003-08-06 Thread Sancar Saran
Why ? So many people always asking same questions. Many of them so lazy. They aren't search lists archieve or google, they just ask or wait for the somebody do his/her job. It just classic, if people doesn't ask same stupid questions, there is no RTFM or similar things. This is about human

Re: [PHP] why doesn't default values for this function work - resending because of bad formatting

2003-08-06 Thread anders thoresson
What is this mess that you have here :-) I don't have a clue! :) It looks allright here, when I press send. How exactly are you calling the function when no $max_length is passed? If you're doing something like: secure_string($string, '', 'error msg'); Just secure_string($string);. In that

Re: [PHP] Help with Mod mathematical function

2003-08-06 Thread desa15
if you turn on --enable-bcmath, you can use de bcmod function equivalen to Mod operator from visual basic Un saludo, Danny Dean

[PHP] Re: Password storage system

2003-08-06 Thread Sek-Mun Wong
(This is a bit off topic, but I though might be helpful to some developers, it deals more with security concepts than PHP per se) I may be going out on a limb here, but I doubt you'll find something in the GPL/open source domain. we've built our own and pretty much does what you've described

[PHP] Class extension problem

2003-08-06 Thread Joshua Groboski
Ok, I have a parent class (CMS) and a child class (WebSite extends CMS). There is some important stuff going on in the constructor for CMS that I think should be happening when I instantiate a new WebSite. Look at the following example: ?php class CMS { var $prop1 = a; function CMS(){

RE: [PHP] Stop neurotic posting

2003-08-06 Thread Ford, Mike [LSS]
On 06 August 2003 08:25, Daryl Meese mailto:[EMAIL PROTECTED] wrote: For my part on at least one occassion I posted a question to the list after reading the manual (which in that case was clear as mud) and got the RTFM. I was tempted to respond with IDRTFM - GFY. Well, easy way to avoid

Re: [PHP] Re: Parse error not understood

2003-08-06 Thread Miles Thompson
Yes, I'm top posting, pls forgive. This is a situation where an editor which has built-in brace matching really helps - if in the midst of looking one remembers to use it. Another tip, although it probably wouldn't help here: Save the code with a .phps extension and look at it in the browser.

Re: [PHP] How can I change ? to %3F

2003-08-06 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Tue, 5 Aug 2003 at 23:16, lines prefixed by '' were originally written by you. Is it possible to change the ?, :, and / characters to their respective hex(?) values automatically? That is without having to use str_replace for each one?

php-general Digest 5 Aug 2003 13:40:00 -0000 Issue 2218

2003-08-06 Thread php-general-digest-help
php-general Digest 5 Aug 2003 13:40:00 - Issue 2218 Topics (messages 158230 through 158279): Re: Display Records in Multiple Pages help please ! 158230 by: daniel.electroteque.org 158277 by: Justin French Re: Regular Expression 158231 by: Curt Zirzow Extracting

[PHP] Re: manipulate mail header

2003-08-06 Thread Ivo Fokkema
Klaus Linzner [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi! Its me again. Sorry for the last post - it was quite clumsy. In fact, it wasn't really what I need. I have a mail and I want to fake the attachment. Its always the same String in the header that I need, but I need to

[PHP] Is fwrite atomic or not?

2003-08-06 Thread Herouth Maoz
I've seen answers both ways in the archive of this list, and I wonder what is true. Suppose I open a file in append mode - like a log file. Two different HTTP connections fire up two different PHP processes which both open the same file. Then they both do an fwrite( $fp, some string ). Is the

[PHP] Piping and the CLI parser

2003-08-06 Thread Nicolas Frisby
Greets everybody. My question regards psuedo-DOS (XP cmd.exe) piping and the CLI php parser. If you could help please continue reading. The documention specifies that the CLI php parser sets up STDIN and its kin. It does in fact work fine assuming the STDIN is the console, but while I was just

[PHP] How to run PHP from a MySQL DB

2003-08-06 Thread Jeremy Darling
I have a database of code pages and was wondering if their is a way to actually run the code from the Database as if it was part of a page. Thanks, Jeremy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Stop neurotic posting

2003-08-06 Thread Mike Mannakee
Hey - it doesn't actually seem to matter whether one does research or not. Almost every single post I make, someone just HAS to tell me to search google, which is maddening. The whole idea behind a forum like this is to be able to communicate with others who may be able to help, and who you may

RE: [PHP] PHP Name of Script -0-T-

2003-08-06 Thread Chris W. Parker
Ryan A mailto:[EMAIL PROTECTED] on Wednesday, August 06, 2003 6:33 AM said: I want to have an index of services available on my site.. [snip] I have no idea what you're talking about. Well, actually, I have a /guess/ but I'm not sure if it's correct. Are you saying you want to have a list

[PHP] RE: Downloding files once

2003-08-06 Thread Boaz Yahav
This may work but i can't help thinking that this is the wrong way to go. Downloading 1GB or 2GB files via fpassthru doesn't feel right... Sincerely berber Visit http://www.weberdev.com/ Today!!! To see where PHP might take you tomorrow. Share your code : http://addexample.weberdev.com

Re: [PHP] Downloding files once

2003-08-06 Thread Curt Zirzow
* Thus wrote Boaz Yahav ([EMAIL PROTECTED]): I thought of using a download function that uses headers and readfile() or fread(). This way i can check who is the user and send / not send the file. However, this does not seem to work with such big files. you most likely are running into the

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

2003-08-06 Thread Alexandru COSTIN
php accelerator : http://www.google.com/search?q=php+accelerator As for the tmp solution - this is indeed the approach Alexandru -- Alexandru COSTIN Chief Operating Officer http://www.interakt.ro/ +4021 312 5312 Jeremy Darling [EMAIL PROTECTED] wrote in message

RE: [PHP] dev style guide

2003-08-06 Thread Jay Blanchard
[snip] Just a remark but isn't it pointless to use Hungariannotation in a language that is by default typeless??? [/snip] We use it becuase we have a group of programmers, so the notation makes it easier for one in the group to understand the intention of another in the group. The notation also

RE: [PHP] Stop neurotic posting

2003-08-06 Thread Jay Blanchard
[snip] Andu's right. I've left several lists in the past, not because of people listing questions where they should have read the manual first, but because I couldn't stand the sad b**ds who get their kicks by belittling people with less knowledge but more manners than themselves. [/snip]

Re: [PHP] Handling DELETE requests

2003-08-06 Thread Curt Zirzow
* Thus wrote Seairth Jacobs ([EMAIL PROTECTED]): Under Apache 1.3, how can I respond to DELETE request with a PHP script? I have no problem with GET, POST, or PUT. The only thing I found was the Scripts directive, but that requires a specic script to be named. I am looking for something

RE: [PHP] preventing output dump of passthru()

2003-08-06 Thread Chris W. Parker
David Nicholson mailto:[EMAIL PROTECTED] on Tuesday, August 05, 2003 5:12 PM said: $output = array(); exec(command,$output); $output = implode(,$output); That's a good idea! Well how about this? (posted in another message) $output = explode(\n,chop(`$command`)); That is working great

Re: [PHP] Stop neurotic posting

2003-08-06 Thread Chris Sherwood
well I have been watching this post all morning and now into the afternoon.. personally I think there is differences in responses and well there are definite persons with an elitist attitude, some of these people are newbies... under immense amounts of pressure to pull something off... what does

Re: [PHP] greedy preg

2003-08-06 Thread skate
Yeah, it should be. What kind on content can be around $file and also within the item tag? here's a snip of the xml file... it's finding the $file correctly, but deletes all records from the beginning of the file onwards. it leaves the xml file with valid xml ... news at the start... so for

RE: [PHP] Stop neurotic posting

2003-08-06 Thread andu
--On Wednesday, August 06, 2003 13:11:52 -0700 Chris W. Parker [EMAIL PROTECTED] wrote: Aside from the fact that $example1 != $example2, they are different in ATTITUDE. Which was the original issue of this thread. Seems like few (with a temporary advantage of knowledge) would consider not to

[PHP] RE: Downloding files once

2003-08-06 Thread Boaz Yahav
What about using mod_auth_mysql to add/remove usernames and passwords from the download server in real time? -Original Message- From: Manuel Lemos [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 06, 2003 7:52 PM To: Boaz Yahav Cc: [EMAIL PROTECTED]; Igal Rubinstein; Matt Wade Subject:

Re: [PHP] 4.3.3RC download mirror sites?

2003-08-06 Thread Jason Wong
On Wednesday 06 August 2003 14:28, Jean-Christian IMbeault wrote: I guess that is what I am saying since when I click on the download link I get: The operation timed out when trying to connect to downloads.php.net If the main php site is slow/down then google php mirror sites -- Jason

Re: [PHP] shell_exec

2003-08-06 Thread Christophe Chisogne
Rodney Green wrote: My web server runs as the user 'apache.' (...) the script successfully from the command line as root but when I run it in the browser the shell script executes but fails. (...) I've set the permissions of the script to be executable for anyone. Shell side: - must be readable

RE: [PHP] Stop neurotic posting

2003-08-06 Thread Chris W. Parker
Gabriel Guzman mailto:[EMAIL PROTECTED] on Wednesday, August 06, 2003 1:10 PM said: On Wed, 2003-08-06 at 11:44, Chris W. Parker wrote: A bad answer would be: RTFM http://php.net/preg_match; A good answer would be: That can be done with a regular expression. The function you're

Re: [PHP] why doesn't default values for this function work - resending because of bad formatting

2003-08-06 Thread Jason Wong
On Wednesday 06 August 2003 01:06, anders thoresson wrote: I'm having problem with a function that I'll use to validate user input before passing it to MySQL. For strings, I want to make sure that they aren't to long, so I have written this function: What is this mess that you have here :-)

[PHP] PHP P2P File sharing

2003-08-06 Thread Joe Harman
Hello, I curious if anyone knows of a PHP based Peer-to-Peer file sharing program out there! I have a friend that wants to implement this with his web server.. Joe Harman

[PHP] Re: checking how many records are returned?

2003-08-06 Thread Nadim Attari
Is there a way to check how many records are returned from a query to the database? Which database? MsSQL? mySQL? mSQL? PostgreSQL? ? If it's mySQL then try mysql_num_rows -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Installer Software

2003-08-06 Thread Rodney Green
I am making an application in PHP, but I want it to run on a user's local computer... but I need to find someway to bundle this so that when it is distributed, the installer installs PHP for windows... then copys the PHP files to the correct directory, then puts a short cut on the desktop...

[PHP] Re: Downloding files once

2003-08-06 Thread Manuel Lemos
Hello, On 08/06/2003 03:56 PM, Boaz Yahav wrote: What about using mod_auth_mysql to add/remove usernames and passwords from the download server in real time? Never tried but it could work. The only problem is that for basic auth you need to keep passwords in plain text in the database. --

RE: [PHP] Formatted text from mySQL DB [nl2br]

2003-08-06 Thread PHPSpooky
Astrum! $wow = nl2br($myrow[data]); echo $wow; works excellect for me!! Thanks!! Dominor. . PHPSpooky -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Stop neurotic posting

2003-08-06 Thread Juan Nin
and please don't answer saying that you aggree or don't agree with me I don't care just cut off with this thread please :) Juan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2003-08-06 Thread Alexandru COSTIN
Hi, Please take a look at http://php.weblogs.com/ their first article is exactly about this (both PostgreSQL and something about MySQL - see the comment) Alexandru -- Alexandru COSTIN Chief Operating Officer http://www.interakt.ro/ +4021 312 5312 Jeremy Darling

Re: [PHP] greedy preg

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

[PHP] Problem execucting nusoap.php

2003-08-06 Thread Daniel Ke
Hi, I am new to php and tried to test googlesearch.php file (as attachment) from Chris Petersen. Which invokes nusoap.php file. I have all the necessary class files that nusoap.php included and put in the same directory with googlesearch.php and nusoap.php file. Also I have Google's licence

RE: [PHP] PHP P2P File sharing

2003-08-06 Thread Joe Harman
Hey Chris.. Thanks for the insite... I was basically trying to provide a way for a community of graphic/3D artist to share their files... Like clothes and hair for poser... It would be great to take advantage of a network like the Gnuetella one... I will look into the overnet site... I may just

Re: [PHP] Convert GIF to JPG with or without GD

2003-08-06 Thread Daniel Ward
The following code works on Win2K, Apache 1.3.27, PHP 4.3.2 $gif = imagecreatefromgif('image.gif'); $w = imagesx($gif); $h = imagesy($gif); $jpg = imagecreate($w, $h); // or $jpg = imagecreatetruecolor($w, $h); but colors are off imagecopy($pic, $im, 0, 0, 0, 0, $w, $h); // or