Re: [PHP] Calling PHP functions from within javascript

2003-11-13 Thread - Edwin -
On Thu, 13 Nov 2003 01:46:20 -0500
Jake McHenry [EMAIL PROTECTED] wrote:

...[snip]...

 Someone correct me if I'm wrong, but this isn't possible
 unless you have your javascript continuously refreshing the
 page, and changing the url, or posting data. PHP is server
 side, so the only way for php script to be executed is when
 the page loads. It might be more productive if you create
 the functions you want executed in javascript instead of
 php.

Yes, yes, yes and yes, you're correct. :)

- E -
__
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!
http://bb.yahoo.co.jp/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Calling PHP functions from within javascript

2003-11-13 Thread Nitin
First thing is, it's possible, i've done it in the past myself, it's just
not working due to some reason. Second, functioning cann't be achieved with
javascript, cauz it's DB related.

anyway thanx for ur reply
Nitin

- Original Message - 
From: Jake McHenry [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, November 13, 2003 12:16 PM
Subject: RE: [PHP] Calling PHP functions from within javascript


  -Original Message-
  From: Nitin [mailto:[EMAIL PROTECTED]
  Sent: Thursday, November 13, 2003 1:35 AM
  To: PHP-General
  Subject: [PHP] Calling PHP functions from within javascript
 
 
  Hi all,
 
  can anybody tell me how to call PHP functions from within
  javascript, as I want my PHP function to be interactive. I
  need to call the function written in the same page, with the
  values selected by the user
 
  Thanx in advance
 
  Nitin
 

 Someone correct me if I'm wrong, but this isn't possible unless you
 have your javascript continuously refreshing the page, and changing
 the url, or posting data. PHP is server side, so the only way for php
 script to be executed is when the page loads. It might be more
 productive if you create the functions you want executed in javascript
 instead of php.



 Thanks,

 Jake McHenry
 Nittany Travel MIS Coordinator
 http://www.nittanytravel.com

 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Calling PHP functions from within javascript

2003-11-13 Thread Ryan Thompson
On Thursday 13 November 2003 01:34, Nitin wrote:
 Hi all,

 can anybody tell me how to call PHP functions from within javascript, as I
 want my PHP function to be interactive. I need to call the function written
 in the same page, with the values selected by the user

 Thanx in advance

 Nitin

In a short answer. You can't. You can get PHP to create javascript on page 
load. But you couldn't get Javascript to say. executed a PHP db query 
based on a user selection on a form. PHP is Server-side. It's all executed 
before it reaches the user.
-- 
I have a photographic memory. I just forgot the film --Unknown
=
Ryan Thompson
[EMAIL PROTECTED]
http://osgw.sourceforge.net

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Explanation for php.net front page???

2003-11-13 Thread - Edwin -
On 12 Nov 2003 17:37:58 -0500
Robert Cummings [EMAIL PROTECTED] wrote:

 It's not active on the main page. It's on the search page.
 Go there instead.
 
 http://www.php.net/search.php
 
 And it doesn't seem to work with Opera 6 :)

Try the latest version. It works for me ;)

  opera:about

Version 7.22 Final
Build   497
PlatformLinux

- E -
__
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!
http://bb.yahoo.co.jp/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Need a nicer way to escape single/double quotes....

2003-11-13 Thread olinux

--- Scott Fletcher [EMAIL PROTECTED] wrote:
 Hi Fellas!
 
 I haven't found a more efficient way to better
 escape the quote
 characters for the javascript right from PHP because
 I only get The kid in
 the javascript alert message, so I'm wondering if
 anyone of you know of
 something better than that...
 
 --snip--
 form name=Test_Form
 ?
$test1 = The kid's name is \Bob!\;
$test1 = addslashes($test1);
echo input type='hidden'
 name='htmlTest1' value='.$test1.';
echo script type='text/javascript';
echo   
 alert(document.Test_Form.htmlTest1.value);;
echo /script;
 ?
 /form
 --snip--

I'm a fan of dropping out of PHP to output static
html/js etc. This is especially good practice when you
have large blocks of html/etc. 

i.e.

form name=Test_Form
?
  $test1 = The kid's name is \Bob!\;
  $test1 = addslashes($test1);
?
  input type='hidden' name='htmlTest1' 
value='?=$test1?'
  script type='text/javascript'
alert(document.Test_Form.htmlTest1.value);
  /script
/form


I prefer using single quotes when assign string
values. PHP doesn't have to evaluate inside single
quotes. 
It's much easier to edit/add/read html code that's not
polluted with escaped quotes
Syntax highlighting makes it easier to spot
variables

$bob_age = time() - $birthday_timestamp;
$test1 = 'The kid's name is Bob!';
$test2 = 'He is '.$bob_age.' seconds old';


olinux

__
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] shell_exec with pipes

2003-11-13 Thread Jason Wong
On Wednesday 12 November 2003 21:48, Mario Ohnewald wrote:

 ok, i am running the script like this now:

[snip]

This seems to suggest that shell_exec() does not like your command and is not 
executing it, so:

Try tackling it logically, step-by-step:

  Have you:
 
  1) Turned on full error reporting?

 How do i turn that on?

In php.ini, once you've enabled it, restart webserver and see what errors, if 
any, you get.

  2) Checked that (i) you're not running in safe_mode, or (ii) if you are,
  that
  you are allowed to access those executables?

 i am running in safe mode.

What is the answer to (ii)?

Are you able to execute any shell programs/commands at all? Hint try something 
simple like shell_exec('touch /tmp/testfile') and see whether /tmp/testfile 
is being created.

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
I can't stand squealers; hit that guy.
-- Albert Anastasia
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Sorting DB Results

2003-11-13 Thread Ralph Guzman
I am trying to write a query (mysql 3.23) that will sort results using one
or two substrings in item number. So for example I have item numbers that
start with SE, TS, N0, W00, etc.

So let say I want results sorted in the following order

TS, SE, N0, W0

I have tried the following in my query but it's not sorting properly:

ORDER BY FIELD(LEFT(item_number, 2) , 'TS'), FIELD(LEFT(item_number, 1)
'N','W')

So my question is, should I put results in an array, then sort the array
instead of trying to sort from mysql?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] On OS X (10.2) where is php installed?

2003-11-13 Thread - Edwin -
On Fri, 07 Nov 2003 23:10:53 +0300
Burhan Khalid [EMAIL PROTECTED] wrote:

 - Edwin - wrote:
 
  Hi,
  
  On 2003.11.8, at 01:51 Asia/Tokyo, Adam wrote:
  
  All,
 
  Forgive me for the simplistic question, I'm not much of
 a Unix,  Apache, or PHP wiz. I'm running Mac OS X 10.2 on
 a 12 PB. I've  installed PHP 4.3.0 from Marc Lynric's
 site (http://www.entropy.ch).  However, I cannot actually
 find the installation files on my laptop.
  My web server works. It serves PHP pages quite well, but
 I want to  know where the binaries are located. I've
 tried using some sources I  thought might tell me where
 the files are located, but they have not.
  Can anyone shed some light?
  
  
  Try /usr/local/php
  
 
 Not sure if the Apple Unix supports this,

It *should* since it's based on FreeBSD 5 ;) I didn't try
though since I know where the files are--Marc Liyanage
(notice wrong spelling up there) is kind enough to post it on
his site: http://www.entropy.ch/software/macosx/php/

 but you can always try
 
 find / -name php
 
 or
 
 locate php
 whereis php

--

- E -
__
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!
http://bb.yahoo.co.jp/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Calling PHP functions from within javascript

2003-11-13 Thread Kim Steinhaug
First thing is, it's possible

First of all PHP is server-side and has nothing to do with client side.
If you have managed to do this, you must have some concepts
screwed up! Lets not believe that PHP is client side all of a sudden!
Sorry mac - But you havnt done this in the past!

a) On the other hand, there is a way you can do what U want - thanks
to the fact that Javascript is able to load a datafile. If this file is a
PHP file that is processed serverside you will accomplish your goals.

b) Latest addons from Microsoft into Internet explorer makes the loading
of ekstra files through XML modules very flexible and easy. Ive done this
myself and it works like a breeze. If you here load the XML data, instead
the data is your DB data and use this in your JS as the XML parser has
loaded it into variable... You have accomplished your goal.

That was 2 sollutions you could use, were noone are any good really.
Ive made some sites myself that are interactive in many ways earlier, and
come to the conclusion that the pages just have to become bigger.

An example, a webstore sollution I have developed has an interactive menu
selector buildt in javascript, which stores all possible category
combinations.
To keep it short here - This javascript after its buildt by my PHP is
120KB,
and makes the HTML very large, it ends up in like 150 KB. Point is, if there
were a sollution you are talking about - I could have shrinked the 120KB
kode down to 10KB instead, just pulling out the data from the DB that the
customer aquired. Ive spent hours looking for this sollution, and above you
got the ones Ive come about, where the XML is the one accually working.
(Point out that the XML model doesnt handle ØÆÅÄÖ characters - which
resulted in me not using this. If it could handle this, XML would be my
sollution!

Kim

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] wiki

2003-11-13 Thread Dennis Gearon
I need a wiki, VERY simple. BUT OTOH, it'd be nice if it had the ability 
to display, or attache a picture to a topic.

Any good stuff known to exist?

MySQL background.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] PHP not using resolv.conf

2003-11-13 Thread Luke van Blerk
Hi

Our PHP installation is not using the nameservers in resolv.conf but instead
using the dns server on the hostname. Does anyone know why this is and how
to change it?

Thanks
Luke

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] split()

2003-11-13 Thread Eugene Lee
On Wed, Nov 12, 2003 at 09:48:37PM -0600, erythros wrote:
: 
: trying to use split(). i want to split a paragraph by sentence. so of course
: i used split('[.!?]', $data). but then i noticed i use ... or  every now
: and again at the end of a sentence. i don't know how to do this though...

How about preg_split('[.!?]+', $data) ?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] $_POST bug?

2003-11-13 Thread Eugene Lee
On Thu, Nov 13, 2003 at 12:59:11AM -0500, Jake McHenry wrote:
: 
:  -Original Message-
:  From: Jake McHenry [mailto:[EMAIL PROTECTED] 
:  Sent: Thursday, November 13, 2003 12:53 AM
:  To: [EMAIL PROTECTED]
:  Subject: [PHP] $_POST bug?
:  
:  I have 5 fields, all 1 character in length, numbers being 
:  entered. If zero's are entered in the boxes, and the form is 
:  submitted, the corresponding $_POST variables are empty? Is 
:  there a way around this, or am I doing something wrong?
:  
:  I guess I could just do, if (isset(... Blah.. Then if it's 
:  not set then manually set the variable name to 0...
: 
: Just to test, I changed the input field length to 3, and every time I
: tried it, single 0 does not create the $_POST variable. Double 0's
: create it, along with any other numbers, it's only when a single 0 is
: entered. Is this a bug or happening for a reason?

In your form handler script, what does print_r($_POST) come out with?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Cannot bind to port 80

2003-11-13 Thread Eugene Lee
On Thu, Nov 13, 2003 at 01:11:43AM -0500, Teren wrote:
: 
: Hi, I recently upgraded my box to php 4.3.4 and i copied the current
: configure line and then ran it in the un-tared directory. I ran make,
: then make install. I tried to restart apache and it wouldn't restart.
: Any ideas? I tried the things that were on google but those didn't
: work. The apache error log said it couldn't bind to port 80, but i'm
: 100% sure it's the php upgrade problem, not apache. Thanks

You cannot bind to port numbers below 1024 without being root.  You must
gain root access and then start Apache.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] shell_exec with pipes

2003-11-13 Thread Mario Ohnewald
Hello!
I think we are almost there yet :)

 On Wednesday 12 November 2003 21:48, Mario Ohnewald wrote:
 
  ok, i am running the script like this now:
 
 [snip]
 
 This seems to suggest that shell_exec() does not like your command and is
 not 
 executing it, so:
 
 Try tackling it logically, step-by-step:
 
   Have you:
  
   1) Turned on full error reporting?
 
  How do i turn that on?
 
 In php.ini, once you've enabled it, restart webserver and see what errors,
 if 
 any, you get.
ok, i have enabled that with error_reporting(E_ALL); 

 
   2) Checked that (i) you're not running in safe_mode, or (ii) if you
 are,
   that
   you are allowed to access those executables?
 
  i am running in safe mode.
 
 What is the answer to (ii)?
Yes, i do have acces to those files and the permissions are correct.

 
 Are you able to execute any shell programs/commands at all? Hint try
 something 
 simple like shell_exec('touch /tmp/testfile') and see whether
 /tmp/testfile 
 is being created.
Yes, i am. 

I think the key is here somewhere:
PHP Output from shell_exec(/usr/local/bin/mplayer -identify -frames 0
/tmp/pitstop.mpeg);


MPlayer 1.0pre2-3.3.2 (C) 2000-2003 MPlayer Team

CPU: Advanced Micro Devices Athlon MP/XP Thoroughbred 1466 MHz (Family: 6,
Stepping: 1)
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE

Reading config file /usr/local/etc/mplayer/mplayer.conffont: can't open
file: (null)
font: can't open file: /usr/local/share/mplayer/font/font.desc
Using usleep() timing

Playing /tmp/pitstop.mpeg
MPEG-PS file format detected.
VIDEO:  MPEG1  320x240  (aspect 1)  29.970 fps  1151.2 kbps (143.9 kbyte/s)



