Re: [PHP] Is it possible to have the parameters fo a function be exited HTML?

2001-06-22 Thread Phillip Bow


Its probably just as fast for you to test it out using what you have written
here as it is for someone to give you the answer.


And in answer to your question no this script will not run properly.
--
phill

""Jason Lustig"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Is it possible to break up the parameters of a function with ?> and 
> What I mean by this, for example, is this:
>
>
> 
>
> 
> strtoupper(
>
> ?>
>
> 
> 
> 
> http://www.php.net";>php.net
> 
> 
> 
>
> 
> );
>
> ?>
>
> 
>
> With this example, will it output the following HTML?
>
>
> 
>
>
> 
> 
> 
> HTTP://WWW.PHP.NET";>PHP.NET
> 
> 
> 
>
>
> 
>
> I know it's not a very useful use of strtoupper()... :) But I am curious
> about whether it is possible to have the parameters to a function in
exited
> HTML. Is it possible?
>
> --Jason
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] passing arrays

2001-06-22 Thread Phillip Bow

You could use sessions, but it may be overkill for what you are trying to
do.
--
phill

""Jason Jacobs"" <[EMAIL PROTECTED]> wrote in message
001201c0fb50$6f895300$7feb1e18@superman">news:001201c0fb50$6f895300$7feb1e18@superman...
Hi all.  I'm trying to pass an array to another page, and I'm not having
luck.  I thought maybe it would do something slick by passing it in the url,
but it doesn't.  So, how can I pass the array?  I've done it before by going
through the array and making a hidden input field for each of the entries,
but this is in just a processing script that redirects to the display page
right after.  Would it be easiest to just do it all on one page?  Thanks for
the help.

-Jason



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Which is more expensive: concatenation or embedding?

2001-06-22 Thread Phillip Bow

What about:
echo "This is a string and my variablke $x is ".$x."\n";

I think your first would be faster, but on such a miniscule level as to be
irrelevant.
--
phill

> There are two ways to get your variables into a string -- concatenation
with
> single-quoted strings, or embedding in evaluated double-quoted strings.
> Which is more expensive to the server?
>
> For example:
>
> 
> $x = 10;
> echo "This is a string and my variable \$x is $x.\n";
> echo 'This is a string and my variablke $x is '.$x."\n";
>
> ?>
>
> Now, which is more expensive? Is it more expensive to concatenate them, or
> to evaluate the whole string since it would be in double-quotes? I see
lots
> of people do things in double-quotes, but it would seem to me that
> single-quoted strings concatenated with variables would be less expensive
> because you are only evaluating the variables.
>
> --Jason
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Why is this not working

2001-05-17 Thread Phillip Bow

What permissions do you need to execute htpasswd?
--
phill

""YoBro"" <[EMAIL PROTECTED]> wrote in message
9e1h4j$8k5$[EMAIL PROTECTED]">news:9e1h4j$8k5$[EMAIL PROTECTED]...
> That didn't seem to work.
> I am beginning to pull my hair out now.
>
> ""Tolga "thorr" Orhon"" <[EMAIL PROTECTED]> wrote in message
> 9e1gjb$u1q$[EMAIL PROTECTED]">news:9e1gjb$u1q$[EMAIL PROTECTED]...
> > I mean the absolute path for executable.
> >
> >  > passthru ("/usr/bin/htpasswd -b /users/domain/.htpasswd abc pass");
> >  ?>
> >
> > thorr
> >
> > ""YoBro"" <[EMAIL PROTECTED]> wrote in message
> > 9e1gb1$jnn$[EMAIL PROTECTED]">news:9e1gb1$jnn$[EMAIL PROTECTED]...
> > > My message described the absolute path with the provider I use.
> > >
> > > I am able to download the .htpasswd file from
> > > /users/domain/
> > >
> > > Still not working though.
> > >
> > > ""Tolga "thorr" Orhon"" <[EMAIL PROTECTED]> wrote in message
> > > 9e1fth$vi3$[EMAIL PROTECTED]">news:9e1fth$vi3$[EMAIL PROTECTED]...
> > > > May be you need to use absolute path for htpasswd. eg.
> /usr/bin/htpasswd
> > > > Did u check for any error msgs?
> > > >
> > > > thorr
> > > >
> > > > ""YoBro"" <[EMAIL PROTECTED]> wrote in message
> > > > 9e1fcd$pir$[EMAIL PROTECTED]">news:9e1fcd$pir$[EMAIL PROTECTED]...
> > > > > After much investigation through many newsgroups and websites, I
> found
> > > out
> > > > > that this is the way you can execute a unix apache command to add
a
> > user
> > > > to
> > > > > the htpasswd list with PHP.
> > > > >
> > > > > Problem is, it doesn't add any information to the htpasswd file.
> > > > > Note: The example below is...
> > > > > domain = my user name
> > > > > abc = user name to add to htpasswd list
> > > > > pass = password to add to htpasswd list
> > > > >
> > > > >  > > > > passthru ("htpasswd -b /users/domain/.htpasswd abc pass");
> > > > > ?>
> > > > >
> > > > > Please Help if you can.
> > > > >
> > > > > Cheers,
> > > > > YoBro
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > PHP General Mailing List (http://www.php.net/)
> > > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > > > To contact the list administrators, e-mail:
> > [EMAIL PROTECTED]
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > PHP General Mailing List (http://www.php.net/)
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > > To contact the list administrators, e-mail:
> [EMAIL PROTECTED]
> > > >
> > >
> > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > To contact the list administrators, e-mail:
[EMAIL PROTECTED]
> > >
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] PHP Pros/Cons, Case Examples, PHP vs Servlets

2001-05-17 Thread Phillip Bow

Well from my experience development time with PHP is generally much faster
than Java development time.  Definately something most people would want to
factor in.
YMMV --phill

""Scott A Winkle"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
>
> Im currently running many scripts myself and other staff members wrote in
> PHP for the university. Certain others want to eliminate PHP and make
> everything Java based. It is now in the 'debate meeting' stage, so I need
> some help. I have done a handful of research already, but im looking for
> more info.
>
> Specifically:
>
> Pros/Cons of PHP (in general) ...from your experiences
> Pros/Cons of PHP in a university environment ...for those working at/with
> universities/educational institutions
> Case Examples of PHP use in universities, would be especially helpful for
> anyone with examples of using PHP with a datatel product.
> Any info on using PHP with a UniData database, even if its through ODBC.
> Any cases where you found PHP was better at the task than Java, or
> vice-versa. Specific examples, etc, would be even better.
>
> The meeting is scheduled for May 22, so any info prior would be great
>
> Thanks for the help,
> Scott
>
>
> Scott Winkle
> Web Developer
> Phone: (937) 327-7478
> [EMAIL PROTECTED]
> Web Team / Wittenberg University Computing Center
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] PrimalScript Users

