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

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

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

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

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

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

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

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

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

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

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

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,

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

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

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

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

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:

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

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

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

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

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.

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

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

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

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

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

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

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

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.

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

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

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

[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

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

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

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

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

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

[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

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

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

[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

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

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

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

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

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

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

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

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

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

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

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:

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

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

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

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:

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

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

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*

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

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

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

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

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

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)

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

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

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

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

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

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

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

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

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,

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

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

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

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:

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