Re: [PHP] mysql problem

2001-02-19 Thread Josh G

Ok, I've fixed the problem, it seems there's some major differences
between the linux / win32 ports of the client.

instead of

blah integer primary key auto_increment

which works on windows, I used

blah integer not null auto_increment primary key

and now it works... I love computers, I really do.

Gfunk -  http://www.gfunk007.com/

I sense much beer in you. Beer leads to intoxication, intoxication to
hangovers, and hangovers to... suffering.


- Original Message -----
From: "Josh G" <[EMAIL PROTECTED]>
To: "PHP User Group" <[EMAIL PROTECTED]>
Sent: Tuesday, February 20, 2001 11:42 AM
Subject: Re: [PHP] mysql problem


> Nope, I've been using autoincrement on that box for a year or so.
>
> It's not a copy/paste thing, cause I'm getting it when I type the lines
> in by hand, too...
>
> Gfunk -  http://www.gfunk007.com/
>
> I sense much beer in you. Beer leads to intoxication, intoxication to
> hangovers, and hangovers to... suffering.
>
>
> - Original Message -
> From: "David Robley" <[EMAIL PROTECTED]>
> To: "Josh G" <[EMAIL PROTECTED]>; "PHP User Group"
> <[EMAIL PROTECTED]>
> Sent: Tuesday, February 20, 2001 11:41 AM
> Subject: Re: [PHP] mysql problem
>
>
> > On Tue, 20 Feb 2001 10:57, Josh G wrote:
> > > Hi, sorry to post this here, but it's driving me crazy. On my local
> > > machine, the following works no furys:
> > >
> > > create table category (category_id integer primary key
> > > auto_increment,name varchar(255) );
> > >
> > > But on the production machine, I get:
> > >
> > > ERROR 1064: parse error near 'auto_increment,name varchar(255) )' at
> > > line 1
> > >
> > > Any idea why It's driving me nuts..
> > >
> > > Gfunk -  http://www.gfunk007.com/
> > >
> >
> > Is the version of Mysql on the production box an older one?
autoincrement
> > is comparatively new, I think.
> >
> > --
> > David Robley| WEBMASTER & Mail List Admin
> > RESEARCH CENTRE FOR INJURY STUDIES  | http://www.nisu.flinders.edu.au/
> > AusEinet| http://auseinet.flinders.edu.au/
> > Flinders University, ADELAIDE, SOUTH AUSTRALIA
> >
> > --
> > 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 problem

2001-02-19 Thread Josh G

Nope, I've been using autoincrement on that box for a year or so.

It's not a copy/paste thing, cause I'm getting it when I type the lines
in by hand, too...

Gfunk -  http://www.gfunk007.com/

I sense much beer in you. Beer leads to intoxication, intoxication to
hangovers, and hangovers to... suffering.


- Original Message -
From: "David Robley" <[EMAIL PROTECTED]>
To: "Josh G" <[EMAIL PROTECTED]>; "PHP User Group"
<[EMAIL PROTECTED]>
Sent: Tuesday, February 20, 2001 11:41 AM
Subject: Re: [PHP] mysql problem


> On Tue, 20 Feb 2001 10:57, Josh G wrote:
> > Hi, sorry to post this here, but it's driving me crazy. On my local
> > machine, the following works no furys:
> >
> > create table category (category_id integer primary key
> > auto_increment,name varchar(255) );
> >
> > But on the production machine, I get:
> >
> > ERROR 1064: parse error near 'auto_increment,name varchar(255) )' at
> > line 1
> >
> > Any idea why It's driving me nuts..
> >
> > Gfunk -  http://www.gfunk007.com/
> >
>
> Is the version of Mysql on the production box an older one? autoincrement
> is comparatively new, I think.
>
> --
> David Robley| WEBMASTER & Mail List Admin
> RESEARCH CENTRE FOR INJURY STUDIES  | http://www.nisu.flinders.edu.au/
> AusEinet| http://auseinet.flinders.edu.au/
> Flinders University, ADELAIDE, SOUTH AUSTRALIA
>
> --
> 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] mysql problem

2001-02-19 Thread Josh G

Hi, sorry to post this here, but it's driving me crazy. On my local
machine, the following works no furys:

create table category (category_id integer primary key auto_increment,name
varchar(255) );

But on the production machine, I get:

ERROR 1064: parse error near 'auto_increment,name varchar(255) )' at line 1

Any idea why It's driving me nuts..

Gfunk -  http://www.gfunk007.com/

I sense much beer in you. Beer leads to intoxication, intoxication to
hangovers, and hangovers to... suffering.




-- 
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] PHP has encountered an Access Violation at 10014D15

2001-02-19 Thread Josh G

PHP has encountered an Access Violation at 10014D15

What the crap does that mean?

Gfunk -  http://www.gfunk007.com/

I sense much beer in you. Beer leads to intoxication, intoxication to
hangovers, and hangovers to... suffering.
  



-- 
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] File upload problem on IIS/NT4

2001-02-19 Thread Josh G

Hi guys, I'm having a problem with file uploads, and I can't seem to
fix it. I'm on IIS using php as an ISAPI module on NT4, and file uploads
seem to work, but $userfile does not exist. Any ideas on how I can
fix it?

userfile:\\php8
userfile_name:notes.txt 

Cheers,

Gfunk -  http://www.gfunk007.com/

I sense much beer in you. Beer leads to intoxication, intoxication to
hangovers, and hangovers to... suffering.
  



-- 
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] Here you have, ;o)

2001-02-13 Thread Josh G

Definitely, I agree, but I think it would be better if WSH was simply
patched, perhaps with a way to sign scripts, and non-expert users
can't give them root permissions, and that scripts should not
ever be able to send emails without a user confirmation, no matter
what permissions they have. Perhaps do the same thing with trying
to run a program or load a COM component.

My .02 :)

Gfunk -  http://www.gfunk007.com/

I sense much beer in you. Beer leads to intoxication, intoxication to
hangovers, and hangovers to... suffering.


- Original Message -
From: "Thor M. Steindorsson" <[EMAIL PROTECTED]>
To: "Josh G" <[EMAIL PROTECTED]>
Sent: Wednesday, February 14, 2001 10:15 AM
Subject: RE: [PHP] Here you have, ;o)


> I agree with the vbs part, unfortunately windows is set by default to hide
> file extensions of known file types, meaning the person would only see the
> .jpg extension and not the .vbs.  Since most computer users are not as
> computer savvy as we are, they don't know any better.
>
> As far as the WSH, I removed mine months ago, and have yet to find a
program
> or website that has a problem with it not being there.  IMHO WSH is the
> biggest security threat ever released by a big computer corporation, since
> it essentially gives all scripts the same permissions the user has, and
> since 98% of windows 9x users essentially have admin permissions on their
> machines, the WSH basically gives admin access to anyone with a little bit
> of VB knowledge and a mean streak.
> I've created a couple of WSH scripts for clients, so I know how
ridiculously
> open this thing is.  From an email it's possible to execute ANY program
> installed on that machine, including all windows commands (even Format C:
is
> possible).
>
> Again, I agree with most of your vbs point (I am a sysadmin and we
filtered
> out .jpg.vbs attachments months ago (along with a ton of other
> attachements), so none of our customers were affected), but unfortunately
> the problem is primarily two fold:
>
> 1. People open attachments without knowing what they are.
> 2. Windows Scripting Host is a major security breach.
>
> Of course, this is just my opinion...



-- 
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] Mail classes

2001-02-12 Thread Josh G

Hi,
I'm wondering what're the best classes available for reading/
sending emails?

I want to do a webmail solution (for myself at first), and don't want 
to use IMP. I'd need to be able to handle attachments as well.

Any pointers?

Cheers,

Gfunk -  http://www.gfunk007.com/

I sense much beer in you. Beer leads to intoxication, intoxication to
hangovers, and hangovers to... suffering.
  



-- 
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] "wide open"

2001-02-11 Thread Josh G

Actually IIRC pushing open a door that's ajar is not breaking and
entering, but trespass :)

Gfunk -  http://www.gfunk007.com/

I sense much beer in you. Beer leads to intoxication, intoxication to
hangovers, and hangovers to... suffering.


- Original Message -
From: "Jason Murray" <[EMAIL PROTECTED]>
To: "'Dan Harrington'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, February 12, 2001 1:44 PM
Subject: RE: [PHP] "wide open"


> > > Furthermore, Jonathan stated that he didn't "break into" your
> > > system - you left phpMyAdmin *wide* open, which is frankly
> > > asking for trouble. Imagine how much fun you'd have had if
> > > someone with *malicious* intent had found it.
> >
> > --in the physical world, if a door is left unlocked, even ajar a couple
> > inches, the physical act of pushing the door open so that one can enter
> > the door is defined as "breaking and entering".
>
> --in the physical world, in the US, perhaps.
>
> Note to everyone else: I have no idea or interest in regional differences
> of this definition now, either :)
>
> My *point* was that he should be glad that all he did was add an entry
> to the database instead of deleting every damn table in there, hence
> the bit about "someone with *malicious* intent".
>
> Still, can we please leave this alone for now on the list? It's already
> gone on for far too long.
>
> Jason
>
> --
> Jason Murray
> [EMAIL PROTECTED]
> Web Design Team, Melbourne IT
> Fetch the comfy chair!
>
> --
> 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] my bugaboo.

2001-02-10 Thread Josh G

If replacing " characters for output to html, don't replace them with ''
(two single quotes), replace with the magic value " (including
the semicolon), which is a special html entity that means "put a
quotation mark here"

Search google for html entities for more.

Gfunk -  http://www.gfunk007.com/

I sense much beer in you. Beer leads to intoxication, intoxication to
hangovers, and hangovers to... suffering.


- Original Message -
From: "Anna" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, February 11, 2001 11:36 AM
Subject: Re: [PHP] my bugaboo.


> - Original Message -
> From: "Floyd Baker" <[EMAIL PROTECTED]>
>
>
> >
> > Hello and thanks to all for the help on the magic quotes, etc.
> > It gives me a better handle on what I'm dealing with.
> >
> > Except for one more thing.
> >
> > When I bring back text from a field which contains a ', and try to apply
> it as
> > the value of an input box, it still truncates in the box.
> >
> > When I simply print $text, it prints out correctly as *Don't do this* .
> > When I make $text the default value of an input box, it shows as *Don*.
> >
> > If the slash is still in place, it reads *Don\'t* above the box and
*Don\*
> in
> > the box.
> >
> > My bugaboo continues..  :->
> >
> > Thanks again for any further advice.
> >
> > Floyd
> >
>
> That's  a problem with HTML.
> example:
> 
> Sees the ' in Don't as the signal for the end of the value string.
> I haven't come up with an automatic way to deal with this,
> but what I have done is in these lines (where there might be an
apostrophe)
> make sure I use double quotes:
> 
> or
> print "";
>
> Of course, then you may have the same trouble with double quotes. To avoid
> that you can do ereg_replace("\"", "''", $text) -- that is, replace a
double
> quote with two single quotes? I think, I've never bothered.
>
> Hope this helps somehow.
>
> Anna
>
>
> --
> 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] List of all file extensions

2001-02-07 Thread Josh G

> So, If I create a 3D-program, I could say that file extensions for this
> program will be .pdf (not a prefered extension, but still)?
> Is it more a question of getting your file extension as widely used as
> possible, so other companies dont bother using them, since most computers
> have them associated with an other program?

Basically, what he's saying is that the extension can be anything. It's 
only convention (and only on pc/unix) where it's important to determine
what kind of file it is. On advanced filesystems, such as HFS+(mac),
beFS(beos), and such the type of file is kept as an extended attribute
and you can call your jpeg image myimage.doc and it will still get 
sent to the correct application when you double click on it. I think ntfs
and hpfs have the ability to do this, but it's not implemented.

Mime types are things like tex/html and image/jpeg that describe what
kind of file you're dealing with. They are what beFS uses to keep track
of what's in a file.

The reason for extensions is that in unix/windows/dos, all files are the
same, they have no type, they're all just a string of bytes, and the
original inventors or unix needed a way to tell one file from another.

Gfunk -  http://www.gfunk007.com/

I sense much beer in you. Beer leads to intoxication, intoxication to
hangovers, and hangovers to... suffering.
  

> 
> > MIME-types do what you need. But they don't belong to the filename.
> 
> What do you mean by this?
> 
> Regards,
> // Tobias
> 
> 
> 
> 
> -- 
> 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] Questions

2001-02-06 Thread Josh G

Any of you guys care to enlighten this fellow any further than me?
Please reply to the list, not me :)

Gfunk -  http://www.gfunk007.com/

I sense much beer in you. Beer leads to intoxication, intoxication to
hangovers, and hangovers to... suffering.
  

