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
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
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:
[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
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:
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
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
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
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
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
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
if you turn on --enable-bcmath, you can use de bcmod function equivalen to
Mod operator from visual basic
Un saludo, Danny
Dean
(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
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(){
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
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.
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 - 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
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
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
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
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
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
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
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
* 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 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
[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
[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]
* 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
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
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
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
--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
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:
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
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
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
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 :-)
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
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
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...
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.
--
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
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
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
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
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
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
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
50 matches
Mail list logo