Then split the variable where there is a "S". The problem showed up
when
there is another "S" in the field. I only want to split the first "S"
at the
beginning of the field. Isn't there an additional value to add to the
split
$line = 'S12345';
if ($line[0] == 'S') {
/* do stuff */
}
$st
On Saturday, March 8, 2003, at 08:49 AM, Christopher Smith wrote:
Greetings,
I've recently searched newsgroup archives on how to convert text
into an
image.
Another good place to get start-up information, assuming that GD is
available on your setup, is the manual:
http://www.php.net/manual/e
Hi John:
Well actually I believe that you don't have to set MAX_FILE_SIZE...(I
don't)
but you might want make sure that you are not trying to send a file
larger than the post_max_size directives in php.ini and ensure that
file_uploads is set to allow http uploads.
On Sunday, February 9, 2003, a
Karl:
Your question appears to be completely off-topic but perhaps this might
help you.
http://www.gotquestions.com/xs/seeDocument.asp?topicID=14&documentID=696
On Saturday, February 1, 2003, at 03:56 PM, Karl James wrote:
IncrediMail -
On Saturday, February 1, 2003, at 10:58 AM, Tomator wrote:
I tried but I can't upload any file. My form and code are as following:
Try looking at:
http://www.php.net/manual/en/features.file-upload.php
There is a working example there.
--
PHP General Mailing List (http://www.php.net/)
To uns
Hi:
I believe that if you reference the form element like:
document.forms['mycell[]'].value
you will get what you want.
HTH
David
On Friday, January 17, 2003, at 08:33 PM, Nico Jansen - NiRo IT
Consultants B.V. wrote:
Hi all,
I'm trying to write a grid widget in php. When the user changes th
Hi Phil:
It probably does what you are asking it to do. Have you checked the
value of $nickname to see if you are setting it to "bob" or appending
"bob" to it?
i.e first time $nickname = "phil"
second time $nickname = "philbob"
HTH
David
On Saturday, December 28, 2002, at 02:24 PM, Phil Powell
Hey loop:
On Sunday, December 22, 2002, at 03:35 PM, James Brennan wrote:
It's a new day and I'm still trying to figure my flat-text database
update problem out. I am uploading from mac to unix .
I Assume you are uploading from Mac OS 9 or earlier, 'cause OS X is
UNIX :)
(Although OS X is a
On Thursday, December 12, 2002, at 03:10 PM, Marek Kilimajer wrote:
Does anyone know a way to change endianness of a binary string?
Hi Marek:
You might look at pack() and unpack().
http://www.php.net/manual/en/function.pack.php
Perhaps one of the options for unpack?
HTH
David
--
PHP Gene
Hi Jeff:
Brent Ashley has written some cool stuff to make asynchronous remote
calls to server without client page refresh using javascript/iframe
etc. There is a PHP version.
Go to:
http://www.ashleyit.com/rs/main.htm
And click on the link:
Javascript Remote Scripting (JSRS).
It works for most
Hi Keith:
Unfortunately, the information has to be sent to php. As soon as I
add the [] brackets to
an input name, the javascript no longer functions. I'll look up a
javascript mailing list next,
but I figured there must be some other way to get php to recieve the
data and convert it
to an a
Thanks Mike and Ernest for the info on how to handle the "var[]"
Multiple Select name more sensibly in JavaScript.
Not even a workaround. By definition, in JavaScript x.y is identical
to x['y'], so where for a simple field you might write:
document.formname.myvar.value
for a field n
On Tuesday, November 12, 2002, at 07:34 PM, Ernest E Vogelsinger wrote:
Sure it is - just name the listbox control "myvar[]" (note the angle
brackets). PHP will recognize this being an array, and you'll end up
with
$myvar = array('select1','select2');
Is this the only way to do this?
I jus
Here's a site that has a lot of interesting stuff.
http://www.selfpromotion.com/
On Tuesday, November 12, 2002, at 09:51 AM, Edward Peloke wrote:
My php site is almost done so now I need to begin the task of getting
it
noticed online. Can anyone suggest some good books or sites where I
can
le
Hi Rija:
No It's not "mandatory" to put quotes around attributes, but it would
be wise to use this style="recommended" method of representing
attributes, if for no reason="other" than to get used to a habit="good".
coding="happiness"
David
On Monday, November 11, 2002, at 12:36 AM, rija wrote
Georgie:
So just for clarity, this "PHP" script
("http://localhost/top_stuff.php?affiliate=1";) was actually a file
containing javascript? and no PHP?
And out of curiosity, if that is so, why append the file name with
".php"
-David
On Sunday, September 22, 2002, at 07:20 PM, Georgie Casey w
http://www.webreference.com/programming/php/regexps/5.html
Here's a short article that shows how to write a function to validate an
ausie phone number (2nd example). Should be easy to modify to suit.
perhaps using something like
ereg("[0-9]{3}-[0-9]{3}-[0-9]{4}$", $phoneNum);
Another at http:/
But if array_rand() truly pulls out random keys, how do you guarantee
that you are not randomly pulling out the same key as you iterate
through the array?
Perhaps you could set the number of keys to return, to the size of the
array, and somehow, magically, all the keys would be included in the
Hi:
I am attempting to calculate a mortgage payment using the following code.
which produces: 630.40515566726
What I am looking for is 632.65 (rounded to 2 places).
(I am not looking for a rounding mechanism, just a more accurate result)
The manual states that the pow function attempts to ret
You may also want to look at:
http://www.entropy.ch/software/macosx/php/
A build for Mac OS X based on PHP 4.4.2 with simple download and install
instructions.
HTH
David
On Wednesday, September 4, 2002, at 11:46 PM, Michael Geary wrote:
> Perhaps the best thing to do would be to wait for PHP
Hi Timo:
From Marc's site:
"Where is the php.ini file?"
There is none included in the package. If you need one, just create it
as /usr/local/lib/php.ini, including the intermediate lib directory if
that doesn't exist already:
sudo mkdir -p /usr/local/lib
sudo touch /usr/local/lib/php.ini
H
> then
> the user could supply ok=1 and get into let_them_in() regardless of the
> value of $password.
>
> Now, if you make your code E_ALL clean and make sure you initialize your
> internal variables, you are correct, having register_globals on is
> cleaner
> and easier to
Hi:
I have a test site where I am trying out a few things in PHP. I started
off with register_globals on. Then I read in the docs that it is best
to turn turn register_globals off. I did so and now I am having a
marvelous time recoding some session stuff :(
I could not find much info on why "
Hi Paul:
Thanks, that worked.
Cheers,
David
On Sunday, August 11, 2002, at 07:11 PM, Paul Colcutt wrote:
> Hi,
>
> you need to set the permissions for the directory youre creating the
> file in.
> Try typing (or copy and paste):
>
> chmod 777 /Library/WebServer/Documents/dev
> into Terminal.
Hi:
I'm new to PHP.
I'm running Apache/PHP/MySQL on Mac OS X 10.1.5 (PHP 4.1.2) and
everything is working well except that I cannot create a file through
PHP. If I create a file I can subsequently read/write from PHP, but only
after I change its file permissions to read/write for everyone.
Wh
25 matches
Mail list logo