- Original Message - 
From: "Jericho Barimen" <[EMAIL PROTECTED]>
To: "Josh G" <[EMAIL PROTECTED]>
Sent: Wednesday, February 07, 2001 9:39 AM
Subject: Re: Just a thanks


[snip]

> Hello everybody,
> 
> I would like to ask you for some help with PHP. I am a
> newbie both to the list and to PHP. I try to learn
> from the books and manuals, but there are some things
> I do mnot understand and I can't read it anywhere
> inthe books.
> 
> Please take a moment and reply to my mail. I know that
> such problems as I have may seem lame to most of you,
> descent programmers, but I am really desperate to
> learn. Unfortunately I am not a programmer
> byprofesion.
> 
> Let me list the problems I have.
> 
> 1. I registered my domain and I input the right DNs
> numbers. After I uploaded html file index.html onto
> the server, using ftp program, everything was fine.
> However, I also uploaded file called test.html. After
> I typed in my domain url address with /test.html the
> file was not working. What do I do wrong?

Sounds like an installation problem, I can't really help
there. I follow the instructions, and if they fail I'm usually
stuffed ;-)

> 
> 2. Now on with PHP... I tried to write php scripts
> inside html files... Simple scripts with 
> Can I do that? Will it work? I think php program is
> installed on the server I am using, but the php seems
> not to work. What do I do wrong?

Should work, don't know the problem. Try having a
script called test.php that consists only of



then point your browser at http://yourdomain.com/test.php
and see what happens.

> 3. Now suppose I write a seperate php script as a
> seperate file, like test.php. How do I refer to it
> from html file in order to make the php script work?
> And can I start my web page directly with php? If
> sohow?

Not sure I understand the question. You just need links
to the pages as if they were ordinary html. Or you can
access one script from another by using include(); 

I think you need to read through the first few sections of
the php manual, at http://www.php.net/ as it covers a lot
of these issues.

> 4. What program or editor do you people use in order
> to simply "write" or "code" html and php? Till now I
> was using Netscape Composer for simple html editing.
> But I am sure there are some programming tools... I've
> heard there is something like JBuilder, but some
> friends of mine tell me it is too powerful tool. Do
> you agree? What programming tools would you recommend
> for me to code php? What programs do you use?

Oh no! This here is a religious issue, get's asked every few
days, and there's no answer. Use whatever you like. Some
peope love vi and emacs (unix), some love homesite, textpad,
or (myself included) ultraedit on windows.
 
> 5. I would like to have a link on my web page that
> when I move my mouse cursor on it, it changes and
> becomes, for example, underlines or bold or changes
> color. How can I do that? How do I do that in php?

This is more a html problem thant a php problem, but you
need to use stylesheets... here's an example, paste it into
a html page and play around with it...




<!--

a {color:blue; text-decoration:none; }
a:hover {color:#ff8080; text-decoration:underline; }

-->



this will change colour in explorer.



> 6. How can I refer to data base records? If I want to
> store date or get data and print it out... Is it only
> using cgi and FORM tags? Are there any other ways todo
> that?

This one's a biggie... Methinks you should master some of
the simplre things first, then ask this one by itself ;-)

Another tip... The more specific the question, the better,
longer answers you'll recieve.

> I would very much appreciate, if people like you, good
> programmers could help me and just reply to my points.
> Please elaborate, the more you write, teh better I can
> understand. It would mean a lot to me if someone could
> comment or 'enlighten' me. There are things I can't
> find in books and tutorials.
> 
> Thank you and I await your replies.
> 
> Jericho
> 



-- 
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] Just a thanks

2001-02-06 Thread Josh G

Just a thanks to everyone on this list, for being helpful, and for
being tolerant. It seems it's a rare thing these days.

Just thought I'd let you guys know, that back when I was learning
PHP (i'm a bit of an old hat by now), this list really helped me out,
so now I'm try to contribute as much as possible, although that 
doesn't seem like too much sometimes :)

Cheers,
Gfunk -  http://www.gfunk007.com/

I sense much beer in you. Beer leads to intoxication, intoxication to
hangovers, and hangovers to... suffering.
  



-- 
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] Is this a missing feature?

2001-02-04 Thread Josh G

What's this ruby? Care to send the list a URL so we can go have a
look for ourselves?

Gfunk -  http://www.gfunk007.com/

I sense much beer in you. Beer leads to intoxication, intoxication to
hangovers, and hangovers to... suffering.


- Original Message -
From: "Lux" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Monday, February 05, 2001 10:51 AM
Subject: Re: [PHP] Is this a missing feature?


> > But the feature is useless :)
>
> Here, I removed the reference, so we can stop fussing over it (it wasn't
the
> question to begin with), and here's an example of a potential use for this
> (a stupid example, but still...).  I'm not weighing out the benefits of
> references, I'm striving to achieve the cleanest and most elegant code I
> can, because the larger the project, the more code you have to read, and
> the uglier it can get.
>
> That's where a language like Ruby excels.  There's less syntactical crap,
> it's very easy to read, and it's caused me to consider switching to eRuby
> (like mod_perl, allows <% ruby this, ruby that %> in your html) because it
> is structurally easier and more geared towards larger projects.
>
> (that last statement will probably get me murdered on a PHP list)
>
> But honestly, the only problem is finding a host running eRuby that I
don't
> have to maintain myself.  I'm lazy, after all.
>
> later,
>
> lux
>
> 
> function a ($hash, $text = "") {
>$attr_text = "";
>while (list ($k, $v) = each ($hash)) {
>   $attr_text .= " $k=\"$v\"";
>}
>return "$text";
> }
>
> function img ($hash) {
>$attr_text = "";
>while (list ($k, $v) = each ($hash)) {
>  $attr_text .= " $k=\"$v\"";
>}
>return "";
> }
>
> // works this way
>
> $attrs = array (
>"href" => "http://www.google.com/",
>"target" => "_blank"
> );
> echo a ($attrs, "Visit Google!");
>
> echo "\n\n";
>
> // also this way (thanx teodor!)
>
> echo a ($attrs = array (
>  "href" => "http://www.google.com/",
>  "target" => "_blank"
> ), "Visit Google!");
>
> // ideally, i'd like to say this though...
> // echo a (["href" => "http://www.google.com/", "target" =>
> "_blank"], "Visit Google!");
>
> // what also doesn't work
> // echo a (array("href" => "http://www.google.com/", "target" =>
> "_blank"), "Visit Google!");
>
> echo "\n\n";
>
> // another example
>
> echo a ($attrs = array ("href" => "http://www.google.com/"),
>  img ($attrs = array (
>  "src" => "http://www.google.com/images/title_homepage4.gif",
>  "alt" => "Visit Google!",
>  "border" => "0")
>  )
> );
>
> /* now ideally, this could be written much more cleanly, perhaps...
>
> echo a(['href' => [http://www.google.com/'],
>  img(['src' =>
> 'http://www.google.com/images/title_homepage4.gif', 'alt' => 'Visit
> Google!', 'border' => '0'])
> );
>
> */
>
> ?>
>
> --
>
> John Luxford
> Simian Systems
>
> w: www.simian.ca
> e: [EMAIL PROTECTED]
> p: 204.946.5955
>
> --
>
>
> --
> 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] Automatic incoming mail notification

2001-02-01 Thread Josh G

Depends on your mailserver. Most mail servers can redirect incoming
mail to a program, I know sendmail can. In your case just make the first
line of your script #!/path/to/php/bin/php and that should do the trick.

Sorry I don't know how to make sendmail do it, only that you can.
Check the man pages tho, shouldn't be too hard.

Gfunk -  http://www.gfunk007.com/

I sense much beer in you. Beer leads to intoxication, intoxication to
hangovers, and hangovers to... suffering.


- Original Message -
From: "Ankur Verma" <[EMAIL PROTECTED]>
To: "PHP User Group" <[EMAIL PROTECTED]>
Sent: Saturday, February 03, 2001 5:51 AM
Subject: [PHP] Automatic incoming mail notification


Hello All!

Sorry for this off-topic posting but this is extremely important for me.

I need a php script to be called each time my email mailbox recieves a new
email message. One way is to have a cron job running and get the php script
to check my mailbox every few minutes to see if there are any new emails and
do the needfull if there is one.

But I guess that there should be a way for the mail server to initiate some
action based on the reciept of a new mail in a particular mailbox. I don't
think trhat sites like Yahoo and Hotmail use cron jobs to sense new emails
in a user's mailbox. Another possibility might be that the checking is being
done every few minutes by the client application.

if anyone has any idea about the methodology being followed by Yahoo and
Hotmail, please be kind enough to pass it on. If anyone is aware of a mail
server otr a mailserver addin which would enable automatic notification and
initiaition of script on the reciept of a new email, please pass the info
on.

I am on Redhat 6.2 with cyrus as my mail server and am using PHP4.

Thanks in advance

Ankur Verma
HCL Technologies
A1CD, Sector 16,
Noida





-- 
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] Pricing for PHP programming???

2001-02-01 Thread Josh G

Ok, you got me on a technicality :)

Of course, every rule has an exception. Even the rule that
says every rule has an exception ;-)

Gfunk -  http://www.gfunk007.com/

I sense much beer in you. Beer leads to intoxication, intoxication to
hangovers, and hangovers to... suffering.


- Original Message -
From: "Michael Kimsal" <[EMAIL PROTECTED]>
To: "Josh G" <[EMAIL PROTECTED]>
Sent: Friday, February 02, 2001 4:12 PM
Subject: Re: [PHP] Pricing for PHP programming???


>
>
> Josh G wrote:
>
> > 
> >
> > It comes down to one simple thing:
> > You cannot know how much a project is worth to a client. If they're
> > willing to pay you $5000, it's worth $5000, wether you think it's worth
> > $500 or $5.
>
> I hear you, but have to disagree a bit - I think you CAN sometimes know
> what something is objectively worth.  Not always, but sometimes.
> We wrote an ordering system for a client that, when implemented,
> would make 8 people redundant.  Even on the low end of ~$20k/person,
> plus admin overhead, that project would be saving them ~$200k/year, plus
> the other benefits of having their data faster and with fewer errors.
> That was a no brainer, imo.  They knew they'd save a MINIMUM of $x/year,
> perhaps more.  We knew what the project was worth to them.  If they
> didn't pay our price, yes, in the abstract it wasn't "worth" it to them,
> but that's on an emotional level at that point (worth) not a paper
> figure level.  :)
>
>
>
>
> > If I buy a pack of basketball cards for $2 that has
> > ten cards in it, then they're worth 20c each. If suddenly some
> > collecter says "ohmigod you have a jordan rookie card in there, i'll
> > give you $3000", it's now worth $3000, because that's what
> > he is willing to part with to own it.
> >
> > In short, any skill, service, or product, is "worth" the amount of money
> > you can exchange it for" this is how the stock market works
> > (sometimes), it's how just about everything works. If they're willing
> > to pay it, you should charge it. They can go somewhere else, noone
> > is holding a gun to their heads.
> >
> > Everything is a game. You want the most money possible for it, they
> > want it for the least amount of money, you compromise on something
> > you can both live with, or you don't do business, and next job, you
> > have to start over.
> >
> > Some people won't look at you if you charge less than $150/hr, some
> > people won't look at you if you chargre more than 40 it's just the
> > way it is.
> >
> > 
> >
> > Gfunk -  http://www.gfunk007.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] Fw: Message status - undeliverable

2001-02-01 Thread Josh G

Sorry about this, but can somebody please remove this guy from
the list? I'm tired of getting this email every time I contribute.

Cheers,
Gfunk -  http://www.gfunk007.com/

I sense much beer in you. Beer leads to intoxication, intoxication to
hangovers, and hangovers to... suffering.


- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 02, 2001 3:34 PM
Subject: Message status - undeliverable


> The message that you sent was undeliverable to the following:
> JMARTINEZ
>






> Information about your message:
> Subject: Re: [PHP] Re: PHP a lightweight language?
>


-- 
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] Re: PHP a lightweight language?

2001-02-01 Thread Josh G

most c compilers are self-hosting. iirc it's one of the best tests of
your compiler.

Gfunk -  http://www.gfunk007.com/

I sense much beer in you. Beer leads to intoxication, intoxication to
hangovers, and hangovers to... suffering.


- Original Message -
From: "John Hinsley" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 02, 2001 3:32 PM
Subject: [PHP] Re: PHP a lightweight language?