2001-05-16 Thread Phillip Bow

For anyone using PrimalScript as their IDE I have put together an updated
php.sense file with mostly all(theoretically) the PHP functions available as
of PHP 4.04pl1(the sense files are what allow the autocompletion of
functions, and shows the param list).  I have seen a lot of complaints about
problems in 4.05 so I haven't installed it, but if I can get some feedback
on whether or not its a good upgrade then I can release a new php.sense with
any updates that have been made.

I will get around to adding the GTK functions I think in the next week or
so.  If you find any missing functions, or sets of functions please let me
know.

You can get the file at http://phpini.com/sense/ (or
http://phpini.com/sense/php.sense if you don't wanna read my comments :)
--
phill




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] phpjobs.com

2001-05-14 Thread Phillip Bow

http://jobsearch.monster.com/jobsearch.asp?cy=US&brd=1&lid=&fn=6&fn=660&fn=5
54&q=php

Good luck in your search.
--
phill

"Jack Dempsey" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> anyone know what the deal with it is? i'm trying to find some work for
> the summer (been REAL hard) and noticed that the site is "there",
> although not really...
>
> -jack
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] simple database extraction problem :(

2001-05-03 Thread Phillip Bow

Clue = "Nested Loops"
--
phill

"Sandeep Hundal" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> hi all!
>
> just a quick thing. i've got loads of info in mysql, which i extract
> and then use a "while ($r = mysql_fetch_array($result)) {" to output
> the result.
>
> the only thing is, because its a loop, all results look the same,
> whereas i want the first row to be displayed differently than the
> next 4.
>
> any clues??
>
> thanks!
>
> /sunny
>
> 
> Do You Yahoo!?
> Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
> or your free @yahoo.ie address at http://mail.yahoo.ie
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Returning Lowest Number Not In Array

2001-05-03 Thread Phillip Bow

rsort($array);
$nextNum = $array[0] + 1;

You may have to include the numerical flag, but I don't think so.
--
phill

"Mike Potter" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi all:
>   I'm hoping someone can help me out with this array problem.  I'm
> trying to find the lowest number which is not in the array.
>   For example:
> Given this array :return this:
>
> (0, 0)1
> (1,0)2
> (1,2,0)3
> (3,0)1
> (1, 3)2
>
> Does anyone have any code, or any hints on how to go about this?  I've
> worked on it for a few hours, and am really stuck.
> Thanks,
> Mike
>
> Mike Potter
> OEone Corp.
> http://www.oeone.com
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Random number generation...

2001-05-02 Thread Phillip Bow

Its supposedly faster and generates a "more" random number than rand() so I
don't see why not to use it.
--
phill

"Jon Haworth" <[EMAIL PROTECTED]> wrote in message
67DF9B67CEFAD4119E4200D0B720FA3F13B733@BOOTROS">news:67DF9B67CEFAD4119E4200D0B720FA3F13B733@BOOTROS...
> The manual also says:
>   mt_rand -- Generate a better random value
>
> I've been using mt_rand() over rand() every time - is there any reason not
> to?
>
> Cheers
> Jon
>
>
> -Original Message-
> From: elias [mailto:[EMAIL PROTECTED]]
> Sent: 03 May 2001 00:05
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] Random number generation...
>
>
> why not use the rand() ?
>
> manual says:
>
> rand -- Generate a random value
> Description
>
> int rand ([int min [, int max]])
>
>
> If called without the optional min, max arguments rand() returns a
> pseudo-random value between 0 and RAND_MAX. If you want a random number
> between 5 and 15 (inclusive), for example, use rand (5, 15).
>
> Remember to seed the random number generator before use with srand().
>
> -elias
> http://eassoft.cjb.net
>
>
> **
> 'The information included in this Email is of a confidential nature and is
> intended only for the addressee. If you are not the intended addressee,
> any disclosure, copying or distribution by you is prohibited and may be
> unlawful. Disclosure to any party other than the addressee, whether
> inadvertent or otherwise is not intended to waive privilege or
confidentiality'
>
> **
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] can someone debug this vote.php script for me?

2001-04-30 Thread Phillip Bow

Its just a warning error.  You can get rid of it by defining the variable,
or just change your error settings to not report warnings.
--
phill

