Hello,
I had an issue that I needed to be able to go back in the browser while in a
session without getting page has expired, I was reading through the manual
and came across a comment about adding the following to the sessions page to
allow users to traverse back:
header(Cache-control:
So now the page expires
Any help appreciated.
Craig Donnelly [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hello,
I had an issue that I needed to be able to go back in the browser while in
a
session without getting page has expired, I was reading through the
manual
and came
I had FreeTDS and PHP 4.3.x working fine, then I upgraded my PHP
installation to PHP 5.0.3, now It isnt working.
On the page where I connect to the MSSQL server I get the following error:
Warning: mssql_connect() [function.mssql-connect]: Unable to connect to
server: 172.16.xx.xxx in
http://php.us.themoes.org/manual/en/language.references.pass.php
Passing by reference instead of value.
HTH
Craig
Shaun [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi,
I have noticed that some of the functions in a tutorial I am studying have
an in the variable parameters
Why are you testing if $_POST['submit'] is set are you posting something to
the page??
In the two scripts you posted the code block wont be executed because there
is no post variable
being set.
Try this:
a1.php
==
?php
session_start();
Show the code you are using...
Craig
Andy Loftus [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Does anyone have any ideas as to why $_POST would be empty when
submitting a form to php?
I am running PHP5 as CGI in apache 1.3.22 on redhat linux.
I've also tried php4.3.8 CGI (same
Hi Shaun,
Your expression is evaluating, if you like does the $_POST superglobal
exist and it does
but might be empty, this would be the same for $_GET and other superglobals.
If you did the following:
if (isset($_POST) !empty($_POST)) {
echo '(isset($_POST))';
}
This would only appear if
in message
news:[EMAIL PROTECTED]
On Wednesday 04 August 2004 17:34, Craig Donnelly wrote:
If you want to test to see if a form has been submitted, I would suggest
that you
use the name from the submit button.
e.g - input type=submit value=Send Form Data name=sendform
if(isset($_POST
Have a look at Cron
http://www.webmasters-central.com/t/cron.shtml
HTH
Craig
Angelo Zanetti [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
HI,
Im slightly in the dark as to do the following. What I need is a thread of
some sort that runs and when the time is midnight, it
Sorry I meant to say, assuming your on Unix/Linux system,
Otherwise if Windows use task scheduler Control Panel Scheduled Tasks
Cheers,
Craig
Craig Donnelly [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Have a look at Cron
http://www.webmasters-central.com/t/cron.shtml
HTH
Put all your values in the following {}...
So:
VALUES('{$Title}','{$ChristianName}','{$MiddleName}','{$Surname}'. and
so on.
HTH
Craig
Harlequin [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I've checked my syntax but obviously missing something.
Would anyone mind a quick
$result is an array that has to be fetched...try this
echo h3active members should appear here/h3;
$query = mysql_query(SELECT * FROM RegisteredMembers) or die(could not
execute query);
while($result = mysql_fetch_array($query)){
echo $result['YOUR_DB_FIELDNAME'];
}
change
MD5 - http://ie2.php.net/md5
One way in encryption.
Chris W. Parker [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Bob Hockney mailto:[EMAIL PROTECTED]
on Tuesday, June 29, 2004 5:58 PM said:
I wrote a php script that accesses a database, and I am wondering
about securing the
Best way to achieve this would be cron/crontab
http://www.webmasters-central.com/t/cron.shtml
HTH
Craig
I.A. Gray [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi.
I am wanting to use a PHP script to check on an hourly/daily basis on a
few
things- ie links on my sites, whether
SELECT * FROM foo_table WHERE field_foo some_value
The above will select all from foo_table except where field_foo is equal to
some value.
HTH
Craig
Phpu [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi,
Is there any way to select all entries in the database except one entry or
?php
include(connect.php);
$name = $_POST['name'];
$quote = $_POST['quote'];
$sql = mysql_query(INSERT INTO whosaid (name,quote) VALUES (' . $name
. ',' . $quote . '));
?
HTH
Craig
Bigmark [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I am trying to learn how to
You bet it is.. :-)
Sorry Dave.
- Original Message -
From: Sam Masiello [EMAIL PROTECTED]
To: Craig [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Monday, May 17, 2004 4:41 PM
Subject: RE: [PHP] Re: WDDX
Hehe must be too early on a Monday for Craig :)
--Sam
-Original
If returning a floating point variable, cast it back to an (int)
hth
Tristan Pretty [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Cheers for all ideas/suggetions so far..
I've made a little progres...
Visit this URL:
http://www.risk.sungard.com/secure.php?secure=126807.714285714
http://www.evilwalrus.com/viewcode/560.php
Cj [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I'm posting this again as i got a mail saying
Trend SMEX Content Filter has detected sensitive content.
Place = [EMAIL PROTECTED]; ;
Sender = CJ
Subject = [PHP]
On your submit button put the following:
input type=submit name=submit onClick=return confirm('Are you sure
you want to delete??')
Hope that helps,
Craig
Davy Obdam [EMAIL PROTECTED] wrote in message
001a01c26f9e$a1c78a80$960a@davy">news:001a01c26f9e$a1c78a80$960a@davy...
Hi
Edit this to what you need:
http://www.evilwalrus.com/viewcode.php?codeEx=546
Regards,
Heidi Belal [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi,
I was wondering if anybody could tell me the best way and how to code
sending an attachement with an email
This will work:
http://www.php.net/array_merge
Call your checkboxes like so:
a.php
==
form action=b.php method=post
input type=checkbox name=a1 value=Abr
input type=checkbox name=a2 value=Bbr
input type=checkbox
Why cant you use square brackets??
call all your checkboxes the following:
interesting_area[]
Then post it to whatever page, now all the checkboxes that were checked are
held in a array (interesting_area)
To see what is contained in the array, do the following:
?php
echo pre;
Can you be a bit more clearer with your question?
Meltem Demirkus [EMAIL PROTECTED] wrote in message
011c01c257f0$c4499780$5583@hiborya">news:011c01c257f0$c4499780$5583@hiborya...
Hi,
Can I put the selected option of select box later by using php?
thanks
--
PHP General
You need to have an SMS gateway..Have a look on hotscripts.com here:
http://www.hotscripts.com/search/?query=smscategory=php
Regards,
Craig
Alexandra Aguiar [EMAIL PROTECTED] wrote in message
025f01c210a6$d1657ce0$[EMAIL PROTECTED]">news:025f01c210a6$d1657ce0$[EMAIL PROTECTED]...
Hello ppl...
http://www.php.net/manual/en/reserved.variables.php#reserved.variables.cooki
es
Use Superglobals...you will see what I mean.
Also, Apache 2.0 is not recommended as of yet for PHP commercial development
http://www.apacheweek.com/issues/02-06-07
Regards,
Craig
Scott 'Intense!' Reismanis [EMAIL
Im using session in my form, there are 6 pages to the form, It all works
fine, until You work your way back through the form, to ammend the filled in
details.
e.g - If I go to page 1, and fill out my name, and post to the next page,
heres the code Im using:
You should use session_start(); on every page that u want to pass session
information..
Craig
Jeff Lewis [EMAIL PROTECTED] wrote in message
00d601c1ec72$072a63d0$76a1a8c0@LEWISJCIT">news:00d601c1ec72$072a63d0$76a1a8c0@LEWISJCIT...
I am storing session information by using $_SESSION[privs] and
Have a look here...
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?lngWId=8txtCodeId
=585
Craig
Jason Whitaker [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I am looking for a pre-wrote script thats does the same thing as what this
company offers:
Strange..U sure you got the Win32 version??
Heres a mirror where u can get the installer:
http://www.evilwalrus.com/downloads/php/4.1.2/php-4.1.2-installer.exe
All the best,
Craig
Bogdan Popescu [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hello all,
Is there a way to setup either the apache/php directives to produce a custom
404 if an include file fails to be included ??
Or is this a job for .HTACCESS??
Regards,
~Craig
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Have a look here:
http://www.evilwalrus.com/viewcode.php?codeEx=313
Craig
Eric Coleman [EMAIL PROTECTED] wrote in message
001501c1d84e$42a4f480$0201a8c0@zaireweb">news:001501c1d84e$42a4f480$0201a8c0@zaireweb...
Probably Opera
- Original Message -
From: Sean Kennedy [EMAIL
Have a look here:
http://www.evilwalrus.com/viewcode.php?codeEx=313
Craig Donnelly
Eric Coleman [EMAIL PROTECTED] wrote in message
000b01c1d845$55158020$0201a8c0@zaireweb">news:000b01c1d845$55158020$0201a8c0@zaireweb...
Why not echo $HTTP_USER_AGENT and find out?
- Original
Custom 404
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Is there a way to setup either the apache/php directives to produce a custom
404 if a file fails to be included ??
Or is this a job for .HTACCESS??
Regards,
~Craig
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Try this for your connection:
-
?
// Database constants
define(DATABASE_HOST, localhost);
define(DATABASE_USER, root);
define(DATABASE_PASSWORD, *YOUR_PASS*);
define(DATABASE_NAME, *YOUR_DB_NAME*);
//
36 matches
Mail list logo