>
> > Michael Hall <[EMAIL PROTECTED]> wrote
>
>
> >
> > I'm interested in the proposition made recently on this list that PHP is
> > somehow a 'lightweight' language that some people don't take seriously.
I
> > am relatively new to Linux and open source programming and only really
> > know PHP and some shell scripting, though I am now starting to explore
> > Python.
>
> Seems to me that most languages can be considered "lightweight" in some
> respects. After all, couldn't C be considered lightweight compared with
> machine code?
>
> And then, most languages are written in something else (something
> heavier?): if I remember correctly, Squeak is about the only thing that
> really eats its own dog food. And, from what I remember, such recursion
> wasn't straightforward!
>
> It's really a silly discussion. PHP does what it does exceptionally
> well. You'd be barking mad to write an operating system in it, but you'd
> be equally crazy to write a C application to do what a shell script does
> or to use Java to run a regex on a text file.
>
> The reason, I think, that there are so many languages out there is that
> each has its advantages when used in a particular context. It may be
> able to work out of context, but the overheads in development and/or
> compilation or run time build up.
>
> --
>

**
> Marx: "Why do Anarchists only drink herbal tea?"
> Proudhon: "Because all proper tea is theft."
>

**
>
> --
> 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] Pricing for PHP programming???

2001-02-01 Thread Josh G



It comes down to one simple thing:
You cannot know how much a project is worth to a client. If they're
willing to pay you $5000, it's worth $5000, wether you think it's worth
$500 or $5. If I buy a pack of basketball cards for $2 that has
ten cards in it, then they're worth 20c each. If suddenly some
collecter says "ohmigod you have a jordan rookie card in there, i'll
give you $3000", it's now worth $3000, because that's what
he is willing to part with to own it.

In short, any skill, service, or product, is "worth" the amount of money
you can exchange it for" this is how the stock market works
(sometimes), it's how just about everything works. If they're willing
to pay it, you should charge it. They can go somewhere else, noone
is holding a gun to their heads.

Everything is a game. You want the most money possible for it, they
want it for the least amount of money, you compromise on something
you can both live with, or you don't do business, and next job, you
have to start over.

Some people won't look at you if you charge less than $150/hr, some
people won't look at you if you chargre more than 40 it's just the
way it is.



Gfunk -  http://www.gfunk007.com/

I sense much beer in you. Beer leads to intoxication, intoxication to
hangovers, and hangovers to... suffering.


- Original Message -
From: "Steve Werby" <[EMAIL PROTECTED]>
To: "Shane McBride" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Friday, February 02, 2001 3:20 PM
Subject: Re: [PHP] Pricing for PHP programming???


> "Shane McBride" <[EMAIL PROTECTED]> wrote:
> > I was wondering what other PHP people charge to write PHP?
>
> There's no magic answer.  And no offense, but if you categorize building
> business solutions delivered via the internet as "writing PHP" then your
> services probably shouldn't be priced at the higher end of the spectrum.
> There are so many factors - size of project, complexity, reusability of
> project components, turnaround time, your reputation, your speed,
geography,
> etc.  And there are many ways to price a project.  We use a combination of
> flat rate pricing, estimates with a cap, hourly rates, retainer
arrangements
> and some more creative terms depending on another long list of factors.
>
> As a PHP programmer and COO of a development and consulting shop, the
> emphasis on hourly rate is something that really amazes me.  Not all
> programmers are created equal.  A lot of clients don't recognize that.
Some
> mistakenly believe that a $120/hr. programmer is 20% more productive than
a
> $100/hr. programmer.  Yet others think that a $200/hr. programmer must be
> twice as good as a $100/hr. programmer.  I find that there is *no*
> correlation between hourly rate and the quality, productivity and value of
a
> programmer.  Sure, in other non_knowledge_based occupations, there may be
a
> correlation, but in our biz I don't see one.  Some say "you get what you
pay
> for", but b/c this industry is new there are a lot of unscrupulous
> developers out there talking with naive uneducated clients.  This is a
> dangerous mix.  We've talked to a number of prospective clients who were
> charged $100,000+ for projects we could have done for $5,000.  I couldn't
> sleep at night if we gouged clients like that and in the long run I think
> gouging clients will come back to bite you.  We try to emphasize the total
> cost to the client along with the benefits of our proposed solutions.  We
> try to state these benefits in terms of time savings, exposure,
value-added
> capabilities, revenue and process improvement.  When you can put what you
> can bring to the table in these terms the hourly rate becomes less
critical
> and it makes it easier to compete with inferior competitors that compete
on
> price alone.
>
> So, in general what should you charge based on your skills, experience and
> the types of things you are building?  At a mimimum you should charge
enough
> to cover the cost of your operation taking into account the risk of not
> staying fully utlized and adding on enough to make an acceptable amount of
> profit.  If after arriving at that number it seems that your target market
> can't support that rate, reassess your strategy.  As a rule of thumb, a
> consulting biz needs to charge 2.5 - 3 times the hourly rate payed to its
> employees.  If you're a one person operation, you might think you need to
> charge less, but I wouldn't look at it that way.  Unless you have clients
> breaking your door down and your clients aren't aware that there *are*
> others like you, you'll probably have to spend a significant amount of
> non-billable time dealing with running the business, doing marketing,
sales
> and other business functions.  And if you're alternative is working as an
> employee of another company and earning a steady paycheck (unless you just
> don't want to work for anyone else) you should plan on at least making
> enough to earn more than this alternative.
>
> If I was trying to ga

Re: [PHP] Closing Objects "Cleaning Up"

2001-02-01 Thread Josh G

True for PHP+Mysql, but not for all databases. Oracle for example,
will run out of cursors in a week or two on a low-traffic site if you
don't close them and the db server will need a kick in the nuts to
get back up

Gfunk -  http://www.gfunk007.com/

I sense much beer in you. Beer leads to intoxication, intoxication to
hangovers, and hangovers to... suffering.


- Original Message -
From: "David Robley" <[EMAIL PROTECTED]>
To: "Karl J. Stubsjoen" <[EMAIL PROTECTED]>; "PHP Mailing List"
<[EMAIL PROTECTED]>
Sent: Friday, February 02, 2001 10:19 AM
Subject: Re: [PHP] Closing Objects "Cleaning Up"


> On Fri,  2 Feb 2001 08:58, Karl J. Stubsjoen wrote:
> > When I do this:
> > $link = @mysql_pconnect("localhost", $this->db_user_id,
> > $this->db_passwd);
> >
> > And I do this:
> > if(!($result = mysql_query($querystr))) { ...
> >
> > Then I do this:
> > $result = DoQuery($q);
> >
> >
> > What objects are there to close?  In ASP we issue code like this to
close
> > these objects:
> > rs.close
> > set rs = nothing
> > db.close
> > set db = nothing
> > (where rs is the recordset and db is the database)
> >
> > Thank You!
>
> You don't need to do anything - when the script terminates all that sort
of
> thing is done for you by PHP. However, if you have a result set that may
be
> using a bit of memory, and you have a lot more script after the result set
> is done with, you can use mysql_free_result. From TFM:
>
>
> mysql_free_result - Free result memory
>
> Description
>
> int mysql_free_result (int result)
>
> mysql_free_result() will free all memory associated with the
> result identifier result.
>
> mysql_free_result() only needs to be called if you are concerned about how
> much memory is being used for queries that return large result sets. All
> associated result memory is automatically freed at the end of the script's
> execution.
>
> For downward compatibility mysql_freeresult() can also be used.
>
> Cheers
> --
> David Robley| WEBMASTER & Mail List Admin
> RESEARCH CENTRE FOR INJURY STUDIES  | http://www.nisu.flinders.edu.au/
> AusEinet| http://auseinet.flinders.edu.au/
> Flinders University, ADELAIDE, SOUTH AUSTRALIA
>
> --
> 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] contracting & consulting (was "[PHP] Pricing for PHP pr ogramming???")

2001-02-01 Thread Josh G

and one place where everybody on the list could post their resumes
in a little database that sorts by country / state?

Gfunk -  http://www.gfunk007.com/

I sense much beer in you. Beer leads to intoxication, intoxication to
hangovers, and hangovers to... suffering.


- Original Message -
From: "Stephan Ahonen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 02, 2001 9:23 AM
Subject: Re: [PHP] contracting & consulting (was "[PHP] Pricing for PHP pr
ogramming???")


> How about making a mailing list for job postings, i.e.
> [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] Dynamic Variable Creation from Forms

2001-02-01 Thread Josh G

It is what you're looking for, you just need to think it through a little.

instead of

> $chk_$row["field"]

try

$foo = "chk_" . $row["field"];
$bar = $$foo;

or if you're trying to do something else, you may need

$foo = "chk_" . $row;
$bar = ($$foo)["field"];

as I'm not sure which order of execution you want to happen on that
line, since it's not valid :)

Gfunk -  http://www.gfunk007.com/

I sense much beer in you. Beer leads to intoxication, intoxication to
hangovers, and hangovers to... suffering.


- Original Message -
From: "[ rswfire ]" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 01, 2001 11:41 AM
Subject: Re: [PHP] Dynamic Variable Creation from Forms


> Thanks for your response, but that's not my problem.  I'll explain
> further...
>
> I have a table with the following fields in a row:
>
> aaa
> bbb
> ccc
> ddd
> eee
>
> I have a page with a form:
>
> 
> mysql_db_query($db, "SELECT * FROM table");
> while ($row = mysql_fetch_array($result))
> {
>
>echo "";
>
> }
>
> This will create several checkboxes with the following names:
>
> chk_aaa
> chk_bbb
> chk_ccc
> chk_ddd
> chk_eee
>
> ON THE NEXT PAGE, AFTER THE SUBMIT BUTTON IS CLICKED, THESE VARIABLES WILL
> EXIST, but I cannot refer to them like this:
>
> $chk_$row["field"]
>
> How can I refer to them???  They can change based on the field data, so
they
> cannot be considered static variables.
>
>
>
>
>
>
> Not *sure* i understand the problem, but this may be the solution:
>
> $foo = "hello";
> $bar = "foo";
> $foobar = $$bar;
>
> $foobar now contains "hello".
>
> Gfunk -  http://www.gfunk007.com/
>
> I sense much beer in you. Beer leads to intoxication, intoxication to
> hangovers, and hangovers to... suffering.
>
>
> - Original Message -
> From: "[ rswfire ]" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, February 01, 2001 11:28 AM
> Subject: [PHP] Dynamic Variable Creation from Forms
>
>
> >I have a problem I'm not sure how to fix.
> >
> >PART I
> >
> >I have a form on a page that creates its variables dynamically.  Here's
an
> >example:
> >
> >mysql_db_query($db, "SELECT * FROM table");
> >while ($row = mysql_fetch_array($result))
> >{
> >
> >   echo "";
> >
> >}
> >
> >PART II
> >
> >I need to make reference to these dynamically created variables.  How do
I
> >do this?  This does not work, obviously:
> >
> >$chk_.$row["checkboxtype"]
> >
> >Thanks in advance...
> _
> Get your FREE download of MSN Explorer at http://explorer.msn.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] Pricing for PHP programming???

2001-02-01 Thread Josh G

nah, it's not that they want me to, it's that they don't believe i can :)
although my present employer is rather happy that i can draw and
code, he saves a salary that way ;-)

Gfunk -  http://www.gfunk007.com/

I sense much beer in you. Beer leads to intoxication, intoxication to
hangovers, and hangovers to... suffering.

  
- Original Message - 
From: "Robin Vickery" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 01, 2001 3:43 AM
Subject: Re: [PHP] Pricing for PHP programming???


> >>>>> "JG" == "Josh G" <[EMAIL PROTECTED]> writes:
> 
>  > I hear you. Another thing that's hard to find, is somebody who is a
>  > good programmer, and a good graphic designer. 
> 
> I've never quite understood why employers seem to expect that a
> php/perl programmer should also be doing graphic design. They're
> quite unrelated activities using completely different skills. It's
> not something that's generally expected from other professions
> (when was the last time you saw an advert for an accountant that
> required they be proficient with Photoshop?) so why programmers?
> 
> 
> -robin (who can't draw for toffee)
> 
> 
> -- 
> Robin Vickery.
> BlueCarrots, 14th Floor, 20 Eastbourne Terrace, London, W2 6LE
> 
> -- 
> 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] What is "foo"?

2001-02-01 Thread Josh G

try the jargon file, it will tell you more about where foo came from.

Gfunk -  http://www.gfunk007.com/

I sense much beer in you. Beer leads to intoxication, intoxication to
hangovers, and hangovers to... suffering.


- Original Message -
From: "Rouvas Stathis" <[EMAIL PROTECTED]>
To: "Soeren Staun-Pedersen" <[EMAIL PROTECTED]>
Cc: "SED" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, February 01, 2001 9:41 AM
Subject: Re: [PHP] What is "foo"?


> And don't forget "goo". "foo" and "goo" go together:-)
> -Stathis.
>
> Soeren Staun-Pedersen wrote:
> >
> > > Probably some of you are laughing while reading this :) But I have
seen the
> > > word "foo" used so many time (in programming) from different resources
for
> > > different reasons. Has it any meaning? (e.g. in PHP)
> >
> > It's just one of those words which stuck around. People like Leslie
> > Lamport (LaTeX) and other computer scientists have kept it alive for at
> > least a century now.
> >
> > Most people believe it originates from "foobar" or "fubar" which is
> > actually an acronym for "Fucked Up Beyond All Recognition". :-)
> >
> > Regards,
> >
> > Soeren Staun-Pedersen - [EMAIL PROTECTED]
> > --
> > "The internet is full, beat it"
> > - 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]
>
> --
> 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] function list

