What is your environment? (OS, glibc version, Web Server, PHP version, compiler
version, How do you use PHP? Shared module/CGI, Character Set, etc)
I have different, but similar problem.
Yasuo Ohgaki
From: "kaab kaoutar" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, March 10, 2001 3:42
Ah, sorry.
Here's the deal. Our company runs Unix on Sun Solaris (sorry, don't know
the numbers of the top of my head) servers. We have Apache set up to go
through every HTML file which is served, and look for instances of a
particular command. For example, in our HTML files, we might have
Hi,
is it a fact that: If I have multiple select with e.g. "pers[]" as
name, I cannot check for an isset($pers) if the user left the field
blank?
I know it all works with textfields ... But in this case isset()
seems not work. There is also no entry in HTTP_POST_VARS for that.
Or might this
Hi,
I installed PHP4 onto my FreeBSD 4.2 computer but i'm getting this error,
anyone able to tell me how i can fix it?
Warning: Failed opening '/usr/local/apache/htdocs/mick/domain.php' for
inclusion (include_path='') in Unknown on line 0
Thanks in advanced
--
PHP General Mailing List
On 9 Mar 2001 22:43:08 -0800, [EMAIL PROTECTED] (Aaron Tuller)
wrote:
At 12:27 AM -0600 3/10/01, Jeffrey Greer wrote:
With paypal's business account there are no credit checks and the rate
is 2.2% for cc payments.
You bring up valid points, but I still think paypal could be good for
a lot of
Mick -
M Warning: Failed opening '/usr/local/apache/htdocs/mick/domain.php' for
M inclusion (include_path='') in Unknown on line 0
if you get this error it probably means you don't have permissions set
up correctly.
Check the owner of your apache process and set owner/permission for
your php
ssb Sat Mar 10 01:59:16 2001 EDT
Modified files:
/php4/pear PEAR.php.in
Log:
* only register the destructor if it exists
Index: php4/pear/PEAR.php.in
diff -u php4/pear/PEAR.php.in:1.14 php4/pear/PEAR.php.in:1.15
--- php4/pear/PEAR.php.in:1.14 Thu Feb
What's with all the spam on this list anyway? Is there no moderation at all?
I'm working on some i18n issues, and I'll have some questions / answers
soon, but this list is way too spammy for now.
Also: since it's so low traffic, can we set it to reply to the list by default?
Peter
Haha
hello,
i'm trying to do something like
$tmparray = array("foo", "foo1", "foo2");
if ($i in $tmparray) then do something
..
but i dont know how to do it.
any help would be appriciated
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
Its a function.
in php4, easy: http://php.net/manual/en/function.in-array.php
there will be an example for php 3 as well.
At 11:36 AM 3/10/2001 +0100, you wrote:
hello,
i'm trying to do something like
$tmparray = array("foo", "foo1", "foo2");
if ($i in $tmparray) then do something
..
but i
Hi,
what's up Mick?!
Okay, what have you written in your script?! You never
wrote it! try include ('./domain.php') instead of
include ('domain.php') maybe it helps you! I tested
that on my FreeBSD 4.2+apache/php but it seems that
include ('domain.php') is also OK. Just give it a try or
add the
Hi,
Does anyone know how I can create a combo box in my php file that reads the options in
from a database field?
I can create combo boxes fine containing values that I enter, but I want it to read
the values from the database into the drop down box for the user to select.
Thanks,
Michael.
Hi Michael,
Yes I do! Take a look at the code snippet below:
echo "select name=something";
$level2 = $db-execute("select typename from types");
do {
$value=$level2-fields[0];
echo "option value=$value$value/option";
$level2-nextRow();
} while
php-general Digest 10 Mar 2001 12:18:51 - Issue 558
Topics (messages 43243 through 43301):
Re: Advanced PHP
43243 by: Thor M. Steindorsson
43244 by: Keith Vance
43247 by: Rick St Jean
43249 by: Keith Vance
43250 by: Jeff Oien
43251 by: Jerry
On 10-Mar-01 RealGM wrote:
Hi,
Does anyone know how I can create a combo box in my php file that reads the
options in from a database field?
I can create combo boxes fine containing values that I enter, but I want it
to read the values from the database into the drop down box for the
I seem to be making a mistake somewhere...
# Define the navigation bar array
$navbar = array("navmain", "info", "music", "orch", "synth", "syntype",
"audio", "recordings");
# Define the pages in arrays by section
$main = array("home");
$info = array("infomain", "about", "contact",
How do I make a variable persistent between webpages?
V e r b a l
--
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]
-Original Message-
From: Martin Skjoldebrand [mailto:[EMAIL PROTECTED]]
Sent: Saturday, March 10, 2001 3:22 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Variable scope
How do I make a variable persistent between webpages?
Take a look at the session functions described at:
I'm looking for a nice step by step man on the internet to make my own php
extension.I've been trying for days now to make and compile my extensions,
but it seems impossible.
Thanks, Seb
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
I have some questions about PHP and it's interaction with a DB (namely,
Interbase). My client's application uses a DB extensively and I am not
clear about opening and closing a DB - the price one pays.
First, I notice that the approximate time to open a connection to my DB
on my test system is
I have Scripts that seem to cause imense Kernel (not user) CPU Load
under Solaris,
could this be caused by using classes?
I already removed use of md5() and crypt() from the scripts no change so
far.
What else could cause an immense increase in Kernel CPU Load?
tks
Jens
--
Gre aus dem schnen
I often receive email from commercial sites (e.g. ZDnet) that looks like
a Web page. How can I do that with Sendmail in PHP?
Todd
--
Todd Cary
Ariste Software
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
My mother didn't teach me much about life, nor my Dad. So, after
socially getting the equivalent of brick marks on my forehead from
banging against the brick wall of ignorance, I eventually watched how
people I admired conducted themselves around others. I observed this:
DON'T talk in public or
Can't the files be put into a directory that Apache has access to and
the users don't, and just ask the users to include them? Or put them
into a global prepend in a directory same as above?
--
Sites by friends of mine:
Hello
I'm PHPer in Korea.
Now I have a problem with mail function.
I used it many times and it worked very well.
But it has a problem today !
When I use mail() function in a PHP web page, it took too many times to show that web
page like sleep.
Mail function returns some values so I guess it
Is there any UTF-8 r UTF-32 compatibility in PHP? I want to be
multinational with the SAME scripts, not a dozen. I haven't tried
anything yet, just asking
--
Sites by friends of mine: http://www.myhiddentreasures.com/
This sounds like a good idea for a PHP 'NetZip'(tm) rip-off. Anyone made
a PHP/JavaScript upload, download program(s) that sends data in chunks,
does
error checking on the chunks, keeps track of the download process, can
pause,
all the Netzip stuff? (And NetZip has some problems, as well as
I'm not exactly sure of what you're doing, however, if
you're trying to find a match to an element of an
array and if there's a match do somethingyou might
try
for ($i=0; $i count($temparray); $i++){
if ($temparray[$i] == "something"){
do whatever this and that;
}
}
rm
--- Gregor
Or you could use this in php4:
if ( in_array( "something", $temparray )) { do stuff }
-J
- Original Message -
From: "rm" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, March 10, 2001 4:54 PM
Subject: Re: [PHP] some array help :)
I'm not exactly sure of what you're doing,
At 01:58 PM 3/10/01 -0500, John Vanderbeck wrote:
You are using in your statement ... should be "AND"
.
The following code is giving an me problems, I can't figure it out to save
my soul. The last line gives:
Here is the code:
$link = db_connect();
$query = "UPDATE Users SET
At 19:58 10.03.2001, John Vanderbeck said:
[snip]
$query = "UPDATE Users SET firstname='$firstname', lastname='$lastname'
WHERE username='$user' password='$password'";
[snip]
Try "AND" instead of "", this should
is there some kind of function or event launched when a session times
out??
something like session_on_end() ??
i'm using a flag on a database to tell if a user is visiting the page and
i would like to make him offline when his session expires...
--
PHP General Mailing List
Ok,
Well I got 3 replies saying that my use of is incorrect, and that I
should use AND. This confused me for 2 reasons. First, is that I use in
all my other SELECT queries, with no problems. In fact, the MySQL docs,
show the use of , not AND. Secondly, because if I had a bad query, it
Send e-mail headers:
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
Then in the body, put your HTML.
Todd Cary wrote:
I often receive email from commercial sites (e.g. ZDnet) that looks like
a Web page. How can I do that with Sendmail in PHP?
Todd
--
Hi,
anyone know of a way to get a list of all installed fonts on a system for
use inside of a combo box?
TIA!
Andre
--
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
Well, PHP seems to think that $link is not working, so your db_connect() is
in fact, the problem. You say you use db_connect several times in this
script without problem - why do you keep connecting to the same database
repeatedly in the same script - one connection will do for all your queries.
The following code is giving an me problems, I can't figure it
out to save
my soul. The last line gives:
Here is the code:
$link = db_connect();
$query = "UPDATE Users SET firstname='$firstname', lastname='$lastname'
WHERE username='$user' password='$password'";
$result =
On Saturday 10 March 2001 19:58, you wrote:
The following code is giving an me problems, I can't figure it out to
save my soul. The last line gives:
Here is the code:
$link = db_connect();
$query = "UPDATE Users SET firstname='$firstname', lastname='$lastname'
WHERE username='$user'
I do'nt connect multiple times..its one large script that handles different
tasks based on the settings of control vars. I just like to keep it all
together. The $link has to be valid, or it would be erroring out on the
mysql_query() call. Which it is not, and it reports no errors with that
Grr..
Thank You! God I feel like the idiot now. Why didn't I see that? Heck why
didn't anyone else see it either :) I'm so used to using $rows =
mysql_num_rows($result), that I just did the same thing here. But your
right, the docs say THIS one takes a LINK and not a RESULT identifier. Grr..
Hi All,
Sorry if I am asking a vfaq but I was unable to find anything in the
archives.
I am using PHP4 with session handling to track users which have logged
in to my server.
I would like to (non intrusively) check to see if a user is logged in
without having to start a new session. 95% of
Hi,
I want to make a recursive function generating a hierarchy using a class.
The following code works fine when I don't wrap the function around it,
but when I do it fails. I can't figure out why...
I'm thinking I may need to make some vars global, or maybe you can't use
objects inside
I am pretty new to PHP but have used other scripting languages. I am trying
to use to mkdir() function on an apache server and keep getting this error
MkDir failed (Permission denied). I don't have physical access to the
server.
What's up?
Thanks in advance for any help.
Dan Pupek
On the Web:
Quoting Dan Pupek (Sat, Mar 10, 2001 at 02:49:40PM -0600)
I am pretty new to PHP but have used other scripting languages. I am trying
to use to mkdir() function on an apache server and keep getting this error
MkDir failed (Permission denied). I don't have physical access to the
server.
What do you mean by it fails? Any particular error, or does it just time
out?
I've made a different recursive function to print a tree-menu, you can have
a look at it if you want but it might not be what you're after. It prints a
tree-menu, and reqires the table to have at least a field named id
sas Sat Mar 10 15:15:22 2001 EDT
Modified files:
/php4/ext/ircg ircg.c
Log:
Add 1 modifier which causes a JS-encoded string to be inserted
Index: php4/ext/ircg/ircg.c
diff -u php4/ext/ircg/ircg.c:1.50 php4/ext/ircg/ircg.c:1.51
---
Can't the files be put into a directory that Apache has access to and
the users don't, and just ask the users to include them? Or put them
into a global prepend in a directory same as above?
This isn't PERFECT, but I do this:
#1 - make a user/group called "www"
#2 - Set Apache to run as that
I often receive email from commercial sites (e.g. ZDnet) that looks like
a Web page. How can I do that with Sendmail in PHP?
The man page for "mail" gives an example of it.
http://www.php.net/mail
It's just one "$header" line, stating HTML, then the rest of your message
should be in HTML:
sas Sat Mar 10 15:21:50 2001 EDT
Modified files:
/php4/ext/ircg ircg_scanner.c ircg_scanner.re
Log:
Disable the speed-up role for now. Needs to be improved.
Index: php4/ext/ircg/ircg_scanner.c
diff -u php4/ext/ircg/ircg_scanner.c:1.7
sas Sat Mar 10 15:38:07 2001 EDT
Modified files:
/php4/ext/ircg ircg.c
Log:
Increment the pointer and evaluate the next character after
recognizing a modifier.
Index: php4/ext/ircg/ircg.c
diff -u php4/ext/ircg/ircg.c:1.51
sniper Sat Mar 10 16:49:16 2001 EDT
Modified files:
/php4/ext/curl config.m4
Log:
If AC_CHECK_LIB fails, assume that --with-openssl is needed
Index: php4/ext/curl/config.m4
diff -u php4/ext/curl/config.m4:1.3 php4/ext/curl/config.m4:1.4
---
Is there any UTF-8 r UTF-32 compatibility in PHP? I want to be
multinational with the SAME scripts, not a dozen. I haven't tried
anything yet, just asking
I forgot to mention what you are asking. There is a experimental module called
iconv, I guess it does UTF-8 conversions. Or if you can
i installed my php on my windows machine using the "php triad" software
which i downloaded from www.sourceforge.net. however, now i have a problem
with "include" command. for everything i wish to include into my programs, i
need to speficy this folder in the "include_path" inside my php.ini. can
hi
i get this message when i am trying to load some data from mysql.
Warning: Unable to jump to row 0 on MySQL result index 2 in
/home/sites/site3/web/showthumb on line 71
--here is my code
$connetion = mysql_connect("localhost","cel34243","s2343223");
$query = "select images from celeb where
I've modified a script for uploading multiple files
and am trying to get it to produce an error if the
size of the file is larger than 2 MB but can't get it
to work. Here is the code in question with the
who code below. When I try to upload a 3 MB
file it doesn't produce an error. Everything
It seemed I thought it should work at least. But it does not on PHP4.0.4pl1.
Try following code
?php
$user = empty($HTTP_GET_VARS['user']) ? '' : $HTTP_GET_VARS['user'];
$pw = empty($HTTP_GET_VARS['pw']) ? '' : $HTTP_GET_VARS['pw'];
$cookieuser =
header ("Expires: Mon, 26 Jul 1997 05:00:00 GMT");// Date in the past
header ("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
// always modified
header ("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
header
Did you detect if browser's cookie is enabled??
Regards,
--
Yasuo Ohgaki
"Dhaval Desai" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi!
This website is authenticated using cookies.
I don't understand why..? Id works from some computers
and doesn't work
Assuming you are talking about PHP4 session.
Garbage collection is done by the module.
Read
http://www.php.net/manual/en/ref.session.php
Regards,
--
Yasuo Ohgaki
""deco"" [EMAIL PROTECTED] wrote in message
98dtge$2ad$[EMAIL PROTECTED]">news:98dtge$2ad$[EMAIL PROTECTED]...
is there some kind
That is database specific no standard SQL.
To make it non specific.
you can put it in a for loop. remember to check for eof.
Rick
At 06:01 PM 3/10/01 -0600, you wrote:
Select * from table limit 5;
http://www.calevans.com
-Original Message-
From: Kath [mailto:[EMAIL
I am going to redesign my site, currently it uses SSI (for the menu and
stuff). I know php can do a ton more stuff then SSI, I actually use php
for certain pages as needed throughout the site. But was wondering if
php would run faster for what will basically be SSI commands (namely
just what
Greetings.
I was wondering if there is any function like the JavaScript function:
location.href = "".or perhaps how I can execute a javascript
function from PHP. All related help is appriciated.
- Richard
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
"Simon Woods" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi All,
Sorry if I am asking a vfaq but I was unable to find anything in the
archives.
I am using PHP4 with session handling to track users which have logged
in to my server.
I would like to
""Erick Papadakis"" [EMAIL PROTECTED] wrote in message
98einl$rpl$[EMAIL PROTECTED]">news:98einl$rpl$[EMAIL PROTECTED]...
i installed my php on my windows machine using the "php triad" software
which i downloaded from www.sourceforge.net. however, now i have a problem
with "include" command.
""Jeff Oien"" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I've modified a script for uploading multiple files
and am trying to get it to produce an error if the
size of the file is larger than 2 MB but can't get it
to work. Here is the code in question with
True enough, however, there are still some of us using
stone tablets for our correspondence :)
rm
--- Jørg_Vidar_Bryne [EMAIL PROTECTED] wrote:
Or you could use this in php4:
if ( in_array( "something", $temparray )) { do
stuff }
-J
__
""Richard"" [EMAIL PROTECTED] wrote in message
98eo58$7fg$[EMAIL PROTECTED]">news:98eo58$7fg$[EMAIL PROTECTED]...
Greetings.
I was wondering if there is any function like the JavaScript function:
location.href = "".or perhaps how I can execute a javascript
function from PHP.
""Martin Hughes"" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I seem to be making a mistake somewhere...
# Define the navigation bar array
$navbar = array("navmain", "info", "music", "orch", "synth", "syntype",
"audio", "recordings");
# Define the pages
sniper Sat Mar 10 19:46:25 2001 EDT
Modified files:
/php4 configure.in
Log:
Check for inet_aton only if libbind is not found (or inet_aton is not in
libbind). Fixes bug: #8814
Index: php4/configure.in
diff -u php4/configure.in:1.220
""Jon Shoberg"" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Ok,
I am running Win2000/Pro with PHP 4.0.? and IIS 5 for some local
development. I have tried turning on and off magic quotes.
When uploading a file via a form I can access $userfile and echo
sniper Sat Mar 10 19:49:21 2001 EDT
Modified files:
/php4/ext/standard basic_functions.c dns.c dns.h
/php4/main config.w32.h
Log:
HAVE_BINDLIB -- HAVE_LIBBIND
Index: php4/ext/standard/basic_functions.c
diff -u
sniper Sat Mar 10 20:13:53 2001 EDT
Modified files:
/php4/ext/sybase_ct php_sybase_ct.c
Log:
Added missing alias. PR: #9550
Index: php4/ext/sybase_ct/php_sybase_ct.c
diff -u php4/ext/sybase_ct/php_sybase_ct.c:1.42 php4/ext/sybase_ct/php_sybase_ct.c:1.43
---
Hi,
Is there anyway i can call the login name of the shell for the php file?
What i'm trying to do is have this
/home/USERNAME/public_html/.htpasswd'
have all the users showing?
i've tried /home/*/public_html/.htpassd but that doesn't work
Anyone able to help me?
Thanks in advanced,
Mick
Hi!
Instead of send a direct SMS to a SMSCenter you can send the
message as an standard email... Many Cellcos allow that, and it
will be cheaper to you (no cost!!!)
Here in Portugal we can do it... we just use the MSISDN (phone number)
from who we want to send and sms and append the cellco
Thanks, I will check it out.
Anyhow, I was thinking of fixing an Update bug that I have in one of my
scripts. I use the same php file for reading and saving a file, the thing
is, if the user hits update or whatever, the entry or text will be entered
again, because the address is
basically i've gotta write a script that uploads the
file that user is uploading NOT to the server on which
the scripts are - but to a seperate server.
Problem is, i'm expecting huge uploads, and i have got
ample space, 3 to 400 MB's. but it's on seperate
servers from where my site is.
When a
The first thing to do is to take two aspirin and lie down until the
temptation to do this passes. It may be cool, but those of us who use
Eudora or Pine for our e-mail (because it actually works the way we want it
to instead of making us work the way it wants us to like Outlook does)
don't
sbergmann Sat Mar 10 23:46:58 2001 EDT
Modified files:
/php4/pear/CacheOutput.php
Log:
Updated example.
Index: php4/pear/Cache/Output.php
diff -u php4/pear/Cache/Output.php:1.10 php4/pear/Cache/Output.php:1.11
--- php4/pear/Cache/Output.php:1.10
ssb Sat Mar 10 23:58:19 2001 EDT
Modified files:
/php4/pear/DB/tests db_error.phpt db_error2.phpt
Log:
* new line numbers
Index: php4/pear/DB/tests/db_error.phpt
diff -u php4/pear/DB/tests/db_error.phpt:1.6 php4/pear/DB/tests/db_error.phpt:1.7
---
79 matches
Mail list logo