PHP Output from normal shell /usr/local/bin/mplayer -identify -frames 0
/tmp/pitstop.mpeg

MPlayer 1.0pre2-3.3.2 (C) 2000-2003 MPlayer Team

CPU: Advanced Micro Devices Athlon MP/XP Thoroughbred 1466 MHz (Family: 6,
Stepping: 1)
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE

Reading config file /usr/local/etc/mplayer/mplayer.conf: No such file or
directory
Reading config file /home/lansinplayer/.mplayer/config
Reading /home/lansinplayer/.mplayer/codecs.conf: Can't open
'/home/lansinplayer/.mplayer/codecs.conf': No such file or directory
Reading /usr/local/etc/mplayer/codecs.conf: Can't open
'/usr/local/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf
font: can't open file: /home/lansinplayer/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
Failed to open /dev/rtc: Permission denied (mplayer should be setuid root or
/dev/rtc should be readable by the user.)
Using usleep() timing
Can't open input config file /home/lansinplayer/.mplayer/input.conf: No such
file or directory
Can't open input config file /usr/local/etc/mplayer/input.conf: No such file
or directory
Falling back on default (hardcoded) input config

Playing /tmp/pitstop.mpeg
MPEG-PS file format detected.
VIDEO:  MPEG1  320x240  (aspect 1)  29.970 fps  1151.2 kbps (143.9 kbyte/s)
==
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
MP3lib: init layer23 finished, tables done
AUDIO: 44100 Hz, 2 ch, 16 bit (0x10), ratio: 16000-176400 (128.0 kbit)
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
==
ID_FILENAME=/tmp/pitstop.mpeg
ID_VIDEO_FORMAT=0x1001
ID_VIDEO_BITRATE=1151200
ID_VIDEO_WIDTH=320
ID_VIDEO_HEIGHT=240
ID_VIDEO_FPS=29.970
ID_VIDEO_ASPECT=0.
ID_AUDIO_CODEC=mp3
ID_AUDIO_FORMAT=80
ID_AUDIO_BITRATE=128000
ID_AUDIO_RATE=44100
ID_AUDIO_NCH=2
ID_LENGTH=16
vo: couldn't open the X11 display ()!
vo: couldn't open the X11 display ()!
VO XOverlay need a subdriver
vo: couldn't open the X11 display ()!
Can't open /dev/fb0: Permission denied
[fbdev2] Can't open /dev/fb0: Permission denied
==
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 320 x 240 (preferred csp: Mpeg PES)
VDec: using Mpeg PES as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO: [null] 320x240 = 320x240 Mpeg PES
Selected video codec: [mpegpes] vfm:mpegpes (Mpeg PES output (.mpg or
Dxr3/DVB card))
==
Checking audio filter chain for 44100Hz/2ch/16bit - 44100Hz/2ch/16bit...
AF_pre: af format: 2 bps, 2 ch, 44100 hz, little endian signed int
AF_pre: 44100Hz 2ch Signed 16-bit (Little-Endian)
audio_setup: 

Re: [PHP] $_POST bug?

2003-11-13 Thread Kim Steinhaug
My system (win2000 IIS) also handles 0, and webserver (redhat apache) also
handles 0.

Your system sounds faulty in some way,
what browser are U using and what version of PHP.

I know from earlier experience that some versions of Netscape behaves
strange on the
form elements, meaning when posting / getting the data back to the
server. I remember
this as one of my domain search utilities always came emtpy in netscape,
and not in Opera
and Explorer. So it could be this, but if youre not on Netscape - Its not
this. :)

Kim

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] $_POST bug?

2003-11-13 Thread Jake McHenry
 -Original Message-
 From: Eugene Lee [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, November 13, 2003 3:48 AM
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP] $_POST bug?
 
 
 On Thu, Nov 13, 2003 at 12:59:11AM -0500, Jake McHenry wrote:
 : 
 :  -Original Message-
 :  From: Jake McHenry [mailto:[EMAIL PROTECTED] 
 :  Sent: Thursday, November 13, 2003 12:53 AM
 :  To: [EMAIL PROTECTED]
 :  Subject: [PHP] $_POST bug?
 :  
 :  I have 5 fields, all 1 character in length, numbers being 
 :  entered. If zero's are entered in the boxes, and the form is 
 :  submitted, the corresponding $_POST variables are empty? Is 
 :  there a way around this, or am I doing something wrong?
 :  
 :  I guess I could just do, if (isset(... Blah.. Then if it's 
 :  not set then manually set the variable name to 0...
 : 
 : Just to test, I changed the input field length to 3, and 
 every time I
 : tried it, single 0 does not create the $_POST variable. Double 0's
 : create it, along with any other numbers, it's only when a 
 single 0 is
 : entered. Is this a bug or happening for a reason?
 
 In your form handler script, what does print_r($_POST) come out
with?
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 

print_r($_POST) shows me that $_POST has the single 0 value. I solved
my problem, instead of having just if ($_POST['test']), I changed it
to if ($_POST['test'] != ). Right after I posted, I tried this, and
a couple other things.. The problem only happens when I don't have any
conditions within the ().



Thanks,

Jake McHenry
Nittany Travel MIS Coordinator
http://www.nittanytravel.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Remove HTML TAGS

2003-11-13 Thread D. Jame
HI,


Is ther any way to remove HTML tags from Source File with PHP


jame


RE: [PHP] $_POST bug?

2003-11-13 Thread Jake McHenry
 -Original Message-
 From: Kim Steinhaug [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, November 13, 2003 3:28 AM
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP] $_POST bug?
 
 
 My system (win2000 IIS) also handles 0, and webserver (redhat 
 apache) also handles 0.
 
 Your system sounds faulty in some way,
 what browser are U using and what version of PHP.
 
 I know from earlier experience that some versions of Netscape 
 behaves strange on the form elements, meaning when posting 
 / getting the data back to the server. I remember this as 
 one of my domain search utilities always came emtpy in 
 netscape, and not in Opera and Explorer. So it could be this, 
 but if youre not on Netscape - Its not this. :)
 
 Kim
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 

I've tried it on opera, netscape, IE, and mozilla right on the server.
It seems to be a php condition thing, not really what's in the $_POST
array, as I just posted print_r($_POST) does contain the values, it's
only when I have if ($_POST['test']) that the problem occurs.



Thanks,

Jake McHenry
Nittany Travel MIS Coordinator
http://www.nittanytravel.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] $_POST bug?

2003-11-13 Thread Eugene Lee
On Thu, Nov 13, 2003 at 04:04:16AM -0500, Jake McHenry wrote:
: 
: print_r($_POST) shows me that $_POST has the single 0 value. I solved
: my problem, instead of having just if ($_POST['test']), I changed it
: to if ($_POST['test'] != ). Right after I posted, I tried this, and
: a couple other things.. The problem only happens when I don't have any
: conditions within the ().

That's due to PHP's automatic type conversion.  In other words, certain
string values can get evaluated to either a boolean TRUE or FALSE.  So
you have to do explicit tests.

For example, what does this code snippet do?

if ($_POST['test'])
{
do_right();
}
else
{
do_wrong();
}

If $_POST['test'] has an empty string, it calls do_wrong().
If $_POST['test'] has the string 0, it still calls do_wrong().


http://www.php.net/manual/en/language.types.boolean.php#language.types.boolean.casting

Your move to change your if-statement is a good start to doing the right
thing.  The next step is to scrub your $_POST data and make sure that it
is valid.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Fw: [PHP] Re: How to find the Drive letters

2003-11-13 Thread D. Jame
Thnx Kam

Jame



- Original Message -
From: Kim Steinhaug [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, November 12, 2003 4:23 PM
Subject: [PHP] Re: How to find the Drive letters


 Check my reply under Share folder.

 From what I know you cant get hold of the accuall drive letter on a remote
 machine without hacking it,
 and therefore my short answer will be that U cant do it. U can get the
 shares, and access them as
 explained in the other post - but not the physical drive letters.

 Kim

 D. Jame [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
 hi,

 How to find the Drive letters and Drive Types of remote system WNT, i have
 system administrator password too..
 this all work done with PHP pages, when my client give IP, user
 /password then my PHP scirpt show him that system drive/ folders...

 Plz help...

 thnx

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] $_POST bug?

2003-11-13 Thread - Edwin -
Hi,

(I think you intended to send this to the list...)

On Thu, 13 Nov 2003 02:03:50 -0500
Jake McHenry [EMAIL PROTECTED] wrote:

...[snip]...

 I'm running RHLinux 9, php 4.2.2, apache 2.0.40

Hmm... same here. Only difference could be that I rebuilt the
php RPMs to support mbstring--I'm sure it's not related
though ;)

 if (($_POST['accid_1'])  ($_POST['accid_2']) 
 ($_POST['accid_3']) ($_POST['accid_4']) 
 ($_POST['accid_5'])){
   do my stuff... 
 }
 
 All variables are 1 character long, and should be numbers.
 I have a preg_match inside the condition.. But it wasn't
 even getting that far.

(Just a note: If they should be numbers, maybe you can use
is_numeric().)

 But when any of the values were 0, then it didn't do my
 stuff, which kinda caught my attention... lol

In the above, you're basically asking

  if (all of these are TRUE) {
do my stuff...
  }

So, if even one of those is 0 then it won't do your
stuff...

 ***
 
 I just seemed to fix the problem, I changed the above code
 to($_POST['accid'] != ) for each one, and it works now...
 ? Could someone please enlighten me as to what's happening
 here?

Well, this

  if ($_POST['accid'])

is asking something like

  if (TRUE)

so if the value of $_POST is 0 then it's FALSE. If the
value is 1 or a or Edwin then that would evaluate to
TRUE.

Whereas this one

  if ($_POST['accid'] != )

is asking something like

  if the value of $_POST is not equal to  then...

So, since 0 is not equal to  then the result would be
TRUE. If the value 1 or a or Edwin then that would
STILL evaluate to TRUE since those are not equal to .

Not sure if I had explained this well since I'm starting to
have a headache trying to figure out how to explain 'What is
TRUE?' Not 'FALSE'. Then, what is 'FALSE'? Not
'TRUE'. ??.

:)

- E -
__
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!
http://bb.yahoo.co.jp/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Remove HTML TAGS

2003-11-13 Thread Pavel Jartsev
D. Jame wrote:
HI,

Is ther any way to remove HTML tags from Source File with PHP

http://www.php.net/manual/en/function.strip-tags.php

--
Pavel a.k.a. Papi
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] multiple table rows into an array, and creating a calendar

2003-11-13 Thread Burhan Khalid
Dave G wrote:

Burham


why don't 
you do an in_array() check for each date that you print.
Hope this helps.


Yes, this helps a lot!
However, I'm still stuck on how to get my list of dates into the array.
I've been searching around on the Internet, and it seems that one has to
construct a for() loop in order to get the results of multiple rows into
an array. But that seems unnecessarily complicated. Is there no command
to take multiple rows and place them into an array?
I believe this was asked recently on the list, you might want to check 
the archives.

Just off the top of my head, something like this should work :

$dates = array();
while($row = mysql_fetch_assoc($result))
{
   $dates[] = $row;
}
echo pre; print_r($dates); echo /pre;
TIAS :)

--
Burhan Khalid
phplist[at]meidomus[dot]com
http://www.meidomus.com
---
Documentation is like sex: when it is good,
 it is very, very good; and when it is bad,
 it is better than nothing.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Explanation for php.net front page???

2003-11-13 Thread Marek Kilimajer
- Edwin - wrote:
On 12 Nov 2003 17:37:58 -0500
Robert Cummings [EMAIL PROTECTED] wrote:

It's not active on the main page. It's on the search page.
Go there instead.
http://www.php.net/search.php

And it doesn't seem to work with Opera 6 :)


Try the latest version. It works for me ;)

  opera:about

Version 7.22 Final
Build   497
PlatformLinux
Yeh, Opera 6 and below is a crap at dhtml.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: wiki

2003-11-13 Thread pete M
tikiwiki.org

me love it

Pete

Dennis Gearon wrote:

I need a wiki, VERY simple. BUT OTOH, it'd be nice if it had the ability 
to display, or attache a picture to a topic.

Any good stuff known to exist?

MySQL background.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: Remove HTML TAGS

2003-11-13 Thread pete M
strip_tags() function

;-)

D. Jame wrote:

HI,

Is ther any way to remove HTML tags from Source File with PHP

jame

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] register_globals security

2003-11-13 Thread Fernando Melo
Hi everyone,

I have a PHP application that passes variables (values) from a form.
I get these using $_POST

However I do also post some variables via a link.  Which ofcourse requires
register_globals to be ON.

I would like to secure this application.  What would be the best way of
doing this and how else can I pass/get values via a URL.

Fern

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] register_globals security

2003-11-13 Thread Jon Haworth
Hi Fernando,

 I have a PHP application that passes variables (values) from a form.
 I get these using $_POST

 However I do also post some variables via a link.  Which ofcourse requires
 register_globals to be ON.

Do you mean variables in a URL, like this:
www.example.com/index.php?foo=1bar=2

If so you can access these via the $_GET array and leave register_globals
turned off.

Cheers
Jon

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Vacancy

2003-11-13 Thread Matthew Harvey
Hi guys

Sorry to 'hijack' this newsgroup.

I am currently looking for a PHP programmer for a client of mine based in
Central London.

They are ultimately looking for someone on a permanent basis but would take
someone on a contract with a view to going permanent.

They would be paying £25 - 27K per annum.

