the '%' wildcard and including all
possible fields in the WHERE clause could greatly increase the time
necessary to run the query *and* it's not helping you learn how to program
efficiently in PHP.
--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/
--
PHP General Ma
then loop through as follows:
while( list( , $val ) = each( $checkbox_fields ) )
{
// may have to set as $$GLOBALS[$val] if within a function or declare $val
as global first.
if ( $$val == 'on' )
{
echo 'on';
}
else
{
echo 'off';
}
}
--
Steve We
name, but
since I spend a fair amount of time working with other people's code and
clients who sometimes insist on things that aren't preferable, it would be
nice to know.
--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/
--
PHP General Mailing List (http://www.ph
y
show records where there isn't a matching record in link_stats (in which
case it's NULL).
--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-ma
"Augusto Cesar Castoldi" [EMAIL PROTECTED] wrote:
Is there any function in PHP that I could use to know the number of the
ASCII table of letter "A" for example?
It's chr() or ord(). I don't recall which (one is the inverse of the other)
so check the online manual.
--
S
ent and use substr() to return everything, but the
first character. Clearly, the first method is cleaner, but I posed the
second option (which I'd never use) just to demonstrate there are plenty of
solutions for most situations.
--
Steve Werby
President, Befriend Internet Services LLC
http://www.b
there any way we can suppress that message?
In php.ini change:
expose_php = On
to
expose_php = Off
--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional comm
to a single PHP file (I call it
template_1.php) which uses regular expressions to parse a page's URL and
include the proper content. If you want to see it in action take a look at
http://www.sexcriminals.com/.
--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/
--
directory containing the database.
--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/
--
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 administra
e sure you don't indent the closing marker or the parser will miss
it!
/html
STOP;
?
--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-ma
needs to be improved. If by "performance" you mean
"generating more revenue or increasing page views" I have plenty of ideas,
but the last thing the world needs anyway is another hotornot.com copycat.
--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.c
, but did not affect the output sent to the browser. In those
cases I used register_shutdown_function() inside a control structure to call
another function (after outputting HTML from within the same control
structure).
--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com
on line 25
snip
}
getdata( )
echo $domain; --This is line 25 which is outside of the function
/snip
getdata(); // Don't forget the semicolon.
As a general rule, missing semicolons ";" and braces "}" on lines above
those mentioned in the error output are often culprits for
quot;=" sets the variable $num to that value. A double "==" is an
equality comparison operator - that's what you want in this case. Also,
since mysql_numrows() returns a number, not a string, you don't need quots
around the 0.
--
Steve Werby
President, Befriend Internet Services
e old name of the function from
previous PHP versions.
--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/
--
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
I believe
this is covered in an example right in the manual. See mail() in the manual
online.
--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
4 consists of installing PHP4. You can install
php with apxs (--with-apxs flag) in which case you don't need to recompile
Apache or you can recompile Apache and install it as a static module
directly in the Apache binary.
--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/
I'm
pretty sure it's greater than the # at the URL above.
http://www.zend.com/phpfunc/
--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-ma
) to parse the variable before using it.
--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/
--
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 administrato
of the PHP script. Depends
what he needs to do. I still think mysql_field_name() / pg_fieldname() are
the way to go, though Mauricio never mentioned which DBMS he's using.
--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/
--
PHP General Mailing List (http://w
Just prepend the DB name to the table selecting from:
SELECT table_1_from_db_connected_to, other_db_name.table_2 ...
And make sure that the user for the first DB has permissions for the second
DB.
--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/
--
PHP Genera
3 and PHP4 if you're using the old style. The new style is:
php_flag include_path ".:./lib"
Directories are separated by colons.
--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-ma
installed on a RaQ2 and AFAIK it will install on a Qube2 since
they share the same software. I've yet to install 4.04 on a RaQ2 though.
--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL
s of GOTOs in BASIC. ;-) There isn't a method for
referring to a line number within PHP. Enclose your code in functions and
do this:
if () { true_function_here(); }
else { false_fucntion_here(); }
If you haven't worked with functions, consult the online manual.
--
Steve Werby
President, Befrien
ocal file and it's not finding the file, make sure
the path is correct.
now when i rename the doc to something.htm, ill get the contents?
Which document - the one being called by fopen() or the one containing the
PHP script?
--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.
"Steve Werby" [EMAIL PROTECTED] wrote:
acutally i found my problem, what was happening was that script1 that was
on the server that file resides had that file open at the same time that
scirpt2 was trying to open via http, when i change that files name, the
permissions changed, a
php script
ends?
(I think this would solve my problem)
Perhaps register_shutdown_function() will do the trick. I've used it on
scripts where a call to an external command or long DB operation took a long
time, but didn't affect the browser output.
--
Steve Werby
President, Befriend Internet Se
ng the PHP source
code.
--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/
--
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-ma
d also use an existing
open source application like mnogosearch.
What about search the META tags as well??
Read the manual - there are functions specifically for this (though they
won't work if the meta tags aren't exactly as expected).
--
Steve Werby
President, Befriend Internet Services LLC
http://www.be
the manual.
--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/
--
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]
:
! empty()
instead of:
isset()
Or Jeff (Data Driven Design), did you use a different technique?
--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional comman
How about a downloadalbe version of the site? Does such a thing exist?
You can download the manual. See http://php.net/docs.php. If you want the
entire site you're going to probably have to slurp it using a spider.
--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/
--
P
if the new and old
versions are configured differently (like having differences in whether
magic quotes is on/off and short PHP tags are on/off) you may have to make
some code changes. Otherwise it should be a pretty smooth transition.
--
Steve Werby
President, Befriend Internet Service
ne help me to find out where phpinfo() is pulling it's
information
or direct me to an upgrade "how to"
for PHP ?
Perhaps you should try deleting the old install first. locate php, then
rm -rf [DIRECTORIES_HERE] or rpm -e [PHP_PKG_HERE].
--
Steve Werby
President, Befriend Intern
nt of spam you get right now will increase ten
fold.
--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contac
"Steve Werby" [EMAIL PROTECTED] wrote
Renze is correct. Unless you're checking local email addresses which you
control, there's no way to check down to that level. And be happy there
isn't. Otherwise the amount of spam you get right now will increase ten
fold.
I should have sa
tion about the columns using sql.
that information is to be accessed with a php script. so, I'm looking
for something resembling "select info from table"
Check the online manual for more functions and other databases.
--
Steve Werby
President, Befriend Internet Services LLC
htt
[EMAIL PROTECTED] wrote:
** Reply to note from "Steve Werby" [EMAIL PROTECTED] Tue, 3 Apr
2001 15:24:29 -0400
I should have said there's no *reliable* way to check whether an email
address on an external server is valid.
There is one _reliable_ way to verify the email addres
PHP4 isn't reporting the correct line?
Maybe you have a missing closing bracket "}".
Thanks in advance, and I can psot the code if people think it will help...
If it's not a missing closing bracket, post the code.
--
Steve Werby
President, Befriend Internet Services LLC
http://www.b
we can see what you've tried. I
suggest using fopen() and fgets() to accomplish what you want. The first
example in the manual at http://www.php.net/manual/en/function.fgets.php
does exactly what you want.
--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/
--
P
gets.php
that I mentioned your problem will be solved. Good luck!
--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To cont
ve a need, but for the benefit of others
who may have read your post, you can loop through 'a' to 'z' using the chr()
function as follows:
?php
for ( $i = 97; $i = 122; $i++ )
{
echo chr( $i );
}
?
--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/
--
PHP General Ma
table name and then
use MySQL to run the INSERTs.
--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/
--
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 adminis
.ID
Can anyone suggest me how do I SELECT ALL of the accounts having simply
NULL
on 'addresses.*' when there's no such row, instead of 'loosing' the whole
'account' row?
Use the query above and add:
WHERE addresses.ID IS NULL
--
Steve Werby
President, Befriend Internet Services LLC
http://www.be
"E K L" [EMAIL PROTECTED] wrote:
$tpl = new FastTemplate("../usr/local/apache/htdocs/toplevel.tpl");
According to the error, the path above is incorrect. Looking at it, my
guess is that the path might really be:
"/usr/local/apache/htdocs/toplevel.tpl"
--
S
running as an Apache module or as a CGI? If it's an Apache
module, what owner does Apache runs as?
Also, if your system is a Cobalt RaQ you may want to post to the
cobalt-users mailing list
(http://list.cobalt.com/mailman/listinfo/cobalt-users/) to signup.
--
Steve Werby
President, Befriend
rch engines for your desired
search phrases is another story. Though I live talking about search engine
optimization strategies and steps, this isn't the right forum for giving
away all of the secrets. smile
--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/
--
PHP Gener
ng in PHP4 see the manual
(http://www.php.net/manual/en/ref.session.php) and you may want to check
zend.com, phpbuilder.com, etc. for tutorials, code snippets and examples.
--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/
--
PHP General Mailing List (http://w
// print the desired output.
echo $string_out;
?
--
Steve Werby
President
Befriend Internet Services LLC
Tel: 804-355-WEBS
http://www.befriend.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contac
lly set to the owner of Apache. Perhaps if you run the script
using a CGI install of PHP using a different user AOL will accept it. Have
you contacted AOL about the problem?
--
Steve Werby
COO
24-7 Computer Services, LLC
Tel: 804.817.2470
http://www.247computing.com/
--
PHP General Mailing List
vironment variable to display the proper
label in the "location bar".
?php echo $location[$SCRIPT_URL]; ?
If you have a large number of pages (especially dynamically generated
"virtual" pages) or sublevels to your site you'll probably want to use a
more advanced solution.
--
S
field type in the
mySQL db? should it be TEXT?
Depends on the size of the data you want the user to be able to input.
CHAR, VARCHAR, TEXT and BLOB will all work.
--
Steve Werby
COO
24-7 Computer Services, LLC
Tel: 804.817.2470
http://www.247computing.com/
--
PHP General Mailing List (http://w
l not work
for the tabs.
For tabs something like this will probably give a tolerable result, though
I've never had a need to try:
$var = str_replace( "\t", str_repeat( "nbsp;", 4 ), $var );
--
Steve Werby
COO
24-7 Computer Services, LLC
Tel: 804.817.2470
http://www.247computing.com/
that
contain hundreds upon hundreds of characters.
--
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 contact the list administrators, e-mail: [EMAIL PROTECTED]
hat they're an integers, strings, etc. serialize is a good way to
accomplish this. I hope that helped clarify serialize a little. If not,
just play with it a little to understand it.
--
Steve Werby
COO
24-7 Computer Services, LLC
Tel: 804.817.2470
http://www.247computing.com/
--
PHP General M
ant 5 sets of checkboxes and text inputs.
for ( $i = 0; $i $num_inputs; $i++ )
{
echo "input type=checkbox name=checklist[$i]Cb $i input type=text
name=text[$i]\n";
}
--
Steve Werby
COO
24-7 Computer Services, LLC
Tel: 804.817.2470
http://www.247computing.com/
--
PHP Genera
you how to fix it, I'll show you a better way. Why not
do something like:
$result = mysql_query( $sql );
while ( $row = mysql_fetch_array( $result ) )
{
echo "trtdimg src=\"$row[indice_url]\"$row[indice]/td/tr\n";
}
--
Steve Werby
COO
24-7 Computer Services, LLC
bilities, but without the code...
--
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 contact the list administrators, e-mail: [EMAIL PROTECTED]
rials at places like zend.com and
sometimes at phpbuilder.com (though sometimes their tutorials could be
better).
--
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 PROTE
ade to PHP that I've
missed
reading about??
It could be a configuration option or a php.ini setting. Create a page with
?php phpinfo(); ? in it and post your configuration options to the list.
--
Steve Werby
COO
24-7 Computer Services, LLC
Tel: 804.817.2470
http://www.247computing.com/
--
PHP
t if I do a:
Forgot to ask - does referencing an array with double quotes around the key
work for arrays not associated with a MySQL result? I doubt it's specific
to MySQL result arrays, but it doesn't hurt to check. Make a small array
and test.
--
Steve Werby
COO
24-7 Computer Services, LLC
Tel: 804
erate records for the web page.
Hopefully it will make sense once you start playing with it.
--
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 comm
p a dialog
box if it's not valid. Try internet.com's Javascript area or another JS
site to find a code snippet that does what you want.
--
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 unsubscri
ir results as temporary tables and then running a query to join
the two temporary tables to get what you want.
Also, for SQL questions like this you'll get better [or more or quicker]
responses on the mysql mailing list. Sign up at www.mysql.com.
--
Steve Werby
COO
24-7 Computer Service
"rodrigo" [EMAIL PROTECTED] wrote:
Is there a function that can tell me whether a form was posted?
There's an Apache environment variable. $REQUEST_METHOD. Returns "GET" or
"POST".
Do ?php phpinfo(); ? in your script for more good stuff.
--
Steve Werby
COO
2
en in C++,
it's very powerful, highly configurable and has optional PHP or Perl
front-ends. I use it to index and search internal and external sites, but
you can use it to index a database directly. Search google for the URL.
--
Steve Werby
COO
24-7 Computer Services, LLC
Tel: 804.817.2470
http://
urn $elapsed_time;
}
?php
// Usage example
$time_in = "2000-06-14 06:30:00";
$time_out = "2000-12-22 13:45:00";
// Full use of function.
echo "brDays: ";
echo get_elapsed_time( $time_in, $time_out, "days", "3" );
// Use defaults for units and decim
and sites
sections in the side columns ar http://www.sexcriminals.com/ are generated
using a MySQL ORDER BY RAND() LIMIT limit_number query. And no it's not a
porn site.
--
Steve Werby
COO
24-7 Computer Services, LLC
Tel: 804.817.2470
http://www.247computing.com/
Only one query for randomized resul
ySQL database and are being handled by a single PHP script that Apache is
directing all web accesses to and which parses the URL to determine what
content to show. Maybe something like this would work for you. Then each
person would have a unique static-appearing page.
--
Steve Werby
COO
24-7 Computer
"Tim Livers" [EMAIL PROTECTED] wrote:
Everything works fine except that I get "X-Powered-By: PHP/4.0.4pl1
Content-type: text/html #!/usr/local/bin/php" at the top of the page.
1. In php.ini, set "expose_php = Off"
2. Restart Apache.
--
Steve Werby
COO
2
("I appreciate your feedback\n\n");
?
for some reason I get a parse error on line 9. If I remove the
mailheaders
variables the PHP script works
Oops! You're missing the semicolon ";" at the end of line 8. Problem
solved.
--
Steve Werby
COO
24-7 Computer Services, L
to make the change above, but it doesn't help with the
actual problem (missing semicolon).
--
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 comman
"Julia A . Case" [EMAIL PROTECTED] wrote:
How do I detrmine of a value is a string or a integer? I'm trying to
tell the differnce between "machine.domain.com" and "192.168.2.1" I was
going to explode on "." and parse through the data and validate
l show you the way and give you a lot more info. to save you from
asking a lot of questions in the future. smile
--
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
ferring to. I'm confident you can accomplish what you want using a
loop, but perhaps you can restate your question using different terminology
and some more details.
--
Steve Werby
COO
24-7 Computer Services, LLC
Tel: 804.817.2470
http://www.247computing.com/
--
PHP General Mailing List (http:
pam method), but I'm not certain b/c I
quickly looked and couldn't find it. Check sendmail.cf. I don't think
there are specific limits for the fields you listed, but I could be wrong.
--
Steve Werby
COO
24-7 Computer Services, LLC
Tel: 804.817.2470
http://www.247computing.com/
--
PHP General Ma
figure it
out on your own with a few minutes of research, trial and error.
--
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: [EM
://php.net/.
$age = 27;
$var = "age";
echo $$var; // prints 27
--
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-ma
want to? If you
want to pass "joeBob" to the class you can do so as the parameter of one of
the methods. And my guess is that you already know, but if you want to
refer to a method or property of a class from within the class, you do using
syntax like $this-property_here.
--
Steve W
go.ru/. I could hype it in great detail, but I'll let you
do your own research. It's an indexer, backend and frontend search engine.
ht://Dig is also pretty popular. Both are free. Both run on many
Linux/Unix flavors. I don't believe either run on NT.
--
Steve Werby
COO
24-7 Computer Service
VARS[login] or $HTTP_GET_VARS[login]
or whatever's appropriate for your application.
--
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
ow_offset = rand( 0, $result_num_records );
$sql = "SELECT * FROM my_table LIMIT $row_offset, 1 ";
--
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
same MySQL database where
your recipients are coming from and run a cron job every X minutes to
determine if there are any records in the queue and if so to pull a set
number of them from the table and send them emails then delete the records
from the table.
--
Steve Werby
COO
24-7 Computer Service
oster 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.net/)
To unsubscribe, e-mail: [EMAIL
ot;;
$words = explode( " ", $string );
// Loop through array and build string $output containing hyperlinks.
for ( $i = 0; $i count( $words ); $i++ )
{
$output .= "a href='/{$words[$i]}.html'{$words[$i]}/a";
}
// Print hyperlinks.
echo $output;
--
Steve Werby
COO
24-7
s;
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://www.247computing.com/
--
PHP Genera
P 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 contact the list administrato
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.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-ma
. 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 your friend. grin
--
Steve Werby
COO
24-7 Computer Services, LLC
Tel: 804.817.2470
http://www
uot; );
Then I include files as follows:
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.
--
St
ron" 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: 804.817.2470
http://
p 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 unsubscribe, e-ma
ry 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 queries that way.
--
Steve Werby
COO
24-7 Computer Services, LLC
Tel: 804.817.2470
http://w
through 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.24
y( $result ) )
{
$option_type = $row[option_type];
$code = $row[code];
echo "$option_type $codebr";
}
Hopefully that'll be enough to get you going.
--
Steve Werby
COO
24-7 Computer Services, LLC
Tel: 804.817.2470
http://www.247computing.com/
--
PHP General Mailing Li
al 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 tutorials
or books on the subject.
--
Steve Wer
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 Mailing List (http://www.php.net/)
To unsubscri
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.
--
Steve Werby
COO
24-
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/
--
PHP General Mailing
utput to file.
// Left as user exercise.
?
--
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 contact the list
101 - 200 of 207 matches
Mail list logo