"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
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
http://richard.fairthorne.is-a-geek.com/utils_obfuscate.p
[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 safe_mo
d to problems when you use the name of a constant as a
key.
I hope this is clear, more info 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
"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
"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
ing? Any ideas on this? The default values may sometimes be a bit
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
"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 ca
"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])
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 :
"";
And then let mp3.php send all of the no-cache headers together with the
contents of the filename.mp3.
It might work, I would give it a try...
HTH,
--
Ivo
"To
"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
> $test = array ( 'a' => '1', 'b' => '2');
> ?>
>
> /dir1/script1.php
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 referr
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. Thi
$ in
> /var/www/html/Sessions/userman.php on line 83
>
> Line 83 is '?>'..
You missed a '}' at lines :
if($count==0)
{
//User does not exist in the database
header('location: user_not_exists.php');
exit();
Add a '}' after 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
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
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]
$
"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
_ENTITIES);
var_dump($a);
? With me, it returns a 99 elements array with loads of characters,
including the "é". (PHP/4.2.3 on Win2000)
I have no idea what might be the problem, what does your translation table
look like?
--
Ivo Fokkema
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
To change "é" to "é" 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 bac
eaders .= "X-Mailer: PHP/".phpversion()."\r\n";//I use this, I'm not
sure if you really need this header
$headers .= "From: [EMAIL PROTECTED]";
$headers .= "Reply-to: [EMAIL PROTECTED]";
$headers .= "Return-path: [EMAIL PROTECTED]";
$headers
"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 wo
"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
ne
"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
> {
>
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" &
desired value.
Why don't you use :
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/unsub.php
"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
y?
Getting these errors at the last line in your script generally means that
you omitted a closing '}'.
So when you would do :
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
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 :
http://"; . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']
. "#" . $_GET['go']);
exit;
}
//rest of your code
?>
This code dete
f two separate
links...
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 P
thesite.com/thepage.asp?go=here
>
> where "here" -the value - in the string query would be marked up as:
> ...
> // thepage.asp
>
>
> blah,blah,blah, etc...
>
> ...
>
> Can this be done using php?
Why not use :
s:[EMAIL PROTECTED]
> Use preg_*() 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]
>
ny ideas?
http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?cmd=Retrieve&db=Pub
Med&dopt=Abstract&list_uids=\\1\"
target=\"_blank\">\\2","{PMID11519736:Müller}");
print ($val);
?>
TIA!
--
[Win2000 | Apache/1.3.23]
[PHP/4.2.3 | MySQL/3.23.53]
Ivo Fokkema
PHP
"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
.htaccess, the URL will
not change, 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
re looking for when
they hit a 404) but can $_SERVER['SCRIPT_NAME'] 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
#x27;t return all 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
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
support for Apache 2 is experimental. It's
highly recommended you use PHP with Apache 1.3.x and not
Apache 2.
(...)
--
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
ther, but I do on my 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,
>
"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 a
on,
you can use your first script.
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 and these kind of global variables.
--
[Win2000 | Apache/1.3.23]
[PHP/4.2.3 | MySQL/
I do get the notification mail when mail bounces.
That's funny, because I always had that problem, too. By adding Reply-To and
Return-path, it did not fix my problem. Boucing emails never got back to me.
Return-path was overwritten by my hostingserver to '[EMAIL PROTECTED]'
ent-Type: text/plain; charset=iso-8859-1\r\n";
$headers .= "X-Priority: 3\r\n";
$headers .= "X-MSMail-Priority: Normal\r\n";
$headers .= "X-Mailer: PHP/".phpversion()."\r\n";
$headers .= "From: Name <[EMAIL PROTECTED]>\r\n";
$body = "
he windows
> version connects to a smtp server and sends the message 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
receive any delivery errors. I used 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 &
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]> w
trlen($val);
}
But I'm really not sure how PHP 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
N
Good luck!
--
[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 someo
aces)
but for larger input or many iterations I'd rather use Perl compatible...
--
[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
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 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