), because the min-function is a so called group function.
Grtz Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
in the php.ini file?
I don't think this would stop emails from being sent.
There are two ways to change the From header:
- Use the function ini_set(sendmail_from, email address );
- Use From: email address as the fourth argument to your mail call
Grtz Erwin
--
PHP General Mailing List (http
of \n, only the newline will not be stripped.
$ means end of line, while \n means newline.
HTH, Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
you could check that. Try
file_exists, or open a pipe with popen.
Grtz Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
.
Grtz Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
in version 4.2.2 (at least,
here it does) ;-))
Grtz Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
.
Then print the hidden input's to the page in a for loop, while looping
trough $d_c_arr.
HTH
Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Option B sounds best to me ;-))
HTH
Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
, without http it
works.
But I have no clue what's the problem here. Are you sure the file exists?
Grtz Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
is gone, you can check that by checking
the cookie and checking for a session.
If the cookie states that there is a session, but there is no session, you
know that it's gone.
HTH
Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
of isset.
Neither isset nor array_key_exists should give warning messages. Maybe you
have a very high errorlevel? Isset doens't give warnings if E_NOTICE is set
as errorlevel.
Grtz Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
. The variables are only available
AFTER posting the form. Not during validation!
You should just use Javascript to fill in the name and group into the URL.
Grtz Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
escape the ?
Using the htmlspecialchars() function, so that Hello \world\ will be
written in pure HTML: Hello quot;worldquot;
HTH
Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Marek Kilimajer wrote:
You are wrong, this is from HTML 4.01 specification:
You're right. Thanks for your reply!
Grtz Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
?
try:
select name=selcategoryid onChange=JavaScript: this.submit();
Grtz Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I am sure that someone here can see somehting that I am too stupid
to... Here is my error:
Parse error: parse error, unexpected T_VARIABLE in
send_contact_form.php on line 13
$subject = Message From MCV Contact Form
Forgot a ;?
HTH Erwin
--
PHP General Mailing List (http
index.html to index.php.
HTH
Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
if the form is submitted with the GET method,
because the variables are then part of the URL (and thus automatically
submitted if you push the back button)
HTH
Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
in
Javascript can be done by the client, like you do in your validation
function. Getting them in PHP can only be done by the server. You cannot use
these variables in Javascript code as $some_var.
HTH
Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
()
{
...
}
The function createlinks() has been defined more then once. You should check
your include files.
HTH
Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
purpose because I need a random value which is not
to long.
Hope you guys can help me out here!
Grtz Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
By the way, rand() will only return 0 if I call it with it's arguments.
Without arguments it will return a random value.
Grtz Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
to httpd.conf, but my browser still doesn't show a php test page, it
rather prompts for download.
Add the following to the bottom of your httpd.conf
FilesMatch \.php$
SetOutputFilter PHP
SetInputFilter PHP
/FilesMatch
HTH
Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe
on their browser)...
Closing frames and windows is done client side, so PHP can't do that.
Besides, closing these things is done with Javascript, so you can't around
it if you want to add this functionality.
HTH
Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
Steve Bradwell wrote:
is_int($f) will return true if $f is an integer, false otherwise.
is_int will return false in this case, because it's a string. You have to
use is_numeric
HTH
Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
any).
HTH
Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
-in-the-ass:
a) users that don't have JavaScript activated
b) users (like me) that have a Popup killer
Maybe, with all these solutions together, we can create the perfect logout
script ;-))
Grtz Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
error_reporting( E_ALL
~E_NOTICE ) at the first (second, after the ?php) line in your code.
HTH Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Cirstoiu Aurel Sorin wrote:
I tried to use $HTTP_SERVER_VARS['HTTP_HOST'] but the result is null.
Is there an option so I can turn it on?
If PHP 4.1.0:
try $_SERVER['HTTP_HOST'] instead. You can also set register_globals = On in
the php.ini file (not recommended!)
HTH
Erwin
--
PHP
?
It's not wrong...read the manual ;-))
Y = Year, 4 digits
m = month, 2 digits
d = day, 2 digits
G = 24 hour, from 0 to 23
H = 24 hour, 2 digits
i = minutes, 2 digits
s = seconds, 2 digits
You have to use YmdHis instead!
HTH Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe
), so we
can have a look at it...
Grtz Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Directory /home/email
php_flag upload_max_filesize = 50M
/Directory
Remove the = and use php_value
php_value upload_max_filesize 2M
HTH
Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
?
echo date( 'd', strtotime( '2002-03-26' ) ); // prints 26
?
HTH
Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
side, the ASP solution is kind of the same as Jed's, so you are
right, it isn't an argument.
Grtz Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
body
Try adding another input name...etc. We've had a problem where we *always*
lost the first POST variable.
Grtz Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
and was only posted within that last few days
on the PHP bug board, hope it helps you with your elusive first POST
variable.
Whow, thanks man. It works like a webserver should work. All my problems are
gone, even the huge POST problem I've had (bug #19263).
Grtz Erwin
--
PHP General Mailing List
Mohd_q wrote:
I want to change the default session name 'PHPSESSID' to say ex.
'seid'.
How can I do this without editing to the php.ini since I'm having a
site on a virtual host.
http://www.php.net/session_name
HTH Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe
with (for instance) Excel...
HTH
Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
of the
AutoIncrement column.
HTH
Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
];
HTH
Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
)) {
echo fgets ($fp,128);
}
fclose ($fp);
}
You could try using
$url = https://$user:$[EMAIL PROTECTED];
I haven't tried this yet ;-))
HTH
Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
$_POST[new_password1]
Besides that, I would use the form of Lallous:
if ( empty( trim( $_POST[ new_password1 ] )
echo Empty!;
HTH
Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Adam Williams wrote:
make a directory called phptest and put a file, index.php in
it...never
tried it tho.
In that case you will have to call http://localhost/phptest/?id=22
Grtz Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
give errors.
You will have to use readfile instead:
readfile( ../pdfs/whatever.pdf);
HTH
Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Joseph Szobody wrote:
Thanks Erwin, that helps but I'm still not getting it to work.
Should I still use the
Header(Content-type: application/pdf);
line?
I tried using readfile() keeping the header. When I click the link to
the PHP script that should show me the PDF, the IE
fill
that form,it just displays the same form over and over again...the
super user/ admin user does not get created...
Probably it requires register_globals to be turned On??? Did you checked
that?
HTH
Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
and no access to php.ini.
Take a look at
http://www.php.net/set_error_handler
That's the easiest way to create your own error_handler class!
HTH
Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
about $_COOKIE[Access] ???
Grtz Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
applies to your system or the longer twelve character
salt is applicable.
HTH
Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Scott Houseman wrote:
Hi there.
You can use the function mysql_insert_id( [link id] ).
I'm using postgresql.
Not if you're using PostGreSQL
Grtz Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
, which can be downloaded from
www.mysql.com, and then import the tables with access
Grtz
Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
tried output_buffering (on and off)
- I've tried registered_globals (on and off)
- I've tried using session_write_close() before leaving the page
- I've checked the session_start() statement (Yes, it's there :-) )
I hope someone can help me with this...
Thanks in advance,
Erwin
--
PHP General
John Holmes wrote:
You have session_start() on the second page, too, right??
Yes...the session_start() statement is in a global include file, which is
included in all files which require it
Grtz Erwin
-Original Message-
From: Erwin [mailto:[EMAIL PROTECTED]]
Sent: Friday
will be removed from the $_SESSION
array AND from the session file.
I recommend following the manual and don't use the session_unregister,
session_is_registered and session_register functions anymore.
HTH
Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
with the interface change of Apache2. Since
version 2.0.39 (?) the interface changed a bit, so some functions don't
work. You'll have to compile the php4apache2.dll from PHP 4.3.x and use that
with your Apache2.
I'll send you one trough e-mail, and hope it works for you.
HTH
Erwin
--
PHP General
['DOCUMENT_ROOT']/files/dir instead
HTH
Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
, \$val = $valbr;
}
Small typo:
while ( list($key, $val) = each($ser) );
change into:
while ( list($key, $val) = each($ser) )
Remove the ;
HTH
Erwin
P.S.: Take a break ;-))
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
that...the PHP_SELF points to this file, and the
filename has no arguments, thus the PHP_SELF variable don't have them
either.
You will have to use the $_GET array for the aid=12 part.
Grtz Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
, http://www.php.net/unlink).
HTH
Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
to the browser, or PHP will send
the default (text/plain) header. For a tar file the correct header is
application/x-tar, send it with
Header( 'Content-Type: application/x-tar' );
HTH
Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Noodle Snacks wrote:
Erwin [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Noodle Snacks wrote:
[snipped]
It is supposed to be like that...the PHP_SELF points to this file,
and the filename has no arguments, thus the PHP_SELF variable don't
h
is named 'download'
Size is about
160 bytes, seems to be correct. when I try to extract the files
there pops up
an error message which says: Unexpected end of archive.
Have you got a sollution on that?
Yes...my mistake, use passthru( $command ) instead of system( $command )
Grtz Erwin
Marek Kilimajer wrote:
Hope the sites have no banners :), they change all the time
But the URL to the banners will be the same, so that's no change in the HTML
code ;-))
[SNIP]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
instead of tar:
- Set the header back to application/x-gzip
- Change the command to gzip -c filename
I'm very curious if you get any (correct) output then...
Greetings
Sascha
Greets back :)
Erwin
PS.: Isn't it wrong, when I write greetings in english? Sounds so
german, what could i write
Winzip ;-) )
Grtz Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Sascha Braun wrote:
Do you know how to exclude the path informations in the tar archive?
Yes, first chdir to the ../images directory
http://www.php.net/getcwd
http://www.php.net/chdir
Grtz Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
empty. I mean a form submission from .html to .php (about the
simplest thing possible) the variables are not getting populated with
their form values.
Turn register_globals = On in the php.ini file...
HTH
Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
(HTML break with
newline)
HTH
Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
versions. Its just with PHP 4.2.3 that it stops working.
Is apachectl graceful an option?
apachectl resided in the apache installation dir.
Grtz Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
);
but these don't seem to work (maybe its me).
Probably you have magic_quotes_gpc set to On in php.ini...you can change
this to Off, or you can use stripslashes() on the $string variable...
HTH Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
=img.jpg. You
can create a nice directory listing this way, just call the resize.php
script for every image on the page. Create the directory listing with the
opendir function you used above, but let it print a img src='resize script
url' width='100' height='100' instead of an image!
HTH
Erwin
) )
OR
if ( !move_uploaded_file( $_FILES['userfile']['tmp_name'], $upfile ) )
{
echo Error: Could not move file into directory;
exit;
}
?
HTH
Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
}
Crypt can not be unencrypted, but you can of course compare the crypted
passwords...
HTH
Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
directory
instead. If you're using any extensions that require external libraries
(take a look in your php installation directory, subdirectory dlls), then
they should be copied to.
HTH
Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
(',', $x));
?
produces:
x=['str1','str2','str3']
Grtz Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
it popped). There you have it...
In code:
?
$content = file(
'http://waterdata.usgs.gov/ny/nwis/uv?format=rdbperiod=1site_no=01420500'
);
array_pop( $content );
$current = array_pop( $content );
?
HTH
Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
the $content array, which is your inputfile. You can then filter
out the value you want using strpos, strrpos and substr.
HTH
Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
the email address, submitted by the form.
HTH
Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
of these iterations took about 2 seconds...
Grtz Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
;
Right?
Right!
Grtz Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
(.*), but
([^{]*) instead. The regexp which works in your example is the following:
/([^{]*){parent.([^{]*)}([^{]*)/e
HTH
Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
:
I don't want the entire string upercase, just part of it as defined
by a regex.
Then use preg_replace. The PHP website has an example to uppercase a part of
a string using preg_replace(http://www.php.net/preg_replace).
Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe
like
top.document.title = 'Title'
or
document.title = 'Title'
I'm not exactly sure which one (if any) of these works, but it's something
like this...
Grtz Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Steve Jackson wrote:
I want to the select the very last record from my MySQL DB. How do I
do it?
If the table has an id, use
select * from table order by id desc limit 0,1
Grtz Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[[:space:]] when using eregi. See also
http://www.developers-resources.com/stories.php?story=01/10/25/0549771
Grtz Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
.
Not because default is 0, but because there isn't any session yet.
HTH
Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
PHP 4.2.0
it didn't work
So what else can i try to just get the whole contents of the file
into a string?
$filename = http://www.domain.com/filename.txt;
$fp = fopen($filename,r);
while (!feof($file))
$content .= fread($fp,4096);
HTH
Erwin
--
PHP General Mailing List (http://www.php.net
...
}
}
HTH
Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
';
$result = str_replace( $search, $replacement, $result );
HTH
Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
= This is a test, isn't it?;
$search = is;
$result = preg_replace( '/(' . $search . ')/i', span
class=\highlight\\$1/span, $result );
Grtz Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Try the following one:
$result = This is a test, isn't it?;
$search = is;
$result = preg_replace( '/(' . $search . ')/i', span
class=\highlight\\$1/span, $result );
Grtz Erwin
David Russell wrote:
Hi Erwin,
Yep, this does exactly what str_replace does.
No, it doens't...this one
this clears your brain up ;-)))
Grtz Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
array,
then print selected
print ' selected';
print '' . $i . '/option';
}
Something like that?
Grtz Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
using a cookie??? If you use session_start(), a
cookie is automaticaly send to the client.
Grtz Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi Grtz Erwin,
let me tell you wat i need to do.
1.) I have a login page - if the user logs in correctly i create
session(with session_start()) , a cookie is written to client +
session file to server.
2.)When the user logs off - i call the logOff.php page . The contents
are as follows
.
If you're background process doesn't spawn it's own child, I think you'll
have to add an ampersand () also, to make the program run in background.
HTH
Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
: ' . $notify . \n;
// And add everything else to the $content variable which needs to be
written
$fp = fopen('ftp://ftp.domain.com', 'w' );
fwrite( $fp, $content );
fclose( $fp );
?
HTH
Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
the \.
HTH
Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
1 - 100 of 141 matches
Mail list logo