I want from a Form page to pass a couple of values (fooa, foob, fooc)
which are not form fields
when submit button pressed to the submited page...
Use hidden fields:
input type=hidden name=fooa value='value_of_fooa'
input type=hidden name=foob value='value_of_foob'
input type=hidden
If this isn't in the PHP FAQ (I couldn't find it), it definitely should
be,
because somebody asks this question at the very least once a week on this
list.
Very useful feature, i think :) and better to add it to the manual III.
Features section
(with file apploading, image functions etc)
in index.html you write
img src=aaa.php
in aaa.php you write
?php
$im = @ImageCreate (240, 80)
or die (Cannot Initialize new GD image stream);
$background_color = ImageColorAllocate ($im, 255, 255, 230);
$text_color = ImageColorAllocate ($im, 0, 0, 0);
ImageString ($im, 3, 10, 20,
?php
$i = 10;
eval (\$result$i=\test\;);
echo $result10;
?
Valentin Petruchek (aki Zliy Pes)
http://zliypes.com.ua
mailto:[EMAIL PROTECTED]
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, January 19, 2002 2:47 AM
Subject: [PHP] Variable Problem
/19 is ok, but \19 really fails. Try put \\19 instead.
Valentin Petruchek (aki Zliy Pes)
http://zliypes.com.ua
mailto:[EMAIL PROTECTED]
- Original Message -
From: Scott Fletcher [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, January 18, 2002 7:45 PM
Subject: [PHP] /19, the /
Not sure this is exactly what you need but try this:
@Draw_Table() or default_func();
Valentin Petruchek (aki Zliy Pes)
http://zliypes.com.ua
mailto:[EMAIL PROTECTED]
- Original Message -
From: S. Murali Krishna [EMAIL PROTECTED]
To: PHP List [EMAIL PROTECTED]
Sent: Monday, January 21,
intval (2.05);
Valentin Petruchek (aki Zliy Pes)
http://zliypes.com.ua
mailto:[EMAIL PROTECTED]
- Original Message -
From: Jerry [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, January 21, 2002 3:35 PM
Subject: [PHP] Integer in PHP
Hi,
I'm new in PHP, coming from JavaScript.
But at 300,000 page views a day, even if the caches only have a ttl of 1
hour I'm still saving over %90 of the traffic from having to query the
database.
During our busy times I have a bottle neck with the database maxing out
the CPU's, so If I can cut the queries the server won't be
The greatest way of doing this is
1. develope php-script for generating updated html from moved
php-script
and updating index.html (e.g. ;)
2. develope another script or program which will call the first one
periodically (once an hour, e.g.)
I like that.
It sounds similar to
How can I, using:
INPUT TYPE=\FILE\ NAME=\UPLOAD_FOTO\ SIZE=\40\
specify the file extension.
I want the user only to upload *.jpg.
You can only check $userfile_type to detect the type of uploaded file. You
can specify nor extension to browse dialog neither default path for
browsing...
I am running Apache 1.3 on WindowsXP just for some developement stuff that
I
do at home. I just installed PHP to the server but I can't get it to
recognize .php as an extension and to have it load those as if they were
.html files. IE index.php it just shows a directory listing instead
Since reading your first post I've been racking my brains/teasing my
memory. I'm sure there's an article on one
of the popular PHP sites that talks about exactly this: creating a web
page dynamically, but serving it as
static HTML (ie with no back-end db access per serving).
This idea came to
Even with straight HTML, a server's load capacity is not infinite. If
my own server, an old Pentium with 4 GB of hard drive space, and which
serves nothing but static HTML pages, got hit with more than a couple
hundred hits in a short period of time, it would bomb.
I must be
http://www.php.net/manual/en/ref.datetime.php
Valentin Petruchek (aki Zliy Pes)
http://zliypes.com.ua
mailto:[EMAIL PROTECTED]
--
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
http://www.php.net/manual/en/ref.com.php
Valentin Petruchek (aki Zliy Pes)
*** ??? ?? ***
http://zliypes.com.ua
mailto:[EMAIL PROTECTED]
- Original Message -
From: Mihail Bota [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Thursday, January 24, 2002 9:52 AM
How about creating a mailing list will 19000 users and
then using the mail() function to send mail to that
list. so that you will not have to loop through.
The main disadvantage (not sure of such long $to) is that EVERY user will
receive e-mail's of others.
Valentin Petruchek (aki Zliy Pes)
Dear all
I had open a webpage which design from my company's pervious staff!
This page is a input form, and when i look at the properity of the Form i
saw this:
form name=o_form action=deposit_admin.php?save=yes method=post
What is the ? mean in the Action part?
after ? goes the list
ok.. well an echo goes
echo what u want to echo;
so u would do it this way
echo html code.. making sure u dont use a in any of ur html code;
php stuff
echo $phpvariable br more html code.. if u want to use a use a '
instead.;
more php stuff.
If u want to use use \ instead...
if u
Hello, php-world!
I'm developing web-based file manager and need to call unlink(), copy(),
mkdir().
May be you've already guessed that i failed with them because of Permission
denied.
How can i avoid this? Maybe using `command line` and logging in before
calling funcs.
I'm using php 4.1.0 on
Hello to everyone
Problem :
A php form contains a listbox (named foolist) with n Items which can be
multiple selected and form posted to
results.php how can results.php determine which items were selected in
order
to add all the items in a Mysql table ???
thanks in advance for any
Hello, php-world!
I know my question a little offtopic;), but:
we have apache running under user nobody.
now we want to change this user to another one on certain folder.
We want php to run under this new user.
We cannot change set httpd.conf to do it.
can anyone give an example of such
Hello,
I was wondering, how would I pass commands to a program and print the
results on my screen?
For instance, to add an FTP user the command would be:
pure-pw useradd joeblow -u ftpuser -d /home/joeblow
How would I make a php script do that and display it's output when it's
done?
Hello, list!
I have textarea in my page and want it to insert \tabs when clicking Tab
instead of focusing on the next control element. Any thoughts or
suggestions?
Thanks
Valentin Petruchek (aki Zliy Pes)
*** Cut the beginning ***
http://zliypes.com.ua
mailto:[EMAIL PROTECTED]
--
PHP
Hello!
a have following mysql problem:
i need to execute several inserts at one query like this-
$sql-action(insert into words(word) values ('php');
insert into words(word) values ('general');
insert into words(word) values ('list'););
The word fild is unique
My problem is: when certain word
Sorry, incorrect subj!
Hello!
a have following mysql problem:
i need to execute several inserts at one query like this-
$sql-action(insert into words(word) values ('php');
insert into words(word) values ('general');
insert into words(word) values ('list'););
The word fild is unique
My problem
Suppress the error message:
$result = @mysql_query(sql statement,$db);
DL Neil, thank you: INSERT IGNORE is exactly what i need. You helped me
greatly!
Matt, thaks you for help too, but my non-perfect english doesn't allow me to
express my thoughts correctly.
Thanks!
Valentin Petruchek (aki
Hello, list!
I've php script that works for seveeral minutes (3-5) - it indexes my site
and when page is indexed it echoes a one-row table (page bla.bla.bla
indexed). But browser shows it only when it gets all the page.
I want it to show line by line... I know it can be done in perl
Thanks! Exactly what i need! Thanks a lot!
By default, PHP's output is buffered.
To disable output buffering use
ob_implicit_flush();
somewhere in your script.
This flushes previous output to the client and disables buffering.
For more info look at the manual's chapter on 'Output
count($array)
Valentin Petruchek (aki Zliy Pes)
http://zliypes.com.ua
mailto:[EMAIL PROTECTED]
- Original Message -
From: David Orn Johannsson [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, February 06, 2002 1:50 PM
Subject: [PHP] Array length
Isin't there a function to
Let prices(id,price etc.) be table of prices, products(NUM,name etc).
Try smth like this:
SELECT DISTINCT * FROM PRODUCTS P, PRICES P1, PRICES P2
WHERE P.NUM=P1.ID AND P.NUM=P2.ID AND P1.SIZE=SIZE1 AND P2.SIZE=P2
Valentin Petruchek (aki Zliy Pes)
http://zliypes.com.ua
mailto:[EMAIL PROTECTED]
Or use such method:
1. create form with $PHP_SELF as action
2. in the beginning of php script check if form was posted and if was check
it for correctness
3. if form is ok, save post data and then redirect user with Header(to
certain page)
4. if form is bad, stay at this script and display both:
USE MANUAL!
I don't know to configure MySql Database On Apache Server in Windows System.
What I must do? (step by step)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
i can?t seem to get my head to wake up...
How would i do to count how many different values that exists in a mysql
field? Ie i have a date-field and need to know how many different dates
that
exists in the table.
select count(distinct name) from site; in Mysql
Valentin Petruchek (aki
Don?t really want to bother you with these quickies - but:
If i have a result from mysql that is a date (2002-02-09) - how do i
change
that into a variable with only the first 7 characters (2002-02)?
SELECT year(data), month (data) from table;
Valentin Petruchek (aki Zliy Pes)
*** Cut the
You can add hidden field in form and before posting set it value to js
variable value that can be easily used by PHP script
Valentin Petruchek (aki Zliy Pes)
*** Cut the beginning ***
http://zliypes.com.ua
mailto:[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To
$remote_addr returns exactly client ip; but if user is behind proxy then
$remote_addr will return you proxy ip and you can do nothing with it
Valentin Petruchek (aki Zliy Pes)
*** Cut the beginning ***
http://zliypes.com.ua
mailto:[EMAIL PROTECTED]
--
PHP General Mailing List
Zliy Pes)
*** Cut the beginning ***
http://zliypes.com.ua
mailto:[EMAIL PROTECTED]
- Original Message -
From: Michael Sims [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, February 12, 2002 2:29 AM
Subject: Re: [PHP] MsSQL PASSWORD()
At 06:34 PM 2/11/2002 +0200, val petruchek wrote
IMHO escribed feature is not a bug.
most probably this 'bug' is a special hole just in case.
Valentin Petruchek (aki Zliy Pes)
*** Cut the beginning ***
http://zliypes.com.ua
mailto:[EMAIL PROTECTED]
- Original Message -
From: Lars Torben Wilson [EMAIL PROTECTED]
To: Jerry Verhoef (UGBI)
if ((int($string)==($string)) ($string0)) {then positive integer}
not sure exactly, but try
Valentin Petruchek (aki Zliy Pes)
*** Cut the beginning ***
http://zliypes.com.ua
mailto:[EMAIL PROTECTED]
- Original Message -
From: B. Verbeek [EMAIL PROTECTED]
To: Php-Db-Help (E-mail) [EMAIL
) ($string0))
2) (int)'5a' == 5, so this formula would result is 5a == 5!
--Daniel
-Original Message-
From: val petruchek [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 12, 2002 6:22 AM
To: [EMAIL PROTECTED]
Cc: PHP
Subject: Re: [PHP] ereg-digits only...
if ((int($string
Call phpinfo() and search for necessery variable ($SERVER_NAME maybe)
Valentin Petruchek (aki Zliy Pes)
*** Cut the beginning***
http://zliypes.com.ua
mailto:[EMAIL PROTECTED]
- Original Message -
From: Christian Blichmann [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, February
12, 2002 3:06 PM
Subject: Re: [PHP] MsSQL PASSWORD()
At 09:26 AM 2/12/2002 +0200, val petruchek wrote:
My current project runs on Win2k, MsSQL 2k, and PHP 4.0.6
My problem is that i can not enable md5 extension because of
Unable to load dynamic library
'c:\windows\php\extensions
$data = file ($certain_file);
echo {$data[0]}\n;
echo {$data[3]}\n;
echo {$data[7]}\n;
Valentin Petruchek (aki Zliy Pes)
*** Cut the beginning ***
http://zliypes.com.ua
mailto:[EMAIL PROTECTED]
- Original Message -
From: John Gurley [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent:
$data = file ($certain_file);
echo {$data[0]}\n;
echo {$data[3]}\n;
echo {$data[7]}\n;
Valentin Petruchek (aki Zliy Pes)
*** Cut the beginning ***
http://zliypes.com.ua
mailto:[EMAIL PROTECTED]
- Original Message -
From: John Gurley [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent:
Hi Rick,
Thanks for the support!
This is the mySQL Table Structure :
$sql = CREATE table fanlist_try (ID bigint(21) NOT
NULL auto_increment, name varchar(50), email
varchar(70), age int(10), sex varchar(20), country
varchar(50), PRIMARY KEY (ID));
sex varchar(20) sounds great. why do
!!
T. Edison jr.
--- val petruchek [EMAIL PROTECTED] wrote:
Hi Rick,
Thanks for the support!
This is the mySQL Table Structure :
$sql = CREATE table fanlist_try (ID bigint(21)
NOT
NULL auto_increment, name varchar(50), email
varchar(70), age int(10), sex varchar(20
you're
talking about. i don't think i know enum() function!!
T. Edison jr.
--- val petruchek [EMAIL PROTECTED] wrote:
Hi Rick,
Thanks for the support!
This is the mySQL Table Structure :
$sql = CREATE table fanlist_try (ID bigint(21)
NOT
NULL auto_increment
$s = substr($s,0,strlen($s)-1);
Valentin Petruchek (aki Zliy Pes)
*** Cut the beginning ***
http://zliypes.com.ua
mailto:[EMAIL PROTECTED]
- Original Message -
From: marcbey [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, February 14, 2002 1:48 PM
Subject: [PHP] last char in
test msg pls ignore
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi again, php gurus!
Does anyone of you have any experience working with revecom rfom php script?
Will be grateful for any comments and links to articles of the subject
--
Sincerely, val petruchek
http://val.zp.ua
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit
check for eval function
--
Sincerely, val petruchek
Tom Beidler [EMAIL PROTECTED] ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ
ÓÌÅÄÕÀÝÅÅ: [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I'm wondering if this can be done, and if so, what's the proper way to do
it.
For the current issue I'm trying to un
about error.
Maybe this helps
--
Sincerely, val petruchek
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
If you don't like arrays you can use objects:
function multireturn()
{
$result-first = Ticket #1;
$result-second = Ticket #2;
return $result;
}
--
Sincerely, val petruchek
Andy [EMAIL PROTECTED] ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ ÓÌÅÄÕÀÝÅÅ:
[EMAIL PROTECTED]">news:[EMAIL P
(Cache-Control: post-check=0, pre-check=0, false);
header(Pragma: no-cache); // HTTP/1.0
--
Sincerely, val petruchek
Skyhawk [EMAIL PROTECTED] ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ ÓÌÅÄÕÀÝÅÅ:
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Please, How do I make for my webpage
Check Apache limitations
--
Sincerely, val petruchek
Norman Zhang [EMAIL PROTECTED] ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ
ÓÌÅÄÕÀÝÅÅ: [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi,
I can't seem to upload file bigger than 5M even if I set the
upload_max_filesize to 20M in php.ini and MAX_F
I receive this sh!t everytime i post message here.
Can we get him out of the list?
Hello,
I will be on vacation from 07/08/02 till 07/19/02 . If you need assistance
with your website, please contact either Chris : [EMAIL PROTECTED] or
Dave : [EMAIL PROTECTED]
Best Regards,
, val petruchek
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
*/1 * * * * val /usr/local/bin/lynx -source
http://php.net/crontab/steward.php
- example of how to call script every minute
--
Sincerely, val petruchek
Maas [EMAIL PROTECTED] ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ ÓÌÅÄÕÀÝÅÅ:
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
What do I have to do befo
don't be afraid - it works perfect.
i mean mail() on win32 server
my question is - how to set up SMTP
authorization in php ini
(if smtp server requires pop auth)
is it possible or should i use direct smtp
connection?
--
Sincerely, val petruchek
--
PHP General Mailing List (http
Have a look the the Pear mail.php or google for php smtp auth
already done, but i've my own smtp class anyway.
i hoped to avoid rewriting code which used mail().
thanks
--
Sincerely, val petruchek
Jason Wong [EMAIL PROTECTED] ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ
ÓÌÅÄÕÀÝÅÅ: [EMAIL PROTECTED]"
interface for IMAP protocol.
--
Sincerely, val petruchek
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
61 matches
Mail list logo