2001-02-01 Thread Josh G

http://www.php.net/quickref.php is probably the best you'll get. no 
descriptions, but it _is_ a list of all the functions.

Gfunk -  http://www.gfunk007.com/

I sense much beer in you. Beer leads to intoxication, intoxication to
hangovers, and hangovers to... suffering.
  

- Original Message - 
From: "Jerry Lake" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 01, 2001 10:45 AM
Subject: [PHP] function list


> Is there somewhere I can get a list
> of all the php functions and a brief
> description, instead of the full manual
> like a cheat sheet of sorts
> 
> Jerry Lake
> 
> 
> -- 
> 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] Pricing for PHP programming???

2001-02-01 Thread Josh G

I hear you. Another thing that's hard to find, is somebody who is a
good programmer, and a good graphic designer. I don't really know
any, apart from myself, and I've been just shy of being called a lying
scumbag by a few HR companies over the years when they look at
my resume ;-)

This thread has really fired up my desire to go the states US$80
an hour for php dmn, that's a shitload more than I
make here, which is more like US$20/hr

Gfunk -  http://www.gfunk007.com/

I sense much beer in you. Beer leads to intoxication, intoxication to
hangovers, and hangovers to... suffering.


- Original Message -
From: "Jonathan Sharp" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 01, 2001 12:49 PM
Subject: RE: [PHP] Pricing for PHP programming???


> I find this an interesting topic...
>
> One thing that we've found when looking for additional PHP programmers to
> add is that since PHP has exploded there are a lot of people out there
> coding in PHP that don't have a background in programming or some of the
> design considerations. We've looked at various places from techies.com to
> guru.com and haven't found that many PHP gurus out there. So in terms of
> skill level, what do you all see the going rate? I know I'm currently
> underpaid at $25/hour and I do ALL the PHP programming, project
management,
> engineering, database theory etc...oh...and did I mention I do all the
> network support too? (I'm taking my CCNA in June...) so yeah...we're a
> starup what did you expect?! =)
>
> Comments?
>
> Disclaimer: I don't mean to offend anyone out there who codes in PHP. But
> from the experience that I've had trying to find someone who can really
code
> clean, effecient stuff that plugs into the whole picture has been
virtually
> non-existent...(if you do, please call! We have a few openings!)
>
> Thanks,
> -Jonathan Sharp
>
> Director of Technology - Imprev Inc.
> Renwick Development Group - Flyerware
> http://www.flyerware.com/
> Phone: (425)688-9200
> Cell: (425)766-1398
>
> -Original Message-
> From: Philip Olson [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 31, 2001 5:40 PM
> To: Shane McBride
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP] Pricing for PHP programming???
>
>
>
> Hey Shane,
>
> This is a tricky issue, here's me (USD):
>
>   $60/hr
>   $30/hr if end result becomes open sourced (no strings)
>
> General discounts for features such as : fun,true non-profit,intelligent
> employer,learning curve and it all lives on a sliding scale depending on
> their ability to pay and my desire for work/money (time).  Also, barter
> is usually an option.  Usually hovers between 30-50 and one day this will
> go up :-)  This is the most difficult part of the job, time estimates
> and pricing.  Bah.  "Just give me money and I'll do stuff."
>
> Regards,
>
> Philip Olson
> http://www.cornado.com/
>
>
> > On Wed, Jan 31, 2001 at 03:25:27PM -0500, Shane McBride wrote:
> > I know this is not really a PHP question, but it should make for a good
> > thread. :)
> >
> > I was wondering what other PHP people charge to write PHP? I have just
> > been given a project for a fairly large customer, much larger than I
> > normally do work for. So I am VERY confused.concerned about how to price
> > it. Most of my other PHP projects have been done for small single owners
> > businesses, and the PHP has been pretty basic.
> >
> > Now that I can actually do what I am being asked without have to learn
> > it, I am stuck. I did a shopping cart for someone, but I didn't charge
> > them a REAL price because I didn't know how to do it with PHP. So, I of
> > course didn't charge the client for my learning curve.
> >
> > I know the price is very dependant upon the task. What I am doing is
> > creating a web-based front-end for a MySQL database. I'll need to create
> > the database tables, etc. The front-end is going to be rather dynamic
> > since the data content depends largely on the previous choices of the
> > end-user. One or two tables with 20-30 fields. 5-6 pages of html and
> > PHP.
> >
> > I'm just scouting this out, and am VERY confident with the contributors
> > to this list and their opinions.
> >
> > TIA,
> > Shane
>
>
> --
> 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] Formatting/Financial

2001-02-01 Thread Josh G

number_format($number,2);

Gfunk -  http://www.gfunk007.com/

I sense much beer in you. Beer leads to intoxication, intoxication to
hangovers, and hangovers to... suffering.
  

- Original Message - 
From: "[ rswfire ]" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 01, 2001 12:33 PM
Subject: [PHP] Formatting/Financial


> Is there a simple way to format a variable into an appropriate financial 
> string...
> 
> 5.0
> 5.4
> 4.346
> 
> I'd like all of the above to format as $XXX.XX
> 
> 
> _
> Get your FREE download of MSN Explorer at http://explorer.msn.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] E-mail valid

2001-01-31 Thread Josh G

haven't seen one, but it'd take 10 minutes to write. if i had a php install
here at work I'd do it for you :)

Gfunk -  http://www.gfunk007.com/

I sense much beer in you. Beer leads to intoxication, intoxication to
hangovers, and hangovers to... suffering.


- Original Message -
From: "Chris Aitken" <[EMAIL PROTECTED]>
To: "PHP User Group" <[EMAIL PROTECTED]>
Sent: Thursday, February 01, 2001 4:03 PM
Subject: Re: [PHP] E-mail valid


>
>
> Does anyone have, or know of a script which simulates what Apache gives
out
> when it shows the entire contents of a directory ?
>
> I find it very handy to use the directory listing of say graphics
> directories and the like, but I dont want others looking into them.
>
> What I thought would be a good system is to have an index.php file which
> asks for a password. If the password is accepted, it shoots them off to a
> php script which displays the contents of the DIR just as apache would.
>
> This way I can bar viewing of the directories contents, only viewable to
> the owners of the password.
>
>
> Ive seen a couple of scripts which claim to show the directory listing,
but
> none of them seem to work any good with a decent layout and amount of file
> info. So im looking for a script which can display the listing properly.
> Does one exist, or am I just relieving myself into the wind ?
>
>
> Thanks
>
> Chris
>
> --
>Chris Aitken - Webmaster/Database Designer - IDEAL Internet
> email: [EMAIL PROTECTED]  phone: +61 2 4628   fax: +61 2 4628 8890
>  
>
>Unix -- because a computer's a terrible thing to waste!
>
>
> --
> 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] Dynamic Variable Creation from Forms

2001-01-31 Thread Josh G

Not *sure* i understand the problem, but this may be the solution:

$foo = "hello";
$bar = "foo";
$foobar = $$bar;

$foobar now contains "hello".

Gfunk -  http://www.gfunk007.com/

I sense much beer in you. Beer leads to intoxication, intoxication to
hangovers, and hangovers to... suffering.


- Original Message -
From: "[ rswfire ]" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 01, 2001 11:28 AM
Subject: [PHP] Dynamic Variable Creation from Forms


> I have a problem I'm not sure how to fix.
>
> PART I
>
> I have a form on a page that creates its variables dynamically.  Here's an
> example:
>
> mysql_db_query($db, "SELECT * FROM table");
> while ($row = mysql_fetch_array($result))
> {
>
>   echo "";
>
> }
>
> PART II
>
> I need to make reference to these dynamically created variables.  How do I
> do this?  This does not work, obviously:
>
> $chk_.$row["checkboxtype"]
>
> Thanks in advance...
> _
> Get your FREE download of MSN Explorer at http://explorer.msn.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] Exit Function

2001-01-31 Thread Josh G

by the way,

if ($foo = $bar)

will return true simply if $bar is not null, i think you want

if ($foo == $bar)

thought I'd point that out, cause if you don't know return that nasty
one would probably bite you on the ass next :)

Gfunk -  http://www.gfunk007.com/

I sense much beer in you. Beer leads to intoxication, intoxication to
hangovers, and hangovers to... suffering.
  

- Original Message - 
From: "Steve Smith" <[EMAIL PROTECTED]>
To: "Karl J. Stubsjoen" <[EMAIL PROTECTED]>
Cc: "PHP Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, February 01, 2001 9:39 AM
Subject: Re: [PHP] Exit Function


> On Wed, 31 Jan 2001, Karl J. Stubsjoen wrote:
> 
> > What is the way to exit a function?  For example:
> > 
> > function FooBar() {
> > 
> > if ($foo = $bar)
> > Exit_this_Function;
> > 
> > ## otherwise execute the rest of this function
> > }
> 
> 
> Use "return".  If you want your function to return a value, you
> can use the syntax: return value; 
> 
> Hope this helps,
> 
> --Steve
> 
> Hi! I'm a .signature virus! Copy me into yours and join the fun!
> 
> 
> 
> 
> 
> -- 
> 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 data between pages?

2001-01-31 Thread Josh G

easy - http://www.yourserver.com/path/to/yourfile.php?v1=foo&v2=bar

will create two variables, $v1 and $v2, with the values of "foo" and "bar"
respectively. note that the first variable is preceeded with a ?, all others
afterwards with an &.

Gfunk -  http://www.gfunk007.com/

I sense much beer in you. Beer leads to intoxication, intoxication to
hangovers, and hangovers to... suffering.


- Original Message -
From: "Britton" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 01, 2001 11:35 AM
Subject: [PHP] passing data between pages?


>
> Is there a way to pass things to a php page you are referring to by href
> (without forms or anythin), and if so could someone point me to the
> documentation describing how?
>
> Thanks,
> Britton
>
>
> --
> 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] today and yesterday (finding them)

2001-01-30 Thread Josh G

pulling it out of my ass, but try:

$today = getdate(time()-(60*60*24))

Gfunk -  http://www.gfunk007.com/

I sense much beer in you. Beer leads to intoxication, intoxication to
hangovers, and hangovers to... suffering.
  

- Original Message - 
From: "Chuck Barnett" <[EMAIL PROTECTED]>
To: "PHP General List" <[EMAIL PROTECTED]>
Sent: Wednesday, January 31, 2001 3:10 PM
Subject: [PHP] today and yesterday (finding them)


> $today = getdate();
> $mon = $today[mon];
> $mday = $today[mday];
> $year = $today[year];
> $text=sprintf("%s-%s-%s", $year, $mon, $mday);
> $date=$text;
> 
> This code gets me today in the form -00-00
> 
> What do I need to do to get yesterday in that form?
> 
> Thanks,
> Chuck
> 
> 
> -- 
> 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] Disable print button of client browser

2001-01-29 Thread Josh G

No, no damn way, and besides, I can alt-prtscn and paste it into
something else and print from there anyway.

Gfunk -  http://www.gfunk007.com/

I sense much beer in you. Beer leads to intoxication, intoxication to
hangovers, and hangovers to... suffering.


- Original Message -
From: "Usman Ghani" <[EMAIL PROTECTED]>
To: "PHP Email List" <[EMAIL PROTECTED]>
Sent: Tuesday, January 30, 2001 3:38 PM
Subject: [PHP] Disable print button of client browser


Hello
Can anybody tell me how to disable the print button of the client browser?
If there is any method please let me know.
Thanks in advance

Usman



-- 
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] strings

2001-01-29 Thread Josh G

str_replace()

I think the syntax is 

$foo = str_replace($old_foo,"http://www.something.com","");

Gfunk -  http://www.gfunk007.com/

I sense much beer in you. Beer leads to intoxication, intoxication to
hangovers, and hangovers to... suffering.
  

- Original Message - 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 30, 2001 2:41 PM
Subject: [PHP] strings


> How can i make http://www.something.com/blah/blah.zip into 
> 
> blah/blah.zip
> 
> http://www.somethingcom is a constant.. always the same thing
> 
> how can i cut it out?
> 
> thnx
> 
> - Peter
> 
> 
> -- 
> 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] Re: filename length ...

2001-01-29 Thread Josh G

There's no filename length, but the url string (even for POST I belive)
must total < 4096 characters.