""Joe Truong"" <[EMAIL PROTECTED]> wrote in message
9ce21h$s1n$[EMAIL PROTECTED]">news:9ce21h$s1n$[EMAIL PROTECTED]...
> can some one debug this script for me... it say's "Warning: Undefined
> variable: total in PHP_poll.php on line 63"
>
> thanxz alot!!!
>
>
>
> 
> // En: Begin PHP Code
>
>
/***
> ***\
>
> * PHP Poll Version 1.0 *
>
> * Copyright 2000 Frederic TYNDIUK (FTLS) All Rights Reserved. *
>
> * E-Mail: [EMAIL PROTECTED] Script License: GPL *
>
> * Created 02/28/2000 Last Modified 02/28/2000 *
>
> * Scripts Archive at: http://www.ftls.org/php/ *
>
>

> ***/
>
> // Necessary Variables:
>
> $RESULT_FILE_NAME = "poll_data.txt";
>
> // En: Absolute path and name to file contain poll data.
>
> $QUESTION = "How do you like this Script?";
>
> // En: Question Text.
>
> $ANSWER = array("Love it!", "Like it!", "Its okay..", "I dislike it", "I
> hate it..");
>
> // En: All answer.
>
> $IMG_DIR_URL = "./vote";
>
> // En: URL Directory of poll graphs.
>
> $REVOTE_TIME = 3600;
>
> // En: Time (second) after people can revote, use cookies.
>
> // End Necessary Variables section
>
>
/***
> ***/
>
> if (!isset($vote) && !isset($result)) {
>
> echo "\n";
>
> echo " BORDER=1>\n";
>
> echo "$QUESTION\n";
>
> while (list($key, $val) = each($ANSWER)) {
>
> echo " TYPE=\"radio\" NAME=\"answer\" VALUE=\"$key\"> $val width=\"2%\">\n";
>
> }
>
> echo " NAME=\"vote\" VALUE=\" Vote \">\n";
>
> echo "  \">\n";
>
> echo "";
>
> } else {
>
> $file_array = file($RESULT_FILE_NAME); // or error("Can not open
> \$RESULT_FILE_NAME");
>
> // En: Save result
>
> if ($answer < count($ANSWER) && $vote) {
>
> if (count($file_array) < count($ANSWER)) {
>
> $file_array = array("0\n", "0\n", "0\n", "0\n", "0\n", "0\n", "0\n",
"0\n",
> "0\n", "0\n");
>
> }
>
> $old_answer = $file_array[$answer];
>
> $old_answer = preg_replace("/\n\r*/", "", $old_answer);
>
> $file_array[$answer] = ($old_answer + 1)."\n";
>
> $file = join('', $file_array);
>
> $fp = fopen("$RESULT_FILE_NAME", "w"); //or error("Can not write
> \$RESULT_FILE_NAME");
>
> flock($fp, 1);
>
> fputs($fp, $file);
>
> flock($fp, 3);
>
> fclose($fp);
>
> }
>
> // En: Display result
>
> while (list($key, $val) = each($file_array)) {
>
> $total += $val;
>
> }
>
> echo "PHP Poll vote results :";
>
> echo " BORDER=1>";
>
> echo "WhatPercentageVotes";
>
> while (list($key, $val) = each($ANSWER)) {
>
> $percent = $file_array[$key] * 100 / $total;
>
> $percent_int = floor($percent);
>
> $percent_float = number_format($percent, 1);
>
> $fp += $percent_float;
>
> echo " $ANSWER[$key]  src=\"$IMG_DIR_URL/vote_left.gif\">";
>
> echo " src=\"$IMG_DIR_URL/vote_middle.gif\">";
>
> echo " $percent_float %
> ";
>
> echo "$file_array[$key]";
>
> }
>
> echo "";
>
> }
>
> ?>
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Newbie question about Classes

2001-04-24 Thread Phillip Bow

and VB is a POOP language :)  (pseudo-Object oriented programming)
--
phill

> PHP isn't Java; it's not an OO language.
> PHP isn't...um...FORTAN; it's not a purely PP language.
> 
> 
> The world if formed from the void,
> like utensils from a block of wood.
> The Master knows the utensils,
> yet keeps to the block:
> thus he can use all things.
> 
> 
> 
> --
> Plutarck
> Should be working on something...
> ...but forgot what it was.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Newbie question about Classes

2001-04-24 Thread Phillip Bow

http://phpbuilder.com/columns/rod19990601.php3

This is almost a religious debate in itself, but some brief info anyway.

""SED"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
>
> I have now been 3-4 months writing PHP-codes and read the PHP manual
> throughout. But there is one thing I can't figure out properly (I think
it's
> not covered enough in the manual): Classes!
I am fairly certain it is covered in the manual. Chapter 13. Classes and
Objects(http://php.net/manual/en/language.oop.php)

> When and why would I use it?
It is a preferential manner of coding.  It is not strictly necessary in any
situation, but there are some arguments about when it should be used and
when it shouldn't(unless your a Java programmer).  I have found OOP to be
very useful for some large projects, and for others I have avoided it for no
other reason than I didn't feel like coding my app that way on that
particular day.

> Is it only to group certain functions or does it have a special function?
As I said it is just another style of coding.  Take a shot at writing an OO
app.  It takes some getting used to, but its something everyone should at
least know so at the very least you can understand someone else's code.

> Thanks!
>
> Regards,
> Sumarlidi Einar Dadason
>
> SED - Graphic Design
--
phill


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Countdown in PHP

2001-04-24 Thread Phillip Bow

Its easy enough to display a time and have it count down each time someone
views the page(get a timestamp and hardcode it in, then grab a current
timestamp when someone hits the page and compare the two), but if you want a
constant countdown updating constantly then it has to be client side.  The
only way around this would be to throw in a meta refresh tag set to refresh
every second.  This is not a viable option obviously, and technically it
would still be a client side alteration.  You said the countdown could be
done with Javascript which is a client side technology, and is what should
be used to do this.
--
phill

"george" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
>  I mean server side.
>  What i thought icould do was use a cookie time()
>  but how do I extract the value and display it as day hour minute second
> format
>  and also how do I change the value of the cookie to reflect the
> different times someone will log on.
>  For instance by setting the cookie someone will have access for 3 hours
> but someone who enters the site an hour later will only have access for
> 2.
>  Any help would be great Ihave nearly finished this project and this is
> all that is hoiding me up, I am  starting to pull my hair out and the
> client is determined that it be done server side.
>
>
> --
> george
> chiefmonkey@wisemonkeydesign.co.uk
> remove my_pants to reply
> 44 (0)1698 712537
> 44 (0)1698 712657
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] newbie question: duplicate emails

