php-general Digest 5 Apr 2001 22:42:01 -0000 Issue 610
Topics (messages 47228 through 47324):
huidziekte
47228 by: Rita de Groot
47229 by: Soeren Staun-Pedersen
47230 by: Felix Kronlage
47233 by: Plutarck
47235 by: Knut H. Hassel Nielsen
47237 by: Morten Winkler Jørgensen
47239 by: Rudolf Visagie
47240 by: Plutarck
Apache latest + PHP latest + GD latest + Freetype latest + Jpeg latest
47231 by: Alex Bloor
47232 by: Plutarck
47238 by: Knut H. Hassel Nielsen
foreach ?!
47234 by: TV Karthick Kumar
47275 by: TV Karthick Kumar
Re: Reg exps.
47236 by: Plutarck
Re: is this syntax correct?
47241 by: Plutarck
Direct output to printer
47242 by: Tim Legg-Bagg
47244 by: Plutarck
47246 by: Knut H. Hassel Nielsen
47263 by: Tim Legg-Bagg
Re: ZEND Encoder
47243 by: Plutarck
Re: cookie working only 90% array missing one var and sql query burns [YIKES!]
47245 by: Plutarck
mailfetch web front-end
47247 by: Mauro Biraghi
Passing Arrays
47248 by: Jordan Elver
47250 by: Rudolf Visagie
47255 by: Jordan Elver
Another include ?
47249 by: Mike
47257 by: Steve Werby
47324 by: Christian Reiniger
scramble the code
47251 by: Scott Fletcher
47254 by: Robert Covell
47256 by: Joe Sheble (Wizaerd)
47261 by: Scott Fletcher
47262 by: Scott Fletcher
47265 by: Joe Sheble (Wizaerd)
47266 by: Scott Fletcher
47270 by: Scott Fletcher
47271 by: Sam Masiello
47277 by: maatt
47312 by: Scott Fletcher
Re: PHP + IRC
47252 by: Krznaric Michael
Re: current location
47253 by: Joe Stump
Re: column names
47258 by: Steve Werby
47269 by: Mauricio Junqueira
Re: "YourName.BEST321.com" FREE §K¶O°ì¦W !!!!!
47259 by: Zeus
Re: Left Join Across Two Databases
47260 by: Steve Werby
Re: Fastest way to encrypt database storage?
47264 by: Nuno Silva
close tcp-IP connection before php-skript finishes
47267 by: Peter Kuppelwieser
inlude_path not in php.ini
47268 by: Temeschinko, Michael
47272 by: Steve Werby
47273 by: Matt Williams
47276 by: Temeschinko, Michael
max_execution_time && sleep()
47274 by: PHP User
Release of PHP 4.05
47278 by: Dominique Paquin
47279 by: Neil Kimber
47280 by: Dominique Paquin
47313 by: Martín Marqués
Re: More Email ereg Validation
47281 by: Dan Wilson
47283 by: Jaime Bozza
47284 by: Felix Kronlage
47285 by: stout.stoutstreet.com
47286 by: Dan Wilson
Postscript Color in PHP 4.0.4pl1
47282 by: Sebastian Wenleder
array speed
47287 by: Kurth Bemis
47314 by: Rouvas Stathis
47315 by: Joe Stump
47316 by: Joe Stump
Re: scramble the code-sneaky solution
47288 by: Lindsay Adams
47311 by: Mark Maggelet
Re: scramble the code -sneaky solution (redux)
47289 by: Lindsay Adams
47290 by: Steve Werby
47291 by: Clayton Dukes
/etc/shadow
47292 by: Diogo Saad
47294 by: Lindsay Adams
IF this then, move to this line...
47293 by: Brandon Orther
47296 by: Steve Werby
47298 by: Brandon Orther
47300 by: CC Zona
ftp_get: possible security hole?
47295 by: Chris Ralston
47307 by: Rasmus Lerdorf
47309 by: Nuno Silva
Apache user
47297 by: Chris Mason
47304 by: Joe Conway
47306 by: Johnson, Kirk
47322 by: Joe Conway
Include / Require
47299 by: Ashley M. Kirchner
47301 by: Lindsay Adams
47302 by: Johnson, Kirk
47303 by: Ashley M. Kirchner
47323 by: Chris Lee
about php.ini
47305 by: Emmanuel FAIVRE
Re: BUG - Someone else please verify B4 I file
47308 by: Krznaric Michael
How can I send command to ftp?
47310 by: Brandon Orther
better functionality in query ?
47317 by: Jerry Lake
Mail() Speed?
47318 by: PHP User
Re: CGI ver. showing exec line
47319 by: Thomas Deliduka
PHP and CVS
47320 by: ..s.c.o.t.t.. [gts]
47321 by: Martín Marqués
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
Vijf jaar voordat deze foto's werden genomen werd bij mij diagnose
reumatische artritis gesteld en als zodanig ook behandeld. Niets hielp.
Toen de ziekte zich zo manifesteerde zoals u hieronder kunt zien..........
http://www.naardedokter.com/testimonials/sys_lup_eryth.htm
> Vijf jaar voordat deze foto's werden genomen werd bij mij diagnose
> reumatische artritis gesteld en als zodanig ook behandeld. Niets hielp.
> Toen de ziekte zich zo manifesteerde zoals u hieronder kunt zien..........
> http://www.naardedokter.com/testimonials/sys_lup_eryth.htm
This is an English mailinglist.
Soeren Staun-Pedersen - [EMAIL PROTECTED]
------
"The internet is full, beat it"
- Me.
On Thu, Apr 05, 2001 at 12:47:59PM +0200, Soeren Staun-Pedersen wrote:
> This is an English mailinglist.
forget it, was spam (hit me on quiet a few mailing-lists such as
[EMAIL PROTECTED] etc...).
-fkr
--
gpg-fingerprint: 076E 1E87 3E05 1C7F B1A0 8A48 0D31 9BD3 D9AC 74D0
|http://www.hazardous.org/ | whois -h whois.ripe.de FKR-RIPE |
|all your base are belong to us | shame on me | fkr@IRCnet |
I was wondering what the hell language that was...still trying to figure it
out. LOL
I know it's not spanish, english, german, italian, french, or portugese. I'm
betting on either norwegian or dutch.
I'll have it figured out in a few minutes...I hope, lol. And I might even
figure out what it says too :)
--
Plutarck
Should be working on something...
...but forgot what it was.
"Felix Kronlage" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> On Thu, Apr 05, 2001 at 12:47:59PM +0200, Soeren Staun-Pedersen wrote:
>
> > This is an English mailinglist.
>
> forget it, was spam (hit me on quiet a few mailing-lists such as
> [EMAIL PROTECTED] etc...).
>
> -fkr
> --
> gpg-fingerprint: 076E 1E87 3E05 1C7F B1A0 8A48 0D31 9BD3 D9AC 74D0
> |http://www.hazardous.org/ | whois -h whois.ripe.de FKR-RIPE |
> |all your base are belong to us | shame on me | fkr@IRCnet |
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
On Thu, 5 Apr 2001, Plutarck wrote:
> I was wondering what the hell language that was...still trying to figure it
> out. LOL
>
> I know it's not spanish, english, german, italian, french, or portugese. I'm
> betting on either norwegian or dutch.
Norwegian!!! What an insult to us Norwegians.
We don't spam in this country. We only kill whales and wolfs ;)
> I'll have it figured out in a few minutes...I hope, lol. And I might even
> figure out what it says too :)
It's Dutch.
Damn!! Babelfish hasn't got a dutch-option.
--
Knut
------
Knut H. Hassel Nielsen
Principal Engineer / Avdelingsingeniør
Norwegian University of Science and Technology / NTNU
Department of Computer and Information Science / IDI
N-7491 Trondheim, Norway
Phone Office / Telefon jobb : (+47) 73 59 18 46
Fax Office / Telefax jobb : (+47) 73 59 17 33
Cell. Phone / Mobiltelefon : 91 59 86 06
It is most certain _not_ Norweigan.
To me it looks loke a mixture of Dutch and German.
I'll send it to a Duch exchangestudent.
Kind regards,
Morten
It's Dutch, and translated it reads:
Five years before these photo's were taken I was diagnosed with rheumatoid
arthritis and was treated accordingly. Nothing helped. When the illness
manifested itself as you can see here ... (URL)
Rudolf Visagie
[EMAIL PROTECTED]
-----Original Message-----
From: Knut H. Hassel Nielsen [mailto:[EMAIL PROTECTED]]
Sent: 05 April 2001 01:24
To: Plutarck
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] huidziekte
On Thu, 5 Apr 2001, Plutarck wrote:
> I was wondering what the hell language that was...still trying to figure
it
> out. LOL
>
> I know it's not spanish, english, german, italian, french, or portugese.
I'm
> betting on either norwegian or dutch.
Norwegian!!! What an insult to us Norwegians.
We don't spam in this country. We only kill whales and wolfs ;)
> I'll have it figured out in a few minutes...I hope, lol. And I might even
> figure out what it says too :)
It's Dutch.
Damn!! Babelfish hasn't got a dutch-option.
--
Knut
------
Knut H. Hassel Nielsen
Principal Engineer / Avdelingsingeniør
Norwegian University of Science and Technology / NTNU
Department of Computer and Information Science / IDI
N-7491 Trondheim, Norway
Phone Office / Telefon jobb : (+47) 73 59 18 46
Fax Office / Telefax jobb : (+47) 73 59 17 33
Cell. Phone / Mobiltelefon : 91 59 86 06
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
LOL
Ah yes, the beautiful country of Norwegia. Nice summers I hear ;)
Well I can most certainly scratch off norwegian, danish, and swedish. Damn.
But Now I have the irresistible urge for a swedish danish. I do love me some
bi-pastry.
Back to ye ole binary depository (ZDNet) I go...
--
Plutarck
Should be working on something...
...but forgot what it was.
""Knut H. Hassel Nielsen"" <[EMAIL PROTECTED]> wrote in
message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
On Thu, 5 Apr 2001, Plutarck wrote:
> I was wondering what the hell language that was...still trying to figure
it
> out. LOL
>
> I know it's not spanish, english, german, italian, french, or portugese.
I'm
> betting on either norwegian or dutch.
Norwegian!!! What an insult to us Norwegians.
We don't spam in this country. We only kill whales and wolfs ;)
> I'll have it figured out in a few minutes...I hope, lol. And I might even
> figure out what it says too :)
It's Dutch.
Damn!! Babelfish hasn't got a dutch-option.
--
Knut
------
Knut H. Hassel Nielsen
Principal Engineer / Avdelingsingeniør
Norwegian University of Science and Technology / NTNU
Department of Computer and Information Science / IDI
N-7491 Trondheim, Norway
Phone Office / Telefon jobb : (+47) 73 59 18 46
Fax Office / Telefax jobb : (+47) 73 59 17 33
Cell. Phone / Mobiltelefon : 91 59 86 06
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
Hi,
Firstly, thanks for reading this message.
Has anyone managed to compile and use :
Apache latest + PHP latest + GD latest + Freetype latest + Jpeg latest
= Apache 1.3.19 + PHP 4.0.4pl1 + GD 1.8.4 + Freetype 2.0.1 + Jpeg 6b
I can get it to compile OK with GD but there seem to be problems with Freetype (i.e.
everything I try results in a non-working ImageTtfBBox function). I've followed as
many
guides to getting it working as I can find, but they mostly refer to older versions..
I'm pretty sure this is something reasonably obvious but there doesn't seem to be a
one-stop
guide to getting it all installed *anywhere* (links would be cool though if anyone has
them)..
My PHP compile line is :
./configure --with-apache=../apache_1.3.19 --
with-mysql --with-gd --with-ttf=/usr/local/include/freetype2 --with-jpeg-dir=/u
sr/local --enable-freetype-4bit-antialias-hack --enable-gd-imgstrttf
these look relevant :
checking whether to enable truetype string function in gd... no
checking for libjpeg (needed by gd-1.8+)... yes
checking for jpeg_read_header in -ljpeg... (cached) yes
checking for libXpm (needed by gd-1.8+)... no
configure: warning: If configure fails try --with-xpm-dir=<DIR>
checking whether to include GD support... yes (static)
checking for gdImageString16 in -lgd... (cached) yes
checking for gdImagePaletteCopy in -lgd... (cached) yes
checking for gdImageColorClosestHWB in -lgd... (cached) yes
checking for compress in -lz... (cached) yes
checking for png_info_init in -lpng... (cached) yes
checking for gdImageColorResolve in -lgd... (cached) yes
checking for gdImageCreateFromPng in -lgd... (cached) yes
checking for gdImageCreateFromGif in -lgd... (cached) no
checking for gdImageWBMP in -lgd... (cached) yes
checking for gdImageCreateFromJpeg in -lgd... (cached) no
checking for gdImageCreateFromXpm in -lgd... (cached) yes
checking whether to include FreeType 1.x support... no
checking for T1lib support... no
checking whether to include GNU gettext support... no
checking whether to enable truetype string function in gd... no
checking for libjpeg (needed by gd-1.8+)... yes
checking for jpeg_read_header in -ljpeg... (cached) yes
checking for libXpm (needed by gd-1.8+)... no
configure: warning: If configure fails try --with-xpm-dir=<DIR>
checking whether to include GD support... yes (static)
checking for gdImageString16 in -lgd... (cached) yes
checking for gdImagePaletteCopy in -lgd... (cached) yes
checking for gdImageColorClosestHWB in -lgd... (cached) yes
checking for compress in -lz... (cached) yes
checking for png_info_init in -lpng... (cached) yes
checking for gdImageColorResolve in -lgd... (cached) yes
checking for gdImageCreateFromPng in -lgd... (cached) yes
checking for gdImageCreateFromGif in -lgd... (cached) no
checking for gdImageWBMP in -lgd... (cached) yes
checking for gdImageCreateFromJpeg in -lgd... (cached) no
checking for gdImageCreateFromXpm in -lgd... (cached) yes
checking whether to include FreeType 1.x support... no
checking for T1lib support... no
checking whether to include GNU gettext support... no
I *think* it is probably something to do with GD not being compiled properly, but this
(I am
guessing) is to do with it being freetype 2.0.1 as opposed to 1.x ..
Any light anyone can shed would be great.
Many thanks
Alex
This may not be your problem at all, but I remember reading something to the
effect of if your recompiling PHP, you need to delete configure.cache...or
it was somefile with the .cache extension.
With all those lines with "(cache)" in them, thought that might be relevant.
If not I hope you find the answer.
You might want to try compiling it with either an older version of GD, or of
PHP, just so you can drill down which part of the setup is giving you the
errors.
--
Plutarck
Should be working on something...
...but forgot what it was.
""Alex Bloor"" <[EMAIL PROTECTED]> wrote in message
3ACC6119.10753.9C9FF9@localhost">news:3ACC6119.10753.9C9FF9@localhost...
> Hi,
>
> Firstly, thanks for reading this message.
>
> Has anyone managed to compile and use :
>
> Apache latest + PHP latest + GD latest + Freetype latest + Jpeg latest
> = Apache 1.3.19 + PHP 4.0.4pl1 + GD 1.8.4 + Freetype 2.0.1 + Jpeg 6b
>
> I can get it to compile OK with GD but there seem to be problems with
Freetype (i.e.
> everything I try results in a non-working ImageTtfBBox function). I've
followed as many
> guides to getting it working as I can find, but they mostly refer to older
versions..
>
> I'm pretty sure this is something reasonably obvious but there doesn't
seem to be a one-stop
> guide to getting it all installed *anywhere* (links would be cool though
if anyone has them)..
>
> My PHP compile line is :
>
> ./configure --with-apache=../apache_1.3.19 --
>
with-mysql --with-gd --with-ttf=/usr/local/include/freetype2 --with-jpeg-dir
=/u
> sr/local --enable-freetype-4bit-antialias-hack --enable-gd-imgstrttf
>
> these look relevant :
>
> checking whether to enable truetype string function in gd... no
> checking for libjpeg (needed by gd-1.8+)... yes
> checking for jpeg_read_header in -ljpeg... (cached) yes
> checking for libXpm (needed by gd-1.8+)... no
> configure: warning: If configure fails try --with-xpm-dir=<DIR>
> checking whether to include GD support... yes (static)
> checking for gdImageString16 in -lgd... (cached) yes
> checking for gdImagePaletteCopy in -lgd... (cached) yes
> checking for gdImageColorClosestHWB in -lgd... (cached) yes
> checking for compress in -lz... (cached) yes
> checking for png_info_init in -lpng... (cached) yes
> checking for gdImageColorResolve in -lgd... (cached) yes
> checking for gdImageCreateFromPng in -lgd... (cached) yes
> checking for gdImageCreateFromGif in -lgd... (cached) no
> checking for gdImageWBMP in -lgd... (cached) yes
> checking for gdImageCreateFromJpeg in -lgd... (cached) no
> checking for gdImageCreateFromXpm in -lgd... (cached) yes
> checking whether to include FreeType 1.x support... no
> checking for T1lib support... no
> checking whether to include GNU gettext support... no
>
> checking whether to enable truetype string function in gd... no
> checking for libjpeg (needed by gd-1.8+)... yes
> checking for jpeg_read_header in -ljpeg... (cached) yes
> checking for libXpm (needed by gd-1.8+)... no
> configure: warning: If configure fails try --with-xpm-dir=<DIR>
> checking whether to include GD support... yes (static)
> checking for gdImageString16 in -lgd... (cached) yes
> checking for gdImagePaletteCopy in -lgd... (cached) yes
> checking for gdImageColorClosestHWB in -lgd... (cached) yes
> checking for compress in -lz... (cached) yes
> checking for png_info_init in -lpng... (cached) yes
> checking for gdImageColorResolve in -lgd... (cached) yes
> checking for gdImageCreateFromPng in -lgd... (cached) yes
> checking for gdImageCreateFromGif in -lgd... (cached) no
> checking for gdImageWBMP in -lgd... (cached) yes
> checking for gdImageCreateFromJpeg in -lgd... (cached) no
> checking for gdImageCreateFromXpm in -lgd... (cached) yes
> checking whether to include FreeType 1.x support... no
> checking for T1lib support... no
> checking whether to include GNU gettext support... no
>
> I *think* it is probably something to do with GD not being compiled
properly, but this (I am
> guessing) is to do with it being freetype 2.0.1 as opposed to 1.x ..
>
> Any light anyone can shed would be great.
>
> Many thanks
>
> Alex
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
On Thu, 5 Apr 2001, Plutarck wrote:
> This may not be your problem at all, but I remember reading something to the
> effect of if your recompiling PHP, you need to delete configure.cache...or
> it was somefile with the .cache extension.
>
> With all those lines with "(cache)" in them, thought that might be relevant.
>
> If not I hope you find the answer.
>
> You might want to try compiling it with either an older version of GD, or of
> PHP, just so you can drill down which part of the setup is giving you the
> errors.
Shouldn't it be enough to do a 'make clean' or 'make distclean' before you
reconfigure ?
--
Knut
------
Knut H. Hassel Nielsen
Principal Engineer / Avdelingsingeniør
Norwegian University of Science and Technology / NTNU
Department of Computer and Information Science / IDI
N-7491 Trondheim, Norway
Phone Office / Telefon jobb : (+47) 73 59 18 46
Fax Office / Telefax jobb : (+47) 73 59 17 33
Cell. Phone / Mobiltelefon : 91 59 86 06
Hi List..
I have the following code, which actually sets up the value of of the
hidden variable and passes onto the next page and there I manipulate the
data and send them emails.
But passing the hidden variables depends upon the mem_id, that is the
hidden variable has to be passed for 'n' number of records. For example, if
I have two records then the I am checking the first record and finding out
the available email id (the various chances are home_email1, home_email2,
work_email1, work_email2 etc. and I have max. 4 email addresses in each
record) and passing it as an hidden variable to the next page. Here it's
very important to note that, at times, 4 emails will be available or 4
emails will NOT be available (it'll be empty) and sometimes only 1 or 2 will
be available. There are possibilities like this.
Now, as I have this code in place, what's happening is : when I pass any
of the email address of the first record, it's getting passed, where the
home_email1 is available and then when I pass any of the email address of
the second record, it's getting passed - BUT it's getting overwritten and I
have the value of the second record and I lost the first one.
What I want is - I want the hidden variables to be passed and kept for
the number of records selected and then I would use pass them as hidden
variables and use it in the next page. I know that I have to use Arrays for
this, but what's next ?.
Here's my code:
if ($mem_obj->home_email1!=='')
$vars["home_email1"] = "<input type=hidden name=home_email1
value=$mem_obj->home_email1>";
if ($mem_obj->home_email2!=='')
$vars["home_email2"] = "<input type=hidden name=home_email2
value=$mem_obj->home_email2>";
if ($mem_obj->work_email1!=='')
$vars["work_email1"] = "<input type=hidden name=work_email1
value=$mem_obj->work_email1>";
if ($mem_obj->work_email2!=='')
$vars["work_email2"] = "<input type=hidden name=work_email2
value=$mem_obj->work_email2>";
Any help is much useful to me.
Thanks in advance.
~ Karthick
Hi List..
I have the following code, which actually sets up the value of of the
hidden variable and passes onto the next page and there I manipulate the
data and send them emails.
But passing the hidden variables depends upon the mem_id, that is the
hidden variable has to be passed for 'n' number of records. For example, if
I have two records then the I am checking the first record and finding out
the available email id (the various chances are home_email1, home_email2,
work_email1, work_email2 etc. and I have max. 4 email addresses in each
record) and passing it as an hidden variable to the next page. Here it's
very important to note that, at times, 4 emails will be available or 4
emails will NOT be available (it'll be empty) and sometimes only 1 or 2 will
be available. There are possibilities like this.
Now, as I have this code in place, what's happening is : when I pass any
of the email address of the first record, it's getting passed, where the
home_email1 is available and then when I pass any of the email address of
the second record, it's getting passed - BUT it's getting overwritten and I
have the value of the second record and I lost the first one.
What I want is - I want the hidden variables to be passed and kept for
the number of records selected and then I would use pass them as hidden
variables and use it in the next page. I know that I have to use Arrays for
this, but what's next ?.
Here's my code:
if ($mem_obj->home_email1!=='')
$vars["home_email1"] = "<input type=hidden name=home_email1
value=$mem_obj->home_email1>";
if ($mem_obj->home_email2!=='')
$vars["home_email2"] = "<input type=hidden name=home_email2
value=$mem_obj->home_email2>";
if ($mem_obj->work_email1!=='')
$vars["work_email1"] = "<input type=hidden name=work_email1
value=$mem_obj->work_email1>";
if ($mem_obj->work_email2!=='')
$vars["work_email2"] = "<input type=hidden name=work_email2
value=$mem_obj->work_email2>";
Any help is much useful to me.
Thanks in advance.
~ Karthick
I haven't checked many of these out, but I got them all when someone asked
the same question as you in an entirely different place.
I finally learned regex enough to use, in most cases, here:
http://www.devshed.com/Server_Side/Administration/RegExp/
Other URLs I was given (quoting the message):
and also there is a nice little article found here :
http://www.phpbuilder.com/columns/dario19990616.php3
and some resources (in no particular order and many have similar information
but at this point, am going for quantity too (most are not php specific)):
http://perl.about.com/compute/perl/cs/regex/index.htm
http://www.technobreeze.com/phptutorial/tutorial.regexp.php3
http://www.robotwisdom.com/net/regexps.html
http://www.robotwisdom.com/net/regexres.html
www.faqts.com/knowledge-base/index.phtml/fid/7/lang/
http://www.oreilly.com/catalog/regex/
http://msdn.microsoft.com/workshop/languages/clinic/scripting051099.asp
http://javaregex.com/
http://www.builder.com/Programming/Kahn/050698/index.html
http://www.crusoe.net/~jeffp/documentation/perldoc/perlretut.html
http://virtual.park.uga.edu/humcomp/perl/regex2a.html
http://www.python.org/doc/howto/regex/regex.html
http://www.opengroup.org/onlinepubs/7908799/xbd/re.html
http://www.naplesfl.net/~tbates/gravity/reg-100.html
http://www.delorie.com/gnu/docs/regex/regex_toc.html
and as stated above :
http://www.devshed.com/Server_Side/Administration/RegExp/
http://hotwired.lycos.com/webmonkey/geektalk/97/33/index3a.html
one interesting page is javaregex.com which could look a lot like a , oh,
phpregex.com ?
</quote>
You may want to search some Perl sites for more regex info. Everything you
learn can usually be applied directly to PHPs preg functions, with a little
modification.
I'm so glad I finally figured out how to use regex in some instances. It
still looks like pure garbled insanity, but it's a useful skill :)
--
Plutarck
Should be working on something...
...but forgot what it was.
""elias"" <[EMAIL PROTECTED]> wrote in message
9ah709$17p$[EMAIL PROTECTED]">news:9ah709$17p$[EMAIL PROTECTED]...
> Hello.
> I've been learning about reg exps a while ago, and only from little
> examples...
> I wish i know a site where i can learn reg exps very very well with lots
of
> examples and stuff.
> I really like reg exps but i find no resource to learn it well?
> Any one can help?
>
> -elias
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
session_unregister must take the name of the variable to kill. So:
session_unregister("test");
does the job.
--
Plutarck
Should be working on something...
...but forgot what it was.
""Jacky@lilst"" <[EMAIL PROTECTED]> wrote in message
008701c0be0f$21dd1de0$[EMAIL PROTECTED]">news:008701c0be0f$21dd1de0$[EMAIL PROTECTED]...
> I have setup session here
> <?php
> global $test;
> $test = "foo";
> session_register("test");
> ?>
>
> and newbie as I am, still don't know how to delete value of this, I
actually
> using this right at the bottom of the page where I want session value to
be
> deleted.
> <?php
> session_unset();
> ?>
> Did not work, of course, so what do I do?
> Jack
> [EMAIL PROTECTED]
> "There is nothing more rewarding than reaching the goal you set for
> yourself"
> ----- Original Message -----
> From: Wade Halsey <[EMAIL PROTECTED]>
> To: Jacky@lilst <[EMAIL PROTECTED]>
> Sent: Monday, April 02, 2001 3:48 AM
> Subject: Re: [PHP] is this syntax correct?
>
>
> > do you have
> > session_start();
> > at the top of the next page?
> >
> > ----- Original Message -----
> > From: Jacky@lilst <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Monday, April 02, 2001 10:43 PM
> > Subject: Re: [PHP] is this syntax correct?
> >
> >
> > > I also tried this syntax:
> > > <?php
> > > global $test;
> > > $test = "foo";
> > > session_register("test");
> > > ?>
> > >
> > > and it still not work as when I go to next page, and try echo $test,
> > nothing
> > > come up.
> > > Jack
> > > [EMAIL PROTECTED]
> > > "There is nothing more rewarding than reaching the goal you set for
> > > yourself"
> > > ----- Original Message -----
> > > From: Joseph Bannon <[EMAIL PROTECTED]>
> > > To: Jacky@lilst <[EMAIL PROTECTED]>
> > > Sent: Monday, April 02, 2001 3:44 AM
> > > Subject: RE: [PHP] is this syntax correct?
> > >
> > >
> > > > > So what is the right way to do?
> > > >
> > > >
> > > > I resent my email to the list. I've done mostly DB work, so I need
to
> > know
> > > > what those functions do.
> > > >
> > > > J
> > > >
> > > >
> > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > To contact the list administrators, e-mail:
[EMAIL PROTECTED]
> > >
> > >
> >
> >
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
Hi
Can you help please.
I have just started to experiment with PHP and I am impressed with the power of the
language. But (isn't there always) 2 things:
1 Very minor and can be worked around very easily. I cannot find a PHP function to
return the length of a string. Can MySql's LENGTH function be used.
2 This is causing me grief: I want to be able to send a text file directly to the
printer without first displaying it and going through the print dialog.
Your help will be much appreciated.
TIA
Tim Legg-Bagg
Ah, the joys of strlen().
That's your first question, but now for the second.
Sending data directly to the printer is basically a client side function,
and as PHP is totally server side it just can't do it. Not technologically
possible.
There are some "printer direct" type programs around, and you can certainly
figure out a way to make PHP work with those, but that's about all you can
do.
--
Plutarck
Should be working on something...
...but forgot what it was.
""Tim Legg-Bagg"" <[EMAIL PROTECTED]> wrote in message
001001c0bdc7$e63a5ce0$f062893e@tim">news:001001c0bdc7$e63a5ce0$f062893e@tim...
Hi
Can you help please.
I have just started to experiment with PHP and I am impressed with the power
of the language. But (isn't there always) 2 things:
1 Very minor and can be worked around very easily. I cannot find a PHP
function to return the length of a string. Can MySql's LENGTH function be
used.
2 This is causing me grief: I want to be able to send a text file directly
to the printer without first displaying it and going through the print
dialog.
Your help will be much appreciated.
TIA
Tim Legg-Bagg
On Thu, 5 Apr 2001, Plutarck wrote:
> Ah, the joys of strlen().
>
> That's your first question, but now for the second.
>
> Sending data directly to the printer is basically a client side function,
> and as PHP is totally server side it just can't do it. Not technologically
> possible.
>
> There are some "printer direct" type programs around, and you can certainly
> figure out a way to make PHP work with those, but that's about all you can
> do.
Well... If you can get 'lpr' to except requests from 'nobody' you might just
have a solution ( AND a problem ;) ) ('nobody' is here pointing to the user set
up to run your webserver-processes. 'lpr' is a standard print under unix)
But as Plutarck just said : It's client-side stuff, and all dependant on what
you use and if that client can do it.
I know that Netscape doesn't accept this kind of requests.
--
Knut
------
Knut H. Hassel Nielsen
Principal Engineer / Avdelingsingeniør
Norwegian University of Science and Technology / NTNU
Department of Computer and Information Science / IDI
N-7491 Trondheim, Norway
Phone Office / Telefon jobb : (+47) 73 59 18 46
Fax Office / Telefax jobb : (+47) 73 59 17 33
Cell. Phone / Mobiltelefon : 91 59 86 06
Thank you folks for your speed of light answer. I must get some new specs, I
spent a long time searching through Greenspan and Bulgers book for that. No
problem finding it now..
The output to printer problem can now be rested
Thanks again I owe you one
Tim LB
""Knut H. Hassel Nielsen"" <[EMAIL PROTECTED]> wrote in
message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
On Thu, 5 Apr 2001, Plutarck wrote:
> Ah, the joys of strlen().
>
> That's your first question, but now for the second.
>
> Sending data directly to the printer is basically a client side function,
> and as PHP is totally server side it just can't do it. Not technologically
> possible.
>
> There are some "printer direct" type programs around, and you can
certainly
> figure out a way to make PHP work with those, but that's about all you can
> do.
Well... If you can get 'lpr' to except requests from 'nobody' you might just
have a solution ( AND a problem ;) ) ('nobody' is here pointing to the user
set
up to run your webserver-processes. 'lpr' is a standard print under unix)
But as Plutarck just said : It's client-side stuff, and all dependant on
what
you use and if that client can do it.
I know that Netscape doesn't accept this kind of requests.
--
Knut
------
Knut H. Hassel Nielsen
Principal Engineer / Avdelingsingeniør
Norwegian University of Science and Technology / NTNU
Department of Computer and Information Science / IDI
N-7491 Trondheim, Norway
Phone Office / Telefon jobb : (+47) 73 59 18 46
Fax Office / Telefax jobb : (+47) 73 59 17 33
Cell. Phone / Mobiltelefon : 91 59 86 06
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
Although, an interesting question would be how hidden are variable values?
Such as usernames/passes, etc.
Though if someone manages to get a hold of a script, encoded or not, that
has usernames and passwords in it, you are probably screwed anyway ;)
In such a case all usernames and passwords should be totally scrambled for
security, but that can only be done if you actually find out someone got a
hold of the data.
But back to the topic at hand, I ponder how easy it would be to read
variable declarations and values, after reducing the script to such a level.
As any encrypting the Zend encoding performes requires a key to decrypt, it
must be reasonable trivial for a cracker with moderate experiance in
cryptography to obtain.
Then you have clear text, which is the optimized code as you said. Basically
PHP that's been run through a compiler.
I can't imagine it's technologically possible for the Zend Encoder to do
more than obfuscate the source code.
Which basically means it's like taking your bank statement and ripping it
into little pieces by hand. It works only on people not willing to glue the
pieces together.
Someone who does Encoder cracking vary often will surely be capable of doing
all this much more efficiently than someone who's playing around with it.
But how many people make a hobby of that? ...better to keep that rhetorical.
--
Plutarck
Should be working on something...
...but forgot what it was.
""James Moore"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> > Is it possible in any instance that someone else will be able to
> > de-code my
> > PHP scripts once I have used the Zend Encoder on it, and be able
> > to read it?
> > Obviously they will be able to decode it to actually use it on
> > the server,
> > but will they ever be able to read the source?
>
> They will not be able to read the source as such. If they did mange to
> decode your script, which is unlikley then they would have Zend opcode
> rather than PHP Source Code which is the PHP equivilent of ASM. It would
be
> very difficult to reconstuct your source code from this opcode and
probably
> more hassle than actually rewriting the same functionality themselves (IE
> thats a no its pretty much impossible to retrive source code from encoded
> files).
>
> James
> --
> James Moore
> [EMAIL PROTECTED]
> PHP Web Scripting: http://www.php.net/
> PHP QA Team: http://qa.php.net/
> PHP-GTK: http://gtk.php.net/
> VL-SRM: http://www.vl-srm.net/
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
Correct line:
> setcookie ("user_reg[1]" , "$pass_w", $lifetime, "/",
".mydotcom.com");
Now look at this line:
> setcookie ("user_reg[2]" , "$full_name", $lifetime, ".mydotcom.com");
Don't you just hate it when you forget a "/"? ;)
--
Plutarck
Should be working on something...
...but forgot what it was.
""PHPretard"" <[EMAIL PROTECTED]> wrote in message
001501c0bb17$09f7f1a0$1983bc18@pixeldesire">news:001501c0bb17$09f7f1a0$1983bc18@pixeldesire...
> hi peoples, Im going insane here, I have this script working great except
> two things ...
> for one , the sql query returns an error that couldnt run the query...
> and the second is that the variable $user_reg[2] holds nothing even
though
> I cheked the html form and also checked the cookie variable and all are
set
> except [2] .
>
> heres my script snippet:
>
> --
> ...
> $user_reg[0] = $user_name;
> $user_reg[1] = $pass_w;
> $user_reg[2] = $full_name;
> $user_reg[3] = $email;
> $user_reg[4] = $age;
> $user_reg[5] = $icq;
> $user_reg[6] = $aim;
>
> function add_newuser() {
> $date = gmdate ( "M d Y H:i:s" );
> $sql = "INSERT INTO mytable (user_name, pass_w, full_name, email,
> age, icq, aim, date) VALUES ('$user_reg[0]', '$user_reg[1]',
'$user_reg[2]',
> '$user_reg[3]', '$user_reg[4]', '$user_reg[5]', '$user_reg[6]', '$date')";
> $connection = mysql_connect("localhost", "mylog", "mypass") or
die
> ("Could not connect to database");
> $db = mysql_select_db("mydb",$connection);
> $sql_result = mysql_query($sql, $connection) or die ("Couldnt run
> query");
> }
> ?>
> <?
> if (isset($newuse) AND $newuse == "yes") {
> $lifetime = time() + 180 * 86400;
> setcookie ("user_reg[0]" , "$user_name", $lifetime, "/",
> ".mydotcom.com");
> setcookie ("user_reg[1]" , "$pass_w", $lifetime, "/",
".mydotcom.com");
> setcookie ("user_reg[2]" , "$full_name", $lifetime, ".mydotcom.com");
> setcookie ("user_reg[3]" , "$email", $lifetime, "/", ".mydotcom.com");
> setcookie ("user_reg[4]" , "$age", $lifetime, "/", ".mydotcom.com");
> setcookie ("user_reg[5]" , "$icq", $lifetime, "/", ".mydotcom.com");
> setcookie ("user_reg[6]" , "$aim", $lifetime, "/", ".mydotcom.com");
> add_newuser();
> --
Do you know some web front-end for mailfetch?
Thanks.
Mauro
Hi,
How can I pass an array between two pages. I've tried using serialize and
unserialize. But it doen't return an array. When I use gettype() on it, it
say's that the typ-e is boolean?
Any ideas?
Cheers,
Jord
Hi Jordan,
Using sessions in PHP4, like this:
session_start();
$n = -1;
//Read an index from an Oracle table
while (OCIFetch($rs)) {
$n = $n + 1;
$ix[$n] = OCIResult($rs,1);
}
session_register("n");
session_register("ix");
In the next page you have a session_start() again, and can refer to $ix[0],
$ix[1],.. $ix[$n] etc.
Rudolf Visagie
[EMAIL PROTECTED]
-----Original Message-----
From: Jordan Elver [mailto:[EMAIL PROTECTED]]
Sent: 05 April 2001 02:56
To: PHP Database Mailing List; PHP General Mailing List
Subject: [PHP] Passing Arrays
Hi,
How can I pass an array between two pages. I've tried using serialize and
unserialize. But it doen't return an array. When I use gettype() on it, it
say's that the typ-e is boolean?
Any ideas?
Cheers,
Jord
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
Cheers, that works great. I tried using urlencode but that doens't work like
it should in the manual.
Thanks,
Jord
On Thursday 05 April 2001 14:41, you wrote:
> You have to do this:
>
> $myarray = rawurlencode(serialize($myarray));
>
> And then this on your other page:
>
> $myarray = unserialize(rawurldecode($myarray));
>
> You should consider using sessions instead.
>
>
> Jordan Elver <[EMAIL PROTECTED]> wrote:
> Hi,
> How can I pass an array between two pages. I've tried using serialize and
> unserialize. But it doen't return an array. When I use gettype() on it, it
> say's that the typ-e is boolean?
>
> Any ideas?
>
> Cheers,
>
> Jord
Im trying to parse a file twice ,once to extract an include file(NOT using
the include() function) and again to parse the php code.Customer support for
my host says I can add the following line to an .htaccess file:
AddType text/x-server-parsed-html .phtml
but that only parses the include file. I tried to add both:
AddType text/x-server-parsed-html .phtml
AddType application/x-httpd-php .phtml
but that doesnt seem to work.Is this possable??
Mike P
[EMAIL PROTECTED]
"Mike" <[EMAIL PROTECTED]> wrote:
> Im trying to parse a file twice ,once to extract an include file(NOT using
> the include() function) and again to parse the php code.Customer support
for
> my host says I can add the following line to an .htaccess file:
> AddType text/x-server-parsed-html .phtml
>
> but that only parses the include file. I tried to add both:
> AddType text/x-server-parsed-html .phtml
> AddType application/x-httpd-php .phtml
>
> but that doesnt seem to work.Is this possable??
That won't work because PHP is parsing the included file, not Apache. PHP
doesn't care what the extension on the file being included is. One solution
is to go into the include file and put the entire file within a variable
with the RHS of the variable enclosed in single quotes so the RHS doesn't
get translated into values when first called. Then in your main PHP file
that calls it use eval() to parse the variable before using it.
--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/
On Thursday 05 April 2001 15:06, you wrote:
> Im trying to parse a file twice ,once to extract an include file(NOT
> using the include() function) and again to parse the php code.Customer
> support for my host says I can add the following line to an .htaccess
> file: AddType text/x-server-parsed-html .phtml
>
> but that only parses the include file. I tried to add both:
> AddType text/x-server-parsed-html .phtml
> AddType application/x-httpd-php .phtml
>
> but that doesnt seem to work.Is this possable??
AFAIK it will be possible with Apache 2. But until that you're out of
luck. On the other hand - with PHP you can emulate all the SSI stuff
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
Google results 1-10 of about 142,000,000 for e. Search took 0.18 seconds.
- http://www.google.com/search?q=e
For the data in the "post", when the user type in the data and press the
submit button, the data is then carry over to the nextpage.html. In the URL
bar, I can clearly see the data, so is there to scramble hte data where
anyone won't see it in the URL box at the top of the web browser?
Thanks,
Scott
<html>
<form name='action_login' method='post' action='nextpage.html'>
<input type='text' name='test'>
<input type='submit' value='login' name='action_login'>
</form>
</html>
Just did this sort of thing and my solution might not be the best or the
most secure but it does scramble the code. I really wasn't trying to make
an unbreakable query string, just something that would be a deterrent. All
I did was use base64_encode and decode like:
Incoming:
$dec = base64_decode($TAIL);
The on the return to the browser:
$TAIL = base64_encode($dec);
It is easy and works pretty good, producing a string that does not make a
lot of sense to the regular user. Yes someone can probably reverse it if
they wanted to. But someone can also brute force a lot of other encryption
algorithms as well.
-Bob
-----Original Message-----
From: Scott Fletcher [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 05, 2001 8:07 AM
To: [EMAIL PROTECTED]
Subject: [PHP] scramble the code
For the data in the "post", when the user type in the data and press the
submit button, the data is then carry over to the nextpage.html. In the URL
bar, I can clearly see the data, so is there to scramble hte data where
anyone won't see it in the URL box at the top of the web browser?
Thanks,
Scott
<html>
<form name='action_login' method='post' action='nextpage.html'>
<input type='text' name='test'>
<input type='submit' value='login' name='action_login'>
</form>
</html>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
This isn't quite accurate. WHen a form's method is set to "GET" (which BTW
is the form's default method) the variables and their values are passed
along the URL. If your form's method is set to "POST" then nothing should
get passed along on the URL. If you see all your data in the URL, you're
not using a POST method or the forms action is specified as a url with
parameters.
At 09:06 AM 4/5/01 -0400, Scott Fletcher wrote:
>For the data in the "post", when the user type in the data and press the
>submit button, the data is then carry over to the nextpage.html. In the URL
>bar, I can clearly see the data, so is there to scramble hte data where
>anyone won't see it in the URL box at the top of the web browser?
>Thanks,
> Scott
>
>
>
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]
Well, mine does!!!!!
Scott
""Joe Sheble (Wizaerd)"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> This isn't quite accurate. WHen a form's method is set to "GET" (which
BTW
> is the form's default method) the variables and their values are passed
> along the URL. If your form's method is set to "POST" then nothing should
> get passed along on the URL. If you see all your data in the URL, you're
> not using a POST method or the forms action is specified as a url with
> parameters.
>
> At 09:06 AM 4/5/01 -0400, Scott Fletcher wrote:
> >For the data in the "post", when the user type in the data and press the
> >submit button, the data is then carry over to the nextpage.html. In the
URL
> >bar, I can clearly see the data, so is there to scramble hte data where
> >anyone won't see it in the URL box at the top of the web browser?
> >Thanks,
> > Scott
> >
> >
> >
> >
> >
> >--
> >PHP General Mailing List (http://www.php.net/)
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
Well, mine does!!!
Scott
""Joe Sheble (Wizaerd)"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> This isn't quite accurate. WHen a form's method is set to "GET" (which
BTW
> is the form's default method) the variables and their values are passed
> along the URL. If your form's method is set to "POST" then nothing should
> get passed along on the URL. If you see all your data in the URL, you're
> not using a POST method or the forms action is specified as a url with
> parameters.
>
> At 09:06 AM 4/5/01 -0400, Scott Fletcher wrote:
> >For the data in the "post", when the user type in the data and press the
> >submit button, the data is then carry over to the nextpage.html. In the
URL
> >bar, I can clearly see the data, so is there to scramble hte data where
> >anyone won't see it in the URL box at the top of the web browser?
> >Thanks,
> > Scott
> >
> >
> >
> >
> >
> >--
> >PHP General Mailing List (http://www.php.net/)
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
well then yours must be the special super duper browser that doesn't work
the same as most browsers. In my browsers (IE5, IE5.5, NS4.67, NS6, Opera
5) GET passes variables in the URL, and POST does not. That's the reason
there are two different methods, and why POST is the reccommended
methods. But in your special browser, they must be reveresed because...
well... er.... I can't think of any good reason to reverse these in your
special browser...
At 10:10 AM 4/5/01 -0400, Scott Fletcher wrote:
>Well, mine does!!!!!
>
>Scott
>
>""Joe Sheble (Wizaerd)"" <[EMAIL PROTECTED]> wrote in message
>[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > This isn't quite accurate. WHen a form's method is set to "GET" (which
>BTW
> > is the form's default method) the variables and their values are passed
> > along the URL. If your form's method is set to "POST" then nothing should
> > get passed along on the URL. If you see all your data in the URL, you're
> > not using a POST method or the forms action is specified as a url with
> > parameters.
> >
> > At 09:06 AM 4/5/01 -0400, Scott Fletcher wrote:
> > >For the data in the "post", when the user type in the data and press the
> > >submit button, the data is then carry over to the nextpage.html. In the
>URL
> > >bar, I can clearly see the data, so is there to scramble hte data where
> > >anyone won't see it in the URL box at the top of the web browser?
> > >Thanks,
> > > Scott
> > >
> > >
> > >
> > >
> > >
> > >--
> > >PHP General Mailing List (http://www.php.net/)
> > >To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >For additional commands, e-mail: [EMAIL PROTECTED]
> > >To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
>
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]
Um, well, it show up on Internet Explorer and Netscape Navigator and
Netscape. Oh well.
Scott
""Scott Fletcher"" <[EMAIL PROTECTED]> wrote in message
9ahuft$612$[EMAIL PROTECTED]">news:9ahuft$612$[EMAIL PROTECTED]...
> Well, mine does!!!
>
> Scott
>
> ""Joe Sheble (Wizaerd)"" <[EMAIL PROTECTED]> wrote in
message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > This isn't quite accurate. WHen a form's method is set to "GET" (which
> BTW
> > is the form's default method) the variables and their values are passed
> > along the URL. If your form's method is set to "POST" then nothing
should
> > get passed along on the URL. If you see all your data in the URL,
you're
> > not using a POST method or the forms action is specified as a url with
> > parameters.
> >
> > At 09:06 AM 4/5/01 -0400, Scott Fletcher wrote:
> > >For the data in the "post", when the user type in the data and press
the
> > >submit button, the data is then carry over to the nextpage.html. In
the
> URL
> > >bar, I can clearly see the data, so is there to scramble hte data where
> > >anyone won't see it in the URL box at the top of the web browser?
> > >Thanks,
> > > Scott
> > >
> > >
> > >
> > >
> > >
> > >--
> > >PHP General Mailing List (http://www.php.net/)
> > >To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >For additional commands, e-mail: [EMAIL PROTECTED]
> > >To contact the list administrators, e-mail:
[EMAIL PROTECTED]
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
I see it! The login page when use the html form, the action is the
$PHP_SELF, allowing hte page to refresh itself and then the following script
elsewhere check for the variable to see if it is true or not. If true then
the script use the php header();. The header contain the data, so that
explain why it display the data in the URL. The data in the URL doesn't
include the data from the login page.
Thanks for the clarification! Now I'll give it a shot in scrambling one of
the variable data that come with the header and then unscramble it on the
next page.
Scott
""Scott Fletcher"" <[EMAIL PROTECTED]> wrote in message
9ahvj6$m67$[EMAIL PROTECTED]">news:9ahvj6$m67$[EMAIL PROTECTED]...
> Um, well, it show up on Internet Explorer and Netscape Navigator and
> Netscape. Oh well.
>
> Scott
>
> ""Scott Fletcher"" <[EMAIL PROTECTED]> wrote in message
> 9ahuft$612$[EMAIL PROTECTED]">news:9ahuft$612$[EMAIL PROTECTED]...
> > Well, mine does!!!
> >
> > Scott
> >
> > ""Joe Sheble (Wizaerd)"" <[EMAIL PROTECTED]> wrote in
> message
> > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > > This isn't quite accurate. WHen a form's method is set to "GET"
(which
> > BTW
> > > is the form's default method) the variables and their values are
passed
> > > along the URL. If your form's method is set to "POST" then nothing
> should
> > > get passed along on the URL. If you see all your data in the URL,
> you're
> > > not using a POST method or the forms action is specified as a url with
> > > parameters.
> > >
> > > At 09:06 AM 4/5/01 -0400, Scott Fletcher wrote:
> > > >For the data in the "post", when the user type in the data and press
> the
> > > >submit button, the data is then carry over to the nextpage.html. In
> the
> > URL
> > > >bar, I can clearly see the data, so is there to scramble hte data
where
> > > >anyone won't see it in the URL box at the top of the web browser?
> > > >Thanks,
> > > > Scott
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >--
> > > >PHP General Mailing List (http://www.php.net/)
> > > >To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > >For additional commands, e-mail: [EMAIL PROTECTED]
> > > >To contact the list administrators, e-mail:
> [EMAIL PROTECTED]
> > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > To contact the list administrators, e-mail:
[EMAIL PROTECTED]
> > >
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
Perhaps we could all better assist you if you posted the code for your form
("X"-ing out any sensitive material that you wouldn't want us to see)...or
maybe the URL that the form is at so we can see it for ourselves?
HTH
Sam Masiello
Systems Analyst
Chek.Com
(716) 853-1362 x289
[EMAIL PROTECTED]
-----Original Message-----
From: Scott Fletcher [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 05, 2001 10:30 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] scramble the code
Um, well, it show up on Internet Explorer and Netscape Navigator and
Netscape. Oh well.
Scott
""Scott Fletcher"" <[EMAIL PROTECTED]> wrote in message
9ahuft$612$[EMAIL PROTECTED]">news:9ahuft$612$[EMAIL PROTECTED]...
> Well, mine does!!!
>
> Scott
>
> ""Joe Sheble (Wizaerd)"" <[EMAIL PROTECTED]> wrote in
message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > This isn't quite accurate. WHen a form's method is set to "GET" (which
> BTW
> > is the form's default method) the variables and their values are passed
> > along the URL. If your form's method is set to "POST" then nothing
should
> > get passed along on the URL. If you see all your data in the URL,
you're
> > not using a POST method or the forms action is specified as a url with
> > parameters.
> >
> > At 09:06 AM 4/5/01 -0400, Scott Fletcher wrote:
> > >For the data in the "post", when the user type in the data and press
the
> > >submit button, the data is then carry over to the nextpage.html. In
the
> URL
> > >bar, I can clearly see the data, so is there to scramble hte data where
> > >anyone won't see it in the URL box at the top of the web browser?
> > >Thanks,
> > > Scott
> > >
.php.net
Save yourself the scramble, use sessions:
http://www.php.net/manual/en/ref.session.php
--
Matt Kynaston
remove the green eggs before replying
""Scott Fletcher"" <[EMAIL PROTECTED]> wrote in message
9ai09g$9d$[EMAIL PROTECTED]">news:9ai09g$9d$[EMAIL PROTECTED]...
> I see it! The login page when use the html form, the action is the
> $PHP_SELF, allowing hte page to refresh itself and then the following
script
> elsewhere check for the variable to see if it is true or not. If true
then
> the script use the php header();. The header contain the data, so that
> explain why it display the data in the URL. The data in the URL doesn't
> include the data from the login page.
>
> Thanks for the clarification! Now I'll give it a shot in scrambling one
of
> the variable data that come with the header and then unscramble it on the
> next page.
>
> Scott
>
> ""Scott Fletcher"" <[EMAIL PROTECTED]> wrote in message
> 9ahvj6$m67$[EMAIL PROTECTED]">news:9ahvj6$m67$[EMAIL PROTECTED]...
> > Um, well, it show up on Internet Explorer and Netscape Navigator and
> > Netscape. Oh well.
> >
> > Scott
> >
> > ""Scott Fletcher"" <[EMAIL PROTECTED]> wrote in message
> > 9ahuft$612$[EMAIL PROTECTED]">news:9ahuft$612$[EMAIL PROTECTED]...
> > > Well, mine does!!!
> > >
> > > Scott
> > >
> > > ""Joe Sheble (Wizaerd)"" <[EMAIL PROTECTED]> wrote in
> > message
> > > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > > > This isn't quite accurate. WHen a form's method is set to "GET"
> (which
> > > BTW
> > > > is the form's default method) the variables and their values are
> passed
> > > > along the URL. If your form's method is set to "POST" then nothing
> > should
> > > > get passed along on the URL. If you see all your data in the URL,
> > you're
> > > > not using a POST method or the forms action is specified as a url
with
> > > > parameters.
> > > >
> > > > At 09:06 AM 4/5/01 -0400, Scott Fletcher wrote:
> > > > >For the data in the "post", when the user type in the data and
press
> > the
> > > > >submit button, the data is then carry over to the nextpage.html.
In
> > the
> > > URL
> > > > >bar, I can clearly see the data, so is there to scramble hte data
> where
> > > > >anyone won't see it in the URL box at the top of the web browser?
> > > > >Thanks,
> > > > > Scott
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >--
> > > > >PHP General Mailing List (http://www.php.net/)
> > > > >To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > >For additional commands, e-mail: [EMAIL PROTECTED]
> > > > >To contact the list administrators, e-mail:
> > [EMAIL PROTECTED]
> > > >
> > > >
> > > > --
> > > > PHP General Mailing List (http://www.php.net/)
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > > To contact the list administrators, e-mail:
> [EMAIL PROTECTED]
> > > >
> > >
> > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > To contact the list administrators, e-mail:
[EMAIL PROTECTED]
> > >
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
No way, I'm not gonna use the frame. The website had already been set up a
year ago so overhauling it is not an option. For one of you who mention
about the word, session. Well, I already have session and I don't want to
add anymore session. Scrambling hte code will be fine.
Thanks,
Scott
""Scott Fletcher"" <[EMAIL PROTECTED]> wrote in message
9ahqnn$tbb$[EMAIL PROTECTED]">news:9ahqnn$tbb$[EMAIL PROTECTED]...
> For the data in the "post", when the user type in the data and press the
> submit button, the data is then carry over to the nextpage.html. In the
URL
> bar, I can clearly see the data, so is there to scramble hte data where
> anyone won't see it in the URL box at the top of the web browser?
> Thanks,
> Scott
>
> <html>
> <form name='action_login' method='post' action='nextpage.html'>
> <input type='text' name='test'>
> <input type='submit' value='login' name='action_login'>
> </form>
> </html>
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
I guess you should have had something along the lines of
<JOKE>
... ...
</JOKE>
Mike
-----Original Message-----
From: Geir Eivind Mork [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 05, 2001 4:41 AM
To: Jack Dempsey
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] PHP + IRC
On 05 Apr 2001 03:32:10 -0400, Jack Dempsey wrote:
> <vent>
> It'd be nice to have someone to do our dirtywork for us, but this list
> isn't (IMHO) about finding people who DO have the time/knowledge to
> "snoop around in the sources" for us...
Where is the sense of humor? :)
I just asked if anyone had a functionset / any documentation for that
particular feature. I ought to have included a smiley but I didn't think
anyone would be offended by my message. it was ment as a joke.
So to anyone that got offended, knock on my door and I'll give you a
cold beer to cool down the temper with :)
--
php developer / CoreTrek AS | Please take note:
Sandnes / Rogaland / Norway |
web: http://www.moijk.net/ |
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
on a unix system type:
$path = `pwd`;
--Joe
On Thu, Apr 05, 2001 at 04:28:50PM +0800, Paul Juliano wrote:
> Hi,
>
> What's the php function to find out what server a php page is located?
> For example, the php page is at www.myserver.com. The php page should be able
> to display "Welcome to www.myserver.com". If the same php page is at
> www.yourserver.com, it should be able to display "Welcome to www.yourserver.com".
>
> __________________________________
> www.edsamail.com
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
/******************************************************************************\
* Joe Stump - PHP/SQL/HTML Developer *
* http://www.care2.com - http://www.miester.org - http://gtk.php-coder.net *
* "Better to double your money on mediocrity than lose it all on a dream." *
\******************************************************************************/
"Tim Ward" <[EMAIL PROTECTED]> wrote:
> SHOW COLUMNS FROM tablename
> is the MySQL query
That works well from the MySQL commandline, but isn't as useful from within
a PHP script if Mauricio wants to control the formatting of it, limit the
fields displayed and use it within the logic of the PHP script. Depends
what he needs to do. I still think mysql_field_name() / pg_fieldname() are
the way to go, though Mauricio never mentioned which DBMS he's using.
--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/
Steve Werby wrote:
> "Tim Ward" <[EMAIL PROTECTED]> wrote:
>> SHOW COLUMNS FROM tablename
>> is the MySQL query
>
> That works well from the MySQL commandline, but isn't as useful from
> within a PHP script if Mauricio wants to control the formatting of it,
> limit the
> fields displayed and use it within the logic of the PHP script. Depends
> what he needs to do. I still think mysql_field_name() / pg_fieldname()
> are the way to go, though Mauricio never mentioned which DBMS he's using.
>
> --
> Steve Werby
> President, Befriend Internet Services LLC
> http://www.befriend.com/
>
>
>
I am using interbase6....
By now , using this query over the system tables solved my problem:
SELECT RDB$FIELD_NAME
FROM RDB$RELATION_FIELDS
WHERE RDB$RELATION_NAME = 'mytable'
I need to do this way because the table might be empty and I'll not be
able to use ibase_field_info on each column returned by one query like
select * from mytable.
I somehow got a feeling, someone is purposely, selling the php-general list
to some spam companies ;P
----- Original Message -----
From: Water <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 05, 2001 6:12 PM
Subject: [PHP] "YourName.BEST321.com" FREE §K¶O°ì¦W !!!!!
> Dear Webmaster,
> Does your homepage address look long and difficult to remember like this:
http://www.myhomepage.com/entertainment/w/love/index.html?
> Wouldn't you like it better if it was like http://YOURNAME.best321.com
> In that case, Cool168 has the solution for you, and the best thing about
it all is that it's totally free!
> JOIN IT NOW!!!!!!!
> http://best321.com/forward/script.pl?do=step1
>
>
§Ú̱À¥Xªº§K¶O°ì¦W¡A¬°±z´£¨ÑYourSiteName.BEST321.comªºÂà¦V°ì¦W¡A¨Ï±zªº¯¸ÂI§ó
®e©ö³Q¤H°O¦í¡A¦}¥i¬°±z«Ø¥ß¤@©wªºÊI¯¸«~µP¡A¹ï±zªº¯¸ÂIªºµo®i¤j¦³À°§U¡C§Ú̪º§K
¶O¤¤Âà°ì¦W¹ï±zªºÊI¯¸ªº¤º®e¤£°µ¯S§O¨î¡F§Ú̱o¨ì®ü¥~°Ó·~¶°¹Îªº¤ä«ù¡A¨Ï¥Î°ª³t
ªºªA°È¾¹¡Aéw©Ê¦n¡F§Ú̪º°ì¦Wµn°O×§ï³£«D±`¤è«K¡A¦b¤L¤ÀÄÁ¤º´N¥i±o¨ìÄݤ_±z¦Û
¤vªºÂà¦V°ì¦W¡CBEST321.com§K¶O°ì¦W¡A¦b¦PÃþªA°È¤¤µ´¹ï¬O±zªºº¿ï¡I
> JOIN NOW!
> http://best321.com/forward/script.pl?do=step1
>
> Yours,
> Water
>
>
>
> -------------------------------------------------------------------------
> To be removed from this mailing list
> click on the link below
> http://www.best321.com/mail/mail.cgi?[EMAIL PROTECTED]
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
"Jonathan Chum" <[EMAIL PROTECTED]> wrote:
> I have one table on one database and another table on another
> database. I want to perform a left join these two tables in MySQL. I
> don't think it's possible, but cuious if there is a "method" that can
> be coded in PHP to do this?
Just prepend the DB name to the table selecting from:
SELECT table_1_from_db_connected_to, other_db_name.table_2 ...
And make sure that the user for the first DB has permissions for the second
DB.
--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/
Hi,
if you want *real* encryption it will never be as fast as XOR :)
Anyway, take a look at:
http://php.websolut.net/manual/en/ref.mcrypt.php
There are some examples too.
Regards,
Nuno Silva
Floyd Piedad wrote:
> Hi,
>
> I want to store all data into mySQL database in encrypted format and
> then show it only after decrypting it. What is the fastest way of doing
> it?
>
> Floyd
Hello!
I have an problem with on of our scripts, and some caching proxy servers
the script produces output, then it does a flush(),
After this, the script does a sleep(10) and then it does a db-query without
producing html output.
normally the browsers get the page after the flush() command
but on some proxy servers, the page is forwarded to the browser
only after the proxy server has terminated the connection to the apache
webserver (after the 10 secs).
my question:
Is it possible to terminate the tcpIP connection, before the php script ends?
(I think this would solve my problem)
Any other Ideas?
Thank you, Peter Kuppelwieser
Hello,
How do I set the php-iclude path if I have not acess to php.ini?
I know in .htacess but al I try ends in an Internal Server Error
I use php4.0.4pl1
pls don't let mi die silly....
greetings from Germany
Michael
--
A train station is a station where a train stops
But what the hell is a workstation?
"Temeschinko, Michael" <[EMAIL PROTECTED]> wrote:
> How do I set the php-iclude path if I have not acess to php.ini?
>
> I know in .htacess but al I try ends in an Internal Server Error
> I use php4.0.4pl1
Please post what you tried. It might be a difference in the syntax between
PHP3 and PHP4 if you're using the old style. The new style is:
php_flag include_path ".:./lib"
Directories are separated by colons.
--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/
> > How do I set the php-iclude path if I have not acess to php.ini?
> >
> > I know in .htacess but al I try ends in an Internal Server Error
> > I use php4.0.4pl1
>
php_value include_path "/path1:/path2"
HTH
M@
> -----Original Message-----
> From: Steve Werby [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, April 05, 2001 4:57 PM
> To: Temeschinko, Michael; Php-General (E-Mail)
> Subject: Re: [PHP] inlude_path not in php.ini
>
>
> "Temeschinko, Michael" <[EMAIL PROTECTED]> wrote:
> > How do I set the php-iclude path if I have not acess to php.ini?
> >
> > I know in .htacess but al I try ends in an Internal Server Error
> > I use php4.0.4pl1
>
> Please post what you tried. It might be a difference in the
> syntax between
> PHP3 and PHP4 if you're using the old style. The new style is:
>
> php_flag include_path ".:./lib"
this line make an error too :-(
I tried
php_value include_path ".:./foo"
php_value include_path=".:./foo"
php_value include_path .:./foo
php_value include_path=.:./foo
php_flag include_path .:./foo # but flag is not right according to the
documentation
nothing :-(
It seems I must change al my includes to relative pathnames (../../php)
greetings from sunny (today :-) Germany
Michael
What is the deal with sleep(), does it break the 'max_execution_time' that is set in
php.ini?
This is good, this is what I want, but I just want to double check that this is really
happening.
I have an emial script that seems to run for about 15 minutes because I sleep() it
between each email for a few seconds. It runs way longer than 'max_execution_time' is
set for.
-
*****************************************************************
Sign up for these FREE offers and have the chance to win money and prizes!
Click Here http://winwith.chek.com/promotions.php3?partnerid=7"
*****************************************************************
Greetings!
Anyone knows when PHP 4.05 is supposed to be released?
Dominique Paquin
galea secured networks
Heard whispers that it could be next week. Testing isn't over. They're on
the 6th release candidate.
-----Original Message-----
From: Dominique Paquin [mailto:[EMAIL PROTECTED]]
Sent: 05 April 2001 19:54
To: [EMAIL PROTECTED]
Subject: [PHP] Release of PHP 4.05
Greetings!
Anyone knows when PHP 4.05 is supposed to be released?
Dominique Paquin
galea secured networks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
Thanks for the quick reply, I'm eager to have access to the new DOMXML
functions. Probably make my life a whole lot easier. :))
Dominique
""Neil Kimber"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Heard whispers that it could be next week. Testing isn't over. They're on
> the 6th release candidate.
>
> -----Original Message-----
> From: Dominique Paquin [mailto:[EMAIL PROTECTED]]
> Sent: 05 April 2001 19:54
> To: [EMAIL PROTECTED]
> Subject: [PHP] Release of PHP 4.05
>
>
> Greetings!
>
> Anyone knows when PHP 4.05 is supposed to be released?
>
> Dominique Paquin
> galea secured networks
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
On Thursday 05 April 2001 21:54, Dominique Paquin wrote:
> Greetings!
>
> Anyone knows when PHP 4.05 is supposed to be released?
Next week!
The current CVS is at this moment versioned 4.0.6-dev, so I think that all
that is left is compiling and packaging.
Saludos... ;-)
--
El mejor sistema operativo es aquel que te da de comer.
Cuida tu dieta.
-----------------------------------------------------------------
Martin Marques | [EMAIL PROTECTED]
Programador, Administrador | Centro de Telematica
Universidad Nacional
del Litoral
-----------------------------------------------------------------
: [EMAIL PROTECTED] says...
: }I'm trying to parse the different "parts" of an email address both for
: }validation and munging.
: }
: }I have the following regex:
: }([a-z0-9_\.\-]+)@([a-z0-9\.-]+).([a-z]{3})
: }
: }This works great, except it doesn't accept the country code domains (.au,
: }etc). So I changed the number of characters to {2,3} at the end of the
: }regex:
: }([a-z0-9_\.\-]+)@([a-z0-9\.-]+).([a-z]{2,3})
: }
: Here's a quick patch.. =)
: ([a-z0-9_\.\-]+)@([a-z0-9\.-]+).([a-z]{2}[a-z]?)
Sorry, but that doesn't work. I thought it would, but it only does two
characters on the top level domain again. Tested at
http://www.php.comzept.de/rexpr (thanks Jörg!)
Does anyone else (a regex guru) have any other suggestions?
Thanks,
-Dan
> Sorry, but that doesn't work. I thought it would, but it only does two
> characters on the top level domain again. Tested at
> http://www.php.comzept.de/rexpr (thanks Jörg!)
>
> Does anyone else (a regex guru) have any other suggestions?
The most recent regex you had:
([a-z0-9_\.\-]+)@([a-z0-9\.-]+).([a-z]{2,3})
would still allow addresses such as [EMAIL PROTECTED] or _.-._.@.-.com.
(Actually, with the . there, you could even have _.-._.@.-|com)
Regardless, here's a regex I've adjusted to try and keep the address as
close to good form as possible:
"^[0-9a-z]+([-_./]([0-9a-z]+))*@[0-9a-z]+([-.]([0-9a-z]+))*\\.[a-z]{2,4}$"
A little longer, but it does the trick (I've tried hitting it with a bunch
of possibilities, but I may have missed some. <G>) We have some lists that
contain (valid) email addresses like [EMAIL PROTECTED], so I've allowed a /
as a separator to the left of the @. (If you don't want to allow this, just
replace [-_./] with [-_.] and it'll be gone.
At the end of the regex, I allow 2-3 characters but this may need to be 2-5
shortly since the new TLDs may start coming into use. Up to you.
Make sure you use eregi instead of just ereg, or lowercase the email address
before you check it.
We also go a step further and use checkdnsrr to see if there are any (type
ANY that is) records available for the hostname part. Not great, but it at
least tries to see if the hostname exists.
Let me know if it works out for you.
Jaime Bozza
GeoComm International Corp.
On Thu, Apr 05, 2001 at 10:08:13AM -0600, Dan Wilson wrote:
> : Here's a quick patch.. =)
> : ([a-z0-9_\.\-]+)@([a-z0-9\.-]+).([a-z]{2}[a-z]?)
> Does anyone else (a regex guru) have any other suggestions?
I'm by no means an reg-exp-expert (hate these things)
/[a-z0-9_.-]+@+[a-z0-9._-]+\.[a-z]{2,4}/i
should do.
-fkr
--
gpg-fingerprint: 076E 1E87 3E05 1C7F B1A0 8A48 0D31 9BD3 D9AC 74D0
|http://www.hazardous.org/ | whois -h whois.ripe.de FKR-RIPE |
|all your base are belong to us | shame on me | fkr@IRCnet |
PGP signature
Or
([a-zA-Z0-9_\.\-]+)@([a-zA-Z0-9-]+).([a-zA-Z\.]+.?[a-zA-Z])
>> Sorry, but that doesn't work. I thought it would, but it only does two
>> characters on the top level domain again. Tested at
>> http://www.php.comzept.de/rexpr (thanks Jörg!)
>>
>> Does anyone else (a regex guru) have any other suggestions?
>The most recent regex you had:
> ([a-z0-9_\.\-]+)@([a-z0-9\.-]+).([a-z]{2,3})
>would still allow addresses such as [EMAIL PROTECTED] or _.-._.@.-.com.
>(Actually, with the . there, you could even have _.-._.@.-|com)
>Regardless, here's a regex I've adjusted to try and keep the address as
>close to good form as possible:
> "^[0-9a-z]+([-_./]([0-9a-z]+))*@[0-9a-z]+([-.]([0-9a-z]+))*\\.[a-z]{2,4}$"
>A little longer, but it does the trick (I've tried hitting it with a bunch
>of possibilities, but I may have missed some. <G>) We have some lists that
>contain (valid) email addresses like [EMAIL PROTECTED], so I've allowed a /
>as a separator to the left of the @. (If you don't want to allow this, just
>replace [-_./] with [-_.] and it'll be gone.
>At the end of the regex, I allow 2-3 characters but this may need to be 2-5
>shortly since the new TLDs may start coming into use. Up to you.
>Make sure you use eregi instead of just ereg, or lowercase the email address
>before you check it.
>We also go a step further and use checkdnsrr to see if there are any (type
>ANY that is) records available for the hostname part. Not great, but it at
>least tries to see if the hostname exists.
>Let me know if it works out for you.
>Jaime Bozza
>GeoComm International Corp.
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]
: > : Here's a quick patch.. =3D)
: > : ([a-z0-9_\.\-]+)@([a-z0-9\.-]+).([a-z]{2}[a-z]?)
: > Does anyone else (a regex guru) have any other suggestions?
: I'm by no means an reg-exp-expert (hate these things)
: /[a-z0-9_.-]+@+[a-z0-9._-]+\.[a-z]{2,4}/i
: should do.
: -fkr
And the winner is.....
([a-z0-9_.-]+)@([a-z0-9._-]+)\.([a-z]{2,4})
Thanks Felix! It was all in the escaping of the dot that is outside of the
parens!
-Dan
Hi!
For some new Project of my company I have to create ecards with
text(PostScript) printed into the image. I compiled gd-lib-2.0.1,
T1lib-1.1.1, recompiled php-4.0.4pl1. I was very much pleased with
the results until I used the PHP-Function ImagePSText, since I could
not figure out how I have to define the colors! If I use colors I
allocated with ImageColorAllocate it does not work - I get a
segmentation fault in my error_log! If I use some Integer, I get
different colors whenever I reload the Image!
Any suggestions what I can do about it??
BTW: Running on Linux Kernel 2.2.16; Apache 1.3.17; PHP 4.0.4 pl1
Best regards,
Sebastian
i'm concerned about the speed at which httpd (with php4.0.1pl1 compiles in
as a static mod) can "chew" through a 350 element 2d array. Can anyone
offer any information?
~kurth
I wouldn't worry about that. Although it all depends by what do you mean
by "speed":-)
Anyway, you can always test your page with "ab" (part of the Apache
installation, at least on Linux)
-Stathis.
Kurth Bemis wrote:
>
> i'm concerned about the speed at which httpd (with php4.0.1pl1 compiles in
> as a static mod) can "chew" through a 350 element 2d array. Can anyone
> offer any information?
>
> ~kurth
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
You can do some test with microtime() and see how long it takes. 350 elements
isn't really a large array. I've seen PHP chew through arrays of 250k plus in
only a second or so. It will take longer for 350 elements to be shoved out to
the output buffer than it would to actually loop through it.
--Joe
On Thu, Apr 05, 2001 at 10:41:10PM +0300, Rouvas Stathis wrote:
> I wouldn't worry about that. Although it all depends by what do you mean
> by "speed":-)
> Anyway, you can always test your page with "ab" (part of the Apache
> installation, at least on Linux)
> -Stathis.
>
> Kurth Bemis wrote:
> >
> > i'm concerned about the speed at which httpd (with php4.0.1pl1 compiles in
> > as a static mod) can "chew" through a 350 element 2d array. Can anyone
> > offer any information?
> >
> > ~kurth
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
/******************************************************************************\
* Joe Stump - PHP/SQL/HTML Developer *
* http://www.care2.com - http://www.miester.org - http://gtk.php-coder.net *
* "Better to double your money on mediocrity than lose it all on a dream." *
\******************************************************************************/
let me be more clear about the microtime() - do something like:
<?
$start = microtime();
while(list($key,$val) = each($array))
{
// do something
}
$end = microtime();
echo "It took ".($end - $start)." microseconds do loop through the array.\n";
?>
--Joe
On Thu, Apr 05, 2001 at 02:43:40PM -0500, Joe Stump wrote:
> You can do some test with microtime() and see how long it takes. 350 elements
> isn't really a large array. I've seen PHP chew through arrays of 250k plus in
> only a second or so. It will take longer for 350 elements to be shoved out to
> the output buffer than it would to actually loop through it.
>
> --Joe
>
> On Thu, Apr 05, 2001 at 10:41:10PM +0300, Rouvas Stathis wrote:
> > I wouldn't worry about that. Although it all depends by what do you mean
> > by "speed":-)
> > Anyway, you can always test your page with "ab" (part of the Apache
> > installation, at least on Linux)
> > -Stathis.
> >
> > Kurth Bemis wrote:
> > >
> > > i'm concerned about the speed at which httpd (with php4.0.1pl1 compiles in
> > > as a static mod) can "chew" through a 350 element 2d array. Can anyone
> > > offer any information?
> > >
> > > ~kurth
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
> /******************************************************************************\
> * Joe Stump - PHP/SQL/HTML Developer *
> * http://www.care2.com - http://www.miester.org - http://gtk.php-coder.net *
> * "Better to double your money on mediocrity than lose it all on a dream." *
> \******************************************************************************/
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
/******************************************************************************\
* Joe Stump - PHP/SQL/HTML Developer *
* http://www.care2.com - http://www.miester.org - http://gtk.php-coder.net *
* "Better to double your money on mediocrity than lose it all on a dream." *
\******************************************************************************/
If you don't want to rewrite any of your existing code, consider the
behavior of frames.
If you make a frameset with a 0 height for the top frame, and then use the
bottom frame for everything, then the URL in the location/address bar in the
browser will not ever change.
This only requires that you create a frameset as your default page, and
rename your old default page. (don't forget to create a blank page for that
invisible top frame, or you will get a no data present or file not found
error, and your user won't know why)
While this won't prevent people from seeing the code if they open the lower
frame in a new window, but they probably won't think of it.
This is a fast solution, not necessarily ideal, but, you can do some
weird/interesting things by periodically hiding data in that hidden frame.
On 4/5/01 8:36 AM, "maatt" <[EMAIL PROTECTED]> wrote:
> Save yourself the scramble, use sessions:
> http://www.php.net/manual/en/ref.session.php
>
> --
> Matt Kynaston
> remove the green eggs before replying
>
> ""Scott Fletcher"" <[EMAIL PROTECTED]> wrote in message
> 9ai09g$9d$[EMAIL PROTECTED]">news:9ai09g$9d$[EMAIL PROTECTED]...
>> I see it! The login page when use the html form, the action is the
>> $PHP_SELF, allowing hte page to refresh itself and then the following
> script
>> elsewhere check for the variable to see if it is true or not. If true
> then
>> the script use the php header();. The header contain the data, so that
>> explain why it display the data in the URL. The data in the URL doesn't
>> include the data from the login page.
>>
>> Thanks for the clarification! Now I'll give it a shot in scrambling one
> of
>> the variable data that come with the header and then unscramble it on the
>> next page.
>>
>> Scott
>>
>> ""Scott Fletcher"" <[EMAIL PROTECTED]> wrote in message
>> 9ahvj6$m67$[EMAIL PROTECTED]">news:9ahvj6$m67$[EMAIL PROTECTED]...
>>> Um, well, it show up on Internet Explorer and Netscape Navigator and
>>> Netscape. Oh well.
>>>
>>> Scott
>>>
>>> ""Scott Fletcher"" <[EMAIL PROTECTED]> wrote in message
>>> 9ahuft$612$[EMAIL PROTECTED]">news:9ahuft$612$[EMAIL PROTECTED]...
>>>> Well, mine does!!!
>>>>
>>>> Scott
>>>>
>>>> ""Joe Sheble (Wizaerd)"" <[EMAIL PROTECTED]> wrote in
>>> message
>>>> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>>>>> This isn't quite accurate. WHen a form's method is set to "GET"
>> (which
>>>> BTW
>>>>> is the form's default method) the variables and their values are
>> passed
>>>>> along the URL. If your form's method is set to "POST" then nothing
>>> should
>>>>> get passed along on the URL. If you see all your data in the URL,
>>> you're
>>>>> not using a POST method or the forms action is specified as a url
> with
>>>>> parameters.
>>>>>
>>>>> At 09:06 AM 4/5/01 -0400, Scott Fletcher wrote:
>>>>>> For the data in the "post", when the user type in the data and
> press
>>> the
>>>>>> submit button, the data is then carry over to the nextpage.html.
> In
>>> the
>>>> URL
>>>>>> bar, I can clearly see the data, so is there to scramble hte data
>> where
>>>>>> anyone won't see it in the URL box at the top of the web browser?
>>>>>> Thanks,
>>>>>> Scott
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> PHP General Mailing List (http://www.php.net/)
>>>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>>>> To contact the list administrators, e-mail:
>>> [EMAIL PROTECTED]
>>>>>
>>>>>
>>>>> --
>>>>> PHP General Mailing List (http://www.php.net/)
>>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>>> To contact the list administrators, e-mail:
>> [EMAIL PROTECTED]
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> PHP General Mailing List (http://www.php.net/)
>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>> To contact the list administrators, e-mail:
> [EMAIL PROTECTED]
>>>>
>>>
>>>
>>>
>>> --
>>> PHP General Mailing List (http://www.php.net/)
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>>>
>>
>>
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>>
>
>
On Thu, 05 Apr 2001 10:11:20 -0700, Lindsay Adams
([EMAIL PROTECTED]) wrote:
>If you don't want to rewrite any of your existing code, consider the
>behavior of frames.
>If you make a frameset with a 0 height for the top frame, and then
>use the
>bottom frame for everything, then the URL in the location/address
>bar in the
>browser will not ever change.
>
>This only requires that you create a frameset as your default page,
>and
>rename your old default page. (don't forget to create a blank page
>for that
>invisible top frame, or you will get a no data present or file not
>found
>error, and your user won't know why)
>
>While this won't prevent people from seeing the code if they open
>the lower
>frame in a new window, but they probably won't think of it.
ha, well it depends on the browser but in IE (the most widely used)
when you click 'view source' from the right click menu you will see
the source for the frame you're on. when you click it from the
toolbar you see the source for the frameset. Mine (I'm a special case
I know) even has this feature where you can highlight just the form
part of a page and hit 'view partial source' and see just the form
html -> hidden fields and all.
By the way, I use the hidden frame solution, when I want to pass a bunch of
info in an <A> tag, without building a bunch of different forms on the page.
This was the easiest way for me to do it, in PHP3. PHP3 was all that I could
get installed on a Qube2 at the time of install.
I am working on getting 4.04pl1 on my Qube2, but, the hidden frame trick is
still quite handy ;)
"Lindsay Adams" <[EMAIL PROTECTED]> wrote:
> This was the easiest way for me to do it, in PHP3. PHP3 was all that I
could
> get installed on a Qube2 at the time of install.
>
> I am working on getting 4.04pl1 on my Qube2, but, the hidden frame trick
is
> still quite handy ;)
I have 4.03 installed on a RaQ2 and AFAIK it will install on a Qube2 since
they share the same software. I've yet to install 4.04 on a RaQ2 though.
--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/
This is off topic, but I have a RAQ 2 for sale. If any of you are
interested, please e-mail me off this list.
Thanks :-)
Clayton Dukes
CCNA, CCDA, CCDP, CCNP
---------------------------------------------------------------------
Download Free Essays, Term Papers and Cisco Training from http://www.gdd.net
----- Original Message -----
From: "Steve Werby" <[EMAIL PROTECTED]>
To: "Lindsay Adams" <[EMAIL PROTECTED]>; "PHP" <[EMAIL PROTECTED]>
Sent: Thursday, April 05, 2001 1:21 PM
Subject: Re: [PHP] scramble the code -sneaky solution (redux)
> "Lindsay Adams" <[EMAIL PROTECTED]> wrote:
> > This was the easiest way for me to do it, in PHP3. PHP3 was all that I
> could
> > get installed on a Qube2 at the time of install.
> >
> > I am working on getting 4.04pl1 on my Qube2, but, the hidden frame trick
> is
> > still quite handy ;)
>
> I have 4.03 installed on a RaQ2 and AFAIK it will install on a Qube2 since
> they share the same software. I've yet to install 4.04 on a RaQ2 though.
>
> --
> Steve Werby
> President, Befriend Internet Services LLC
> http://www.befriend.com/
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
Is there a function that encrypts a string the same way the shadow file
does???
What I wanna make is a page that changes my unix account password ....
Thanx
_______________________________
Diogo Saad
[EMAIL PROTECTED]
Inter Business Tecnologia e Serviços.
Yeah, crypt()
Don't forget the salt.
I did the same thing.
Moved all my users into a database table with unix encrypted passwords, and
run a function that dumps them all out to my /etc/passwd file.
It appends the database data onto a passwd.base file that I made, that
includes all the protected system accounts.
Of course, I only run this from a secure server, only one user with a very
long and obscure userid and password can access that database in any way, no
one else can telnet in, and the database can not be accessed of the net, and
I used every other form of page authorization I could manage to put in,
prior to getting to the page that does all this.
Including Alias/ScriptAlias directives to move the files out of the
DocumentRoot.
And again, don't forget to generate a random salt argument.
On 4/5/01 10:36 AM, "Diogo Saad" <[EMAIL PROTECTED]> wrote:
> Is there a function that encrypts a string the same way the shadow file
> does???
> What I wanna make is a page that changes my unix account password ....
>
> Thanx
>
>
> _______________________________
> Diogo Saad
> [EMAIL PROTECTED]
> Inter Business Tecnologia e Serviços.
>
>
Hello,
Is there a way to make my script jump to a certain line in my code if a
certain variable is true. like use an if then statement to check for a
certain value, then if it is true jump back to line 34 (Any line really).
Thanks Brandon
"Brandon Orther" <[EMAIL PROTECTED]> wrote:
> Is there a way to make my script jump to a certain line in my code if a
> certain variable is true. like use an if then statement to check for a
> certain value, then if it is true jump back to line 34 (Any line really).
Ahh, the good old days of GOTOs in BASIC. ;-) There isn't a method for
referring to a line number within PHP. Enclose your code in functions and
do this:
if () { true_function_here(); }
else { false_fucntion_here(); }
If you haven't worked with functions, consult the online manual.
--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/
Yeah,
Memories... of Basic... Ok thanxs for the info :)
brandon
-----Original Message-----
From: Steve Werby [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 05, 2001 10:51 AM
To: Brandon Orther; PHP User Group
Subject: Re: [PHP] IF this then, move to this line...
"Brandon Orther" <[EMAIL PROTECTED]> wrote:
> Is there a way to make my script jump to a certain line in my code if a
> certain variable is true. like use an if then statement to check for a
> certain value, then if it is true jump back to line 34 (Any line really).
Ahh, the good old days of GOTOs in BASIC. ;-) There isn't a method for
referring to a line number within PHP. Enclose your code in functions and
do this:
if () { true_function_here(); }
else { false_fucntion_here(); }
If you haven't worked with functions, consult the online manual.
--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Brandon Orther) wrote:
> Is there a way to make my script jump to a certain line in my code if a
> certain variable is true. like use an if then statement to check for a
> certain value, then if it is true jump back to line 34 (Any line really).
You can't specify by line number, but you might want to see the docs on
"break" <http://php.net/manual/en/control-structures.break.php> and
"continue" <http://php.net/manual/en/control-structures.continue.php>.
Both allow you to specify how many levels to go back.
--
CC
Hey, guys,
Apologies if I should have sent this to the dev list instead.
It seems to me that ftp_get() is a potential security hole, or maybe we've
just got it misconfigured on our system. When a script calls ftp_get() and
transfers a file, the new file on the local system (e.g. the box running php)
is owned by the webserver. Now this would make sense if the client to the
php script were doing an HTTP upload, but shouldn't an FTP transfer be
created as the user of the script?
We're running PHP 4.0.4pl1 in "safe mode" under Apache 1.3.9. Apache is
running as www/www and the script is run as John Q. User.
If this can be used to create arbitrary files as the webserver, it seems like
any legitimate user can create malicious scripts, ftp_get() them so that they
are owned by the webserver user, then run them just by surfing to the new
file. Even with safe mode and "php_admin_value docroot" set, it seems like
there'd be a variety of "attacks" a user could do, if s/he were so inclined.
I'm not a hacker (so looking at php's source wouldn't help me), but I'm a
concerned sysadmin who's suddenly very scared of the --with-ftp configure
directive.
-Chris
> It seems to me that ftp_get() is a potential security hole, or maybe we've
> just got it misconfigured on our system. When a script calls ftp_get() and
> transfers a file, the new file on the local system (e.g. the box running php)
> is owned by the webserver. Now this would make sense if the client to the
> php script were doing an HTTP upload, but shouldn't an FTP transfer be
> created as the user of the script?
How do you propose that the web server user create a file as some other
user? Can't be done.
> We're running PHP 4.0.4pl1 in "safe mode" under Apache 1.3.9. Apache is
> running as www/www and the script is run as John Q. User.
>
> If this can be used to create arbitrary files as the webserver, it seems like
> any legitimate user can create malicious scripts, ftp_get() them so that they
> are owned by the webserver user, then run them just by surfing to the new
> file. Even with safe mode and "php_admin_value docroot" set, it seems like
> there'd be a variety of "attacks" a user could do, if s/he were so inclined.
>
> I'm not a hacker (so looking at php's source wouldn't help me), but I'm a
> concerned sysadmin who's suddenly very scared of the --with-ftp configure
> directive.
There may be a check missing in the ftp extension (haven't checked). It
should only be able to write new files in directories owned by John Q.
User in safe mode.
-Rasmus
hello,
if the script is running as user X (without root privileges) then there
is no way that the OS let user X chown file to user Y.
recheck the userid the script is running as ;)
if the script is running from the web server then it's userid will be
www/www as you say.
regards,
nuno silva
Chris Ralston wrote:
> Hey, guys,
>
> Apologies if I should have sent this to the dev list instead.
>
> It seems to me that ftp_get() is a potential security hole, or maybe we've
> just got it misconfigured on our system. When a script calls ftp_get() and
> transfers a file, the new file on the local system (e.g. the box running php)
> is owned by the webserver. Now this would make sense if the client to the
> php script were doing an HTTP upload, but shouldn't an FTP transfer be
> created as the user of the script?
>
> We're running PHP 4.0.4pl1 in "safe mode" under Apache 1.3.9. Apache is
> running as www/www and the script is run as John Q. User.
>
> If this can be used to create arbitrary files as the webserver, it seems like
> any legitimate user can create malicious scripts, ftp_get() them so that they
> are owned by the webserver user, then run them just by surfing to the new
> file. Even with safe mode and "php_admin_value docroot" set, it seems like
> there'd be a variety of "attacks" a user could do, if s/he were so inclined.
>
> I'm not a hacker (so looking at php's source wouldn't help me), but I'm a
> concerned sysadmin who's suddenly very scared of the --with-ftp configure
> directive.
>
> -Chris
Can anyone tell me how to get the user apache is running as from php?
Chris Mason
Box 340, The Valley, Anguilla, British West Indies
Tel: 264 497 5670 Fax: 264 497 8463
USA Fax (561) 382-7771
Take a virtual tour of the island
http://net.ai/ The Anguilla Guide
Find out more about NetConcepts
www.netconcepts.ai
Talk to me in real time with Instant Messenger: [EMAIL PROTECTED]
Signature
F331 8AD1 36FB B3B0 DF9F D95B 8024 D1EA 7450 D50C
> Can anyone tell me how to get the user apache is running as from php?
>
If you're on Linux/Unix, try:
echo `whoami`;
Hope this helps,
Joe
Put the call to "whoami" in a call to exec() from inside a PHP script.
<?
echo exec("whoami");
?>
Kirk
> -----Original Message-----
> From: Joe Conway [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, April 05, 2001 12:26 PM
> To: Chris Mason; PHP User Group
> Subject: Re: [PHP] Apache user
>
>
> > Can anyone tell me how to get the user apache is running as
> from php?
> >
> If you're on Linux/Unix, try:
>
> echo `whoami`;
>
> Hope this helps,
>
> Joe
Actually no need for that if you use backticks. See
http://www.php.net/manual/en/html/language.operators.execution.html#language
.operators.execution
Joe
----- Original Message -----
From: "Johnson, Kirk" <[EMAIL PROTECTED]>
To: "PHP User Group" <[EMAIL PROTECTED]>
Sent: Thursday, April 05, 2001 11:32 AM
Subject: RE: [PHP] Apache user
> Put the call to "whoami" in a call to exec() from inside a PHP script.
>
> <?
> echo exec("whoami");
> ?>
>
> Kirk
>
> > -----Original Message-----
> > From: Joe Conway [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, April 05, 2001 12:26 PM
> > To: Chris Mason; PHP User Group
> > Subject: Re: [PHP] Apache user
> >
> >
> > > Can anyone tell me how to get the user apache is running as
> > from php?
> > >
> > If you're on Linux/Unix, try:
> >
> > echo `whoami`;
> >
> > Hope this helps,
> >
> > Joe
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
I have a DB project going and every time I query the DB for data
from a particular table, I want to include a set of variables (that get
set based on the query result). I was thinking of doing something like
this:
$sql = "..."
$result = ....;
include 'variables.php?table=$table';
However, every time I try that, it tells me it can't find
'variables.php'. However, if I rename the file to 'variables.inc', it
does find it (though it doesn't pass any arguments to it then).
The first method tells me it's not in the include path. Okay,
easily fixable in php.ini, however, I don't want this extra path info to
apply to the whole server (which is running several vhosts). How can I
adjust the include path just for this particular vhost?
Or, is there a better way to do what I'm trying to accomplish? Make
it a function perhaps? A call that would look kinda like this perhaps:
variables($table) ? But then, how do I get to the actual variables?
AMK4
--
W |
| I haven't lost my mind; it's backed up on tape somewhere.
|____________________________________________________________________
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Ashley M. Kirchner <mailto:[EMAIL PROTECTED]> . 303.442.6410 x130
SysAdmin / Websmith . 800.441.3873 x130
Photo Craft Laboratories, Inc. . eFax 248.671.0909
http://www.pcraft.com . 3550 Arapahoe Ave #6
.................. . . . . Boulder, CO 80303, USA
On 4/5/01 10:56 AM, "Ashley M. Kirchner" <[EMAIL PROTECTED]> wrote:
>
> I have a DB project going and every time I query the DB for data
> from a particular table, I want to include a set of variables (that get
> set based on the query result). I was thinking of doing something like
> this:
>
> $sql = "..."
> $result = ....;
> include 'variables.php?table=$table';
>
> However, every time I try that, it tells me it can't find
> 'variables.php'. However, if I rename the file to 'variables.inc', it
> does find it (though it doesn't pass any arguments to it then).
>
> The first method tells me it's not in the include path. Okay,
> easily fixable in php.ini, however, I don't want this extra path info to
> apply to the whole server (which is running several vhosts). How can I
> adjust the include path just for this particular vhost?
>
> Or, is there a better way to do what I'm trying to accomplish? Make
> it a function perhaps? A call that would look kinda like this perhaps:
> variables($table) ? But then, how do I get to the actual variables?
>
> AMK4
>
Ashley,
You don't really need to pass the values in your include.
All that include does is insert the file inine, as if it was written there.
So, leaving out the table=$table will still result in $table being defined
by the code prior to the include.
Ie.
$table="value or array or whatever"
Include("file that references $table.php");
// $table is still in the global namespace, and the include file can
reference it as normal.
The only way you would need to pass values to the php file, like you did, is
if you were retrieving data from it through
fopen("http://domain.com/variables.php?table=$table",'r');
Include does not pre parse your file.
Hope that helps.
In addition to Lindsay's comments:
Any time PHP can't include() a file, but it can include() it if you change
the filename, check the permissions on the original file. They may be set
too restrictive for PHP to read it.
Kirk
> -----Original Message-----
> From: Ashley M. Kirchner [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, April 05, 2001 11:57 AM
> To: PHP-General List
> Subject: [PHP] Include / Require
>
> However, every time I try that, it tells me it can't find
> 'variables.php'. However, if I rename the file to 'variables.inc', it
> does find it (though it doesn't pass any arguments to it then).
Lindsay Adams wrote:
> So, leaving out the table=$table will still result in $table being defined
> by the code prior to the include.
Actually, the the I'm trying to include has several segments in it, which
depend on which table was just queries. It basically looks like this:
if (table_1) {
return this set of variables
} elseif (table_2) {
return this other set
} elseif (table_3) {
return these ones
} else {
echo "you bonehead, you didn't include a table!";
}
You're saying, if I just include 'variables.inc', it will know what $table
is (from the main script) and would run through that routine fine? Actually, it
makes sense, all it does is include it as if I wrote it in the main script.
Okay, so how can I make it so I only get the variables returned, as opposed to
it including the whole bit in the main script? (kinda like the way a function()
with a return $var in it would work.)
AMK4
--
W |
| I haven't lost my mind; it's backed up on tape somewhere.
|____________________________________________________________________
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Ashley M. Kirchner <mailto:[EMAIL PROTECTED]> . 303.442.6410 x130
SysAdmin / Websmith . 800.441.3873 x130
Photo Craft Laboratories, Inc. . eFax 248.671.0909
http://www.pcraft.com . 3550 Arapahoe Ave #6
.................. . . . . Boulder, CO 80303, USA
is the file localhost? because the file being localhost or remote makes a huge
difference. lets assume its localhost
incdex.php
<?php
$table = 'test';
include_once("$DOCUMENT_ROOT/include/variables.php");
?>
now, variables.php will NOT return variables, thats not what is for. it just includes
the code, thats it.
variables.php
<?php
if ($table == 'test')
echo "do something...";
else
echo "do something else...";
?>
there you. include does NOT return variables. imagine it like this, imagine you opened
variables.php in your editor, and cut and paste all that code right exactly where
include_once(...) was, thats what php is doing.
now
include_once("http://somedomain.com/variables.php");
is very very different, this will send and HTTP request for the page, local variables
will not be seen by variables.php any variables set in variables.php will not be
returened either.
include_once("http://somedomain.com/variables.php?table=test");
this will send the variable table to variables.php but variables.php will still not be
able to return anything. using include_once(..) this way has limited usfullness. not
saying its not usfull, just saying its limited.
--
Chris Lee
[EMAIL PROTECTED]
""Ashley M. Kirchner"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Lindsay Adams wrote:
> So, leaving out the table=$table will still result in $table being defined
> by the code prior to the include.
Actually, the the I'm trying to include has several segments in it, which
depend on which table was just queries. It basically looks like this:
if (table_1) {
return this set of variables
} elseif (table_2) {
return this other set
} elseif (table_3) {
return these ones
} else {
echo "you bonehead, you didn't include a table!";
}
You're saying, if I just include 'variables.inc', it will know what $table
is (from the main script) and would run through that routine fine? Actually, it
makes sense, all it does is include it as if I wrote it in the main script.
Okay, so how can I make it so I only get the variables returned, as opposed to
it including the whole bit in the main script? (kinda like the way a function()
with a return $var in it would work.)
AMK4
--
W |
| I haven't lost my mind; it's backed up on tape somewhere.
|____________________________________________________________________
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Ashley M. Kirchner <mailto:[EMAIL PROTECTED]> . 303.442.6410 x130
SysAdmin / Websmith . 800.441.3873 x130
Photo Craft Laboratories, Inc. . eFax 248.671.0909
http://www.pcraft.com . 3550 Arapahoe Ave #6
.................. . . . . Boulder, CO 80303, USA
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
Hi all,
i'm would to know if there is a doc that give all php.ini possiblities
with all variables that can be set or something like that
Thanks by advance
Manu
O.k. I understand that, now why would HTTP_POST_VARS be set if no data is
posted? Is this desired operation?
Mike
-----Original Message-----
From: Jeff Carnahan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 04, 2001 2:18 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] BUG - Someone else please verify B4 I file
In article <81A3043681E6824EBE672F7421C30E7E2A19A7
@SRVTORONTO.RAND.COM>, [EMAIL PROTECTED] says...
}if (isset ($HTTP_POST_VARS)){
} echo "Http Post Vars Set";
Remember, just because a variable is "set", it doesn't imply that the
variable has any data stored in it. In this case, while the
HTTP_POST_VARS array may be set, it does not contain any elements.
(It's size is zero.)
Hence, it's not included in phpinfo().
--
Jeff Carnahan - [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
Hello,
While connected to ftp can I send a command to the ftp?
thanks
Brandon
I'm in process of creating a online whitepages directory for
a small town phone company and I am having a little difficulty
in refining my selection. My search form has two fields; last
and first name. I would like to be able to have more of a wild
card approach and some refinement when a user enters both a
first and last name. I am unsure how to go about this, should
I restructure my query, or make changes to my PHP. here is the
query I am currently using. and the site is located at
http://whitepages.maadtelco.com/ any assistance/direction is certainly
appreciated.
<snip>
$query = "select * from whitepages WHERE last_name LIKE '$last_name' ORDER
BY last_name" or die("Nothing to see here");
</snip>
Jerry Lake - [EMAIL PROTECTED]
Web Designer
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com
Would opening a direct connection to sendmail be a bad thing to do in terms of speed
and server time?
Right now I loop through an array of email addresses, and just send them each out with
mail() would something like this be better or worse in terms of the amount of time and
resources it uses on the server?
<?
function send_mail($to, $from, $subject, $body) {
$path_to_sendmail = "/usr/sbin/sendmail";
$fp = popen("$path_to_sendmail -t", "w");
$num = fputs($fp, "To: $to\n");
$num += fputs($fp, "From: $from\n");
$num += fputs($fp, "Subject: $subject\n\n");
$num += fputs($fp, "$body");
pclose($fp); if ($num>0) { return 1; } else { return 0; } }
?>
*****************************************************************
Sign up for these FREE offers and have the chance to win money and prizes!
Click Here http://winwith.chek.com/promotions.php3?partnerid=7"
*****************************************************************
For anyone interested. I found that the Zend Optimizer is the culprit,
disabling removes the output.
I'm currently working on removing the optimizer for my CGI version but
keeping it for my Apache install. I didn't want to maintain two .ini files
but I guess I have to.
On 4/4/2001 4:56 PM this was written:
> Please forgive if this was posted before.
>
> I don't know what the line really is called but recently when I upgraded to
> PHP 4.... Um.. The latest and I used the exact same compile parameters as I
> did before. But now the first line of every script is displayed (the
> execution line)
>
> I.e. The file looks like this:
>
> #!/usr/local/php4/bin/php -q
> <?
>
> Code.....
> ?>
>
> And the first line is displayed to the screen when the script is ran. Why is
> that and does anyone know how to stop that?
--
Thomas Deliduka
IT Manager
-------------------------
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/
do any of you know of any nice web-interfaces to CVS
done in PHP?
since i write code at home and at work, i wanted to maintain
a single repository for files/code that i frequently use...
thanks for any suggestions.
On Friday 06 April 2001 00:17, ..s.c.o.t.t.. [gts] wrote:
> do any of you know of any nice web-interfaces to CVS
> done in PHP?
>
> since i write code at home and at work, i wanted to maintain
> a single repository for files/code that i frequently use...
http://www.horde.org/chora/
--
El mejor sistema operativo es aquel que te da de comer.
Cuida tu dieta.
-----------------------------------------------------------------
Martin Marques | [EMAIL PROTECTED]
Programador, Administrador | Centro de Telematica
Universidad Nacional
del Litoral
-----------------------------------------------------------------