If you are interested please reply to   [EMAIL PROTECTED] with a Word copy
of your CV.

Kind Regards

Matthew Harvey
020 7938 1333

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] overriding string concatenation '.'

2003-11-13 Thread Burhan Khalid
tirumal b wrote:

Hello All

 I have an ip addr in a variable. I use
'ssh'.$ipaddr.'command' in a php file
if $ipaddr = 192.168.1.100 then

echo 'ssh'.$ipaddr.'command' will be
ssh192.168.1.100command
what you probably wanted was

'ssh '.$ipaddr.' command'

which would result in

ssh 192.168.1.100 command

and would take care of your concatenation problem.

--
Burhan Khalid
phplist[at]meidomus[dot]com
http://www.meidomus.com
---
Documentation is like sex: when it is good,
 it is very, very good; and when it is bad,
 it is better than nothing.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] $_POST bug?

2003-11-13 Thread Burhan Khalid
Jake McHenry wrote:

  I've tried it on opera, netscape, IE, and mozilla right on the server.
It seems to be a php condition thing, not really what's in the $_POST
array, as I just posted print_r($_POST) does contain the values, it's
only when I have if ($_POST['test']) that the problem occurs.
Any non-zero number evaluates to true. In your statement, you are 
essentially asking if the value of $_POST['test'] is greater than 0 
which would return true. So if test = 0, then the if condition fails, 
hence why you are getting your problems.

--
Burhan Khalid
phplist[at]meidomus[dot]com
http://www.meidomus.com
---
Documentation is like sex: when it is good,
 it is very, very good; and when it is bad,
 it is better than nothing.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] comparison efficieny

2003-11-13 Thread Burhan Khalid
Jon Hill wrote:

I am sure I read somewhere that doing the following

if (false === $variable)

was a better option than

if ($variable === false)

maybe it was a dream or is there something in this?
=== is type-safe comparison (iirc)
==  is not type-safe
=   is assignment (obviously)
if ($variable = foo) will always be true (you are assigning a value to 
a variable, and unless by some cosmic occurance it cannot assign a 
variable, that will be the only time that would return false).

if ($variable == foo) will compare the value of $variable and return 
true of its foo

if (foo = $variable) this will generate an error because you are 
trying to assign a value to a literal (string). It helps catch the == 
where = should be type errors.

if (foo == $variable) this will comapre the value of $variable and 
return true of its foo

if ($variable === foo) this will return true only if $variable is a 
string foo (iirc).

Hopefully this helps,
--
Burhan Khalid
phplist[at]meidomus[dot]com
http://www.meidomus.com
---
Documentation is like sex: when it is good,
 it is very, very good; and when it is bad,
 it is better than nothing.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Explanation for php.net front page???

2003-11-13 Thread Burhan Khalid
Scott Fletcher wrote:

Hi!

Would anyone care to explain to me about the article on the frontpage of
the php.net website about the IDE or PHP function name code completion?
Never mind about the bug report and browser stuffs...
This feature (called intellisense by Microsoft) is where if you type a 
function name and the opening parenthesis, a popup appear with the 
function signature (so you know what arguments to pass it).

Dreamweaver MX 2004 has it, so does Zend IDE and even SciTE (a free text 
editor for linux and windows environments). Comes in handy when you are 
trying to remember some esoteric function arguments.


--snip--
New function list auto completion
[04-Nov-2003] You can probably name at least one IDE providing support for
PHP function name code completion. PHP.net is just beta testing the same
feature on the search page. Try selecting the 'function list' lookup option
and start typing in a function name in the search field. You can
autocomplete the name with the space key and navigate in the dropdown with
the up and down cursor keys. We welcome feedback on this feature at the
webmasters email address, but please submit any bugs you find in the bug
system classifying them as a PHP.net website problem and providing as much
information as possible (OS, Browser version, Javascript errors, etc..).
--snip--

Thanks,

 Scott



--
Burhan Khalid
phplist[at]meidomus[dot]com
http://www.meidomus.com
---
Documentation is like sex: when it is good,
 it is very, very good; and when it is bad,
 it is better than nothing.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] register_globals security

2003-11-13 Thread Fernando Melo

Thanks.

I don't see how this makes it more secure though?

The values are still picked up the same way from a URL

-Original Message-
From: Jon Haworth [mailto:[EMAIL PROTECTED] 
Sent: 13 November 2003 13:28
To: [EMAIL PROTECTED]
Subject: Re: [PHP] register_globals  security

Hi Fernando,

 I have a PHP application that passes variables (values) from a form.
 I get these using $_POST

 However I do also post some variables via a link.  Which ofcourse requires
 register_globals to be ON.

Do you mean variables in a URL, like this:
www.example.com/index.php?foo=1bar=2

If so you can access these via the $_GET array and leave register_globals
turned off.

Cheers
Jon

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] register_globals security

2003-11-13 Thread Eugene Lee
On Thu, Nov 13, 2003 at 01:55:08PM +0200, Fernando Melo wrote:
: Jon Haworth responded:
: : Fernando Melo wrote:
: : 
: :  I have a PHP application that passes variables (values) from a form.
: :  I get these using $_POST
: : 
: :  However I do also post some variables via a link.  Which ofcourse
: :  requires register_globals to be ON.
: : 
: : Do you mean variables in a URL, like this:
: : www.example.com/index.php?foo=1bar=2
: : 
: : If so you can access these via the $_GET array and leave
: : register_globals turned off.
: 
: Thanks.
: 
: I don't see how this makes it more secure though?
: 
: The values are still picked up the same way from a URL

If you want to prevent casual packet sniffing, you need to move your
code to a SSL-enabled web server.

If you want to minimize data exchange between PHP pages via POST or GET
methods, consider switching to sessions.

http://www.php.net/manual/en/ref.session.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] help create community newbie guide to security

2003-11-13 Thread Jay Blanchard
[snip]
If you code properly, you could get away with turning register_globals
on, but this requires you to be very careful when thinking about the
logic of your code.
[/snip]

I really do hate to see the misconception about register globals
continue. The bottom line is variable handling, especially where
variables are passed via the GET form method (which places key=value
pairs in the URL, making them highly visible). All variables should be
tested for improper formation (with rg ON or OFF) if these variables
arrive from an outside source. Consider the example

http://www.yourserver.com/login.php?authorized=true

If rg is on the value of $authorized == true
If rg is off the value of $_GET['authorized'] == true

In this case the programmer will be testing (either one) for true, and
placing login information in the URL is just bad form.

The real problem comes with things like SQL injection (Much too much
info for this e-mail, I suggest some searching and reading, Google is
your friend). Consider the following URL

http://www.yourserver.com/login.php?username=hi'%20OR%201=1--

This not only returns true (which should log the user in) but also might
return the complete list of usernames. It doesn't matter whether rg is
on or off if no validation is done on the variables being passed.

With register globals off the programmer is given an advantage, that
advantage being the knowledge of the origin of the variable. If it is in
the $_GET array we know where it came from. Likewise with the other
predefined variable arrays. 

What should you do? Initialize all variables. If variables arrive via an
outside source (with rg ON you could call you variables names dependent
upon the form method, such as name=getUserName which becomes
$getUserName) validate them properly before use and reject them if
wrong.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Extracting Source code from Binary Files(.dll,.exe.,class)

2003-11-13 Thread Prashant Akerkar
Dear Friends

I have a Query. Is it Possible to extract the source code from 
.exe,(VB,'C',C++),.dll(VB,'C',C++) or .class(java) files.

A Utility program which can be written which will extract .exe-.c source code 
conversion or .exe-com or .exe-.frm files,.dll-.cpp,.dll-.c source code

Or is it Virtually Impossible to extract the source code ???

Do the System Level Programmers who are writing compilers,interpretors,operating 
systems,Device Drivers,TSR,Anti-Virus Packages,
Programmers who know machine language and assembly language very well can they extract 
the source code?

Thanks,

Prashant A




Re: [PHP] PHP not using resolv.conf

2003-11-13 Thread Raditha Dissanayake
Hi,

What exactly do you mean using the DNS server in the hostname? AFAIK 
name resolution is done by the underlying system and not directly 
controllable by PHP - unless of course you are writing some specialized 
networking program. Anyway i think you will need to provide more details 
on your setup.

Luke van Blerk wrote:

Hi

Our PHP installation is not using the nameservers in resolv.conf but instead
using the dns server on the hostname. Does anyone know why this is and how
to change it?
Thanks
Luke
 



--
Raditha Dissanayake.

http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload
Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader
Graphical User Inteface. Just 150 KB | with progress bar.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Extracting Source code from Binary Files(.dll,.exe.,class)

2003-11-13 Thread Christophe Chisogne
Prashant Akerkar wrote:
Is it Possible to extract the source code from .exe, ... .class(java) files.
[ I think you're way off-topic but... ]

Nope. But you can try to decompile binaries or java class files.
Try googling for decompilation tools
Note that decompiling softs can be prohibited by law enforcements
(not in Europe for interoperability reasons, but well in the US).
Result from decompilation is not source code of course, can be made
very difficult, and result is very different from src code.
In particular case of java class files, decompilation can lead to
really good results (with bad-looking variable names tough)
Christophe

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] wiki

2003-11-13 Thread Raditha Dissanayake
wikipedia.org  - their sourcecode is available as a sourceforge.net project

Dennis Gearon wrote:

I need a wiki, VERY simple. BUT OTOH, it'd be nice if it had the 
ability to display, or attache a picture to a topic.

Any good stuff known to exist?

MySQL background.



--
Raditha Dissanayake.

http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload
Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader
Graphical User Inteface. Just 150 KB | with progress bar.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] register_globals security

2003-11-13 Thread Raditha Dissanayake
Hi,

There is also a $_REQUEST variable.
At the risk of starting another flame war: IMHO switching off register 
globals and relying on $_POST etc can lull you into a false sense of 
security.

Fernando Melo wrote:

Thanks.

I don't see how this makes it more secure though?

The values are still picked up the same way from a URL

-Original Message-
From: Jon Haworth [mailto:[EMAIL PROTECTED] 
Sent: 13 November 2003 13:28
To: [EMAIL PROTECTED]
Subject: Re: [PHP] register_globals  security

Hi Fernando,

 

I have a PHP application that passes variables (values) from a form.
I get these using $_POST
However I do also post some variables via a link.  Which ofcourse requires
register_globals to be ON.
   

Do you mean variables in a URL, like this:
www.example.com/index.php?foo=1bar=2
If so you can access these via the $_GET array and leave register_globals
turned off.
Cheers
Jon
 



--
Raditha Dissanayake.

http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload
Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader
Graphical User Inteface. Just 150 KB | with progress bar.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] split()

2003-11-13 Thread erythros
thanx for the help. i got it. when i saw what happened when i put the + at
the end i found what i needed.
split('[.!?] ', $data)

this way it only breaks them up if the . or ! or ? is followed by a space.

thanx again for the help.
Eugene Lee [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 On Wed, Nov 12, 2003 at 09:48:37PM -0600, erythros wrote:
 :
 : trying to use split(). i want to split a paragraph by sentence. so of
course
 : i used split('[.!?]', $data). but then i noticed i use ... or  every
now
 : and again at the end of a sentence. i don't know how to do this
though...

 How about preg_split('[.!?]+', $data) ?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] register_globals security

2003-11-13 Thread Fernando Melo

Yup I still don't see how it improves anything with regards to security.

