Hey maybe you guys can help me out here.
I would like to start developing for WAP enabled devices. since there
are a lot of people out there who still have phones that use different
version of WML and still some that use HDML. and then the new phones
being able to display XHTML. I would like to
Hi,
I'm looking for good and complete documentation about hardening a PHP
box which is going to be used to offer hosting services. The machine
will have Apache + PHP with VirtualDomains. Assuming Apache config is
secure, which aspects would be affected for the activation of php
module?
I'd
--- Curt Zirzow [EMAIL PROTECTED] wrote:
* Thus wrote Chris W. Parker ([EMAIL PROTECTED]):
Chris Shiflett mailto:[EMAIL PROTECTED]
on Friday, August 29, 2003 2:16 PM said:
if ($foo) { if ($bar) echo 'blah'; else { echo 'else'; }
^ ^
Hi,
The best approach for you is to use XSLT. good information about XSLT
can be found on w3shcools.com
briefly what it can do is to take an xml and convert it to virtually any
other format. For this is to happen though you need to have strict XHTML
transistion will not do because it's not
Warning: imap_fetchstructure(): Bad message number in
e:\testroot\imap\index.php on line 52
I ust imap_fetchstructure function to get the structure of a message, and I
want to push the errors into an array.
I give a wrong message number and expect cause an imap error, which can be
get by using
Hello,
On 08/29/2003 01:34 PM, David T-G wrote:
% /var/qmail/control/concurrencyremote
Well, that's what I thought, but what I don't know is whether or not
qmail requires a restart to see it :-)
RTFM! :-)
I guess you just need to send a HUP signal to reload the configuration
options.
--
I'm logging in via a form, and on the form page it creates the session:
?php
session_start();
if ($_POST['username'] == $username $_POST['password'] == $password
) {
$_SESSION['loggedIn'] = true;
} else
$_SESSION['loggedIn'] = false;
?
And later in the same page, I include another file
Hi,
Saturday, August 30, 2003, 2:49:43 AM, you wrote:
CC Hey,
CC I am setting up Apache 1.3.27 on a linux box (I really dont know much about
CC linux) and I am having small problem. When a specify a subdirectory off of
CC my document root, I must include a / forward slash in order for the index
* Thus wrote myhan ([EMAIL PROTECTED]):
I ust imap_fetchstructure function to get the structure of a message, and I
want to push the errors into an array.
I give a wrong message number and expect cause an imap error, which can be
get by using imap_errors().
But it does not work like that. I
* Thus wrote Seth Willits ([EMAIL PROTECTED]):
I'm logging in via a form, and on the form page it creates the session:
?php
session_start();
if ($_POST['username'] == $username $_POST['password'] ==
$password ) {
$_SESSION['loggedIn'] = true;
}
Why do people insist on using their work address so we are plagued
with privacy notices and autorespond's letting us know that he will
be gone one extra day over the weekend
p.s. you'll know why I'm griping if you reply to this bg
p.s.s. at least till i get him booted off the list vbg
On Friday, August 29, 2003, at 07:44 PM, Curt Zirzow wrote:
Does the next page call session_start()? all pages that use
$_SESSION, must call that first.
Ohhh... ok. Thanks :)
Seth Willits
---
President and Head
After upgrading from php 4.0.x to 4.2.3
many previous php scripts that had been working failed
becos of the include statement
The apache error log logged segmentation fault
I think it might have to do with AIX as there are
no problems for 4.2.3 which I've installed on Tru 64 Unix
(I've checked
It seems that HTML is LAME, LAME,LAME when it comes to determining local
directories.
I would like to somehow:
put image links relative to a base directory (if a relative URI is
given)
and have PAGE links relative to the current page (if a relative URI
is given)
What I seem to be able
You could equally ask why we get plagued with silly strap lines like
I used to think I was indecisive, but now I'm not so sure.
HTH
On Saturday 30 Aug 2003 3:54 am, Curt Zirzow wrote:
Why do people insist on using their work address so we are plagued
with privacy notices and autorespond's
Dennis Gearon wrote:
It seems that HTML is LAME, LAME,LAME when it comes to determining
local directories.
This is a PHP list, not an HTML list. What does this have to do with PHP?
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt
to decrypt it will be
From what I see, the default timeout for a session is 1440 seconds or
24 minutes. I was gone for nearly an hour, came back, and the session
was still valid. Must the value set in the config file be different
than 1440, or am I misunderstanding session.gc_maxlifetime? I'd like
for the user
Dennis Gearon wrote:
h, php outputs to the browser,
hmmm, browser reads HTML
hm,maybe somepeople who program in PHP have to dabble in HTML
Never said they don't, but the HTML PHP outputs has nothing to do with
PHP. Take this to an HTML list/newsgroup.
--
The above message is encrypted
Hi,
Saturday, August 30, 2003, 1:55:02 PM, you wrote:
SW From what I see, the default timeout for a session is 1440 seconds or
SW 24 minutes. I was gone for nearly an hour, came back, and the session
SW was still valid. Must the value set in the config file be different
SW than 1440, or am
* Thus wrote Nicholas Robinson ([EMAIL PROTECTED]):
You could equally ask why we get plagued with silly strap lines like
I used to think I was indecisive, but now I'm not so sure.
No, you can't *equally* ask why. It is perfectly acceptable to
have a signature attached to your email. It is
Hi,
I have some questions. Is it possible to pass login data such
as username and password to the HTTP Basic Authentication
dialog box from PHP? How do you code that?
Is it also possible to get the variable data from the Authentication
dialog once login? I tried putting phpinfo() in an index.php
* Thus wrote Seth Willits ([EMAIL PROTECTED]):
From what I see, the default timeout for a session is 1440 seconds or
24 minutes. I was gone for nearly an hour, came back, and the session
was still valid. Must the value set in the config file be different
than 1440, or am I
* Thus wrote BhongOng ([EMAIL PROTECTED]):
Hi,
I have some questions. Is it possible to pass login data such
as username and password to the HTTP Basic Authentication
dialog box from PHP? How do you code that?
I know for sure with Basic authentication you can't.
Is it also possible to
Thanx Chris, this works. Here is the code (might help somebody else)
unset($previousDate);
for ($i=0; $i $num_results; $i++){
if($previousDate != $log['date'][$i])
echo 'b'.$log[date][$i].'/b'.$p.'ul';
echo 'li'.$log[entry][$i].'/li';
$previousDate =
Thanx Chris, this works. Here is the code (might help somebody else)
unset($previousDate);
for ($i=0; $i $num_results; $i++){
if($previousDate != $log['date'][$i])
echo 'b'.$log[date][$i].'/b'.$p.'ul';
echo 'li'.$log[entry][$i].'/li';
$previousDate =
Thanx Chris, this works. Here is the code (might help somebody else)
unset($previousDate);
for ($i=0; $i $num_results; $i++){
if($previousDate != $log['date'][$i])
echo 'b'.$log[date][$i].'/b'.$p.'ul';
echo 'li'.$log[entry][$i].'/li';
$previousDate =
- Original Message -
From: Roman Medina [EMAIL PROTECTED]
Newsgroups: php.general
To: [EMAIL PROTECTED]
Sent: Saturday, August 30, 2003 1:45 AM
Subject: Hardening php.ini for an ISP environment
Hi,
I'm looking for good and complete documentation about hardening a PHP
box
Dear Guys,
I want to store an image created by GD functions to a field of my DB. I can
not save it to a string to save it to blob field. Can any one help me with a
simple sample code?
Regards,
Mohammad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
php-general Digest 30 Aug 2003 10:43:43 - Issue 2267
Topics (messages 161198 through 161238):
Re: Gripe
161198 by: John W. Holmes
161199 by: Chris Shiflett
161201 by: Chris W. Parker
161202 by: Chris W. Parker
161205 by: Curt Zirzow
161208 by:
Can you save it to a file?
If you can save it to a file, have a look at :
Saving Images in MySQL
http://www.weberdev.com/ViewArticle.php3?ArticleID=3
Sincerely
berber
Visit http://www.weberdev.com/ Today!!!
To see where PHP might take you tomorrow.
Share your code :
Hello,
I hope you will manage to help me. I have some troubles with this script and
I receive a message in the navigator :
if(is_uploaded_file($_FILES['image']['tmp_name'])
$_FILES['image']['size'] $MAX_FILE_SIZE){
Hi,
The message is :
Warning: Unable to create
'/home/sites/site82/web/images/photos_elt/ail.jpg': Permission denied in
/home/sites/site82/web/gestion_site/bve_navigation.php on line 73
it's obvious the user under which the apache server runs does not have
write permissions on
Hi,
Don't know if this is the place to start this,
but I'd like to hear some pros and contras for
some frameworks out there (MVC mostly).
I mean, you have Placebo, Phrame, pehppy, aso.
I'm getting a little bit dizzy by how many there
are and I'd like to know your oppinions on them.
Hello,
Does anyone know a method in which I can load a large flash movie in the background
and only when it is done, play it. In the mean time, the user should be able to carry
on surfing normally.
Any ideas?
Thank you,
- Sid
Hi,
Why allow_call_time_pass_reference is deprecated? I mean it should be the
choice of the programmer to make use of pass by reference or not.
Example:
$this_string = $is_really_big // lets say 500 kb
function ($this_string){} // Here the function takes a copy of $this_string
(500 kb) - in
Hello,
Does anyone know a method in which I can load a large flash movie in the background and only when it is done, play it. In the mean time, the user should be able to carry on surfing normally.
Any ideas?
Thank you,
- Sid
Hi,
Simply put you can not! if the user moves from one page to
Hi there,
I am having somee trouble with array_search.
The function should search for a given date, but it does not work since
array_search seems only to compare strings. Thats why I tryed to cast
it, but does not help.
Here is the problem:
(pseudo code)
while(...
$log[date][]=
What do we call things like this -- $_POST['name'], $_SERVER['remote
add']
Are they superglobals and where can I find a list of these?
Thanks
The best thing to hit the internet in years - Juno SpeedBand!
Surf the web up to FIVE
Hi,
You don't have to convert to string; PHP does it
automatically.
Did you check for the $dates array, does it really contain
what you think it should.
So, try to make a print_r($dates) and see if you have what you expect.
FYI: array_search() returns the key of the last found element
Yes, But I was thinking of something like an invisible frame on top which
loads the movie
- Original Message -
From: Catalin Trifu [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: 30 August 2003 Saturday 7:29 AM
Subject: [PHP] Re: Using PHP to cache a flash movie
Hello,
Does anyone
Stevie D Peele wrote:
What do we call things like this -- $_POST['name'], $_SERVER['remote
add']
Are they superglobals and where can I find a list of these?
Thanks
The best thing to hit the internet in years - Juno SpeedBand!
Surf
I printed the values out, and inserted it into a varibble to check if it
finds it. In this case it works! But it only wokes if I do it like this:
array('03042003');
This does not work:
array(03042003);
So I gues it has something to do with this? It really drives me crecy, I
already spent an
* Thus wrote Armand Turpel ([EMAIL PROTECTED]):
Why allow_call_time_pass_reference is deprecated? I mean it should be the
choice of the programmer to make use of pass by reference or not.
Example:
$this_string = $is_really_big // lets say 500 kb
function ($this_string){} // Here the
Hi,
I printed the values out, and inserted it into a varibble to check if it
finds it. In this case it works! But it only wokes if I do it like this:
array('03042003');
This does not work:
array(03042003);
When you make array(03042003) what you get is an array like this
Array ( 0 = 3042003
the problem is, when you do it the second way, it drops the leading zero off
the number.
and the first way you are telling it that you are setting a string.
Try this.
print_r(array(001,'001',002,'002'));
you will notice that on two of them, you don't see the leading zeros, that
is because
--- Dennis Gearon [EMAIL PROTECTED] wrote:
It seems that HTML is LAME, LAME,LAME when it comes to determining
local directories.
I think you just need to understand how filesystems work and what a URL is.
../ is the parent directory
./ is the current directory
/ is the root directory
If
Chris Shiflett wrote:
../ is the parent directory
./ is the current directory
/ is the root directory
I knew that ./ was the current directory on a *nix system, but a browser
will respect that also?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Is there a way to execute a command line php script from a browser by, say
clicking a button and then having the browser let go and let the script run
independet of the browser? Hope I explained that correctly.
Thanks,
Rod
CinchHost.com - Web
thank you for your help. I have found that the error was laying
somewhere else. The code like you wrote was ok.
Cheers,
merlin
Catalin Trifu wrote:
Hi,
I printed the values out, and inserted it into a varibble to check if
it finds it. In this case it works! But it only wokes if I do it
Hi!
This is a problem of the table formatting on a form in MySQL and PHP.
It may be in the HTML table code.
The problem is one that must be frequent. I have a mixture of one character
and long fill-in text items.
My table now looks awkward. Somebody gave me a complex table that puts colors as
There are too many problems with your code for anyone to spend the time
going thru them all.
I'd suggest, first constructing a regular html table that looks like you
want it to. Hint, IE6 requires something in TDs [e.g., nbsp;] for
borders to show.
When the table looks the way you want it
* Thus wrote Gloria L. McMillan ([EMAIL PROTECTED]):
Hi!
Hello Gloria,
This is a problem of the table formatting on a form in MySQL and PHP.
It may be in the HTML table code.
...
Here is the URL to view PHP HTML table as it appears on screen:
http://DakotaCom.net/~glomc/forms/CAT.php
I
On Sat, 30 Aug 2003 10:23:49 -0700
Gloria L. McMillan [EMAIL PROTECTED] wrote:
Hi!
This is a problem of the table formatting on a form in MySQL and PHP.
It may be in the HTML table code.
The problem is one that must be frequent. I have a mixture of one
character and long fill-in text
Armand Turpel [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi,
Why allow_call_time_pass_reference is deprecated? I mean it should be the
choice of the programmer to make use of pass by reference or not.
maybe it was a problematicd idea to have call time decision in the first
Hi,
you can do something like this :
!-- code --
$imgdata = addslashes(imagejpeg($imnew)); // For JPG file.
$query=INSERT INTO your_table (data) value ('$imgdata');
$result = @mysql_query($query);
!-- /code --
I haven't try but it may work...
Regards.
P.E. Baroiller
Mohammadreza
IM not ranting, IM pointing out that I have looked on the website and the
FAQ is a joke and help from other sources is either buy something or as the
case of IRC, no channel of that description was turned up in the search.
Out of fustration and spending several attempts to implement PHP and IM
Thanks for this clarification!
atu
- Original Message -
From: Curt Zirzow [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, August 30, 2003 6:10 PM
Subject: Re: [PHP] allow_call_time_pass_reference?
* Thus wrote Armand Turpel ([EMAIL PROTECTED]):
Why
Hi,
I need to see if a number is divisible by 2. I don't see the math function
mod in my PHP Functions reference manual. Is there another way to do this?
Thanks,
James
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Nevermind, I found it in the archives.
Thanks
-Original Message-
From: James Johnson [mailto:[EMAIL PROTECTED]
Sent: Saturday, August 30, 2003 12:25 PM
To: [EMAIL PROTECTED]
Subject: [PHP] PHP equivalent to MOD
Hi,
I need to see if a number is divisible by 2. I don't see the math
* Thus wrote Senshi Oukan ([EMAIL PROTECTED]):
IM not ranting, IM pointing out that I have looked on the website and the
FAQ is a joke and help from other sources is either buy something or as the
case of IRC, no channel of that description was turned up in the search.
Apparently you have a
* Thus wrote Curt Zirzow ([EMAIL PROTECTED]):
* Thus wrote Gloria L. McMillan ([EMAIL PROTECTED]):
Hi!
Hello Gloria,
This is a problem of the table formatting on a form in MySQL and PHP.
It may be in the HTML table code.
...
Here is the URL to view PHP HTML table as it appears
I set up a PHP4.3.3/mySQL4.0.14/Apache2.0.47 server and everythign is
configured and running properly. i tested php with some scripts and
functions and they all work. When i try and do any file editing/including in
scripts i get file not found errors all over the place when i open like
Thanks but the lines are all running together in that URL.
I don't know why.
They are not breaking at the end of each line.
Could you re-save a different way?
Maybe send to me as a text file?
Thanks,
Gloria
Curt Zirzow wrote:
* Thus wrote Curt Zirzow ([EMAIL PROTECTED]):
* Thus wrote
This is all so advanced. Is it ready to be in place of the table HTML that I already
have?
I copied it to word and saved it as a .txt file. IN IE it looked better than in my
Netscape.
Gloria
Curt Zirzow wrote:
* Thus wrote Curt Zirzow ([EMAIL PROTECTED]):
* Thus wrote Gloria L.
Hi,
I have a form for a member to signup for an account. The form has standard
fields for addresses, city state, etc. When I insert the data into the
table, if the string has more than one word, it gets truncated to the first
word.
Does this sound like a PHP or a MySQL problem.
Here's the code:
On Sat, 30 Aug 2003 14:52:30 -0700, you wrote:
I have a form for a member to signup for an account. The form has standard
fields for addresses, city state, etc. When I insert the data into the
table, if the string has more than one word, it gets truncated to the first
word.
Does this sound like
I resolved my problem several days later, and I thought I might post it for
those that come up behind me.
I had several blank lines in my .php file after the closing ?
This caused an output of the script (even though I could not see it) which
generated the failure notice within Exim.
Thomas
Hi David,
From your suggestion, I found the problem. I'm validating the form and if
something isn't correct, I'm not doing the query, but maintaining what the
user previously entered with the following code:
?php if(isset($_POST['addr1'])){$a1 = $_POST['addr1'];}else{$a1 = ;}?
input type=text
68 matches
Mail list logo