I have a combo php javascript to do that. Trying to dig it up.
Send email to [EMAIL PROTECTED] and ill have it separated by then.
-Original Message-
From: Dan Parry [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 18, 2006 10:18 AM
To: 'John Nichel'; php-general@lists.php.net
Subject:
Viewing in browser? If so view source.
-Original Message-
From: Angelo Zanetti [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 25, 2006 7:01 AM
To: PHP List
Subject: (SCL: 5) [PHP] query problem.
Hi guys.
I got an entry in a field called emailfrom in my table (MySQL db).
The data in
I have a news page which is getting quite long now and I would like
to split
the news to two pages. Now I have one SQL query for all the rows
and I think
I could use LIMIT to limit the results but how to limit the results
for
example to 15 rows for page one and from 16 to the last on second
This issue has probably been discussed more than I've been able to find
in the archive, so I'm sorry if I'm going over old ground.
I'm trying to make sure my email form cannot be used for spam or
injecting additional code and addresses in any way.
So far I'm able to remove bcc, cc, to, etc but
This issue has probably been discussed more than I've been able to find
in the archive, so I'm sorry if I'm going over old ground.
I'm trying to make sure my email form cannot be used for spam or
injecting additional code and addresses in any way.
So far I'm able to remove bcc, cc, to, etc but
How do I clear out the POST variables, or the variables that I have
set from the POST variables, so that when the page is refreshed it
will not resubmit. I have tried unset() and have tried to set it
to and
empty value, but it doesn't seem to work.
You can clear out POST by doing this:
$_PO
> SELECT * FROM exams LEFT JOIN results ON exams.id_test=results.id_test WHERE
> results.id_test IS NULL AND id_student=".$user
exams.id_test=results.id_test
results.id_test IS NULL
think those are preventing this from happening.
Wouldn't you want this
Results.id_student IS NULL
Since if the s
ing a filter, and
crashed being used as MIME plugin latest at the 6th page access.
...ebird
>O Ernest E. Vogelsinger
(\)http://www.1-at-web.at/
^ ICQ# 13394035
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For addi
Hi
Please help me
I don't knowk that is wrong, in this code, for ftp_fput
Don't copy the archive, when copy the archive , this has other extension, and the size
is 0kb.
Thanks.
Marisol Díaz E.
Marisol Díaz E.
Gerente de Aplicaciones Internet
Tecnopro Cía. Ltda. www.tecnopro
Hi
Please help me
I don't knowk that is wrong, in this code, for ftp_fput
Don't copy the archive, when copy the archive , this has other extension, and the size
is 0kb.
Thanks.
Marisol Díaz E.
Hello
I need to know what mode i have to use, for coping a file with ftp_fput
$archivo="C:\\abm\\Abm.gdb";
$fpr = fopen ($archivo, "??");
$subir=ftp_fput($fp,$archivo,$fpr,FTP_BINARY);
Marisol Díaz E.
--
PHP General Mailing List (http://www.php.net/)
To unsubsc
Hello
I need to do upload a file, I have problem with instruction copy(?,?);
When it copy the file, just copy to tmp, and it change the name.
Marisol Díaz E.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail
the maths functions.
Thanks
Mick
--
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]
--
PHP General Mailing List (http://www.php.net/)
To unsu
he
process.
Thanks,
Martin.
--
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]
Original Message-
From: Dominick Vansevenant [mailto:[EMAIL PROTECTED]]
Sent: 12 February 2001 11:54
To: Martin E. Koss; [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: [PHP] Run a script for 20minutes
I think there are timeouts on php as well:
This is taken from the php.ini file.
max
for application.
--
--
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]
I've done this by reading the directory contents into an array and then sorting
that array. This really sorts on filename and not date, but your filenames seem
to contain dates so this might work for you.
James Hicks
-Original Message-
From: Nick Wilson [mailto:[EMAIL PROTECTED]]
Sent: We
The only way this would work with PHP on the webserver would be to
the sound file in the webpage or some other to do
it. I even think there is a way to queue files like you are asking
about, but this would be an HTML thing and not PHP.
James
-Original Message-
From: Alfonso Ballestero
Maybe you need to add the -f to your sendmail command?
James
-Original Message-
From: Anil Garg [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 26, 2002 2:06 PM
To: [EMAIL PROTECTED]
Subject: [PHP] e-mail
hi
i found a 'formmail' scripts from somewhere..
the problem is...
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
--
Why does PHP Version 4.2.3 ignore my (string) - cast to string in the if
evaluation?
I even tried putting the (string) inside the IF statement with no difference in
execution.
P.S.
The variables were reporting string before I even tried (string).
James E Hicks III
--
PHP Gen
Please correct me if I am wrong, but it is impossible for a remote machine to
make an ftp connection to local machine running just PHP/Apache/Mysql. The ftp
functions available in PHP enable PHP scripts to act as an FTP client and can
not be used to accept remote FTP connections.
Other functions (
I'm running PHP 4.2.2 and I'm having trouble with the printf()
function. I want to be able to print data in space padded fields with
the alpha strings left justified and the numeric strings right
justified. For some reason I can't get printf() to pad with spaces. It
pads with " "-s and righ
Hi folks,
I am trying to transfer data from a select list and am having problems
with special characters stopping the transfer. The data is presented in
a form as follows:
$query = "SELECT algen FROM allist WHERE altyp = 'W' ORDER BY algen";
$result_1 = mysql_query($query)
or die ("Coul
Jason Sheets wrote:
You're problem is that you are enclosing your value for your
tags with single quotes ('), when you fetch the value from the database
the single quote in 's ends the value='' assignment in your HTML. You
can use echo "$algen"; which will solve your
single quote problem. You
wanna search my internal html
pages and php pages..and i have no clue how to do thatany help!!!
Thx
_
Add photos to your e-mail with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail
--
PHP General
Hello folks,
I'd like to verify input data transferred from a form and make sure it
is numeric data or null before my program executes. I am using this
syntax, which doesn't work:
for ($i=1;$i<=3;$i++)
{
if (ereg('[0-9]+','$_POST["gamt_$i"]'))
{
continue;
}
else
{
die("Non-n
This is a test message. I sent a real message last night and apparently
it didn't make it to the server.
Bob
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello folks,
I'd like to verify input data transferred from a form and make sure it
is numeric data or null before my program executes. I am using this
syntax, which doesn't work:
for ($i=1;$i<=3;$i++)
{
if (ereg('[0-9]+','$_POST["gamt_$i"]'))
{
continue;
}
else
{
die("Non-numeric
First, thanks to all who offered suggestions with my "simple ereg
question". I have been unable to get anything to work "properly" in
spite of many good suggestions. The problem I want to solve is to
ensure that input fields have either an integer number or are blank
before the program procee
John W. Holmes wrote:
I'd like to verify input data transferred from a form and make sure it
is numeric data or null before my program executes. I am using this
syntax, which doesn't work:
for ($i=1;$i<=3;$i++)
{
if (ereg('[0-9]+','$_POST["gamt_$i"]'))
{
continue;
}
else
{
die("Non-nu
Ernest E Vogelsinger wrote:
At 01:01 24.02.2003, Robert E. Harvey, M.D. said:
[snip]
if (is_numeric($_POST["gamt_$i"]) or empty($_POST"gamt_$i"))
or this:
if (is_numeric($_POST["gamt_$i"]) || empty($_POST"gamt_$i&
> And what are you doing if the javascript is not enabled in the browser of
> the client ???
> There will be no verification and the user can enter what he want in the
> field of your form
> And it's a bit dangerous for your DB if your insert data in a DB...
Wow, the only safe way to insure da
and before the IF
statement.
$i - $target, By God, the are equal in value.");
} else {
echo ("$i - $target, Eternal Damnation, they aren't
equal!");
}
}
?>
James E Hicks III
Noland Company
2700 Warwick Blvd
Newport News, VA 23607
757-928-9000 ex
Comparing a float with an integer can have problems. You could try something
like:
if(abs($i - $target) < .1) {
//then they are essentially equal
}
Kirk
> -Original Message-
> From: James E Hicks III [mailto:[EMAIL PROTECTED]
> Sent: Friday, March 14, 2003 11:22 AM
> To: [
Your going to have to look at your MTA for the answer to this. Basically
you need to tell you MTA to invoke a PHP script when it receives an email
for this specific address instead of normal delivery.
James Hicks
-Original Message-
From: Alexis Antonakis [mailto:[EMAIL PROTECTED]
Sent: Th
There's got to be an easier way, is there?
for ($i=0; $i < count($the_array); $i++){
array_pop($the_array);
}
James E Hicks III
Noland Company
2700 Warwick Blvd
Newport News, VA 23607
757-928-9000 ext 435
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.
The following has solved my problem. Thanks to all who helped.
$the_array=array();
-Original Message-
From: Chris Hayes [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 12, 2003 10:14 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Easier way to delete all entries in an array?
At 16:13 12-6-0
006\\BUBBLER VALVE");
EBCO\030774-006\BUBBLER VALVE
How can I handle this description correctly with PHP?
James E Hicks III
Noland Company
2700 Warwick Blvd
Newport News, VA 23607
757-928-9000 ext 435
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> \0 is a NULL character, IIRC. Either use single quotes:
> echo ('EBCO\030774-006\BUBBLER VALVE');
> or use two slashes, like you did above:
> echo ("EBCO\\030774-006\\BUBBLER VALVE");
> ---John Holmes...
Problem is that this description is coming from a DB, that's
why I was trying to use addsla
why won't this write?
> No Name";
echo "$errorbk";
}
else if ($email=="") {
echo "Form Erorr >> No e-mail";
echo "$errorbk";
}
else if ($input=="") {
echo "Form Error >> No Comment found";
echo "$errorbk&quo
try something like:
$bashoutput=shell_exec('/usr/bin/bash makethesite.sh username pathtoputfiles
pathtogetfiles');
if that doesn't work can you use the system() function instead?
James
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
system("html2ps document.html");
system("hylafax -somedirectives document.ps);
I haven't got around to actually figuring this out, but this is my plan.
James
-Original Message-
From: Mike Mannakee [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 28, 2002 1:14 PM
To: [EMAIL PROTECTED]
t by MailScanner, and is
> believed to be clean.
> ow3
>
>
> -
> Before posting, please check:
>http://www.mysql.com/manual.php (the manual)
>http://lists.mysql.com/ (the list archive)
>
> To request this thread, e-mail <[EMAIL PROTECT
How bout this for just a little better than IP logging.
-Original Message-
From: Adam Williams [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 11, 2002 11:24 AM
To: Justin French
Cc: php
Subject: Re: [PHP] basic voting
Most sites log by IP but if its the IP of a firewall, it wou
Have a look at this php.ini setting, I think it will help you!
; The domain for which the cookie is valid.
session.cookie_domain =
James
-Original Message-
From: David Buerer [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 18, 2002 1:39 PM
To: '[EMAIL PROTECTED]'
Subject: [PHP]
same problem. How can I fix this and what is the
problem?
James E Hicks III
Noland Company
2700 Warwick Blvd
Newport News, VA 23607
757-928-9000 ext 435
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
My chat stores usernames, timestamps in a table on DB. When refresh script runs,
it updates the timestamp on usernames and deletes rows in DB with stale
timestamps (no refresh run). Pulling usernames from this table gives current
chat users.
James
-Original Message-
From: Oliver Witt [m
with the owner being root. Then when the website users
started creating errors (later in the morning), apache was unable to write to
the file because it was owned by root. Duhhh!!
Maybe this will help someone in the future.
James E Hicks III
--
PHP General Mailing List (http://www.php.net/)
To uns
Why not;
1. Record each visitors IP that connects and the connect time.
2. Delete from this table all records that are 5 mins old.
3. Count the remaining records as people currently viewing page.
James
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
It looks like apache doesn't have permission to write the file
//flcintranet/pi2000/ordentry/5788/pappexpt.dbf . If you were using a linux/unix
machine I'd tell you to check the permisions on this directory to make sure that
apache can write to it. I wish I could help you out further, but I don't
age/png . graphit.php should
do two things; First send the header, Second
send the PNG data.
--
James E Hicks III
Noland Company
2700 Warwick Blvd
Newport News, VA 23607
757-928-9000 ext 435
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
alutation,
> name,
> city
> } VALUES {
> \"$_SESSION['salutation'];\",
> \"$_SESSION['name'];\",
> \"$_SESSION['city'];\"
> }
>
> ?>
> //Rest of page... thanks etc...
> =
I have a program that when an operator clicks on a button initiates an ftp
transfer of a large file. The program also checks for succesful completion of
the transfer and advises the operator of the transfer status. How do I keep
the operators browser from timing out so that the status can be dis
I've seen the post_max_size in the php.ini. Is there a corresponding
get_max_size? I couldn't find anything about this anywhere in the php.ini or
apache.conf.
I want to send a lot of information via
header("Location: http//server.com/program.php?val[]=1")
Is there any limit on size of GET me
ail/bin/qmail-inject [EMAIL PROTECTED]');
> ?>
>
>
> Nothing.
>
> But this works:
>
> $ su httpd
> [httpd@tigris bin]$ /var/qmail/bin/qmail-inject [EMAIL PROTECTED]
> Subject: test
>
> testing
>
> ^D
>
> php is running as user httpd.
>
ndow?
try a link like this:
Exit Frames
---
EnjoY,
Adaran ([EMAIL PROTECTED])
check http://www.adaran.net
--
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 ad
nderstood you right ;-)
Try some enviroment variables, maybe $HTTP_SERVER_VARS["HTTP_HOST"] or
$HTTP_SERVER_VARS["SERVER_ADDR"]
Hope it helped,
---
EnjoY,
Adaran ([EMAIL PROTECTED])
check http://www.adaran.net
--
PHP General Mailing List (http://ww
tor/Apache version are u using ?
---
EnjoY,
Adaran ([EMAIL PROTECTED])
check http://www.adaran.net
--
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]
uot; command?
Try
...
or even try
This should AFAIK result in an Array, but I'm not sure if empty fields are put
in.
---
EnjoY,
Adaran ([EMAIL PROTECTED])
check http://www.adaran.net
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL P
aniel Goldin [EMAIL PROTECTED]
Creative Director 323.225.1926
BlueLamp Productions
www.blue-lamp.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To co
ns (Photoshop, Homesite, Winamp, some from time to time...) won't start when
I run them. Closing ICQ immediately solves the
problem...
---
EnjoY,
Adaran ([EMAIL PROTECTED])
check http://www.adaran.net
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe
ipting language tested which is free ? :P
---
EnjoY,
Adaran ([EMAIL PROTECTED])
check http://www.adaran.net
--
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 administ
fine. I never use tags.
---
EnjoY,
Adaran ([EMAIL PROTECTED])
check http://www.adaran.net
--
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]
by (output
Steve> started at /home/swadie/public_html/redirect.php:2) in
Steve> /home/swadie/public_html/redirect.php on line 9
Make sure you have NO Blanks or any other Text before the http://www.adaran.net
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL P
by (output
Steve> started at /home/swadie/public_html/redirect.php:2) in
Steve> /home/swadie/public_html/redirect.php on line 9
Make sure you have NO Blanks or any other Text before the http://www.adaran.net
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL P
programming in
PHP? if so what have you found to be useful?
Thanks
Daniel
--
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]
--
PHP General
Hi Grishick,
Grishick> Nothing is better then HomeSite
Agreed ;-)
---
EnjoY,
Adaran ([EMAIL PROTECTED])
check http://www.adaran.net
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EM
ant 4 binary)
did you use addslashes when storing the file in mysql ?
well, you ought to specify the problem more exactly...
---
EnjoY,
Adaran ([EMAIL PROTECTED])
check http://www.adaran.net
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAI
t is a really good book for beginners to
intermediate's.
Someone else may suggest some English books :P
---
EnjoY,
Adaran ([EMAIL PROTECTED])
check http://www.adaran.net
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
Hi Richard,
Richard> I am trying to pull all the e-mail out of the database and put them
Richard> in a format like this [EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED]
Richard> this is what I have now but I don't seam to be going in the right
Richard> direction. Could
t/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
You need a Content-Disposition in yer $mime variable. I'll leave it up to you to
figure out where, because I've forgotten where it goes exactly.
James
-Original Message-
From: ROBERT MCPEAK [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 16, 2002 8:46 AM
To: [EMAIL PROTECTED]
Subject: [
ame thing done I would first have
to log into the database and then pull the information.
I was hoping to get some input as to which would be the fastest/ best way to
use.
Mike Fifield
Charles Schwab & Co, Inc.
WARNING: All e-mail sent to or from this address will be received by the
Charles Sch
$mime .= "Content-type: application/octet-stream;\r\n";
$mime .= "Content-type: application/octet-stream; name=\"$attach_name\"\r\n";
-Original Message-
From: ROBERT MCPEAK [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 16, 2002 2:45 PM
To: [EMAIL PROTECTED]
Subject: [PHP] attachment fil
try
header("Content-type: application/pdf");
James
-Original Message-
From: Martin Thoma [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 18, 2002 9:20 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Open Download-Box
Hello! I have a PDF-File, which the user should download (it should not
This random number, because it is being sent to the user is just as easy to
forge as the rest of the fields on the form. The only thing you can do is check
the refferer on the submitted page, but alas even this can be forged with enough
technohow. Good luck!
James
-Original Message-
Fro
#!/path.to/php -q
I'd like to suggest the -q option for PHP shell scripts, which I rely on every
day.
James
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lesize ("SOME.pdf"));
fclose($fi);
then
$encoded_attach = chunk_split(base64_encode($binfile)),
and finally attach it to my email (I'm using mail() function).
html2ps and ps2pdf are system() calls and need to be installed on your system
for this to work.
Output from my PHP shell s
2002 2:02 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] PHP & PDF
On Fri, 17 May 2002, James E. Hicks III wrote:
> I do a
>
>system("html2ps SOME.html > SOME.pd");
>
> then I do a
>
>system("ps2pdf SOME.pd");
How about just:
system(&
I'd check the owner of the directory you are trying to write to. It needs to be
owned by the same user as the httpd process runs as.
James
-Original Message-
From: Jas [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 22, 2002 4:18 PM
To: [EMAIL PROTECTED]
Subject: [PHP] tmpfile() errors?
I found a solution to this on the web somewhere. What they did was create
image.php wich extracts your image from the DB and echo's it to the page after
sending the correct content type header. Then in your other .php's/.html's
use...
James
-Original Message-
From: Félix García Renedo [
Here's a little tweak to gzip the backup results. I put this into another script
that gets called by crontab. Are my DB userid and password still visible when
run this way? I'm never here to see it run, because it happens late at night.
/usr/bin/mysqldump --user=DBUSER --password=DBPASSWORD DATAB
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi everyone, a potential client just sent me this. Is it an old problem?
or a new one?
- --begin forwarded worrier---
Hi Nick
Did you mention that you use PHP?
I subscribe to a photo gallery site and they stopped uploads due to th
tString;
header("Location: $go");
?>
James E Hicks III
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
## Heres where I add images to DB with field type of BLOB for image
if ( ($submit == 'Add Image') && ($userid != 'demo') ){
if ($image != 'none'){
$name = strtr($name, "'", " ");
$image = addslashes(fread(fopen($image, "r"), filesize($image)));
mysql_select_db($dbase) or die(
Convert it to timestamp and then compare or if the date's in a mysql database
let mysql handle the comparison for you.
James
-Original Message-
From: ROBERT MCPEAK [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 02, 2002 8:25 AM
To: [EMAIL PROTECTED]
Subject: [PHP] date expressions
How
Why don't you just increment a counter as you are retrieving them.
mysql_select_db("some_DB") or die("DB not available");
$query = "select some_data from some_table";
$result = mysql_query($query);
$rowcounter=0;
while ($row=mysql_fetch_array($result)){
extract($row);
$rowcounter++;
echo
iling 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]
ing in this include path in my php.ini file to no effect.
> Please help. I have several projects I'm working on that require php and I
> have no way of working on them on my development box.
>
> Any help gratefully appreciated. Also, I apologize for being too chatty.
--
PHP Genera
houldn't even need the include path.
i'd look in php.ini. where do you actually store prepend.php?
mike
on 7/1/01 11:00 PM, Daniel Goldin (E-mail) at [EMAIL PROTECTED] wrote:
> Thanks for your help. The server document root is: /etc/httpd/htdocs.
> Perhaps I need to point to this doc
all prepend.php with an absolute
path. you shouldn't even need the include path.
i'd look in php.ini. where do you actually store prepend.php?
mike
on 7/1/01 11:00 PM, Daniel Goldin (E-mail) at [EMAIL PROTECTED] wrote:
> Thanks for your help. The server document root is: /etc/httpd
g as a gateway. now you can't load a page from localhost?
correct?
is localhost still your machine? can you load a page from http://127.0.0.1
again, what does your routing table look like?
on 7/2/01 3:29 PM, Daniel Goldin (E-mail) at [EMAIL PROTECTED] wrote:
> Appreciate your help. Yes I
ailto:[EMAIL PROTECTED]]
Sent: Monday, July 02, 2001 3:06 PM
To: 'PHP List'
Subject: Re: [PHP] newbie has include path error & new problem
on 7/2/01 3:59 PM, Daniel Goldin (E-mail) at [EMAIL PROTECTED] wrote:
> Yes, I could load a page from localhost until I set up networking.
>
&
ealing what has turned into an off-topic problem.
>
> Best to all,
>
> daniel
-- mike cullerton
--
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]
rams doesn't matter Thanks
>
> Doug Henry
>
>
> --
> 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
Hi
I just did a rpm rebuild of PHP to 4.0.6 on RH7.1 and now the bcmath
functions are failing
Fatal error: Call to undefined function: bcsub()
Any ideas on this one?
Thanks
Peter
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
less/page1.html
It's an excellent tutorial on setting up mysql, php,apache and even openssl.
And it works.
Peter
- Original Message -
From: "Adrian D'Costa" <[EMAIL PROTECTED]>
To: "E. Peter K. Chan" <[EMAIL PROTECTED]>
Cc: "php general lis
igure that's all
eg 6 months 12 months?
Thanks for your time
Peter
--
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]
p.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
1001 - 1100 of 1161 matches
Mail list logo