-Original Message-
From: Raditha Dissanayake [mailto:[EMAIL PROTECTED] 
Sent: 13 November 2003 15:24
To: [EMAIL PROTECTED]
Subject: Re: [PHP] register_globals  security

Hi,

There is also a $_REQUEST variable.
At the risk of starting another flame war: IMHO switching off register 
globals and relying on $_POST etc can lull you into a false sense of 
security.


Fernando Melo wrote:

Thanks.

I don't see how this makes it more secure though?

The values are still picked up the same way from a URL

-Original Message-
From: Jon Haworth [mailto:[EMAIL PROTECTED] 
Sent: 13 November 2003 13:28
To: [EMAIL PROTECTED]
Subject: Re: [PHP] register_globals  security

Hi Fernando,

  

I have a PHP application that passes variables (values) from a form.
I get these using $_POST

However I do also post some variables via a link.  Which ofcourse requires
register_globals to be ON.



Do you mean variables in a URL, like this:
www.example.com/index.php?foo=1bar=2

If so you can access these via the $_GET array and leave register_globals
turned off.

Cheers
Jon

  



-- 
Raditha Dissanayake.

http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload
Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader
Graphical User Inteface. Just 150 KB | with progress bar.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Extracting Source code from Binary Files(.dll,.exe.,class)

2003-11-13 Thread Prashant Akerkar

Dear  Christophe


My Point is like this  


.c source code/file/s  - .obj file/s is done by the C compiler

.obj file/s -- .exe binary file is done by the Linker(Assembly Language)


In the same way can we do the following steps to extract the .c source
code/files as follows


 Step 1 :   .exe binary file -- Linker (assembly language)
.. .obj file/s

 Step 2 :.obj file/s  .c (Compiler) source code file/s

Is it Right or i am going somewhere illogical?

Awaiting Your Prompt Reply,

Thanks   Regards,

Prashant A









- Original Message -
From: Christophe Chisogne [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, November 13, 2003 6:46 PM
Subject: Re: [PHP] Extracting Source code from Binary
Files(.dll,.exe.,class)


 Prashant Akerkar wrote:
  Is it Possible to extract the source code from .exe, ... .class(java)
files.

 [ I think you're way off-topic but... ]

 Nope. But you can try to decompile binaries or java class files.
 Try googling for decompilation tools

 Note that decompiling softs can be prohibited by law enforcements
 (not in Europe for interoperability reasons, but well in the US).

 Result from decompilation is not source code of course, can be made
 very difficult, and result is very different from src code.
 In particular case of java class files, decompilation can lead to
 really good results (with bad-looking variable names tough)

 Christophe

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] register_globals security

2003-11-13 Thread Jay Blanchard
[snip]
There is also a $_REQUEST variable.
At the risk of starting another flame war: IMHO switching off register 
globals and relying on $_POST etc can lull you into a false sense of 
security.
[/snip]

***applause***

Bottom-lineas I just said in another threadinitialize your
variables and validate them when you get them from 'outside' sources

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Extracting Source code from Binary Files(.dll,.exe.,class)

2003-11-13 Thread Jay Blanchard
[snip]
 Step 1 :   .exe binary file -- Linker (assembly language)
.. .obj file/s

 Step 2 :.obj file/s  .c (Compiler) source code file/s

Is it Right or i am going somewhere illogical?
[/snip]

Really this cannot be done with any degree of reliability, if at all.
The .obj file has been stripped of things and has had additional code
placed into it. This is dependent upon the compiler (.obj files from
compiler to compiler have different looks to them based on several
items. Makefiles are different.).The .exe file is a translation of the
.obj into assembly language.

Does the compiled code you want to use have hooks into it, an API? If so
you can use PHP to interact with the API.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] register_globals security

2003-11-13 Thread Raditha Dissanayake
Hi,

Jay and Eugene have already made very good suggestions. To add to that 
you can always try filtering your variables with strip_tags(), 
htmlspecialchars(), addslashes() etc to protect against attacks.

all the best

Fernando Melo wrote:

Yup I still don't see how it improves anything with regards to security.

-Original Message-
From: Raditha Dissanayake [mailto:[EMAIL PROTECTED] 
Sent: 13 November 2003 15:24
To: [EMAIL PROTECTED]
Subject: Re: [PHP] register_globals  security

Hi,

There is also a $_REQUEST variable.
At the risk of starting another flame war: IMHO switching off register 
globals and relying on $_POST etc can lull you into a false sense of 
security.

Fernando Melo wrote:

 

Thanks.

I don't see how this makes it more secure though?

The values are still picked up the same way from a URL
   

--
Raditha Dissanayake.

http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload
Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader
Graphical User Inteface. Just 150 KB | with progress bar.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] C++ objects

2003-11-13 Thread Marek Kilimajer
Sreesekhar Palaparthy wrote:
Hi, 
 How do i use a class which is implemented in C++ ,to create instances of that class in a PHP file ??
Can i use shared object concept to achieve this ??? Please help me with this problem.Thank You.

You need to write a php extension that will wrap the class and its methods.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Re: Need a nicer way to escape single/double quotes....

2003-11-13 Thread Scott Fletcher
Wow!  That really help for a not so effective HTML tag...

Wow!  That does really help to make up for the lousy HTML tags...  Does
that help?  :-)

Scott F.

Scott Fletcher [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Wow!  That really help for a not so effective HTML tag...

 Thanks!
  Scott F.

 Cpt John W. Holmes [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
  Scott Fletcher [EMAIL PROTECTED] wrote in message
  news:[EMAIL PROTECTED]...
 
 
 
   I haven't found a more efficient way to better escape the quote
 
   characters for the javascript right from PHP because I only get The
 kid
  in
 
   the javascript alert message, so I'm wondering if anyone of you know
of
 
   something better than that...
 
  
 
   --snip--
 
   form name=Test_Form
 
   ?
 
  $test1 = The kid's name is \Bob!\;
 
 
 
  $test1 = htmlentities($test1,ENT_QUOTES);
 
 
 
  instead of addslashes.
 
 
 
  echo input type='hidden' name='htmlTest1'
value='.$test1.';
 
 
 
  ---John Holmes...

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Extracting Source code from Binary Files(.dll,.exe.,class)

2003-11-13 Thread Prashant

Dear Mr Jay Blanchard

That is exactly my Point of Argument. Programmers who are well versed with
assembly language and Programmers who have written
C Compilers should be knowing the Process of Delinking and as well as
Decompiling?

Is it not possible for the Programmer who has written C Compiler(Who is also
an assembly Language Expert) say on Unix or Windows then why not he will be
able to do the reverse engineering Process of extracting the source code
with 100% Reliability ??

I feel so that he should succeed with the Reverse Engineering Process of
Extracting the original source code(.c files) from .exe binary file.

Are you getting my Point?

Pls give your opinion on this asap

Thanks,

Prashant A




- Original Message -
From: Jay Blanchard [EMAIL PROTECTED]
To: Prashant Akerkar [EMAIL PROTECTED]; Christophe Chisogne
[EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, November 13, 2003 7:08 PM
Subject: RE: [PHP] Extracting Source code from Binary
Files(.dll,.exe.,class)


[snip]
 Step 1 :   .exe binary file -- Linker (assembly language)
.. .obj file/s

 Step 2 :.obj file/s  .c (Compiler) source code file/s

Is it Right or i am going somewhere illogical?
[/snip]

Really this cannot be done with any degree of reliability, if at all.
The .obj file has been stripped of things and has had additional code
placed into it. This is dependent upon the compiler (.obj files from
compiler to compiler have different looks to them based on several
items. Makefiles are different.).The .exe file is a translation of the
.obj into assembly language.

Does the compiled code you want to use have hooks into it, an API? If so
you can use PHP to interact with the API.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Explanation for php.net front page???

2003-11-13 Thread Scott Fletcher
Robert Cumming - OIC, now I understand.  Far out!  Way Cool!  Neat!!!

Chris Parker - Yea, it sux about the IE's auto-completion too.  Saw that
pressing escape just once turned off the IE drop down feature but it's only
temporary until pressing another key into the drop down...  Um, all the mroe
reason to get rid of IE.  :-)  Thanks for the attachment at the bottom of
the email about 'reformatting the outlook replies'.  That is great, I'm
going to use it.  Thanks for the info...  One question though, how do you
know all about this?  Did you just stumple upon it or is it part of a
website somewhere that show us of all of the wonderful features and this is
just one of them?

Scott F.

Chris W. Parker [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Robert Cummings mailto:[EMAIL PROTECTED]
on Wednesday, November 12, 2003 2:38 PM said:

 It's not active on the main page. It's on the search page. Go there
 instead.

 http://www.php.net/search.php

Wow that's cool. Sux though that IE's auto-complete gets in the way of
the way list.



Chris.
--
Don't like reformatting your Outlook replies? Now there's relief!
http://home.in.tum.de/~jain/software/outlook-quotefix/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] {ot}Extracting Source code from Binary Files(.dll,.exe.,class)

2003-11-13 Thread Jay Blanchard
[snip]
Are you getting my Point?
[/snip]

Yes, we all get your point. Do you want to do this with PHP?

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] {ot}Extracting Source code from Binary Files(.dll,.exe.,class)

2003-11-13 Thread Prashant
Dear Mr Jay blanchard

Thanks, I feel that People who are Writing 'C' Compilers and who are
Assembly Language Experts will definitely also Succeed in
the Delinking and Decompiling Process of Extracting the source code.

But, Aren't We By Disassembling the exe binary file, Violating the
Copyrights of the Original Author who has written million lines of 'C' Code?

Is it not  friend? Am i Right or Wrong?

Thanks  Regards,

Prashant A





- Original Message -
From: Jay Blanchard [EMAIL PROTECTED]
To: Prashant [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Thursday, November 13, 2003 7:54 PM
Subject: RE: [PHP] {ot}Extracting Source code from Binary
Files(.dll,.exe.,class)


[snip]
Are you getting my Point?
[/snip]

Yes, we all get your point. Do you want to do this with PHP?

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Problem building on Solaris 9....

2003-11-13 Thread Rhugga
Lucas Lain wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
which version of gcc are you using...?

On Wednesday 12 November 2003 21:10, Rhugga wrote:

I am having an odd problem building php-4-3.2 on a Solaris 9 box. I built
it fine several weeks ago w/o oracle support (oracle is installed and
working fine). I now need to add oracle support so I went into the exact
same source tree and deleted config.cache and then reconfigured with this
command:
--x-includes=/usr/openwin/include/X11 --x-libraries=/usr/openwin/lib
--with-apxs2=/usr/local/apache2/bin/apxs --with-openssl=/usr/local/ssl
--with-bz2 --enable-calendar --with-curl --enable-dba
--with-db3=/usr/local/BerkeleyDB.3.3 --with-flatfile --enable-ftp --with-gd
--with-ttf --with-zlib-dir=/usr/local/lib --with-t1lib
--enable-gd-native-ttf --enable-gd-jis-conv --with-iconv
--with-mysql=/usr/local/mysql --with-ncurses --enable-sockets
--with-apxs2filter=/usr/local/apache2/bin/apxs
--with-oracle=/u01/app/oracle/product/9.2
This is the exact same configure command with the exception of the oracle
option.
When I execute this, the process eventually hangs at the following point in
the configure process:
configure:81694: checking whether the linker (/usr/ccs/bin/ld) supports
shared libraries
configure:82381: checking how to hardcode library paths into programs
configure:82409: checking whether stripping libraries is possible
configure:82423: checking dynamic linker characteristics
configure:82834: checking if libtool supports shared libraries
configure:82838: checking whether to build shared libraries
configure:82861: checking whether to build static libraries
If I view the process with truss, it is stuck here (deadlocked):

fork()  = 23870
waitid(P_PID, 23870, 0xFFBFF550, WEXITED|WTRAPPED|WNOWAIT) = 0
ioctl(0, TIOCGPGRP, 0xFFBFF50C) = 0
ioctl(0, TCGETS, 0x000391D4)= 0
waitid(P_PID, 23870, 0xFFBFF550, WEXITED|WTRAPPED) = 0
fork()  = 23873
waitid(P_PID, 23873, 0xFFBFF470, WEXITED|WTRAPPED|WNOWAIT) = 0
ioctl(0, TIOCGPGRP, 0xFFBFF42C) = 0
ioctl(0, TCGETS, 0x000391D4)= 0
waitid(P_PID, 23873, 0xFFBFF470, WEXITED|WTRAPPED) = 0
stat64(conftest.s3, 0xFFBFF1D0)   = 0
fork()  = 23874
waitid(P_PID, 23874, 0xFFBFF400, WEXITED|WTRAPPED|WNOWAIT) = 0
ioctl(0, TIOCGPGRP, 0xFFBFF3BC) = 0
ioctl(0, TCGETS, 0x000391D4)= 0
waitid(P_PID, 23874, 0xFFBFF400, WEXITED|WTRAPPED) = 0
fork()  = 23875
If you notice, the P_PID keep increasing indefintely. I let this run for
about 45 minutes before I killed it.
I then tried a fresh tarball of php, both 4.3.2 and 4.3.4 and exact same
problem. Anyone have any ideas what the deal is here?
Thanks,
Chuck
I am using gcc 3.2.2, which is what I used the first time as well.

-Chuck

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] {ot}Extracting Source code from Binary Files(.dll,.exe.,class)

2003-11-13 Thread Jay Blanchard
[snip]
Thanks, I feel that People who are Writing 'C' Compilers and who are
Assembly Language Experts will definitely also Succeed in
the Delinking and Decompiling Process of Extracting the source code.

But, Aren't We By Disassembling the exe binary file, Violating the
Copyrights of the Original Author who has written million lines of 'C'
Code?

Is it not  friend? Am i Right or Wrong?
[/snip]

The answer is that it depends. Why are you asking all of this on a PHP
list? I thought I had gotten your point earlier, but I apparently did
not. So, Prashant, what exactly is your point, and what does it have to
do with PHP?

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Problem building on Solaris 9....

2003-11-13 Thread Rhugga
Sorry about that, I meant I using gcc 3.3, using /usr/ccs/bin/as and 
/usr/ccs/bin/ld.

-Chuck

Lucas Lain wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
which version of gcc are you using...?

On Wednesday 12 November 2003 21:10, Rhugga wrote:

I am having an odd problem building php-4-3.2 on a Solaris 9 box. I built
it fine several weeks ago w/o oracle support (oracle is installed and
working fine). I now need to add oracle support so I went into the exact
same source tree and deleted config.cache and then reconfigured with this
command:
--x-includes=/usr/openwin/include/X11 --x-libraries=/usr/openwin/lib
--with-apxs2=/usr/local/apache2/bin/apxs --with-openssl=/usr/local/ssl
--with-bz2 --enable-calendar --with-curl --enable-dba
--with-db3=/usr/local/BerkeleyDB.3.3 --with-flatfile --enable-ftp --with-gd
--with-ttf --with-zlib-dir=/usr/local/lib --with-t1lib
--enable-gd-native-ttf --enable-gd-jis-conv --with-iconv
--with-mysql=/usr/local/mysql --with-ncurses --enable-sockets
--with-apxs2filter=/usr/local/apache2/bin/apxs
--with-oracle=/u01/app/oracle/product/9.2
This is the exact same configure command with the exception of the oracle
option.
When I execute this, the process eventually hangs at the following point in
the configure process:
configure:81694: checking whether the linker (/usr/ccs/bin/ld) supports
shared libraries
configure:82381: checking how to hardcode library paths into programs
configure:82409: checking whether stripping libraries is possible
configure:82423: checking dynamic linker characteristics
configure:82834: checking if libtool supports shared libraries
configure:82838: checking whether to build shared libraries
configure:82861: checking whether to build static libraries
If I view the process with truss, it is stuck here (deadlocked):

fork()  = 23870
waitid(P_PID, 23870, 0xFFBFF550, WEXITED|WTRAPPED|WNOWAIT) = 0
ioctl(0, TIOCGPGRP, 0xFFBFF50C) = 0
ioctl(0, TCGETS, 0x000391D4)= 0
waitid(P_PID, 23870, 0xFFBFF550, WEXITED|WTRAPPED) = 0
fork()  = 23873
waitid(P_PID, 23873, 0xFFBFF470, WEXITED|WTRAPPED|WNOWAIT) = 0
ioctl(0, TIOCGPGRP, 0xFFBFF42C) = 0
ioctl(0, TCGETS, 0x000391D4)= 0
waitid(P_PID, 23873, 0xFFBFF470, WEXITED|WTRAPPED) = 0
stat64(conftest.s3, 0xFFBFF1D0)   = 0
fork()  = 23874
waitid(P_PID, 23874, 0xFFBFF400, WEXITED|WTRAPPED|WNOWAIT) = 0
ioctl(0, TIOCGPGRP, 0xFFBFF3BC) = 0
ioctl(0, TCGETS, 0x000391D4)= 0
waitid(P_PID, 23874, 0xFFBFF400, WEXITED|WTRAPPED) = 0
fork()  = 23875
If you notice, the P_PID keep increasing indefintely. I let this run for
about 45 minutes before I killed it.
I then tried a fresh tarball of php, both 4.3.2 and 4.3.4 and exact same
problem. Anyone have any ideas what the deal is here?
Thanks,
Chuck


- -- 
Lucas Lain
Personal
[EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE/stJdVh8Qw9E7bU8RAtuaAJ9830cz0G/aLWzXk64fzICiViHAtACfY7V8
NzutAWIIQymdLKDBfeoo/8U=
=Bbdv
-END PGP SIGNATURE-
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] {ot}Extracting Source code from Binary Files(.dll,.exe.,class)

2003-11-13 Thread Prashant

Dear Mr Jay Blanchard

Ha Ha Ha ,  Sorry for the Trouble Friend, This should not be on the php
general mailing List,

Thanks for Your Patience and Replies ,

Thanks Friend,

Have a Nice Day !!!

Prashant A

- Original Message -
From: Jay Blanchard [EMAIL PROTECTED]
To: Prashant [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Thursday, November 13, 2003 8:05 PM
Subject: RE: [PHP] {ot}Extracting Source code from Binary
Files(.dll,.exe.,class)


[snip]
Thanks, I feel that People who are Writing 'C' Compilers and who are
Assembly Language Experts will definitely also Succeed in
the Delinking and Decompiling Process of Extracting the source code.

But, Aren't We By Disassembling the exe binary file, Violating the
Copyrights of the Original Author who has written million lines of 'C'
Code?

Is it not  friend? Am i Right or Wrong?
[/snip]

The answer is that it depends. Why are you asking all of this on a PHP
list? I thought I had gotten your point earlier, but I apparently did
not. So, Prashant, what exactly is your point, and what does it have to
do with PHP?

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Fw: [PHP] {ot}Extracting Source code from Binary Files(.dll,.exe.,class)

2003-11-13 Thread Prashant

Dear Mr Jay

I also troubled you because the PHP Scripting Language looks very similar to
the 'C' Programming Language.

Prashant A


- Original Message -
From: Prashant [EMAIL PROTECTED]
To: Jay Blanchard [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Thursday, November 13, 2003 8:08 PM
Subject: Re: [PHP] {ot}Extracting Source code from Binary
Files(.dll,.exe.,class)



 Dear Mr Jay Blanchard

 Ha Ha Ha ,  Sorry for the Trouble Friend, This should not be on the php
 general mailing List,

 Thanks for Your Patience and Replies ,

 Thanks Friend,

 Have a Nice Day !!!

 Prashant A

 - Original Message -
 From: Jay Blanchard [EMAIL PROTECTED]
 To: Prashant [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Sent: Thursday, November 13, 2003 8:05 PM
 Subject: RE: [PHP] {ot}Extracting Source code from Binary
 Files(.dll,.exe.,class)


 [snip]
 Thanks, I feel that People who are Writing 'C' Compilers and who are
 Assembly Language Experts will definitely also Succeed in
 the Delinking and Decompiling Process of Extracting the source code.

 But, Aren't We By Disassembling the exe binary file, Violating the
 Copyrights of the Original Author who has written million lines of 'C'
 Code?

 Is it not  friend? Am i Right or Wrong?
 [/snip]

 The answer is that it depends. Why are you asking all of this on a PHP
 list? I thought I had gotten your point earlier, but I apparently did
 not. So, Prashant, what exactly is your point, and what does it have to
 do with PHP?

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] session timeout

2003-11-13 Thread pete M
How do I set the session timeout - eg someone leaves a broweser for say 
half an hour then have to log in again..

As I'm on an intranet I want to increase ro 3 hours

Pete

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] session variables scope problem. HELP!

2003-11-13 Thread Jim Gates
I've spent a few hours trying to resolve a problem with session variables.
The session variables are intended to ensure login and/or whether or not a
user is an administrator with other permissions. My intent is to test for
the variables, if not present, redirect to login page or deny access.

It seems that once a session is started and variables set, I can access the
variables on the page on which they are set, but on subsequent pages via
link or Header redirect the session variables are not set and cannot be
accesses.

I read that Header redirect dumps session variables, so I tried simply
painting a message that said Login successful. Proceed with a link on
proceed. After clicking the link and going to page 2, session variables are
not set.

I've read site helps, my books, and am at a loss. Code follows.

Any comments are GREATLY appreciated.

Jim Gates
[EMAIL PROTECTED]
www.gatesinteractive.com

PAGE 1

?
 if(!session_id()){
  session_start();
 }
 if(!isset($_SESSION[sUi])){
  session_register(sUi);
 }
 if(!isset($_SESSION[sAdmin])){
  session_register(sAdmin);
 }
 require(php_includes/incl_sqlConnect.php);
 $query = SELECT * FROM tblUser WHERE username = '$username' AND password =
'$password';
 $result = mysql_query($query);
 $num_results = mysql_num_rows($result);
 if($num_results  1)
 {
  Header (Location:dsp_login.php?errMsg=i);
 }
 else
 {
   $rows = mysql_num_rows($result);
   for ($i=0; $i$rows; $i++){
   $getUser = mysql_fetch_object($result);
   $_SESSION[sUi] = $getUser-userID;
   $_SESSION[sAdmin] = $getUser-admin;
  }
  Header (Location:dsp_memberMain.php);
also tried echo Login successful. a href=dsp_memberMain.phpProceed/a;
 }
?

PAGE 2

  ?
if (isset($_SESSION[sUi])  $_SESSION[sAdmin] == 1){
 echo $_SESSION[sUi] and $_SESSION[sAdmin];
 echo bra href=dsp_showUsers.phpShow users./a;
 }
 else
 {
 echo V no - developer test.;
 }
   ?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Cannot bind to port 80

2003-11-13 Thread Chris Shiflett
--- Teren [EMAIL PROTECTED] wrote:
 Hi, I recently upgraded my box to php 4.3.4 and i copied the current
 configure line and then ran it in the un-tared directory. I ran make,
 then make install. I tried to restart apache and it wouldn't restart.
 Any ideas? I tried the things that were on google but those didn't work.
 The apache error log said it couldn't bind to port 80, but i'm 100% sure
 it's the php upgrade problem, not apache.

Try not to say you're 100% sure about something unless you are.

The problem is just that there is already a process bound to port 80. It
is probably Apache. Try running something like this to see what's there:

netstat --inet --listening -p | grep http

Hope that helps.

Chris

=
My Blog
 http://shiflett.org/
HTTP Developer's Handbook
 http://httphandbook.org/
RAMP Training Courses
 http://www.nyphp.org/ramp

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] session timeout

2003-11-13 Thread orlandopozo
 How do I set the session timeout - eg someone leaves a broweser for say
 half an hour then have to log in again..

 As I'm on an intranet I want to increase ro 3 hours

 Pete


Pete, Change the default configuration of the option session.cookie_lifetime
in the php.ini

by default:
; Lifetime in seconds of cookie or, if 0, until browser is restarted.
session.cookie_lifetime = 0

your change:
; Lifetime in seconds of cookie or, if 0, until browser is restarted.
session.cookie_lifetime = 10800  // 10800 seconds = 3 hours

I hope this help you, bye :).


RE: [PHP] $_POST bug?

2003-11-13 Thread Chris Shiflett
--- Jake McHenry [EMAIL PROTECTED] wrote:
 print_r($_POST) shows me that $_POST has the single 0 value. I solved
 my problem, instead of having just if ($_POST['test']), I changed it
 to if ($_POST['test'] != ). Right after I posted, I tried this, and
 a couple other things.. The problem only happens when I don't have any
 conditions within the ().

Your problem has nothing to do with POST then.

if (0)
{
 echo 'This will never print';
}

Hope that helps.

Chris

=
My Blog
 http://shiflett.org/
HTTP Developer's Handbook
 http://httphandbook.org/
RAMP Training Courses
 http://www.nyphp.org/ramp

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] session timeout

2003-11-13 Thread CPT John W. Holmes
From: pete M [EMAIL PROTECTED]

 How do I set the session timeout - eg someone leaves a broweser for say
 half an hour then have to log in again..

 As I'm on an intranet I want to increase ro 3 hours

Exact method: Save the current time on each request in the session. On each
request, check that time and if it's over 3 hours, then end the session /
force them to log in again.

Approx. Method: Look at the session.gc_maxlifetime setting in php.ini. This
setting controlls when session files are cleaned up. If the files have not
been accessed in gc_maxlifetime seconds when the garbage collection is
initiated, then the file is deleted. Upon the next request, the session will
be empty and the user should be forced to log in again. I say this is
approx. because garbage collection is triggered on a random process based
upon your requests. So files can run over the gc_maxlifetime setting
sometimes if the collection isn't triggered. I just rely on this, though...
it's close enough for government work. :)

---John Holmes...

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] session timeout