Gfunk -  http://www.gfunk007.com/

I sense much beer in you. Beer leads to intoxication, intoxication to
hangovers, and hangovers to... suffering.


- Original Message -
From: "George Edmonds" <[EMAIL PROTECTED]>
To: "ActiveServerPages" <[EMAIL PROTECTED]>
Sent: Tuesday, January 30, 2001 10:47 AM
Subject: RE: filename length ...


> On a GET URL,  yes there is a limit of i think its the 256,  but on a POST
> if memory serves you can go as high as you want,  or well lets put it this
> way,  posting i havent hit a limit yet
>
>
>
>
> George R. Edmonds
> Director of Technology
>Strategy Source
> Pager: (888) 914-6551
> Office: (202) 296-4200
> Fax:(202) 296-4295
>
> "Make everything as simple as possible, but no simpler." - Albert Einstein
>
> -Original Message-
> From: David L. Penton [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 29, 2001 5:49 PM
> To: ActiveServerPages
> Subject: RE: filename length ...
>
>
> Since a filename can be no longer than 256 characters, have you tried it?
>
> Have you tried different lengths?
>
> The length will depend on the browser (IE, Netscape, Mosaic, etc) and
> serving software (IIS, Apache, O'Reilly, etc)
>
>
> David L. Penton, MCP
> Consultant
> "Mathematics is music for the mind, and Music is Mathematics for the
> Soul. - J.S. Bach"
> [EMAIL PROTECTED] 
>
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 29, 2001 11:04 AM
>
> Is there any limit on the filename length on URL line?
>
> TIA.
>
>
> ---
> You are currently subscribed to activeserverpages as:
> [EMAIL PROTECTED]
> To unsubscribe send a blank email to
> [EMAIL PROTECTED]
>
> -
> Administrated by 15 Seconds : http://www.15Seconds.com
> List Archives/Search : http://local.15Seconds.com/search
> Subscription Information : http://www.15seconds.com/listserv.htm
> Advertising Information: http://www.internet.com/mediakit/
>
>
> ---
> You are currently subscribed to activeserverpages as: [EMAIL PROTECTED]
> To unsubscribe send a blank email to
[EMAIL PROTECTED]
>
> -
> Administrated by 15 Seconds : http://www.15Seconds.com
> List Archives/Search : http://local.15Seconds.com/search
> Subscription Information : http://www.15seconds.com/listserv.htm
> Advertising Information: http://www.internet.com/mediakit/
>
>


-- 
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] Maximum execution time exceeded!

2001-01-29 Thread Josh G

Of course, you have this code:

> while ($prescene2 == 0) {
> $i=$i+1;
> }

Where $prescnene2 is not modified, hence you get an
endless loop. When you increase the timeout, that loop
just gets longer to run.

Gfunk -  http://www.gfunk007.com/

I sense much beer in you. Beer leads to intoxication, intoxication to
hangovers, and hangovers to... suffering.
  

- Original Message - 
From: "Chakravarthy K Sannedhi" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, January 29, 2001 2:37 PM
Subject: [PHP] Maximum execution time exceeded!


> hi all,
> 
> when i am trying to calculate the number of rows with a '0' in a
> particular column using the following code, it is giving the 'Maximum
> execution time exceeded' message, eventhough after i gave
> set_time_limit(60), it didn't worked, infact now it is even worse the
> browser is getting siezed.
> 
> $result=mysql_query("select * from mytable");
> while ($avgrow=mysql_fetch_array($result))
> {
> $prescene2 = $avgrow["scene2"];
> $prescene4 = $avgrow["scene4"];
> $prescene5 = $avgrow["scene5"];
> $prescene7 = $avgrow["scene7"];
> $prescene8 = $avgrow["scene8"];
> $prescene9 = $avgrow["scene9"];
> $i = 1;
> while ($prescene2 == 0) {
> $i=$i+1;
> }
> }
> printf ("Number of zeros=%d",$i);
> 
> Can any one please help me with this.
> 
> TIA
> kalyan
> 
> __
> Do You Yahoo!?
> Yahoo! Auctions - Buy the things you want at great prices. 
> http://auctions.yahoo.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] 1. php ISP host wanted, 2. Release of EasySQL

2001-01-23 Thread Josh G

best kind of networks, those RAID networks. Much better than
STRIPE printers

Gfunk -  http://www.gfunk007.com/

I sense much beer in you. Beer leads to intoxication, intoxication to
hangovers, and hangovers to... suffering.


- Original Message -
From: "Richard Creech - DreamRiver.com" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, January 24, 2001 4:33 PM
Subject: [PHP] 1. php ISP host wanted, 2. Release of EasySQL


> Hello All,
> php ISP HOST WANTED
> I seek expressions of interest from North American based PHP internet
service providers (ISP's). We seek a php focused ISP where security,
reliability and performance are paramount. RAID networking is essential. Our
client needs mission critical host services on a priority basis. If you use
or know of such host services, and are completely happy with them, kindly
let us know too OFFLINE at:
>
> [EMAIL PROTECTED]
>
> Thank you.
>
> EASYSQL RELEASED
> Also, this is the first announcement of a new php MINI application called
easySQL. easySQL is freely downloadable and lets you query a database using
just your browser. Essentially it allows for a quick and dirty connect,
select and query to a database without the need for installing larger
programs. It is just one file, is driven by php and javascript, has
rudimentary configurable password protection, has a reusable query option
and has been tested for several months in hundreds of installs.
>
> More info: http://www.dreamriver.com/software/phpEasySQL/index.php
> Download: http://www.dreamriver.com/software/
>
> Kind Regards,
>
> Richard Creech
> [EMAIL PROTECTED]
> 250.744.3350 Pacific Time Canada
> Download phpYellow Pages for dynamic Website Content
> http://dreamriver.com/software/index.php3
>
>
> --
> 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] Aspell Function

2001-01-23 Thread Josh G

And the answer was?

Gfunk -  http://www.gfunk007.com/

I sense much beer in you. Beer leads to intoxication, intoxication to
hangovers, and hangovers to... suffering.


- Original Message -
From: "Matt Stone" <[EMAIL PROTECTED]>
To: "Matt Stone" <[EMAIL PROTECTED]>; "PHP List"
<[EMAIL PROTECTED]>
Sent: Wednesday, January 24, 2001 2:02 PM
Subject: RE: [PHP] Aspell Function


> Ahh... found the answer :) So much for the PHP doc, it didnt say anything
> about what i needed, I had to use the Zend one :|
>
> -Original Message-
> From: Matt Stone [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, 24 January 2001 12:54 PM
> To: PHP List
> Subject: [PHP] Aspell Function
>
>
> Hi,
> I am trying to run this code from the manual but with no success:
>  $spellinglink = aspell_new ("english");
> if (aspell_check ($spellinglink, "testt")) {
> echo "This is a valid spelling";
> } else {
> echo "Sorry, wrong spelling";
> }
> ?>
>
> It returns this error:
> Fatal error: Call to undefined function: aspell_new() in
> /home/www/htdocs/sunsetstudios/photoscope/test.php on line 2
>
> Is there a module have to enable to use Aspell? Or is there something I
have
> to change in php.ini? Please help.
>
> --Nanda
>
> ___
>
> This email may contain confidential and/or privileged information for the
> sole use of the intended recipient. Any review or distribution by others
is
> strictly prohibited. If you have received this email in error, please
> contact the sender and delete all copies. Opinions, conclusions or other
> information expressed or contained in this email are not given or endorsed
> by the sender unless otherwise affirmed independently by the sender.
>
> _
>
>
> --
> 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] Turning off PHP for one directory with apache

2001-01-22 Thread Josh G

Instead of:

> Action application/x-httpd-php-source "/php4/php.exe -s"
> AddType application/x-httpd-php-source .php4 .php .inc .htm

why not:

> Action application/x-httpd-php-source "/php4/php.exe
/path/to/showsource.php "
> AddType application/x-httpd-php-source .php4 .php .inc .htm

and using a php program that takes the input params and shows the
source for whatever file you're trying to look at?

I just pulled that out of my ass tho, dunno how viable it is as an idea
or a server directive, somebody out there correct me?

Gfunk -  http://www.gfunk007.com/

I sense much beer in you. Beer leads to intoxication, intoxication to
hangovers, and hangovers to... suffering.


- Original Message -
From: "Nold, Mark" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: "'Lewis Bergman'" <[EMAIL PROTECTED]>; "Php-General (E-mail)"
<[EMAIL PROTECTED]>
Sent: Tuesday, January 23, 2001 3:49 PM
Subject: RE: [PHP] Turning off PHP for one directory with apache


> --
--
> -
> Disclaimer: The information contained in this email is intended only for
the
> use of the person(s) to whom it is addressed and may be confidential or
> contain legally privileged information. If you are not the intended
> recipient you are hereby notified that any perusal, use, distribution,
> copying or disclosure is strictly prohibited. If you have received this
> email in error please immediately advise us by return email at
> [EMAIL PROTECTED] and delete the email document without making a
> copy.
> --
--
> -
> You're right.
>
> Thats exactly what i wanted. If you imagine uploaded files, or attachments
> to email in a PHP mailing list archive. You definatly wouldnt want them to
> execute code, in the case of mailing list archives you'd probably want to
> display em.
>
> Would anybody know how i can conigure Apache (with PHP as a CGI) to then
> show these as PHP highlighted source?
>
> Ive tried (im using a windows box to test)
>
> Action application/x-httpd-php-source "/php4/php.exe -s"
> AddType application/x-httpd-php-source .php4 .php .inc .htm
>
> Any ideas what im doing wrong? (I do have a vague memory of someone say
you
> couldnt use this feature with PHP as a CGI)
>
> Or can someone confirm its definatly not available in PHP as a CGI?
>
> mn
>
>
>
>
> Mark Nold
> [EMAIL PROTECTED] 
> Senior Consultant
>
> Change is inevitable, except from vending machines.
>
>
>
> -Original Message-
> From: Dan Lowe [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 23, 2001 12:42 PM
> To: Nold, Mark
> Cc: 'Lewis Bergman'; Php-General (E-mail)
> Subject: Re: [PHP] Turning off PHP for one directory with apache
>
>
> Previously, Nold, Mark said:
> >
> > After a bit of further playing it appears that simply AddType with the
> same
> > extensions that were set up should also stop php from working.
> >
> > So in a .htaccess file you can just
> > AddType text/plain .php4 .php .inc .htm
>
> Wouldn't that spit the source code out to the browser though?  Personally
> I would find that undesirable.
>
> You could also do something like this, should work in an .htaccess or in
> the httpd.conf/access.conf files:
>
> # Stops .php .php3 .php4
> 
>   order allow,deny
>   deny from all
> 
> # Stops .inc
> 
>   order allow,deny
>   deny from all
> 
> # Stops .htm .html
> 
>   order allow,deny
>   deny from all
> 
>
>  -dan
>
> --
> Dan Lowe <[EMAIL PROTECTED]> http://tangledhelix.com/
>
> Can vegetarians eat animal crackers?  -George Carlin
>
> --
> 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] What "PHP" Stands For....

2001-01-22 Thread Josh G

Yeah, it used to be called PHP/FI for Personal Home Page / Form 
Interpreter I do believe. Not sure about the "Interpreter" but I think
that was it.

Gfunk -  http://www.gfunk007.com/

I sense much beer in you. Beer leads to intoxication, intoxication to
hangovers, and hangovers to... suffering.
  

- Original Message - 
From: "Brian White" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 23, 2001 10:20 AM
Subject: [PHP] What "PHP" Stands For


> 
>  From the preface of the manual:
> 
> 'PHP, which stands for "PHP: Hypertext Preprocessor" ...'
> 
> I frankly don't beleive that "PHP" started life as a recursively
> defined acronym - I remember reading somewhere that it stood for
> "Personal Home Page" which makes more sense to me.
> 
> Anybody know the truth?
> 
> Regs
> 
> Brian White
> -
> Brian White
> Step Two Designs Pty Ltd - SGML, XML & HTML Consultancy
> 
> http://www.steptwo.com.au/
> [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] - alphabetizing

2001-01-21 Thread Josh G

Just build an assosciative array like so

$arr["person1"] = "string1";
$arr["person2"] = "string2";
$arr["person3"] = "string3";

$arr = asort($arr);

this should do what you're looking for.

Gfunk -  http://www.gfunk007.com/

I sense much beer in you. Beer leads to intoxication, intoxication to
hangovers, and hangovers to... suffering.
  

- Original Message - 
From: "Ray Iftikhar" <[EMAIL PROTECTED]>
To: "Php-General List" <[EMAIL PROTECTED]>
Sent: Monday, January 22, 2001 2:52 PM
Subject: [PHP] [php] - alphabetizing


