Hello people:
I'm building a Site which contains this:
Escolha uma espécie
--
";
$db = mysql_connect("localhost","user","pass");
mysql_select_db("listing");
$list = mysql_query("SELECT nome FROM listagem");
while ($list_especies = m
> if anyone can suggest the best tutorial on OBJECTS and CLASSES, I'll be
grateful.
for a very well written treatment (albeit no tutorials) of most things PHP
(including OOP) I'd recommend O'Reilly's book Programming PHP (by Rasmus
Lerdorf and Kevin Tatroe).
David Eisenhart
--
PHP General
Justin,
Jumping in late...
> >> Daylight Savings Time?
> > John, I think "Daylight Saving Time" creates a difference of 1 hour and
not
> > 1 day :)
> True... but I checked it anyway -- by adding just one and two hours to the
> stamp... which made no difference... but when I added 86400 to the stam
Thanks heaps -- very reassuring :)
Justin
on 09/12/02 9:49 PM, DL Neil ([EMAIL PROTECTED]) wrote:
> Justin,
> Jumping in late...
>
Daylight Savings Time?
>>> John, I think "Daylight Saving Time" creates a difference of 1 hour and
> not
>>> 1 day :)
>> True... but I checked it anyway -- by
Hello:
I'm looking for a WSDL generator for PHP, it must parse the PHP code
and generate WSDL file from the functions on a source file. Do you know
of any?
Regards.
--
XPde :: XP-like desktop environment (developed with Kylix ;-)
http://www.xpde.com
signature.asc
Description: This is a dig
Bsantos PHP wrote:
for ($i=0;$i<1;$i++) {
Your "for" loop appears not needed, it only gets executed once.
Problem is, when I try to execute the .PHP page with this stuff, it keeps
blinking until it tells me that the page could not be found.
NOTE: If I use in the query: "... LIMIT 1000", it
Hi everyone,
i don't have any experience with uploading images through PHP so
i'd like to ask you?
I' starting one server where we have some articles added by users
through PHP script and i want to also every article to has its own
image showed above. I thought that it could be a could t
> -Original Message-
> From: DL Neil [mailto:[EMAIL PROTECTED]]
> Sent: 09 December 2002 10:50
[snip...]
> =now let's take a look at the UNIX Epoch. Various
> 'quotations' have surfaced
> in this email, and I don't recall that it is well discussed
> within the PHP
> manual (it being a
> -Original Message-
> From: John Taylor-Johnston [mailto:[EMAIL PROTECTED]]
> Sent: 08 December 2002 19:57
>
> mysql> SELECT VERSION();
> -> '3.23.13-log'
>
> Ok, how do I PHP it for greater than or equals version 4 :?
Simplistic:
if ($mysql_version[0]>="4") ...
More s
Hi,
I am moving my site from one server to another, how can i copy all the data
in my datbase to my new server? Also is it possibel to do this one table at
a time?
Thanks for your help
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Monday 09 December 2002 19:43, [EMAIL PROTECTED] wrote:
> Hi everyone,
> i don't have any experience with uploading images through PHP so
> i'd like to ask you?
> I' starting one server where we have some articles added by users
> through PHP script and i want to also every article to ha
> Hi,
> I am moving my site from one server to another, how can i copy all the data
> in my datbase to my new server? Also is it possibel to do this one table at
> a time?
Backup from command line:
mysqldump -h -u -p > backup.sql
or
mysqldump -h -u -p
... > backup.sql
Hello PHP'ers!
We wish to control a hardware device (a GPIB card) using a web
interface. This device is normally controlled using either:
1. simple ioctl() calls to the linux kernel
2. by a higher level C-library which inturn calls these ioctl()s.
Does PHP support system calls like ioctl()? I
Hello List,
Even though I´d compiled and installed my source php4.3 sucessfull I will get the
following compiling information by php.info:
Configure Command './configure' '--with-gd' '--with-zlib'
and nothing else.
Even though I´d compiled it with the following flags with removed conf
Is there a way to access a variable defined in a function from a nested
function, without putting the variable in the global scope?
Perhaps some code will make my question clearer:
function enclosing() {
$variable1;
function enclosed() {
can I access $variable1 from
Hi all,
I have set-up a production server and a live server. The problem is with
the production server. I am using PHP version 4.2.3 and MySQL 3.23.39 on
both servers. We have just configured the production server to mimick
the live server (which incidentally works fine) and the code from both
ser
On Sun, 2002-12-08 at 04:31, conbud wrote:
> I was just curious, but what program or website do you all use to view and
> reply to the newsgroups with ?
Ximian Evolution 1.0.8
--
Dan Field
Systems Development Officer - Social Services Dept.
Ceredigion County Council.
*
On Mon, 2002-12-09 at 13:41, Lokesh Setia wrote:
>
>
> Hello PHP'ers!
>
> We wish to control a hardware device (a GPIB card) using a web
> interface. This device is normally controlled using either:
>
> 1. simple ioctl() calls to the linux kernel
> 2. by a higher level C-library which inturn c
I found this to be a good beginners tutorial on the subject
http://www.onlamp.com/pub/a/php/2002/07/18/php_foundations.html
Craig
"Mohd_q" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I can't distinguish between objects, classes, and functions.
Here is a
Steve
Not quite clear on your problem - did you run an ALTER TABLE on your MySQL
table or just an INSERT of a new row? Assuming it was the former, all I can
say is look at the code that populates the $cat_array variable to see if the
underlying query would have been affected by the alter table comm
Hi PHP-List,
after re-compiling my new and stable version of php-4.3.0-dev on a redhat 7.3 box
I compilied this version in order to use the benefits of gd with the following
compiling options:
./configure --prefix=/usr/local/php_stable7 ... --with-gd=/usr ...
and when I run make I will get the
Hello,
I hava to develop a solution that use PHP and JSP. But the system has to use the same
session.
I´ve already installed the PHP integration with Java and it works. But I can´t find
the class to call a session?
Regards
Rodrigo Rezende
PHP Developer
Hi there,
Just a question,
Have you actually run phpinfo() to see if your vendor supplied PHP rpms
come with gd support or not??? On my SuSe 8.1, phpinfo() contains the
following bits about gd:
__gd__
GD Support enabled
GD Version 1.6.2 or higher
FreeType Support enabled
FreeType Linkage wi
A tutorial to help you do *what* exactly?
The readme provides plenty of examples:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/snoopy/Snoopy/README?rev=1.6&;
content-type=text/vnd.viewcvs-markup
"Dl Neil" <[EMAIL PROTECTED]> wrote in message
112b01c29eb6$cf239f90$c900a8c0@jrbrown">news:112b01
No, it is not output from a DB, just a simple static text file with some
PHP functions in it, but even if I remove them, the error remains the same.
I have now upgraded to Apache 1.3.17 and php4.2.3 no change.
One idea which cam into my mind: might an error much later on in the page
generati
Hello gurus,
"Ford, Mike [LSS]" <[EMAIL PROTECTED]> wrote:
[snip]
> To amplify on this:
> ...
[/snip]
Interesting comments! ...not sure if I understood everything though :(
Anyway, for Justin's original problem, I think it'll be solve by "simply"
doing two things:
1. Add " GMT" to the end of th
Why is the below occuring??
I am using the most current libraries available.
- Forwarded message from Bob Federer <[EMAIL PROTECTED]> -
Resent-Message-Id: <[EMAIL PROTECTED]>
Reply-To: <[EMAIL PROTECTED]>
From: "Bob Federer" <[EMAIL PROTECTED]>
To: "Dave Y" <[EMAIL PROTECTED]>
Subject: i
I have a DB that the users maintain of usual address information. I would
like to create a report from the current data so that any user can download
it. Is there a "report generator" that will give me the flexibility to use
fonts and fontfaces that works with PHP and MySQL?
Many thanks.
Hi,
Tuesday, December 10, 2002, 12:09:46 AM, you wrote:
FW> No, it is not output from a DB, just a simple static text file with some
FW> PHP functions in it, but even if I remove them, the error remains the same.
FW> I have now upgraded to Apache 1.3.17 and php4.2.3 no change.
FW> One idea w
Hi,
I am trying to backup my database can someone please tell me why the
following commande wont work?
mysqldump -h localhost -u username -p databasename > backup.sql
thanks for your help
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Take off the " > backup.sql" and see if you get any error's
that might explain it.
On Mon, 2002-12-09 at 10:07, Shaun wrote:
Hi,
I am trying to backup my database can someone please tell me why the
following commande wont work?
Hi Lokesh,
And I did run php.info
>On my SuSe 8.1, phpinfo() contains the
Did you ever compile php?
- Original Message -
From: Lokesh Setia
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, December 09, 2002 3:03 PM
Subject: [PHP] Re: make error
Hi there,
Hi PHP-List,
after re-compiling my new and stable version of php-4.3.0-dev on a redhat 7.3 box
I compilied this version in order to use the benefits of gd with the following
compiling options:
./configure --prefix=/usr/local/php_stable7 ... --with-gd=/usr ...
and when I run make I will get the
thanks for the reply,
but that didn't help
ERROR 1064: You have an error in your SQL syntax near 'mysqldump -h
localhost -u xxx -p xxx backup.sql' at line 1
any ideas?
"Adam Voigt" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Take off the " > backup.sql" and
Shaun wrote:
I am trying to backup my database can someone please tell me why the
following commande wont work?
mysqldump -h localhost -u username -p databasename > backup.sql
Changing "username" and "databasename" to valid values on my database, I
get this line to work here. What error are y
Hi Lokesch,
Output is for gd
gd
GD Support => enabled
GD Version => bundled (2.0 compatible)
GIF Read Support => enabled
PNG Support => enabled
WBMP Support => enabled
Any Hints?
Oliver
- Original Message -
From: Lokesh Setia
To: [EMAIL PROTECTED]
Sent: Monday, December 09,
On Monday 09 December 2002 20:58, [EMAIL PROTECTED] wrote:
> Hello List,
> Even though I´d compiled and installed my source php4.3 sucessfull I will
> get the following compiling information by php.info:
>
> Configure Command './configure' '--with-gd' '--with-zlib'
>
> and nothing else.
>
>
Your not trying to run that from within MySQL are you?
You do know that mysqldump is an entirely seperate command then the mysql
console (where you would for instance type, USE DB; SELECT blah FROM table) right?
On Mon, 2002-12-09 at 10:26, Shaun wrote:
thanks for the reply,
Hi Todd,
> Is there a "report generator" that will give me the
> flexibility to use fonts and fontfaces that works with
> PHP and MySQL?
I don't know of a PHP-based report generator (although a hunt round
sourceforge might turn something up), but you can:
1. use PHP scripts to output your repo
Ok. I stripped the needed code out of the image creation script and
inserted it into my update script. It works great as long as I hard
code in the filename of the file that is being saved to the server.
When I pass the image creation function a variable for the filename it
tells me "invalid fil
El lun, 09-12-2002 a las 16:39, Jon Haworth escribió:
> Hi Todd,
>
> > Is there a "report generator" that will give me the
> > flexibility to use fonts and fontfaces that works with
> > PHP and MySQL?
>
> I don't know of a PHP-based report generator (although a hunt round
> sourceforge might tu
Hi,
Trying to use persistant connections to reduce general access times on my tables, I
have the following problem. When creating my connection with:
$connectionstring = odbc_pconnect("prov","username","pass");
I'm able to use it on the current page but how do I resuse the variable
$connecti
I believe everything you have mentioned is automatic. You don't need to pass $connectionstring since PHP detects it's the same info and just sends you the same connection. Also, I believe PHP auto-closes after a certain amount of time (might be configurable, check the php.ini).
On Mon, 2002-
Shaun wrote:
ERROR 1064: You have an error in your SQL syntax near 'mysqldump -h
localhost -u xxx -p xxx backup.sql' at line 1
It sounds like you are not running it from the command prompt but from
within mysql. Unless the omission of the redirection sign ">" but not
"backup.sql" was intentio
Quote:
It sounds like you are not running it from the command prompt but from
within mysql.
Reponse:
I suspect as much.
On Mon, 2002-12-09 at 11:15, Chris Hewitt wrote:
Shaun wrote:
>ERROR 1064: You have an error in your SQL syntax near
On Monday 09 December 2002 23:44, Jeremiah Breindel wrote:
> Ok. I stripped the needed code out of the image creation script and
> inserted it into my update script. It works great as long as I hard
> code in the filename of the file that is being saved to the server.
> When I pass the image crea
image output code is close to the bottom
***
$image_filename = "../images/tsroll_" . $id . ".png"; //dynamic file
name
$msg = $rollover;
class textPNG {
var $font = 'fonts/ARIAL.TTF'; //default font. put in full path.
var $msg = "undefined"; // default text to display.
var $s
At 16:04 09.12.2002, Tom Rogers wrote:
Hi,
Tuesday, December 10, 2002, 12:09:46 AM, you wrote:
FW> No, it is not output from a DB, just a simple static text file with some
FW> PHP functions in it, but even if I remove them, the error remains the
same.
FW> I have now upgraded to Apache 1.3.17
> Have you checked:
>
> Browser versions? (is the browser the same type/version as on the other
> machines)
> Is it a laptop? If so, are you using the internal keyboard with Numlock
on?
> Is the machine in question set-up on the network correctly, i.e. has it
got
> domain, gateway addresses etc set
Does a print_r() of the superglobal arrays differ in any significant way
when posting the username/password from the troublesome client when compared
to the superglobals for a well behaved machine?
-Original Message-
From: 1LT John W. Holmes [mailto:[EMAIL PROTECTED]]
Sent: 09 December 200
Hey guys, I've been searching the manual for a way to grab the number of
lines in a file and read a particular line from it, however I found no
solution to my problem so I'm wondering if any of you out there could help me
:-)
- CS
> I hava to develop a solution that use PHP and JSP. But the system has
to
> use the same session.
>
> I´ve already installed the PHP integration with Java and it works. But
I
> can´t find the class to call a session?
Well, your JSP script should receive the same cookie as your PHP script
with th
You could try...
$file = ( "/path/file.ext" );
$lines = sizeof ( $file );
[EMAIL PROTECTED] wrote:
Hey guys, I've been searching the manual for a way to grab the number of
lines in a file and read a particular line from it, however I found no
solution to my problem so I'm wondering if any of y
I have yet another math question. How could you find the next integer of a
number specified? Then how could you tell it to go up or down depending on
if the greater then or less tehn sign was chosen by the user?
Thanks,
Stephen Craton
http://www.melchior.us
"What is a dreamer that cannot persever
$f = fopen("filename","r");
$data = ""
fclose($f);
$data = ""
$lines = count($data);
$certainline = $data[linenumberyouwant];
Replace filename in both places, and linenumberyouwant.
On Mon, 2002-12-09 at 11:58, [EMAIL PROTECTED] wrote:
Hey guys, I've been searching the m
> Hey guys, I've been searching the manual for a way to grab the number
of
> lines in a file and read a particular line from it, however I found no
> solution to my problem so I'm wondering if any of you out there could
help
> me
file() will read the file into an array, one line per element, so...
When I submit a post to the following page rather than a get
the download screen in IE 5.5SP2 appears twice. Is there
any way around this? I definitely need to use post since the
length of the string being sent is fairly long.
header("Content-type: application/octet-stream");
header('Con
Might not be the most secure way, but very fast...
$lines = `cat file.txt | wc -l`
That will give you the number of lines...but again not the best
method...
On Mon, 2002-12-09 at 09:58, [EMAIL PROTECTED] wrote:
> Hey guys, I've been searching the manual for a way to grab the number of
> lines
I figured it out! Variable scope problem! Thanks for all your help!
"Jeremiah Breindel" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I am trying to save a dynamically generated image on an outside server to
a
> local file on my server using the code below:
>
Have you tried passive mode?
Vinod wrote:
> Hi friends,
>
> I am having a DSL Internet connectivity in our office and my PC is
> connected to Internet using a HTTP/FTP Proxy(192.168.0.10) and the
> browser(Mozilla) in my PC is configured to connect to net through the
> proxy
>
> When I tried to c
Umm, try this:
$ftp = ftp_connect("ftp.direw.net") or die("Couldn't connect.");
See if you get "Couldn't connect".
I suspect it's cause your both checking the variable and setting it in
the same clause.
On Mon, 2002-12-09 at 12:34, bill wrote:
Have you tried passive mode?
Hi Jason, Hi all,
>> Even though I´d compiled and installed my source php4.3 sucessfull I
will
>> get the following compiling information by php.info:
>For best results when recompling. Completely remove the old source
directory
>then untar a fresh new copy.
Did it.
Yes - working fine. This tip
Did it and was working fine . Thank u Jason
- Original Message -
From: Jason Wong
To: [EMAIL PROTECTED]
Sent: Monday, December 09, 2002 4:37 PM
Subject: Re: [PHP] re-compiling php4
On Monday 09 December 2002 20:58, [EMAIL PROTECTED] wrote:
> Hello List,
> Even though I´
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 coming soon
www.t-host.com
--
PHP General Mailing List (http://www.php.net/)
To unsubs
PHP 4.2.3 compiled with gettext(), with Apache 2.0.40.
A call to bindtexdomain() when viewed through the web generates
PHP Fatal error: Call to undefined function: bindtextdomain() in ...
When I run the same script from the command line, as in php -f index.php,
it works fine.
Any ideas?
==
On Tuesday 10 December 2002 00:31, Fritz Wittwer wrote:
> >FW> I have now upgraded to Apache 1.3.17 and php4.2.3 no change.
Did you mean 1.3.27? 1.3.17 is pretty old.
> >Does the apache error_log give any clues?
> I had this checked out before, but I did only check the errorlog for this
> virtu
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 coming so
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Are you trying to attach an additional results.csv, or are you trying to name
the output (ie "test")???
If you're trying to name the output, changing
Content-Disposition: attachment;filename="results.csv"
to
Content-Disposition: inline;filename="re
Are you *sure* your Apache module and commandline interpreter were both
compiled with the same set of options? Does a phpinfo() call to the
Apache module indicate that gettext is enabled there?
---
Mark Roedel | "Blessed is he who has learned to laugh
Systems Programmer| at himsel
When you compile php for apache using the dynamic module example used in
the documentation, do you not get an exacutable php to use from the
command line?
Ed
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
No. To get the binary executable, compile it without the apache switch.
[EMAIL PROTECTED] wrote:
When you compile php for apache using the dynamic module example used in
the documentation, do you not get an exacutable php to use from the
command line?
Ed
--
By-Tor.com
It's all about the
If there were no more replies... you can use it by means of BUCLES, isn't
it?
BR, Enrique
-Mensaje original-
De: Shams [mailto:[EMAIL PROTECTED]]
Enviado el: Martes, 03 de Diciembre de 2002 04:32 a.m.
Para: [EMAIL PROTECTED]
Asunto: [PHP] writing to mysql using php
Hi,
I'm relatively n
Hello list,
Anybody here who knows a simple php-script for the puspose of testing gd-related tasks
eg like
dynamic construction of buttons???
Oliver Etzel
I am running PHP in a RedHat 7.3 environment and I notice that the graphic
functions are not present. Since I am quite new to Linux, I would appreciate
it if someone could explain to me what I need to do to have graphic functions.
Many thanks.
Todd
--
Can I do that using the same src I used to create the dynamic module and
both would work hapilly together?
Thanks,
Ed
On Mon, 9 Dec 2002, John Nichel wrote:
> No. To get the binary executable, compile it without the apache switch.
>
> [EMAIL PROTECTED] wrote:
> > When you compile php for
I am having a fairly confusing problem with setcookie() in NS 4.x.
My script:
nscookie.php:
setcookie("NSUSERNAME", 'cday', time()+2592000, '/', ".mydomain.com");
Header("Location: nscookie2.php");
exit();
nscookie2.php:
echo $_COOKIE[NSUSERNAME];
In IE (all versions I have tested), this
But the problem is, the user may type in a decimal.. I guess I could round
then add or subtract.. Would that work too?
- Original Message -
From: "Andrew Brampton" <[EMAIL PROTECTED]>
To: "Stephen" <[EMAIL PROTECTED]>
Sent: Monday, December 09, 2002 1:14 PM
Subject: Re: [PHP] Find Next In
Hi there,
I am having problems with passthru, exec, etc. on Red Hat 8 (w/ PHP
4.2.3; Apache 1.3.27). When I use passthru / exec to execute "pwd" or
"ls-al" I have no problems executing & viewing the output. However, when
I try and execute a program using the command line e.g "./lee54 <
GNOM_FILE_g
What functions do you want to use?
You can review the functions in the manual and it will tell you how to
configure php with them...
On Mon, 2002-12-09 at 13:31, Todd Cary wrote:
> I am running PHP in a RedHat 7.3 environment and I notice that the
> graphic functions are not present. Since I am
The actual code echoes a buffer of comma separated values. I
just shorten it since it doesn't work for post even with these few headers
and the word test echoed.
At 11:28 AM 12/9/2002 -0800, Evan Nemerson wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Are you trying to attach an additiona
There are some test scripts in the tests directory of the src. However,
i do not know if there are any script for the testing of gd functions...
On Mon, 2002-12-09 at 13:12, [EMAIL PROTECTED] wrote:
> Hello list,
>
> Anybody here who knows a simple php-script for the puspose of testing gd-rela
Well that case then
if ($sign = ">")
ceil($number);
else
floor($number);
Is that nearer to what you mean?
Andrew
- Original Message -
From: "Stephen" <[EMAIL PROTECTED]>
To: "Andrew Brampton" <[EMAIL PROTECTED]>
Cc: "PHP List" <[EMAIL PROTECTED]>
Sent: Monday, December 09, 2002
Shams,
Most database actions you want your user to do should be limited to them
writing to one record and/or updating that one record. If instead you want
to update information on several records, then you'd need a statement like:
$table="your_table_name";
$query=mysql_query("update $table set col
I have a article submission thing where the user types in
whatever they want. I've already made it so that when the user pushes enter, it
saves it as a for HTML but how would I do this for spaces also? I'm
storing the contents in a MySQL database...
Thanks,Stephen Cratonhttp://www.melchior.u
--- Chad Day <[EMAIL PROTECTED]> wrote:
> I am having a fairly confusing problem with setcookie()
> in NS 4.x.
>
> My script:
>
> nscookie.php:
>
> setcookie("NSUSERNAME", 'cday', time()+2592000, '/',
> ".mydomain.com");
> Header("Location: nscookie2.php");
> exit();
>
> nscookie2.php:
>
> ech
replace more than 1 space in a row with a
OR, when outputing their text place a tag around it
Andrew
- Original Message -
From: Stephen
To: PHP List
Sent: Monday, December 09, 2002 9:25 PM
Subject: [PHP] Spaces
I have a article submission thing where the user types in w
I'm not sure how this would matter since the cookie is never set at all..
it's not an issue of it reading the cookie, as it can't read what is never
set. I'll give it a shot when I get home though anyway.
-Original Message-
From: Chris Shiflett [mailto:[EMAIL PROTECTED]]
Sent: Monday, Dec
Ah, yes, thanks!
- Original Message -
From: "Andrew Brampton" <[EMAIL PROTECTED]>
To: "Stephen" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, December 09, 2002 4:08 PM
Subject: Re: [PHP] Find Next Integer
> Well that case then
> if ($sign = ">")
> ceil($number);
> else
>
So would I just do this?
$text = str_replace(" ", " ", $_POST['input']);
- Original Message -
From: "Andrew Brampton" <[EMAIL PROTECTED]>
To: "Stephen" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, December 09, 2002 4:30 PM
Subject: Re: [PHP] Spaces
replace more than 1 space
Hi,
I am very new to PHP, but it looks like it can do quite a bit. I am
impressed by the number of array functions there are.
I have a question. I am trying to create a php program that will allow for
multiple file uploads. I already have the HTML working for
enctype="multipart/form-data". I
--- Chad Day <[EMAIL PROTECTED]> wrote:
> I'm not sure how this would matter since the cookie is
> never set at all.. it's not an issue of it reading the
> cookie, as it can't read what is never set. I'll give
> it a shot when I get home though anyway.
Read my response again, and you'll see that w
At 23:10 09.12.2002, Allred, Mark said:
[snip]
>The problem is, I have to click "Browse" for each file.
>
>I want to be able to access the functionality to allow for Shift-Click
>series picker that everyone probably knows about. I need to be able to
>slurp
One more problem I could see is that if the user types in an odd number of
spaces like 5 or 7. Wouldn't this replace string only replace spaces all the
even spaces like 2, 4, 6, 8, and so on?
- Original Message -
From: "Andrew Brampton" <[EMAIL PROTECTED]>
To: "Stephen" <[EMAIL PROTECTED]
I know for a fact that you're all going to think, "What the
heck does he want fractions for!?" I have a reason...I just won't tell you.
:-P
My problem is this. I want to simplify a fraction to
simplest form but if I divide, I'll get a decimal which I can't use. How could I
put it in simple
I am displaying a list of data (from an sql query) and some of the fields in
that list are editable through a form. If the user chooses to edit one or
more of the rows of data, they must click on a checkbox to add that row to
an "update array". The problem is that when I read that array to pass to
Just like math...find the greatest common denominator of the numerator
and denominator and then divide each (numerator and denominator) by that
number...
ie: numerator = 8 and denominator = 12
so we have 8/12
then greatest common denominator is 4...
so 8/4 = 2 and 12/4 = 3
thus, 8/12 => 2/3
But how do you find it in PHP?
- Original Message -
From: "Ray Hunter" <[EMAIL PROTECTED]>
To: "Stephen" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Monday, December 09, 2002 6:12 PM
Subject: Re: [PHP] Fractions
> Just like math...find the greatest common denominator of the numer
not real sure of the setup of the form but if you have mutiple groups of
items to be updated then you should make the rank an array -- rank[pid#]
you should make all the items -- that are related part of the same group
-- by using []
On Mon, 2002-12-09 at 15:06, Jason Dulberg wrote:
> I am displ
I'm getting a really weird return from Strpos. What I'm doing is this, and
anyone familiar with any of the table-runner programs for RPG's will know
what I'm getting at here, I have a fields, like [adjective], [noun], etc.,
which I need to pull out and replace with values from included php files
If there are none in the math functions then you need to create your own
or do a search at google to see if anyone has created some functions
like that...
On Mon, 2002-12-09 at 16:20, Stephen wrote:
> But how do you find it in PHP?
>
>
> - Original Message -
> From: "Ray Hunter" <[EMA
1 - 100 of 135 matches
Mail list logo