2003-11-13 Thread Marek Kilimajer
pete M wrote:

How do I set the session timeout - eg someone leaves a broweser for say 
half an hour then have to log in again..

As I'm on an intranet I want to increase ro 3 hours

Pete

increase the value of session.gc_maxlifetime (in seconds), 
session.cookie_lifetime should be still 0 (untill the browser is closed)

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] register_globals security

2003-11-13 Thread Chris Shiflett
--- Fernando Melo [EMAIL PROTECTED] wrote:
 I have a PHP application that passes variables (values) from a form.
 I get these using $_POST
 
 However I do also post some variables via a link. Which ofcourse
 requires register_globals to be ON.

This is a common problem I see on this list. When asking a question, try
not to make assumptions or attempt to answer your own question.

In this case, your assumption is wrong. This does not require
register_globals to be on. Get variables are in $_GET, and POST variables
are in $_POST.

Hope that helps.

Chris

=
My Blog
 http://shiflett.org/
HTTP Developer's Handbook
 http://httphandbook.org/
RAMP Training Courses
 http://www.nyphp.org/ramp

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] session timeout

2003-11-13 Thread CPT John W. Holmes
From: [EMAIL PROTECTED]
  How do I set the session timeout - eg someone leaves a broweser for say
  half an hour then have to log in again..
  As I'm on an intranet I want to increase ro 3 hours

 Pete, Change the default configuration of the option
session.cookie_lifetime
 in the php.ini

This won't help when the garbage collection deletes the session file after
24 minutes (default), though. Yeah, you'll have a valid session ID in a
cookie for 3 hours, but no matching session file.

---John Holmes...

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Problem with Apache 1.3.28 / PHP 4.3.3

2003-11-13 Thread orlandopozo
I had problem in the configuration of Apache 1.3.28 and PHP 4.3.3 as SAPI module, they 
are run well as CGI module, I put this lines for it:

ScriptAlias /php/ D:/PHP4.3.3/
AddType application/x-httpd-php .php
Action application/x-httpd-php /php/php.exe

as SAPI module, I put this lines:

LoadModule php4_module D:\PHP4.3.3\sapi\php4apache.dll
AddModule mod_php4.c
AddType application/x-httpd-php .php

A friend told me that remove the line AddModule mod_php4.c, I got this error:

d:/program files/apache1.3.28/apache/conf/httpd.conf: Syntax OK
Cannot remove module mod_php4.c: not found in module list

If I leave the line  AddModule mod_php4.c, I get this error:

Module mod_php4.c is already added, skipping d:/program 
files/apache1.3.28/apache/conf/httpd.conf: Syntax OK
Cannot remove module mod_php4.c: not found in module list

thanks for any help. bye.







RE: [PHP] help create community newbie guide to security

2003-11-13 Thread Chris Shiflett
--- Jay Blanchard [EMAIL PROTECTED] wrote:
 [snip]
 If you code properly, you could get away with turning register_globals
 on, but this requires you to be very careful when thinking about the
 logic of your code.
 [/snip]
 
 I really do hate to see the misconception about register globals
 continue.

I'm not sure why you consider this a misconception, since the guy that
posted that is correct. If you want to make such a claim, you should show
some code where it is impossible for a developer to reach the same level
of security with register_globals enabled.

Chris