2001-04-23 Thread Phillip Bow

Whenever you are positive its nto your code then check it again.  That being
said are there any SMTP logs you can check?  Have you monitored the exact
data being sent to the SMTP server(maybe set up a dummy socket that repeats
back the data sent to it then have your program try to connect to that)?
--
phill

""Nikhil Goyal"" <[EMAIL PROTECTED]> wrote in message
9c1ujm$868$[EMAIL PROTECTED]">news:9c1ujm$868$[EMAIL PROTECTED]...
> Hello people,
>
> I am having a peculiar problem with my mailing list and hope you can help
me
> out. I have a mySQL database with a table of email addresses for the
mailing
> lists. I have many lists, and my (PHP) code runs various queries on this
> table to generate lists of email addresses to which the mail has to be
sent.
>
> The email body is combined with this generated list, and then I use mail()
> to send this message out to each recipient. I also add on a few headers
such
> as From:, Errors-To, Reply-To and Return-Path to the message.
>
> Now the problem is that every recipient of my mail is getting two copies
of
> the message. I am positive that it's not my code which is causing the
> problem, the script runs once and terminates. I've also tried to send mail
> by opening a socket connection to port 25 on the mail machine and sending
> SMTP commands, but still the result is the same. And there is no SMTP
error
> generated.
>
> Can anybody help me out here? or perhaps suggest a more efficient way of
> sending out mail to my users? I'm really in a spot here...
>
> - Nikhil
>
>
>
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Looping through variables

2001-04-23 Thread Phillip Bow

All of the POST variables will be stored in the HTTP_POST_VARS array which
you can loop through once rather than manually doing each seperate variable.
--
phill

""Ashley M. Kirchner"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> I have a bunch of variables (through a POST form) that I need to
> loop through and check for content.  Right now, each one is being
> evaluated separately:
>
>   if ($var1 == '') {
> $url .= "&var1=";
> $error = 1;
>   } else {
> $url .= "&var1=".urlencode(stripslashes($var1))."";
>   }
>
> Then repeat for $var2, $var3, etc., etc...
>
> Is there a better way of doing this looping instead of writing the
> same routine over and over again?
>
> AMK4
>
> --
> H | Hi, I'm currently out of my mind.  Please leave a message.  BP!
>   |
>   ~
>   Ashley M. Kirchner    .   303.442.6410 x130
>   Director of Internet Operations / SysAdmin. 800.441.3873 x130
>   Photo Craft Laboratories, Inc. .eFax 248.671.0909
>   http://www.pcraft.com  .3550 Arapahoe Ave, #6
>   .. .  .  . .Boulder, CO 80303, U.S.A.
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] killing a session

2001-04-19 Thread Phillip Bow

Check out http://php.net/manual/en/function.session-destroy.php
--
phill

""Ellis Heckman"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> This does seem to work well. Thanks a lot.
>
> unlink(session_save_path().'/sess_'.$PHPSESSID);
> setcookie('PHPSESSID','',time()-3600,'/');
>
> Ellis Heckman
> [EMAIL PROTECTED]
> http://www.sigmathree.com/
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] submit form values to new site after validation

2001-04-19 Thread Phillip Bow

Using the POST method will prevent the credit card data from being included
in the url.  I would still be careful about sending data like this via a
POST to a form handler on an entirely different site.  It would be better if
there was some sort of secure socket to transfer the data through.
--
phill

"Tom Beidler" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I'm trying to modify and e-commerce site which originally sent an email
with
> the credit card info in an email. Now they would like to pass credit card
> numbers to a payment-processing service. For this particular service,
> Authorize.net, you would normally direct the form data to the
> payment-processing service. The page is currently setup to resubmit to
> itself and validate fields before anything else.
>
> I would like to keep that functionality but I'm wondering how to pass the
> values onto the payment-processing center after the validation. The flow
> would be, hit the submit button and send the data to the page to validate
> the fields and then send the info to Authorize.net. The form currently has
> about 15 fields to validate and only needs to pass 3 of them to the
> payment-processing center.
>
> I'm still relatively new to this and I'm thinking the only way to pass
> variables is through a submitted form or the url and I don't want to put
the
> credit card info in the url.
>
> Any help would be greatly appreciated.
>
> Tom
>
> >>.>>.>>>.>.>.
> Tom Beidler
> Orbit Tech Services
> 805.682.8972 (phone)
> 805.682.5833 (fax)
> [EMAIL PROTECTED]
> http://www.orbittechservices.com/
> >>.>>.>>>.>.>.
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] SOMEONE SHOOT ME!!!

2001-04-17 Thread Phillip Bow

Godd has spoken :)  Sorry couldn't resist.
--
phill
""Godd"" <[EMAIL PROTECTED]> wrote in message
9biala$c59$[EMAIL PROTECTED]">news:9biala$c59$[EMAIL PROTECTED]...
> Be very careful what you ask for
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] True Appreciation

2001-04-17 Thread Phillip Bow

Uh oh.  Thats gonna go to my head.
--
phill

""Jason Caldwell"" <[EMAIL PROTECTED]> wrote in message
9bf94i$90r$[EMAIL PROTECTED]">news:9bf94i$90r$[EMAIL PROTECTED]...
> Many THANKS!
>
> I find this newsgroup to be one of the *best* I've come across!  Responses
> are quick, usually detailed and always right on target...
>
> You guys and gals rock!
>
> Jason
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Want a Good Book for Ref on PHP

2001-04-16 Thread Phillip Bow

I started with the Professional PHP Programming book.  It covers all of the
info a beginner would need in good detail.  I haven't taken a look at the
Beginner's book, but I would suggest getting the Professional one as it
provides everything you need to get started, and then jumps right into the
next level stuff(Db development, mail features, etc...).
--
phill

