On Tue, 2006-08-15 at 01:24 -0400, Robert Cummings wrote:
> On Tue, 2006-08-15 at 13:02 +0800, Bigmark wrote:
> > Does anyone have a simple example script.
> >
>
> In the first form include a hidden field that identifies the form when
> you are checking the post values after submission. This way
Does anyone have a simple example script.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Tue, 2006-08-15 at 11:01 +0800, Bigmark wrote:
> Can anyone tell me if this is possible-
Yes it is.
> I currrently have a simple form with a textbox and submit button where a
> user chooses a number from 1-22 then on submit it opens another page with a
> table of results within another form.
Can anyone tell me if this is possible-
I currrently have a simple form with a textbox and submit button where a
user chooses a number from 1-22 then on submit it opens another page with a
table of results within another form.
What i need is for the second form to be shown on the same page and ju
>>I have a bulk emailing list to a select group (I never spam, only to
those who want it). Sometimes their imap/pop servers block my mail.
I know I can assign another smtp over-riding what is in the php.ini
file. I can likely find enough code here:
http://ca3.php.net/manual/en/ref.mail.php
So, w
--
I'm hopeful that by Spring 2007, flying to the US will be a less
unpleasant experience than it is currently...
--
As in the border guards would start stocking lubricant as well
as rubber gloves?
Windsor, Ontario Canada would probably be a better flight
destination (you would likely end up hubi
On Sun, August 13, 2006 1:43 pm, Rasmus Lerdorf wrote:
> tedd wrote:
>> At 6:48 PM -0700 8/12/06, Rasmus Lerdorf wrote:
>>> By the way, everyone should be setting a charset. If you don't set
>>> it, IE will look at the first 4k of the body of the page and take a
>>> wild guess.
>>>
>>> -Rasmus
>>
For the US folks, Chicago is centrally-located, and flights to O'Hare
and Midway are generally frequent and often go on sale.
Global visitors might want to fly to Toronto or some other CA city
"close" to Chicago and drive, though :-)
I'm hopeful that by Spring 2007, flying to the US will be a les
IE does some really funky things attempting to "guess" the charset,
because it assumes that web developers and web designers just don't
understand this charset stuff...
And they may be correct, as a general rule, but it sure makes life
tough when you actually send out the correct headers and META
And I assume that this should be reused to minimize the time spent on this
by creating a form class or function, correct?
I have been thinking about this too, and it makes a lot sense to do like
this.
/Peter
-Original Message-
From: Richard Lynch [mailto:[EMAIL PROTECTED]
Sent: Tuesday
On Sat, August 12, 2006 10:57 pm, John Taylor-Johnston wrote:
> I have a bulk emailing list to a select group (I never spam, only to
> those who want it). Sometimes their imap/pop servers block my mail.
> I know I can assign another smtp over-riding what is in the php.ini
> file. I can likely find
On Sat, August 12, 2006 5:57 pm, Afan Pasalic wrote:
> You're talking about something like captcha, right?
No.
FORM PAGE:
PROCESSING PAGE:
> Richard Lynch wrote:On Sat, August 12, 2006 1:55 pm, Afan Pasalic
> wrote: could I use this code to check if form is submitt
My current theory is that IE needs BOTH header() and META charset to
agree before it will believe you. :-)
On Sat, August 12, 2006 8:05 pm, Jonny Bergström wrote:
> It's me again. I might have solved it... in a way. Still quite puzzled
> about
> why IE don't give a dime about the meta encoding
On Mon, August 14, 2006 3:32 am, Julio B. wrote:
> Hay muchos y muy variados en Internet. En alguna ocasión he usado el
> que
> viene en sBlog. Es muy sencillo de implementar y para la mayoría de
> los
> casos suficiente para evitarnos problemas de spam.
>
> En código es:
>
>
> $key = (array_key_
On Sun, August 13, 2006 2:20 am, Peter Lauri wrote:
> [snip]
>
> On Sat, August 12, 2006 8:00 am, Peter Lauri wrote:
>> When you just use time() you tell the cookie to just live until now,
>> so it
>> dies directly. You have to add some seconds to determine how long
>> the
>> cookie
>> will live.
>
On Mon, August 14, 2006 6:56 pm, J R wrote:
> On 8/15/06, João Cândido de Souza Neto <[EMAIL PROTECTED]>
> wrote:
>>
>> I´m in the follow location:
>>
>> https://www2.../?modulo=seguro&acao=identifica
>>
>> And in my script i use header("Location:
>> ./?modulo=seguro&acao=novo_cadastro")
>
>
>
On 15/08/06, Richard Lynch <[EMAIL PROTECTED]> wrote:
On Mon, August 14, 2006 8:40 am, Ville Mattila wrote:
> Does the PHP environment (5.1.4) provide a way to define some custom
> variables as a superglobal? It would be useful for saving certain site
> preferences and settings that must be refe
On Mon, August 14, 2006 8:04 am, João Cândido de Souza Neto wrote:
> Anyone here know why in some cases when i use (header("Location:
> ???"); the
> system lost the session variables?
Yes.
The browser gets headers such as this:
Location: http://example.com
Cookie: Example Value
*SOME* browsers,
On Sun, August 13, 2006 9:01 am, tedd wrote:
>>Not because of any inherent problem with PayPal itself, but because
>>the sheer volume of phishing/spam claiming to be PayPal made it
>>impossible to find the legitimate PayPal traffic, which made PayPal
>>useless to me.
>
> Different strokes for diffe
Adam Zey wrote:
Dave Goodchild wrote:
I use a config file too. That was a sanity check. The file extract
looked like this:
$months = array(1 => 'January', 2 => 'February', 3 => 'March', 4 =>
'April', 5 => 'May', 6=> 'June',
7 => 'July', 8 => 'August', 9 => 'September', 10 =>
On Sun, August 13, 2006 6:49 pm, Gerry D wrote:
> On 6/28/06, Richard Lynch <[EMAIL PROTECTED]> wrote:
>> On Wed, June 28, 2006 5:17 am, kristianto adi widiatmoko wrote:
>> > i need to redirecting page, it could be done by using header
>> function
>> > like this
>> >
>> > header("Location : page2.p
On Sun, August 13, 2006 8:45 pm, Gerry D wrote:
> On 6/30/06, Richard Lynch <[EMAIL PROTECTED]> wrote:
>
>> #2. Don't alter the case of the input data, if at all possible.
>> Accept what the user has given, and take it as it is. You can make
>> your application not care about case, and you can for
On Mon, August 14, 2006 2:41 am, Ivo F.A.C. Fokkema wrote:
> On Sat, 12 Aug 2006 16:36:36 -0500, Richard Lynch wrote:
>> On Fri, August 11, 2006 3:11 am, Ivo F.A.C. Fokkema wrote:
>>> Well, if it's true that some browsers on some platforms ignore the
>>> W3C
>>> standard, I guess we could use:
>>
>
On Mon, August 14, 2006 4:20 pm, Dave Goodchild wrote:
> Hi all - I have several require_once statements in my web app to load
> in
> small function libraries. A common one bundles a variety of functions
> to
> handle date math and map month numbers to month names. I originally
> defined
> an array
On Mon, August 14, 2006 8:40 am, Ville Mattila wrote:
> Does the PHP environment (5.1.4) provide a way to define some custom
> variables as a superglobal? It would be useful for saving certain site
> preferences and settings that must be referred in many variables and
> classes, without every time
On Mon, August 14, 2006 12:25 pm, Michael Jonsson wrote:
> I can run any external program like ls, cp, uptime...
> But if a try to run my shell script a get error.
>
> $passwdexe = "sudo /usr/bin/webpasswd";
> $user=$_POST[name];
> $passwd="$passwdexe $user 123456";
>
On 8/15/06, João Cândido de Souza Neto <[EMAIL PROTECTED]> wrote:
I´m in the follow location:
https://www2.../?modulo=seguro&acao=identifica
And in my script i use header("Location:
./?modulo=seguro&acao=novo_cadastro")
i normally do
header("Location: ?modulo=seguro&acao=novo_cadastro"
Use exec() instead of system() and pass in args for output and error
number and then you'll get an error number telling you what went
wrong.
You'll have to look up the error number in a shell with 'perror' (man
perror) unless you dig my modest extension to do it from PHP:
http://l-i-e.com/perror
On Mon, 2006-08-14 at 18:35 -0400, Adam Zey wrote:
>
> Further experimentation shows that the problem only occurs if the
> variable being count'd is a static variable inside a function. Of
> course, the original point still stands, static or no, count shouldn't
> make a copy. Here is a sample sc
Robert Cummings wrote:
On Mon, 2006-08-14 at 17:24 -0400, Adam Zey wrote:
Robert Cummings wrote:
On Mon, 2006-08-14 at 13:16 -0400, Adam Zey wrote:
I was writing a shell script in PHP (4.4.2) that dealt with a rather
large array. To figure out what I needed the new memory limit to be, I
did a
On Mon, 2006-08-14 at 17:24 -0400, Adam Zey wrote:
> Robert Cummings wrote:
> > On Mon, 2006-08-14 at 13:16 -0400, Adam Zey wrote:
> >> I was writing a shell script in PHP (4.4.2) that dealt with a rather
> >> large array. To figure out what I needed the new memory limit to be, I
> >> did a memor
Dave Goodchild wrote:
I use a config file too. That was a sanity check. The file extract
looked like this:
$months = array(1 => 'January', 2 => 'February', 3 => 'March', 4 =>
'April', 5 => 'May', 6=> 'June',
7 => 'July', 8 => 'August', 9 => 'September', 10 =>
'October', 11 =>
Robert Cummings wrote:
On Mon, 2006-08-14 at 13:16 -0400, Adam Zey wrote:
I was writing a shell script in PHP (4.4.2) that dealt with a rather
large array. To figure out what I needed the new memory limit to be, I
did a memory_get_usage() at the end of my script, and came up with about
5.5MB.
On Mon, 2006-08-14 at 17:20 -0400, Robert Cummings wrote:
> On Mon, 2006-08-14 at 13:16 -0400, Adam Zey wrote:
> > I was writing a shell script in PHP (4.4.2) that dealt with a rather
> > large array. To figure out what I needed the new memory limit to be, I
> > did a memory_get_usage() at the en
Dave Goodchild wrote:
Hi all - I have several require_once statements in my web app to load in
small function libraries. A common one bundles a variety of functions to
handle date math and map month numbers to month names. I originally defined
an array in that file plus a bunch of functions but w
Hi all - I have several require_once statements in my web app to load in
small function libraries. A common one bundles a variety of functions to
handle date math and map month numbers to month names. I originally defined
an array in that file plus a bunch of functions but when I loaded the page,
I´m in the follow location:
https://www2.../?modulo=seguro&acao=identifica
And in my script i use header("Location:
./?modulo=seguro&acao=novo_cadastro")
When it run, my system lost all session variables.
""BBC"" <[EMAIL PROTECTED]> escreveu na mensagem
news:[EMAIL PROTECTED]
>> Hi guys.
On Mon, 2006-08-14 at 13:16 -0400, Adam Zey wrote:
> I was writing a shell script in PHP (4.4.2) that dealt with a rather
> large array. To figure out what I needed the new memory limit to be, I
> did a memory_get_usage() at the end of my script, and came up with about
> 5.5MB. I then set the me
We've decided to start using XUL for intranet applications. I've written up
my XML-RPC server (php script) and I had found a tutorial showing how to use
XML-RPC through XUL/JavaScript, but now I can't find any information on it.
Anyone have any experience/links to information about XML-RPC wit
> Hi guys.
>
> Anyone here know why in some cases when i use (header("Location: ???"); the
> system lost the session variables?
>
> Any tips will be apreciated.
> Thanks in advantge.
Please tell me the cases you mean..!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
On Sun, August 13, 2006 8:03 am, tedd wrote:
>> This leads
>>to the opposite problem of IE caching DYNAMIC images when it should
>>not, which is a whole different rant. :-)
>
> In that case, I just added a random string to end of the image url
> like so:
>
> images/myimage.jpg?a=adj12k4mfdi
>
> If
Warren Vail wrote:
> I would be interested to know what might get past the
> addslashes function that the mysql_escape_string function
> catches.
I wrote an example to demonstrate this:
http://shiflett.org/archive/184
The theory behind this type of problem is pretty easy to understand - if
your
Quoting Adam Zey <[EMAIL PROTECTED]>:
>
> Looking at your $command, there is no path in front of it. It's likely
> that PHP's shell doesn't have the program in its PATH. Try manually
> specifying the full path to the command:
>
> $command="/home/peter/myprog $arg1 $arg2 > textfile.txt";
>
> (
Yes, that is a similar problem and sounds very much like
what I am experiencing.
Peter
Quoting Michael Jonsson <[EMAIL PROTECTED]>:
> Hi,
>
> I can run any external program like ls, cp, uptime...
> But if a try to run my shell script a get error.
>
> $passwdexe = "sudo /usr/bin/webpa
No, it not on...
safe_mode Off Off
safe_mode_exec_dir no valueno value
safe_mode_gid Off Off
safe_mode_include_dir no valueno value
.M
Adam Zey wrote:
Michael Jonsson wrote:
Hi,
I can run any external program like ls, cp, uptime...
But if a try to run
Michael Jonsson wrote:
Hi,
I can run any external program like ls, cp, uptime...
But if a try to run my shell script a get error.
$passwdexe = "sudo /usr/bin/webpasswd";
$user=$_POST[name];
$passwd="$passwdexe $user 123456";
echo $passwd;
$result = s
[If you're not in Chicago, or relocating to Chicago within days, hit
delete now.]
PHP Job Opening
I'm leaving a very nice cushy job for an even nicer cushier job. :-)
My final task is to find my replacement.
The work mostly entails setting up new pages of search results from APIs
based around X
Hi,
I can run any external program like ls, cp, uptime...
But if a try to run my shell script a get error.
$passwdexe = "sudo /usr/bin/webpasswd";
$user=$_POST[name];
$passwd="$passwdexe $user 123456";
echo $passwd;
$result = system($passwd);
Resulta
I was writing a shell script in PHP (4.4.2) that dealt with a rather
large array. To figure out what I needed the new memory limit to be, I
did a memory_get_usage() at the end of my script, and came up with about
5.5MB. I then set the memory limit to 8MB.
When I tried to run it, the script ran
>
> on rereading your post - your storing session data in a db, why bother;
> secondly
> it sounds like you just overwriting the session record with a new
> transaction
> id rather than adding a new transaction id [record] and leaving any
> already existing
> transactions available.
>
> basically p
[EMAIL PROTECTED] wrote:
Hello,
I am trying the run an external application with
command line arguments using PHP under linux.
ie:
$command="myprog $arg1 $arg2 > textfile.txt";
system("echo \"$command\" > test.txt");
system($command);
$handle=fopen("textfile.txt","r");
if($handle!=NULL)
{
Robert Cummings wrote:
Which will make your application incompatible with any distribution
where runkit is not enabled :/ Which kinda sucks, I wish more stuff was
part of the core.
Cheers,
Rob.
I agree, this module looks very powerful. The ability to write wrappers
around internal functions
Artzi, Yoav (Yoav) wrote:
I have the following in my php.ini:
register_globals = Off
register_long_arrays = Off
register_argc_argv = Off
auto_globals_jit = On
The following PHP code prints nothing:
The rest of the php.ini is like php.ini-recommended that comes with the
source. Any idea wha
Hello,
I am trying the run an external application with
command line arguments using PHP under linux.
ie:
$command="myprog $arg1 $arg2 > textfile.txt";
system("echo \"$command\" > test.txt");
system($command);
$handle=fopen("textfile.txt","r");
if($handle!=NULL)
{
while(!feof($handle))
On Mon, 2006-08-14 at 10:45 -0400, KermodeBear wrote:
> Hello,
>
> You CAN create custom superglobals, but it requires that you have RunKit
> enabled: http://us3.php.net/runkit
Which will make your application incompatible with any distribution
where runkit is not enabled :/ Which kinda sucks, I
Hello,
You CAN create custom superglobals, but it requires that you have RunKit
enabled: http://us3.php.net/runkit
HTH,
K. Bear
> -Original Message-
> From: Stut [mailto:[EMAIL PROTECTED]
> Sent: Monday, August 14, 2006 10:04 AM
> To: Ville Mattila
> Cc: php-general@lists.php.net
> Subj
Ville Mattila wrote:
Does the PHP environment (5.1.4) provide a way to define some custom
variables as a superglobal? It would be useful for saving certain site
preferences and settings that must be referred in many variables and
classes, without every time writing global keyword at the beginni
[snip]
Does the PHP environment (5.1.4) provide a way to define some custom
variables as a superglobal? It would be useful for saving certain site
preferences and settings that must be referred in many variables and
classes, without every time writing global keyword at the beginning of a
functi
Hello,
Does the PHP environment (5.1.4) provide a way to define some custom
variables as a superglobal? It would be useful for saving certain site
preferences and settings that must be referred in many variables and
classes, without every time writing global keyword at the beginning of a
func
On Sunday 13 August 2006 22:00, Chris wrote:
> Ray Hauge wrote:
> > I use Slackware linux, and XMLRPC is not compiled in by default with my
> > distro, so I'm compiling PHP myself. It's always been a simple enough
> > task. First I get and install the required xmlrpc-epi libraries, and then
> > I
Michelle Konzack wrote:
> Late answer,
>
> but I was coming back yesterday from Palestine, after the Israelien
> Terror Authority had arrest me for making tonns of photos and Videos
> about Israeli military crime... (shooting children and pregnant women)
Regards,
Austin.
signature.asc
Descrip
Hi guys.
Anyone here know why in some cases when i use (header("Location: ???"); the
system lost the session variables?
Any tips will be apreciated.
Thanks in advantge.
--
João Cândido de Souza Neto
Curitiba Online
[EMAIL PROTECTED]
(41) 3324-2294 (41) 9985-6894
http://www.curitibaonline.c
I have the following in my php.ini:
register_globals = Off
register_long_arrays = Off
register_argc_argv = Off
auto_globals_jit = On
The following PHP code prints nothing:
The rest of the php.ini is like php.ini-recommended that comes with the
source. Any idea what might be the problem?
Than
At 10:35 PM -0600 8/13/06, John Meyer wrote:
Gd,
BTW, came into this late, have we gotten the old "store your images in the
filesystem and save the file name in the database" argument yet?
You can do that?;-)
tedd
--
---
http://sperling.com http://ancientstones.com http://earthstones
On Mon, 2006-08-14 at 16:38 +0700, Peter Lauri wrote:
> Or there is maybe a PHP developer from another country that is interested to
> come to Bangkok for a year, not that great pay, but living standard are
> great.
>
As part of our project, we have a strong internship programme. Would you
cons
Hi,
I am sorry to have to post this on this list. I do not enjoy reading the
"personals" that are posted here on the list. Before this I have been trying
to find Thai PHP programmers via some Thai job brokers, but no success. So
my hope is that there will be someone from Thailand reading this.
I
> I use Joomla quite a bit (Mambo by an other name).
>
How about trying KINKY? http://avoir.uwc.ac.za/ It is customizable and
we have a few code generation modules that will write your basic code
for you, you just need to fill in the blanks. The new Chisimba framework
does the same, and has a mo
I can strongly recommend Joomla - I have it working with Menalto's Gallery2,
and just got a phpBB bridge working as well.
Can I also recommend you use Joomla over Mambo? About a year ago the core
developers (now at Joomla) fell out with the so called owners of Mambo,
about ownership and future de
Wesley Acheson wrote:
Basically the different areas I would need are authentication,
galleries (for images), permission levels. Internal messaging (not
real time), forums (hopefully I can just plugin an existing one but
intregrated with my new so that registering users for the site
registers for
Hay muchos y muy variados en Internet. En alguna ocasión he usado el que
viene en sBlog. Es muy sencillo de implementar y para la mayoría de los
casos suficiente para evitarnos problemas de spam.
En código es:
Luego llamas a este archivo desde el que lo necesites.
Te generas el código (en es
On Sat, 12 Aug 2006 16:36:36 -0500, Richard Lynch wrote:
> On Fri, August 11, 2006 3:11 am, Ivo F.A.C. Fokkema wrote:
>> Well, if it's true that some browsers on some platforms ignore the W3C
>> standard, I guess we could use:
>
> Or perhaps these browsers pre-date W3C standards. :-)
Sure, but in
Dave Shariff Yadallee - System Administrator a.k.a. The Root of the
Problem wrote:
On Mon, Aug 14, 2006 at 02:40:53PM +1000, Chris wrote:
John Meyer wrote:
Gd,
BTW, came into this late, have we gotten the old "store your images in the
filesystem and save the file name in the database" argument
On Mon, Aug 14, 2006 at 02:40:53PM +1000, Chris wrote:
> John Meyer wrote:
> >Gd,
> >BTW, came into this late, have we gotten the old "store your images in the
> >filesystem and save the file name in the database" argument yet?
>
> Nope, haven't done that one yet, do you want to start it off or sh
73 matches
Mail list logo