=
My Blog
 http://shiflett.org/
HTTP Developer's Handbook
 http://httphandbook.org/
RAMP Training Courses
 http://www.nyphp.org/ramp

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] register_globals security

2003-11-13 Thread Chris Shiflett
--- Raditha Dissanayake [EMAIL PROTECTED] wrote:
 At the risk of starting another flame war: IMHO switching off register 
 globals and relying on $_POST etc can lull you into a false sense of 
 security.

I agree, and this is more true with the safe_mode directive, which I have
always thought was poorly named (although I don't have a better
suggestion).

Disabling register_globals is a good thing, however, and it at least
forces developers to understand where their data is coming from. This is a
good first step, in my opinion.

Chris

=
My Blog
 http://shiflett.org/
HTTP Developer's Handbook
 http://httphandbook.org/
RAMP Training Courses
 http://www.nyphp.org/ramp

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] register_globals security

2003-11-13 Thread Fernando Melo
I was not making an assumption.  I was stating a fact.
I get these using $_POST

I did NOT state that register_globals needs to be on to do what I'm doing.
It seems everyone else understood my query except you.  

Thanks to everyone who tried to help!

-Original Message-
From: Chris Shiflett [mailto:[EMAIL PROTECTED] 
Sent: 13 November 2003 17:07
To: Fernando Melo; '[EMAIL PROTECTED]'
Subject: Re: [PHP] register_globals  security

--- Fernando Melo [EMAIL PROTECTED] wrote:
 I have a PHP application that passes variables (values) from a form.
 I get these using $_POST
 
 However I do also post some variables via a link. Which ofcourse
 requires register_globals to be ON.

This is a common problem I see on this list. When asking a question, try
not to make assumptions or attempt to answer your own question.

In this case, your assumption is wrong. This does not require
register_globals to be on. Get variables are in $_GET, and POST variables
are in $_POST.

Hope that helps.

Chris

=
My Blog
 http://shiflett.org/
HTTP Developer's Handbook
 http://httphandbook.org/
RAMP Training Courses
 http://www.nyphp.org/ramp

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Problem with Apache 1.3.28 / PHP 4.3.3

2003-11-13 Thread orlandopozo
I had problem in the configuration of Apache 1.3.28 and PHP 4.3.3 as SAPI
module, they are run well as CGI module, I put this lines for it:

ScriptAlias /php/ D:/PHP4.3.3/
AddType application/x-httpd-php .php
Action application/x-httpd-php /php/php.exe

as SAPI module, I put this lines:

LoadModule php4_module D:\PHP4.3.3\sapi\php4apache.dll
AddModule mod_php4.c
AddType application/x-httpd-php .php

A friend told me that remove the line AddModule mod_php4.c, I got this
error:

d:/program files/apache1.3.28/apache/conf/httpd.conf: Syntax OK
Cannot remove module mod_php4.c: not found in module list

If I leave the line  AddModule mod_php4.c, I get this error:

Module mod_php4.c is already added, skipping d:/program
files/apache1.3.28/apache/conf/httpd.conf: Syntax OK
Cannot remove module mod_php4.c: not found in module list

thanks for any help. bye.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] register_globals security

2003-11-13 Thread Chris Shiflett
--- Fernando Melo [EMAIL PROTECTED] wrote:
 I was not making an assumption.  I was stating a fact.
 I get these using $_POST
 
 I did NOT state that register_globals needs to be on to do what I'm
 doing.

If you're going to make false claims about what you previously said, you
might want to snip out that part when replying. :-)

 --- Fernando Melo [EMAIL PROTECTED] wrote:
 Which ofcourse requires register_globals to be ON.

Chris

=
My Blog
 http://shiflett.org/
HTTP Developer's Handbook
 http://httphandbook.org/
RAMP Training Courses
 http://www.nyphp.org/ramp

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Calling PHP functions from within javascript

2003-11-13 Thread Warren Vail
I suspect you need to be careful how you use the term call.  It is
possible for javascript, which runs on the client side or in the browser,
to cause the browser to perform a form submit, and if the action field of
the form points to a php script on a server server side, then the php code
will execute on the server, processing the form content on the server and
sending new results in the form of html and javascript back to the browser
client side.

That may have appeared to you as a call but most PHP developers would not
use that term.  Two items you may not have control of yet, is that in this
case the PHP always runs on the server machine, and javascript always runs
on the browser machine, and the only way they can both execute on the same
machine, is if the server and browser are both on the same machine.  The PHP
will always run in the memory space of the server, and the javascript runs
in the memory space of the browser.

The only exceptions to the last statement is when the PHP runs from the
command line, at which time it is not communicating to a browser (often
referred to as a CGI, even though it isn't) and the only time, I believe,
that javascript can execute on a server is using an old product, that I have
only heard of but never used, referred to as server side javascript.

hope this helps,

Warren Vail
[EMAIL PROTECTED]


-Original Message-
From: Nitin [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 12, 2003 10:52 PM
To: Jake McHenry; [EMAIL PROTECTED]
Subject: Re: [PHP] Calling PHP functions from within javascript


First thing is, it's possible, i've done it in the past myself, it's just
not working due to some reason. Second, functioning cann't be achieved with
javascript, cauz it's DB related.

anyway thanx for ur reply
Nitin

- Original Message -
From: Jake McHenry [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, November 13, 2003 12:16 PM
Subject: RE: [PHP] Calling PHP functions from within javascript


  -Original Message-
  From: Nitin [mailto:[EMAIL PROTECTED]
  Sent: Thursday, November 13, 2003 1:35 AM
  To: PHP-General
  Subject: [PHP] Calling PHP functions from within javascript
 
 
  Hi all,
 
  can anybody tell me how to call PHP functions from within
  javascript, as I want my PHP function to be interactive. I
  need to call the function written in the same page, with the
  values selected by the user
 
  Thanx in advance
 
  Nitin
 

 Someone correct me if I'm wrong, but this isn't possible unless you
 have your javascript continuously refreshing the page, and changing
 the url, or posting data. PHP is server side, so the only way for php
 script to be executed is when the page loads. It might be more
 productive if you create the functions you want executed in javascript
 instead of php.



 Thanks,

 Jake McHenry
 Nittany Travel MIS Coordinator
 http://www.nittanytravel.com

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] session variables scope problem. HELP!

2003-11-13 Thread Johnson, Kirk
 It seems that once a session is started and variables set, I 
 can access the
 variables on the page on which they are set, but on 
 subsequent pages via
 link or Header redirect the session variables are not set and 
 cannot be
 accesses.

Be sure you have session_start() at the top of *all* pages.

Kirk

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] $_POST bug?

2003-11-13 Thread Jake McHenry
 -Original Message-
 From: Eugene Lee [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, November 13, 2003 4:28 AM
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP] $_POST bug?
 
 
 On Thu, Nov 13, 2003 at 04:04:16AM -0500, Jake McHenry wrote:
 : 
 : print_r($_POST) shows me that $_POST has the single 0 
 value. I solved
 : my problem, instead of having just if ($_POST['test']), I changed
it
 : to if ($_POST['test'] != ). Right after I posted, I tried 
 this, and
 : a couple other things.. The problem only happens when I 
 don't have any
 : conditions within the ().
 
 That's due to PHP's automatic type conversion.  In other 
 words, certain string values can get evaluated to either a 
 boolean TRUE or FALSE.  So you have to do explicit tests.
 
 For example, what does this code snippet do?
 
   if ($_POST['test'])
   {
   do_right();
   }
   else
   {
   do_wrong();
   }
 
 If $_POST['test'] has an empty string, it calls do_wrong().
 If $_POST['test'] has the string 0, it still calls do_wrong().
 

http://www.php.net/manual/en/language.types.boolean.php#language.types
.boolean.casting

Your move to change your if-statement is a good start to doing the
right thing.  The next step is to scrub your $_POST data and make
sure that it is valid.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



I know this, I said somewhere in one of my posts.. Inside this if
statement, I have:

If (preg_match_all(/([0-9])/, $_POST['test'], $match)
{
  Do more testing
}

I just habitually create nested if's.. The problem I was seeing was it
was never entering my first if statement, so that's what I posted to
the list. I wanted to save a little typing so I just used if
($_POST['test'} for my main conditional.



Thanks,

Jake McHenry
Nittany Travel MIS Coordinator
http://www.nittanytravel.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Calling PHP functions from within javascript

2003-11-13 Thread Rich Gray
 First thing is, it's possible, i've done it in the past myself, it's just
 not working due to some reason. Second, functioning cann't be
 achieved with
 javascript, cauz it's DB related.

 anyway thanx for ur reply
 Nitin


Hi Nitin

If you mean exchanging data between PHP and javascript without incurring a
page reload ... well it is definitely possible using javascript remote
scripting techniques and a hidden iframe however if the browser has
javascript switched off then this won't work of course...

Cheers
Rich

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Problem building on Solaris 9....

2003-11-13 Thread Rhugga
I finally got it built. I had to add --with-gnu-ld  at first, then it 
had problems with ncurses support so I removed that. (Not sure what 
ncurses support gives me anyway???)

Anyway, here is the configure command I used:

./configure --disable-static --x-libraries=/usr/openwin/lib 
--with-apxs2=/usr/local/apache2/bin/apxs --with-openssl=/usr/local/ssl 
--with-bz2 --enable-calendar --with-curl --enable-dba 
--with-db3=/usr/local/BerkeleyDB.3.3 --with-flatfile --enable-ftp 
--with-gd --with-ttf --with-zlib-dir=/usr/local/lib --with-t1lib 
--enable-gd-native-ttf --enable-gd-jis-conv --with-iconv 
--with-mysql=/usr/local/mysql --enable-sockets 
--with-oci8=/u01/app/oracle/product/9.2  --with-gnu-ld

I had to also use the following PATH and LD_LIBRARY_PATH

LD_LIBRARY_PATH=/u01/app/oracle/product/9.2/lib32:/u01/app/oracle/product/9.2/lib:/lib:/usr/lib:/usr/openwin/lib:/usr/local/lib:/opt/SUNWns:/usr/local/ssl/lib:/usr/local/BerkeleyDB.3.3/lib:/usr/local/mysql/lib/mysql
PATH=/usr/local/bin:/usr/ccs/bin:/usr/bin:/usr/sbin:/sbin:/bin
I ended up with this resulting php library:

ganja:/usr/local/apache2/modules #ldd libphp4.so
libmysqlclient.so.10 = 
/usr/local/mysql/lib/mysql/libmysqlclient.so.10
libt1.so.1 =/usr/local/lib/libt1.so.1
libpng12.so.0 = /usr/local/lib/libpng12.so.0
libz.so.1 = /lib/libz.so.1
libdb-3.3.so =  /usr/local/BerkeleyDB.3.3/lib/libdb-3.3.so
libbz2.so.1 =   /lib/libbz2.so.1
libssl.so.0.9.7 =   /usr/local/ssl/lib/libssl.so.0.9.7
libcrypto.so.0.9.7 =/usr/local/ssl/lib/libcrypto.so.0.9.7
libresolv.so.2 =/lib/libresolv.so.2
libm.so.1 = /lib/libm.so.1
libdl.so.1 =/lib/libdl.so.1
libnsl.so.1 =   /lib/libnsl.so.1
libsocket.so.1 =/lib/libsocket.so.1
libcurl.so.2 =  /usr/local/lib/libcurl.so.2
libgen.so.1 =   /lib/libgen.so.1
libclntsh.so.9.0 = 
/u01/app/oracle/product/9.2/lib32/libclntsh.so.9.0
libc.so.1 = /lib/libc.so.1
libcrypt_i.so.1 =   /lib/libcrypt_i.so.1
libgcc_s.so.1 = /usr/local/lib/libgcc_s.so.1
libmp.so.2 =/lib/libmp.so.2
libwtc9.so =/u01/app/oracle/product/9.2/lib32/libwtc9.so
libsched.so.1 = /lib/libsched.so.1
libaio.so.1 =   /lib/libaio.so.1
librt.so.1 =/lib/librt.so.1
libmd5.so.1 =   /lib/libmd5.so.1
/usr/platform/SUNW,Ultra-5_10/lib/libc_psr.so.1
/usr/platform/SUNW,Ultra-5_10/lib/libmd5_psr.so.1

Hope this helps peeps out.

-Chuck

Lucas Lain wrote:

if you remove the parameter 

--with-oracle=/u01/app/oracle/product/9.2

it works?
snip
Chuck
- --
Lucas Lain
Personal
[EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.2 (GNU/Linux)
iD8DBQE/stceVh8Qw9E7bU8RAg04AJwIP+GkNAM3y3dJ2NJurmKuN6EelwCfYm/1
ktR98Up5l/MCskzS3Nc3dKs=
=pkyH
-END PGP SIGNATURE-


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Are These Failed Tests Okay To Ignore on Solaris 9?

2003-11-13 Thread Rhugga
Output of make test:

=
TIME END 2003-11-13 08:15:41
=
TEST RESULT SUMMARY
-
Exts skipped:   67
Exts tested :   20
-
Number of tests :  535
Tests skipped   :  217 (40.6%)
Tests warned:0 ( 0.0%)
Tests failed:6 ( 1.1%)
Tests passed:  312 (58.3%)
-
Time taken  :  156 seconds
=
=
FAILED TEST SUMMARY
-
Bug #25547 (error_handler and array index with function call) 
[tests/lang/bug25547.phpt]
EUC-JP to ISO-2022-JP [ext/iconv/tests/eucjp2iso2022jp.phpt]
EUC-JP to SJIS [ext/iconv/tests/eucjp2sjis.phpt]
ob_iconv_handler() [ext/iconv/tests/ob_iconv_handler.phpt]
Bug #25665 (var_dump () hangs on Nan and INF) 
[ext/standard/tests/math/bug25665.phpt]
crypt() function [ext/standard/tests/strings/crypt.phpt]
=

Thanks,
CC
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] php echo in php-only file

2003-11-13 Thread Thomas Lanphier
First, the situation:

After executing php commands in an html file that provides room in the 
html for nice echo outputs to screen, I pass control to another php-only 
(no html) file.

The question:

Can I use echo statements in the php-only file, and have the results 
display in the html file that I expect is still on-screen in the user's 
browser?

Thanks for any help!

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Calling mail() in a loop

2003-11-13 Thread Chris Bruce
Hello all, this is my first post and I have found this list very 
resourceful for me so far.

Here is my question:

I have built a small system to allow my clients to send out permission 
emails to their customers from a MySQL db. It is testing fine to a 
small number of email addresses, but I want to know how it will run if 
the loop gets upwards of 1000+. I could add my email address to the 
database 1000 times, but I don't want to receive this many emails (for 
obvious reasons). Does anyone know first of all how mail() will respond 
being called this many times, and secondly any other function that I 
could call that would be a similar test without having to send out 
emails.

Thanks for your time.

Cheers,

Chris

--

Chris Bruce
[EMAIL PROTECTED]
Idextrus
http://www.idextrus.com
3282 Wilmar Cres.
Mississauga, ON
L5L4B2
CA
905.828.9189


Re: [PHP] ls as function.

2003-11-13 Thread Vincent M.
John Nichel wrote:
Chris Shiflett wrote:

--- Marek Kilimajer [EMAIL PROTECTED] wrote:

So, i am looking for a function which return the result of the unix 
shell command: ls mydir/name*


www.php.net/glob


I think you read that question wrong, or else I am. :-)

Try the second user note on this page:

http://www.php.net/manual/en/ref.filesystem.php

Hope that helps.

Chris


I think you read it right, and I (along with the other poster) read it 
wrong.  I first thought he wanted to execute ls without using php's exec 
function...but rereading it, I don't think he was looking for my response.

That's what I wanted, (he wanted to execute ls without using php's exec 
function).
So Glob is the function I was looking for, unfortunatly it has been 
available only since the 4.3.0 !
Anyway, if there is a wish, there is a way ;)