""Navid Yar"" <[EMAIL PROTECTED]> wrote in message
000201c0c657$158b9ee0$[EMAIL PROTECTED]">news:000201c0c657$158b9ee0$[EMAIL PROTECTED]...
> You know, I was wondering the same thing. My situation is the same. My
> opinion is that the professional version probably strips out most of the
> beginner's content and adds more advanced php content and dives into
> everything in more detail rather than just trying to get a beginner off
> their feet by providing simple tasks
>
> Wrox is a great company, they come out with books that are the most
> comprehensive. Both versions might be a good investment for hardcore php
> programmers. Best thing to do is to just stop by a barnes and nobles
> bookstore and start looking through both books to see which one is best
for
> you.
>
> Navid
>
>
>
> -Original Message-
> From: Martin Skjoldebrand [mailto:[EMAIL PROTECTED]]
> Sent: Monday, April 16, 2001 12:53 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] Want a Good Book for Ref on PHP
>
>
> Kath wrote:
>
> > Professional PHP Programming:
> >
>
http://www.amazon.com/exec/obidos/ASIN/1861002963/qid=987388364/sr=1-12/ref=
> > sc_b_13/002-2263539-0333643
>
> I've got Beginning PHP 4 (recommended) on the back cover of which it says
> that the next book could be "Professional PHP Programming.".
> However from what I saw in the book shop they cover lots of the same
> ground. I (and my employer) wouldn't like to pay for the same stuff again.
> Is there a significant difference between the two?
>
> Martin S.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Newbie MySQL Table Work

2001-04-12 Thread Phillip Bow

Check out mysql_query.   It will allow you to execute any query that you
would normally do via the command line interface to MySQL.
--
phill

""Chris Anderson"" <[EMAIL PROTECTED]> wrote in message
000301c0c373$a3522960$b01012d1@null">news:000301c0c373$a3522960$b01012d1@null...
Alright I finally got around to installing MySQL on my cpu, and I
sucessfully created a database. Now I have a ryyy dumb question.
In the manual I see no functions for creating tables in a database through
code. Maybe I'm just missing the function. Can someone help me?



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] __ $8/mo php hosting on 24/7, OC3+ web server ___

2001-04-10 Thread Phillip Bow

Hi,
I don't mean to bash, but these sort of answers don't give me a lot of
faith in the service you are starting.  At the very least I expect my
service provider to provide competent answers to questions,  and to know the
basics of security.

> >no no - its an OC3+ web server.must be an overseas brand..or
> >something..i've never heard of it.maybe its an SGI or something
> >they have wacky names for their stuff  :-)
> >
> It is at least OC3.  I forgot what comes next after OC3.

OC12.

> >no pron?  damn!  that puts me out!
> >
>
> I am a co-administrator.  I don't have a problem with porn sites, but
> my partner would object.  But if you're really interested and you pay
> us lots of money we can take care of you.

And if you give me lots of money I'll be happy to make up a pricing scheme
for your new business plan, and maybe do some security consulting too.

> >what about security?  are they on top of the latest versions and
> >patches.i mean after all...it is REDHACK..
> >
>
> I'm no security expert, but I can apply the most important patches.
> Yesterday I added mod_ssl to apache.

If you are adding mod_ssl then you aren't really patching anything you are
just adding a feature, and just installing patches is not even the start of
having a secure service.  I suspect your partner at least has some security
experience or I expect it will not be long before your site, and your
client's sites are 0wn3d.

> >spammers are funny people :-)
> >
> >~kurth
> >
>
> I'm not your average spammer.  I am a computer scientist dedicated to
> the struggle against the fascist MS hegemony and all other fascist
> corporations who try to control computer technology.  Support my
> business and you'll be doing the world a favor. ;^)

You are definately not the average spammer.

> --
> Jeff Greer
> - B.S. computer science - Univ. MO - Rolla
> - I do web hosting and development.  Details
>   at http://www.singlesconnection.org/services/

-phill
*Computer User dedicated to computer using*


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Commercial sites that use PHP

2001-04-10 Thread Phillip Bow

Well since nobody else has chimed in(barring the fact it may be in one of
the already recommended lists) sourceforge is made with php, and is a pretty
noteworthy site.
--
phill

"Phil Labonte" <[EMAIL PROTECTED]> wrote in message
1B5C7FA9D60DD511ABEF00508BFDEFDC105E@EXCHANGE">news:1B5C7FA9D60DD511ABEF00508BFDEFDC105E@EXCHANGE...
> Can anyone send me a list of large commercial web sites that use PHP?
>
> I am trying to move to PHP here at work but I need some examples to
impress
> the boss!!!
>
> Thanks
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Nearly all (1755) PHP functions in a text file

2001-04-06 Thread Phillip Bow

Geez Plutarck where are all the GTK functions? :)  Just kidding this is
great and I am gonna snarf a copy to use locally.
--
phill

""Plutarck"" <[EMAIL PROTECTED]> wrote in message
9ajqk2$ll4$[EMAIL PROTECTED]">news:9ajqk2$ll4$[EMAIL PROTECTED]...
> First of all I use Edit Plus, which uses a list of PHP functions to know
> what words to highlight in the code.
>
> Well now that I have a seriously throbbing headache, I've done it.
Finally.
>
> If you use a program that needs a list of functions for syntax
highlighting,
> I've finally got one that has every function according to PHP
> get_defined_functions (includes quite a few undocumented functions), the
PHP
> manual, and quite a few others it failed to mention but should be
> highlighted. unset() is a good example, along with print/echo, I managed
to
> put it together. Every entry on it's own line (so it's seperated by "\n").
>
> My head feels like it is being used as the repository for Anna Nichole
> Smith's silicone breast implants (both failed and spare parts for future
> use).
>
> In any case, there are 1755 entries in the blasted thing. If it's in the
PHP
> manual or get_defined_functions, it's in there. And damn is that alot.
>
> Here is the link to the text file:
> http://crazyoddball.hypermart.net/php.stx.txt
>
>
> However I learned so many cool things with so many functions I'd like to
> use, but I have a severe headache and have to go to work (I'll be in a car
> the whole time, so no computer) in one hour, and I haven't slept.
>
> And I'm not getting paid for this either.
>
> Ah yes, this is GeekLife. But I have no caffiene in my system. So this is
> the GranolaGeekLife...GGL...giggle?
>
>
>
> Well whatever I end up doing/not-doing, enjoy! Hopefully the thing will be
> useful.
>
> I certainly hope so, because compiling the whole thing was overkill if I'm
> the only one that will use it :)
>
>
>
> --
> Plutarck
> Should be working on something...
> ...but forgot what it was.
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Monthly Drawing Winner!