> Hello,
> I was just typing a msg and accidentally hit send before I could
> finish.. sorry..
> 
> I have a file, its contents are as follows:
> 
> Name of person1, string1
> Name of person2, string2
> Name of person3, string3
> Name of person4, string4
> Name of person5, string5
> 
> I want to alphabetize the list from A-Z (using the first column as the
> primer key). I was planng on using an array, but I would have to use a 2
> dimensional array and I am not too swift on those..
> 
> Thanx,
> Ray..
> 
> 
> -- 
> 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] Announcement: Smarty - the PHP compiling template engine

2001-01-18 Thread Josh G

Nice... has a lot of cool ideas in it, a few of which I'm also working on
for the templating part of a content management system I'm working
on in my spare time (like compilation, except i'm going to do it at 
save-time, not 1st run-time, since i control the publishing functions).

Gfunk -  http://www.gfunk007.com/

I sense much beer in you. Beer leads to intoxication, intoxication to
hangovers, and hangovers to... suffering.
  



-- 
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] date problem: some months have 5 weeks... how I discover which ones?

2001-01-18 Thread Josh G

can't think of exactly the math, but get the weekdayday of the 1st,
divide how many days in the month/7, and it should be easy enuff.

use a combination of date() and mktime() to get the first day of the
month methinks.

Gfunk -  http://www.gfunk007.com/

I sense much beer in you. Beer leads to intoxication, intoxication to
hangovers, and hangovers to... suffering.


- Original Message -
From: "Romulo Roberto Pereira" <[EMAIL PROTECTED]>
To: "php-general" <[EMAIL PROTECTED]>
Sent: Friday, January 19, 2001 11:07 AM
Subject: [PHP] date problem: some months have 5 weeks... how I discover
which ones?


Hey!

A little bit of definition:

- a week start on sunday and ends on saturday;

- a year has 365/7 ~= 52 weeks;

How do I discover what months have 5 weeks and what have 4?

Rom



-- 
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] Where is information about Forms?

2001-01-18 Thread Josh G

they're automagically converted to global variables.



becomes $foo on the page you're submitting to. Nice, wot?

Gfunk -  http://www.gfunk007.com/

I sense much beer in you. Beer leads to intoxication, intoxication to
hangovers, and hangovers to... suffering.


- Original Message -
From: "Karl J. Stubsjoen" <[EMAIL PROTECTED]>
To: "PHP Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, January 19, 2001 10:12 AM
Subject: [PHP] Where is information about Forms?


> Hello,
>
> Looking through the PHP Site (someone needs to improve the search
features),
> and can't find information about querying form field values etc...
>
> 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] Quotes and Values

2001-01-18 Thread Josh G

True, but iirc it's not xml compliant, and might not be a good habit,
and it then leaves you without the option to use it in JS calls, like:

echo ""

Gfunk -  http://www.gfunk007.com/

I sense much beer in you. Beer leads to intoxication, intoxication to
hangovers, and hangovers to... suffering.


- Original Message -
From: "Chris Lee" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, January 19, 2001 9:51 AM
Subject: Re: [PHP] Quotes and Values


> alot of people inside on escaping your double quotes, I dont, I use single
> quotes, its nicer to read.
>
> echo "\n";
>
> echo "\n";
>
> I find the prior easier to read. they both work 100% no quibles.
>
> Chris Lee
> Mediawaveonline.com
>
>
>
> ""Karl J. Stubsjoen"" <[EMAIL PROTECTED]> wrote in message
> 017b01c081a0$2ad77e50$0afc020a@kstubsjoen">news:017b01c081a0$2ad77e50$0afc020a@kstubsjoen...
> > Hello,
> >
> > I am trying to do this:
> >
> > $myVal = "
> > *trying to accomplish putting " qotes around my string values*
> >
> > 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]
>


-- 
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] phpwebhosting.com

2001-01-17 Thread Josh G

Strewth! that's 4g/second at full strength! I'd say that's a fair bit more
than all the links out of my whole bloody country!

Gfunk -  http://www.gfunk007.com/

I sense much beer in you. Beer leads to intoxication, intoxication to
hangovers, and hangovers to... suffering.
  

- Original Message - 
From: "Ken" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 18, 2001 11:13 AM
Subject: Re: [PHP] phpwebhosting.com


> >> have you priced an OC-12 lately?
> > No I haven't.  Can you enlighten me?
> 
> I was curious :)
> 
> http://gometanet.com/connect/fiber.htm
> 
> OC12
> 622 Mb
> 
> Monthly Fee
> $550,000
> 
> Setup Fee
> call   (prolly between 10k and 20k)
> 
> I'll have to ask my wife first...
> _Ken
> 
> 
> 
> At 06:24 PM 1/17/01 -0500, you wrote:
> >> But even if they had 100 servers, have you priced an OC-12 lately?
> >
> >No I haven't.  Can you enlighten 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]
> 
> 
> -- 
> 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] < Levels of Access >

2001-01-17 Thread Josh G

Sounds good, I for one would like to see it.

Can it revoke permissions? Can I have access to all of /admin but
no access to /admin/delete ??

Gfunk -  http://www.gfunk007.com/

I sense much beer in you. Beer leads to intoxication, intoxication to
hangovers, and hangovers to... suffering.


- Original Message -
From: "Jason Murray" <[EMAIL PROTECTED]>
To: "'Abe'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, January 18, 2001 9:42 AM
Subject: RE: [PHP] < Levels of Access >


> > Is there a sensible standard that is used to have levels of access but
> > special people can access certain higher level functions.?
>
> I've seen a (rather good, I might add) permissions structure that followed
> a pattern like a unix filesystem.
>
> /general
> /users
> /products
> /sales
> /marketing
> /admin
>
> And then added specific permissions as required under that.
>
> So, if you wanted one person to be able to access the Admin Delete
> tool, you could specifically add "/admin/delete" to their permission
> list, while someone with "/admin" permission would be able to access
> "/admin/delete" by default.
>
> I'll see if I can grab some MySQL table definitions and the like
> if you'd like them...
>
> Jason
>
> --
> Jason Murray
> [EMAIL PROTECTED]
> Web Design Team, Melbourne IT
> Fetch the comfy chair!
>
> --
> 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] How do I do to update part of a string?

2001-01-15 Thread Josh G

You can always use the simple str_replace or my old fave,

$newstring=implode($withthis,explode($this,$oldstring));

replaces all instances of $this with $withthis in $oldstring

Gfunk -  http://www.gfunk007.com/

I sense much beer in you. Beer leads to intoxication, intoxication to
hangovers, and hangovers to... suffering.


- Original Message -
From: "Romulo Roberto Pereira" <[EMAIL PROTECTED]>
To: "php-general" <[EMAIL PROTECTED]>
Sent: Tuesday, January 16, 2001 1:39 PM
Subject: [PHP] How do I do to update part of a string?


> I have a big string. How can I do to find some text inside and modify that
> text? I was thinking about ereg_replace(). But it is capable to handle big
> chuncks of text? If yes, it will notbe too heavy for theserver? Any other
> ideas?
>
> Thank you,
>
> Rom
>
>
> --
> 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] password() ::: and it's return...

2001-01-15 Thread Josh G

Well it's up to you wether or not to encrypt passwords, but it's very
irresponsible not to. If somebody cracks your system, chances are
they'll get passwords that can be used on accounts your users have
in other places, so your customers suffer more than they should for
your lax in security.

People say "but if they're in my db then the damage is done" but
you're not the only one out there, and like it or not, there's no way
anybody can manage a different password on every damned site
that makes you sign up.

Gfunk -  http://www.gfunk007.com/

I sense much beer in you. Beer leads to intoxication, intoxication to
hangovers, and hangovers to... suffering.


- Original Message -
From: "Maxim Maletsky" <[EMAIL PROTECTED]>
To: "'Chris Lee'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, January 16, 2001 1:27 PM
Subject: RE: [PHP] password() ::: and it's return...


> Yeah, in fact that's my point. If you cannot decrypt a password, there's
no
> way to return it , right?
> So how come these "big guys" DO return it to you?
> And what is the most secure way for it. Some of these companies deal with
> finances, the security is a REAL issue over there...
>
> Maxim Maletsky
>
> -Original Message-
> From: Chris Lee [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 16, 2001 11:16 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] password() ::: and it's return...
>
>
> sites do though. many sites allow me to click some link and they email me
my
> passwd in case Ive forgoten it. ICQ.com even does this.
>
> Chris Lee
> Mediawaveonline.com
>
>
> ""Josh G"" <[EMAIL PROTECTED]> wrote in message
> 00e401c07f60$f325c2a0$0e01a8c0@swinger">news:00e401c07f60$f325c2a0$0e01a8c0@swinger...
> > I'm not sure I understand the question. What exactly do you mean? Are
> > you talking about returning it from the client already encrypted? Not
sure
> > if anybody does that, as JS doesn't have a whole lot of useful
encryption
> > stuff in it, and iirc the md5() algorith is rather lengthy.
> >
> > Gfunk -  http://www.gfunk007.com/
> >
> > I sense much beer in you. Beer leads to intoxication, intoxication to
> > hangovers, and hangovers to... suffering.
> >
> >
> > - Original Message -
> > From: "Maxim Maletsky" <[EMAIL PROTECTED]>
> > To: "'Chris Lee'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> > Sent: Tuesday, January 16, 2001 1:01 PM
> > Subject: RE: [PHP] password() ::: and it's return...
> >
> >
> > >
> > > Instead I am curious how other developers on this list are returning
the
> > > MD5, password() or whatever in permanently encrypted passwords...
> > >
> > > What are procedures and what is the way the return process work?
> > > Any tricks/tips to share with all of us?
> > >
> > > Cheers,
> > > Maxim Maletsky
> > >
> > >
> > >
> > > -Original Message-
> > > From: Chris Lee [mailto:[EMAIL PROTECTED]]
> > > Sent: Tuesday, January 16, 2001 10:53 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: [PHP] password()
> > >
> > >
> > > simple answer is no. the only way to decrypt the passwd is to run it
> > through
> > > a cracker. All admins are used to this and know that if a user has
lost
> a
> > > passwd that they are going to have to give them a new one, finding the
> old
> > > just isnt work one week of processing time :)
> > >
> > > Im curious to see how other php developers store their passwd's
> > > -plain text in db
> > > -use of unix password()
> > > -use of db password()
> > > -other ?
> > >
> > > Chris Lee
> > > Mediawaveonline.com
> > >
> > >
> > > ""Jason Jacobs"" <[EMAIL PROTECTED]> wrote in message
> > > 011501c07f3f$c415bcc0$5800a8c0@doc">news:011501c07f3f$c415bcc0$5800a8c0@doc...
> > > > Hi.  I use password() to excrypt my passwords when I'm adding users
to
> > my
> > > > mysql database.  I'm wondering if there's a function to use to
> > un-encrypt
> > > it
> > > > (for a web interface to change the password, and so the admin who is
> > > editing
> > > > user info can see what it is).  Thanks for any help.
> > > >
> > > > Jason
> > > >
> > > >
> > > &g

Re: [PHP] password() ::: and it's return...

2001-01-15 Thread Josh G

Yeah, but this simply means that the password is stored somewhere
unencrypted, or with a (by definition weaker) two-way encryption
process.

Gfunk -  http://www.gfunk007.com/

I sense much beer in you. Beer leads to intoxication, intoxication to
hangovers, and hangovers to... suffering.


- Original Message -
From: "Chris Lee" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 16, 2001 1:15 PM
Subject: Re: [PHP] password() ::: and it's return...


