"Michael Sims" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
On Sat, 28 Dec 2002 02:55:44 +0530, you wrote:
<--sniped -->
#! /usr/bin/php -q
&1`;
echo "the value in r is $r";
?>
If you need more info on the "2>&1" part, consult the Advanced Bash
Scripting Guid
"Maciek Ruckgaber Bielecki" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> how about :
> #!/usr/local/bin/php -q
>
> $file = 'no_file';
>
> if(!is_file($file))
> $mess = "no such file";
> else
> $mess = shell_exec("ls $file");
>
>
I am trying to make a calculator that figures out the total price
(calculates tax sums up price for print size times quantity etc.) and
the mechanism all works fine - but only when the user checks
SEQUENTIALLY from their list of available picture.
The user should be able to select from their list
[EMAIL PROTECTED] (Jason Sheets) wrote in
[EMAIL PROTECTED]:">news:[EMAIL PROTECTED]:
Have you got any documentation of it to share?
> If you go to www.hotscripts.com they have several PHP application
> frameworks listed.
>
> I've investigated PHPLIB, and horde (http://www.horde.org) but wound
Jason Sheets wrote:
If you go to www.hotscripts.com they have several PHP application
frameworks listed.
I've investigated PHPLIB, and horde (http://www.horde.org) but wound up
creating my own framework because I have not yet found a well documented
framework that does what I need it to do.
Wh
On Fri, Dec 27, 2002 at 11:12:22AM -0500, Andrei Zmievski wrote:
> The PHP developers are pleased to announce the immediate availability of
> PHP 4.3.0, the latest and greatest version of this extremely popular and
> widely used scripting language.
>
> This release contains a multitude of changes,
if i have a php script containing some functions, then all i have to do is
include() the file and then call the functions.
if i had an object (taking the example from php.net):
do_foo();
?>
what is the point of having the object, when i could just call the
functions?
what a
On Sat, 28 Dec 2002 02:55:44 +0530, you wrote:
>I tried a simple command line script, in all cases no_file does not exist. I
>do not want the command line script to show the error on the screen but to
>deliver it in the variable $r. But alas, in all 3 cases i get 'rm: canoot
>remove `no_file': No
If you go to www.hotscripts.com they have several PHP application
frameworks listed.
I've investigated PHPLIB, and horde (http://www.horde.org) but wound up
creating my own framework because I have not yet found a well documented
framework that does what I need it to do.
Jason
On Fri, 2002-12-27
php-general Digest 28 Dec 2002 00:13:54 - Issue 1788
Topics (messages 129424 through 129481):
Re: Cheap Hosting
129424 by: Shashwat Nagpal
129428 by: David T-G
129442 by: Stephen
129445 by: 1LT John W. Holmes
129447 by: Edward Peloke
129451 by:
Hello,
On 12/27/2002 06:00 PM, Sridhar Moparthy wrote:
I have information about some processes in the database that tells different
process dependencies. I need to display that information as a process flow
diagram. Do you know how to prepare and display process flow diagrams
dynamically. Do you
how about :
#!/usr/local/bin/php -q
regards,
Maciek Ruckaber Bielecki
On Sat, 28 Dec 2002, gamin wrote:
>
> "Maciek Ruckgaber Bielecki" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > try :
> > > $message = shell_exec('rm file');
> > ?>
>
>
> Tried
The only one I know is FuseBox www.fusebox.org.
[EMAIL PROTECTED] (Jeff D. Hamann) wrote in
[EMAIL PROTECTED]:">news:[EMAIL PROTECTED]:
> What application frameworks are avail for php?
>
> Jeff.
>
--
*** s2r - public key: (http://leeloo.mine.nu/s2r-gmx.sig)
--
PHP General Mailing List (h
"Maciek Ruckgaber Bielecki" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> try :
> $message = shell_exec('rm file');
> ?>
Tried that too, :-( no success
gamin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.ne
IE has some bugs when you have big forms when using []
test with mozilla or netscape
if thats the case -- then errr well umm use what works
On Fri, 2002-12-27 at 12:50, Jeff D. Hamann wrote:
> I have a monster form (really a funky grid - hey the client is always right)
> that does not display
try :
--
"Few are those who see with their own eyes and feel with their own
hearts."
Albert Einstein
-
Maciek Ruckaber Bielecki
On Sat, 28 Dec 2002, gamin wrote:
> H
can you give us some examples of the data ...
the example I would like to see is: based on this information this is
what should be displayed
On Fri, 2002-12-27 at 11:48, Sridhar Moparthy wrote:
> Hi Every one,
>
> I have information about some processes in the database that tells different
> p
Hello,
Im running PHP 4.0.6 on Red Hat 7.2
I tried a simple command line script, in all cases no_file does not exist. I
do not want the command line script to show the error on the screen but to
deliver it in the variable $r. But alas, in all 3 cases i get 'rm: canoot
remove `no_file': No such
o of course !!
mine won't work in !UNIX ;-)
On Fri, 27 Dec 2002, Johannes Schlueter wrote:
> On Friday 27 December 2002 21:46, Maciek Ruckgaber Bielecki wrote:
> > depending on what you need, sometimes this does the trick for me :-)
> >
> >exec("ls path/",$files);
> >
> >
All,
Seasons greeting to all.
I'm running PHP version
C:\>php-cgi.exe -v
PHP 4.3.0RC2 (cgi-fcgi), Copyright (c) 1997-2002 The
PHP Group
Zend Engine v1.4.0, Copyright (c) 1998-2002 Zend
Technologies
under windows 2000 server for production and windows
2000 prof for development. I am using IIS 5 a
> I was looking at the PHP 4.3 changelog, and it said that
> mysql_escape_string is deprecated. Is this true, and if so, what
should
> I be using instead?
Probably addslashes() or magic_quotes_gpc...
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy
to
hi there !!!
check your HTML code, probably you miss something, it may be why the
form does not display properly always, have a look on
WWW: http://www.w3c.org/People/Raggett/tidy/
:-)
--
"Few are those who see with their own eyes an
What application frameworks are avail for php?
Jeff.
--
Jeff D. Hamann
Hamann, Donald & Associates, Inc.
PO Box 1421
Corvallis, Oregon USA 97339-1421
Bus. 541-753-7333
Cell. 541-740-5988
[EMAIL PROTECTED]
www.hamanndonald.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
I have a monster form (really a funky grid - hey the client is always right)
that does not display entirely each time the form is displayed. Some times,
quite repeatably, the bottom half of the form's select boxes will be blank
(not good). Is there a way to compress the web page before it gets sent
depending on what you need, sometimes this does the trick for me :-)
exec("ls path/",$files);
foreach($files as $value)
{
$elem .= $value."\n";
}
echo $elem;
--
There is no builtin function to do this in one step but it's not in anyway
difficult..
http://www.php.net/manual/en/function.opendir.php
-Kevin
- Original Message -
From: "Dade Register" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, December 27, 2002 1:34 PM
Subject: [PHP] dir
A question for you all. Is there a php function that
could count the number of files in a dir? Using
FreeBSD and php4.2.2 and Apache. Thanx.
-Dade
__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
--
OK, little bit of a brain cramp here. I wasn't clueing in that
$tmp=mysql_fetch_array($res) was an array and was trying to do something
again that was already there.
Thanks for the help.
Beauford
- Original Message -
From: "Marek Kilimajer" <[EMAIL PROTECTED]>
To: "Beauford.2002" <[EMAIL
This might be your answer.
http://www.phpbuilder.com/columns/florian19991014.php3
James
-Original Message-
From: Jimmy Brake [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 27, 2002 1:31 PM
To: [EMAIL PROTECTED]
Subject: [PHP] uploading + downloading Large files ...
Hi!
My users nee
I was looking at the PHP 4.3 changelog, and it said that
mysql_escape_string is deprecated. Is this true, and if so, what should
I be using instead?
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the
There is a limit in the php.ini saying how big a upload can be.
Also I beleive there might be a limit in apache, but I'm not sure.
But uploading 100mb files over HTTP is a very dodgy thing to be doing, if
anything goes wrong the user has to start again. Downloading 100mb is no
problem, but uploadi
Hi!
My users need to upload and download large files (100 + megs). Right now
I only allow 100k to be uploaded. Will I need to do anything to
php/apache to make sure things continue to be reliable?
My google search only found threads with bad endings and they had much
smaller files. Should i just
Just make a php file with:
\n";
echo "\n\n_SERVER\n";
print_r ($_SERVER);
echo "\n\n_ENV\n";
print_r ($_ENV);
echo "\n\n_COOKIE\n";
print_r ($_COOKIE);
echo "\n\n_GET\n";
print_r ($_GET);
echo "\n\n_POST\n";
pri
You might look at the PHP manual, also create a page that executes the
phpinfo() function, this will a lot of the variables you may be looking
for.
Jason
On Fri, 2002-12-27 at 10:27, Brian J. Celenza wrote:
> Hello!
>
> I'm looking for a link that contains a list/description of all the built in
Hello!
I'm looking for a link that contains a list/description of all the built in
$PHP_ variables (the ones that show browser type, etc.). Can't seem to
locate them, if the page exists.
Thanks!
--
---
Brian J. Celenza
[EMAIL PROTECTED]
Stop thinking of it as a multidimesional array.
It is simply an two dimensional array of two dimensional arrays.
*** REPLY SEPARATOR ***
On 27/12/2002 at 11:29 AM Beauford.2002 wrote:
>Great. now can you explain why this works. I'm confused at how PHP knows
>this is a m
while($tmp=mysql_fetch_array($res)) { // now $tmp is now an array (as the function name suggests)
$rows[]=$tmp; // by assigning to $rows[], we make $rows an array, adding array $tmp as the last element
}
and this makes it multidimensional
Beauford.2002 wrote:
Great. now can you explain why
i gess it is just a small example of how control your program flux using
the propertie ACTION of the tag, if the code is not included on the
CD as Stephen points, it will be explained later, so at this point in the
book you probably should be paying attention to the order in which scripts
are exec
Great. now can you explain why this works. I'm confused at how PHP knows
this is a multidimensional array. I was trying something like $tmp[][]=???.
TIA
- Original Message -
From: "Marek Kilimajer" <[EMAIL PROTECTED]>
Cc: "Beauford.2002" <[EMAIL PROTECTED]>; "PHP General"
<[EMAIL PROTECT
Dotserv are high response and fairly cheap depending on what you need.
Or there's phpwebhosting.com
http://www.dotserv.com
http://www.phpwebhosting.com
> -Original Message-
> From: Edward Peloke [mailto:[EMAIL PROTECTED]]
> Sent: 27 December 2002 18:29
> To: PHP List
> Subject: RE: [PHP] C
thanks guys sleep did the miracle for me :-)
--
"Few are those who see with their own eyes and feel with their own
hearts."
Albert Einstein
-
Maciek Ruckaber Bielecki
The PHP developers are pleased to announce the immediate availability of
PHP 4.3.0, the latest and greatest version of this extremely popular and
widely used scripting language.
This release contains a multitude of changes, bug fixes and improvements
over the previous one, PHP 4.2.3. It further el
My guess is they are explained later in the book for on the CD if it came
with one. Most programming books do some with one now and days...
- Original Message -
From: "Cerebrimbor" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, December 27, 2002 8:38 AM
Subject: [PHP] processfo
I use www.ht-tech.net Very reliable and I currently pay $12.95 a month.
Eddie
-Original Message-
From: 1LT John W. Holmes [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 27, 2002 10:43 AM
To: Stephen; Rick Emery
Cc: PHP List
Subject: Re: [PHP] Cheap Hosting
That's only 8 days of work
I'm reading "PHP and MySQL for Dummies", to try to develop a very small
web database. In the examples, I see many references to:
echo ""
and
echo ""
but I have no php scripts called processform.php or checkAll.php.
They seem to be fairly common scripts considering the number of Google
hits I get
That's only 8 days of work for a whole year of hosting... come on! :)
John
- Original Message -
From: "Stephen" <[EMAIL PROTECTED]>
To: "Rick Emery" <[EMAIL PROTECTED]>
Cc: "PHP List" <[EMAIL PROTECTED]>
Sent: Friday, December 27, 2002 10:29 AM
Subject: Re: [PHP] Cheap Hosting
> That i
Yes, i thought it was simple, just wasn't escaping a forward slash
$string = preg_replace( "/(|)/i" , "\n",$string);
"Tom Beddard" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I'm new to using regular expressions so i'm struggling a bit in making an
> expre
PHP can pass references to objects around exactly the same way you pass
references to normal variables.
-Rasmus
On Thu, 26 Dec 2002, Erik Franzén wrote:
> Say the you are going to create a simple forum and you want to have a number
> of classes:
>
> Class Sql - handles the DB interface
> Class U
That is way to expensive for me. I'm only 13 with a $25 a day paying job...
- Original Message -
From: "Rick Emery" <[EMAIL PROTECTED]>
To: "Stephen" <[EMAIL PROTECTED]>; "PHP List"
<[EMAIL PROTECTED]>
Sent: Thursday, December 26, 2002 8:38 PM
Subject: Re: [PHP] Cheap Hosting
: www.nomon
I'm new to using regular expressions so i'm struggling a bit in making an
expression to replace or with \n
$string = preg_replace( "/(|)/i" , "\n",$string);
which needless to say doesn't work. I'm sure its obvious, just need a bit of
a pointer!
Cheers
Tom
--
PHP General Mailing List (http:
Sweet! It worked. Thanks a lot!
btw: php|architect is good stuff. My dad was complaining about not being
able to convert doc to pdf cheaply, and the next day I coincidentally got
the first issue. He now uses the pdf converter at work! keep it up!
~Micah
--
PHP General Mailing List (http:
I should have specified, those dates were in US form.. so:
$nowdate = mktime(0, 0, 0, 1, 4, 2002);
$futuredate = mktime(0, 0, 0, 2, 5, 2002);
$futuredate - $nowdate equals 2764800
((2764800 / 86400) / 7) = 4.57142
then when floored, comes out to 4.
The only thing I can think of possibly getting
On Fri, 27 Dec 2002, Derick Rethans wrote:
> On Fri, 27 Dec 2002, Tobias Schlitt wrote:
>
> > I saw the nice-looking presentationsystem, written in PHP and using XML, on
> > the PHP-Conference this year. I liked that very much and think it's must for
> > every PHP-related presentation. So, can an
On Fri, 27 Dec 2002, Tobias Schlitt wrote:
> I saw the nice-looking presentationsystem, written in PHP and using XML, on
> the PHP-Conference this year. I liked that very much and think it's must for
> every PHP-related presentation. So, can anyone tell me, where to download
> the system? Has anyo
Check it out of cvs. It is in the pres2 directory.
On Fri, 27 Dec 2002, Tobias Schlitt wrote:
> Hi folks!
>
> I saw the nice-looking presentationsystem, written in PHP and using XML, on
> the PHP-Conference this year. I liked that very much and think it's must for
> every PHP-related presentatio
Hi folks!
I saw the nice-looking presentationsystem, written in PHP and using XML, on
the PHP-Conference this year. I liked that very much and think it's must for
every PHP-related presentation. So, can anyone tell me, where to download
the system? Has anyone got it at home and could send me a qui
^^
Then $_POST['submitID'] will be an array with selected options
Micah Bushouse wrote:
grrr... I am trying to get several values from a selection form field (using
multiple) into PHP. Is this possible? The code I'm using to test this is
below. After running the code
Hello Micah--
Yes, PHP supports multiple selections, but you need to change the name
of the control from submitID to submitID[], so that it will become an
array once inside your script.
Hope this helps!
Marco
--
php|architect - The Magazine for PHP Professionals
The monthly magazi
Sure... with the use of the proper MIME type and if they have that MIME type mapped to
that application.
Think of a PDF.. it gets sent out with the header Content-type: application/pdf
Your browser has a reference for that MIME type to link it to acrobat reader...
so it opens up reader (or the plu
grrr... I am trying to get several values from a selection form field (using
multiple) into PHP. Is this possible? The code I'm using to test this is
below. After running the code and selecting more than one field, the last
field (the greatest number) is the only one that shows up as the only in
No, you cannot execute commands on the users machine. However, if you
use the right content-type
header and the user browser is set up to open movie streams in a player,
you don't need it.
Edward Peloke wrote:
Hello all,
Can php call an executable on the users machine? I have some divx movies
Hello all,
Can php call an executable on the users machine? I have some divx movies
and I want the user to be able to click on a link and the php page will open
the divx player and start to stream the movie. is this possible?
Thanks,
Eddie
--
PHP General Mailing List (http://www.php.net/)
To
Stephen --
...and then Stephen said...
%
% Hello,
Hi!
%
% I need a nice, reliable host for my new website. It needs to be fast, reliable,
needs a good uptime, and some features. PHP and MySQL are the two I really need. Does
anyone recomend one that's really cheap? So far I've found on, $5 a
Sorry, now I reminded myself this would cause a false element at the end
of $rows, use this:
while($tmp=mysql_fetch_array($res)) {
$rows[]=$tmp;
}
Marek Kilimajer wrote:
Simple:
while($rows[]=mysql_fetch_array($res)) {}
($res is a mysql result resource)
Beauford.2002 wrote:
Thanks for th
Simple:
while($rows[]=mysql_fetch_array($res)) {}
($res is a mysql result resource)
Beauford.2002 wrote:
Thanks for the info, but maybe I didn't give enough info.
I have a mysql database with up to 10 rows and 5 fields in each row.. I have
been reading up on some of the array functions, but h
Check the gd library, you should likely install the one on the other machine
cj wrote:
Hi would any one know what the following error's are for/mean
I am using gd 2.0.7 with gif support built in and php4.2.3
I am using the exact same gd version and php version as I used on another
machine and it
I can suggest u the best then.. 40$ annually will be fine with you??? then mail me
back!
Cheers!
Shashwat
www.shashwat.com
"Stephen" <[EMAIL PROTECTED]> wrote in message
001e01c2ad42$b4ff1d20$0200a8c0@melchior">news:001e01c2ad42$b4ff1d20$0200a8c0@melchior...
Hello,
I need a nice, reliabl
php-general Digest 27 Dec 2002 11:32:06 - Issue 1787
Topics (messages 129388 through 129423):
Re: Open HTTPS connection
129388 by: Sean Burlington
Re: Nested Arrays
129389 by: Weston Houghton
129390 by: Weston Houghton
129391 by: Wee Keat [Amorphosium]
> Thanks John and Marek for your fast responses. I made the decision to
> opt for the "hidden" tag option. Now, I'll show you the part of my
code
> that hangs when trying to make what I intend it to do.
>
>
>
> $query1 = "DELETE * FROM maracat WHERE catid = $catid";
> $re
At 03:55 AM 12/27/02 -0500, Maciek Ruckgaber Bielecki wrote:
has anyone an idea of how can i do some kind of decent delay (instead of
some shell_exec doing pings) :-P
Have you tried sleep()?
http://www.php.net/manual/en/function.sleep.php
Rick
--
PHP General Mailing List (http://www.ph
sleep();
usleep();
Maciek Ruckgaber Bielecki wrote:
Hi guys !!
im starting on this list today so hello to everyone :-)
i have been programming in php for 2 years now, so i hope i may be
helpfull.
on the other hand im quite new to CLI PHP, an here my first question on
the list :
has anyone an id
Hi guys !!
im starting on this list today so hello to everyone :-)
i have been programming in php for 2 years now, so i hope i may be
helpfull.
on the other hand im quite new to CLI PHP, an here my first question on
the list :
has anyone an idea of how can i do some kind of decent delay (instead o
Thanks John and Marek for your fast responses. I made the decision to
opt for the "hidden" tag option. Now, I'll show you the part of my code
that hangs when trying to make what I intend it to do.
$query1 = "DELETE * FROM maracat WHERE catid = $catid";
$result1 = mysql_qu
Look at projects where it is done already (e.g. PhpNuke)
If the strings are static (simple translation of static strings), keep
it in a file as variables or constants, for
dynamic content you may use separate table for language independent
information and another table for
language dependent info
Make the "Delete" button a link with
href="delcategory.php?catid=$catid", maybe with additional
information so you can redirect the browser back to where it has been
(page #, parent category ...)
Cesar Aracena wrote:
Hi all,
I'm making the administration part of a site which handles categories
75 matches
Mail list logo