2001-04-04 Thread Phillip Bow

Aww shoot.  How am I supposed to win now? :)
--
phill

"Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Done.  Anything from mail.thecasino.com and thecasino.com is now blocked.
>
> -Rasmus



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] HTTP Upload Problem

2001-04-02 Thread Phillip Bow

I suspect there is a limit on the MAX_FILE_SIZE.  You might want to check
the RFC, but I suspect you should set the value to be 2gb or less(I think
that is the limit).
--
phill

"Yev" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> OK, here's my problem
> I wrote a simple upload script:
>
>  print_r($HTTP_POST_FILES);
> ?>
>
> 
> 
> File: 
> 
> 
>
>
> I purposely specified MAX_FILE_SIZE to be big since I heard it causes
> problems if it's too small: ie files get rejected no matter what.
>
> If I input any file, the $HTTP_POST_FILES shows the proper stuff, but
> the file doesn't exist in "/tmp" (which is set in php.ini), if I leave
> the file field empty, then a /tmp/phpXX file is created with a 0
> byte size.
>
> What can be the problem? It's not permissions..
>
> Yev
>
> __
> Do You Yahoo!?
> Get email at your own domain with Yahoo! Mail.
> http://personal.mail.yahoo.com/?.refer=text
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] PHP Editor for Linux

2001-03-30 Thread Phillip Bow

Read back a couple of days and you'll probably see multiple answers to this
question.
--
phill

""Martin Cabrera Diaubalick"" <[EMAIL PROTECTED]> wrote in message
005b01c0b92c$8bd3ff80$[EMAIL PROTECTED]">news:005b01c0b92c$8bd3ff80$[EMAIL PROTECTED]...
> VIM? No thanks :-)
>
> :wq
>
>
> - Original Message -
> From: Michael Champagne <[EMAIL PROTECTED]>
> To: Martin Cabrera Diaubalick <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Friday, March 30, 2001 5:13 PM
> Subject: Re: [PHP] PHP Editor for Linux
>
>
> > What about the greatness of VIM?
> >
> > > Hi there!
> > >
> > > I use bluefish for HTML and PHP coding, but I'm not too happy with it.
> Do
> > > you know a good PHP Editor for Linux, besides Emacs and xjed...?
> > >
> > >
> > >
> > > TIA
> > >
> > >
> > >
> > >
> > >
> >
> > --
> > Michael Champagne, Software Engineer
> > Capital Institutional Services, Inc.
> > wk: [EMAIL PROTECTED]
> > hm: [EMAIL PROTECTED]
> >
> >
> >
> > **
> > This communication is for informational purposes only.  It is not
> > intended as an offer or solicitation for the purchase or sale of
> > any financial instrument or as an official confirmation of any
> > transaction, unless specifically agreed otherwise.  All market
> > prices, data and other information are not warranted as to
> > completeness or accuracy and are subject to change without
> > notice.  Any comments or statements made herein do not
> > necessarily reflect the views or opinions of Capital Institutional
> > Services, Inc.  Capital Institutional Services, Inc. accepts no
> > liability for any errors or omissions arising as a result of
> > transmission.  Use of this communication by other than intended
> > recipients is prohibited.
> > **
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Daemon with a PHP file

2001-03-21 Thread Phillip Bow

Unless you have the php executable associated with the .php3 extension(not
the web server association mind you) then you would need to pass the file as
a command line argument to the executable.

0 8 * * * "/usr/local/bin/php /home/users/sebas/citas.php3"

Depending on the location of the php executable I believe this would work.
--
phill

""Renzi, Sebastian"" <[EMAIL PROTECTED]> wrote in message
A1581797259FD211B25E00805FCBC1FA1E4B8C@SRV_DES_01">news:A1581797259FD211B25E00805FCBC1FA1E4B8C@SRV_DES_01...
> Hello my name is Sebastian ,i'm from Argentina ,this is my first question
> in this list.I would like to know how to run a php file every day at 8 AM
> , my intention was to create a cron with the crontab command.Something
> like this ...
>
> 0 8 * * * /home/users/sebas/citas.php3
>
> but this doesnt work ,do u know how to do this ? ,thanks
>
> Sebastián Renzi
> Consultoría & Desarrollo de Sistemas.
> CODES S.A
>

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] include virtual, file or exec cgi?

2001-03-21 Thread Phillip Bow

When I first started playing with PHP I had been using SSI's.  I tried to
find a way that I could get a file that contained SSI's and php to be
parsed, but I haven't seen it done.  In Apache it seems like it would be as
easy as adding a handler that parses shtml files as php files, but that
causes the SSI and/or the PHP parser not to run.
--
phill

""Christian Dechery"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>you won't be able to use $PHP_SELF, and you will encounter problems with
>passing values via the querystring, but other than that you can use SSI
>to
>call a PHP page.

I don't really need any of this, the script is a simple 15-lines-of-code
image randomizer that shows a random image from a list. It couldn't be
simpler,
but in C it's much more code to write.