> sites do though. many sites allow me to click some link and they email me
my
> passwd in case Ive forgoten it. ICQ.com even does this.
>
> Chris Lee
> Mediawaveonline.com
>
>
> ""Josh G"" <[EMAIL PROTECTED]> wrote in message
> 00e401c07f60$f325c2a0$0e01a8c0@swinger">news:00e401c07f60$f325c2a0$0e01a8c0@swinger...
> > I'm not sure I understand the question. What exactly do you mean? Are
> > you talking about returning it from the client already encrypted? Not
sure
> > if anybody does that, as JS doesn't have a whole lot of useful
encryption
> > stuff in it, and iirc the md5() algorith is rather lengthy.
> >
> > Gfunk -  http://www.gfunk007.com/
> >
> > I sense much beer in you. Beer leads to intoxication, intoxication to
> > hangovers, and hangovers to... suffering.
> >
> >
> > - Original Message -
> > From: "Maxim Maletsky" <[EMAIL PROTECTED]>
> > To: "'Chris Lee'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> > Sent: Tuesday, January 16, 2001 1:01 PM
> > Subject: RE: [PHP] password() ::: and it's return...
> >
> >
> > >
> > > Instead I am curious how other developers on this list are returning
the
> > > MD5, password() or whatever in permanently encrypted passwords...
> > >
> > > What are procedures and what is the way the return process work?
> > > Any tricks/tips to share with all of us?
> > >
> > > Cheers,
> > > Maxim Maletsky
> > >
> > >
> > >
> > > -Original Message-
> > > From: Chris Lee [mailto:[EMAIL PROTECTED]]
> > > Sent: Tuesday, January 16, 2001 10:53 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: [PHP] password()
> > >
> > >
> > > simple answer is no. the only way to decrypt the passwd is to run it
> > through
> > > a cracker. All admins are used to this and know that if a user has
lost
> a
> > > passwd that they are going to have to give them a new one, finding the
> old
> > > just isnt work one week of processing time :)
> > >
> > > Im curious to see how other php developers store their passwd's
> > > -plain text in db
> > > -use of unix password()
> > > -use of db password()
> > > -other ?
> > >
> > > Chris Lee
> > > Mediawaveonline.com
> > >
> > >
> > > ""Jason Jacobs"" <[EMAIL PROTECTED]> wrote in message
> > > 011501c07f3f$c415bcc0$5800a8c0@doc">news:011501c07f3f$c415bcc0$5800a8c0@doc...
> > > > Hi.  I use password() to excrypt my passwords when I'm adding users
to
> > my
> > > > mysql database.  I'm wondering if there's a function to use to
> > un-encrypt
> > > it
> > > > (for a web interface to change the password, and so the admin who is
> > > editing
> > > > user info can see what it is).  Thanks for any 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]
> > > >
> > >
> > >
> > >
> > > --
> > > 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] password() ::: and it's return...

2001-01-15 Thread Josh G

There are a few ways to go about this-

1) The "secret question" method, where the user enters a question
only they would know the answer to upon signing up, and they can
use this to get in if they forget the password. Which begs the
question - why use a password in the first place?

2) Administrator intervention- a request is made to an administrator,
who sets a new password on behalf of the user.

3) Email a generated password- Generate a password, and email
it to the user. However, malicious users could do this to shut off
other people's accounts, so perhaps you should have a two step
process:

a) the user says "I've lost my password" and an email is sent to
said user's email address...

b) the email contains a link to a script, which only then generates
a new password and sends it back to the user. This makes sure
that whoever it making the request at least has access to the
email account listed for that user, and you can be more sure that
nothing too shady's going on :-) Oh, and for verification, the
link could be something like

http://your.site.com/scripts/newpw?oldpw=foo&user=x

where foo is the md5() password already in the database, so in
order to spoof the link the hacker would already need to know
the password or have db axs in the first place :)

Hope I've given you some ideas.

Gfunk -  http://www.gfunk007.com/

I sense much beer in you. Beer leads to intoxication, intoxication to
hangovers, and hangovers to... suffering.


- Original Message -
From: "Maxim Maletsky" <[EMAIL PROTECTED]>
To: "'Josh G'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, January 16, 2001 1:17 PM
Subject: RE: [PHP] password() ::: and it's return...


> No, simply when someone loses it's password. How do developers return it
on
> their systems? What are the procedures, tips todo, tricks etc
>
> This is because I am working on a similar system right now, and the
> "password return" part is the one I am not too sure yet. Plus many of us
> would learn something new.
>
> Maxim Maletsky
>
> -Original Message-
> From: Josh G [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 16, 2001 11:07 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] password() ::: and it's return...
>
>
> I'm not sure I understand the question. What exactly do you mean? Are
> you talking about returning it from the client already encrypted? Not sure
> if anybody does that, as JS doesn't have a whole lot of useful encryption
> stuff in it, and iirc the md5() algorith is rather lengthy.
>
> Gfunk -  http://www.gfunk007.com/
>
> I sense much beer in you. Beer leads to intoxication, intoxication to
> hangovers, and hangovers to... suffering.
>
>
> - Original Message -
> From: "Maxim Maletsky" <[EMAIL PROTECTED]>
> To: "'Chris Lee'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Tuesday, January 16, 2001 1:01 PM
> Subject: RE: [PHP] password() ::: and it's return...
>
>
> >
> > Instead I am curious how other developers on this list are returning the
> > MD5, password() or whatever in permanently encrypted passwords...
> >
> > What are procedures and what is the way the return process work?
> > Any tricks/tips to share with all of us?
> >
> > Cheers,
> > Maxim Maletsky
> >
> >
> >
> > -Original Message-
> > From: Chris Lee [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, January 16, 2001 10:53 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: [PHP] password()
> >
> >
> > simple answer is no. the only way to decrypt the passwd is to run it
> through
> > a cracker. All admins are used to this and know that if a user has lost
a
> > passwd that they are going to have to give them a new one, finding the
old
> > just isnt work one week of processing time :)
> >
> > Im curious to see how other php developers store their passwd's
> > -plain text in db
> > -use of unix password()
> > -use of db password()
> > -other ?
> >
> > Chris Lee
> > Mediawaveonline.com
> >
> >
> > ""Jason Jacobs"" <[EMAIL PROTECTED]> wrote in message
> > 011501c07f3f$c415bcc0$5800a8c0@doc">news:011501c07f3f$c415bcc0$5800a8c0@doc...
> > > Hi.  I use password() to excrypt my passwords when I'm adding users to
> my
> > > mysql database.  I'm wondering if there's a function to use to
> un-encrypt
> > it
> > > (for a web interface to change the password, and so the admin who is
> > ed

Re: [PHP] HELP WITH UPLOAD REQUIRED!!!!!!!!

2001-01-15 Thread Josh G

A rose by any other name would smell as sweet, and I'm sure I
remember deleting files back in my old dos days, not to mention
win95 ;-)

Gfunk -  http://www.gfunk007.com/

I sense much beer in you. Beer leads to intoxication, intoxication to
hangovers, and hangovers to... suffering.


- Original Message -
From: "Alexander Wagner" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 16, 2001 1:01 PM
Subject: Re: [PHP] HELP WITH UPLOAD REQUIRED


> Josh G wrote:
> > Unlink works on some installations, not others. I think it works on NT
> > but not 95 or perhaps the other way around. Why is this? Unlink is
> > hardly an unsupported system call in windows! Anybody know?
>
> Unlink comes from UNIX so it's probably supported by NT rather than Win9x.
> This is just a guess, though.
>
> Wagner
>
> --
> One maniac alone can do what 20 together cannot
>
> --
> 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] password() ::: and it's return...

2001-01-15 Thread Josh G

I'm not sure I understand the question. What exactly do you mean? Are
you talking about returning it from the client already encrypted? Not sure
if anybody does that, as JS doesn't have a whole lot of useful encryption
stuff in it, and iirc the md5() algorith is rather lengthy.

Gfunk -  http://www.gfunk007.com/

I sense much beer in you. Beer leads to intoxication, intoxication to
hangovers, and hangovers to... suffering.


- Original Message -
From: "Maxim Maletsky" <[EMAIL PROTECTED]>
To: "'Chris Lee'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, January 16, 2001 1:01 PM
Subject: RE: [PHP] password() ::: and it's return...


>
> Instead I am curious how other developers on this list are returning the
> MD5, password() or whatever in permanently encrypted passwords...
>
> What are procedures and what is the way the return process work?
> Any tricks/tips to share with all of us?
>
> Cheers,
> Maxim Maletsky
>
>
>
> -Original Message-
> From: Chris Lee [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 16, 2001 10:53 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] password()
>
>
> simple answer is no. the only way to decrypt the passwd is to run it
through
> a cracker. All admins are used to this and know that if a user has lost a
> passwd that they are going to have to give them a new one, finding the old
> just isnt work one week of processing time :)
>
> Im curious to see how other php developers store their passwd's
> -plain text in db
> -use of unix password()
> -use of db password()
> -other ?
>
> Chris Lee
> Mediawaveonline.com
>
>
> ""Jason Jacobs"" <[EMAIL PROTECTED]> wrote in message
> 011501c07f3f$c415bcc0$5800a8c0@doc">news:011501c07f3f$c415bcc0$5800a8c0@doc...
> > Hi.  I use password() to excrypt my passwords when I'm adding users to
my
> > mysql database.  I'm wondering if there's a function to use to
un-encrypt
> it
> > (for a web interface to change the password, and so the admin who is
> editing
> > user info can see what it is).  Thanks for any 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]
> >
>
>
>
> --
> 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] HELP WITH UPLOAD REQUIRED!!!!!!!!

2001-01-15 Thread Josh G

Unlink works on some installations, not others. I think it works on NT
but not 95 or perhaps the other way around. Why is this? Unlink is
hardly an unsupported system call in windows! Anybody know?

Gfunk -  http://www.gfunk007.com/

I sense much beer in you. Beer leads to intoxication, intoxication to
hangovers, and hangovers to... suffering.


- Original Message -
From: "Chris Lee" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 16, 2001 12:47 PM
Subject: Re: [PHP] HELP WITH UPLOAD REQUIRED


> are you running php in safemode?
>
> according to
> http://php.net/manual/en/function.unlink.php
> unlink() may not work with windows servers, I have no personal experience
> with windows so I can not confirm this.
>
> have you tried
> http://php.net/manual/en/function.move-uploaded-file.php
> this might be better suited.
>
> Chris Lee
> Mediawaveonline.com
>
>
> "Mike Yuen" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > I am trying to allow various users to upload their own picture.  What I
> > would like to happen is to have the copy statement rename the .jpg
> > image to the username.  For example, if the username is mike, then I
want
> > the picture to be renamed mike.jpg
> >
> > The following is a snippet of code:
> >
> >  > print "$CUserName" //ensures name is carried over from session
> >
> > if(copy($userfile,"c:/phpweb/userpics/$CUserName.jpg"))
> > {
> > print "Your picture has been uploaded!";
> > }
> > else
> > {
> > print "Error";
> > }
> >
> > unlink($userfile)
> > ?>
> >
> > The errors I get are as follows:
> > Warning: unable to open " for reading: Permission denied in
> > c:\phpweb/fuploadconfirm.php on line 15
> > Warning: Unlink failed (No such file or directory) in
> > c:\phpweb/fuploadconfirm.php on line 31
> >
> > Line 15 is the if copy($userfile) line in the above code
> >
> > AND
> >
> > Line 31 is the unlink statement at the end.
> >
> > Thanks,
> > Mike
> >
> >
> > --
> > 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] logging page views, which method is better????

2001-01-14 Thread Josh G

Another technique is use a quick-and dirty save of one line to a text
file, and have a cron script or somehting similar simply run every
day or every few hours that reads from your home-made log into a
db table, and then empties the file.

Gfunk

   My name was Brian McGee,
   I stayed up listening to Queen,
   When I was seventeen.

http://www.gfunk007.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] SMs

2001-01-14 Thread Josh G

yeah you can do that, don't know about other phones, but for nokia
you need the cable, a phone with the appropriate plugs (ie a 5xx0 /
6xx0 / 7xx0 / 9xx0 model phone, not a 8xx0 or 3xx0 model), and
the nokia data suite or free alternative if they exist for your operating
system.

Gfunk

   My name was Brian McGee,
   I stayed up listening to Queen,
   When I was seventeen.

http://www.gfunk007.com/


- Original Message -
From: "Iv?n S?nchez Ortega "MR"" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, January 15, 2001 10:21 AM
Subject: Re: [PHP] SMs


> ""Bastian"" ...
> > Hello!
> >
> > A requirement is a special server that sends them, but such a server
costs
> > money, every message costs some.
>
> I read somewhere that you could send SMs if you had your mobile phone
linked
> to your computer, and special software to needful to make the PC-mobile
> interaction...
>
> That way, you could send SMs by your mobile phone... but they should cost
as
> if you were sending them.
>
>
>
> --
> 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] APC Alternative PHP Cache Release Announcement

2001-01-11 Thread Josh G

How's it handle scripts that call eval()?

Gfunk

   My name was Brian McGee,
   I stayed up listening to Queen,
   When I was seventeen.

http://www.gfunk007.com/


- Original Message -
From: "George Schlossnagle" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, January 12, 2001 3:28 PM
Subject: [PHP] APC Alternative PHP Cache Release Announcement


> I'd like to announce the release of the APC Alternative PHP Cache
> http://apc.communityconnect.com/ .  APC works by caching the scripts in
> shared memory post-compilation to effectively eliminate the overhead of
> parsing and compilation.  APC was developed as a completely free and
> open alternative to the Zend Cache, and is extremely robust and
> flexible.  Performance increases are very significant (100-200% on many
> of our scripts, which admittedly have lengthy includes.  You results may
> vary. :)
>
> george
>
> --
> $_ = 'George Schlossnagle';
>
s#.#(ord$')-(ord$&)+((index($_,$')-$&)?1002:0)#ego;s#-#((substr($],4,1)-6)?6
7:$-[0])#eog;$:=$_;print
> join('',(map chr$_,reverse
>
map{substr($:,(3*$_),3)+(11,-109,-14,94,-894,-28,-61,-202,-417,83,-20,-678,5
3,96,4,-494,82,-869,-826,24,16,-684,-450,-27)[$_]}(0...length($_)/3)),chr(le
ngth($_)/2+ord$/),$/);
>
>
> --
> 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] mixing HTML and PHP code

