> -Original Message-
> From: John Fishworld [mailto:[EMAIL PROTECTED]]
> Sent: 30 April 2002 09:32
>
> I'm trying to find files in my array
> for example
> ="lg_imode.gif"
> and
> ="/db/imodeklein/edgar-IMODE-1-.gif"
>
> I want to differentiate between the files with slash at the
> fron
> -Original Message-
> From: Justin French [mailto:[EMAIL PROTECTED]]
> Sent: 30 April 2002 00:04
>
> instead of
>
> echo("Hi ",$_POST['fname']," ",$_POST['lname'],"Thank You For
> Registering !!!");
>
> try
>
> echo "Hi ".$_POST['fname']." ".$_POST['lname']."Thank You For
> Registerin
> -Original Message-
> From: Lee P Reilly [mailto:[EMAIL PROTECTED]]
> Sent: 29 April 2002 22:06
>
> Just a quick question. I'm developing on a Windows machine right now,
> and will later move it onto Linux. Should I expect to run into major
> difficulty at all? I anticipate a few problem
> -Original Message-
> From: Jason Wong [mailto:[EMAIL PROTECTED]]
> Sent: 29 April 2002 14:12
> To: [EMAIL PROTECTED]
>
> On Monday 29 April 2002 20:52, Ford, Mike [LSS] wrote:
>
> Well the ereg is looking for strings beginning with #
> -Original Message-
> From: Miguel Cruz [mailto:[EMAIL PROTECTED]]
> Sent: 29 April 2002 05:34
>
> On Sun, 28 Apr 2002, Richard Emery wrote:
> > The answer is:
> > $file_pointer = fopen('/public_html/emails.txt', "a") or exit;
> >
> > The " || " is a binary operation. You want "or",
> -Original Message-
> From: Hugh Bothwell [mailto:[EMAIL PROTECTED]]
> Sent: 27 April 2002 01:15
>
> "Vins" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > if(!ereg("^#(.)*$", $buffer[$i]))
> > {
> > echo "ok";
> > }
> >
> > what does this mean
> -Original Message-
> From: Padraig Kitterick [mailto:[EMAIL PROTECTED]]
> Sent: 26 April 2002 20:16
> To: [EMAIL PROTECTED]
> Subject: [PHP] Sessions with register_globals = off
>
>
> Am in need of help or I will loose my sanity!!! Im runnin Php
> 4.1.2 with
> Apache 1.3.22 on Win32 w
> -Original Message-
> From: Nathan [mailto:[EMAIL PROTECTED]]
> Sent: 25 April 2002 21:01
>
> Apparently in 4.1.X this is true... I'd been running 4.0.6
> for a long time (until 4.1.2 was
> released), and must have coded it in the earlier version. I
> stand corrected! :-)
H'mmm, I thi
> -Original Message-
> From: andy [mailto:[EMAIL PROTECTED]]
> Sent: 25 April 2002 17:30
>
> I am passing an array through the URL with a ',' inbetween:
> var=php,mysql,super
> Parsing is done with: explode (',',$var). This gives me an
> array starting
> with 0
>
> Later on I have to se
> -Original Message-
> From: Kevin Stone [mailto:[EMAIL PROTECTED]]
> Sent: 25 April 2002 18:02
>
> Just looking at the manual here and it explains quite
> specifically that
> array_search() is meant to be used with associative arrays,
> not indexed
> arrays.
No it doesn't. How on ear
> -Original Message-
> From: Pekka Saarinen [mailto:[EMAIL PROTECTED]]
> Sent: 25 April 2002 11:05
>
> Is there a way to reliably detect PHP version and have
> $PHP_SELF replaced
> with $_SERVER['PHP_SELF'] when executed in 4.2 or newer?
What about:
if (isset($_SERVER)) $PHP_SELF
> -Original Message-
> From: Jason Soza [mailto:[EMAIL PROTECTED]]
> Sent: 25 April 2002 05:06
>
> Yike, now I wish I hadn't found it:
>
> [Wed Apr 24 19:42:18 2002] [error] PHP Warning: Wrong
> datatype for second
> argument in call to in_array in beta_up.asp on line 61
57 function e
> -Original Message-
> From: Jennifer Downey [mailto:[EMAIL PROTECTED]]
> Sent: 24 April 2002 04:46
>
> Would you please direct your attention to this URL
>
> http://testphp.netfirms.com/code1.html
>
> Look at the bottom where the big orange commented syntax is
> and explain what
> is
> -Original Message-
> From: michael kimsal [mailto:[EMAIL PROTECTED]]
> Sent: 21 April 2002 04:17
>
> Second, *HOW MANY* PHP statements can be followed by a { ?
>
> I can think of three
>
> if (foo) {
> function foo () {
> class foo {
>
> Maybe there's one more that I'm missing [...]
> -Original Message-
> From: Evan Nemerson [mailto:[EMAIL PROTECTED]]
> Sent: 23 April 2002 04:54
>
> Why get strlen involved???
>
> $string = substr("$string", 0, -1);
Why get quotes involved???
$string = substr($string, 0, -1);
Cheers!
Mike
> -Original Message-
> From: Justin Blake [mailto:[EMAIL PROTECTED]]
> Sent: 16 April 2002 09:43
>
> You can use variable variable names by adding another '$'.
> so if $i == 1 and $var1 == "one", you can do this:
>
> $var_name = "var".$i;
> if($$var_name == "one") echo "Hello!";
>
> Tha
> -Original Message-
> From: jas [mailto:[EMAIL PROTECTED]]
> Sent: 11 April 2002 11:34
> while ($file_names = readdir($dir)) {
> if ($file_names != "." && $file_names !=".." &&
> ereg('_(^[0-9]{4}.jpg$)',
OK, let's take a close, step-by-step look at this ereg pattern:
_ OK -- mat
> -Original Message-
> From: Jeff Bearer [mailto:[EMAIL PROTECTED]]
> Sent: 10 April 2002 15:13
>
[snip]
>
> but If it's possible I'd like to do it with one line
> something that I'd
> think it would be like this.
>
> my_function($bob,if($a=='H') return 'Y'; );
I think the nearest you
> -Original Message-
> From: John Clarke [mailto:[EMAIL PROTECTED]]
> Sent: 20 March 2002 00:40
>
> I have used the following script successfully for a year now,
> but have just
> found a problem with the date 2002-03-31.
>
> Any ideas why this would be happening?
>
> function addDays(
> -Original Message-
> From: Hiroshi Ayukawa [mailto:[EMAIL PROTECTED]]
> Sent: 18 March 2002 05:11
>
> I'm trying to use $_SESSION on Windows2000+PHP4.1.2 binary version.
> But it seems that $_SESSION doesn't work, even in the
> simplest samples
> like;
I think this is acknowledged as
> -Original Message-
> From: Andrey Hristov [mailto:[EMAIL PROTECTED]]
> Sent: 18 March 2002 08:20
>
> $your_timestamp+=gmmktime(0,0,0,1,1,1972);
Well, that depends on your definition of "year" -- the problem here is that it makes
no allowances for leap years, so (for example) 2-mar-200
> -Original Message-
> From: Jim Lucas [php] [mailto:[EMAIL PROTECTED]]
> Sent: 15 March 2002 00:55
>
> Plus, depending on how you are calling the file. Meaning if
> the file name
> that you are calling is a static file name or dynamic file name
>
> require() and require_once() will i
> -Original Message-
> From: Scott St. John [mailto:[EMAIL PROTECTED]]
> Sent: 13 March 2002 21:32
>
> I am working on a javascript box that will allow the user to
> drag values
> from one select box to another. I will use this box to set
> the values.
> This is a standard, multiple s
> -Original Message-
> From: Balaji Ankem [mailto:[EMAIL PROTECTED]]
> Sent: 14 March 2002 11:51
>
> Hi friend,
> I need some help on this logic...
>
>
> 1. I have some range (A to B) which is fixed and A,B are very large
> numbers.(A
> 2. I have X to Y and I want to check this r
> -Original Message-
> From: Richard Davey [mailto:[EMAIL PROTECTED]]
> Sent: 13 March 2002 17:12
>
> "Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > I don't understand why you think it is illogical. How else
> would you
> > deref
> -Original Message-
> From: Erick [mailto:[EMAIL PROTECTED]]
> Sent: 12 March 2002 01:47
>
>
> I've been working on this for a little while now, without success. I
> want to compare the current date to a certain recurring date (ie:
> compare todays date to the date of the second Sunda
> -Original Message-
> From: Richard Davey [mailto:[EMAIL PROTECTED]]
> Sent: 13 March 2002 16:02
>
> I have a global array $mtxt that is created in my script.
> I have a function from which I want to access a value from that array:
>
> $mtxt[1] = "Test";
> $text = $GLOBALS['mtxt[1]'];
>
> -Original Message-
> From: Richard Ellerbrock [mailto:[EMAIL PROTECTED]]
> Sent: 13 March 2002 14:25
>
> The following code generates a warning when register_globals=off and
> error reporting is set to E_ALL. How do I define the constant
> in another
> way not to generate a warning? Th
> -Original Message-
> From: Gonzalez, Zara E [mailto:[EMAIL PROTECTED]]
> Sent: 11 March 2002 17:54
>
> I was just wondering if anyone knew an easy way to register
> all $_REQUEST
> variables as session variables.
I haven't seen this solution on the list, but what about:
foreach ($_RE
> -Original Message-
> From: Roman Duriancik [mailto:[EMAIL PROTECTED]]
> Sent: 13 March 2002 08:40
>
> I have one small problem. I have array e.g $array but I don't know
> how to finding arguments and values of this array.
>
> e.g
>
> $array["aa"] = 1;
> $array["ab"] = "some";
> ...
>
> -Original Message-
> From: Patrick Teague [mailto:[EMAIL PROTECTED]]
> Sent: 13 March 2002 10:48
>
>
> I'm having problems with .htaccess files setting up the php_value
> include_dir on both my development & test servers. I'm using
> php4 under
> apache on win2k for development & php
> -Original Message-
> From: Timothy J. Luoma [mailto:[EMAIL PROTECTED]]
> Sent: 09 March 2002 10:08
> To: PHP Mailing List
> Subject: [PHP] need help converting code to more efficient loop
>
> Hello! I am trying to reduce the size of the code below,
> which I believe
> can be simplifie
> -Original Message-
> From: WG4- Cook, Janet [mailto:[EMAIL PROTECTED]]
> Sent: 13 March 2002 00:51
>
> Hi All,
> I have multiple PHP pages and make my connection to the MySQl
> db in one of
> these pages. When I go to the next one any mysql commands
> seem not to work
> - it look li
> -Original Message-
> From: Vlad Kulchitski [mailto:[EMAIL PROTECTED]]
> Sent: 11 March 2002 21:23
>
> I have a question. I am working on a submit form that will
> ask you for confirmation of info. I.e. I need to move values
> submitted via form through 2 different pages. One of the ways
> -Original Message-
> From: karthikeyan [mailto:[EMAIL PROTECTED]]
> Sent: 07 March 2002 17:52
>
[]
>
> I am very sure that there must be some solution to this but
> I don't know
> how to do this in PHP. I have one solution using GET method
> but not with
> POST.
Then you're v
> -Original Message-
> From: Alan McFarlane [mailto:[EMAIL PROTECTED]]
> Sent: 07 March 2002 03:20
>
> I've seen and successfully used the built-in function
> 'mkdir()' on several
> occasions, but I am having trouble understanding the mode parameter.
>
> I've seen 0771, 0775 and 0777 us
> -Original Message-
> From: Christopher J. Crane [mailto:[EMAIL PROTECTED]]
> Sent: 07 March 2002 02:26
>
> The problem is that on the windows platform all information
> is returned. On
> the linux platform the "$Details" variable is not populated.
> The nothing
> changes...so what cou
> -Original Message-
> From: Phillip S. Baker [mailto:[EMAIL PROTECTED]]
> Sent: 07 March 2002 05:52
>
> for ($i=1; $i < 12; $i++) {
> echo state_$i; // This would print out either Yes No or Maybe.
> }
Close -- it's actually:
echo ${"state_$i"};
(For the record, these
> -Original Message-
> From: Nick Wilson [mailto:[EMAIL PROTECTED]]
> Sent: 01 March 2002 17:30
> To: PHP-General
> Subject: Re: [PHP] include() and paths
>
>
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
>
> * and then Nick Winfield declared
> > I didn't catch the first part
> -Original Message-
> From: Ford, Mike [LSS] [mailto:[EMAIL PROTECTED]]
> Sent: 28 February 2002 12:16
>
> So you want:
> array_walk ($fieldname, array($check,'is_allletters');
OOPS! Make that:
array_walk ($fieldname, array($check,'is_allletters
> -Original Message-
> From: Vidyut Luther [mailto:[EMAIL PROTECTED]]
> Sent: 28 February 2002 01:27
>
> but when i do.
>
>
> array_walk ($fieldname, '$check->is_allletters');
>
> I get the error.
> Warning: Unable to call $check->is_allletters() - function does not
> exist .
RTFM:
> -Original Message-
> From: Steven Walker [mailto:[EMAIL PROTECTED]]
> Sent: 27 February 2002 17:26
>
> It may be able to store 8MB, but each line can only hold 1024
> characters. I ran into this using a string variable to store
> the message
> body of an HTML email. If I did not put
> -Original Message-
> From: Steven Walker [mailto:[EMAIL PROTECTED]]
> Sent: 25 February 2002 18:04
>
> There are global variables that serve this purpose. You must have
> register_globals turned on:
Actually, no -- that's the wrong way round. The associative arrays are always there
> -Original Message-
> From: Kostas Karadamoglou [mailto:[EMAIL PROTECTED]]
> Sent: 25 February 2002 14:35
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: [PHP] Problem about Reading input from a Form
>
>
> I set the register_globals On in the php.ini file but when i
> do php.info
> -Original Message-
> From: Kostas Karadamoglou [mailto:[EMAIL PROTECTED]]
> Sent: 25 February 2002 14:09
>
> I put and the POST method but I have the same problem
> I don't know why, any ideas?
> Thank you
>
> >
> >-Original Message-
> >From: Kostas Karadamoglou [mailto:[EMAIL
> -Original Message-
> From: Andres Plaza R. [mailto:[EMAIL PROTECTED]]
> Sent: 20 February 2002 20:55
[...]
>
> BUT, the other day I used vi to see the debug.log, and the error
> appears like this:
>
> gcc -o conftest -g -O2 -DLINUX=22 -DMOD_SSL=208105
> -DUSE_HSREGEX -DEAPI -W
> -Original Message-
> From: Martin Towell [mailto:[EMAIL PROTECTED]]
> Sent: 18 February 2002 22:44
> To: 'JSheble'; [EMAIL PROTECTED]
>
> window.document.frmName.elements["poly[]"].value !!!
This should also work (well, it has for me in the past!):
window.document.frmName["poly[]
> -Original Message-
> From: Matt [mailto:[EMAIL PROTECTED]]
> Sent: 18 February 2002 23:30
> To: Lars Torben Wilson
>
> > $foo = "This page is $_SERVER[PHP_SELF]";
> >
> > Or, better:
> >
> > $foo = "This page is {$_SERVER['PHP_SELF']}";
> >
> > You do have to concat to do this in si
> -Original Message-
> From: Erik Price [mailto:[EMAIL PROTECTED]]
> Sent: Monday, February 18, 2002 5:58 PM
> To: Lars Torben Wilson
>
> Hm? I didn't think that this was the case -- I thought that although
> there is a long-term move to making 'register_globals = off' default,
> regis
> -Original Message-
> From: Scott Saraniero [mailto:[EMAIL PROTECTED]]
> Sent: 18 February 2002 18:02
> To: [EMAIL PROTECTED]
>
> I've got a piece of code below that works great for me. Now I
> would like to
> modify the rows with alternating colors in the displayed results. Any
> sugge
> -Original Message-
> From: Ron Dyck [mailto:[EMAIL PROTECTED]]
> Sent: 18 February 2002 13:38
>
[... snip working example]
>
> but, this doesn't:
>
> function myFunction() {
> foreach($_POST as $key=>$value) {
>
> if (empty($$key)) {
> print "empty value $key";
>
> -Original Message-
> From: Erik Price [mailto:[EMAIL PROTECTED]]
> Sent: 15 February 2002 19:52
>
> Not only can I hardly find a place with Tetley's on tap, I can hardly
> find it in stores!
>
> LOVE Tetley's.
Er -- should I mention here that I live and work within walking distance o
> -Original Message-
> From: Erik Price [mailto:[EMAIL PROTECTED]]
> Sent: 14 February 2002 20:40
>
> here is the final function:
>
> # ===
> # get_current_page_name()
> #
> -Original Message-
> From: Joffrey van Wageningen [mailto:[EMAIL PROTECTED]]
> Sent: 15 February 2002 09:00
>
> i would try:
>
> for($i=01;$i<=50;$i++) {
> if(!empty($content) && $row[$content] == $states[$i])
> $selected = " selected";
> elseif($dstate == $states[$i])
>
> -Original Message-
> From: Martin Towell [mailto:[EMAIL PROTECTED]]
> Sent: 07 February 2002 22:17
> To: [EMAIL PROTECTED]
> Subject: RE: [PHP] Using functions before they're defined
>
> I haven't looked at the php's source code, but maybe it's a
> two pass parser
> (??) first it gets
> -Original Message-
> From: Nicolas Costes [mailto:[EMAIL PROTECTED]]
> Sent: 30 January 2002 10:19
>
> And for more security, I use a JavaScript MD5 function to encrypt the
> provided password in the user's browser so it goes already
> encrypted on the
> net ... Then PHP's just got t
> -Original Message-
> From: Phil Schwarzmann [mailto:[EMAIL PROTECTED]]
> Sent: 28 January 2002 22:02
>
> I keep getting parse error with this code:
> ($teams[] is a big array that I got by using mysql_fetch_array)
>
>
>$r = "game";
>echo "";
>echo "$teams[$r.'1']";
>
> -Original Message-
> From: Matt Schroebel [mailto:[EMAIL PROTECTED]]
> Sent: 29 January 2002 16:33
>
> And I write those as (true == $PHP_MAIL_FORM) so the parser
> will catch the missing second equal sign.
> This won't parse: (true = $PHP_MAIL_FORM)
Why even bother with the ineffici
> -Original Message-
> From: Neil Freeman [mailto:[EMAIL PROTECTED]]
> Sent: 11 January 2002 12:03
>
> Who's awake today then? :) What I'm trying to do is create variable
> variable arrays and then fill these arrays with values. The problem I
> have though is that the values don't appear
> -Original Message-
> From: Yoed [mailto:[EMAIL PROTECTED]]
> Sent: 10 January 2002 23:01
>
> I never really found the trick to this one yet, and wanted to
> see what you
> guys say is the best methods to call a variable that needs a variable.
>
> Say I have variables called $Var_1_Sta
e.column=$_GET['criteria_integer']";
>
> but unfortunately, this isn't working.
No, of course not -- I repeat:
> On Thursday, January 10, 2002, at 08:18 AM, Ford, Mike [LSS] wrote:
>
> > But, if you insist on the quotes, it needs to be:
> >
> >
> -Original Message-
> From: Bogdan Stancescu [mailto:[EMAIL PROTECTED]]
> Sent: 09 January 2002 20:56
>
> > while (!feof ($fp)) {
> > $line = fgets($fp, 4096);
> > $data = explode(",", str_replace("\"", "", $line)); //using
> > str_replace to get rid of quote marks
> >
> -Original Message-
> From: Erik Price [mailto:[EMAIL PROTECTED]]
> Sent: 09 January 2002 19:22
>
> I'm trying to write my code in accordance with the PHP 4.1.0 security
> advisory -- that is, I want to use the $_GET and $_POST arrays when
> grabbing variables passed with GET and POST
> -Original Message-
> From: Eric McKeown [mailto:[EMAIL PROTECTED]]
> Sent: 09 January 2002 05:53
>
> I
> could store the list in a conventional serial array...
>
> $valid[0] = "Valid One";
> $valid[1] = "Valid Two";
> $valid[2] = "Valid Three";
> .
> and so on, and then use a for loo
> -Original Message-
> From: James Arthur [mailto:[EMAIL PROTECTED]]
> Sent: 07 January 2002 21:41
> For example, consider the string $body = "I am saying \"Hello\"";
>
>
> is interpreted by the browser as
>
> And so we have a problem.
>
> What can I do about that?
Since this is
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: 08 January 2002 07:15
>
> Ok, basically I only configured php with apxs
>
> However, I noticed the mysql was supported (It said so on php
> info page)
>
> How is that possible?
MySQL support is built in
601 - 666 of 666 matches
Mail list logo