So why isn't SSI working with my PHP file? SHould it have chmod 755 or be
in a cgi directory or something like that? I tried everything...

does it make any difference if PHP runs as a DSO module or CGI for me to
use SSI??



. [ Christian Dechery  ]
. Webdeveloper @ Tá Na Mesa!
. Listmaster @ Gaita-L
. http://www.tanamesa.com.br



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] A NETWORK MARKETER?

2001-03-21 Thread Phillip Bow

Geez, where can I buy stock?  This is gonna be HUGE! ;-)
--
phill
<[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
>
>
> ATTENTION:  ANY SERIOUS NETWORK MARKETER
> TAKE A LOOK AT THE FOLLOWING OPPORTUNITY I CAME ACROSS!!
> IF YOU PLUG INTO THEIR PROVEN SYSTEM, THEY GUARANTEE YOU SUCCESS,
> AND PROVIDE YOU WITH FREE LEADS TO BUILD YOUR GROUP!!
>
>
> DO NOT LET THIS SLIP AWAY!!  CLICK BELOW AND FIND OUT AS I DID,
> WHY THESE GUYS ARE THE LEADERS IN THE INDUSTRY!!
>
>
>
> http://www.geocities.com/businessupdates2000
>
>
>
>
> *
> THIS EMAIL COMPLIES WITH ALL REGULATIONS.  TO BE REMOVED WITHIN
> 24 Hours, SIMPLYEMAIL [EMAIL PROTECTED] FOR IMMEDIATE
> REMOVAL FROM ANY FUTURE EMAILS FROM OUR COMPANY.
> *
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Comparing two dates.. Which is the older one?

2001-03-20 Thread Phillip Bow

If I were doing this for simplicity's sake I would alter this to be:
 $timestamp = mktime();
 $date_output = date("Y-m-d H:i A", $timestamp);
Then store the $timestamp in the (pseudo)database.  Any operations I need to
compare times will be done on the $timestamp data rather than the
$date_output data which contains a bunch of string data that would otherwise
have to be compensated for with more code.
--
phill


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Comparing two dates.. Which is the older one?

2001-03-20 Thread Phillip Bow

Depending on what sort of timestamp you are getting you should be able to
just do:
if ($loggtime > $oldLoggtime) then...

With just a straight unix timestamp(via mktime();) this would work fine.
--
phill

""Richard"" <[EMAIL PROTECTED]> wrote in message
998o75$aol$[EMAIL PROTECTED]">news:998o75$aol$[EMAIL PROTECTED]...
> Greetings.
>
> (yes.. I am active)
>
> When a user loggs on, I pass the string $loggtime, that is written to
a
> file. Whenever a this user refreshes any of the pages, certain tasks are
> performed, and a file's contents is checked, (which contents is a single
> line of time). If the $loggtime is newer, nothing would happen, but if the
> $loggtime is older than what is written in the file, something should
> happen. Any ideas of how I can compare two dates?
>
> - Richard
>
>
> ps: to all who wonders, I am writing a really small community. Now, this
> question is related whenever a new message is sent.. The message is
written
> to a file, and I check that file everytime a site is refreshed. The file
is
> arrayed with "|" as a separator. :Ds
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] files with html extension

2001-03-20 Thread Phillip Bow

Personally I recommend people don't do this unless their web server is going
to serve only(or mostly) php pages, and very few straight html pages.  It
will save you time mucking around on the server, but the increase in
overhead isn't really worth it. IMHO of course.
--
phill



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Script to convert # of seconds to HH:mm

2001-03-20 Thread Phillip Bow

Always assume people will attempt the most inane things...
--
phill

""Stephan Ahonen"" <[EMAIL PROTECTED]> wrote in message
9969kn$eho$[EMAIL PROTECTED]">news:9969kn$eho$[EMAIL PROTECTED]...
> > Oh in addition this won't work accurately if $time is greater than about
2
> > billion(2147483648 I believe).
>
> This shouldn't be a problem unless you're calculating how many hours and
> minutes a really old guy (>68) has been alive or something.
>
> Sig for a Day
> Stephan Ahonen, ICQ 491101
> "That's very funny Scotty, now beam down my clothes!"
> Come back tomorrow for a different sig!
> Backspace a single "s" to reply by email
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Script to convert # of seconds to HH:mm

2001-03-19 Thread Phillip Bow

I thought about that when I first started, but then went looking to see if
using "\" would return the value without the decimal part.  Not good when
you start confusing VB and PHP and it makes you mess up your code.
--
phill

> This way you don't risk rounding up on your first cast to int and being
off
> by an hour... rounding is ok, however, for minutes since that is your most
> granular interval.
>
> -jm



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Script to convert # of seconds to HH:mm

2001-03-19 Thread Phillip Bow

Oh in addition this won't work accurately if $time is greater than about 2
billion(2147483648 I believe).
--
phill

""Phillip Bow"" <[EMAIL PROTECTED]> wrote in message
9961qg$ma4$[EMAIL PROTECTED]">news:9961qg$ma4$[EMAIL PROTECTED]...
> function philtime($time){
> $hours = (int) ($time / 3600);
> $min = (int) (($time % 3600) / 60 );
> return ("$hours:$min");
> }
> Should be 3600 since:
> 60sec = 1min
> 60min = 1hour
> 60 * 60 = 3600sec/hour
> --
> phill


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Script to convert # of seconds to HH:mm

2001-03-19 Thread Phillip Bow

function philtime($time){
$hours = (int) ($time / 3600); 
$min = (int) (($time % 3600) / 60 );
return ("$hours:$min");
}
Should be 3600 since:
60sec = 1min 
60min = 1hour
60 * 60 = 3600sec/hour
--
phill

> How about something like this:
> 
> $secs = number of seconds;
> $hours = intval($secs/360);
> $minutes = intval(($secs-$hours*360)/60)
> $seconds = $secs - $hours*360 - $minutes * 60;
> 
> Hope this helps.
> 
> Michael Ridinger


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Newbie question: Basic knowledge