2001-01-11 Thread Josh G

- Original Message -
From: "Jade Ohlhauser" <[EMAIL PROTECTED]>
To: "PHP List" <[EMAIL PROTECTED]>
Sent: Friday, January 12, 2001 1:40 PM
Subject: Re: [PHP] mixing HTML and PHP code


> IMHO even better is:
> input_text('hello', 20, $value);
>
> that's how that would appear on our site. We order the parameters
logically
> and include a catch all final parameter that will add text to the HTML
tag.

I agree... In fact the last major project I did by myself was even better,
it was

layout_textbox(array(

vname  => "user_name",
desc=> "Enter your name",
size  => 20,
pixel_size => 120, //Just for better control in IE
max_size => 30 ));

doesn't matter what order they go in, and the function puts
defaults in for missing variables.

you get the idea... made coding slightly longer, execution slightly
slower, but maintainince 100% faster, no more looking up queer
function definitions every time you wanted to change the size or
value of something.

Plus, when i changed all text fields in the system to simple ones
with a different stylesheet, I simply update layout_textbox function.
Couldn't use stylesheet, or buttons would be affected as well...

> On our site that would more like:
>
> (comments)
>
> (include files)
>
> (page specific variables)
>
> html();
>
> head($title);
> head_css('stylesheet.css');
> head_script('script.js);
> x('head');
>
> body($style)
> table(0, 0, 0, '100%', '', BLACK);
> tr('top'); td(); image('fire.jpg'); x('td'); x('tr');
> x('table');
>
> x('body');
> x('html');

Almost exactly the same, save it would be

layout_open_table(array(.));

foo foo foo

layout_close_table();

Didn't think anybody out there did it the way I do :-)

Gfunk

   My name was Brian McGee,
   I stayed up listening to Queen,
   When I was seventeen.

http://www.gfunk007.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] Dynamic 'left menu's' on site: Like a windows explorersystem???

2001-01-11 Thread Josh G

I've got one you guys can have, email me anybody who wants it.

Gfunk

   My name was Brian McGee,
   I stayed up listening to Queen,
   When I was seventeen.

http://www.gfunk007.com/


- Original Message -
From: "DanO" <[EMAIL PROTECTED]>
To: "Php-General@Lists. Php. Net" <[EMAIL PROTECTED]>
Sent: Friday, January 12, 2001 10:54 AM
Subject: RE: [PHP] Dynamic 'left menu's' on site: Like a windows
explorersystem???


>
> javascript IS the optimal solution for a user-friendly dynamic navbar.
>
> check this one out:
>
> http://javascript.internet.com/foldertree/
>
> i do sense a certain amount of FEAR on behalf of php'ers in regards to
> javascript.
>
> no web application is complete without a mix of client-side and
server-side
> application of code.
>
> DanO
>
>
>
> -Original Message-
> From: Alex Black [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 11, 2001 3:31 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] Dynamic 'left menu's' on site: Like a windows
> explorersystem???
>
>
> you have two choices:
>
> yes, php can do it, but as php is a server side language, you have to
> refresh the page...
>
> or, you can go the
> much-more-dangerous-and-much-less-likely-to-work-on-many-browsers
javascript
> route.
>
> I suggest the first :)
>
> if you _do_ end up writing some good code, please make a library out of it
> and send it along! :)
>
> -alex
>
>
> --
> Alex Black, Head Monkey
> [EMAIL PROTECTED]
>
> The Turing Studio, Inc.
> http://www.turingstudio.com
>
> vox+510.666.0074
> fax+510.666.0093
>
> Saul Zaentz Film Center
> 2600 Tenth St Suite 433
> Berkeley, CA 94710-2522
>
>
>
>
> > From: [EMAIL PROTECTED] ("Yoeri De Bruyn")
> > Newsgroups: php.general
> > Date: 11 Jan 2001 04:56:47 -0800
> > Subject: [PHP] Dynamic 'left menu's' on site: Like a windows explorer
> > system???
> >
> > Hi,
> >
> > I need to change my static left menu's into more dynamic ones, like when
> > you click one title of the menu, it shows it sub menu etc.
> >
> > Any body knows if that can be achieved using PHP? Or should i repel on
> > other techniques?
> > If someone did make similar stuff, could you please send me an example
> > or some good ideas?
> >
> > Thanks a lot in advance
> > Yoeri.
> >
> >
> > --
> > 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] Dynamic 'left menu's' on site: Like a windows explorersystem???

2001-01-11 Thread Josh G

I have a working javascript system for this, email me anybody if you want
it.

Note - It's a hulluva lot harder than you think to write

Gfunk

   My name was Brian McGee,
   I stayed up listening to Queen,
   When I was seventeen.

http://www.gfunk007.com/


- Original Message -
From: "Alex Black" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, January 12, 2001 10:30 AM
Subject: Re: [PHP] Dynamic 'left menu's' on site: Like a windows
explorersystem???


> you have two choices:
>
> yes, php can do it, but as php is a server side language, you have to
> refresh the page...
>
> or, you can go the
> much-more-dangerous-and-much-less-likely-to-work-on-many-browsers
javascript
> route.
>
> I suggest the first :)
>
> if you _do_ end up writing some good code, please make a library out of it
> and send it along! :)
>
> -alex
>
>
> --
> Alex Black, Head Monkey
> [EMAIL PROTECTED]
>
> The Turing Studio, Inc.
> http://www.turingstudio.com
>
> vox+510.666.0074
> fax+510.666.0093
>
> Saul Zaentz Film Center
> 2600 Tenth St Suite 433
> Berkeley, CA 94710-2522
>
>
>
>
> > From: [EMAIL PROTECTED] ("Yoeri De Bruyn")
> > Newsgroups: php.general
> > Date: 11 Jan 2001 04:56:47 -0800
> > Subject: [PHP] Dynamic 'left menu's' on site: Like a windows explorer
> > system???
> >
> > Hi,
> >
> > I need to change my static left menu's into more dynamic ones, like when
> > you click one title of the menu, it shows it sub menu etc.
> >
> > Any body knows if that can be achieved using PHP? Or should i repel on
> > other techniques?
> > If someone did make similar stuff, could you please send me an example
> > or some good ideas?
> >
> > Thanks a lot in advance
> > Yoeri.
> >
> >
> > --
> > 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] Re-engineering print()

2001-01-10 Thread Josh G

Cool, didn't think you could do that. Well never mind me then ;-)

Gfunk

   My name was Brian McGee,
   I stayed up listening to Queen,
   When I was seventeen.

http://www.gfunk007.com/


- Original Message - 
From: "Matt McClanahan" <[EMAIL PROTECTED]>
To: "Kristofer Widholm" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, January 11, 2001 5:37 PM
Subject: Re: [PHP] Re-engineering print()


> On Wed, 10 Jan 2001, Kristofer Widholm wrote:
> 
> > Basically, I'm wondering if there is a way to redirect print and echo 
> > output from PHP to a variable instead of directly to a browser or 
> > file stream. What I'm trying to do is create code that can generate 
> > an HTML page to a variable that I can manipulate and then later store 
> > in a database.
> 
> http://www.php.net/manual/ref.outcontrol.php
> 
> Specifically, ob_get_contents().
> 
> Start an output buffer, include your files, get the contents, and
> ob_ed_clean.  Ought to do the trick.
> 
> Matt
> 
> 
> -- 
> 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] Re-engineering print()

2001-01-10 Thread Josh G

If the system() doesn't return something, try using the backticks (left of
the 1
key) like so:

$s = `/path/to/php /path/to/yourfile.php`;

Gfunk

   My name was Brian McGee,
   I stayed up listening to Queen,
   When I was seventeen.

http://www.gfunk007.com/


- Original Message -
From: "Kristofer Widholm" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 11, 2001 5:19 PM
Subject: Re: [PHP] Re-engineering print()


> Here's what you wrote, 01-01-11:
>
> >  > $s = sprintf("%s", implode("\n", file('template.php')));
> >
> >Why this??? It's redundant, isn't it? Wouldn't
> >
> >$s= implode("\n", file('template.php')); do it?
> >
> >Gfunk
>
> Gfunk, and Mr. Murray,
>
> I guess I didn't write my query very clearly. What I am looking for
> is not just storing the PHP in a variable (that, as you both have
> pointed out, is easy enough), but I want to EXECUTE the PHP script
> (including it's print statements and everything) and instead of
> having that output go directly to the browser, I want it to go to the
> variable. The solutions offered certainly do put the PHP into a
> variable, but it doesn't execute the PHP and have the output of the
> executed PHP get stored into the variable.
>
> Thanks for familiarizing me with implode(), though, as I'm sure to
> use that often.
>
> Sincerely,
> Kristofer
> --
>   http://www.brokenhill.net
> ~/
> "The only real ideas are the ideas of the shipwrecked"
> --Ortega y Gassett
>
> ~~~/~~
>
> --
> 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] Re-engineering print()

2001-01-10 Thread Josh G

$s = system ("/usr/local/whatever/php/bin/php /path/to/your/file.php");

This should be what you're after. In PHP4 there _may_ be some way
to use the inbuilt buffering for that purpouse, but I doubt it.

Perhaps this could be added to the language? It would be a good
counterpart to eval()...

Gfunk

   My name was Brian McGee,
   I stayed up listening to Queen,
   When I was seventeen.

http://www.gfunk007.com/


- Original Message - 
From: "Kristofer Widholm" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 11, 2001 5:19 PM
Subject: Re: [PHP] Re-engineering print()


> Here's what you wrote, 01-01-11:
> 
> >  > $s = sprintf("%s", implode("\n", file('template.php')));
> >
> >Why this??? It's redundant, isn't it? Wouldn't
> >
> >$s= implode("\n", file('template.php')); do it?
> >
> >Gfunk
> 
> Gfunk, and Mr. Murray,
> 
> I guess I didn't write my query very clearly. What I am looking for 
> is not just storing the PHP in a variable (that, as you both have 
> pointed out, is easy enough), but I want to EXECUTE the PHP script 
> (including it's print statements and everything) and instead of 
> having that output go directly to the browser, I want it to go to the 
> variable. The solutions offered certainly do put the PHP into a 
> variable, but it doesn't execute the PHP and have the output of the 
> executed PHP get stored into the variable.
> 
> Thanks for familiarizing me with implode(), though, as I'm sure to 
> use that often.
> 
> Sincerely,
> Kristofer
> -- 
>   http://www.brokenhill.net
> ~/
> "The only real ideas are the ideas of the shipwrecked"
> --Ortega y Gassett
> 
> ~~~/~~
> 
> -- 
> 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] Exponents

2001-01-10 Thread Josh G

exp(num,pow) i do believe. of course this is off the top of my head

Gfunk

   My name was Brian McGee,
   I stayed up listening to Queen,
   When I was seventeen.

http://www.gfunk007.com/


- Original Message - 
From: "Ian LeBlanc" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 11, 2001 4:05 PM
Subject: [PHP] Exponents


> Hey guys this one might be simple for ya..
> how do you get a exponent of a verable.. example...
> 
>  $Value = 4;
> $Exponent = 2;
> 
> $Equals = 1E$Exponent + $Value;
> PRINT ("Equals");
> ?>
> 
> shoudl be simple.. i have tried all kinds of things.. please help
> 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] Re-engineering print()

2001-01-10 Thread Josh G

> $s = sprintf("%s", implode("\n", file('template.php')));

Why this??? It's redundant, isn't it? Wouldn't

$s= implode("\n", file('template.php')); do it?

Gfunk


-- 
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] looking for a PHP editor

2001-01-09 Thread Josh G

I went to their homepage, and couldn't find a link to download
the actual program, just some example stuff, and it says "coming
soon"... Is it out there somewhere and I'm just retarded, or are
you mob on a beta list or something???

Gfunk

   My name was Brian McGee,
   I stayed up listening to Queen,
   When I was seventeen.

http://www.gfunk007.com/


- Original Message -
From: "Jeffrey A. Stuart" <[EMAIL PROTECTED]>
To: "Brad Hubbard" <[EMAIL PROTECTED]>; "PHP is not a drug ."
<[EMAIL PROTECTED]>
Sent: Wednesday, January 10, 2001 12:26 PM
Subject: RE: [PHP] looking for a PHP editor


> Nope!  CodeCharge!



-- 
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]