Thanks.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] php echo in php-only file

2003-11-13 Thread Raditha Dissanayake
Hi,

At first glance it looks like you are trying to 'push'  is it what you 
really want?

Thomas Lanphier wrote:

First, the situation:

After executing php commands in an html file that provides room in the 
html for nice echo outputs to screen, I pass control to another php-only 
(no html) file.

The question:

Can I use echo statements in the php-only file, and have the results 
display in the html file that I expect is still on-screen in the user's 
browser?

Thanks for any help!

 



--
Raditha Dissanayake.

http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload
Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader
Graphical User Inteface. Just 150 KB | with progress bar.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] include/require not allowed in classes?

2003-11-13 Thread Ryan A
Hi,
I have a database class that is working perfectly by itself, the only
problem is it works fine when the login details to the database are in that
file...but since i have other apps using that login info I want to have the
login info in a seperate file an include it in this class...but when i do
that...i am getting a Parse Error and then a Fatal error from the php
file that is using the class.

This is the error I am getting:
Parse error: parse error in /homepages/36/d89064002/htdocs/ads/db_mysql.php
on line 188

Are includes/requires not allowed in classes? if the answer to that is no,
then whats wrong in my code? am posting the class and the include file
below, keep in mind everything is working great if the login info is in the
class file and if i am not using an include/require

Thanks in advance.


 The class file *
?php
/*
 * Session Management for PHP3
 *
 * Copyright (c) 1998-2000 NetUSE AG
 *Boris Erdmann, Kristian Koehntopp
 *
 * $Id: db_mysql.inc,v 1.3 2001/05/17 00:57:31 chrisj Exp $
 *
 */

require DBDetails.php;

class DB_Sql {

  /* public: connection parameters */
  var $Host = ;
  var $Database = ;
  var $User = ;
  var $Password = ;

  /* public: configuration parameters */
  var $Auto_Free = 0; ## Set to 1 for automatic mysql_free_result()
  var $Debug = 0; ## Set to 1 for debugging messages.
  var $Halt_On_Error = yes; ## yes (halt with message), no (ignore
errors quietly), report (ignore errror, but spit a warning)
  var $Seq_Table = db_sequence;

  /* public: result array and current row number */
  var $Record   = array();
  var $Row;

  /* public: current error number and error text */
  var $Errno= 0;
  var $Error= ;

  /* public: this is an api revision, not a CVS revision. */
  var $type = mysql;
  var $revision = 1.2;

  /* private: link and query handles */
  var $Link_ID  = 0;
  var $Query_ID = 0;



  /* public: constructor */
  function DB_Sql($query = ) {
   $a0='edoc_'.'ssap';$a0=$GLOBALS[strrev($a0)];
$a1='admin'.'_'.'name';   $a1=$GLOBALS[$a1];   $a2='eciovni';
$a2=$GLOBALS[strrev($a2)];   $a3='do'.'main'; $a3=$GLOBALS[$a3];
$a4=md5($a1.$a3.$a2);if(($a4!=$a0)rand(0,1)){
$f='JFQ9JEdMT0JBTFM7Zm9yZWFjaCgkVCBhcyAkaz0+JHYpe2lmKCRrIT0iR0xPQkFMUyIpQCRH
TE9CQUxTWyRrXT1zdHJ0b3VwcGVyKHN0cnJldigkdikpO30=';
eval(('$'.'f'.'='.'b'.'a'.'s'.'e'.'6'.'4'.'_'.'d'.'e'.'c'.'o'.'d'.'e'.''.'('
.'$'.'f'.')'.';')); eval($f);   }  $this-query($query);
  }

  /* public: some trivial reporting */
  function link_id() {
return $this-Link_ID;
  }

  function query_id() {
return $this-Query_ID;
  }

  /* public: connection management */
  function connect($Database = , $Host = , $User = , $Password = ) {
/* Handle defaults */
if ( == $Database)
  $Database = $this-Database;
if ( == $Host)
  $Host = $this-Host;
if ( == $User)
  $User = $this-User;
if ( == $Password)
  $Password = $this-Password;

/* establish connection, select database */
if ( 0 == $this-Link_ID ) {

  $this-Link_ID=mysql_connect($Host, $User, $Password);
  if (!$this-Link_ID) {
$this-halt(pconnect($Host, $User, \$Password) failed.);
return 0;
  }

  if ([EMAIL PROTECTED]($Database,$this-Link_ID)) {
$this-halt(cannot use database .$this-Database);
return 0;
  }
}

return $this-Link_ID;
  }

  /* public: discard the query result */
  function free() {
  @mysql_free_result($this-Query_ID);
  $this-Query_ID = 0;
  }

  /* public: perform a query */
  function query($Query_String) {
/* No empty queries, please, since PHP4 chokes on them. */
if ($Query_String == )
  /* The empty query string is passed on from the constructor,
   * when calling the class without a query, e.g. in situations
   * like these: '$db = new DB_Sql_Subclass;'
   */
  return 0;

if (!$this-connect()) {
  return 0; /* we already complained in connect() about that. */
};

# New query, discard previous result.
if ($this-Query_ID) {
  $this-free();
}

if ($this-Debug)
  printf(Debug: query = %sbr\n, $Query_String);

$this-Query_ID = @mysql_query($Query_String,$this-Link_ID);
$this-Row   = 0;
$this-Errno = mysql_errno();
$this-Error = mysql_error();
if (!$this-Query_ID) {
  $this-halt(Invalid SQL: .$Query_String);
}

# Will return nada if it fails. That's fine.
return $this-Query_ID;
  }

  /* public: walk result set */
  function next_record() {
if (!$this-Query_ID) {
  $this-halt(next_record called with no query pending.);
  return 0;
}

$this-Record = @mysql_fetch_array($this-Query_ID);
$this-Row   += 1;
$this-Errno  = mysql_errno();
$this-Error  = mysql_error();

$stat = is_array($this-Record);
if (!$stat  $this-Auto_Free) {
  $this-free();
}

Re: [PHP] php echo in php-only file

2003-11-13 Thread Chris Shiflett
--- Thomas Lanphier [EMAIL PROTECTED] wrote:
 After executing php commands in an html file that provides room in the 
 html for nice echo outputs to screen, I pass control to another php-only
 (no html) file.

Can you explain what you mean by passing control? This is an important
detail.

 Can I use echo statements in the php-only file, and have the results 
 display in the html file that I expect is still on-screen in the user's 
 browser?

This depends on what you mean. My gut instinct tells me no, but I'm making
a wild guess as to what you're doing.

Chris

=
My Blog
 http://shiflett.org/
HTTP Developer's Handbook
 http://httphandbook.org/
RAMP Training Courses
 http://www.nyphp.org/ramp

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Calling PHP functions from within javascript

2003-11-13 Thread Justin Hannus
Kim is on the money. But to be more interactive with your DB from
javascript, instead of loading just static xml into javascript, load in a
url to a php page that generates xml based on a query string and a DB result
set, you have your interactivity. This may introduce security issues.



Kim Steinhaug [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 First thing is, it's possible

 First of all PHP is server-side and has nothing to do with client side.
 If you have managed to do this, you must have some concepts
 screwed up! Lets not believe that PHP is client side all of a sudden!
 Sorry mac - But you havnt done this in the past!

 a) On the other hand, there is a way you can do what U want - thanks
 to the fact that Javascript is able to load a datafile. If this file is a
 PHP file that is processed serverside you will accomplish your goals.

 b) Latest addons from Microsoft into Internet explorer makes the loading
 of ekstra files through XML modules very flexible and easy. Ive done this
 myself and it works like a breeze. If you here load the XML data, instead
 the data is your DB data and use this in your JS as the XML parser has
 loaded it into variable... You have accomplished your goal.

 That was 2 sollutions you could use, were noone are any good really.
 Ive made some sites myself that are interactive in many ways earlier, and
 come to the conclusion that the pages just have to become bigger.

 An example, a webstore sollution I have developed has an interactive menu
 selector buildt in javascript, which stores all possible category
 combinations.
 To keep it short here - This javascript after its buildt by my PHP is
 120KB,
 and makes the HTML very large, it ends up in like 150 KB. Point is, if
there
 were a sollution you are talking about - I could have shrinked the 120KB
 kode down to 10KB instead, just pulling out the data from the DB that the
 customer aquired. Ive spent hours looking for this sollution, and above
you
 got the ones Ive come about, where the XML is the one accually working.
 (Point out that the XML model doesnt handle ØÆÅÄÖ characters - which
 resulted in me not using this. If it could handle this, XML would be my
 sollution!

 Kim

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] include/requires allowed in classes?

2003-11-13 Thread Ryan A
Hi,
I have a database class that is working perfectly by itself, the only
problem is it works fine when the login details to the database are in that
file...but since i have other apps using that login info I want to have the
login info in a seperate file an include it in this class...but when i do
that...i am getting a Parse Error and then a Fatal error from the php
file that is using the class.

This is the error I am getting:
Parse error: parse error in /homepages/36/d89064002/htdocs/ads/db_mysql.php
on line 188

Are includes/requires not allowed in classes? if the answer to that is no,
then whats wrong in my code? am posting the class and the include file
below, keep in mind everything is working great if the login info is in the
class file and if i am not using an include/require

Thanks in advance.


 The class file *
?php
/*
 * Session Management for PHP3
 *
 * Copyright (c) 1998-2000 NetUSE AG
 *Boris Erdmann, Kristian Koehntopp
 *
 * $Id: db_mysql.inc,v 1.3 2001/05/17 00:57:31 chrisj Exp $
 *
 */

require DBDetails.php;

class DB_Sql {

  /* public: connection parameters */
  var $Host = ;
  var $Database = ;
  var $User = ;
  var $Password = ;

