;]."".$row['description'];
and a couple of others
--
Steve Marquez
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi everyone!
Can someone help me with this question?
I created a photo upload utility with individual galleries that images can
be uploaded into. In the MySQL database, there are multiple names of
galleries, some are the same. I want to have a select menu to show just the
unique names of the gall
I am trying to insert information into the database, have it automatically
place an ID Number, then update that particular record and replace the word
"delete" with the link.
The "mysql_insert_id()" does seem to be working. It does put in an id number
of "0" However, the code in general gives me a
MySQL database.
Is there any way to do this?
Thanks!
--
Steve Marquez
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I'm working on a script that will parse through a long string using
regexs to pattern match a certain format. I'm having an issue with a
'?>' in a string being picked up as an end-of-code character, but only
if the line before it is commented out. If the line before is NOT
commented out, PHP proc
> Quote: The one-line comment styles actually only comment to the end of the
> line or the current block of PHP code, whichever comes first. This means that
> HTML code after // ?> WILL be printed: ?> skips out of the PHP mode and
> returns to HTML mode, and // cannot influence that. If asp_tag
Hi,
I am trying to debug the problem I have; which is that php seems to
ignore all php_value I set in httpd.conf. Example I have:
DocumentRoot /var/www/webssl
Options Indexes FollowSymLinks MultiViews
AllowOverride All
php_value upload_max_filesize "20M"
Order allow,deny
All
--- Sebastian <[EMAIL PROTECTED]> wrote:
> hmm i never even knew you can put that in there..
Yes according to php official manual you can
When using PHP as an Apache module, you can also
change the configuration settings using directives in
Apache configuration files (e.g. httpd.conf) and
.hta
Well, Squirrelmail does.sort of. This might not be exactly what you
are looking for, but you can add the fetchmail plugin to squirrelmail so
that it can pull email from other pop3 accounts.
http://www.squirrelmail.org/plugin_view.php?id=50
Steve
At 10:26 AM 1/7/2005, James Nunnerley wrote
#x27;,$lastDayTs) ."\n";
echo "\n";
?>
Now, the problem with that is that if your $week5="2005-02-18" then your
results will be wrongunless this is what you want, but the answer will
be "February 28-04". You are outputing the Month from $week5, the day from
$week5 and the day+4 of $week5 which takes it into the next month.
Steve
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Greetings!
If I do the following, it gives me a blank page. However, instead of using
the variable, if I put in $id_num = "191" Then it will display the
information.
Does anyone know what I am doing wrong? I hope you understand my question...
Thank you in advance!
Here is the link I use to t
an one input (say both a
GET and a COOKIE set id_num), the variables_order variable in
php.ini determines which one will overwrite the other.
Steve
--
Steve Slater
[EMAIL PROTECTED]
PHP / MySQL / Web App Security (LAMP) Training:
http://www.handsonsecurity.com/training.html
--
PHP
to
access newer features of MySQL 4.1 and higher...like prepared statements.
Here is the blurb from Zend:
http://www.zend.com/php5/articles/php5-mysqli.php#fn1
Steve
--
Steve Slater
[EMAIL PROTECTED]
Information Security Training and Consulting
PHP / MySQL / Web App Security (LAMP)
At 10:52 AM 2/2/2005, Marquez Design: Steve Marquez wrote:
Greetings all,
I am currious if someone could point me to a script to list the content of a
directory, then link to each file in that directory.
Example:
The directory contains 80 .GIF files. I want to create a page that will have
links to
ysql database. Also,
you can use the backuptest database by doing the same thing if you are not
root and root doesn't have full privileges on every database. Strange, but
I have seen a setup like that.
Steve
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> Food:Fruit:Red
> Food:Fruit:Green
> Food:Fruit:Yellow
> Food:Vegetables:Long
> Food:Vegetables:Round
> Food:Vegetables:Round:Spikey
> Food:Vegetables:Round:Smooth
How is your structure being built? Is it hard-coded or dynamic (e.g.
pulled from a DB)? We employ a similar "tree" structure for ma
On 5/27/05, Chris W. Parker <[EMAIL PROTECTED]> wrote:
> Let's say you're entering a new product, you'd want to see a list of all
> the available categories, not just the last node of a branch.
Not neccesarily; it depends on how big your tree structure is. If you
only have 10 "categories" where a
** email gagging, sorry if this is a DP **
On 5/27/05, Chris W. Parker <[EMAIL PROTECTED]> wrote:
> Let's say you're entering a new product, you'd want to see a list of all
> the available categories, not just the last node of a branch.
Not neccesarily; it depends on how big your tree structure i
> trying to build php4 with mysql4.1-12, for use in apache2. i have the
> following "./compile" that works for php5. however, when i try to use it for
> php4, i get a msg, stating that it can't find the MySQL Headers...
>From http://us3.php.net/manual/en/ref.mysql.php:
===
For compiling, simply
l
http://www.htdig.org/
Googling for the phrase "stop word list" also may be useful
steve
--
+--- my people are the people of the dessert, ---+
| Steve Edberghttp://pgfsun.ucdavis.edu/ |
| UC Davis Genome Center
apache, then it is
understandable that php's chmod wouldn't work on it. That doesn't
mean that php's chmod will only work on files. It only means that it
has to have permission on the file to make the changes.
Steve
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
and try editing a
different user, although the URL suggests that it's passing the correct
parameters, I end up seeing the details of the previous user?
Help please (sorry for the long description - I am just trying to be
accurate)
Regards
Steve
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
and try editing a
different user, although the URL suggests that it's passing the correct
parameters, I end up seeing the details of the previous user?
Help please (sorry for the long description - I am just trying to be
accurate)
Regards
Steve
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
uot;matched";
}
Help would be greatly appreciated
Thanks
Steve
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ed. I am running php 5.0.3 on RHEL ES 4
Thanks
Steve
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
never occurred to me
that it was for "quiet" since that should not hinder him from running
a program. Just keep him from getting a bunch of output. Of course,
I might have total mis-understood him too. I have to much going on
right now to remember. Anyway, thanks.
Thanks
page which highlights what I am after...
Thanks
Steve
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ditor for KDE) which are helpful. You 'design' the expression in
the interface and it gives you the actual reular exp as the result. I
am finding this a good way of learning, i.e. figuring out how the result
came about...
Just my thoughts...
Steve
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
In your php.ini there are settings for "upload_max_filesize" and also
"post_max_size." These would be causes for case 2. More information:
http://us3.php.net/features.file-upload
On 8/19/05, Peppy < [EMAIL PROTECTED]> wrote:
>
> I've been working on a script for uploading a file to a Unix serv
Sorry, I meant case 1.
- Steve
On 8/19/05, Steve Slotnick <[EMAIL PROTECTED]> wrote:
>
> In your php.ini there are settings for "upload_max_filesize" and also
> "post_max_size." These would be causes for case 2. More information:
> http://us3.php.net/f
ns at that
precision would be extremely slow. Going to a dedicated math package like
MATLAB or Mathematica or something might be more appropriate.
steve
At 08:57 AM 9/1/2005, Wong HoWang wrote:
Dear Jordan,
I know what you mean. But you may try this one and you will know:
the resu
may be able to compile & install your own version of PHP and call it via CGI.
steve, again.
Hi -
The 'precision' ini value refers, I believe, only to float numbers, not
BC_math numbers (which are stored as strings). I believe the bcmath.scale
parameter is the one you need.
ciated, and apologies if this isn't strictly the correct group.
Thanks
Steve
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Thu, 08 Sep 2005 19:27:49 +1200, Jasper Bryant-Greene wrote:
> Steve Turnbull wrote:
>> I am trying to find a regular expression to match a variable, what I think
>> should work (but doesn't) is;
>>
>> preg_match ('^/[\w],[\w],/', $variable)
>>
On Thu, 08 Sep 2005 09:15:03 +0100, Steve Turnbull wrote:
> On Thu, 08 Sep 2005 19:27:49 +1200, Jasper Bryant-Greene wrote:
>
>> Steve Turnbull wrote:
>>> I am trying to find a regular expression to match a variable, what I think
>>> should work (but doesn't) i
On Thu, 08 Sep 2005 16:36:36 +0100, Steve Turnbull wrote:
> On Thu, 08 Sep 2005 09:15:03 +0100, Steve Turnbull wrote:
>
>> On Thu, 08 Sep 2005 19:27:49 +1200, Jasper Bryant-Greene wrote:
>>
>>> Steve Turnbull wrote:
>>>> I am trying to find a regular expre
how losing session data, and they get the error
when they try to return from the development server.
What is happening? Is is some kind of security setting on the browser?
These are remote users and I can't go and inspect their computers. I
will have to communicate by email or phone with them.
Chris Shiflett wrote:
Steve Lefevre wrote:
I have a php site on a production server. The production server doesn't
have the spell libraries, and rather than migrate the site, we setup
spell checking functions on the development site, and shuttled the users
back and forth with spec
Chris Shiflett wrote:
Steve Lefevre wrote:
In this case, a user's session is stagnant for the duration of their
trip to the other server. I'm guessing that users are typically only
there for a brief moment, but this is something to keep in mind. Is
there a way that some of your u
to the server, and then I have just a regular link available
to the user. That solved a lot of issues for me.
Steve Lefevre
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
in IE and Firefox and the page won't display or throw
an error in either one.
What could be going on here? I've been chasing this for hours.
Thanks for any help,
Steve
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Wed, 5 Oct 2005 16:25:03 -0500, [EMAIL PROTECTED] (Greg Donald)
wrote:
>error_reporting(
Well that now gives me errors. Thanks very much...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Has anyone noticed/experienced the fact that the pecl site is spotty
today? I think I was able to download one module all day in and out of
db connect errors.
I really need to get a module off of there. Is there some loop I can
jump through to get it?
Thanks,
- Steve
--
PHP General
nal number (non-negative integer).
Disclaimer: Currently operating on caffeine deficit; it's possible
I'm answering a question no one asked.
steve
At 3:41 PM +0100 12/1/05, Jochem Maas wrote:
Ray Hauge wrote:
Richard Lynch wrote:
On Wed, November 30, 2005 5:10 pm, Chris Lott wrot
At 5:30 PM +0100 12/1/05, Jochem Maas wrote:
Steve Edberg wrote:
Only problem with intval() is that it returns 0 (a valid value) on
I knew that. :-)
I figured so, but I thought I'd make it explicit for the mailing list...
failure, so we need to check for 0 first. Adding more secure c
espond.
Best wishes,
Steve McGill
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
les that you
require.
Steve
""Rahul S. Johari"" <[EMAIL PROTECTED]> schreef in bericht
news:[EMAIL PROTECTED]
Ave,
I¹m trying to run this very simple HTTP user authentication script:
My Stuff Goes Here!
The problem is, this script runs perfectly fi
ction calls is also much slower than
evaluating a very simple IF statement.
Thanks for your interest.
Best wishes,
Steve
"David Grant" <[EMAIL PROTECTED]> schreef in bericht
news:[EMAIL PROTECTED]
> Jared Williams wrote:
>> Why not
>>
>> for ($i = 0; $i &
t set page
if (!isset($_GET['page'])) {
$_GET['page'] = 'home';
}
If, for some reason you /can't/ change the directory index page, make an
index.php with this:
// again, no redirect necessary
$_GET['page'] = 'home';
require('start.php')
is is good. But if you can't set this on the server,
this simple PHP script (index.php) does the same thing:
Steve
--
http://mrclay.org/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
rely on the page or with only a minimal XMLHTTPRequest
call.
Another idea: just require Javascript and save yourself reinventing the
wheel. http://www.phpsurveyor.org/index.php is a mature survey system with
ranking question types and nice data export options.
Steve
--
http://mrclay.org/
--
PHP
ims/ telnet support, but this post [3] leads me to believe
it's pretty limited.
[1] http://us2.php.net/function.fsockopen
[2] http://us2.php.net/curl
[3] http://curl.haxx.se/mail/lib-2005-09/0013.html
Steve
--
http://mrclay.org/
--
PHP General Mailing List (http://www.php.net/)
To unsubscr
arious parsers. Did none of those parsers have
error logging capabilities? Show us the errors.
Steve
--
http://mrclay.org/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
hp.ini file. Generally, using ini_set() should be a last resort
because, once PHP is running, it's too late to change certain settings.
http://php.net/manual/en/configuration.changes.php
Steve
--
http://mrclay.org/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Monday, January 23, 2006, 1:35:13 PM, Chris wrote:
> the ->saveHTML() method ... outputs as ``
> I need my output HTML to conform to XHTML strict.
Since XHTML is XML, try ->saveXML()?
Steve
--
http://mrclay.org/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
al, if successful, $signature will be altered. You
tell /us/ what it looks like and we'll help you split it. ;)
Steve
--
http://mrclay.org/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
PHP4.
For more info, see:
http://dev.mysql.com/doc/refman/4.1/en/php.html
http://dev.mysql.com/doc/refman/4.1/en/application-password-use.html
http://www.php.net/mysql
http://www.php.net/mysqli
steve
--
+--- my people are the people of the dessert, ---+
be spoofed for the same reason. For example,
the second site above (the IIS one) actually *does* support PHP
according to their website. See
http://www.php.net/manual/en/ref.sockets.php
for info on opening & reading from sockets; there is an example on
this page in the user comm
²;
}
I would like for the the entire ³while² statement result to be in a variable
for use outside of the statement. Is that possible?
Thank you for your help,
--
Steve Marquez
Marquez Design
> Finally, I discovered that I need to have PHP and Apache on my computer
> in order than Eclipse may give me auto-complete...
No you don't. Eclipse does code completion out-of-the-box w/out
installing additional software. Check your Preferences.
--
PHP General Mailing List (http://www.php.net/
What doe the @ mean in front of a functions?
--
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 PROTECTED]
You have to make sure your environment variable ORACLE_HOME is set !!!
CHECK: echo $ORACLE_HOME
If it isn't modify the etc/profile or /etc/profile.local
-Original Message-
From: Brian Clark [mailto:[EMAIL PROTECTED]]
Sent: zaterdag 27 januari 2001 23:25
To: PHP is not a drug .
Yes. And if $id is always numeric you could simplify it even more. Quotes
are only needed around strings. They aren't needed around numbers. If you
surround a number in quotes it's treated as a string which will result in
different behavior when doing sorting and > or < compar
At 10:50 AM + 1/29/01, Tim Ward wrote:
> > -Original Message-
>> From: Steve Edberg [mailto:[EMAIL PROTECTED]]
>> Sent: 25 January 2001 22:02
>> To: Matt; [EMAIL PROTECTED]
>> Subject: Re: [PHP] VAR and variables
>>
>>
>> At
I want to put the php.ini in /etc/php
Which argument do I have to attach to ./configure --?=/etc/php to accomplish
this ?
THX
--
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 admi
to a socket. It's really easy to
do that - via telnet to port 80, for example, or via PHP (see the
posttohost function at one of the code libraries - see px.sklar.com,
or phpbuilder.com, or on of the other resources).
- steve
--
+--- "They've got a cherry pie there, that
When I configure php4, is it possible to say it to look for the php.ini in
/etc/php4?
Which argument should I append to ./configure --?=/etc/php4
Steve THX
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
Can you connect to the DB with sql plus !!!
-Original Message-
From: kaab kaoutar [mailto:[EMAIL PROTECTED]]
Sent: woensdag 31 januari 2001 13:36
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject:[PHP] Oracle failed to connect
Hi!
I'm using orcale8 and as long a
". If you want your function to return a value, you
can use the syntax: return value;
Hope this helps,
--Steve
Hi! I'm a .signature virus! Copy me into yours and join the fun!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additio
function is being misused. There's no
advantage to using it to wrap around an SQL statement.
--
Steve Werby
COO
24-7 Computer Services, LLC
Tel: 804.817.2470
http://www.247computing.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additi
on monster.com for "php" turned up 324 listings. I *wish*
there were less - we have listings 135 and 136 and have not found the right
candidate yet.
--
Steve Werby
COO
24-7 Computer Services, LLC
Tel: 804.817.2470
http://www.247computing.com/
--
PHP General Mailing List (http://www.p
uously increase. As a result your margins should increase,
even if your so called "hourly rate" remains flat. Unless of course you
hire other people. That may make your operation much more complex and
difficult to manage than you may think. Plus, any development firm that
hires a PHP
a program (your
PHP script). You may also need to create a symbolic link in a directory
utilized by smrsh (sendmail restricted shell) to allow sendmail to execute
your script (this is done for security reasons). "man smrsh" for details.
--
Steve Werby
COO
24-7 Computer Services, LLC
functions within the class (a class is essentially a
collection of functions that can talk with one another).
--
Steve Werby
COO
24-7 Computer Services, LLC
Tel: 804.817.2470
http://www.247computing.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For addit
With the following standard script:
You can find it there
-Original Message-
From: Milan Mlynarcik [mailto:[EMAIL PROTECTED]]
Sent: vrijdag 2 februari 2001 14:03
To: PHP mail list General
Subject:[PHP] Zend Debug Server
Does anybody know how should I recognise if Ze
to the code below to
track the time that the script took to run. On small simple programs the
results will be skewed by the time it takes to actually run the code below,
but on longer, more complex scripts that will be neglible when comparing
your test cases.
--
Steve Werby
COO
24-7
price and make the experience
pleasurable for your clients the work will come. It's like any business.
People want to work with people they like and if your customers like you
they'll mention you to others.
--
Steve Werby
COO
24-7 Computer Services, LLC
Tel: 804.817.2470
http://www.247com
"Martin A. Marques" <[EMAIL PROTECTED]> wrote:
> Lets say my script is named script1.php and I do:
>
> $ less file1 | script1.php
$fp = fopen( 'php://stdin', 'r' );
Then use the standard file handling functions to access the piped data.
--
St
insert the user input into a database or a
text file and then run a cron job [as frequently as you need] as root to
check the db or file for changes and then update the necessary files.
--
Steve Werby
COO
24-7 Computer Services, LLC
Tel: 804.817.2470
http://www.247computing.com/
--
PHP General M
ble perhaps the
variable is available on Apache, but not on Win2k. I have very little
experience with PHP on Windows so it could be something else, but that's
where I'd start.
--
Steve Werby
COO
24-7 Computer Services, LLC
Tel: 804.817.2470
http://www.247computing.com/
--
PHP General Ma
here are many programming languages that can
run as a CGI. PHP installed as an Apache module will in general run scripts
faster than a Perl CGI or PHP CGI. PHP works great for file handling
scripts, though as your files grow you'll probably want to consider using
databases instead of flat files.
--
Color";
>}
and add this here:
}
>echo"";
>echo "$option";
>echo"";
For more information, see
http://www.php.net/split
Oh - and just in case the 'Colors' column is empty, you might want to
do the while statement like -
while (is_a
If
> yes, then how?
It's definitely possible in PHP. I've done it. You probably want to use a
combination of fopen() and other file handling functions, eregi_replace()
and str_replace().
--
Steve Werby
COO
24-7 Computer Services, LLC
Tel: 804.817.2470
http://www.247computing.com
gh your data set and use it to calculate
whether you will need to fill cells at the end of the table with
non-breaking spaces. There are many other applications, but these two come
up pretty frequently in web applications.
--
Steve Werby
COO
24-7 Computer Services, LLC
Tel: 804.817.2470
htt
using array_values() and array_pop(). Simply do this:
while ( $row = mysql_fetch_array( $result ) )
{
$option_type = $row[option_type];
$code = $row[code];
echo "$option_type $code";
}
Hopefully that'll be enough to get you going.
--
Steve Werby
COO
and modifying the system
or you need redundancy and failover it might not be the best server for you.
With that said, it's a great server [appliance] for basic web and email
hosting and less than enterprise level database usage.
--
Steve Werby
COO
24-7 Computer Services, LLC
Tel: 804.817.247
er parts of the page) with capital letters (like you described). If you
simply want to replace all matches within the page str_replace() is a better
choice. Regular expressions are a more difficult concept to master than a
lot of other concepts within PHP so you may want to look at some tutoria
7;=>'value', 'var2'=>'value'));
which is basically the same as the Perl or Ruby (??? never heard of
that...) call above, with the addition of array(...). I use the
function(array('param1'=>'value', ...))
syntax a lot instead of indiv
Where can I find some info on parsing XML with PHP?
I am not looking for functions, but examples and explanations !
Thx
--
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 administrat
ional IPs. I don't believe the original poster ever stated
why he would need additional IPs, even after being informed what situations
would require them.
--
Steve Werby
COO
24-7 Computer Services, LLC
Tel: 804.817.2470
http://www.247computing.com/
--
PHP General Mailing List (http://www.php
$words[1] = "My"; ...; $words[5] =
"Rose";
$words = explode( " ", $string );
// Loop through array and build string $output containing hyperlinks.
for ( $i = 0; $i < count( $words ); $i++ )
{
$output .= "{$words[$i]}";
}
// Print hyperlinks.
echo $o
line above
should be:
var $champs;
If it's an array you may want to initiate it like:
var $champs = array();
I don't have the time to analyze your code in full right now, but hopefully
this will get you started.
--
Steve Werby
COO
24-7 Computer Services, LLC
Tel: 804.817.2470
http:
You'll also need to have PHP compiled with XML support.
--
Steve Werby
COO
24-7 Computer Services, LLC
Tel: 804.817.2470
http://www.247computing.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To
s) AS numberofusers_max,
MIN(numberofusers) AS numberofusers_min,
...,
MIN(numberofdownloads) AS numberofdownloads_min
FROM my_table
GROUP BY month
WHERE where_clause;
--
Steve Werby
COO
24-7 Computer Services, LLC
Tel: 804.817.2470
http://www.247computing.c
of users for the single
month/day/hour with the most users then you need a second query. If you can
put into sentences exactly what you're trying to do, we can probably help
you a little better.
> i think i'm doomed with the big loop thing :\
Nah, I think you can avoid it. MySQL is
include( INC_PATH . "inc_common.php" );
Very portable.
> I tried various versions of ../ and ../../ without success.
This isn't very portable anyway. You don't want to have to change paths if
you move a file to a deeper subdirectory.
--
Steve Werby
COO
24-7 Compute
quot;);
>
This wouldn't be a global variable; rather, it's a constant. And,
you'd reference it like
print("This is My Path: ".MY_PATH." or is it?");
See
http://www.php.net/manual/en/function.define.php
and
http://www.php.net/manua
ron. See "man cron" from Linux/Unix commandline. Use it to schedule
programs. If you have PHP installed as a CGI you can call a PHP file
directly, otherwise you'll have to call it using its full URL using a
program like wget or lynx.
--
Steve Werby
COO
24-7 Computer Services, LLC
Tel:
be able to get up to speed
with PHP. There are tutorials online as well. Try zend.com,
phpbuilder.com, weberdev.com and hotwired among others.
--
Steve Werby
COO
24-7 Computer Services, LLC
Tel: 804.817.2470
http://www.247computing.com/
--
PHP General Mailing List (http://www.php.net/)
To
u to save the results
from one or both queries into a table and then run a query using the
temporary tables. Or you may be able to organize your PHP code to run the
second query after each row of the first query is returned and integrate the
results within PHP, but you could end up running a ton of
1501 - 1600 of 1688 matches
Mail list logo