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

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

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

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

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

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

[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

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

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

[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...

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,

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

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,

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

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

[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

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

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

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

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()

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 ;)

[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:

[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

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

[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

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

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.

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

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

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

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

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,

[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

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

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

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.

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

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

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

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

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

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.

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

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

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...

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

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

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

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

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

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

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

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

[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

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

[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

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

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

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

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

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

[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:

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

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

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

[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:

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

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

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*

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

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

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

[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:

[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

[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

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

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)

[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

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

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

[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

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

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

[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

[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

[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,

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

[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

[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

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

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:

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

  1   2   >