On Wednesday 11 December 2002 13:17, Doug Parker wrote:
> I've got sort of an odd one here. I'm populating a select drop down box
> with a substantial number of options - actually every county in the
> U.S.- which is about 3000 results from a query. The problem is that
> when I load the page, t
I am parsing a csv file with fgetcsv and the fields are surrounding by
double quotes, now I am running into a problem periodically that when there
are quotes within the value it is treating it like another value instead of
the same value.
Any ideas on how to get around that?
I am thinking I might
Here is the code in a readable form (alterations for security, simplicity
...)
if
((stristr($HTTP_SERVER_VARS["remote_address"],"XXX.YYY.ZZZ"))||($pwprotect==
'password')) {
setcookie("pwprotect2","1",time()+300);
}
else {
echo "(ASK FOR PASSWORD)";
}
Now when you say "blank line" does that mea
Hi folks,
surely this question has already been answered many times before in this ng, but
nevertheless: I want to pass variables from
one .php to another .php script. But I do not want to use either the
http://localhost/target.php?var1=test&var2=test2 nor
the
POST method. I would like to pas
Forgive if this is not the answer to the problem. I think he means a
blank line at the beginning of the file before the
If you have anything before the
--Joseph Guhlin - http://www.josephguhlin.com/
Was I helpful? Let others know:
http://svcs.affero.net/rm.php?r=bahwi
-- or hire me! =)
On Wednesday 11 December 2002 07:56, Stefan Hoelzner wrote:
> Hi folks,
>
> surely this question has already been answered many times before in this
> ng, but nevertheless:
So why don't you search the archives to read the answers!?!
> I want to pass variables from one .php to another
> .php scr
If they are static you could store them in another php file and include
them.
HTTP is stateless, meaning one person can go from one page to another or
log out in between all of this. It also means there is no authentication
for users, you can not prove that one person is the same person the nex
On Tue, 10 Dec 2002, Stefan Hoelzner wrote:
> Hi folks,
>
> surely this question has already been answered many times before in
> this ng, but nevertheless: I want to pass variables from one .php to
> another .php script. But I do not want to use either the
> http://localhost/target.php?var1=test
I'm trying to rename an uploaded file with the value of a select I have
in the uploaded form. Can someone point me in the right direction. The
PHP.net rename manual isn't helping a lot? My code:
//Form for upload
Select the category to add the picture
to:
Please select...
{$array["catname"]}"
Hi Im wondering if any body has done somthing like uploading a whole
directory trough webbrowser using php,
or has any Ideas how such a thing can be done, any Ideas appriciated.
Regards, David
Stefan Hoelzner wrote:
nevertheless: I want to pass variables from
one .php to another .php script. But I do not want to use either the http://localhost/target.php?var1=test&var2=test2 nor
the
POST method. I would like to pass over general variables like usernames and
Sessions. The data is
I want a user to type a number in an html-form. Afterwards I want to check
for wrong typing. How do I remove all non numbers from the string?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Wednesday 11 December 2002 17:30, Steve Jackson wrote:
> I'm trying to rename an uploaded file with the value of a select I have
> in the uploaded form. Can someone point me in the right direction. The
> PHP.net rename manual isn't helping a lot? My code:
What is the problem?
> //eshop_upload
$variable = ereg_replace('[^0-9]','',$variable);
Frands Sørensen wrote:
I want a user to type a number in an html-form. Afterwards I want to check
for wrong typing. How do I remove all non numbers from the string?
--
The above message is encrypted with double rot13 encoding. Any unauthor
Beauford.2002 wrote:
--snip---
The problem is that the form is not sending the employee name to the php
page. If I insert the name in the php page manually, it works fine, so the
problem appears to be with the form.
--snip-
Beauford.2002 wrote:
Hi,
Not sure if this is a PHP of a MySQL question, so I am sending it to both
groups. Basically I have a list of numbers with two decimal places in the
MySQL database, but I only want to display some of them with the decimal
points.
Check out number_format() in the manual
Hi,
Wednesday, December 11, 2002, 2:05:25 AM, you wrote:
LR> Hi,
LR> Just wondering if anybody knows a script to display a resultset over several pages
using page numers & previous, next links.
LR> So far I've only found such scripts for mysql using the the following sql syntax
which is not od
Hello all,
simple question:
I successfully compiled and installed PHP-4.3-dev from tarball on a RH7.3 box.
What is the meaning of "dev" in PHP-4.3-dev?
Can I use it as a fully working PHP distribution?
Oliver Etzel
> What is the meaning of "dev" in PHP-4.3-dev?
Development release, not a Production release. Its a snapshot of the
upcoming 4.3 system.
> Can I use it as a fully working PHP distribution?
No, as the name suggests its purely an insight as to where the development
is up to at this point in time.
Hi,
I have a index.html file, which creates a HTML login page - which is a
simple allowing a user to enter their username and password
into 2 seperate fields.
The action is to call another php script for processing, i.e. .
Now, I can understand why it brings up a pop-up-box with the message :
Hi,
Wednesday, December 11, 2002, 8:02:41 PM, you wrote:
TR> Hi,
TR> Wednesday, December 11, 2002, 2:05:25 AM, you wrote:
LR>> Hi,
LR>> Just wondering if anybody knows a script to display a resultset over several
pages using page numers & previous, next links.
LR>> So far I've only found such
> On Wednesday 11 December 2002 17:30, Steve Jackson wrote:
> > I'm trying to rename an uploaded file with the value of a select I
> > have in the uploaded form. Can someone point me in the right
> > direction. The PHP.net rename manual isn't helping a lot? My code:
>
> What is the problem?
>
Hello Dear Members
Iam new at this mailing list . I have a problem in php
is that i want to store the images on local hard disk
that are in email (pop3 account) by runing a php file.
how can i do that. please help me asap.
Thanks
Khuram noman
__
Do
Jason Wong wrote:
On Tuesday 10 December 2002 02:39, [EMAIL PROTECTED] wrote:
Hello All,
How to test php.info from command line:
#echo "" | php
to the standard output (screen) - or if you want to a file like this way:
#echo "" | php > /tmp/test_php.txt
Oliver Etzel
.eu - domain are comin
A Company Programmed my Homepage in PHP. Now I want to make simple changes
like changing some text. And I want to try it alone, so I got myselv
PHPEdit.
I copied the complete Homepage on my harddisc to work on it tiht PHP Edit
and everthing works fine.
But how can I see the result of the changes
> - Original Message -
> From: "Victor" <[EMAIL PROTECTED]>
> To: "'Rick Emery'" <[EMAIL PROTECTED]>
> Sent: Tuesday, December 10, 2002 1:49 PM
> Subject: RE: [PHP] Re: Help please: Unable to get
> $_POST["variable"]; to work in a form.
>
>
> Why are you using $_POST[""]? I thought you
Paul Lazare wrote:
I copied the complete Homepage on my harddisc to work on it tiht PHP Edit
and everthing works fine.
But how can I see the result of the changes (without uploading it the
provider again)?
In your browser, use the File menu to open a file (assuming this is a
static not dynami
> -Original Message-
> From: Richard Baskett [mailto:[EMAIL PROTECTED]]
> Sent: 11 December 2002 00:27
>
> Is there a way of flushing output to the browser. So for
> example, I have a
> script that checks things in a database, every check, or every hundred
> checks it would be nice to ou
> -Original Message-
> From: Stephen [mailto:[EMAIL PROTECTED]]
> Sent: 11 December 2002 02:50
>
> I want to repeat the following code as many times as the user
> specifies in the variable $_POST['x']. I then need to have
> the output display as all the numbers found in the sequence.
>
> -Original Message-
> From: KANM MD [mailto:[EMAIL PROTECTED]]
> Sent: 11 December 2002 08:55
>
> Here is the code in a readable form (alterations for
> security, simplicity
> ...)
>
> if
> ((stristr($HTTP_SERVER_VARS["remote_address"],"XXX.YYY.ZZZ"))|
> |($pwprotect==
> 'password')) {
You might consider downloading a package like foxserve
(http://sourceforge.net/projects/foxserv) for your system. This is an
apache/php bundle that will allow you to test your code from a local
instance of php.
"Paul Lazare" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROT
Simply make a test directory on your provider's webserver and test the
changes there
Paul Lazare wrote:
A Company Programmed my Homepage in PHP. Now I want to make simple changes
like changing some text. And I want to try it alone, so I got myselv
PHPEdit.
I copied the complete Homepage on my h
Föíö Öxîêójînyóon wrote:
Hi Im wondering if any body has done somthing like uploading a whole
directory trough webbrowser using php,
or has any Ideas how such a thing can be done, any Ideas appriciated.
A serverside-only solution isn't possible. On the clientside, a piece of
software (eg.
Hi,
I'm working with win2000-apache 2-php 4.3.x
I'm always working with register_globals=on, so all my previewes projects are written
this way.
I'm having a problem to set up php and apache.
Does anyone knows the configs that i should do on apache2 and php.ini to work properly?
thenx
--
http
Hello khuram,
> Iam new at this mailing list .
=welcome to our happy band!
I have a problem in php
> is that i want to store the images on local hard disk
> that are in email (pop3 account) by runing a php file.
> how can i do that. please help me asap.
=there are a number of classes available
If you want our help, we need to see all the code, not just the code that YOU think is
relevant.
What you've shown us is useless for diagnosing your problem.
Show the EXACT code, not a "simple" "secure", "readable" version. Just remove
passwords.
- Original Message -
From: "KANM MD" <[EMA
Richard,
> I am parsing a csv file with fgetcsv and the fields are surrounding by
> double quotes, now I am running into a problem periodically that when
there
> are quotes within the value it is treating it like another value instead
of
> the same value.
> Any ideas on how to get around that?
>
>
Shawn:
I beleive I can clarify the purpose of objects/classes for you and
enrich my clarification with a couple of examples.
THE DIFFERENCE BETWEEN "OBJECT" AND "CLASS":
A class defines the structure of an object. A class is a "template"
for an object. An object is a container for data a
>
>
>
> John
> Mary
>
>
TIA:
You are missing the action and method attributes to the form tag. You
are also missing the closing form tag. I don't know if you accidentally
omitted these when posting your question or if you are actually missing
these in your actual HTML code as well.
Your
Try flush()
Matt
- Original Message -
From: Richard Baskett <[EMAIL PROTECTED]>
To: PHP General <[EMAIL PROTECTED]>
Sent: Tuesday, December 10, 2002 7:27 PM
Subject: [PHP] Flushing Output
> Is there a way of flushing output to the browser. So for example, I have
a
> script that checks t
Greetings:
I'm wondering if someone has a great source for a master-list of
controversial and vulger words that I can use on my site. I would like
to pattern match input text against this master-list in order to prevent
vulger and controversial words from appearing on my site.
Thanks for any
> > > I have a feeling it's going to work out to be something stupidly
> > > simple... like these problems always do. :)
> > =embarrassingly so! If you're taking this all off a user's say-so,
> then it
> > sounds like an eyeball job to me...
> I never did solve it, but it came down to a weird cooki
Hi Christopher,
> I'm wondering if someone has a great source for a master-list
> of controversial and vulger words that I can use on my site.
> I would like to pattern match input text against this master-list
> in order to prevent vulger and controversial words from appearing
> on my site.
I think Keith hits this one on the head --
Without an ACTION directive in the FORM definition, you're at the mercy
of the browser where it gets sent (if in fact it's sent anywhere) ...
You might find some browsers work (defaulting to resubmit to the current
page), whereas others will silently fail
Following up to my own post
> > Once you've got the routine working, post it here,
> > because there are many people who would like to know
> > how to do this properly.
I didn't use any profanity I was aware of in this post, but I still received
this a few minutes later:
> Trend SMEX Conte
Hello list,
simple question:
I´ve heard that it is possible to compile php with dg-support on two ways
1) first way: Distribution dependant with the gd-files and libraries, eg. gd.c, gd.lo,
gd.o
coming with the distribution of the compiled php-4.x-tarball
compiled the follwing way:
./configure
Hi,
i am using a form to upload an image to the server, is it possible to get
the image size during this process so i can store it for later use (i.e.
determining the size of the popup window to view the image)?
thanks for your help
--
PHP General Mailing List (http://www.php.net/)
To unsubs
Hi,
please could someone tell me what the sql command is to add a colummn to a
table?
Thanks for your help
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> Following up to my own post
And again...
> I wonder if it was "Shorpe" I suppose I'll
> find out when/if I get another bounce :-)
I got another bounce :-)
Whoever is running this filter obviously doesn't want to do business with
any of the 70,000 odd people who live in a particul
First, you've asked the wron list; ask the mysql list
Second: ALTER mytable ADD COLUMN new column INT UNSIGNED AFTER old_column;
- Original Message -
From: "Shaun" <[EMAIL PROTECTED]>
To: <>
Sent: Wednesday, December 11, 2002 8:25 AM
Subject: [PHP] Add column to table
Hi,
please coul
look at the alter table syntax on the mysql Documentation page.
-Brad
> Hi,
>
> please could someone tell me what the sql command is to add a colummn to a
> table?
>
> Thanks for your help
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.
> -Original Message-
> From: DL Neil [mailto:[EMAIL PROTECTED]]
> Sent: 10 December 2002 19:52
>
> =as a Windows user I struggle to cope with some of these UNIX
> concepts, so I
> hit Google - with no joy, and ripped through the SuSE manuals
> (I'm a closet
> Linux user - will become one
Hi Jon,
I think we've seen this discussion on the list before
(so Christopher, check the archives!)
> > I'm wondering if someone has a great source for a master-list
> > of controversial and vulger words that I can use on my site.
> > I would like to pattern match input text against this master-l
I'm attempting to install Pear DataObjects on Windows 2000 Advanced Server with all the most current patches and updates. When utilizing the php-cli exe to run createTables.php, we recieve the error invalid function call to getStaticProperty, in DataObject.php on line 1620. I have attempted to
On Wednesday 11 December 2002 18:55, Steve Jackson wrote:
> > On Wednesday 11 December 2002 17:30, Steve Jackson wrote:
> > > I'm trying to rename an uploaded file with the value of a select I
> > > have in the uploaded form. Can someone point me in the right
> > > direction. The PHP.net rename man
Hello...
I gotten a few of these, was wondering if this account is going to be axed from
the distrbution list, hopefully soon.
This is an automatically generated Delivery Status Notification.
Delivery to the following recipients failed.
[EMAIL PROTECTED]
Thanks
-Brad
--
PHP Genera
If your local machine is running Windows you could also use Personal Web
Server or IIS (whichever comes with your Windows) for the web server (of
course you will also need a local copy of php, but this is very easy to set
up)
David Eisenhart
"Ubergoober" <[EMAIL PROTECTED]> wrote in message
[E
If it is a GIF file, the header format is:
Byte #
0 - 2 GIF
3 - 5 87a or 89a
6 - 7 Width (in pixels)
8 - 9 Height (in pixels)
Be advised, the dimensions are in reverse major order; that is, 50 pixels is
represented
as "32 00"
- Original Message -
From: "Shaun" <[EMAIL PROTECTED]>
Hi,
> I think we've seen this discussion on the list before
> (so Christopher, check the archives!)
Quite :-)
> > The problems that others have experienced in the past are:
> > - what happens with "mis"spellings, e.g. "fsck"?
> > - what happens with dodgy formatting, e.g "f s c k"?
> > - what ha
I am having problems populating form fields. Here is my code:
//$ItemCode is passed to the page with this code
$mysql = mysql_query("SELECT * FROM products WHERE
ItemCode='$ItemCode'");
$result = mysql_query($mysql);
Then the form:
I have tried numerous ways to use $result to get these value
i setting php.ini
[mail function]
;For Win32 only
SMTP = hermes.ica.gov.co
sendmail_from = [EMAIL PROTECTED]
i invoke
mail($to,$subject,$body,$headers);
if $to is [EMAIL PROTECTED] is perfect.
if $to is user@otherdomain generate error
the problem is when the content $to is different at ica.
1. the only other ways to pass things around would be in sessions, or by
setting a cookie on the user's computer... i hate the latter, and would
prefer the former, but would NEVER carry things like a MySQL uname and
password around in cookies or sessions. cookies, sessions, and even post &
get (ur
Hi all
Does any of you know if anybody has taken the time to convert the perl
script mysqlhotcopy.pl to PHP. And if so where can one find it.
Thanks
Riaan Stander
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
DL Neil wrote:
Hi Jon,
[SNIP]
May I suggest, rather than picking your way through this minefield, you
provide a "report abusive comment" link instead?
Most sensible! The employment of a technological solution to a social
problem is somewhat shooting the messenger. However some countries are n
On Wednesday 11 December 2002 23:18, Steve Jackson wrote:
> I am having problems populating form fields. Here is my code:
> //$ItemCode is passed to the page with this code
> $mysql = mysql_query("SELECT * FROM products WHERE
> ItemCode='$ItemCode'");
> $result = mysql_query($mysql);
>
> Then the f
Shaun wrote:
Hi,
i am using a form to upload an image to the server, is it possible to get
the image size during this process so i can store it for later use (i.e.
determining the size of the popup window to view the image)?
thanks for your help
you want
getimagesize()
http://www.php.net
Hi Sean,
> if you want a partial list of offensive terms - try looking
> at the meta keywords on a few porn sites ...
Excellent idea!
Unfortunately I'd have to explain that to my boss... "No, really, I'm doing
some research..."
Cheers
Jon
--
PHP General Mailing List (http://www.php.net/)
To
Hi Steve,
you will need to use mysql_fetch_* on the result (where * might be object,
row, array, assoc):
$query = "SELECT * FROM products WHERE
ItemCode='$ItemCode'";
$result = mysql_query($query)
// for debug
or die("Error in query "$query". MySQL said: " .
mysql_error());
$row = mysql_f
How is the CSV being generated? Seems to me like your problem isn't
ggetcsv(), but rather the file itself.
Commonly, a CSV file is a series of values, separated by a comma (duh!!).
The separated values are generally enclosed in double quotes ("), as it
would appear yours are.
Any double quotes
Cheers Jason.
Sorted.
Steve Jackson
Web Developer
Viola Systems Ltd.
http://www.violasystems.com
[EMAIL PROTECTED]
Mobile +358 50 343 5159
> -Original Message-
> From: Jason Wong [mailto:[EMAIL PROTECTED]]
> Sent: 11. joulukuuta 2002 17:17
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] P
On Wednesday 11 December 2002 23:12, Sean Burlington wrote:
>
> there simply is no definitive list of words
>
> you can't stop people talking about pussy cats, turkey breasts or even
> shag pile carpets (and words have different meanings from one place to
> the next)
>
>
> automated filters can be
Carlos Alberto Pinto Hurtado wrote:
mail($to,$subject,$body,$headers);
if $to is [EMAIL PROTECTED] is perfect.
if $to is user@otherdomain generate error
the problem is when the content $to is different at ica.gov.co eg. [EMAIL PROTECTED] function mail dont'n response.
Carlos,
This has to b
On a few sites we have used a master include or function file containing all the
unctions required for the site... Some of these function files may contain
30-40 functions and some pages use only 1 function from the file.
Would like to be a little more dynamic in our approach of this, and have st
hi,
i sent this to the php install list but nobody was able to help me.
thus i'm giving this list a crack at it.
When i installed php v4.2.1 on my Solaris 8 (x86) using this install command:
./configure --with-mysql=/usr/local/mysql
--with-apxs=/usr/local/apache/bin/apxs --with-gd=/usr/local
Carlos Alberto Pinto Hurtado wrote:
SMTP = hermes.ica.gov.co
I forgot to add, look at the mail log on the above computer. It should
show the attempt to send the email. If so, then it is another
confirmation that your php is OK and it is the email server.
Chris
--
PHP General Mailing List (
Mike,
No complaints about explanations in PHP manual - I often say that it IS a
cut-above the average. However it does NOT explain the underlying concepts
of "timestamps", (quite rightly) expecting that we pick up such from
other/more appropriate sources. Hence my comments are refering to such
sour
> > if you want a partial list of offensive terms - try looking
> > at the meta keywords on a few porn sites ...
>
> Excellent idea!
> Unfortunately I'd have to explain that to my boss... "No, really, I'm
doing
> some research..."
=guess monopolising the color printer for a whole afternoon would
I don't know about the efficiency .. but to do it .. you can use
function_exists() to see if a function is already defined if not include the
file for that function before using a function.
HTH
- Original Message -
From: "Dave [Hawk-Systems]" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Se
> > > if you want a partial list of offensive terms - try looking
> > > at the meta keywords on a few porn sites ...
> >
> > Excellent idea!
> > Unfortunately I'd have to explain that to my boss... "No,
> > really, I'm doing some research..."
>
> but won't your gateway/web server's filter prevent
Jason,
> > there simply is no definitive list of words
> The fact is content filtering does not work without a heavy dose of human
> intervention.
> It is quite shocking that large numbers of well known corporations deploy
> misconfigured content-filtering software which rejects perfectly innocen
Hello list,
simple question:
I´ve heard that it is possible to compile php with dg-support on two ways
1) first way: Distribution dependant with the gd-files and libraries, eg. gd.c, gd.lo,
gd.o
coming with the distribution of the compiled php-4.x-tarball
compiled the follwing way:
./configure
i setting php.ini
[mail function]
;For Win32 only
SMTP = hermes.ica.gov.co
sendmail_from = [EMAIL PROTECTED]
=it is impressive to see that the Greeks' messenger has made it all the way
over to Colombia! Wasn't he also held responsible for dealing with people
who were guilty of indiscreet speech
Hello list,
simple question:
I´ve heard that it is possible to compile php with dg-support on two ways
1) first way: Distribution dependant with the gd-files and libraries, eg. gd.c, gd.lo,
gd.o
coming with the distribution of the compiled php-4.x-tarball
compiled the follwing way:
./configure
Hello list,
anybody here know where I can get a stable linux version of php-4.2?
Oliver Etzel
there simply is no definitive list of words
I agree. In Amateur Radio we faced this problem in the UK in the mid-90s
on the ax25/tcpip network when the Home Office made the sysops
responsible for content. Filtering messages off for human reading if any
words on the "list" occured was the on
>I don't know about the efficiency .. but to do it .. you can use
>function_exists() to see if a function is already defined if not include the
>file for that function before using a function.
Please check this for viability...
# the directory ./includes/ contains
# - get_my_info.php contain
Hello all. I have a question that I hope someone can answer. Is it possible
to determine is someone is hitting your site over SSL or plain http using
PHP? If so, is it part of getenv()?
Thanks in advance,
Ron Clark
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http:/
For any Windows users of PHP that want ImageMagick functionality built
into PHP, you can download the ImageMagick PHP DLL from here:
http://php.chregu.tv/php_imagick.dll
Christian Stocker was gracious enough to spend time figuring out how to
get it to work.
For the official imagick PEAR site,
> Hello list,
> anybody here know where I can get a stable linux version of php-4.2?
www.php.net always works for me.
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/
> -Original Message-
> From: [EMAIL PROTECT
> Hello all. I have a question that I hope someone can answer. Is it
> possible
> to determine is someone is hitting your site over SSL or plain http
using
> PHP? If so, is it part of getenv()?
I think it's $_SERVER['HTTPS']. If that is set, then the connection is
over SSL.
---John W. Holmes...
I have a question. How would you move the decimal left or
right, depending on if the number a user enters is negative or not, and then
move it that many spaces? If needed, it would add zeros.
One other question. How would I find the first 0 of a
repeating zero. Like 204,000. How would you f
At 12/10/2002 03:43 PM, you wrote:
John's suggestion of using '{', and '}' as the tag delimiters was to simplify
the regex. You can continue to use '[', and ']' as your delimiters, just
change the regex accordingly -- and don't forget that '[', and ']' needs to
be escaped.
Ah, all right. That w
>I have a question. How would you move the decimal left or right,
depending on if the
>number a user enters is negative or not, and then move it that many
spaces? If
>needed, it would add zeros.
Hmm. Trying to remember what grade I learned this in. You multiply by 10
to move it right, divide by 1
On Wed, 11 Dec 2002, Stephen wrote:
> I have a question. How would you move the decimal left or right,
> depending on if the number a user enters is negative or not, and then
> move it that many spaces? If needed, it would add zeros.
Math ... multiply & divide ... I assume you're using a base-10
i couldnt find out what is wrong with this script ,
can anbody explain
$ip=fopen("ip.txt", 'r+');
$adam=fread($ip,filesize($adam));
fclose($ip);
if(stristr($adam,$_SERVER[REMOTE_ADDR]))
echo "an entry submitted from this ip already";
else
{
..
//block 1
..
}
the ip.txt
10.8.0.21 10.8.5.21 10.8.7.
test
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Your problem is with this line:
$adam=fread($ip,filesize($adam));
Remember that $adam is not a file pointer, but text
read from a file. The file pointer is $ip, so the line
should read:
$adam=fread($ip,filesize($ip));
(and should probably be contained within an if
statement for error handling).
Long time in coming, but thanks to all that have
helped with my stremaing audio and $_array questions.
I've figured out my problems thanks to all your help!
__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo
I did email the company that the csv feed is coming from so we'll see what
comes of that. I really hope they fix it.
Well here is what I did to solve the problem:
I pulled the csv file in using file(), then found the string length, used
substr() to get rid of the first double quote in the line a
HI! I have two dates, one in the future, and the current date, I want to
calculate the difference between the two in # of days. I have converted
both dates to seconds:
future date:
current date:
Then I found the difference between the two:
Now I want to convert the difference to "days":
(
1 - 100 of 197 matches
Mail list logo