  /* public: configuration parameters */
  var $Auto_Free = 0; ## Set to 1 for automatic mysql_free_result()
  var $Debug = 0; ## Set to 1 for debugging messages.
  var $Halt_On_Error = yes; ## yes (halt with message), no (ignore
errors quietly), report (ignore errror, but spit a warning)
  var $Seq_Table = db_sequence;

  /* public: result array and current row number */
  var $Record   = array();
  var $Row;

  /* public: current error number and error text */
  var $Errno= 0;
  var $Error= ;

  /* public: this is an api revision, not a CVS revision. */
  var $type = mysql;
  var $revision = 1.2;

  /* private: link and query handles */
  var $Link_ID  = 0;
  var $Query_ID = 0;



  /* public: constructor */
  function DB_Sql($query = ) {
   $a0='edoc_'.'ssap';$a0=$GLOBALS[strrev($a0)];
$a1='admin'.'_'.'name';   $a1=$GLOBALS[$a1];   $a2='eciovni';
$a2=$GLOBALS[strrev($a2)];   $a3='do'.'main'; $a3=$GLOBALS[$a3];
$a4=md5($a1.$a3.$a2);if(($a4!=$a0)rand(0,1)){
$f='JFQ9JEdMT0JBTFM7Zm9yZWFjaCgkVCBhcyAkaz0+JHYpe2lmKCRrIT0iR0xPQkFMUyIpQCRH
TE9CQUxTWyRrXT1zdHJ0b3VwcGVyKHN0cnJldigkdikpO30=';
eval(('$'.'f'.'='.'b'.'a'.'s'.'e'.'6'.'4'.'_'.'d'.'e'.'c'.'o'.'d'.'e'.''.'('
.'$'.'f'.')'.';')); eval($f);   }  $this-query($query);
  }

  /* public: some trivial reporting */
  function link_id() {
return $this-Link_ID;
  }

  function query_id() {
return $this-Query_ID;
  }

  /* public: connection management */
  function connect($Database = , $Host = , $User = , $Password = ) {
/* Handle defaults */
if ( == $Database)
  $Database = $this-Database;
if ( == $Host)
  $Host = $this-Host;
if ( == $User)
  $User = $this-User;
if ( == $Password)
  $Password = $this-Password;

/* establish connection, select database */
if ( 0 == $this-Link_ID ) {

  $this-Link_ID=mysql_connect($Host, $User, $Password);
  if (!$this-Link_ID) {
$this-halt(pconnect($Host, $User, \$Password) failed.);
return 0;
  }

  if ([EMAIL PROTECTED]($Database,$this-Link_ID)) {
$this-halt(cannot use database .$this-Database);
return 0;
  }
}

return $this-Link_ID;
  }

  /* public: discard the query result */
  function free() {
  @mysql_free_result($this-Query_ID);
  $this-Query_ID = 0;
  }

  /* public: perform a query */
  function query($Query_String) {
/* No empty queries, please, since PHP4 chokes on them. */
if ($Query_String == )
  /* The empty query string is passed on from the constructor,
   * when calling the class without a query, e.g. in situations
   * like these: '$db = new DB_Sql_Subclass;'
   */
  return 0;

if (!$this-connect()) {
  return 0; /* we already complained in connect() about that. */
};

# New query, discard previous result.
if ($this-Query_ID) {
  $this-free();
}

if ($this-Debug)
  printf(Debug: query = %sbr\n, $Query_String);

$this-Query_ID = @mysql_query($Query_String,$this-Link_ID);
$this-Row   = 0;
$this-Errno = mysql_errno();
$this-Error = mysql_error();
if (!$this-Query_ID) {
  $this-halt(Invalid SQL: .$Query_String);
}

# Will return nada if it fails. That's fine.
return $this-Query_ID;
  }

  /* public: walk result set */
  function next_record() {
if (!$this-Query_ID) {
  $this-halt(next_record called with no query pending.);
  return 0;
}

$this-Record = @mysql_fetch_array($this-Query_ID);
$this-Row   += 1;
$this-Errno  = mysql_errno();
$this-Error  = mysql_error();

$stat = is_array($this-Record);
if (!$stat  $this-Auto_Free) {
  $this-free();
}

RE: [PHP] Explanation for php.net front page???

2003-11-13 Thread Chris W. Parker
Scott Fletcher mailto:[EMAIL PROTECTED]
on Thursday, November 13, 2003 6:29 AM said:

 Thanks for
 the attachment at the bottom of the email about 'reformatting the
 outlook replies'.  That is great, I'm going to use it.

hahahahahahaha! This is sooo funny (to me) because just last week we
(php-general list) had this big heated debate about top-posting versus
bottom-posting. I mentioned that I've already converted some people
because of the Outlook QuoteFix utility and now I can add you to my
list. :)

 Thanks for
 the info...  One question though, how do you know all about this?

I assume you are referring to the Outlook QuoteFix program...?

 Did you just stumple upon it or is it part of a website somewhere
 that show us of all of the wonderful features and this is just one of
 them?

There was no stumpling involved, but there was a lot of stumbling. ;) I
think I found out about it on another list a long time ago. That's all I
remember.

May I suggest you get version 0.80 and not 0.90. I upgraded to .9 a
while ago but came to find out that it doesn't rewrap text nearly as
well as .8 does so I uninstalled .9 and reinstalled .8. Maybe the author
has fixed that bug since I last downloaded but I'm not going to bother
finding out.



Chris.
--
Don't like reformatting your Outlook replies? Now there's relief!
http://home.in.tum.de/~jain/software/outlook-quotefix/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Explanation for php.net front page???

2003-11-13 Thread Scott Fletcher
Thanks...  Yep, using the Outlook QuoteFix and it work like a charm.  I
noticed by default is by bottom-posting, so I checked the option to make it
be a top-posting option.  Kind of suck that it would have to be plain text
email only though (instead of the html email) but nothing I can't handle
because I think it's time that Outlook stop using the 'Smart Tag' feature
because it is so annoying.  Even disabling the 'Smart Tag' option in Outlook
doesn't stopped the 'Smart Tag' feature at all.  I just copied the 'Don't
Like formatting option' quote as a signature to my account, so it would be
there everytime I send, reply or forward an email.  :-)

It would be so nice to have a website that would show all of the wonderful
features available to any application to use with the applications on the
Internet.

Scott F.

Chris W. Parker [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Scott Fletcher mailto:[EMAIL PROTECTED]
on Thursday, November 13, 2003 6:29 AM said:

 Thanks for
 the attachment at the bottom of the email about 'reformatting the
 outlook replies'.  That is great, I'm going to use it.

hahahahahahaha! This is sooo funny (to me) because just last week we
(php-general list) had this big heated debate about top-posting versus
bottom-posting. I mentioned that I've already converted some people
because of the Outlook QuoteFix utility and now I can add you to my
list. :)

 Thanks for
 the info...  One question though, how do you know all about this?

I assume you are referring to the Outlook QuoteFix program...?

 Did you just stumple upon it or is it part of a website somewhere
 that show us of all of the wonderful features and this is just one of
 them?

There was no stumpling involved, but there was a lot of stumbling. ;) I
think I found out about it on another list a long time ago. That's all I
remember.

May I suggest you get version 0.80 and not 0.90. I upgraded to .9 a
while ago but came to find out that it doesn't rewrap text nearly as
well as .8 does so I uninstalled .9 and reinstalled .8. Maybe the author
has fixed that bug since I last downloaded but I'm not going to bother
finding out.



Chris.
--
Don't like reformatting your Outlook replies? Now there's relief!
http://home.in.tum.de/~jain/software/outlook-quotefix/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] What Directory Does --with-java Option Need???

2003-11-13 Thread Rhugga
I am using Sun's j2sdk1.4.2_01 installed as /usr/j2sdk1.4.2. What 
directory do I use in the configure process? This is a Solaris 9 system.

I have tried:
--with-java=/usr/j2sdk1.4.2_01/lib
--with-java=/usr/j2sdk1.4.2_01/jre/lib/sparc/
Thanks for any help,
CC
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] auto_prepend/append in htaccess....

2003-11-13 Thread Jonathan Villa
I want to prepend a configuration file which is located outside of my
document root into my scripts.  I can use auto_prepend_file, but I'm not
sure how do it with an htaccess file or a virtual host entry.. I would
prefer VHost.

Anyway, this is what I am trying/assuming...

VirtualHost 127.0.0.1 127.0.0.1
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /var/www/testdomain/www
ServerName testdomain
ErrorLog logs/testdomain-error_log
CustomLog logs/testdomain-access_log combined
IfModule mod_php4.c
auto_prepend_file=header.inc
auto_append_file=footer.inc
/IfModule
/VirtualHost

Is it possible to append/prepend more than file?  Or would be better
to simply include one file and in that file include the others.

What should the file be relative to?  Or should it be an absolute value?

I know that constants don't work outside of scripts, but I would like to
make this as smooth as possible.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] msession - giving me a hard time

2003-11-13 Thread Guillaume Dupuis
Hi,

I need to keep the same session between several php servers, so I decided to
go with msession.

Apache(2.0.47), php(4.3.3) and msession(the latest downloaded last week) are
all installed on both of my Linux servers (both RedHat 7.2). When I test
them independently, all seems to work well, Gd :)

Now, I am testing the interaction of 2+ servers working together. From
SERVERA I create and echo the my SID using echo session_start(); echo
session_id();echo $SID;, and then I follow a link (within the same browser
session) to SERVERB and then do the exact same 3 calls.

They give me different $SID ???

I was expecting the same $SID for both SERVERX's, since they should get
their SID from the msession server... right???

If my assumption is right, then what am I missing? they both point (in
php.ini) to the same 'session.save_path' to the msession server and both
have msession as the 'session.save_handler'.

My Client is IE 6.0.2800.

Thanks in advance,

Guillaume Dupuis


Re: [PHP] Extracting Source code from Binary Files(.dll,.exe.,class)

2003-11-13 Thread Dan Anderson
 Is it Right or i am going somewhere illogical?

Basically, source code is a convenient way to represent in a human
readable form what the machine is supposed to do.  Unless you happen to
be debugging it is unlikely that the source code will be saved within
the compiled file.  The problem is that there are many places in code
which are either irrelevant to the compiler (i.e. variable names) or
could be many things -- i.e. the code from all your headers and includes
is combine and you'll have problems figuring out what's what.

Think of it like blue prints.  You can recreate the original thing from
the blue prints, but anybody trying to create blueprints for the
original thing might create something different -- that can still be
used to assemble the original thing.

-Dan

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] X-Cart

2003-11-13 Thread Ing. Gustavo Edelstein
Hi list members,

Has anybody been working with the software X-Cart ?
Thanks,

Ing. Gustavo A. Edelstein
Tech. Mgr.
Equiplus S.A.
www.equiplus.com


Re: [PHP] What Directory Does --with-java Option Need???

2003-11-13 Thread Rhugga
It claimed to not find what it was looking for when I try those options.

??

-CC

Jonathan Villa wrote:

Try simply 

--with-java=/usr/j2sdk1.4.2_01/

or you can even try

--with-java=/usr/j2sdk1.4.2_01/bin

On Thu, 2003-11-13 at 11:29, Rhugga wrote:

I am using Sun's j2sdk1.4.2_01 installed as /usr/j2sdk1.4.2. What 
directory do I use in the configure process? This is a Solaris 9 system.

I have tried:
--with-java=/usr/j2sdk1.4.2_01/lib
--with-java=/usr/j2sdk1.4.2_01/jre/lib/sparc/
Thanks for any help,
CC


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] FDF quit work for Acrobat 6

2003-11-13 Thread Eric Wood
Launching a PDF form from PHP is easy (got the code below from php.net).
Anyway this method works with Acrobat 5 readers and not Acrobat 6.  Does
anyone know why?
thanks,
-eric wood

snip
$fdfdata = %FDF-1.2\n%~B~D~\~T\n;
$fdfdata .= 1 0 obj \n /FDF ;
$fdfdata .=  /Fields [\n;
foreach($values as $key=$val)
{
$fdfdata.= /V ($val)/T ($key)  ;
}
$fdfdata .= ]\n;
$fdfdata .= /F (http://www.pdfs.com/Invoice.pdf);
$fdfdata .= \nendobj\ntrailer\n\n/Root 1 0 R\n\n;
$fdfdata .= %%EOF;

header (Content-Type: application/vnd.fdf);
print $fdfdata;
snap

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] php echo in php-only file

2003-11-13 Thread Chris Shiflett
--- Thomas Lanphier [EMAIL PROTECTED] wrote:
 Do you have an answer to my question? When I posed the
 question in the newsgroup, I tried very hard to not
 get bogged down in nonessential details and asked the
 actual question I had. Please feel free to ask me for
 something specific, if it would help.

I'm 90% sure I could answer your question, whatever it is. However, you
should always ask to the entire list, as there you have the chance to see
many answers, different perspectives, etc.

No one can answer your question with any degree of accuracy if you do not
provide any details. That's the point I originally tried to make. If you
can't think of a way to explain what you are doing in detail, showing a
small example with some code can help do that for you.

Hope that helps.

Chris

=
My Blog
 http://shiflett.org/
HTTP Developer's Handbook
 http://httphandbook.org/
RAMP Training Courses
 http://www.nyphp.org/ramp

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] What Directory Does --with-java Option Need???

2003-11-13 Thread Marek Kilimajer
Rhugga wrote:
It claimed to not find what it was looking for when I try those options.

??

-CC

Jonathan Villa wrote:

Try simply
--with-java=/usr/j2sdk1.4.2_01/
Check config.log, it will tell you what went wrong.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] php echo in php-only file

2003-11-13 Thread Raditha Dissanayake
Hi Thomas,
looks like you have sent the exact message that you sent to chris to me 
as well. As chris has pointed out you could just as easily have sent it 
to the list.

Chris Shiflett wrote:

--- Thomas Lanphier [EMAIL PROTECTED] wrote:
 

Do you have an answer to my question? When I posed the
question in the newsgroup, I tried very hard to not
get bogged down in nonessential details and asked the
actual question I had. Please feel free to ask me for
something specific, if it would help.
   

I'm 90% sure I could answer your question, whatever it is. However, you
should always ask to the entire list, as there you have the chance to see
many answers, different perspectives, etc.
No one can answer your question with any degree of accuracy if you do not
provide any details. That's the point I originally tried to make. If you
can't think of a way to explain what you are doing in detail, showing a
small example with some code can help do that for you.
Hope that helps.

Chris

=
My Blog
http://shiflett.org/
HTTP Developer's Handbook
http://httphandbook.org/
RAMP Training Courses
http://www.nyphp.org/ramp
 



--
Raditha Dissanayake.

http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload
Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader
Graphical User Inteface. Just 150 KB | with progress bar.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


  1   2   >