[PHP] Sessions - going back in browser

2005-04-19 Thread Craig Donnelly
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:

[PHP] Re:^^

2005-04-19 Thread Craig Donnelly
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

[PHP] PHP5 FreeTDS

2005-01-13 Thread Craig Donnelly
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

[PHP] Re: Using before a variable

2004-09-03 Thread Craig Donnelly
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

[PHP] Re: Sessions nightmare continue...

2004-08-17 Thread Craig Donnelly
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();

[PHP] Re: POST superglobal is empty

2004-08-04 Thread Craig Donnelly
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

[PHP] Re: Checking for form submission

2004-08-04 Thread Craig Donnelly
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

Re: [PHP] Re: Checking for form submission

2004-08-04 Thread Craig Donnelly
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

[PHP] Re: Calling a function at a certain time of day.

2004-07-30 Thread Craig Donnelly
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

[PHP] Re: Calling a function at a certain time of day.

2004-07-30 Thread Craig Donnelly
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

[PHP] Re: Parse Error, Unexpected $

2004-07-19 Thread Craig Donnelly
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

[PHP] Re: MySQL QUERY Results Not Appearing

2004-06-30 Thread Craig Donnelly
$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

Re: [PHP] Protecting database passwords

2004-06-30 Thread Craig Donnelly
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

[PHP] Re: Running a PHP script on an automated regular schedule

2004-06-10 Thread Craig Donnelly
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

[PHP] Re: SELECT

2004-06-02 Thread Craig Donnelly
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] Re: how to insert form data

2004-06-02 Thread Craig Donnelly
?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

Re: [PHP] Re: WDDX

2004-05-17 Thread Craig Donnelly
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

Re: [PHP] A work around my HTTP_REFERER Prob...

2004-05-10 Thread Craig Donnelly
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

[PHP] Re: Swear word substitution

2002-11-19 Thread Craig Donnelly
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]

[PHP] Re: confirm box

2002-10-09 Thread Craig Donnelly
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

[PHP] Re: Sending Attachements through php email form

2002-09-12 Thread Craig Donnelly
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

[PHP] Re: checkbox question

2002-09-10 Thread Craig Donnelly
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

[PHP] Re: checkbox question

2002-09-09 Thread Craig Donnelly
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;

[PHP] Re: select box

2002-09-09 Thread Craig Donnelly
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

[PHP] Re: SMS with PHP

2002-06-11 Thread Craig Donnelly
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...

[PHP] Re: Setting Cookies

2002-06-10 Thread Craig Donnelly
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

[PHP] Session Registering

2002-04-25 Thread Craig Donnelly
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:

[PHP] Re: Sessions not staying a session...

2002-04-25 Thread Craig Donnelly
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

[PHP] Re: Tagi It!

2002-04-19 Thread Craig Donnelly
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:

[PHP] Re: newbie question: how to recompile PHP?

2002-04-03 Thread Craig Donnelly
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,

[PHP] Including Files

2002-04-03 Thread Craig Donnelly
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

Re: [PHP] Another ?

2002-04-02 Thread Craig Donnelly
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

Re: [PHP] $HTTP_USER_AGENT

2002-04-02 Thread Craig Donnelly
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

[PHP] Custom 404

2002-04-02 Thread Craig Donnelly
Custom 404 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] 404 error triggered by Include error??

2002-04-02 Thread Craig Donnelly
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

[PHP] Re: Connecting to a DB using PHP and mysql...

2002-04-02 Thread Craig Donnelly
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*); //