On 14 August 2004 15:50, raditha dissanayake wrote:
> Ford, Mike [LSS] wrote:
>
> >
> > (And, BTW, the HTTP definition says that the Location:
> header should specify a full absolute URL, so that should be:
> >
> > header("Location:
> http://your.s
> -Original Message-
> From: John Gostick
> Sent: 14/08/04 15:19
> I have a quick question about using the PHP die() function.
[...]
> I changed the code to this:
>
> $connection = mysql_connect($host, $user, $password)
>or die("Error connecting to SQL server");
> $db = mysql_s
-Original Message-
From: Brent Clements
To: [EMAIL PROTECTED]
I wanted to see if anyone has an easier way to do this. The end result
is this: I need to compare 7 different text strings(which are in an
array). They should all be the same, if they are not the same, a message
should be output
On 13 August 2004 12:52, Jay Blanchard wrote:
> if( strlen( $UserID ) != 0
> && strlen( $UserPassword ) != 0
> && strlen( $SecretPassword ) != 0
> && strlen( $UserMail ) != 0 )
> {
> Do something
> }
> elseif ( strlen( $UserID ) == 0
> > > strlen( $UserPassword ) == 0
> > > strlen( $SecretPassword
On 12 August 2004 14:07, Justin French wrote:
> Hi,
>
> How can I get a unix timestamp of the current timezone, rather than
> GMT as supplied by time()?
Sorry, but this question makes no sense to me. A timestamp is absolute and
is always in GMT, taking no account of timezones -- that's just the
On 10 August 2004 15:36, Labunski wrote:
> Hello,
> First of all, I should apologize for my bad English,
> and I hope somebody will understand what I was trying to say..
>
>
> if ($handle = opendir('news')) {
>while (false !== ($topic = readdir($handle))) {
>if ($topic != "." && $to
On 10 August 2004 15:55, Henri Marc wrote:
> Hello,
>
> > Variables in single-quoted strings are not
> > evaluated. Either user double
> > quotes or concatination:
> Thank you very much all for your help, specially Kevin
> Waterson for his complete program.
> It was simple, I always make some mis
On 10 August 2004 13:19, Ron Stiemer wrote:
> Hi there,
>
> Try to add the session_id(); into the redirection:
>
> header("Location: ../admin/include/B.php?PHPSESSID=" . session_id() );
No, no, no! Use the SID constant -- that's what it's for. It only has a value if you
need one, so:
hea
On 08 August 2004 03:25, Robby Russell wrote:
> To all those who have auto-replys set for their email, please
> turn them
> off. ;-)
If you're referring to SpamCease, it seems that these are, on the whole, not
genuine auto-replies but are themselves from a spam email address harvester
masqueradin
On 08 August 2004 14:20, Josh Acecool M wrote:
> Try adding
> if (!function_exists("function_name")) {
> function function_name ($blah) {
> // Function Code
> }
> }
> for each function.
As I understand it, that will *not* work in PHP 5 as it still parses the entire file,
barfing
On 07 August 2004 23:24, PHP Gen wrote:
> This is what i am using:
>
> for($i=0; $i<1000;$i++)
> {
> echo "something";
> echo str_repeat(" ", 256); flush(); ob_flush();
> sleep(1);
> }
Regardless of solving your scrolling problem, these flush calls are the
wrong way round -- ob_flush() flush
On 06 August 2004 15:44, Ed Lazor wrote:
> Spamcease. Apparently it's the guy's anti-spam software that
> automatically sends messages.
General consensus seems to be that it's not "a guy", it's a spambot
pretending to be an auto-responder and using a fake from address. If you
click the link, yo
On 05 August 2004 17:18, Shaun wrote:
> Hi,
>
> I seem to have problems redirecting pages when I view my site using my
> laptop, the only difference is that my laptop has Norton
> Firewall installed,
> can this interfere with the $HTTP_REFERER variable
Not only can, does! Other firewalls or pro
On 05 August 2004 17:12, Ford, Mike [LSS] wrote:
> (1) Your browser requests
> https://computing.eng.iastate.edu/mambo/index.php?option=conte
> nt&task=view&i d=159&Itemid=162
Bother! Sorry, that should, of course, be http:// in ste
On 05 August 2004 16:36, Bing Du wrote:
> I really appreciate everyone who responded taking your valuable time
> looking into my problem.
>
> Now back to my problem. Changing the condition to
> "if($_SERVER['HTTPS']
> != 'on')" did not make any difference unfortunately. So the result was
> stil
On 05 August 2004 15:15, Jay Blanchard wrote:
> [snip]
> if($ans_three[$qzid] === 'None of the above' || $ans_three[$qzid] ===
>'All of the above'){ if($ans_four[$qzid] === 'None of the above'
> || $ans_four[$qzid] === 'All of the above'){
> $answers = rand(6,8);
>
>}
>
-Original Message-
From: Harlequin
To: [EMAIL PROTECTED]
Sent: 04/08/04 01:55
Subject: [PHP] Query Results Question
I have the following query which should return just two rows:
SELECT 'ID', 'Vacancy Role', 'Vacancy Salary', 'Vacancy Location',
'Vacancy
Type'
FROM vacancy_details
WHER
-Original Message-
From: bruce
To: 'Curt Zirzow'; [EMAIL PROTECTED]
Subject: RE: [PHP] pconnect...
i meant mysqli/php5 regarding pconnect. although, i've since seen
information that leads me to believe htat pconnect would necessarily in
and
of itself be my solution.
---
On 30 July 2004 16:25, Ashley M. Kirchner wrote:
> Jason Barnett wrote:
>
> Though I'm intrigued by two things: a) why am I getting both
> $_REQUEST as well as $_POST variables
Because $_REQUEST is an aggregate of $_GET, $_POST and $_COOKIE. That's the way it's
defined: see
http://www.php
On 28 July 2004 20:17, Daevid Vincent wrote:
> No. I'm trying to delete it from PHP memory, but keep the cookie on
> their client in the cookie.txt file or wherever it's stored.
Where are you doing the test for it -- in the same script, or in a
subsequent one? If the former, then I'm confused; i
On 29 July 2004 01:50, Jon Drukman wrote:
> with this code fragment:
>
>
> $string='/mobile/phone.html';
> if (strpos($string,'/mobile/')!==false) { print "one: yes\n"; }
> if (strpos($string,'/mobile/')===true) { print "two: yes\n"; }
>
> >
>
>
> only the first if statement prints anything
On 29 July 2004 10:00, Jay wrote:
> Hi!
>
> Can someone pelase help me to convert the following Vbscript code to
> PHP, i am really sucky at Regular Expression:
> -CODE VBSCRIPT-
> Function IsValid(strData,blIncludeAlpha,blIncludeNumeric)
> Dim regEx, retVal,strPtrn
>
On 28 July 2004 12:29, Frank Munch wrote:
> Would anyone know how to resolve this scope problem? Or is
> this possibly
> something PHP can't (yet) do?
>
> The problem is to access a variable in a function foo from a function
> local to foo.
Actually, your problem is that the function bar is *not
On 28 July 2004 12:50, Harlequin wrote:
> OK David.
>
> But here's the conundrum:
>
> a User has already selected a value which is stored in the database.
> Can I Display a range of tags but make the one the user
> selected previously as the default...?
That's been asked and answered many tim
On 26 July 2004 01:13, Robert Frame wrote:
> OK, now I am bewildered again.
>
> Sample Code
>
>
> echo '';