You might want to check whether or not your header output is getting
buffered. My suggestion is a flush() after the fist call. I'm not an expert
on this, it's just an idea.
HTH
--
Ivo Fokkema
PHP MySQL programmer
Leiden University Medical Centre
Netherlands
James M. Luedke [EMAIL PROTECTED
the information necessary. I'm not sure about
other bugs but I haven't encountered other problems.
--
Ivo Fokkema
PHP MySQL programmer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
'] and $_SERVER['PHP_SELF'] be
different?
TIA,
--
Ivo Fokkema
PHP MySQL programmer
Leiden University Medical Centre
Netherlands
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
, but you will be redirected. Therefor you can use
$_SERVER['REQUEST_URI'] in your 404-page to check what the visitor was
looking for.
HTH,
--
Ivo Fokkema
PHP MySQL programmer
Leiden University Medical Centre
Netherlands
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit
Curt Zirzow [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
* Thus wrote Ivo Fokkema ([EMAIL PROTECTED]):
Hi list,
Just out of curiosity I would like to know if anyone can tell me the
difference between some $_SERVER variables that generate the same output
(in
my test-file
});
print ($val);
?
TIA!
--
[Win2000 | Apache/1.3.23]
[PHP/4.2.3 | MySQL/3.23.53]
Ivo Fokkema
PHP MySQL programmer
Leiden University Medical Centre
Netherlands
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
*() functions then? Not that I think they would be much better
but...
--
// DvDmanDT
MSN: [EMAIL PROTECTED]
Mail: [EMAIL PROTECTED]
Ivo Fokkema [EMAIL PROTECTED] skrev i meddelandet
news:[EMAIL PROTECTED]
Hi list,
I read through the manual and tried to find something on google, but I
didn't come
-the value - in the string query would be marked up as:
...
// thepage.asp
a name=here
blah,blah,blah, etc...
/a
...
Can this be done using php?
Why not use :
www.thesite.com/thepage.asp#here
?
--
Ivo Fokkema
PHP MySQL programmer
Leiden
...
Thanks again!
Ivo
Dvdmandt [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Also... You know, there's a (.*?) command as well.. Might work just about
perfect in your situation...
--
// DvDmanDT
MSN: [EMAIL PROTECTED]
Mail: [EMAIL PROTECTED]
Ivo Fokkema [EMAIL PROTECTED] skrev i
Hi Tony,
I think no server-side application had any effect on the viewing position on
the page, it's totally client side. To use this anyway, you could do this in
PHP :
?php
if ($_GET['go']) {
header(Location: http://; . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']
. # . $_GET['go']);
exit;
that
you omitted a closing '}'.
So when you would do :
?php
function something () {
print (done);
?
You will get a similar error. Check all of your functions and
if/else/foreach/ etc. structures for an omitted '}' to fix your script.\
Good luck!
--
Ivo Fokkema
PHP MySQL programmer
Leiden
Curt Zirzow [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
* Thus wrote John W. Holmes ([EMAIL PROTECTED]):
[snip]
don't but all that matters to most is: it works.. and foreach has
taken over its job anyway.
Just a small comment... foreach() is not equal to a while/each loop.
(SELECT barColumn FROM
table_name WHERE id = 1));
?
This will do exactly what you need, if I understand you correctly.
HTH,
--
Ivo Fokkema
PHP MySQL programmer
Leiden University Medical Centre
Netherlands
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
If you don't run PHP as an CGI but as an module, you don't even need this
line. My guess is that you run PHP as a module, so delete the line to fix
your problem.
HTH,
--
Ivo Fokkema
PHP MySQL programmer
Leiden University Medical Centre
Netherlands
Jim M Gronquist [EMAIL PROTECTED] wrote
John Manko [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Can someone correct me on this if i'm wrong...
try (meaning, I think that $vars as $keys will put the value into $key,
not the key itself):
foreach ($vars as $key=$value) // clear all previous sessions
{
Klaus Linzner [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi! Its me again. Sorry for the last post - it was quite clumsy.
In fact, it wasn't really what I need. I have a mail and I want to fake
the
attachment. Its always the same String in the header that I need, but I
need
to
Miles Thompson [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Yes, I'm top posting, pls forgive.
This is a situation where an editor which has built-in brace matching
really helps - if in the midst of looking one remembers to use it.
Another tip, although it probably wouldn't help
PROTECTED];
if (mail($mail_to, $mail_subject, $mail_body,$headers)) {
echo (success);
} else {
echo (failed);
}
HTH,
--
Ivo Fokkema
PHP MySQL programmer
Leiden University Medical Centre
Netherlands
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
To change é to eacute; you need htmlentities(), not htmlspecialchars as
the latter only translates ampersands (), double quotes, less than en
greater than characters (Single quotes are not translated by default).
If htmlentities does not work, what does a var_dump on your
$translationtable send
translation table
look like?
--
Ivo Fokkema
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
This is not true, the resource link identifier is optional! If unspecified,
the last opened link is used. My suggestion is to check the results of
mysql_error() for more information on the failed query.
HTH,
Ivo
Jay Blanchard [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
[snip]
$dbh
this, and your problem is fixed!
--
Ivo Fokkema
PHP MySQL programmer
Leiden University Medical Centre
Netherlands
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
You will really need the post protocol if you don't want anything from a
form displayed in the url.
Apparently, Apache is not allowing the POST protocol for that
directory/file. Is this a local server or don't you have access to the
Apache config file? If it's a local server, fix this setting.
I think Justin means you could CREATE the file with that exact content he
has given you. With a .htaccess file, you can override settings of your
php.ini file.
HTH,
Ivo
Murugesan [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I am not able to locate the file you are referring
Shawn McKenzie [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I'm having problems using global vars. I have read the docs and all of
the
notes but it's not helping. Simplified example:
/dir1/script2.php
?php
$test = array ( 'a' = '1', 'b' = '2');
?
/dir1/script1.php
?php
Hi,
I must say I don't agree. Although it seems odd, I received a DNS error a
while ago while creating a script using the GD library. If the script wasn't
there, I would've got a 404. That particular script was generating problems
with Apache somehow causing my browser to display a DNS error. Run
Jason Wong [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
On Monday 11 August 2003 19:59, Ivo Fokkema wrote:
I must say I don't agree. Although it seems odd, I received a DNS error
a
while ago while creating a script using the GD library. If the script
wasn't there, I would've
Hi Tony,
Chris explained a lot about this... I'm not an expert on this, but you might
want to give a try to embed something like :
embed src='mp3.php?mp3=filename' autostart=true;
And then let mp3.php send all of the no-cache headers together with the
contents of the filename.mp3.
It might
Liam Gibbs [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I think php.net/htmlentities will do this.
Apparently it *is*, but it won't for me. Any problems with this code?
$result[] = é;
$result[1] = htmlspecialchars($result[0]);
$result[2] = htmlentities($result[0]);
Both
Cesar Aracena [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
[snip]
For some e-mail servers, you have to write lots of extra headers in
the e-mails in order to pass their guard.
[/snip]
True! But actually, I' ve seen people using only the 'From:' header to send
mail. Emails can then
more complex than just 'On' or 'Off', so I really need to see the difference
between a user requesting the Default value or setting it to Off.
TIA,
Ivo
--
[Win2000 | Apache/1.3.23]
[PHP/4.2.3 | MySQL/3.23.53]
Ivo Fokkema
PHP MySQL programmer
Leiden University Medical Centre
Netherlands
--
PHP
Curt Zirzow [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
* Thus wrote Ivo Fokkema ([EMAIL PROTECTED]):
True! But actually, I' ve seen people using only the 'From:' header to
send
mail. Emails can then be dropped easily by servers thinking it is spam.
No email server should drop
Gabriel Guzman [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
On Tue, 2003-08-26 at 10:00, CPT John W. Holmes wrote:
PHP is server side, so it obviously cannot control light bulbs. Use
javascript.
maybe the lightbulbs are connected to the server :)
as seems to be the case right
can be found at
http://www.php.net/manual/en/language.types.array.php and scroll down to
'Array do's and don'ts' - 'Why is $foo[bar] wrong?'
HTH,
Ivo Fokkema
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
Does this parameter have anything to do with the -f option of the
Unix/Linux sendmail command?
[/snip]
I'm not a linux expert, but as far as I know, it's the same. It allows users
to set the Return-Path header with the mail() function, but this is
disallowed when your PHP is set to
Hi,
I've actually been looking for this kind of things for a while as well.
However, I would not want my client to install something to uncode the
scripts (probably causing the scripts to be unencoded easier). I found
these:
PHP OBFUSCATOR
Jami Moore [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I have been trying all weekend to get this right, and so far it does not
validate an e-mail address with a subdomain.
-- Code --
$empatt =
^[_a-z0-9-]+(\.[_a-z0-9-]+)[EMAIL PROTECTED](\.[a-z0-9-]+)*(\.[a-z]{2,3})$;
with the last
login time below it. No, it doesn't. When I quote the line
'$_SESSION['last_logn'] = ;' it does display, but then it keeps doing that
until you log off. Not so elagant. Any ideas/suggestions???
Thank you in advance!
Ivo
--
[Win2000 | Apache/1.3.23]
[PHP/4.2.3 | MySQL/3.23.53]
Ivo
| Apache/1.3.23]
[PHP/4.2.3 | MySQL/3.23.53]
Ivo Fokkema
PHP MySQL programmer
Leiden University Medical Centre
Netherlands
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
!
--
[Win2000 | Apache/1.3.23]
[PHP/4.2.3 | MySQL/3.23.53]
Ivo Fokkema
PHP MySQL programmer
Leiden University Medical Centre
Netherlands
Karen Santmyer [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
HI:
Can anyone refer me to someone that can help with the problem below.
I
stores arrays, so I don't know if
$total_size is even close to the amount of bytes used for an array.
--
[Win2000 | Apache/1.3.23]
[PHP/4.2.3 | MySQL/3.23.53]
Ivo Fokkema
PHP MySQL programmer
Leiden University Medical Centre
Netherlands
--
PHP General Mailing List (http://www.php.net
Well, worked nicely for me...
Can you tell me where you can fetch this kind of information?
--
[Win2000 | Apache/1.3.23]
[PHP/4.2.3 | MySQL/3.23.53]
Ivo Fokkema
PHP MySQL programmer
Leiden University Medical Centre
Netherlands
Suhas Pharkute [EMAIL PROTECTED] wrote in message
news:[EMAIL
Reply-To, Error-To and whatever
more, but I couldn't fix it. Maybe something can be added to a later release
of PHP to fix this? I for one would be extremely happy with that.
--
[Win2000 | Apache/1.3.23]
[PHP/4.2.3 | MySQL/3.23.53]
Ivo Fokkema
PHP MySQL programmer
Leiden University Medical
its self.
You would need to set 'SMTP' and 'sendmail_from' in your php.ini. The
'sendmail_path' doesn't work for Windows, so you can leave that blank.
Nothing else changes then...
--
[Win2000 | Apache/1.3.23]
[PHP/4.2.3 | MySQL/3.23.53]
Ivo Fokkema
PHP MySQL programmer
Leiden University Medical
.= From: Name [EMAIL PROTECTED]\r\n;
$body = Whatever is in your email;
$to = Name [EMAIL PROTECTED];
$check_mail = mail($to, Subject, $body, $headers);
--
[Win2000 | Apache/1.3.23]
[PHP/4.2.3 | MySQL/3.23.53]
Ivo Fokkema
PHP MySQL programmer
Leiden University Medical Centre
Netherlands
--
PHP
?
--
[Win2000 | Apache/1.3.23]
[PHP/4.2.3 | MySQL/3.23.53]
Ivo Fokkema
PHP MySQL programmer
Leiden University Medical Centre
Netherlands
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
to warn you though, PHP depricates the use of register_globals = On,
so it would be recommendable to use your modified script and keep coding
using $_POST, $_GET and these kind of global variables.
--
[Win2000 | Apache/1.3.23]
[PHP/4.2.3 | MySQL/3.23.53]
Ivo Fokkema
PHP MySQL programmer
Leiden
Curt Zirzow [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
* Thus wrote Ivo Fokkema ([EMAIL PROTECTED]):
I want to warn you though, PHP depricates the use of register_globals =
On,
so it would be recommendable to use your modified script and keep coding
using $_POST, $_GET
localhost
(Windows 2000).
HTH,
--
[Win2000 | Apache/1.3.23]
[PHP/4.2.3 | MySQL/3.23.53]
Ivo Fokkema
PHP MySQL programmer
Leiden University Medical Centre
Netherlands
Dore Van Hoorn [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi,
I get this warning when trying to write to a .txt
.
(...)
--
Ivo Fokkema
PHP MySQL programmer
Leiden University Medical Centre
Netherlands
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
50 matches
Mail list logo