|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
php-general Digest 17 Jan 2006 20:10:39 -0000 Issue 3911
php-general-digest-help
lists.php.net
Date: Tue Jan 17 2006 - 14:10:39 CST
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
php-general Digest 17 Jan 2006 20:10:39 -0000 Issue 3911
Topics (messages 228703 through 228728):
Re: how 2 open File Browser window in PHP
228703 by: Jochem Maas
228718 by: Richard Correia
PHP and LDAP...
228704 by: David BERCOT
228705 by: Adrian Bruce
228706 by: David BERCOT
Using GPG in Safe Mode
228707 by: emil.vanster.nu
228708 by: Edwin Barrios
Re: HAPPY NEW YEAR!!
228709 by: Michelle Konzack
228710 by: Michelle Konzack
Re: need help arranging files!
228711 by: tedd
228719 by: Richard Correia
Re: header data being inserted into message
228712 by: ET Support
228720 by: Richard Correia
Re: Validating Radio Buttons in two directions
228713 by: tedd
228714 by: John Nichel
228715 by: Austin Denyer
228717 by: John Nichel
228723 by: tedd
Re: Best way to do this: www.domain.com?page=var
228716 by: tg-php.gryffyndevelopment.com
228721 by: Steve Clay
228722 by: Richard Correia
228724 by: Richard Correia
228726 by: Michael Hulse
Re: Site down?
228725 by: Marc G. Fournier
Help with regular expressions
228727 by: Carl Furst
228728 by: John Nichel
Administrivia:
To subscribe to the digest, e-mail:
php-general-digest-subscribe
lists.php.net
To unsubscribe from the digest, e-mail:
php-general-digest-unsubscribe
lists.php.net
To post to the list, e-mail:
php-general
lists.php.net
----------------------------------------------------------------------
attached mail follows:
Aaron Koning wrote:
> Please attempt to search www.php.net first for this information.
you use 'please' after the 3th or 4th 'give me the code, it's very urgent'?
Are you related to the dalai lama per chance? ;-)
>
> A search for 'file uploads' reveals what you want:
> http://ca.php.net/features.file-upload
>
> Aaron
>
> On 1/16/06, suresh kumar <asureshkumar_1983
yahoo.co.in> wrote:
>
>>hi,
>> i dont know exact PHP code for how 2 open file browser window to
>>uplad file or an image plz help me.its very urgent.
>> A.suresh
>>
>>Send instant messages to your online friends http://in.messenger.yahoo.com
>>
>
>
attached mail follows:
I think you need to take a close look at
http://http://www.weberdev.com/
You can locate a cool file upload script at *
http://www.weberdev.com/get_example-3923.html*
Thanks
Richard
On 1/17/06, suresh kumar <asureshkumar_1983
yahoo.co.in> wrote:
>
> hi,
> i dont know exact PHP code for how 2 open file browser window to
> uplad file or an image plz help me.its very urgent.
> A.suresh
>
> Send instant messages to your online friends http://in.messenger.yahoo.com
>
attached mail follows:
Hi,
I'm new on this list and with PHP. But I am a old web developer (with
ASP).
I'm looking for verifying a username/password in Active Directory with a
LDAP request...
I have this error :
Warning: ldap_search() [function.ldap-search]: Search: Operations error
in /var/www/ldap.html on line 69
I think my criterias are not OK but I think there are classical :
$sr=ldap_search($ds,"o=Justice, c=FR","(sn=Berc*)");
Do you have a little example which always return an answer, in AD or in
true LDAP (because I have two different servers) ?
Then, I have another question... As I said, I'd like to verify
username/password. Is it possible ? With AD ? With LDAP ?
Is the password clear on network ? Do I have some solutions to resolve
that problem ?
Thank you very much.
David.
attached mail follows:
David
I found this resource usefull when authenticating users against LDAP,
its easy to set up and use.
http://adldap.sourceforge.net/
Ade
David BERCOT wrote:
>Hi,
>
>I'm new on this list and with PHP. But I am a old web developer (with
>ASP).
>I'm looking for verifying a username/password in Active Directory with a
>LDAP request...
>I have this error :
>Warning: ldap_search() [function.ldap-search]: Search: Operations error
>in /var/www/ldap.html on line 69
>
>I think my criterias are not OK but I think there are classical :
>$sr=ldap_search($ds,"o=Justice, c=FR","(sn=Berc*)");
>
>Do you have a little example which always return an answer, in AD or in
>true LDAP (because I have two different servers) ?
>
>Then, I have another question... As I said, I'd like to verify
>username/password. Is it possible ? With AD ? With LDAP ?
>Is the password clear on network ? Do I have some solutions to resolve
>that problem ?
>
>Thank you very much.
>
>David.
>
>
>
attached mail follows:
> David
>
> I found this resource usefull when authenticating users against LDAP,
> its easy to set up and use.
>
> http://adldap.sourceforge.net/
OK. I have some problems but the most important point (verifying if a
user can be authenticated) works well !!!
Now, I have to adapt the script because I have different domains and,
so, different servers...
Thank you very much for this help !
David.
> Ade
>
> David BERCOT wrote:
>
> >Hi,
> >
> >I'm new on this list and with PHP. But I am a old web developer (with
> >ASP).
> >I'm looking for verifying a username/password in Active Directory with a
> >LDAP request...
> >I have this error :
> >Warning: ldap_search() [function.ldap-search]: Search: Operations error
> >in /var/www/ldap.html on line 69
> >
> >I think my criterias are not OK but I think there are classical :
> >$sr=ldap_search($ds,"o=Justice, c=FR","(sn=Berc*)");
> >
> >Do you have a little example which always return an answer, in AD or in
> >true LDAP (because I have two different servers) ?
> >
> >Then, I have another question... As I said, I'd like to verify
> >username/password. Is it possible ? With AD ? With LDAP ?
> >Is the password clear on network ? Do I have some solutions to resolve
> >that problem ?
> >
> >Thank you very much.
> >
> >David.
attached mail follows:
Hello,
My ISP have php set for safe mode. And now I'm trying to run gpg from php.
Basically I'm trying to run this from exec():
echo "testar testar" | /usr/local/bin/gpg --homedir /home/myuser/ .gnupg -a --always-trust --batch --no-secmem-warning -e -u "Test Test <test
test .com>" -r "Test Test <test
test.com>"
When I run it from cli myself it works fine, but it fails when I run it from php. Are there anyway I can get this to work?
Sorry if this is OT or an obvious question.
/Regards Emil
attached mail follows:
Hi emil !
If you are using gnupg comand line, there is not way on PHP-safe mode.
The only way that i know to wrap around this problem it's install
pecl extension package calls gnupg (http://pecl.php.net/package/gnupg). This
extension use libgpgme that bind all gnupg comand line options, then it
don't have problems with safe mode.
i don't know if this tips it's useful in your case, but it's the only
solutions that i know.
On 1/16/06, emil
vanster.nu <emil
vanster.nu> wrote:
>
>
> Hello,
>
> My ISP have php set for safe mode. And now I'm trying to run gpg from php.
>
> Basically I'm trying to run this from exec():
> echo "testar testar" | /usr/local/bin/gpg --homedir /home/myuser/ .gnupg
> -a --always-trust --batch --no-secmem-warning -e -u "Test Test <test
test.com>" -r "Test Test <
> test
test.com>"
>
> When I run it from cli myself it works fine, but it fails when I run it
> from php. Are there anyway I can get this to work?
>
> Sorry if this is OT or an obvious question.
>
> /Regards Emil
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
attached mail follows:
Am 2006-01-06 13:39:41, schrieb Zareef Ahmed:
> France is so late ? ;)
I was working from Friday to Thuesday in Karlsruhe/Germany. ;-)
Greetings
Michelle Konzack
Systemadministrator
Tamay Dogan Network
Debian GNU/Linux Consultant
--
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack Apt. 917 ICQ #328449886
50, rue de Soultz MSM LinuxMichi
0033/3/88452356 67100 Strasbourg/France IRC #Debian (irc.icq.com)
attached mail follows:
Am 2006-01-06 13:49:18, schrieb John Nichel:
> Zareef Ahmed wrote:
> >France is so late ? ;)
>
> A little too much wine during the celebration. They're just now waking up.
:-)
Unfortunatly I do not drink alcohol because I am muslim.
> John C. Nichel IV
> Programmer/System Admin (ÜberGeek)
^^^^^^^^
:-) :-)
Greetings
Michelle Konzack
Systemadministrator
Tamay Dogan Network
Debian GNU/Linux Consultant
--
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack Apt. 917 ICQ #328449886
50, rue de Soultz MSM LinuxMichi
0033/3/88452356 67100 Strasbourg/France IRC #Debian (irc.icq.com)
attached mail follows:
>Hmm, I just set-it-up on my server:
>
>http://www.ambiguism.com/php/readDirSort.php
>
>Seems to work for me. Code:
>
>-snip-
>
>Hth!
>Cheers,
>Micky
Micky:
Worked great for me -- no problems whatsoever!
Thanks.
tedd
--
--------------------------------------------------------------------------------
http://sperling.com/
attached mail follows:
You can locate a good directory reading script at
http://www.weberdev.com/get_example-1456.html
Thanks,
Richard
On 1/17/06, Nicholas Couloute <njcjr
tmail.com> wrote:
>
> I need to know how to arrange files alphabetically in my directory when
> I display it on the browser! I have it display the filename foreach that
> exist is there a way to arrange by alphabet?
> ~Nick Couloute
> co-owner/web Designer
> SiDEkiCk2MuSiC.CoM
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
attached mail follows:
Hello all,
I am having a problem using PHP's mail function to send mail via BCC to
multiple recipients. Here's my code;
--------------------------------------
$get_emails = pg_exec($dbh,"SELECT email FROM mailing_list WHERE conf = 1");
$count = pg_numrows($get_emails);
$bcc_count = $envelope_count = 0;
$bcc_limit = 200;
$subject = $body = 'test message';
$from = 'support
earthtecinc.com';
$header = "From: $from\r\n";
for($x = 0; $x < $count; $x++) {
$email = pg_result($get_emails,$x,0);
if($bcc_count >= $bcc_limit) {
if($x > 0) {
$envelope_count++;
mail($from,$subject,$body,$headers);
}
$headers = $header . "Bcc: $email\r\n";
$bcc_count = 1;
} else {
$headers .= "Bcc: $email\r\n";
$bcc_count++;
}
}
# send the last envelope
mail($from,$subject,$body,$headers);
--------------------------------------
The problem is that for some recipients they get a message body like this;
--------------------------------------
Message-Id: <20060116170640.424CFA51997
earthtecinc.com>
Date: Mon, 16 Jan 2006 17:06:40 +0000 (GMT)
test message
--------------------------------------
Any idea why those headers are being inserted into the message body and how
that can be prevented?
Thanks,
Ben King
support
earthtecinc.com
attached mail follows:
Hey,
You can use the readymase mailer class from
http://www.weberdev.com/get_example-462.html
and
http://www.weberdev.com/get_example-3724.html
Thanks
Richard
On 1/17/06, ET Support <support
earthtecinc.com> wrote:
>
> Hello all,
>
> I am having a problem using PHP's mail function to send mail via BCC to
> multiple recipients. Here's my code;
> --------------------------------------
> $get_emails = pg_exec($dbh,"SELECT email FROM mailing_list WHERE conf =
> 1");
> $count = pg_numrows($get_emails);
> $bcc_count = $envelope_count = 0;
> $bcc_limit = 200;
> $subject = $body = 'test message';
> $from = 'support
earthtecinc.com';
> $header = "From: $from\r\n";
> for($x = 0; $x < $count; $x++) {
> $email = pg_result($get_emails,$x,0);
> if($bcc_count >= $bcc_limit) {
> if($x > 0) {
> $envelope_count++;
> mail($from,$subject,$body,$headers);
> }
> $headers = $header . "Bcc: $email\r\n";
> $bcc_count = 1;
> } else {
> $headers .= "Bcc: $email\r\n";
> $bcc_count++;
> }
> }
> # send the last envelope
> mail($from,$subject,$body,$headers);
> --------------------------------------
>
> The problem is that for some recipients they get a message body like this;
>
> --------------------------------------
> Message-Id: <20060116170640.424CFA51997
earthtecinc.com>
> Date: Mon, 16 Jan 2006 17:06:40 +0000 (GMT)
>
> test message
> --------------------------------------
>
> Any idea why those headers are being inserted into the message body and
> how
> that can be prevented?
>
> Thanks,
> Ben King
> support
earthtecinc.com
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
attached mail follows:
>How do I assure that only one color is ranked at any one value?
>
>I hope my question makes sense. Any help will be appreciated.
>
>Thanks in advance.
>
>HiFi Tubes
HiFi:
I understand your problem, you don't want the user to pick a color
such that it ranks the same as another color (i.e., only one gets a
number-one ranking, only one gets a number-two ranking and so on).
In php you can detect what the user picked AFTER they submit the form
(click submit) and then redirect them back with an explanation "Hey,
you made a mistake -- this is what you are supposed to do." And then,
hope they do it right next time. However, that's against normal (or
at least my) GUI.
IMO, what you need to do is client-side checking, namely javascript.
You need to have a routine that checks what the user selects as the
user selects it -- this can't be done in php -- it can only be done
server-side.
I give you a hint, you should investigate:
<input TYPE="radio" NAME="button" onClick="<whatever>"></td>
The routine should simply un-check a previously checked button.
HTH's
tedd
--
--------------------------------------------------------------------------------
http://sperling.com/
attached mail follows:
tedd wrote:
>> How do I assure that only one color is ranked at any one value?
>>
>> I hope my question makes sense. Any help will be appreciated.
>>
>> Thanks in advance.
>>
>> HiFi Tubes
>
>
> HiFi:
>
> I understand your problem, you don't want the user to pick a color such
> that it ranks the same as another color (i.e., only one gets a
> number-one ranking, only one gets a number-two ranking and so on).
>
> In php you can detect what the user picked AFTER they submit the form
> (click submit) and then redirect them back with an explanation "Hey, you
> made a mistake -- this is what you are supposed to do." And then, hope
> they do it right next time. However, that's against normal (or at least
> my) GUI.
>
> IMO, what you need to do is client-side checking, namely javascript. You
> need to have a routine that checks what the user selects as the user
> selects it -- this can't be done in php -- it can only be done server-side.
>
> I give you a hint, you should investigate:
>
> <input TYPE="radio" NAME="button" onClick="<whatever>"></td>
>
> The routine should simply un-check a previously checked button.
>
> HTH's
>
> tedd
>
Huh? Maybe I'm just not awake this morning and not understanding what
you're trying to explain, but if you're using *radio* buttons, only
*one* of the same name can be checked at any give time. ie:
<input type="radio" name="color" value="1" /> Blue
<input type="radio" name="color" value="2" /> Red
<input type="radio" name="color" value="3" /> Black
<input type="radio" name="color" value="4" /> Green
<input type="radio" name="color" value="5" /> Mauve
If you click "Red" and "Blue" is already selected, "Blue" will
automatically be unselected. It's basic HTML.
--
John C. Nichel IV
Programmer/System Admin (ÜberGeek)
Dot Com Holdings of Buffalo
716.856.9675
jnichel
dotcomholdingsofbuffalo.com
attached mail follows:
On Tue, 17 Jan 2006 10:45:01 -0500
John Nichel <john
kegworks.com> wrote:
>
> Huh? Maybe I'm just not awake this morning and not understanding
> what you're trying to explain, but if you're using *radio* buttons,
> only *one* of the same name can be checked at any give time. ie:
>
> <input type="radio" name="color" value="1" /> Blue
> <input type="radio" name="color" value="2" /> Red
> <input type="radio" name="color" value="3" /> Black
> <input type="radio" name="color" value="4" /> Green
> <input type="radio" name="color" value="5" /> Mauve
>
> If you click "Red" and "Blue" is already selected, "Blue" will
> automatically be unselected. It's basic HTML.
That's not what he's trying to do. Grab some coffee #;-D
If I understand correctly, he wants a grid of radio buttons. Each
color can be ranked 1 through 10.
So,
In the range of radio buttons for Blue, you can pick 1-10.
In the range of radio buttons for Red, you can pick 1-10.
In the range of radio buttons for Black, you can pick 1-10.
Etc.
He wants something that prevents someone from selecting, say, 2 for Red
if they have already selected 2 for Blue.
It would be easy to validate this after submission and return to the
page if the user screwed up, but for on-the-fly idiot-proofing he's
gonna need JavaScript.
Regards,
Ozz.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
iD8DBQFDzRLqUdMC3ybuoKIRArsuAKCGNohEDoM9JXYSmy+rs2NDOx5uBgCfSOX6
ElwczrDVepD2LXU4/Et6X7k=
=AnAR
-----END PGP SIGNATURE-----
attached mail follows:
Austin Denyer wrote:
> On Tue, 17 Jan 2006 10:45:01 -0500
> John Nichel <john
kegworks.com> wrote:
>
>>Huh? Maybe I'm just not awake this morning and not understanding
>>what you're trying to explain, but if you're using *radio* buttons,
>>only *one* of the same name can be checked at any give time. ie:
>>
>><input type="radio" name="color" value="1" /> Blue
>><input type="radio" name="color" value="2" /> Red
>><input type="radio" name="color" value="3" /> Black
>><input type="radio" name="color" value="4" /> Green
>><input type="radio" name="color" value="5" /> Mauve
>>
>>If you click "Red" and "Blue" is already selected, "Blue" will
>>automatically be unselected. It's basic HTML.
>
>
> That's not what he's trying to do. Grab some coffee #;-D
>
> If I understand correctly, he wants a grid of radio buttons. Each
> color can be ranked 1 through 10.
>
> So,
> In the range of radio buttons for Blue, you can pick 1-10.
> In the range of radio buttons for Red, you can pick 1-10.
> In the range of radio buttons for Black, you can pick 1-10.
> Etc.
>
> He wants something that prevents someone from selecting, say, 2 for Red
> if they have already selected 2 for Blue.
Ahhhh, now that makes more sense. (shut-up Jay)
--
John C. Nichel IV
Programmer/System Admin (ÜberGeek)
Dot Com Holdings of Buffalo
716.856.9675
jnichel
dotcomholdingsofbuffalo.com
attached mail follows:
>On Tue, 17 Jan 2006 10:45:01 -0500
>John Nichel <john
kegworks.com> wrote:
>>
>> Huh? Maybe I'm just not awake this morning and not understanding
>> what you're trying to explain, but if you're using *radio* buttons,
>> only *one* of the same name can be checked at any give time. ie:
>>
>> <input type="radio" name="color" value="1" /> Blue
>> <input type="radio" name="color" value="2" /> Red
>> <input type="radio" name="color" value="3" /> Black
>> <input type="radio" name="color" value="4" /> Green
>> <input type="radio" name="color" value="5" /> Mauve
>>
>> If you click "Red" and "Blue" is already selected, "Blue" will
>> automatically be unselected. It's basic HTML.
>
>That's not what he's trying to do. Grab some coffee #;-D
Thanks Ozz -- I was not in the mood to be wrong (again -- too much lately).
When I was confronted with a similar problem before, I used html/php/js:
<input type="radio" name="alter" onClick="return uncheckall(<?php
echo($what_button); ?>)">
Where the javascript was:
<script language="javascript">
function uncheckall(num)
{
var els=document.forms[0].elements;
for ( i=els.length; i--; )
{
if( els[i].type.toLowerCase() == 'radio' )
{
if (i != num)
{
els[i].checked = false;
}
}
}
els[num].checked = true;
document.alter; return false;
}
</script>
That way, when the user clicks any rank, all of the buttons within
that rank are unchcecked leaving only the most current checked.
tedd
--
--------------------------------------------------------------------------------
http://sperling.com/
attached mail follows:
If you can't set a new 'default page' on your server, using a header('Location: ...') will simulate the same thing.
I believe the web server sends an error "302" (like a "404" when page isn't found) for saying that a page has moved and redirect the browser automatically to the new page.
So like I said, using an index.php containing a header redirect mentioned below is the equivalent of setting a new default page on the web server... minus the "302" server response to the browser.
I believe the original poster was trying to avoid creating a script whose only function was to redirect (via javascript, php, or whatever) so I think the server default page thing is the best solution here.
If you don't have access to that kind of configuration option, then a PHP header() script is a close second choice.
I'd only use the javascript window.location or html meta-refresh techniques as a worst case scenario.
-TG
= = = Original message = = =
I'm confused...
why does everyone use a refresh??? According to me, that's not what a
refresh is supposed to be used for (!). Why don't use a
header('Location: http://www.domain.com/start.php?page=home'); for it?
It's more in-line with RFC's
- tul
Ray Hauge wrote:
> You could also check to see if $_GET['page'] contains a value, and if it does
> not, then redirect it. Something like this:
>
> if($_GET['page'] == '')
> ~header("Refresh: 0; URL=http://www.domain.com/start.php?page=home");
>
>
> Granted that isn't validating the $_GET['page'] variable input for security,
> but that should at least get you going. Also, that assumes that all your
> pages use the GET query to specify which page they are on. If that's just
> for the initial page, then you'd have to do some more qualification.
>
> HTH
>
___________________________________________________________
Sent by ePrompter, the premier email notification software.
Free download at http://www.ePrompter.com.
attached mail follows:
Tuesday, January 17, 2006, 10:54:21 AM, tg-php
gryffyndevelopment.com wrote:
> If you can't set a new 'default page' on your server, using a
> header('Location: ...') will simulate the same thing.
Not really. Sending a "Location:" header says, "this page is temporarily
moved" and the browser has to send a 2nd request for the new location.
Whether redirecting via PHP (header), javascript or meta-refresh, these all
needlessly force the browser to ask for the page twice, and potentially
cause bookmarking/spidering issues when used for the home page. Amazon
does this and it's annoying; some browsers just will not "remember" the
plain old "http://amazon.com/" that you typed in because only a redirect
lives there.
With a proper server config, the contents of start.php would be immediately
sent to the browser. This is good. But if you can't set this on the server,
this simple PHP script (index.php) does the same thing:
<?php require 'start.php'; ?>
Steve
--
http://mrclay.org/
attached mail follows:
I think you can do it using Location header. There is no need to use
refresh.
get more info at
http://www.weberdev.com/Manuals/PHP/function.header.html
Thanks
Richard Correia
On 1/17/06, Michael Hulse <micky
ambiguism.com> wrote:
>
> Hello,
>
> What would be the best way to get a page variable like this:
>
> www.domain.com?page=home
>
> to show up when a user types in:
>
> www.domain.com
>
> My current fix is to have this:
>
> header("Refresh: 0; URL=http://www.domain.com/start.php?page=home");
>
> ... on a index.php page on the root.
>
> Is there a way I can do this and avoid having a page that just does
> redirection?
>
> Thanks for help.
> Cheers,
> Micky
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
attached mail follows:
Hey Steve,
I know it can be done easily using apache rewrite rules. Since this user may
not know it, I suggested location header.
Rich
On 1/17/06, Steve Clay <sclay
ufl.edu> wrote:
>
> Tuesday, January 17, 2006, 10:54:21 AM, tg-php
gryffyndevelopment.comwrote:
> > If you can't set a new 'default page' on your server, using a
> > header('Location: ...') will simulate the same thing.
>
> Not really. Sending a "Location:" header says, "this page is temporarily
> moved" and the browser has to send a 2nd request for the new location.
> Whether redirecting via PHP (header), javascript or meta-refresh, these
> all
> needlessly force the browser to ask for the page twice, and potentially
> cause bookmarking/spidering issues when used for the home page. Amazon
> does this and it's annoying; some browsers just will not "remember" the
> plain old "http://amazon.com/" that you typed in because only a redirect
> lives there.
>
> With a proper server config, the contents of start.php would be
> immediately
> sent to the browser. This is good. But if you can't set this on the
> server,
> this simple PHP script (index.php) does the same thing:
> <?php require 'start.php'; ?>
>
> Steve
> --
> http://mrclay.org/
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
attached mail follows:
Wow, thanks for all the great advice everyone! Very good info... all of
your suggestions have been very helpful. I appreciate it.
• I would have never thought to just require() the page... good idea.
:)
• Still checking out server options... waiting for info from client on
that tip.
• Mod rewrite looks very interesting and useful, reading/learning about
it now.
• Header and Location redirects... Glad to hear all of your thoughts
about the pros/cons of the two. Thanks. :)
• Also, thanks for all the snippets of code. Definitely got me thinking
in the right direction.
Have a great new year!
Cheers,
Micky
--
¸.·´¯`·.¸¸><(((º>`·.¸¸.·´¯`·.¸¸><((((º>
·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸><((((º>
`·.¸¸><((((º>¸.·´¯`·.¸¸><((((º>
attached mail follows:
On Tue, 17 Jan 2006, Dotan Cohen wrote:
> I just noticed that http://www.io.org/~rasmus is down. Anybody else
> remember this site?
Ya, I used to own it *way way* back ... that goes back to '92, the company
was sold in '95 ... not sure how long the domain was active after that,
but looking at whois, it went through a few incarnations and is currently
owned by Primus Telecom ...
----
Marc G. Fournier Hub.Org Networking Services (http://www.hub.org)
Email: scrappy
hub.org Yahoo!: yscrappy ICQ: 7615664
attached mail follows:
Ok I am so stumped.. I'm doing something stupid and I can't figure it out..
Here's the code:
<?php
$eml = 'hiddenemailadddress
hiddendomain.net ceo';
if (strpos($eml, ' ')) echo "yep, there are spaces\n"; //does strpos see the
spaces?
echo preg_replace('/\s/', '', $eml); //WTF? Preg_replace does not?
echo "$eml\n";
?>
As you can see there are a bunch of spaces in that email address. I'm trying
to use preg_replace to get rid of them. Strpos sees the spaces and the first
echo statement is executed. The second echo prints nothing and the third
prints the original $eml with nothing substituted.
Can anyone see why the perl reg isn't seeing the spaces?
Carl
attached mail follows:
Carl Furst wrote:
> Ok I am so stumped.. I'm doing something stupid and I can't figure it out..
>
> Here's the code:
>
> <?php
>
> $eml = 'hiddenemailadddress
hiddendomain.net ceo';
> if (strpos($eml, ' ')) echo "yep, there are spaces\n"; //does strpos see the
> spaces?
> echo preg_replace('/\s/', '', $eml); //WTF? Preg_replace does not?
> echo "$eml\n";
>
>
> ?>
>
> As you can see there are a bunch of spaces in that email address. I'm trying
> to use preg_replace to get rid of them. Strpos sees the spaces and the first
> echo statement is executed. The second echo prints nothing and the third
> prints the original $eml with nothing substituted.
>
> Can anyone see why the perl reg isn't seeing the spaces?
>
> Carl
>
Working fine on my end (copy/pasted your code)
--
John C. Nichel IV
Programmer/System Admin (ÜberGeek)
Dot Com Holdings of Buffalo
716.856.9675
jnichel
dotcomholdingsofbuffalo.com
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]