php-windows Digest 4 Dec 2002 07:04:04 -0000 Issue 1469
Topics (messages 17239 through 17251):
Re: I cant run an external command
17239 by: Luis Moreira
17240 by: J.Veenhuijsen
GD with Gif upport for 4.2.2
17241 by: erich
data format..
17242 by: Sandeep Murphy
17243 by: DL Neil
17244 by: Sandeep Murphy
17250 by: Cam Dunstan
17251 by: Leon
checking if is FORM is POSTED
17245 by: Matt Babineau
17248 by: Dash McElroy
Do NEbody have example of the following ??
17246 by: Raheel Hussain
Pointers??
17247 by: Raheel Hussain
Script lifetime
17249 by: Radovan Radic
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
Exactly what is the error ?
What OS are you running ?
There is a difference between using the character ' and the character ", you know ?
For instance, the script
$filename="test.txt";
$f = shell_exec("notepad.exe $filename");
will open TEST.TXT, but is younger brother
$filename="test.txt";
$f = shell_exec('notepad.exe $filename');
will open the file $FILENAME.TXT and that could be a problem.
Luis
----- Original Message -----
From: "s" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, December 03, 2002 10:29 AM
Subject: [PHP-WIN] I cant run an external command
> Hi,
>
>
> I wrote a form for add user on email server
> but the line
> $f =shell_exec( `d:\imail\adduser.exe -u $userid -p $password2`);
> return alway error
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
Maybe this is caused by Safe-mode
If php is in safe-mode shell_exec won't run
Jochem
S wrote:
Hi,
I wrote a form for add user on email server
but the line
$f =shell_exec( `d:\imail\adduser.exe -u $userid -p $password2`);
return alway error
--- End Message ---
--- Begin Message ---
Hi where i can find a compiled GD extension with Gif support for PHP 4.2.2
for a WAMP Installation ??
Any Help ?
Greetings
--- End Message ---
--- Begin Message ---
Hi,
I have a PHP - MySQL site on one hand and various types of clients .. mean to say, I
hv clients who need the data in the MySQL db supplied to them in MS Access, Excel,
Dbase formats such that they can integrate the data directly into their existing type
of database.
for Excel, I can probably create a csv file... any ideas for the other??
any suggestions as to where I can start & how !!??
tia,
sands
--- End Message ---
--- Begin Message ---
Hi Sands,
I have a PHP - MySQL site on one hand and various types of clients .. mean
to say, I hv clients who need the data in the MySQL db supplied to them in
MS Access, Excel, Dbase formats such that they can integrate the data
directly into their existing type of database.
for Excel, I can probably create a csv file... any ideas for the other??
any suggestions as to where I can start & how !!??
=start by searching the archives of this discussion list.
=dn
--- End Message ---
--- Begin Message ---
Thnx Neil, tried that but didnt comeup with very helpful info.. prob am not doing the
search right..
wud appreciate some tips..
cheers.
-----Original Message-----
From: DL Neil [mailto:[EMAIL PROTECTED]]
Sent: terça-feira, 3 de Dezembro de 2002 16:37
To: Sandeep Murphy; [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] data format..
Hi Sands,
I have a PHP - MySQL site on one hand and various types of clients .. mean
to say, I hv clients who need the data in the MySQL db supplied to them in
MS Access, Excel, Dbase formats such that they can integrate the data
directly into their existing type of database.
for Excel, I can probably create a csv file... any ideas for the other??
any suggestions as to where I can start & how !!??
=start by searching the archives of this discussion list.
=dn
--- End Message ---
--- Begin Message ---
sands,
comma delimited text (or tab delimited) will do for all of them, unless the
dbase app does not have import facility, in which case you could structure
up the data into genereic dbase format yourself, its a fairly simple format,
a header with info about fieldnames, sizes and types, followed by fixed
length records thereafter. Stick with an old format, such as dBase3 or 4
formats with no index or mdx files associated with same. dbase was the best
thing since sliced bread for years, but it is a little dated these days,
maybe you can charge em more by offering to upgrade them to MySQL / PHP
intranet!!
Cheers CD
----- Original Message -----
From: "DL Neil" <[EMAIL PROTECTED]>
To: "Sandeep Murphy" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, December 04, 2002 3:36 AM
Subject: Re: [PHP-WIN] data format..
> Hi Sands,
>
> I have a PHP - MySQL site on one hand and various types of clients .. mean
> to say, I hv clients who need the data in the MySQL db supplied to them in
> MS Access, Excel, Dbase formats such that they can integrate the data
> directly into their existing type of database.
>
> for Excel, I can probably create a csv file... any ideas for the other??
>
> any suggestions as to where I can start & how !!??
>
>
> =start by searching the archives of this discussion list.
> =dn
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
Hi
I have only one major problem with the solution below and that is as follows:
MySQL does not follow SQL standards ie: You could have been using data types
that would not import to a PgSQL server and there is little to nothing you can
do about that!!!
Sorry to be the one to tell you this, but I fell in the same trap long ago
Cheers
Cam Dunstan wrote:
> sands,
> comma delimited text (or tab delimited) will do for all of them, unless the
> dbase app does not have import facility, in which case you could structure
> up the data into genereic dbase format yourself, its a fairly simple format,
> a header with info about fieldnames, sizes and types, followed by fixed
> length records thereafter. Stick with an old format, such as dBase3 or 4
> formats with no index or mdx files associated with same. dbase was the best
> thing since sliced bread for years, but it is a little dated these days,
> maybe you can charge em more by offering to upgrade them to MySQL / PHP
> intranet!!
>
> Cheers CD
>
> ----- Original Message -----
> From: "DL Neil" <[EMAIL PROTECTED]>
> To: "Sandeep Murphy" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Wednesday, December 04, 2002 3:36 AM
> Subject: Re: [PHP-WIN] data format..
>
> > Hi Sands,
> >
> > I have a PHP - MySQL site on one hand and various types of clients .. mean
> > to say, I hv clients who need the data in the MySQL db supplied to them in
> > MS Access, Excel, Dbase formats such that they can integrate the data
> > directly into their existing type of database.
> >
> > for Excel, I can probably create a csv file... any ideas for the other??
> >
> > any suggestions as to where I can start & how !!??
> >
> >
> > =start by searching the archives of this discussion list.
> > =dn
> >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--
Leon Jansen van Nieuwenhuizen
Personal Computing Services
Information & Communication Technology Services
University of Cape Town
Email: [EMAIL PROTECTED]
__________________________
__________________________
--- End Message ---
--- Begin Message ---
What is the best way to check if a form is posted so people can't post
to my forms? I want to make sure that the post is coming from the right
page and that it is indeed a post operation.
Thx,
Matt
--- End Message ---
--- Begin Message ---
You can check $_SERVER['REQUEST_METHOD'] to see if the data has come from
POST, and check $_SERVER['HTTP_REFERER'] to see what page the data came
from. However, note that the HTTP_REFERER method cannot be trusted because
the following are possible:
1. User could have referers turned off (Mozilla can do this, probably a few
others, plus broken web browsers/proxy servers). Mozilla had broken referers
for a while.
2. Joe B Cracker can easily change what referer value is sent to the server
(I can do this easy in SamSpade)
NEVER trust anything that comes from the user's browser. I saw a great
article the other day called "The Peon's Guide to Secure System Development"
(http://m.bacarella.com/papers/secsoft/) that offers great advice: "Filter
out everything *but* good data instead."
You can't control what may find it's way there - just check for what should
be there and if stuff isn't (or extra stuff is) you can do whatever you want
from there.
-Dash
-----Original Message-----
From: Matt Babineau [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 03, 2002 9:22 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] checking if is FORM is POSTED
What is the best way to check if a form is posted so people can't post to
my forms? I want to make sure that the post is coming from the right page
and that it is indeed a post operation.
Thx,
Matt
--- End Message ---
--- Begin Message ---
function SetDomain(d) { document.domain = d; }
hi , I was reading the following quiestion and its description but couldn't get to the
edge of it.
but if some body give the example of what have witten(answer to the question) below
here it is
//
What is the best way to write an application for different languages?
What is gettext used for?
May 14th, 2000 20:22
Nathan Wallace
chuck
I'd suggest gettext - there is gettext support in php 3.0.something (6?
9?) and later, and in php4 (compile --with-gettext). There's not much
documentation right now, but it's pretty easy to use - you make the
translations, set the locale, and then put _() around all your strings,
and boom, it works. Fast, and also fairly standard
I want an example of the above phrase , if somebody have it plz sent to me.
thankz
raheel
---------------------------------
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now
--- End Message ---
--- Begin Message ---
function SetDomain(d) { document.domain = d; }What is the actuall user of pointers in
PHP ? or where can they be used. ??
---------------------------------
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now
--- End Message ---
--- Begin Message ---
Hi folks
I need to ask something about scripts&browser
First, i didnt know that script is still working even if the user closes the
browse (scripts that work long time)
My problem was that some scripts are running very long (long queries) and
even if i set set_time_limit() it wont help because browser will timeout.
Now i am trying to open another php script which will be running long, like
this:
w=window.open("long_script.php","new","height=300, width=300");
w.close();
On my local computer this works ok, but when i put it on the web server this
wont work, like "long_script.php" is not working.
Any link or info about this would be helpful,
Radovan
--- End Message ---