Robert Cummings wrote:
On Tue, 2005-07-19 at 22:10, Jason Wong wrote:
On Wednesday 20 July 2005 07:32, Marc G. Fournier wrote:
Which is? If its:
Yep.
; at function call time. This method is deprecated and is likely to be
; unsupported in future versions of PHP/Zend. The encouraged
Hello,
I've changed the codes. Please run this one to view the results.
The notable change is:
$calculatedGross = $originalNet * (1.000 + ($commissionPct * 0.010));
Regards,
Nadim Attari
Alienworkers.com
?php
set_time_limit( 0 );
echo 'html';
echo ' headtitleTest Rounding Net
Hi
I am looking for a simple way to check if the server is connected to the
Internet, they use a dialup to get Internet connection, and I need to
email reports out, but want to check to see if the user remembered to
connect to the Internet first. If anybody has a nice script, or just a
Hi
I am looking for a simple way to check if the server is connected to the
Internet, they use a dialup to get Internet connection, and I need to
email reports out, but want to check to see if the user remembered to
connect to the Internet first. If anybody has a nice script, or just a
this seems pretty interesting, i'm tring to write a code in php to get
those two outputs, but bit confused in counting weeks. could somebody
clear me..
what is the first *date* of the first week of year 2005?
is it saturday jan 1st 2005 (assuming first week starts from jan 1
of any year)
or
is
An alternative (and more user-friendly) approach is to have the form's
action as itself (i.e. the form on contact.php submits to contact.php). You
can then identify which fields are incomplete and highlight them in the
form. This will make it easier for users to see what they have done wrong
and
Assuming they connect to check their email every now and then, you do
realize people will still receive your email regardless of whether their
connection is up or not?
The emails reside on the email server until the user retrieves them.
- Original Message -
From: Steven [EMAIL
eoghan [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
On 20 Jul 2005, at 02:22, Linda H wrote:
fahreheit is here:
?
$fahr = $_GET['fahrenheit'];
if (is_null($fahr)){ echo 'fahr is null';}
$
The error was on the line: $fahr = $_GET['fahrenheit'];
try:
input
Steven [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi
I am looking for a simple way to check if the server is connected to the
Internet, they use a dialup to get Internet connection, and I need to
email reports out, but want to check to see if the user remembered to
connect to
Hi all,
I have PHP-4.3.10 and Apache-2.0 running on a Redhat 9
machine. I am connecting to DB2 using the odbc API. I have different
applications running connecting to different databases and the
applications were all running perfectly fine. But now, odbc_connect
fails with some garbage
Hi all.
I have the week number (for example, this is the 29th week of the
year and it begins on 7/17/05). Does anyone know how to obtain the
first (and maybe the last) date of the week if you only know the week
number of the year? Would it be better for me to obtain this in PHP
Dear All subscribers,
my intention, through this e-mail, is to submit to your attentions one PHP
class
devoted to translate input native language commands for database into MYSQL
commands lines.
The goal of this class is to provide a comfortable code interface to let
programmers
implement forms
[snip]
Hey, Look I made a new database just for this money testing stuff.
This is the table:
CREATE TABLE `money` (
`money` varchar(255) NOT NULL default ''
) TYPE=MyISAM;
Now, I use this code
$sqlUpdate = UPDATE `myDatabase`.`myTable` SET `myMoney` =
(`myMoney`-10) WHERE
Jay Blanchard wrote:
[snip]
Hey, Look I made a new database just for this money testing stuff.
This is the table:
CREATE TABLE `money` (
`money` varchar(255) NOT NULL default ''
) TYPE=MyISAM;
Now, I use this code
$sqlUpdate = UPDATE `myDatabase`.`myTable` SET `myMoney` =
(`myMoney`-10)
Lots of extra characters in that one... try this:
$q=mysql_query(update myTable set myMoney=(myMoney-10) where
myCharacter='characterName');
if(!$q){echo mysql_error();}
so wasteful :-)
$q=mysql_query(update u set m=(m-10) where
c='$c');if(!$q)die(mysql_error());
Still
Jay Blanchard wrote:
snip
been nice (because we usually get chided for our terseness).
/snip
I noticed that Jason appears to be back...the kid gloves will be off now. ;)
--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
On Wed, 2005-07-20 at 02:42, Rasmus Lerdorf wrote:
Robert Cummings wrote:
[-- snippity --]
You're only
relief is to tone down the error reporting level (Which will knock out
other notices during development but will be great for a production
server), or do as I did and install a custom
It *is* a great book (I cut my teeth with it as well):
PHP and MySQL Development (Welling and Thomson)
http://www.amazon.com/exec/obidos/tg/detail/-/0672326728/qid=1121869940/sr=8-1/ref=pd_bbs_1/002-5827183-4477639?v=glances=booksn=507846
Read it, learn it, live it.
Matt Darby
Jay Blanchard
Matt Darby wrote:
It *is* a great book (I cut my teeth with it as well):
PHP and MySQL Development (Welling and Thomson)
http://www.amazon.com/exec/obidos/tg/detail/-/0672326728/qid=1121869940/sr=8-1/ref=pd_bbs_1/002-5827183-4477639?v=glances=booksn=507846
Read it, learn it, live it.
Matt
snip
Honestly, the best book I read when I was starting out, and one I've
been using ever since, is the manual. I actually spent $ on a very good
php book but I think I've only cracked the cover on it once or twice in
two years.
Way to go manual guys! :D
/snip
I totally agree, I have only used
Is anyone here using php 5.0.4 on Solaris 9 and compiled with Oracle
10g support and using apache 2.0.54? I have looked at every 10 times
over. I have built php with oracle support probably 100 times on 5
different platforms and never had as many issues as I have had so far
with this system.
On 18 Jul 2005, at 20:56, Sebastian wrote:
The phone would have to have GPS capabilities..
Not true. The network knows what cell the phone is in(and cells are
pretty small in cities), and it knows where the cell is. This is the
mechanism that's used for location dependent services
Chuck Carson wrote:
Is anyone here using php 5.0.4 on Solaris 9 and compiled with Oracle
10g support and using apache 2.0.54? I have looked at every 10 times
over. I have built php with oracle support probably 100 times on 5
different platforms and never had as many issues as I have had so far
On Wed, 2005-07-20 at 10:21 -0500, Chuck Carson wrote:
Is anyone here using php 5.0.4 on Solaris 9 and compiled with Oracle
10g support and using apache 2.0.54? I have looked at every 10 times
over. I have built php with oracle support probably 100 times on 5
different platforms and never had
Okay, something I just noticed. (PHP builds fine, including make test)
I see this after running configure:
Generating files
updating cache ./config.cache
creating ./config.status
creating php5.spec
creating main/build-defs.h
creating scripts/phpize
creating scripts/php-config
creating
Yea, there is nothing talking about my eact configuration. (mainly on
Solaris) I can get this config working on SLES 9 and Red Hat w/o
problems and currently have it running on a dozen systems or so.
I need it on Solaris 9...
-CC
On 7/20/05, Mikey [EMAIL PROTECTED] wrote:
Chuck Carson wrote:
Hi,
I am working on Windows2003 Server. I tried unsuccessfully to install the
OLE/Spreadsheet package from the command line.
I went to www.pear.net and downloaded the packages. However, I was only
able to download as .tgz files. Where should these be located? Using PHP4.4
Please could you tell
Chuck Carson wrote:
Okay, something I just noticed. (PHP builds fine, including make test)
I see this after running configure:
Generating files
updating cache ./config.cache
creating ./config.status
creating php5.spec
creating main/build-defs.h
creating scripts/phpize
creating
kevin.o'[EMAIL PROTECTED] wrote:
Hi,
I am working on Windows2003 Server. I tried unsuccessfully to install the
OLE/Spreadsheet package from the command line.
I went to www.pear.net and downloaded the packages. However, I was only
able to download as .tgz files. Where should these be located?
Chuck Carson wrote:
Okay, something I just noticed. (PHP builds fine, including make test)
I see this after running configure:
Generating files
updating cache ./config.cache
creating ./config.status
creating php5.spec
creating main/build-defs.h
creating scripts/phpize
creating
Chuck Carson wrote:
On 7/20/05, Jochem Maas [EMAIL PROTECTED] wrote:
Chuck Carson wrote:
Okay, something I just noticed. (PHP builds fine, including make test)
I see this after running configure:
Generating files
updating cache ./config.cache
creating ./config.status
creating php5.spec
I'm wondering if someone has a better solution then I've come up with.
I've got a few reports that pull from various tables. Some times I'm
not able to put all the tables into a single query/view. So I end up
with a master query and 1 (or more) supporting queries. I'm using
MSSQL
Mike,
I recommend redesigning your query, the database can pull back the records
you want far quicker than any frontend combining/processing, since that's
what T-SQL and relational database were designed for.
I might be able to help you with the SQL, but I am a little rusty, not really
used it
Hi all,
I am using header method to redirect to a certain page.my first question is
1.Is there any other alternative to this method.
2.I am getting the error by using this method. the error is Cannot modify
header information - headers already sent by.
i have seen the php documentation for
Hi,
You may try to run your codes with CLI, this provides to you that the
see the some errors if have. And also you have posibility strace
usage.
Best Regards.
-Cafer
Chuck Carson [EMAIL PROTECTED] writes:
Is anyone here using php 5.0.4 on Solaris 9 and compiled with Oracle
10g support and
babu mailto:[EMAIL PROTECTED]
on Wednesday, July 20, 2005 10:15 AM said:
1.Is there any other alternative to this method.
Javascript or an html redirect.
2.I am getting the error by using this method. the error is Cannot
modify header information - headers already sent by. i have seen
Hi parker,
can you please tell me how to use java script or html redirect, i mean a sample.
thanks
Chris W. Parker [EMAIL PROTECTED] wrote:
babu
on Wednesday, July 20, 2005 10:15 AM said:
1.Is there any other alternative to this method.
Javascript or an html redirect.
2.I am getting the
babu wrote:
Hi parker,
can you please tell me how to use java script or html redirect, i mean a sample.
thanks
Chris W. Parker [EMAIL PROTECTED] wrote:
babu
on Wednesday, July 20, 2005 10:15 AM said:
1.Is there any other alternative to this method.
Javascript or an html
babu mailto:[EMAIL PROTECTED]
on Wednesday, July 20, 2005 10:33 AM said:
Hi parker,
can you please tell me how to use java script or html redirect, i
mean a sample.
I must be in a good mood today. :)
html redirect (more accurately called meta refresh):
Hello!
I currently have a script which streams data out of a MySQL database,
and prints the content headers correctly, however, when I use the
following line:
header(Content-Disposition: attachment; filename=\. $filename .\);
it prompts the user to download the file each time they go to the
* Christopher J. Umina [EMAIL PROTECTED]:
Hello!
I currently have a script which streams data out of a MySQL database,
and prints the content headers correctly, however, when I use the
following line:
header(Content-Disposition: attachment; filename=\. $filename .\);
it prompts the user
Hi,
You may try that;
header(Content-Disposition: attachment; filename=\. $filename .\);
Best Regards
-Cafer
On 7/20/05, Christopher J. Umina [EMAIL PROTECTED] wrote:
Hello!
I currently have a script which streams data out of a MySQL database,
and prints the content headers correctly,
Sorry
it was
header(Content-Disposition: inline; filename=\. $filename .\);
-Cafer
On 7/20/05, Cafer Simsek [EMAIL PROTECTED] wrote:
Hi,
You may try that;
header(Content-Disposition: attachment; filename=\. $filename .\);
Best Regards
-Cafer
On 7/20/05, Christopher J. Umina
Thanks for the help mike and parker,
I have used ob_start and ob_end_flush methods, and its working fine.
i got good idea of redirecting now.
Mikey [EMAIL PROTECTED] wrote:
babu wrote:
Hi parker,
can you please tell me how to use java script or html redirect, i mean a
sample.
thanks
I am using header method for redirecting to another php file.I also want to
pass some variables to the redirected file.
for example:
file1.html where i have a dropdown menu. the user selects the options...
this form has a action to file2.php
file2.php--- i get the values of the form by
That last line always causes me problems, I think it is probably a
difference in versions of mysql. Just change the last line to:
);
without any of the text in their. It doesn't really do much anyway.
Ross wrote:
Hi all,
I am trying to create a table on the remote server but it never seems
I don't see anything in this regex that would prevent https from being
matched, since you don't specify the pattern of the actual url at all.
What is an example of a link that it will match?
Chris Bruce wrote:
Hello,
I am using the following to do link replacing:
babu wrote:
I am using header method for redirecting to another php file.I also want to
pass some variables to the redirected file.
for example:
file1.html where i have a dropdown menu. the user selects the options...
this form has a action to file2.php
file2.php--- i get the values of
Ross wrote:
Hi all,
I am trying to create a table on the remote server but it never seems to
work
CREATE TABLE `sheet1` (
`id` int(10) NOT NULL auto_increment,
`title` varchar(255) NOT NULL default '',
`fname` varchar(255) NOT NULL default '',
`sname` varchar(255) default NULL,
It will become a big mess up for me if i combine all the files as they are
large files.
Matt Darby [EMAIL PROTECTED] wrote:
babu wrote:
I am using header method for redirecting to another php file.I also want to
pass some variables to the redirected file.
for example:
file1.html where i
babu wrote:
It will become a big mess up for me if i combine all the files as they are
large files.
Matt Darby [EMAIL PROTECTED] wrote:
babu wrote:
I am using header method for redirecting to another php file.I also want to
pass some variables to the redirected file.
for example:
does session.auto_start should be set to 1 for sessions to work.
Mikey [EMAIL PROTECTED] wrote:babu wrote:
I am using header method for redirecting to another php file.I also want to
pass some variables to the redirected file.
for example:
file1.html where i have a dropdown menu. the user
babu wrote:
does session.auto_start should be set to 1 for sessions to work.
Mikey [EMAIL PROTECTED] wrote:babu wrote:
I am using header method for redirecting to another php file.I also want to
pass some variables to the redirected file.
for example:
file1.html where i have a
One of your mail items is currently undeliverable at this site, and is
on a queue for retransmission. A retransmission attempt will occur
periodically for the next 4 days.
The usual reason is that the host that we tried to send your mail to
is inaccessible via the internet (presumably
Hi!!
I'm calculating the amount of time that an electric plant can operate with a
certain amount of gas, let's say:
A plant can work an hour with 10 galons, How long does it will work with 300
galons?
hrs = (300 galons / 10 galons) = 30 (I could also have a float here!!!)
Then, I have the
Hello,
My apologizes in advance if this is the wrong mailing list.
I have a php module in apache which is missing ftp functionality
(--enable-ftp was not used as an argument on compile time). However,
recompiling php at this time does not give me other options I am looking
for.
I would like
I'm calculating the amount of time that an electric plant can operate with a
certain amount of gas, let's say:
A plant can work an hour with 10 galons, How long does it will work with 300
galons?
hrs = (300 galons / 10 galons) = 30 (I could also have a float here!!!)
Then, I have the time the
Hello,
(1)
When I try this code:
?php
$var_global = stuff;
function f1() {
global $var_global;
$var_local = array(1,2);
$var_global = $var_local;
}
f1();
print_r($var_global);
?
I get the output:
stuff
where as I was expecting junk value or null.
My
I don't get it... I have been upping my memory limit for PHP. 32megs
now... and am making calls to a database on a different server. I see
the loads run up on the other server as it cruches the numbers.. and PHP
is in the process of creating a single little page with about 40 numbers
on it,
++
| *** ATTENTION Chuck Carson *** |
||
I'm not able to help really
I am configuring with this:
John Hinton wrote:
I don't get it... I have been upping my memory limit for PHP. 32megs
now... and am making calls to a database on a different server. I see
the loads run up on the other server as it cruches the numbers.. and
PHP is in the process of creating a single little page with
I am attaching a PDF document to an email, this part works great, however to
get this to work it prevents the text in the body of the message to be
displayed, what am I doing wrong? Here is the code
$filename = confirmation.pdf;
if(!($fp = fopen($filename, r))):
$error = Can't
Was having this problem with 4.3.11, figured I'd upgrade to 4.4.0 first,
to make sure it wasn't fixed already ... but, if I have the pspell.so
extension enabled, and do a SIGHUP of the server, the apache process
(apache 1) crashes ...
I've currently got the following aspell installed from
Hi all
I am currently working on a PHP 5 application. For the sake of
simplicity, I'll only describe 3 classes here, as that is all that is
required for you to see my problem.
I have a DB class that interacts with the database, a Session class that
controls the session with the user, and a
I've attached some comments inline.
Ade Smith wrote:
I am attaching a PDF document to an email, this part works great, however to
get this to work it prevents the text in the body of the message to be
displayed, what am I doing wrong? Here is the code
$filename = confirmation.pdf;
Have anybody tried PHP AJAX, may please share your experience. also
pls. suggest good link of tutorial on this.
With Best Wishes
Balwant Singh
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
66 matches
Mail list logo