Hello
I need to pass about 15 values to function, what would be best way of
doing it?
Thank you very much
--
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,
maybe in an associative array
jason
- Original Message -
From: Daniel Harik [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, November 04, 2001 4:53 AM
Subject: [PHP] Passing many valaues to function
Hello
I need to pass about 15 values to function, what would be best way
I have following code
?
class Member{
function vallidateForm ($HTTP_POST_VARS){
echo $HTTP_POST_VARS['frmUsername'];
}
}
$user = new Member;
if($action==register){
$user-vallidateForm($HTTP_POST_VARS);
}else{
$user-displayForm();
}
Why i try to run it i get error
Parse error:
which is line 235?
Daniel Harik [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I have following code
?
class Member{
function vallidateForm ($HTTP_POST_VARS){
echo $HTTP_POST_VARS['frmUsername'];
}
}
$user = new Member;
Good day!
1. Send array function_1($arr) where $arr: array.
2. This way is not very correct. just declare this varibles in function as
global.
2.1. The enother way: get access to special array (in php3 only upper
three are avible):
$HTTP_GET_VARS
$HTTP_POST_VARS
$HTTP_COOKIE_VARS
Would the annotated manual LXV. PHP options information be of any use?
=dn
- Original Message -
From: jennyw [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: 03 November 2001 03:18
Subject: [PHP] Re: Questions about php.ini
This is a dedicated server, and I have several sites on it.
Hy,
I'm using PHP 4.0.6 with GD-2.0.1 and Freetype 2 compiled in. After
playing a while with gd, I found that i can generate blank images
with TTF text on it and can put text with imagestring on a png,
but writing with ImageTTFText fails.
Any idea?
Daniel
--
PHP General Mailing List
Does anyone know what the correct entry for the php.ini that allows you to
to use sendmail in OSX 10.0.4 Server?
Thanks,
Jason
--
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
hi php'ers!
just a quick question please, it would help me out a lot.
i've written a form, which passes value to a ph script to insert them
into mysql. from there on, i forward onto another page, but using :
header(Location: http://www.foo.com/foo2.php?id=4user=foo;);
now i really don't want
may be you find accepteble usint
input name=id value=? print $id? type=HIDDEN ???
--
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]
One way would be to choose a web hoster that provides you with cron access.
See JTL Networks at http://www.jtlnet.com
-Original Message-
From: Srinivasan Ranganathan [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 02, 2001 10:22 PM
To: [EMAIL PROTECTED]
Subject: [PHP] cron or
Srinivasan Ranganathan [EMAIL PROTECTED] wrote:
Im working on a newsletter using php. Is there any
way, other than using a cron job?
Of course. Run the script manually via the commandline version of PHP or
require a password and form submission on a web-based version of the script
and run it
sunny AT wde [EMAIL PROTECTED] wrote:
i've written a form, which passes value to a ph script to insert them
into mysql. from there on, i forward onto another page, but using :
header(Location: http://www.foo.com/foo2.php?id=4user=foo;);
now i really don't want to have the url on the next
Hi, thank you for your attention
This is only a sample to understand how the session work, in order to use them
in a more complex web applications
The goal is verify how to pass the var $count through each of the three pages
by the php session function
Particularly, when as usually, a client
php-general Digest 3 Nov 2001 16:19:17 - Issue 973
Topics (messages 73323 through 73342):
Re: Deleting Array elements
73323 by: Daniel Kushner
cron or something similar ?
73324 by: Srinivasan Ranganathan
73339 by: JSheble
73340 by: Steve Werby
Re: Query
When i use function copy($file,$path)to uplode a file , the error message
shows that :permision denied!
what's wrong ,Who can help me!!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact
I'm using PHP 4.0.6 with GD-2.0.1 and Freetype 2 compiled in. After
playing a while with gd, I found that i can generate blank images
with TTF text on it and can put text with imagestring on a png,
but writing with ImageTTFText fails.
Okay, I've tried it with PNG and JPEG, nut nothing works.
Clibpdf is not complied by default as a Shared Object. Once you compile it
in you should just be able to use it.
--
Justin
Carlo loiudice [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I'm trying to install Clibpdf, but when I compile
the source code, It
Hello
Thank you for your prevoius replies
I have 1 main php and 1 chil, i was wondreing how can i execute that
child php file from parent, i just don't know how to do it with eval()
function
Thank You very much
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL
hi all
i am looking for a simple way to find (and then display) the date of the
last change to an entire web site. an example is in the footer on
php.net:
Last updated: Sat Nov 3 13:10:40 2001 EST
thanks for your help
oliver walkhoff
--
PHP General Mailing List (http://www.php.net/)
To
Good day!
The problem I thinck ot in how but in what ... what do you wont to
do?...
Not realy understand the situation...
May be the better way is to convert you child php file in some number of
functions put them in some.php and at include('some.php'); ? ... som
realy this all will
If I have two forms on one page that both use the same script how
do I get only the fields on one of the forms to be submitted? If that
makes any sense.
Jeff Oien
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
On Saturday 03 November 2001 11:28 am, you wrote:
If I have two forms on one page that both use the same script how
do I get only the fields on one of the forms to be submitted? If that
makes any sense.
Jeff Oien
as long as you enclose each form within it's own set of form.../form tags
and
that means you don't have permissions to write that file to whatever
directory is your target.if you tried the same thing from teh command
line you'd get the same error
-Original Message-
From: banyWilson [mailto:[EMAIL PROTECTED]]
Sent: Saturday, November 03, 2001 11:39 AM
To:
Yes i tried that, but problem, is that child file is 1 more class, if
i include it i get error:
Fatal error: Cannot redeclare class blocks in c:\program files\apache
group\apache\htdocs\cms\blocks.php on line 3
Thank You
Have a nice day
--
PHP General Mailing List (http://www.php.net/)
To
I tried and tried. I finally got it to work (multipart/alternative) after
reading the rfc. Read RFC 1521 at
http://www.faqs.org/rfcs/rfc1521.html. Look at section 7.2.2. It will
tell you all you need to know.
By the way everyone, from faqs.org, WHICH I AM SURE MOST OF YOU USE TIME TO
Jason G. [EMAIL PROTECTED] scrawled:
I tried and tried. I finally got it to work (multipart/alternative) after
reading the rfc. Read RFC 1521 at
http://www.faqs.org/rfcs/rfc1521.html. Look at section 7.2.2. It will
tell you all you need to know.
RFCs 2045 - 2049 would be a better
Hi,
I have problem with array function that return an array and preserved the key
of the array argument. Take example of array_diff:
I have 2 arrays that has index 0,1,2, ... as the key, and use it as the
argument, say $arrA, and $arrB,
$arrC = array_diff($arrA, $arrB);
since the key are
input type=checkbox name="Option1" value="440||014" "
input type=checkbox name="Option2" value="340||015" "
input type=checkbox name="Option3" value="240||016" "
input type=checkbox name="Option4 that also includes product of code 014"
value="440||000"
I have the form (look at top) and i
hello,
how can i send bcc from my php @mail script.
regards
--
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]
Hello,
I need to put a small security feature in one of my page.
The page is open as a popup from another web site. By checking the referer I tought
I could block any other call to this page but the referer variable is often not set...
What else could I do? ( no ssl so far is available for this
On Saturday 03 November 2001 11:28 am, you wrote:
If I have two forms on one page that both use the same script how
do I get only the fields on one of the forms to be submitted? If that
makes any sense.
Jeff Oien
as long as you enclose each form within it's own set of form.../form
"Nikola Karovi" [EMAIL PROTECTED] wrote:
how can i send bcc from my php @mail script.
mail( $to, $subject, $message_body, "From: $from_name
$from_address\nbcc:[EMAIL PROTECTED]" );
--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/
--
PHP General Mailing List
Hi all
Maybe I should be posting this on the Procmail list but someone here
might have a non-Procmail solution. I'm trying to get a PHP script to
process incoming email. The script will lookup a database and do
something depending on the mail headers. I'm running on a FreeBSD
virtual server
On Saturday 03 November 2001 02:08 pm, Ross wrote:
Maybe I should be posting this on the Procmail list but someone here
might have a non-Procmail solution. I'm trying to get a PHP script to
process incoming email.
I'm sure it can be done with PHP, but my first thought was why would you
want
I have a number like this 0.51 and I would like it to display without
the leading 0. How can I do this? Thanks.
Jeff Oien
--
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
You can do this in a per-page basis w/:
$modified = stat(yourfile.html);
echo date(l, F dS,$modified[9]);
(As with most things ;).. this can be found in the manual. Check @
php.net/stat for more info..
%Ryan
-Original Message-
From: oliver walkhoff [mailto:[EMAIL PROTECTED]]
php - php-gtk
--
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]
Maybe I should be posting this on the Procmail list but someone here
might have a non-Procmail solution. I'm trying to get a PHP script to
process incoming email. The script will lookup a database and do
something depending on the mail headers. I'm running on a FreeBSD
virtual server account
Jason Michael wrote:
Does anyone know what the correct entry for the php.ini that allows you to
to use sendmail in OSX 10.0.4 Server?
Sendmail support is disabled when OS is Windows, it should be able
to use sendmail support with Mac OSX. (It it work :)
--
Yasuo Ohgaki
--
PHP General
I have two private areas within each other. The parent folder has one and
then another inner folder has another authentication or private area using
http basic authentication for both of the above.
The problem is that when I enter the password of the Parent directory, the
password is set to
[EMAIL PROTECTED] wrote:
Hello, and thanks for your time. First time...
I saw a great resource on installing php on raq 3 (What I have, linux)
http://marc.theaimsgroup.com/?l=php-generalm=98039640119670q=raw
but the thing is I have mysql installed
when I do am done downloading, it
Ok, but how do I use post when using Header??
I would like to have a form, but I don't know how I would make the
script automatcially re-direct in a form... becase I know how to use
form variables that way.
But all I can think of is using header, yet that displays the
variables as its like get
[EMAIL PROTECTED] wrote:
when I do am done downloading, it says to use:
./configure --with-apxs=/usr/sbin/apxs --with-mysql=/usr/local/mysql
--enable-track-vars --enable-trans-sid --enable-ftp
Ok, but I have mysql. Should I remove the --with mysql ...
If you want MySQL support in PHP you
php-general Digest 4 Nov 2001 04:57:36 - Issue 974
Topics (messages 73343 through 73372):
problem with copy($file,path) to up load a file
73343 by: banyWilson
73351 by: Jack Dempsey
Re: Trouble with PNGs
73344 by: Daniel Reichenbach
Re: How to use Clibpdf
Jeff Oien [EMAIL PROTECTED] wrote:
I have a number like this 0.51 and I would like it to display without
the leading 0. How can I do this? Thanks.
There are lots of solutions.
$num = 0.51;
$num_parts = explode( '.', $num );
$num_new = '.' . $num_parts[1];
Or if it's always going to be a
Ryan Christensen [EMAIL PROTECTED] wrote:
You can do this in a per-page basis w/:
$modified = stat(yourfile.html);
echo date(l, F dS,$modified[9]);
Also see getlastmod() and filemtime().
--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/
--
PHP General
On Saturday 03 November 2001 21:12, Steve Werby wrote:
Ryan Christensen [EMAIL PROTECTED] wrote:
You can do this in a per-page basis w/:
$modified = stat(yourfile.html);
echo date(l, F dS,$modified[9]);
Also see getlastmod() and filemtime().
I am interested in this also. I understand
last modified ?php echo date(D d-m-Y H:i:s, filectime(__FILE__)); ?
^ I put that on the bottom of every page on some sites I make.
--
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
Hi,
i have little problems while trying to retrieve the modification time for
some files.
The OS is Linux Red Hat 7.1 and i'm trying to get the modification time for
a MySQL table (.MYD or .MYI file).
In the beginning everything was OK and the filemtime() function worked
without any problems. But
Why does PHP give a parse error if you do:
echo array_keys($arr)[0];
It makes you assign the result of the function to a var first like this:
$arr = array_keys($arr);
echo $arr[0];
I just want to grab the 1st element of the array. Why does it make you do
it in 2 lines
51 matches
Mail list logo