2001-03-15 Thread Phillip Bow

Sounds like your mappings in you Web Server aren't setup correctly.  Which
webserver are you using?
--
phill

""Virtual Evil"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> thanks a lot for the feedback, but I must confess it didn't work.
> I tried to create a file, named it phpinfo.php, content:
>
>  phpinfo();
> ?>
>
> but W2k doesn't know how to open the file. Nevertheless i installed PHP
the
> way it is described in the install.txt file. What am I doing wrong?
>
> Please help again!!!
>
> Christian
>
> -Ursprüngliche Nachricht-
> Von: Todd Pillars [mailto:[EMAIL PROTECTED]]
> Gesendet: Donnerstag, 15. März 2001 20:14
> An: Virtual Evil
> Betreff: RE: [PHP] Newbie question: Basic knowledge
>
>
> 
> 
>  My New Page 
> 
> 
>  This is my new web page 
> 
> echo "Hello to all my new friends";
>
> ?>
> 
> 
>
> just put your php code between the  tags
>
> t.
>
> also if you want to know if you set up php correctly cut and paste, and
save
> as phpinfo.php
>
>  phpinfo();
> ?>
>
> the just type in your url and phpinfo.php and look at the vars
>
> -Original Message-
> From: Virtual Evil [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, March 15, 2001 1:51 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Newbie question: Basic knowledge
>
>
> Hi there!
>
> I'm really newbie and I have a major problem.
> I think i've installed the PHP stuff correctly, but I don't know how to
> insert a PHP feature into a ordinary HTML page. Actually i've tried to
find
> it in the faq, but i didn't. so could please somebody tell me how it
works,
> just combining a php file with the source code. If possible, for example
to
> give me a very simple example, so that i can understand the basics!
>
> I'm really desperate so please somebody help me!
>
> Thanks a lot
>
>
> Christian
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] mysql.sock

2001-02-26 Thread Phillip Bow

The problem I had with this in the past is that I didn't have permission to
write to the dir mysql.sock was supposed to be in so when Mysql tried to
start it would fail.
--
phill



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Ok, this might make more sense

2001-02-22 Thread Phillip Bow

You could have the page output options to a formatted plain text file.
Sample Format
{
bold = 0;
italic = 1;
}
 and then when the page loads it reads in the options from that file and
alters the page accordingly.  For extra credit use a database rather than a
plain text file, but if you haven't done that before (and there is a
deadline) this is probably the easiest learning curve.
--
phill


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Regex problems.....

2001-02-22 Thread Phillip Bow

You should either do this with ereg, or strtolower and not a combination of
the two, and in all actuality strtolower is specifically desinged to do this
very easily so I would go with it.
";
 $contents = strtolower($contents);
 ?>

Should do what you want.
--
phill

"Ian LeBlanc" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Guys/Gals:
>
> For some reason too long to explane .. i have this site that i need to
make
> all the image names in an
> image src all lowercase.. Here is what I have so far. Please someone tell
> me what I am doing wrong.
>
>  $contents=" alt=ThisOneReallyNeedsToBeAllLowercase.gif>";
> $contents =
EREG_REPLACE("([-_a-zA-Z0-9]+).gif",strtolower("\\0"),$contents);
> ?>
>
> Output of $contents needs to equal
>
>  alt=thisonereallyneedstobealllowercase.gif>
>
>
> I have the top part of my script reading the whole DIR and only editing
the
> HTML files so
> that part is taken care of All I need it help with making the images tag
> all lower case.
> Ian LeBlanc
> 2tonecafe.com Admin
> 727-517-3866
>
>
>
> You can have [EMAIL PROTECTED] free too. Apply today!
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] books

2001-02-22 Thread Phillip Bow

Personally I started with the Wrox Professional PHP Programming guide and
still use it today(its sittin in front of me).  I see they have one out now
for php4 which is around $60 which I am probably going to order just to keep
up to date.  They cover the basics and then go into some more specific
sections(broken into chapters) on useful technologies you can integrate with
such as XML, LDAP, and MySQL all the while providing good reference sections
in each chapter and sample code.  If you haven't figured it out already I'd
recommend the wrox book.
--
phill

>
> The WROX books are popular.  Also, check out the archives for previous
> discussions :
>
> http://marc.theaimsgroup.com/?l=php-general&r=1&w=2&q=b&s=book
>
>
> Regards,
>
> Philip Olson
> http://www.cornado.com/



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Win32 extensions --- complete confusion

2001-02-15 Thread Phillip Bow

Prior to PHP 4.04 there were two dll's(php_mssql65.dll, and php_mssql7.dll I
believe), but as of 4.04 there is only one which is php_mssql.dll.  If you
are using 4.04 then I assume thats your problem.  Otherwise I would suspect
you are trying to set the path where the extension declarations are rather
than where it asks for extensions_dir which should be c:\php\extensions\.
--
phill

""Michael Hall"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I'm trying to add PHP's MS SQL functionality to my Windows NT server.
>
> My problem appears to be the extension_dir entry in the PHP.ini.   I've
> tried every conceivable way to enter it (the files are actually in
> C:\PHP\extensions), using absolute and relative paths, forward slashes,
> backslashes, and whatever combinations I can think of.
>
> Each time, I get the same error, which is that it can't load dynamic
library
> '/php_mssql70.dll'
>
> Can anyone help me?
>
> Michael Hall
> Database Engineer
> Prairie Fire Web Design
> [EMAIL PROTECTED]
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] mcrypt!

2001-02-14 Thread Phillip Bow

The latest version should be at:
ftp://argeas.cs-net.gr/pub/unix/mcrypt/win32/
--
phill

> Kevin Connolly wrote:
> > Does anyone know where I might get the mcrypt dll for windows nt or
> > win 98??
> 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]